thanks for your kind help ! then it is surely a bug of the parser.
 




At 2014-11-27 21:29:16, "Francesco Bonazzi" <franz.bona...@gmail.com> wrote:



On Thursday, November 27, 2014 2:28:11 PM UTC+1, Francesco Bonazzi wrote:


your_mathematica_expr ='((-2x+5)(4x-1)-4(-x^2+5x+1))/(4x-1)^2'
new_math_expr = re.sub("([0-9])\ *([a-zA-Z])","\\1 * \\2", 
your_mathematica_expr)
M(new_math_expr)




Remember import re to use the re module.


--
You received this message because you are subscribed to a topic in the Google 
Groups "sympy" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/sympy/R5r3lWAc2jo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/094ec242-37e7-42c4-80c9-497f30e447b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/2c12b5fa.14383.149f459946d.Coremail.redstone-cold%40163.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to