Jump to navigation

Class: JMEDisplayer

Numbas.jme.display.JMEDisplayer

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
Source:
See:

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
*
Source:
See:

(abstract) complex_number(n, options) → {*}

Display a complex number.

Parameters:
Name Type Description
n number
options Numbas.math.niceNumber_settings
Returns:
Type Description
*
Source:
See:

getConstants()

Fill the dictionaries of constants from the scope. Done once, on creation of the Texifier.

Source:

(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
*
Source:
See:

(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
*
Source:
See:

(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
*
Source:
See:

(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
*
Source:
See:

(abstract) render(tree) → {*}

Convert the given JME tree to the output format.

Parameters:
Name Type Description
tree Numbas.jme.tree
Returns:
Type Description
*
Source: