|
|
Eval API
The simplified Eval API lets you dynamically generate calculation forms. To see the Eval API in action, open up a browser window and copy the following URL into it:
Press the Enter or Return key and you should see the following calculator form in your browser (here included as an <iframe>): On testiphone.com you can try the same example online in an iPhone simulator (you should use the Safari browser to get the real experience). The eval tagThe wiki syntax to create the URL looks like this:
<eval ci="x1:X value:i:10|y1:Y value:i:2"
ca="x!:x1!|Fibonacci[x]:Fibonacci[x1]|Binomial[x,y]:Binomial[x1,y1]">
Combinatoric Numbers
</eval>
The <eval> tag creates a link to an URL which will generate a dynamic calculator input form on the matheclipse.org/eval.jsp page. The sample tagYou can include the evaluation page in a wiki page with the followig wiki syntax:
<sample ci="x1:X value:i:10|y1:Y value:i:2"
ca="x!:x1!|Fibonacci[x]:Fibonacci[x1]|Binomial[x,y]:Binomial[x1,y1]" />
Example pages with embedded sample calculators (click the Show Sample link at the top of the pages): The attribute are defined similar to the eval tag attributes. The sample tag creates an HTML iframe which will show the dynamically generated calculator input form from the matheclipse.org/eval.jsp page. Example URLs
<eval ci="x1:X-value:i:10|y1:Y-value:i:2"
ca="x!:x1!|Fibonacci[x]:Fibonacci[x1]|Binomial[x,y]:Binomial[x1,y1]">
Combinatoric Numbers
</eval>
<eval ci="s1:Sequence:i:a,b,c|n1:N-value:i:3"
ca="NumberPartitions:NumberPartitions[n1]|Permutations:Permutations[{s1}]|KPartitions:KPartitions[{s1},n1]">
Combinatoric Sequences
</eval>
<eval ci="ta1:Insert an expression depending on <b>x</b>:t:4+x^2+2*x+3*x^3"
ca="Differentiate:D[ta1,x]|Integrate:Integrate[ta1,x]|Factor:Factor[ta1]">
Calculus
</eval>
<eval ci="ta1:Insert an expression for evaluation:t:D[Sin[x]*Cos[x],x]"
ca="Symbolic:ta1|Numeric:N[ta1]">
General Input Form
</eval>
|
||
|
All contents copyright of the author. ©2007. JAMWiki Version 0.6.0 |
|||