Skip to main content
1-Visitor
October 20, 2015
Solved

Fourier Series, where is my mistakes

  • October 20, 2015
  • 2 replies
  • 1607 views

Hi, everyone,

I tried to program a fourier series of a step function,  using the complex form.

Imitating the example code of the real series from the HELP folder, it succeeded.

Capture1.JPG

But when I wrote it in terms of my own perception, it failed.

Capture.JPG

Could someone help me check where I did wrong?

Please see the attachment.

Thank you in advance!

Shawn

Best answer by RichardJ

It's a Prime 3.1 sheet, so I can't check this, but:

When you assign A[N and B[N, N is a fixed number, 10. Therefore your coefficients are all zero, except for the last one. Just use

A:=2*Re(P)

B:=-2*Im(P)

2 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite
October 20, 2015

It's a Prime 3.1 sheet, so I can't check this, but:

When you assign A[N and B[N, N is a fixed number, 10. Therefore your coefficients are all zero, except for the last one. Just use

A:=2*Re(P)

B:=-2*Im(P)

sfan1-VisitorAuthor
1-Visitor
October 20, 2015

Capture.JPG

Yep, you are right!!!

Thank you, Richard!

Jedi to the rescue!