Changes between Version 2 and Version 3 of Ticket #16813, comment 52


Ignore:
Timestamp:
03/14/15 09:31:35 (5 years ago)
Author:
mmezzarobba
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16813, comment 52

    v2 v3  
    55sage: legendre_P(10, polygen(CC, 'x'), algorithm='pari')
    66180.425781250000*x^10 - 427.324218750000*x^8 + 351.914062500000*x^6 - 117.304687500000*x^4 + 13.5351562500000*x^2 - 0.246093750000000
     7sage: legendre_P(10, polygen(CC, 'x'), coerce=False)
     8...
     9TypeError: arguments must be symbolic expressions
     10sage: legendre_P(10, polygen(CC, 'x'), algorithm='pari', coerce=False)
     11180.425781250000*x^10 - 427.324218750000*x^8 + 351.914062500000*x^6 - 117.304687500000*x^4 + 13.5351562500000*x^2 - 0.246093750000000
    712sage: legendre_P(10, polygen(RIF, 'x'))
    81346189/256*(x)^10 - 109395/256*(x)^8 + 45045/128*(x)^6 - 15015/128*(x)^4 + 3465/256*(x)^2 - 63/256
    914}}}
     15
     16Is the idea that calls to `legendre_P(n, x)` with no `algorithm` keyword will always take the branch corresponding to `x` in `SR`, but the user can obtain faster evaluations at integers etc. by specifying `algorithm='pari'` is they know what they are doing?