Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39922

Support (or at least watch for support) for binary/unary calculated question (-1--1)

    XMLWordPrintable

    Details

    • 19 status:
      Resolved
    • 12 status:
      Resolved
    • Test Plan:
      Hide

      1. Add this Calculated question to an assessment :

      - Question text: "{{a}} {b}"
      
      - Var "{b}" => values from -5 to -2 
      
      - Formula "{{a}}" => {b}-{b}+{b}
       

      2. Try to save the question. No error is shown.

      Show
      1. Add this Calculated question to an assessment : - Question text: "{{a}} {b}" - Var "{b}" => values from -5 to -2 - Formula "{{a}}" => {b}-{b}+{b} 2. Try to save the question. No error is shown.

      Description

      As mentioned in SAK-38435, the syntax

      {x}-{x}

      doesn't work for calculated questions if x is negative. It ends up being 1-1 and mxParser throws and error. It's mentioned here that this "may" be fixed even though this issue is particular issue is closed. It looks like we could work around it but better for them to fix it.

      https://github.com/mariuszgromada/MathParser.org-mXparser/issues/130

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  raulsv Raúl Sánchez Vegas
                  Reporter:
                  jonespm Matthew Jones
                  Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration