-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in power series sqrt #3354
Comments
comment:1
Related:
|
Changed keywords from none to power series |
comment:7
Message fixed in #6998. |
comment:8
In the description there is
Note that the following works, but it is not very direct
|
comment:10
In the meantime the error changed to:
There are also these keywords to consider. However
So effectively the original issue (giving a correct result for |
comment:11
I also think the default of EDIT: typos |
This comment has been minimized.
This comment has been minimized.
This no longer happens (10.5.beta2) : sage: t = QQ[['t']].0
sage: sqrt(1+t)
1 + 1/2*t - 1/8*t^2 + 1/16*t^3 - 5/128*t^4 + 7/256*t^5 - 21/1024*t^6 + 33/2048*t^7 - 429/32768*t^8 + 715/65536*t^9 - 2431/262144*t^10 + 4199/524288*t^11 - 29393/4194304*t^12 + 52003/8388608*t^13 - 185725/33554432*t^14 + 334305/67108864*t^15 - 9694845/2147483648*t^16 + 17678835/4294967296*t^17 - 64822395/17179869184*t^18 + 119409675/34359738368*t^19 + O(t^20) Should be closed ? I'll stick my neck out and close it. |
AFAIU the part that didn't work was |
Now this error is expected because
sqrt()
has anextend
keyword that allows to extend the base ring, and to give the name of the generator of the quadratic field, but this does not work:The expected output would be
sqrt2 + sqrt2*x/4 + sqrt2*x^2/32 +...
However, more convenient would be to make the default of
extend
to beTrue
and for square roots of integersN
the namesqrtN
provided. Only raise an error for nonintegers if no name is given.Component: commutative algebra
Keywords: power series
Issue created by migration from https://trac.sagemath.org/ticket/3354
The text was updated successfully, but these errors were encountered: