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 use of random variables
                      • Advanced use of random variables

                      Programming

                      Reading time: 1min

                      Calculus of the inverse of a random matrix

                      We will create a question asking the students for the inverse of a 3x3 integer matrix where its coefficients are absolutely random. First, we need to write the algorithm of the question.

                      We can also create the matrix in a more esthetic and compact way as is shown in the example code below.

                      Notice that, if we want the matrix to be invertible, we need its determinant to be different from zero, which is possible in our two initial proposals. In order to avoid this situation, we need to use the programming resources available in CalcMe as we can see in the following example.

                      Tip

                      You can find more detailed information about the different CalcMe programming options here.

                      Furthermore, we will write the algorithm as we can see in the following example.

                      Caution

                      Recall we need to precede the name of a variable with the pound sign # every time we want to call it outside CalcMe. Thus, we must write #sol in the correct answer tab and #A in the statement.

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Randomness in intervals and sets of numbers
                      • Randomness in generic sets
                      • Variables from the answer

                      Programming

                      Calculus of the inverse of a random matrix Tip Caution

                      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