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

Exponents not displaying correctly in calculated questions with wild card variables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.5.7
    • Fix Version/s: None
    • Component/s: Filters, Maths filters, Quiz
    • Labels:
      None
    • Affected Branches:
      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

            Assignee:
            timhunt Tim Hunt
            Reporter:
            matrev Matt Reverzani
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: