开发者

A PHP math expression generator?

开发者 https://www.devze.com 2023-04-09 09:52 出处:网络
I\'m looking for a plugin or function or whatever that can take -sin 3t + xy\' - (3t^2 - 5)/(18t) = 21

I'm looking for a plugin or function or whatever that can take

-sin 3t + xy' - (3t^2 - 5)/(18t) = 21

(negative sine of 3t plus x times y prime minus the quotient of the difference of 3 times t squared and 5 and 18t equa开发者_StackOverflow社区ls 21)

or

lim (x -> 0^-) ((3x+8)/x) = +inf

(the limit as x approaches 0 from the left of the quotient of the sum of 3x and 8 and x is positive infinity)

and generate an image that looks like a mathematical expression or equation. I have found another plugin that uses LaTeX but this seems needlessly complicated. I've seen simpler math expression generators; for example, I do my math homework online by plugging in operations similar to these and it formats the results correctly.

Any ideas?


So you want something to render a nice image for a math formula.

I've googled "php formula render" for you and found, so far, this: http://www.phpclasses.org/package/3612-PHP-Render-mathematical-formulas-as-images.html
Check it out :)

And this: http://www.xm1math.net/phpmathpublisher/
which looks fine. The language (see this guide) doesn't seem to be outstandingly simple but it is fairly easy I think.

This other stuff seems not in PHP; but you can try to figure out how it works: http://www.algebra.com/services/rendering/
Seems like you can just use the website itself to render the formulas. It's an outsourced service. If you plan to use it, please have a look at the terms of usage.

Hope it helps, man...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号