#10285: Adding support to an ARM processor
----------------------+-----------------------------------------------------
Reporter: Snark | Owner: GeorgSWeber
Type: defect | Status: new
Priority: major | Milestone:
Component: build | Keywords: ARM
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------+-----------------------------------------------------
Comment(by Snark):
I tried to track the issue of gamma(float(6)) not being equal enough to
120 (sic).
The ptestlong log points to devel/sage-main/sage/functions/other.py ;
where I learn gamma is a !GinacFunction 'tgamma' ; ginac is implemented in
the pynac-0.2.1 package. Notice that if I call gamma(float(6), prec=10)
then I get to call the mpmath version which returns the correct result.
In the pynac-0.2.1 package, things get hairy, but it seems I end up
calling Number_T::tgamma, which is just py_funcs.py_tgamma. Of course,
py_funcs is only declared in the pynac package, so hunting where it is
wasn't that simple.
I managed to find the trail again by checking which packages depend on
pynac in spkg/standard/deps : none. So I turned to sage-4.6, where I found
: py_funcs.py_tgamma = &py_tgamma, implemented in
./sage/symbolic/pynac.pyx, where as far as I understand, since float(6) is
a float, I guess the type checking leads me to sage_tgammal, which is
defined in ./sage/symbolic/pynac_cc.h ; since I'm not running cygwin, this
function is just calling tgammal... which is in math.h.
And I checked that this tgammal returns 120 with a printf ("%Lg\n",
tgammal(6.)); ... so I'm a little at loss to where the error can come
from.
Where did I fail in my search?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10285#comment:25>
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 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.