#4367: plot gamma bug
----------------------+-----------------------------------------------------
 Reporter:  jvoight   |       Owner:  was     
     Type:  defect    |      Status:  new     
 Priority:  major     |   Milestone:  sage-3.2
Component:  graphics  |    Keywords:          
----------------------+-----------------------------------------------------
 {{{
    sage: plot(gamma(x),(x,1,5))
 }}}

 Gives error.

 {{{
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/home/jvoight/.sage/sage_notebook/worksheets/jvoight/10/code/18.py", line
 6, in <module>
     plot(gamma(x),(x,Integer(1),Integer(5)))
   File "/usr/local/sage/local/lib/python2.5/site-
 packages/SQLAlchemy-0.4.6-py2.5.egg/", line 1, in <module>

   File "/usr/local/sage/local/lib/python2.5/site-
 packages/sage/functions/transcendental.py", line 106, in gamma
     return CC(s).gamma()
   File "/usr/local/sage/local/lib/python2.5/site-
 packages/sage/rings/complex_field.py", line 211, in __call__
     return x._complex_mpfr_field_( self )
   File "/usr/local/sage/local/lib/python2.5/site-
 packages/sage/calculus/calculus.py", line 1451, in _complex_mpfr_field_
     raise TypeError
 TypeError
 }}}

 There seems to be some confusing type error in coercion between floats and
 complex numbers.

 JV

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4367>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to