Plotting k^2 in Mathematica - Output Not 1?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 3K views
member 428835
Can anyone confirm if the following in Mathematica gives an output that is not 1? I'm getting some sort of sinusoid, but I should get 1.

Code:
k = 2;
Plot[k^2 JacobiSN[t, k]^2 + JacobiDN[t, k]^2, {t, 0, 10}]

Thanks!
 
Physics news on Phys.org
joshmccraney said:
Can anyone confirm if the following in Mathematica gives an output that is not 1? I'm getting some sort of sinusoid, but I should get 1.

Code:
k = 2;
Plot[k^2 JacobiSN[t, k]^2 + JacobiDN[t, k]^2, {t, 0, 10}]

Thanks!
Yes, that oscillates between 1 and 2 (Mathematica 12.0.0.0).
 
I don't know if this helps, but

Code:
Plot[2 JacobiSN[t, k]^2 + JacobiDN[t, k]^2, {t, 0, 10}]

does appear to be 1 for all values of t while 4 JacobiSN[t, k]^2 + JacobiDN[t, k]^2 is not.

I noticed that by plotting the two functions separately and guessing the needed scale factor.
 
Bill Simpson said:
I don't know if this helps, but

Code:
Plot[2 JacobiSN[t, k]^2 + JacobiDN[t, k]^2, {t, 0, 10}]

does appear to be 1 for all values of t while 4 JacobiSN[t, k]^2 + JacobiDN[t, k]^2 is not.

I noticed that by plotting the two functions separately and guessing the needed scale factor.
Do you mean ##k^2## instead of 4?