We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example,
In [22]: a = RootOf(4*x**2 + 2*x + 1, 0) In [23]: A = QQ.algebraic_field(a) In [24]: A.from_expr(a) Out[24]: ___ 1 ╲╱ 3 ⋅ⅈ - ─ - ─────── 4 4 In [25]: _.denominator Out[25]: mpz(4) In [26]: a Out[26]: ___ 1 ╲╱ 3 ⋅ⅈ - ─ - ─────── 4 4
Correct answer is 2. E.g. see the Mathematica:
In[1]:= AlgebraicNumberDenominator[-1/4 - 1/4*3^(1/2)*I] Out[1]= 2
Refs Arno1996alg has correct implementation.
Arno1996alg
It worth also investigating if making the primitive element to be an algebraic integer - a good idea.
The text was updated successfully, but these errors were encountered:
domains: Fix AlgebraicElement.denominator
f5eb469
Closes diofant#1008
Or we might try to drop the need for this (numerator/denominator are for the rootisolation, which invokes clear_denoms()).
Sorry, something went wrong.
5649c4a
4ac31c0
d76484c
17a85d0
No branches or pull requests
For example,
Correct answer is 2. E.g. see the Mathematica:
Refs
Arno1996alg
has correct implementation.It worth also investigating if making the primitive element to be an algebraic integer - a good idea.
The text was updated successfully, but these errors were encountered: