#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 jhonrubia6):

 Replying to [comment:16 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
 > }}}
 I am not at my installation right now (I'll check later). I tried the
 previous code in cloud.sagemath.com
 {{{
 sage: import numbers
 sage: isinstance(CC(0,1), numbers.Complex)
 False
 sage: isinstance(CDF(0,1), numbers.Complex)
 False
 }}}
 But then, maybe cloud.sagemath.com is not in the appropiate version. As I
 said I'll check later

--
Ticket URL: <http://trac.sagemath.org/ticket/20330#comment:18>
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.

Reply via email to