On Oct 5, 3:08 am, "ma...@mendelu.cz" <ma...@mendelu.cz> wrote:
> On 4 říj, 14:57, Marshall Hampton <hampto...@gmail.com> wrote:
>
> > For the first time dealing with some of these things the IRC channel
> > sage-devel is very helpful. It would be great if you could do this.
> > I am happy to review it, you can put me as a CC: or reviewer. I think
> > your solution sounds good.
>
> > -Marshall Hampton
>
> I was too optimistic. The problem which I have to solve is one of the
> following problems
>
> * access konstants k1, k2 (or perhaps %k1, %k2) produced in Maxima
> from within Sage (solving was not successfull) -- I was not
> sucessfull to substitute initial conditions and solve for constants
>
> or
>
> * access expression like %e^(2*x) and pass it to Maxima. I was able
> only to get expression like e^(2*x) of the 2d representation involving
> %e, but not in one line -- I was not able to fix the call of ic2
> command (I tried something similar to the code in devel/sage/sage/
> interfaces/maxima.py )
As for this, you should be able to take a symbolic expression ex and
do ex._maxima_() to get an equivalent Maxima expression living in the
"calculus copy" of Maxima, which is the one that would be relevant
here since it "knows" some of the other things you've been up to in
calculus in that session. You shouldn't need to make any new custom
code; at worst, the existing expressions conversion code (also in a
few places in sage/symbolic/) might need upgrading. For instance, you
won't be able to do much with anything which needs to evaluate a
derivative at a point - see #385.
- kcrisman
- kcrisman
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---