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
sage: v=vector(QQ,[1,2,3]) sage: v.n() --------------------------------------------------------------------------- <type 'exceptions.TypeError'> Traceback (most recent call last) /home/grout/sage/devel/sage-main/sage/graphs/<ipython console> in <module>() /home/grout/sage/devel/sage-main/sage/graphs/element.pyx in sage.structure.element.Element.n() /home/grout/sage/local/lib/python2.5/site-packages/sage/misc/functional.py in numerical_approx(x, prec, digits) 731 return sage.rings.real_mpfr.RealField(prec)(x) 732 except TypeError: --> 733 return sage.rings.complex_field.ComplexField(prec)(x) 734 735 n = numerical_approx /home/grout/sage/local/lib/python2.5/site-packages/sage/rings/complex_field.py in __call__(self, x, im) 179 except AttributeError: 180 pass --> 181 return complex_number.ComplexNumber(self, x, im) 182 183 def _coerce_impl(self, x): /home/grout/sage/devel/sage-main/sage/graphs/complex_number.pyx in sage.rings.complex_number.ComplexNumber.__init__() <type 'exceptions.TypeError'>: unable to coerce to a ComplexNumber
I'm not sure what it should do, but maybe call n() on each entry would make sense.
Component: linear algebra
Issue created by migration from https://trac.sagemath.org/ticket/1294
The text was updated successfully, but these errors were encountered:
Attachment: 1294.patch.gz
Sorry, something went wrong.
Frustrating that the same snippet of code is duplicated, but this is the correct way to fix this. Apply.
Merged in Sage 2.10.1.alpha1
mwhansen
No branches or pull requests
I'm not sure what it should do, but maybe call n() on each entry would make sense.
Component: linear algebra
Issue created by migration from https://trac.sagemath.org/ticket/1294
The text was updated successfully, but these errors were encountered: