On Sun, Jul 12, 2009 at 3:49 PM, Christophe<[email protected]> wrote:
>
> Ondrej Certik a écrit :
>> On Sun, Jul 12, 2009 at 3:33 PM, Christophe<[email protected]> wrote:
>>
>>> Hello,
>>> I would like to use in my own code the output of print_mathml. Is it
>>> possible ?
>>>
>>
>> Yes:
>>
>> In [1]: from sympy.printing.mathml import mathml
>>
>> In [2]: mathml(x**2 * sin(y))
>> Out[2]:
>> <apply><times/><apply><power/><ci>x</ci><cn>2</cn></apply><apply><sin/><ci>y</
>> ci></apply></apply>
>>
>>
>>
> Thanks.
>
>>> Is there a pure ASCII printer ?
>>>
>>
>> You mean ascii art? Yes, the pprint().
>>
>> Ondrej
> A printer that only use keyboard characters so as to have a formula that
> can be read by a very simple editor. Is pprint do that ? Is there an
> equilent of the lines given by you for mathml ?

yes, see here:

http://docs.sympy.org/tutorial.html#printing

Ondrej

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to