On Friday, 6 June 2014 23:18:19 UTC+2, Peter wrote: > > Hallo everybody, > > I'm sorry for this question, but I'm not realy familar with Python. > Normally I'm working with PHP and JavaScript, but for my recent project I > have to integrate some symbolic math to a webpage. > In an Internet search, I came across Sympy. And sympy looks quite good. > My problem looks like this: > > The user should enter a formula in a field. > The value of the imput field has to be the formula that should be > evaluated. > The value of the field should be posted to sympy. (Am I right, that this > will work with django oder a simple jquery call? Can anybody give me an > example, how to do so?) > Sympy has to evaluate the posted formula. > The return value should be posted back to JavaScript. > > Can anyone please tell me how I can implement this. > > Thanks a lot! > Peter >
You should look into sympy gamma. If you just want a small hack in your django codebase I would look at: http://docs.sympy.org/dev/modules/parsing.html and then maybe return the results as latex and use mathjax to render it nicely on the client side. -- 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/e7d85f48-f576-4777-97d7-2e8b7fc538a4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.