# complex waveforms

Discussion in 'Homework Help' started by racerx, Jan 8, 2005.

1. ### racerx Thread Starter New Member

Jan 8, 2005
7
0
Hi,
I've been trying to construct a triangular waveform using excel. This is part of an assignemnt i'm doing, in which i've already constructed a squarewave and sawtooth waveform.

The formula i've been using to try and create this triangular wave is shown below:-

v= Vsin(wt)+ v/9sin(3wt-pi)+V/25sin(5wt-pi)...... and so on.

I'm pretty sure this is wrong as i've read that alternate odd harmonics must be in antipahse with the fundamental.

Can someone please provide a sensible formula for creating a triangular wave, i've looked on the net but there isn't much information!!

Thanks
Matt

2. ### Brandon Senior Member

Dec 14, 2004
306
0
A triangular wave is nearly the exact same as a square wave with different coefficients.

http://rds.yahoo.com/S=2766679/K=%2Bfourie...s/srfourtr.html

3. ### racerx Thread Starter New Member

Jan 8, 2005
7
0

I'm afriad that for some reason I can't see the program that the link takes you to! I don't know if i havn't got right software to see the stuff. My java is upto date so I dunno what could be wrong!!

Thanks

4. ### racerx Thread Starter New Member

Jan 8, 2005
7
0

The information i was given by brandon wasn't what I was looking for, so if anyone can help I still need it.

The link to the formula brandon provided was good but I need something that includes a fundamental frequency. This is due to my assignment being based on a fundamental of 130 hz.

Thanks
Matt

5. ### racerx Thread Starter New Member

Jan 8, 2005
7
0

Well thanks for any replies I did get, but i've sorted it now. If anyone is actually interested the correct formula is V= Vsin(wt) + V/3^2 Sin(3wt-pi) + v/5^2 Sin(5wt)+ V/7^2 sSin(7wt-pi)... and so on

Just means that the harmonics must alternate in phase with the fundamental.

Cheers )