Comments: MathML + SVG for graphing a function, part one

Hi,

trying out your example, I get the following pop-up:

({x:3, 6
6
({x:3, y:{value:6}})
({x:4, y:{value:undefined}})
13
({x:4,y:{value:13}})

while mathTest01.xml only shows "xy23".

Using Firefox 1.5.0.6.

(From Alex: That's expected. The source code of the XML file shows what it's testing.)

Posted by zed at September 15, 2006 12:08 AM

You know, it wouldn't take much to give you a general purpose evaluator.

Posted by db48x at September 15, 2006 10:46 AM

In fact, see http://db48x.net/matheval/

Much more elegant and extendable.

Posted by db48x at September 15, 2006 12:38 PM

Sorry for the beginners question. I have the following problem with other MathML links too.
When I click on the link "a demo of contentMathEval.js" the only thing I see in the browser is an alert message box and then only the text "yx23" in the browser window. I'm using FF 1.5.0.7 on Win/2k and have already installed the MathML fonts.
I also have created some basic MathML docs and they work fine only when I name them with *.xhtml extension. If I use *.xml extension their display is not proper (I see only XML text - no any rendered MathML)

Thanks in advance!
sunsande

(From Alex: Part of the reason is that the document is using content MathML, as opposed to what Firefox expects, which is presentation MathML. As for the .xml problem, you need to load the MathML style sheet.)

Posted by sunsande at October 3, 2006 4:38 AM