# [SciPy-User] why scipy.special.mathieu_cem is not periodic?

4 messages
Open this post in threaded view
|
Report Content as Inappropriate

## [SciPy-User] why scipy.special.mathieu_cem is not periodic?

 Dear all: I have a question regarding the special function scipy.special.mathieu_cem, why this function not periodic? I thought this function should have period pi when m is even, and 2*pi when m is odd, however this is not the case: x = np.linspace(0,10*np.pi,100) plt.plot(x,sp.mathieu_cem(3,3,x)[0]) plt.show() compare with mathematica, it clearly shows a period graph. To see the graph, I have the detailed post on stackoverflow. http://stackoverflow.com/questions/43615531/why-mathieu-function-in-scipy-not-periodicBest regards,  Ming _______________________________________________ SciPy-User mailing list [hidden email] https://mail.python.org/mailman/listinfo/scipy-user
Open this post in threaded view
|
Report Content as Inappropriate

## Re: why scipy.special.mathieu_cem is not periodic?

 Did you see the answer on stackoverflow?DLGOn Tue, Apr 25, 2017 at 9:10 AM Ming Lu <[hidden email]> wrote:Dear all: I have a question regarding the special function scipy.special.mathieu_cem, why this function not periodic? I thought this function should have period pi when m is even, and 2*pi when m is odd, however this is not the case: x = np.linspace(0,10*np.pi,100) plt.plot(x,sp.mathieu_cem(3,3,x)[0]) plt.show() compare with mathematica, it clearly shows a period graph. To see the graph, I have the detailed post on stackoverflow. http://stackoverflow.com/questions/43615531/why-mathieu-function-in-scipy-not-periodic Best regards,  Ming _______________________________________________ SciPy-User mailing list [hidden email] https://mail.python.org/mailman/listinfo/scipy-user _______________________________________________ SciPy-User mailing list [hidden email] https://mail.python.org/mailman/listinfo/scipy-user
Open this post in threaded view
|
Report Content as Inappropriate

## Re: why scipy.special.mathieu_cem is not periodic?

 The period seems more in scipy than in mathematica, even after converting to degrees. On 4/26/17, David Goldsmith <[hidden email]> wrote: > Did you see the answer on stackoverflow? > > DLG > > On Tue, Apr 25, 2017 at 9:10 AM Ming Lu <[hidden email]> wrote: > >> Dear all: >> >> I have a question regarding the special function >> scipy.special.mathieu_cem, why this function >> not periodic? I thought this function should have period pi when m is >> even, and 2*pi when m >> is odd, however this is not the case: >> >> x = np.linspace(0,10*np.pi,100) >> plt.plot(x,sp.mathieu_cem(3,3,x)[0]) >> plt.show() >> >> compare with mathematica, it clearly shows a period graph. >> >> To see the graph, I have the detailed post on stackoverflow. >> >> >> http://stackoverflow.com/questions/43615531/why-mathieu-function-in-scipy-not-periodic>> >> Best regards, >>  Ming >> _______________________________________________ >> SciPy-User mailing list >> [hidden email] >> https://mail.python.org/mailman/listinfo/scipy-user>> > -- Regards,    Ming Lu ---- Ming Lu, graduate student of  second year, ICQM, Peking University _______________________________________________ SciPy-User mailing list [hidden email] https://mail.python.org/mailman/listinfo/scipy-user