Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • CalcMe
                        • Basic guide to CalcMe
                        • Basic guide to CalcMe

                        User functions

                        Reading time: 1min

                        Nota

                        As you may use these commands to generate an algorithm for a WirisQuizzes question, we show how to create them through the sheet and using the code editor. You can see more details about it here.

                        You can create custom functions. The random command is very useful, but it could be a bit tedious to write every time random(-10,10). Instead, you can create a function that generates a random number when called:

                        CalcMe sheet CalcMe code editor

                        This eases the creation of a matrix with random coefficients. Another more elaborated example is creating a function that constructs a tri-diagonal matrix given three numbers. Therefore, every time you would like to create a tri-diagonal matrix, you just need to call this function with the upper-diagonal, diagonal and lower-diagonal terms you would like the matrix to have.

                        CalcMe sheet CalcMe code editor

                        Was this article helpful?

                        Give feedback about this article

                        Related Articles

                        • Probability
                        • Combinatorics
                        • Creating lists via comprehension

                        User functions

                        Nota

                        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