Group Abstract Group Abstract

Message Boards Message Boards

Graph the contour of a resulting Manipulate curve?

Posted 9 years ago
POSTED BY: Bogdan Andersen
4 Replies
Posted 9 years ago

According to the definition of FourierF the parameter "a" contains the coefficients of a Fourier-Sine Series. Therefore to get "a" for some arbitrary function, you need to calculate the Sine Series coefficients. This implies that your function has odd symetrie around the origin. Therefore, you need to setup the triangular wave so that the zero is at the origin before you calulate the Sine Series. Also, take care about conventions used for Sine Series coefficients, they must match your base functions Sin[2Pi i t].

Further, by using the Sine Series coefficients as a radius, you imply that they are positive. This is easily fixed by taking the absolute value for the radius.

Here are the first few coefficients: {0.202642,0,-0.0225158,0,0.00810569,0,-0.00413556,0,0.00250176} As the first coefficient is much bigger than the rest, we will have one big circle and very tiny ones.

POSTED BY: Updating Name
POSTED BY: Bogdan Andersen

If I run your code I do get the triangular wave (see below). Do you need some other triangular shape?

enter image description here

POSTED BY: Vitaliy Kaurov

Yes. The shape from your example is a "sawtooth" wave (from the now edited code above, by using the commented sawtooth code). Although triangular, it is different than the one commonly called "triangle". Roughly speaking, the "sawtooth" is a right-angle triangular waveform, while the "triangle" could be described as equilateral.
enter image description here
Image source: Waveform on Wikipedia.

POSTED BY: Bogdan Andersen
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard