Enumeration DataType

Specifies the type of a variable or identifier.

Example: Insert a vector variable

let editor = new micd.Editor();
let walker = new micd.Walker(editor);
walker.insert.variable("x", micd.DataType.vector);

Index

Enumeration members

boolean

boolean: = "boolean"

A boolean value, which may have a value of either be true or false.

constant_boolean

constant_boolean: = "constant_boolean"

A boolean constant, such as the symbol T for true.

constant_scalar

constant_scalar: = "constant_scalar"

A scalar constant, such as π or e.

constant_set

constant_set: = "constant_set"

A set constant, such as , the field of real numbers.

constant_vector

constant_vector: = "constant_vector"

A vector constant, such as the zero vector.

matrix

matrix: = "matrix"

A matrix (a 2-dimensional rectangular array of values).

point

point: = "point"

A point, as commonly used in geometry (as in, △ABC).

scalar

scalar: = "scalar"

A scalar value, the default type.

set

set: = "set"

A set of objects.

string

string: = "string"

A string of letters drawn from an alphabet.

tensor

tensor: = "tensor"

A tensor (a 3- or more dimensional array of values).

unit_name

unit_name: = "unit_name"

Type reserved for unit name components in a unit node.

vector

vector: = "vector"

A vector (a 1-dimensional list of values). Vector variables will automatically be rendered with an arrow, so the arrow is not added as an accent.

This API is still under development and is subject to change. Copyright © Math I Can Do Solutions Incorporated and/or its licensors.