Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScalarConstant<C, N>

Type parameters

  • C: Unit

  • N: ArgCount

Hierarchy

Implements

Index

Constructors

constructor

Properties

Optional f_

f_: IPCompiled<number, C, N>

Readonly name

name: string

Name of this PFunction, for disambiguation and well-known functions (such as constants).

Readonly nargs

nargs: N

Optional tex_

tex_: undefined | string

Cached LaTeX string

timestep

timestep: number = TIMESTEP

The time step to be used for numerical integration. Ignored for functions with a defined analytic integral.

Readonly unit

unit: C

Readonly value

value: number

Accessors

f

html

  • get html(): ViewOf<this> & Element
  • Produce HTML from the LaTeX representation. Produces a new HTML element on each reference, equivalent to:

    pFun.toHtml();

    Returns ViewOf<this> & Element

returnType

tex

  • get tex(): string

Methods

compile

Protected compileFn

derivative

differentiate

equiv

  • equiv<T>(f: T): null | this | T

integral

integrate

Private setName_

  • setName_(name: string): this

simplify

toHtml

  • toHtml(varName?: undefined | string, block?: undefined | false | true, ctx?: StyleContext): ViewOf<this> & Element

toTex

toTexWithUnits

  • toTexWithUnits(varName?: string, ctx?: StyleContext): string

Generated using TypeDoc