The HTML Math library is a collection of PHP functions, which let to write complex mathematical formulae, not using images or plugins. The motivation to do so is to keep the web-math flexible and not dependent on some external web-services (for exampte, those, who offer generation of pictures with formulae based on some Tex or LaTex-based script).
Every HTML Math function gets a string argument and returns a string with some HTML-code, which aim is to arrange the argument some certain way. Some of the functions require additional arguments.
All functions can be arguments for each other. Here are some examples with PHP-code:
print (
Math_line (
Math_vect('c'),
' = ',
Math_vect('a'),
'×',
Math_vect('b'),
' = ',
Math_det( Math_indx1(Math_vect('e'),'x'), Math_indx1(Math_vect('e'),'y'), Math_indx1(Math_vect('e'),'z'),
Math_indx1('a','x'), Math_indx1('a','y'), Math_indx1('a','z'),
Math_indx1('b','x'), Math_indx1('b','y'), Math_indx1('b','z') )
)
);
--------------------
print (
Math_line(
Math_bigsign('{',600),
Math_list (
Math_line( Math_frac('x','6'), ' + ', Math_frac('2','3'), '(x − 7)