Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66456

Exponents not displaying correctly in calculated questions with wild card variables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 3.5.7
    • Filters, Maths filters, Quiz
    • None
    • MOODLE_35_STABLE

      Exponents longer than 1 character are not displaying correctly in calculated questions with wild card variables.

      As an example I've created the following question:

      Question text:

      $$ {e} \times 10^{f} + {g} \times 10^{h} $$

      Wild cards:

      f and h have values in the range of 10-20

      e and g have values in the range of 1-10

      Answer formula:

      {e}

      *pow(10,{f})+{g}*pow(10,{h})

      Display should look like this:

      But displays like this:

      If I use specific numbers as exponents it displays correctly.

      Example: $$ {e} \times 10^{15} + {g} \times 10^{12} $$

      Usual troubleshooting like changing theme, using different courses and trying different browsers has been conducted.

            timhunt Tim Hunt
            matrev Matt Reverzani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.