Skip to content
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

Exponential of constant polynomial #1581

Open
fredrik-johansson opened this issue Nov 20, 2023 · 0 comments
Open

Exponential of constant polynomial #1581

fredrik-johansson opened this issue Nov 20, 2023 · 0 comments

Comments

@fredrik-johansson
Copy link
Contributor

A user reported this:

julia> F=Nemo.AcbField(20)
Complex Field with 20 bits of precision and error bounds

julia> S1, x = PowerSeriesRing(F, 3, "x")
(Univariate power series ring over complex Field with 20 bits of precision and error bounds, x + O(x^4))

julia> exp(1+x)
[2.71828 +/- 4.63e-6] + [2.71828 +/- 4.63e-6]*x + [1.35914 +/- 2.32e-6]*x^2 + O(x^3)

julia> P,a=AbstractAlgebra.PolynomialRing(F,["a"])
(Multivariate polynomial ring in 1 variable over complex Field with 20 bits of precision and error bounds, AbstractAlgebra.Generic.MPoly{acb}[a])

julia> S2, y = PowerSeriesRing(P, 3, "y")
(Univariate power series ring over multivariate polynomial ring, y + O(y^4))

julia> exp(1+y)
ERROR: Exponential of nonzero element

One could define exp() and similar functions for constant polynomials to act on the constant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant