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

ComplexNumber function is wrong #24555

Closed
videlec opened this issue Jan 17, 2018 · 1 comment
Closed

ComplexNumber function is wrong #24555

videlec opened this issue Jan 17, 2018 · 1 comment

Comments

@videlec
Copy link
Contributor

videlec commented Jan 17, 2018

RealNumber in Sage is the class for floating-point real numbers. ComplexNumber is a function that aims to do the same for complex numbers but its implementation is very wrong.

sage: a = CC('1.233123145515341')
sage: b = ComplexNumber(a.real(), a.imag())
1.233123145515340
sage: ComplexNumber(a.real(), a.imag()) == b
False

We should either remove this function or improve it.

Component: basic arithmetic

Issue created by migration from https://trac.sagemath.org/ticket/24555

@videlec videlec added this to the sage-8.2 milestone Jan 17, 2018
@jdemeyer
Copy link

comment:1

Duplicate of #13110

@jdemeyer jdemeyer removed this from the sage-8.2 milestone Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants