Répondre à : mathml input et tableau de variation

Accueil Forums Programmation WIMS Programmation d’exercices OEF mathml input et tableau de variation Répondre à : mathml input et tableau de variation

#3847
jm.evers
Participant
Up
0
Down
::

well, using html5&canvas , in createxo something like
this could be produced
(of course things in createxo are more complex than directly written in ‘wims phtml’)

\text{fun=wims(mathmlmath \frac{1}{x^{2}})}
\text{math_x  = wims(mathmlmath x)}
\text{plus_infty = wims(mathmlmath +\infty)}
\text{min_infty = wims(mathmlmath -\infty)}

\text{f = wims(replace internal " by ' in \fun)}
\text{x = wims(replace internal " by ' in \math_x)}
\text{infp =  wims(replace internal " by ' in \plus_infty)}
\text{infm =  wims(replace internal " by ' in \min_infty)}

\text{src=size 400,200
xrange -5,5
yrange -1,5
linewidth 1
segment -4,3,4,3,red
segment -3,4,-3,-4,red
segment 3,4,3,-4,red
fontfamily Italic 18px Ariel
centerstring black,3.5,0
input -1,0,8,1,?
mathml -4,3.5,0,0,\x
mathml 3.5,3.5,5,0,\x
mathml -4,2,0,0,\f
mathml 3.5,2,5,0,\f
arrow -3,2,-0.5,0.1,8,blue
arrow 3,2,0.5,0.1,8,blue
mathml-3,3.5,0,0,\infm
mathml 2,3.5,5,0,\infp
mathml -3,2.3,0,0,\infp
mathml 2,2.3,5,0,\infm

}
\text{img=wims(exec canvasdraw \src )}

\statement{

img = \img
<input type="button" value="click" onclick='javascript:var fun=eval("read_canvas"+canvas_scripts[0]);alert(fun());' />
}

instead of calling wims_mathml and replace stuff… (needed for createxo), you could use unicode
string color,x,y,\unicode

kind regards,
joke

  • Cette réponse a été modifiée le il y a 7 années et 1 mois par jm.evers.
  • Cette réponse a été modifiée le il y a 7 années et 1 mois par jm.evers.