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

sqrt and log of rational series #18

Open
Sergey-A-Dovgal opened this issue Jul 21, 2021 · 0 comments
Open

sqrt and log of rational series #18

Sergey-A-Dovgal opened this issue Jul 21, 2021 · 0 comments

Comments

@Sergey-A-Dovgal
Copy link

Sergey-A-Dovgal commented Jul 21, 2021

It seems that if one of the coefficients of a rational power series is a non-integer then the condition that the constant term is one, fails.

Example.

import flint

QQ = flint.fmpq
log = flint.fmpq_series.log

# this one works ok
print(log(flint.fmpq_series([1,1])))

# here is I get ValueError: log() of power series: constant term must be one
print(log(flint.fmpq_series([1,1,QQ(3,8)])))

The same goes with sqrt.

My best guess is that it is because fmpq series is represented as a fraction, and it thinks that the leading term is equal to 8.

My flint version is 2.7.1, and python-flint is 0.3.0

Cheers

@Sergey-A-Dovgal Sergey-A-Dovgal changed the title sqrt anf log of rational series sqrt and log of rational series Jul 21, 2021
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