Wiris

Documentation / WirisQuizzes

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • WirisQuizzes
                      • Advanced Validation Features
                      • Advanced Validation Features

                      Plus/Minus operator

                      Reading time: 1min

                      It is possible to perform computations with the ± operator. Therefore, the student can use the ± symbol. Recall that the result of the ± operator is a list (not a set!).

                      Example 1: Simple equation

                      Let us start with an easy example: solve the equation x²-2=0. We simply write as correct answer √±2.

                      As we already mentioned, it is interpreted as a list: ±√2={√2,-√2}; this means that the order matters and both options are enclosed in braces. Therefore, we have to change the default settings to allow the students to answer with any correct syntax:

                      Braces are not necessary: Input options > Input syntax > Lists without enclosers.

                      The order is not important: Validation options > Comparison with student answer > Repetition matters in lists, but order does not.

                      Finally, we can test the behaviour.

                      Example 2: Complex expression

                      A well-known expression is a formula for solving the second-order degree polynomial. For instance, the roots of the polynomial x²+bx+c are given by -b±b²-4c/2. Let us ask the student to write this expression.

                      The correct answer will be

                      As before, we have to change the default settings to allow the students to answer with any correct syntax:

                      • Braces are not necessary: Validation > Options for general > Lists always need curly brackets "{}".

                      • The order is not important: Validation > Comparison with student answer > Compare as sets.

                      Finally, we can test the behaviour.

                       

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Advanced Validation Features

                      Plus/Minus operator

                      Example 1: Simple equation Example 2: Complex expression

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Learning Lemur

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand