jm.evers

Toutes mes réponses sur les forums

20 sujets de 41 à 60 (sur un total de 149)
  • Auteur
    Messages
  • en réponse à : Crochets ouverts pour intervalles #5576
    jm.evers
    Participant
    Up
    0
    Down
    ::

    in TeX just use:
    \lbracket \rbracket
    \lbrace \rbrace
    \lpar \rpar

    joke

    en réponse à : lien hacké #5414
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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 7 mois par jm.evers.
    en réponse à : Champ réponse en exposant #5340
    jm.evers
    Participant
    Up
    0
    Down
    ::

    On default -unstyled theme- there is no issue, and it looks fairly good.

    default.jpg
    standard.jpg

    joke

    en réponse à : problème avec underbrace #5201
    jm.evers
    Participant
    Up
    1
    Down
    ::

    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 correct

    • Cette réponse a été modifiée le il y a 5 années et 11 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 5 années et 11 mois par jm.evers. Raison: additional info
    en réponse à : Utilisation de package Latex spécifique #4942
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Par contre, cela serait peut-être mieux de rester avec cancel et de faire un alias dans mathml.

    OK !
    Implemented in latest version of wims_mathml SVN

    Joke

    en réponse à : Utilisation de package Latex spécifique #4936
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi, again…
    Forgotten to mention the possibility of enforcing the use of mathml by setting force_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

    en réponse à : Utilisation de package Latex spécifique #4932
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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’s notation="updiagonalstrike"

    kind regards,
    Joke

    • Cette réponse a été modifiée le il y a 6 années et 3 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 6 années et 3 mois par jm.evers. Raison: typo
    en réponse à : Latex dans un dessin #4357
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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,
    joke

    en réponse à : MathML #4351
    jm.evers
    Participant
    Up
    0
    Down
    ::

    …and there is even a way (on module level) to enforce usage of mathml by setting:
    !set force_mathml = yes (yes|1)

    joke

    • Cette réponse a été modifiée le il y a 7 années et 5 mois par jm.evers.
    en réponse à : Parenthésage inopiné avec simplify #4301
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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
      
    • 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.
    en réponse à : comportement de maxima #4196
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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

    en réponse à : comportement de maxima #4178
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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 8 mois par jm.evers. Raison: typo
    • Cette réponse a été modifiée le il y a 7 années et 8 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 7 années et 8 mois par jm.evers. Raison: additional examples
    • Cette réponse a été modifiée le il y a 7 années et 8 mois par jm.evers. Raison: more examples
    • Cette réponse a été modifiée le il y a 7 années et 8 mois par jm.evers.
    en réponse à : comportement de maxima #4175
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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 8 mois par jm.evers.
    en réponse à : Comment mettre une virgule dans un fichier de data #4091
    jm.evers
    Participant
    Up
    0
    Down
    ::

    you could use « awk » or « sed » to simply modify the data file for ‘special’ wims_usage?

    en réponse à : Comment mettre une virgule dans un fichier de data #4089
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hmmm,
    what I meant was change your record file and replace -manually or by any other means- all chemical names that have ‘several words’, like ‘carbon dioxide –> carbon_dioxide’ or ‘some trivial name –> some_trivial_name’

    en réponse à : Comment mettre une virgule dans un fichier de data #4086
    jm.evers
    Participant
    Up
    0
    Down
    ::

    in that -rare case- you could use an underscore, like:carbon_dioxide
    and then

    name=!word 2 of $my_record
    name=!replace internal _ by $ $ in $name
    • Cette réponse a été modifiée le il y a 7 années et 9 mois par jm.evers.
    en réponse à : Comment mettre une virgule dans un fichier de data #4081
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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

    • Cette réponse a été modifiée le il y a 7 années et 9 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 7 années et 9 mois par jm.evers.
    en réponse à : oblique et barre de fraction #4076
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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 9 mois par jm.evers.
    en réponse à : maxima load lisp module #4065
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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 9 mois par jm.evers.
    en réponse à : maxima load lisp module #4060
    jm.evers
    Participant
    Up
    0
    Down
    ::

    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

    • Cette réponse a été modifiée le il y a 7 années et 9 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 7 années et 9 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 7 années et 9 mois par jm.evers.
20 sujets de 41 à 60 (sur un total de 149)