# Formula

The question type is calculation formula. A numerical value is required for answers.

### Variable Definition

<figure><img src="/files/cDDwUIWKGiKc5DYmWx7e" alt=""><figcaption></figcaption></figure>

After adding questions and variables, you can add variable \[1], a minimum value \[2], maximum value \[3], and decimal \[4].

### Formular Definition

<figure><img src="/files/3tbUUYpqAK8vkVhtIsEe" alt=""><figcaption></figcaption></figure>

Equation can be added at the 'Formula Definition' section. Avoid putting '=' (equal sign) and parentheses.

{% hint style="info" %}
Currently, supported math operations include + (addition), - (subtraction), \* (multiplication), / (division) and ^ (power).
{% endhint %}

### Generate Possible Solutions

<figure><img src="/files/2WKj9xQfNxsaPgy2TatC" alt=""><figcaption></figcaption></figure>

After defining variables and equations, the instructor can check their accuracy using "Generate Possible Solutions". This is a process where the system calculates and provides possible results based on the given variables and equations. The number of results, decimal places, and allowable margin of error can be specified.

<figure><img src="/files/FRIRG69QDsAolE20EszD" alt=""><figcaption></figcaption></figure>

## Video Tutorial for Formular

{% embed url="<https://youtu.be/mEFq3wwGQdQ>" %}


---

# 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/new-quizzes/formula.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.
