Documentation

fracElement
Question mark

A mathematical fraction.

Example

$ 1/2 < (x+1)/2 $
$ ((x+1)) / 2 = frac(a, b) $
Preview

Syntax

This function also has dedicated syntax: Use a slash to turn neighbouring expressions into a fraction. Multiple atoms can be grouped into a single expression using round grouping parenthesis. Such parentheses are removed from the output, but you can nest multiple to force them.

Parameters
Question mark

math.frac() -> content

num
content
RequiredPositional
Question mark

The fraction's numerator.

denom
content
RequiredPositional
Question mark

The fraction's denominator.