Toutes mes réponses sur les forums
-
AuteurMessages
-
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 6 mois par
jm.evers. Raison: typo
-
Cette réponse a été modifiée le il y a 7 années et 6 mois par
jm.evers.
-
Cette réponse a été modifiée le il y a 7 années et 6 mois par
jm.evers. Raison: additional examples
-
Cette réponse a été modifiée le il y a 7 années et 6 mois par
jm.evers. Raison: more examples
-
Cette réponse a été modifiée le il y a 7 années et 6 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 6 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 7 mois par
jm.evers.
jm.evers
Participant::well, only if you enable debugging, you will see a warning:
ERROR from m2: m2: execution error or time out.
In a chroot enabled maxima it is very easy -on module level- to check the maxima package loading:
!if ljad isin $maxima_response some_action=this module requires a chrooted wims server... !exit !endif
-
Cette réponse a été modifiée le il y a 7 années et 7 mois par
jm.evers.
jm.evers
Participant::scilab requires a chroot and a sysmask kernel (…)
So in real life you don’t need to install scilab on a wims system (and in a chroot).from scilab.c
setenv("chroot","must",1); setenv("sysmask","must",1); must_chroot=1
For M2 , I’ve never been able to cleanly compile from source (I hope it’s my fault).
So I can’t include it besides, M2 is not being used in published modules.Joke
jm.evers
Participant::thanks , yacas logic seems a good idea ! (never knew…)
I will give it a try and maybe it’s enough for high_school_level freestyle answer checking.
Using some software not available on all platforms can not always be avoided. (like Scilab , M2 to name a few)
jm.evers
Participant::Well, in general I was wondering why we can use all kinds of octave packages and not those from maxima. Sure the load command in maxima is powerful, but if used in a chroot environment, it should be no real problem.
More specific, I’m working on a module about logic…
where I would like to make use package « logic.mac »
checking the freestyle answers from pupils (using or,and,not in the answers)load("logic.mac"); test1:(A and B) or C; test2:(A or C) and (B or C); test3:A and (B or C); logic_equiv(test2, test1 ); logic_equiv(test3, test1 );
And there are probably more interesting /useful packages available in « /usr/local/share/maxima/ »
Joke
-
Cette réponse a été modifiée le il y a 7 années et 7 mois par
jm.evers.
- Maxima 5.41.0
-
AuteurMessages