new JMEDisplayer(settings, scope)
An object which can convert a JME tree into some display format.
Parameters:
Name | Type | Description |
---|---|---|
settings |
Numbas.jme.display.displayer_settings | |
scope |
Numbas.jme.Scope |
Methods
(abstract) complex_decimal(n, options) → {*}
Display a complex decimal.
Parameters:
Name | Type | Description |
---|---|---|
n |
Numbas.math.ComplexDecimal | |
options |
Numbas.math.niceNumber_settings |
Returns:
Type | Description |
---|---|
* |
(abstract) complex_number(n, options) → {*}
Display a complex number.
Parameters:
Name | Type | Description |
---|---|---|
n |
number | |
options |
Numbas.math.niceNumber_settings |
Returns:
Type | Description |
---|---|
* |
decimal(n, options) → {*}
Display a decimal.
Parameters:
Name | Type | Description |
---|---|---|
n |
Numbas.math.ComplexDecimal | Decimal | |
options |
Numbas.math.niceNumber_settings |
Returns:
Type | Description |
---|---|
* |
getConstants()
Fill the dictionaries of constants from the scope. Done once, on creation of the Texifier.
number(n, options) → {*}
Display a number.
Parameters:
Name | Type | Description |
---|---|---|
n |
number | complex | |
options |
Numbas.math.niceNumber_settings |
Returns:
Type | Description |
---|---|
* |
(abstract) rational_decimal(n, options) → {*}
Display a decimal as a fraction.
Parameters:
Name | Type | Description |
---|---|---|
n |
Decimal | |
options |
Numbas.math.niceNumber_settings |
Returns:
Type | Description |
---|---|
* |
(abstract) rational_number(n, options) → {*}
Display a number as a fraction.
Parameters:
Name | Type | Description |
---|---|---|
n |
number | |
options |
Numbas.math.niceNumber_settings |
Returns:
Type | Description |
---|---|
* |
(abstract) real_decimal(n, options) → {*}
Display a decimal as a decimal.
Parameters:
Name | Type | Description |
---|---|---|
n |
Decimal | |
options |
Numbas.math.niceNumber_settings |
Returns:
Type | Description |
---|---|
* |
(abstract) real_number(n, options) → {*}
Display a number as a decimal.
Parameters:
Name | Type | Description |
---|---|---|
n |
number | |
options |
Numbas.math.niceNumber_settings |
Returns:
Type | Description |
---|---|
* |
(abstract) render(tree) → {*}
Convert the given JME tree to the output format.
Parameters:
Name | Type | Description |
---|---|---|
tree |
Numbas.jme.tree |
Returns:
Type | Description |
---|---|
* |