# Math instructions

Math instructions always begin with the letter M (capital M). Below is a list of all available instructions.

- Mns - Simple numerator

Returns TRUE if the character or text is at the numerator of a simple fraction. Simple fractions are those consisting of only two integers. For example "2/3". The fraction symbol "/" is used.

- Mds - Simple denominator

Returns TRUE if the character or text is at the denominator of a simple fraction. Simple fractions are those consisting of only two integers. For example "2/3". The fraction symbol "/" is used.

- Mn( - Opening of numerator

- Mn) - Closing of numerator

These two instructions return TRUE if the parentheses on which you use open or close a numerator of a complex fraction. For example "(2+4)/(5+4)". They can only be used on round brackets, symbols that indicate the opening and closing of an expression.

- Md( - Opening of denominator

- Md) - Closing of denominator

These two instructions return TRUE if the parentheses on which you use open or close a denominator of a complex fraction. For example "(2+4)/(5+4)". They can only be used on round brackets, symbols that indicate the opening and closing of an expression.

- Mps - Sets the simple power final flag

This instruction sets a simple power flag at the end of the characters following the power symbol on which it is used. It's not a Boolean instruction, but one of setting. A power with simple exponent can be for example "2^5" or "2^x". This instruction should be used only with the power symbol.

- Mpg - Simple power end

Returns TRUE if the character on which the index is located is the last character of the exponent of a simple power, the one previously marked with the instruction "Mps". A power with simple exponent can be for example "2^5" or "2^x".

- Mvw# - Set expression

An instruction that sets the start and end of an expression using an integer variable. This instruction must be used only in the text with the last character a parenthesis or an opening quotation mark. For example in the text "sin(" you can use the instruction "Mvw12". The text of the document "sin(45+25)" will be marked at the beginning and at the end of the expression with variable "12".

- Mvr# - End of Expression

Returns TRUE if the character is at the end of the expression marked with a certain integer variable. This instruction should only be used in text that has previously been marked with the "Mvw#" instruction.

- Mvx# - Inside the expression

Returns TRUE if the character is inside the expression marked with a given integer variable. This instruction should only be used in text that has been previously marked with the "Mvw#" instruction.