PHP Classes

Render formula: Render mathematical formulas as images

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 973 This week: 1All time: 3,725 This week: 560Up
Version License PHP version Categories
renderformula 1.0.0Free for non-comm...4.0Graphics, Math
Description 

Author

This class can be use to render mathematical formulas as graphical images.

It parses a formula with constant and variable values combined with several possible mathematical operations.

Currently it supports formulates using the operations: addition, subtraction, multiplication, division, and functions like square root, sin arc sin, cosine, and power.

Then it renders the given formula in an GD library image. It uses a given True-Type font to render the formula characters.

The class returns a GD library image resource handle that can be used to output the formula image in any format supported by the GD library.

Innovation Award
PHP Programming Innovation award nominee
January 2007
Number 7
Mathematical formulas are often used in scientific documents.

The formulas need to be parsed and rendered in a special way to be presented adequately, using special layout methods and fonts that are not always available with all browsers.

This class can render mathematical formulas using server side generated images. This way it can display the formulas so they appear correctly in all browsers.

Manuel Lemos
Picture of Aresch Yavari
Name: Aresch Yavari <contact>
Classes: 4 packages by
Country: Germany Germany
Age: ???
All time rank: 33217 in Germany Germany
Week rank: 416 Down16 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • renderformula
  Files folder image Files  
File Role Description
Plain text file class.formel.php Class main renderformular-Class
Plain text file formelimage.php Example example usage of class-file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:973
This week:1
All time:3,725
This week:560Up
User Comments (1)
Very useful script! Nice job
13 years ago (Lars Jaskulski)
70%StarStarStarStar