Is this the desired behavior of parse_expr?

In [16]: parse_expr("2log(x)", transformations=(standard_transformations+ 
(implicit_multiplication,)))
Out[16]: 2⋅og⋅x

In [17]: parse_expr("2log(x)", transformations=(standard_transformations+ 
(implicit_multiplication_application,)))
Out[17]: 2⋅g⋅o⋅x

It appears that the "l" from log gets sucked into the 2 turning it into 2L 
and leaving just og(x) left over.  Putting a space between 2 and log(x) 
fixes the problem.

I'd consider this unintuitive behavior and confusing to users. Would it 
make sense to group the "l" with the "log" in this case?

Duane

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to