On 15 mai, 23:40, "Aaron S. Meurer" <[email protected]> wrote:
> Go ahead and create an issue for it.  If you can push the changes up to 
> github, that would also make things easier.

There is no need to have a certain status to push? Also is it not
preferable to wait that my code is almost done?

The issue is here: http://code.google.com/p/sympy/issues/detail?id=1940

>
> On May 15, 2010, at 3:34 PM, Harold E. wrote:
>
>
>
> > I made a lot of progress and I think the code is almost finished, but
> > I have some troubles and need some reviews, to be sure that the
> > implementation goes on the right way. Should I open an issue to show
> > the code I made until yet?
>
> > I have some problems to simplify expression:
> >>>> a = Symbol('a')
> >>>> T = 3.155815e7*s
> >>>> M = 1.988435e30*kg
> >>>> aa = solve(T**2/a**3 - 4*pi**2 / G / M, a)
> >>>> res = aa[1].evalf()
> >>>> res
> > 149598206033.591*kg**-1/3*kg**1/3*m*s**-2/3*s**2/3
> >>>> res.args
> > (149598206033.591, kg**-1/3, kg**1/3, m, s**-2/3, s**2/3)
> >>>> type(res)
> > <class 'sympy.core.mul.Mul'>
>
> This is strange.  How do you have the units implemented?  Are they Symbols, 
> or something else?  Does it cancel if you do res = Mul(*res.args)?
>
> Aaron Meurer
>

I have copied the previous unit class, so Unit inherits from Atom and
Expr classes.
res = Mul(*res.args) gives the same result.

Harold

-- 
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