# complex waveforms

#### cjacobs

Joined Dec 8, 2010
10

I am trying to construct a complex waveform this formula.

V=141.4sin240pit+28,3sin720pit+14.14sin(1200pit-69deg)

Now i have tried to do it by hand but my fundamental wave dont make 1 cycle in 8.3 ms the way it should do.I dont know if i have used the formula correctly to obtain each plot. I assume you get the sin of 240pit(t will be different for each ms) and then multiply it with 141.4.Please can somebody shed some light.

#### hgmjr

Joined Jan 28, 2005
9,029
If you have MS Excel or similar spreadsheet software you can give that a try.

hgmjr

#### Ron H

Joined Apr 14, 2005
7,014
It's also easy to plot on a simulator such as LTspice.

#### Attachments

• 27.8 KB Views: 39
Last edited:

#### Georacer

Joined Nov 25, 2009
5,182
Ron's picture says it all. If you want to do it yourself, any circuit simulation software is ideal. Matlab will also do. Do you have a copy?

Joined Jul 7, 2009
1,583
Here's a quick plot made with python/numpy/matplotlib:

Rich (BB code):
from __future__ import division
from pylab import *
N, t0 = 200, 0.05
t = arange(0, t0, t0/N)
V = 141.4*sin(240*pi*t) + 28.3*sin(720*pi*t) + 14.14*sin(1200*pi*t - 69*pi/180)
plot(t, V)
savefig("a.png", dpi=75)
If that's not what you're after, you'll need to learn to write your equations properly so that they're unambiguous.

#### Attachments

• 24.6 KB Views: 22