Simple Equation
IntroductionOne of the biggest obstacles to using mathematical expressions on the web is that the user currently needs to worry about layout. Web users should not have to learn a layout engine. The class is built as a recursive parser. It is pretty easy to add operations to the parser, but it will not scale to a huge set of operations. That is OK, we want to keep things simple. At some point a layout engine may be required for a complexity level. This is not a layout engine. Currently, only graphical output is generated, but it is hoped that MathML output can be generated automatically if the browser supports it instead of the graphic. ThanksThanks goes to all of the people that have submitted bugs and feature requests. Thanks also to Randy Morrow for updating integral and derivative support and fixing a size bug. Demo:Source:Source is available. Here is a zip file. RequirementsSimple Equation requires PHP 4.2.0 or greater. Extension include: GD 2, libpng and FreeType (2.1.4 or greater). Transparency will not work on all browsers. The standard Windows fonts symbol.ttf, timesi.ttf and times.ttf are or equivalents required to render. These fonts can be changed in the render function. Changing the fonts may require a change in the map also in that function. Note: It is probably illegal to simply copy these from Windows to use on Linux. Design Science MathType Fonts provide eucsym.ttf to replace symbol.ttf, euclid.ttf to replace times.ttf, and euclidi.ttf to replace timesi.ttf. Symlinks are recommended to map these font files to the standard names. You should probably read the MathType Fonts License. Functions:
Parenthesis:visible () Greek letters:alpha is lowercase, Alpha is uppercase. If you want to send actual e-mail, think about this: My name is david and my domain is eder.us. |
Send me some bitcoins: 1PAc2UFS77zhsfdLz86rHynREXTKjWrRzY