Hi all
When running in GAE, i get the error "Cannot import module simpify", while
in local it runs great. Is any other way to proceed with sympy without
making use of simpify? I've read it's a parser problem
here<https://code.google.com/p/googleappengine/issues/detail?id=1468>,
but I'm missing something beacuse for example the sympy live runs on GAE.
More details about what I need to do. I want to make math worksheets, so I
need to deal with algebraic expressions and then susbtitute variables by
concrete values, both to calculate the result and to print the latex
expression. Here is an example to print 1/2+2/4 from the expression a/b+c/d
and calculating the result (3/4)
a,b,c,d = symbols('a b c d')
fvars = [a,b,c,d]
values = [1,4,2,4]
exp=sympify('a/b + c/d')
res=nsimplify(exp.evalf(subs = dict(zip(fvars,values)))) #this is the
result: 3/4
a = sympify(1)
b = sympify(4)
c = sympify(2)
d = sympify(4)
exp=exp.subs([(var, Symbol("%s" % i)) for var, i in zip(fvars, values)])
straux=urllib.quote(printing.latex(exp))
strchart='http://chart.apis.google.com/chart?cht=tx&chs=140x50&chf=bg,s,FFFFFF00&chl='
+ straux
--
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.