Link Search Menu Expand Document

Functions

functions.ts#L41

Class ExprFunction

Extends ExprElement

constructor (fn: string, args: Array<ExprElement>): ExprFunction

Name Type Default Description
fn string    
args Array<ExprElement>  

readonly Property .args

Default value: ...

readonly Property .fn : string

Accessor .functions

Accessor .simplified : this

Accessor .variables

Method .collapse (): ExprFunction|ExprElement

Method .evaluate (vars: VarMap): number

Name Type Default Description
vars VarMap  

Method .substitute (vars: ExprMap): ExprFunction

Name Type Default Description
vars ExprMap  

Method .toMathML (custom: MathMLMap): string

Name Type Default Description
custom MathMLMap  

Method .toString (): string

Method .toVoice (custom: MathMLMap): string

Name Type Default Description
custom MathMLMap  
functions.ts#L248

Class ExprTerm

Extends ExprElement

constructor (items: Array<ExprElement>): ExprTerm

Name Type Default Description
items Array<ExprElement>    

readonly Property .items

Accessor .functions

Accessor .simplified : ExprElement

Accessor .variables

Method .collapse (): ExprElement

Method .evaluate (vars: VarMap): number

Name Type Default Description
vars VarMap  

Method .substitute (vars: ExprMap): ExprElement

Name Type Default Description
vars ExprMap  

Method .toMathML (custom: MathMLMap): string

Name Type Default Description
custom MathMLMap  

Method .toString (): string

Method .toVoice (custom: MathMLMap): string

Name Type Default Description
custom MathMLMap  

Copyright © 2021 Mathigon.org