#20330: hyperbolic_geodesic midpoint bugfix
-------------------------------------+-------------------------------------
Reporter: jhonrubia6 | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-7.2
Component: geometry | Resolution:
Keywords: hyperbolic | Merged in:
geometry, geodesic | Reviewers:
Authors: Javier Honrubia | Work issues:
González | Commit:
Report Upstream: N/A | 89500eb900f245d091afcc4461f4d8f19f6db5b9
Branch: | Stopgaps:
u/jhonrubia6/hyperbolic_geodesic_midpoint_bugfix|
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Replying to [comment:14 jhonrubia6]:
> On a related topic. If I check with number.Complex I get unwanted
results as in
> {{{
> sage: import numbers
> sage: from sage.rings.complex_number import ComplexNumber
> sage: Q = UHP.get_point(CC(sqrt(2)*(1+I)))
> sage: Q.coordinates()
> 1.41421356237309 + 1.41421356237309*I
> sage: isinstance(Q.coordinates(),numbers.Complex)
> False
> sage: isinstance(Q.coordinates(),ComplexNumber)
> True
> }}}
Which version of Sage are you using? On sage-7.2.beta6 complex numbers are
perfectly recognized by Python `numbers.Complex`:
{{{
sage: import numbers
sage: isinstance(CC(0,1), numbers.Complex)
True
sage: isinstance(CDF(0,1), numbers.Complex)
True
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/20330#comment:16>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.