Math
A mathematical variable or equation.
This is a base type for MathFragment
and MathBlock
and should not normally be instantiated. This type has a similar structure and purpose to Code
which is a base type for CodeFragment
, CodeBlock
etc.
Properties​
Name | @id | Type | Description | Inherited from |
---|---|---|---|---|
text | schema:text | string | The text of the equation in the language. | Math |
errors | stencila:errors | Array of string | Errors that occurred when parsing the math equation. See note 1. | Math |
id | schema:id | string | The identifier for this item. | Entity |
mathLanguage | stencila:mathLanguage | string | The language used for the equation e.g tex, mathml, asciimath. | Math |
meta | stencila:meta | object | Metadata associated with this item. | Entity |
Notes​
- errors : This property is an array of strings. Compare this to
CodeChunk.errors
which is an array ofCodeError
nodes. Strings are considered to be sufficient for math parsing errors which usually won't have stack traces, line numbers etc.
Related​
- Parent: Entity
- Descendants: MathBlock, MathFragment
Available as​
- JSON-LD
- JSON Schema
- Python
class Math
- TypeScript
interface Math
- R
class Math
- Rust
struct Math
Source​
This documentation was generated from Math.schema.yaml.