On Tue, Jun 2, 2009 at 3:16 AM, janwillem <jwevand...@xs4all.nl> wrote:
>
> A few month ago I had a script that returned "-
> rho*sigma_f*sigma_n" (without the quotes) which with sympy.latex print
> a nice formula. Now, after a holiday and a complete reinstall of my
> laptop (ubuntu 9.04, python 2.6.2) the script returns
> "-1.00000000000000*rho*sigma_f*sigma_n" which prints equally ugly in
> latex. How do I get rid of this 1.00000000000000?

Just install our git repo:

http://git.sympy.org/?p=sympy.git;a=tree

(choose tgz or zip), or just clone it.


In [1]: var("rho sigma_f sigma_n")
Out[1]: (ρ, σ_f, σ_n)

In [2]: -1.0*rho*sigma_f*sigma_n
Out[2]: -1.0⋅ρ⋅σ_f⋅σ_n

If you want to also get rid of 1.0, then you need to post your script,
becaues it's using floating point numbers somewhere.


Ondrej
Ondrej

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to