On Tue, May 6, 2008 at 11:41 PM, Amir <[EMAIL PROTECTED]> wrote:
>
>
>  Can I start a Sage session from C?

Yes in theory.  See this:

http://docs.python.org/ext/embedding.html

I have *never* done this, nor have I ever seen a demo of this in Sage.
So don't think it will be very easy.  I.e., it might be a pretty complicated.
You should definitely try Mike Hansen's suggestion in this thread first.

> I would need to pass commands, set
>  and get variables, and cleanly terminate the session. I would like to
>  do this as a mathlink module to call Sage from Mathematica. I'm new to
>  Sage and python.
>
>  Thanks,
>  Amir.
>
>  >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to