First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The link from Maxima's assoc_legendre_p to Sage's gen_legendre_p will be done by ticket #16813 (among many other things). Until then you must do manually sage: assoc_legendre_p = gen_legendre_P sage: print (-1/2*sqrt(3)*assoc_legendre_p(1/2, -1, -5/3)).n() ... TypeError: no conversion of this rational to integer which however shows that Maxima itself cannot handle the function with non-integer index. Using the branch in the ticket gives sage: assoc_legendre_p = gen_legendre_P sage: sage: print (-1/2*sqrt(3)*assoc_legendre_p(1/2, -1, -5/3)).n() -0.483843755630126 + 0.369716687246133*I

click to hide/show revision 2
No.2 Revision

The link from Maxima's assoc_legendre_p to Sage's gen_legendre_p will be done by ticket #16813 (among many other things). Until then you must do manually manually

 sage: assoc_legendre_p = gen_legendre_P
sage: print (-1/2*sqrt(3)*assoc_legendre_p(1/2, -1, -5/3)).n()
...
TypeError: no conversion of this rational to integer

which however shows that Maxima itself cannot handle the function with non-integer index. Using the branch in the ticket gives gives

 sage: assoc_legendre_p = gen_legendre_P
sage: sage: print (-1/2*sqrt(3)*assoc_legendre_p(1/2, -1, -5/3)).n()
-0.483843755630126 + 0.369716687246133*I

click to hide/show revision 3
No.3 Revision

The link from Maxima's assoc_legendre_p to Sage's gen_legendre_p will be done by ticket #16813 (among many other things). Until then you must do manually

sage: assoc_legendre_p = gen_legendre_P
sage: print (-1/2*sqrt(3)*assoc_legendre_p(1/2, -1, -5/3)).n()
...
TypeError: no conversion of this rational to integer

which however shows that Maxima itself cannot handle the function with non-integer index. Using the branch in the ticket gives

sage: assoc_legendre_p = gen_legendre_P
sage: sage: print (-1/2*sqrt(3)*assoc_legendre_p(1/2, -1, -5/3)).n()
-0.483843755630126 + 0.369716687246133*I
click to hide/show revision 4
No.4 Revision

The link from Maxima's assoc_legendre_p to Sage's gen_legendre_pgen_legendre_P will be done by ticket #16813 (among many other things). Until then you must do manually

sage: assoc_legendre_p = gen_legendre_P
sage: print (-1/2*sqrt(3)*assoc_legendre_p(1/2, -1, -5/3)).n()
...
TypeError: no conversion of this rational to integer

which however shows that Maxima itself cannot handle the function with non-integer index. Using the branch in the ticket gives

sage: assoc_legendre_p = gen_legendre_P
sage: print (-1/2*sqrt(3)*assoc_legendre_p(1/2, -1, -5/3)).n()
-0.483843755630126 + 0.369716687246133*I