I am new to Mathematica and I am facing problems with the implementation of the following for loop.
I cant figure out whether there is a problem with the if statement or for loop. If statement is to check even or odd. I have attached my program.
The expected output for
Secondharmonicfrac[1, 2, Pi/2, 0]
is around 3.14
Attachment: stack_3.nb, URL: ,