# Evaluating the error "Can only substitute elements of positive valuation" I'm trying to work with sage's weierstrass_p function for elliptic curves, and I'm getting an error that I can't interpret.

This is what I'm running,

E = EllipticCurve('11a1')
WP = E.weierstrass_p()
L = E.lseries()
WP(L(1))


The error I'm getting is "Can only substitute elements of positive valuation"

And I just don't know why sage doesn't want to evaluate the function at the given value. Any thoughts would be really appreciated!

edit retag close merge delete

WP is not a function, but a power series

sage: WP
z^-2 + 31/15*z^2 + 2501/756*z^4 + 961/675*z^6 + 77531/41580*z^8 + 1202285717/928746000*z^10 +
2403461/2806650*z^12 + 30211462703/43418875500*z^14 + 3539374016033/7723451736000*z^16 +
413306031683977/1289540602350000*z^18 + O(z^20)


Is there no way to evaluate, even if it's just a numeric approximation the power-series at a value of z?

Sort by » oldest newest most voted

Is the following numerically good enough?

E  = EllipticCurve('11a1')
L  = E.lseries()
WP = E.weierstrass_p( prec=40 ).laurent_polynomial()
WP( L(1) )


Result:

15.6666666666667

more