#12455: Make Airy functions symbolic
-------------------------------------+-------------------------------------
Reporter: olazo | Owner: olazo
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: symbolics | Resolution:
Keywords: Airy functions | Merged in:
sd40.5 sd48 | Reviewers: Eviatar Bach, Karl-
Authors: Oscar Gerardo | Dieter Crisman, Burcin Erocal, Ralf
Lazo Arjona, Benjamin Jones, D. | Stephan
S. McNeil, Eviatar Bach, Ralf | Work issues:
Stephan | Commit:
Report Upstream: N/A | fbd6c357dfdba94d7630d6f2becb411f6169f004
Branch: | Stopgaps:
public/ticket/12455 |
Dependencies: #12289 |
-------------------------------------+-------------------------------------
Description changed by jdemeyer:
Old description:
> As discussed in [http://groups.google.com/group/sage-
> support/browse_thread/thread/f458d0f9cfd89c9a sage-support].
>
> Currently sage can evaluate airy functions numerically:
> {{{
> sage: airy_ai(1.4)
> 0.0820380498076
> }}}
>
> but it doesn't work symbolically
>
> {{{
> sage: airy_ai(x)
> ---------------------------------------------------------------------------
> TypeError Traceback (most recent call
> last)
>
> /home/oscar/Escritorio/tesis/calculos/<ipython console> in <module>()
>
> /home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
> packages/sage/functions/special.pyc in airy_ai(x)
> 621 """
> 622 _init()
> --> 623 return RDF(meval("airy_ai(%s)"%RDF(x)))
> 624
> 625 def airy_bi(x):
>
> /home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
> packages/sage/structure/parent.so in
> sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7102)()
>
> /home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
> packages/sage/structure/coerce_maps.so in
> sage.structure.coerce_maps.NamedConvertMap._call_
> (sage/structure/coerce_maps.c:4221)()
>
> /home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
> packages/sage/symbolic/expression.so in
> sage.symbolic.expression.Expression._real_double_
> (sage/symbolic/expression.cpp:5391)()
>
> /home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
> packages/sage/symbolic/expression.so in
> sage.symbolic.expression.Expression._eval_self
> (sage/symbolic/expression.cpp:4898)()
>
> TypeError: Cannot evaluate symbolic expression to a numeric value.
> }}}
>
> We should make it symbolical for both airy_ai and airy_bi, as well as
> their derivatives.
>
> ----
>
> Apply
>
> * [attachment:trac_12455-newstyle-airy-rebase.patch]
> * [attachment:trac_12455-newstyle-airy2-rebase.patch]
> * [attachment: trac_12455-airy_review.patch]
New description:
As discussed in [http://groups.google.com/group/sage-
support/browse_thread/thread/f458d0f9cfd89c9a sage-support].
Currently sage can evaluate airy functions numerically:
{{{
sage: airy_ai(1.4)
0.0820380498076
}}}
but it doesn't work symbolically
{{{
sage: airy_ai(x)
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/oscar/Escritorio/tesis/calculos/<ipython console> in <module>()
/home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
packages/sage/functions/special.pyc in airy_ai(x)
621 """
622 _init()
--> 623 return RDF(meval("airy_ai(%s)"%RDF(x)))
624
625 def airy_bi(x):
/home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
packages/sage/structure/parent.so in sage.structure.parent.Parent.__call__
(sage/structure/parent.c:7102)()
/home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
packages/sage/structure/coerce_maps.so in
sage.structure.coerce_maps.NamedConvertMap._call_
(sage/structure/coerce_maps.c:4221)()
/home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
packages/sage/symbolic/expression.so in
sage.symbolic.expression.Expression._real_double_
(sage/symbolic/expression.cpp:5391)()
/home/oscar/sage/sage-4.7.1/local/lib/python2.6/site-
packages/sage/symbolic/expression.so in
sage.symbolic.expression.Expression._eval_self
(sage/symbolic/expression.cpp:4898)()
TypeError: Cannot evaluate symbolic expression to a numeric value.
}}}
We should make it symbolical for both airy_ai and airy_bi, as well as
their derivatives.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/12455#comment:64>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.