Documentation / WirisQuizzes

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Home
                      • Wiris Quizzes
                      • Advanced Validation Features
                      • Intervals
                      • Intervals

                      Syntax

                      Reading time: 1min

                      The interval notation is quite particular. You can create several intervals with the syntax you can see below.

                      The interval notation is quite particular. You can create several intervals with the syntax you can see below.

                      Interval CalcMe word Equivalent inequality
                      (a,b) interval_open_open(a,b) a<x∧x<b
                      (a,b] interval_open_close(a,b) a<x∧x≤b
                      [a,b) interval_close_open(a,b) a≤x∧x<b
                      [a,b] interval_close_close(a,b) a≤x∧x≤b
                      (a,+∞) interval_open_open(a,+∞) a≤x
                      ℝ ℝ ℝ
                      {a} {a} x=a
                      {a,b,c} {a,b,c} x=a∨x=b∨x=c
                      ∅ {} false

                      Furthermore, it is also possible to do operations with intervals.

                      Operation Example
                      Union (a,b)∪(c,d)
                      Intersection (a,b)∩(c,d)
                      Difference (c,d)∖(a,b)
                      Complementary ℝ∖(a,b)

                      The student's answer can have operations, and it will be simplified and compared with the correct answer. If you want to prevent this, set Simplified in Validation options > Simplification, as usual.

                      If you want to make an algorithm for a question with intervals, you can not use the interval symbols directly; you must use the corresponding CalcMe word for them. See the table above. There are commands that return intervals; for instance domain_set(). Other commands return inequations; for instance domain(). You can convert the result from inequations to intervals using expression_to_set().

                       

                      Was this article helpful?

                      Yes
                      No
                      Give feedback about this article

                      Related Articles

                      • Intervals
                      • Example

                      Making people’s STEM work more meaningful

                      MathType

                      • MathType for Office Tools
                      • MathType for Mac
                      • MathType for Microsoft 365
                      • MathType for Google Workspace
                      • MathType for LMS
                      • MathType for XML Editors
                      • Arabic notation
                      • Our products accessibility
                      • MathType is online

                      WirisQuizzes

                      Learning Lemur

                      Solutions for Education

                      • Blackboard Learn
                      • Brightspace by D2L
                      • Canvas
                      • Google Classroom
                      • Moodle
                      • Schoology

                      Solutions for Publishing Houses

                      Solutions for Technical Writers

                      Solutions for Chemistry

                      Integrations

                      • HTML Editors
                      • MathType in WordPress

                      Pricing

                      Company

                      Careers

                      Blog

                      Contact Us

                      Buy Now

                      Plugin Downloads

                      © Wiris 2025

                      • Cookie Settings
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Powered by Helpjuice
                      Expand