STACK: incorrect LaTeX formula display

STACK: incorrect LaTeX formula display

by Miro Iliaš -
Number of replies: 0

Hello,

I want to display the  "(10.0^(pH-14.0))/(0.001*V)" expression, but LaTeX display goes wrong - see this printscreen .

The denominator is shown to be  "0.0.V" instead of wanted "0.001.V"

Is there a way for remedy ? I have quite recent STACK plugin in Moodle 3.9.

The full downloadable STACK question  - xml.

---------------------------------------------

STACK question Variables:

pHx:rand([10.0,10.2,10.3]); /* pH roztoku NaOH */

Vx:rand([25,26,24,23,22,27]) /*  objem roztoku NaOH v ml */;

simp:false;

vyraz: (10.0^(pH-14.0))/(0.001*V); /*  v mol*/

ta1:vyraz;

ta2:decimalplaces(subst([pH=pHx,V=Vx],vyraz),3); /* v moloch */


Average of ratings: -