Skip to main content
1-Visitor
May 13, 2013
Question

Fourier series: odd & even extensions

  • May 13, 2013
  • 2 replies
  • 4713 views

I'm setting up a couple of worksheets (though ideally I'd like to have 2 in 1) that will enable me to work out Fourier series, the respective odd & even extensions and display the graphs.

Questions:

1) Is there a way to display a function g(t) in one set of curly brackets? e.g. (something looking like this but inside the culry brackets)

1 (0 < t <= 1)

g(t) = {

2 - t (1 < t <= 2)

2) Calculations are flagged in red (actually, nothing is being calculated at all!) when I try to work out the Fourier series of g(t) symbolically. I'm not sure what it is that I've missed?!?

N.B. I have used the necessary parts from a worksheet that came with my MathCad package 14.0 M020 and trying to make some sense of it.

2 replies

25-Diamond I
May 13, 2013

Ad 1) Use the if from the programming palette. No curly brackets but as near as you can get. See attached

Fourier_if.png

Ad 2) You have no functions A() and B() defined, therefore the error. See attached

1-Visitor
May 13, 2013

Werner Exinger wrote:

Ad 1) Use the if from the programming palette. No curly brackets but as near as you can get. See attached

Fourier_if.png

Ad 2) You have no functions A() and B() defined, therefore the error. See attached

I see. Thank you very much!

25-Diamond I
May 13, 2013

One word of caution: If you want to use the function definition with the programming structure to calculate the Fourier coefficients replace the NaN for 0. Otherwise the integrals won't even evaluate numerically.

24-Ruby IV
May 13, 2013