Toutes mes réponses sur les forums
-
AuteurMessages
-
jm.evers
Participant::The overline seems to work just fine…
search for ‘direct’ or ‘direct exec’ in wims
copy & paste this in the textarea
execute by ‘canvasdraw’size 400,400 xrange -10,10 yrange -10,10 fontfamily 148px Arial strokecolor green drag xy centered latex 0,0,\overline{B}
joke
-
Cette réponse a été modifiée le il y a 5 années et 2 mois par
jm.evers.
jm.evers
Participant::Hi,
I don’t know what the problem is, but pay attention:the command mathml is changed…It is now simplymathml x,y,mathmlcode
And there is a probably simpler way of presenting TeX formatted typesetting using
the new commandlatex x,y,TeXcode
(please check if you are using a current version of canvasdraw)
Bernadette Perrin has created a great/large help page within createxo.
The rest of the exercise escapes my knowledge of the french language.
Please post a simpler example of your issue with canvasdraw -preferably in direct exec !
jokejm.evers
Participant::Don’t worry there was no ‘hack’ : the adress has changed « owner » and the link has changed it’s content…
Besides: the informations on this page are no longer valid.
Opera -as do all other browsers- will work with javascript/math-typesetting.joke
-
Cette réponse a été modifiée le il y a 5 années et 8 mois par
jm.evers.
jm.evers
Participantjm.evers
Participant::this is clearly a flaw in wims_mathml(*)…
however you could use :\underset{\text{ what is wrong ?}}{\underbrace{a\times b\times c \times d \times e}}
inverse:
\overset{\text{ what is wrong ?}}{\overbrace{a\times b\times c \times d \times e}}
joke
ps
KaTeX -using plain TeX- has no such problems (…)
MathJaX is wrong because the MathML input in MathJaX is wrong…in plain TeX input, it is correctjm.evers
Participantjm.evers
Participant::Hi, again…
Forgotten to mention the possibility of enforcing the use of mathml by settingforce_mathml=yes
(I’m not sure if this can be done easily in OEF)In that way a browser will always show your tex as mathml.(however, in case of a mathml syntax error, there is an immediate fallback to math-with-images)
The Firefox / Gecko family of browsers will display mathml natively (fast !) and all others will have to do with the colossal mathjax library…
Joke
jm.evers
Participant::Hi,
in MathML you could use \slash
\frac{kg}{\slash{kmol}}\cdot\frac{\slash{kmol}}{h}
This will of course not work for LaTeX & images!
Internally we could make
\cancel
an alternative syntax for\slash
, which gets translated into mathml’snotation="updiagonalstrike"
kind regards,
Jokejm.evers
Participant::Hi,
I’m not sure for bitmap images (flydraw), but using html5 canvas this will work out-of-the-box, like
(using createxo)\text{M=wims(mathmlmath \left( \frac{1}{2 \pi}\right)^{\log(2)})} \text{N=wims(mathmlmath \left[ \begin{array}{ccc} 1 & 2 & 3 \\ 4 & 5 & 6 \\ \alpha & \beta & \gamma \end{array} \right] )} \statement{ \canvasdraw{400,400}{ xrange -10,10 yrange -10,10 mathml 0,0,0,0,\M strokecolor blue mathml -5,5,0,0,\N opacity 255,30 fcircle 0,0,130,green frect 0,0,5,-5,orange }
kind regards,
jokejm.evers
Participantjm.evers
Participant::Hi,
it seems somewhere between version 5.31 and 5.41 the parentheses was introduced:- Maxima 5.41.0
(%i1) ratsimp(-2*x-5-3*x^2); 2 (%o1)(- 3 x ) - 2 x - 5
-
maxima-5.31.3
(%i1) ratsimp(-2*x-5-3*x^2); 2 (%o1) - 3 x - 2 x - 5
jm.evers
Participant::Your answer must not contain a decimal point. Write decimal numbers as fractions.
you are right, that is the best solution for demanding mathematical precise answers.
And this could be easily implemented in javascript, eg we don’t send the answer to wims if there is a ‘decimal number’ present in the formula/answer
Joke
jm.evers
Participant::how about setting
maperror:false
like:maperror:false; a:map('float,exp(2/10*x)); b:map('float,exp(0.2*x)); c:map('float,exp(2/10)); d:map('float,exp(0.2)); e:map('float,exp(0.2*x)*exp(1/2)); f: map('float,trigsimp(cos(0.2)-cos(2/10))); g: map('float,trigsimp(cos(0.2*x)-cos(2/10*x))); h: map('float,cos(0.2*x)-cos(2/10*x)); i: map('float,cos(0.2)-cos(2/10));
result:
false 2.718281828459045^(0.2*x) 2.718281828459045^(0.2*x) 1.22140275816017 1.22140275816017 2.718281828459045^(0.2*x+0.5) 0.0 0.0 0.0 0.0
-
Cette réponse a été modifiée le il y a 7 années et 10 mois par
jm.evers. Raison: typo
-
Cette réponse a été modifiée le il y a 7 années et 10 mois par
jm.evers.
-
Cette réponse a été modifiée le il y a 7 années et 10 mois par
jm.evers. Raison: additional examples
-
Cette réponse a été modifiée le il y a 7 années et 10 mois par
jm.evers. Raison: more examples
-
Cette réponse a été modifiée le il y a 7 années et 10 mois par
jm.evers.
jm.evers
Participant::not sure if this helps…
a:map('float,(exp(2/10*x))); b:map('float,(exp(0.2*x))); if a = b then Y else N;
answer:
2.718281828459045^(0.2*x) 2.718281828459045^(0.2*x) y
the keepfloat directive is not used in this case
joke
-
Cette réponse a été modifiée le il y a 7 années et 10 mois par
jm.evers.
jm.evers
Participantjm.evers
Participantjm.evers
Participantjm.evers
Participant::Hi, there are several ways…
probably the easiest is to use ‘words’:Numero Nom Formule CAS_Nr :28 Bromomethane CH3Br 74-83-9 :29 1,2-Butadiene C4H6 590-19-2 :30 1,3-Butadiene C4H6,106-99-0 :31 N,N-Dimethylformamide C3H7NO 68-12-2
then
CAS=!word 4 of $my_record name=!word 2 of $my_record
Joke
jm.evers
Participant::Hi,
I’m not sure if I understand your problem…but using ‘htmlmath; will give a reasonable unit…as quick fix.
The real solution would be that slib sigunits (or unitsfilter) exports things in latex or directly mathml…Something like:
\text{g=1.234} \text{g_m=slib(text/sigunits \g m/s^2,2)} \text{G=wims(htmlmath \g_m)} \statement{ g_m=\(\g_m \) G=\G }
Joke
-
Cette réponse a été modifiée le il y a 7 années et 10 mois par
jm.evers.
-
Cette réponse a été modifiée le il y a 5 années et 2 mois par
-
AuteurMessages