cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Fourier Series, where is my mistakes

sfan
1-Newbie

Fourier Series, where is my mistakes

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

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:sfan)

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)

View solution in original post

2 REPLIES 2
RichardJ
19-Tanzanite
(To:sfan)

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)

sfan
1-Newbie
(To:RichardJ)

Capture.JPG

Yep, you are right!!!

Thank you, Richard!

Jedi to the rescue!

Top Tags