 cancel
Showing results for
Show  only  | Search instead for
Did you mean:

# Canvas Formula Quiz Question Helper Functions

## Find your school's Canvas URL

To find your school or institution's Canvas URL, begin typing the name of your school/institution. Results will appear after you type at least 3 characters. For best results be as specific as possible. If you can't find your school, try using any part of your school's name or searching for your school district or state. You may also need to search for the school using the acronym or full name, for example "USU" and "Utah State University".

## Canvas Formula Quiz Question Helper Functions

This document lists the helper functions that can be used to build formulas for formula quiz questions.

Canvas requires users to manually input formulas when creating formula quiz questions with variables. The Formula Definition section of the formula quiz question builder includes a text field where users must define the quiz question formula (see image below). View Formula Definition

For more information about using the Math Editor in the Rich Content Editor to build formula quiz questions, view additional resource documents: How do I use the Math Editor in the Rich Content Editor?, Canvas​ ​Equation​ ​Editor​ ​Tips:​ ​Basic View and Canvas​ ​Equation​ ​Editor​ ​Tips:​ ​Advanced​ ​View.

## Helper Functions

Use the helper functions listed below to build formulas in the Formula Definition section of the Formula question quiz question creator.

Notes:

• All functions accept only numeric parameters.
• All trigonometric function calculations are performed in radians. To convert to or from degrees, use the deg_to_rad( ) or rad_to_deg( ) functions.
• The Formula Definition text field does not designate definable variables with square brackets.
• Variables must start with a letter and may be followed by any combination of letters and numbers. Keep in mind that variable names are case sensitive and characters other than letters and numbers are not recognized.
• In the Formula Definition text field, Canvas translates the entry of the letter “e” as the constant e.
• Helper functions can be nested. For an example of nested helper functions, see the entry for At in the table below.
• Several functions operate on a list of numbers. Unless otherwise noted, the list parameter is defined with a comma-separated list of values or with a nested reverse( ) or sort( ) function. For example, use either median (x1, x2, x3) or median(reverse(x3,x2,x1)).
• To negate an expression in the Formula Definition field, multiply the function by -1. For example, type -1*sqrt(5x).