#237: Add inverse expression/equation identifier capability to Sage
-------------------------------+--------------------------------------------
Reporter: was | Owner: was
Type: enhancement | Status: new
Priority: minor | Milestone: sage-wishlist
Component: interfaces | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Keshav Kini | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Comment (by ncohen):
Ok, then let's work hard so that you could have used it last week `:-P`
Well, I wrote a few lines of code and it "works", but there are some
problems for which I would like everybody's advice.
{{{
sage: ask_ISC(3.14)
Asking ISC what it knows about 3.14000000000000
No result found in ISC
}}}
That's the first problem : 3.14, for Sage, is equal to 3.1400000000.
Which, for ISC, is totally different.
There's a way out if we only feed the function with a string instead, but
it's not a good way out for it should ultimately be a method of Sage
constants...
Second problem, which is just technical : where should this method appear
? Where in the code ? Or should it appear nowhere, and just be available
as a function in a module ?
Then, the output.
{{{
sage: ask_ISC("3.14")
Asking ISC what it knows about 3.14
3140000117869847 sin(Pi*4/35)*sin(Pi*19/54)
3140000181376111 Lehmer^sr(Pi)/2^(1/3)
3140000375403483 sum(1/(5^n+(31/2*n^2-27/2*n+51)),n=1..inf)
3140000446459760 (K(1/sr(2))+GAM(5/24))^Golomb
3140000895104510 GAM(2/3)-Li4(1/2)^ln(Pi)
3140001879986726 (exp(1/Pi)+5)/(-arctan(1/2)+2/3)
...
}}}
I don't think that it would make sense to return a Python object for I
have no idea what one could want to do with it automatically. Most of the
symbolic formulas have no meaning in Sage, so it's really just for the
user to see. Right now the method returns nothing and just prints the
result. The only think that may be cool to add would be a nice way to
display such results in the notebook, but I would like to hear your advice
on the possible outputs too `:-)`
And you can try this small patch if you want in the meantime.
Have fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuunnn !!!
Nathann
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/237#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 http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.