maths / moodle-qtype_stack

Stack question type for Moodle
GNU General Public License v3.0
138 stars 147 forks source link

Display of single unit with negative exponent #1080

Open Famondir opened 7 months ago

Famondir commented 7 months ago

Hi all, is there a solution do display something like 1/s as 1 s^-1 instead of 1 x 1/s. Or at least can the x be dropped? Some teachers here complain that this looks like a cross product without any (for the students noticable) vectors in sight.

Famondir commented 1 month ago

It would be cool if the make_multsgn function would work for unit display as well:

{@(make_multsgn("blank"), stackunits(1, s^-1))@}
{@(make_multsgn("blank"), a*b)@}

For inline displayed fractions it would be handy to get a (a)^-1 display additional to 1/(a) option with stack_disp_fractions that also should work with unit display.