# Formula Question

## Formula Question

&#x20;         Creating Formula Questions allows for the randomization of variable numbers, ensuring that each student receives different questions and calculates different answers.  However, the setup can be quite complex, divided into the question configuration - 1 topic and answer configuration - 3 topics.

## Question Configuration in Formula Question

&#x20;        In setting up questions, you can specify variables for randomization by using curly brackets and the letter "x" \[x].

For example: Direction "Solve y where x = **\[x]"**  Equation "5(x) + 12 = y"

&#x20;               Alternatively, you can directly specify variables in the question, such as 5(\[x]) + 12 = ?.

![](/files/-Mbf2y2fZlJ6yp2Xnp8r)

## Answer Configuration in Formula Question

### **Variable Definitions or** R**ange of Variables**&#x20;

&#x20;         The variable x that you have specified can be assigned a minimum and maximum value. Once you have set these values, click on "Recompute" to generate a random number for the variable to be used in step 2 of the formula definition process.

![](/files/-Mbf5zxp_OcO_hTV4vLT)

### **Formula Definition**

&#x20;         Enter your formula in this section so that the system understands which criteria you want to use for calculation.

* \+ is for addition
* \- is for subtraction
* \* is for multiplication
* / is for division

For example: The number randomly generated from question 1 is the number 9. When substituting 9 for X, the answer obtained is equal to 57 as shown in the image.

![](/files/-Mbf6EpwOwvbROX6nROR)

### **Generate Possible Solutions**&#x20;

&#x20;         In this section, you will specify the number of possible solutions. You can randomly assign variables and their corresponding answers, with a maximum limit of 200 answers. Once you have entered the number, click on "Generate" to allow the system to create the answers according to the details provided below.

From the equation 5(\[x]) + 12 = y, if x = 7, then 5(7) + 12 = ? The answer will be equal to 47.

![](/files/-Mbf6SBLm2nqK2Uva5dZ)

## The Display Page of Formula Question (student's view)

![](/files/-Mbf9KMrlc_M9A59F75j)

## How to Create a Formula Question (animated image)

![](/files/-Mbf2e1wrxzPxiMa12Ke)

{% hint style="info" %}
For more info : <https://s3.amazonaws.com/tr-learncanvas/docs/CanvasFormulaQuizQuestionHelperFunctions.pdf>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tlic.cmu.ac.th/cmu-mango-canvas-manual/quizzes-and-assignment/quizzes/formula-question.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
