Trying to write mathematical notation on a Web page can be quite an tiring experience. Even putting a variable in italics requires the addition of seven extra glyphs: <i>x</i> just to get x. When it comes to writting an expression of the form
~y^2 _ = _ 2 ~d ( 1 + ~e ) rndb{ ~x + fract{~d,1 - ~e} } _ - _ ( 1 - ~e^2 ) script{rndb{ ~x + fract{~d,1 - ~e} },,, 2,}
You'll probably spend all afternoon.
You could use one of the many (excellent) tools to render your expressions as a graphic, which would then be included in your Web page as an image, but this increases the number fo files you have to keep track of, and makes changes very difficult to handle.
Mathyma provides a solution where you write your mathematics directly into the HTML code, in a simple syntax which is very close to mathematical notation. This has several advantages:
Mathyma provides a JavaScript module to translate your mathematical notation. This module makes use of the Document Object Model (DOM) (hence the name: MathymaDom.js). It comprises of one basic function, called translateDoc(), which is executed on load of the BODY section of the page (see how to achieve this later). The function then analyses the whole document, looking for any DIV belonging to the class "mathyma". Any text in this section is then parsed and the result added to the DOM, so you get fully formatted mathematical notation on your Web page.
To take advantage of Mathyma on your own Web page, there are some simple steps to follow:
. . . < script src="MathymaWrite.js" type="text/javascript" > < /script > . . .
. . . < div class="mathyma ">  . . . all text in this section will be translated < /div >
Mathyma syntax is described below, and documented in full over the next few pages.
In a nutshell, Mathyma does four things to the text it translates:
a =< b _ <=> _ b >= abecomes
a =< b _ <=> _ b >= a |
#~v _ = _ ( ~v_1 , ~v_2 , ... , ~v_~n )to get
#~v _ = _ ( ~v_1 , ~v_2 , ... , ~v_~n ) |
fract{~a + ~b,~c - ~d}to get
fract{~a + ~b,~c - ~d} |
You can put template within templates etc., and build up some very complicated formats.
&alpha. , &beta. , &gamma. &in. &Pi.
&alpha. , &beta. , &gamma. &in. &Pi. |
If you would like to see what can really be achieved using Mathyma, then take a look at the extensive maths (math) and statistics notes on this Web-site. These cover a wide range of different topics, and apart from being a resource in themselves should give you an idea of what you can achieve with Mathyma.