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

Exponents not displaying correctly in calculated questions with wild card variables

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            matrev Matt Reverzani
            David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Raquel Ortega, Sabina Abellan, Sander Bangma, Sara Arjona (@sarjona), Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: