PHP Classes

Render formula: Render mathematical formulas as images

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 973 All time: 3,726 This week: 524Up
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
Innovation award
Innovation award
Nominee: 1x

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:973
This week:0
All time:3,726
This week:524Up
User Comments (1)
Very useful script! Nice job
14 years ago (Lars Jaskulski)
70%StarStarStarStar