Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IConstant<R, U, D, I, N>

Scalar constants

Type parameters

Hierarchy

Implemented by

Index

Properties

f

f: IPCompiled<R, U, N>

Readonly html

html: ViewOf<IPFunctionBase<R, U, N>> & Element

Produce HTML from the LaTeX representation. Produces a new HTML element on each call

param

name

name: string

nargs

nargs: N

Readonly returnType

returnType: TYPE

Readonly tex

tex: string

Get the LaTeX representation of this function. The value is cached.

param

The parameter name (or expression)

Optional tex_

tex_: undefined | string

timestep

timestep: number

Readonly unit

unit: U

Methods

compile

derivative

equiv

  • equiv<T>(f: T): null | this | T
  • Determine if two functions are known to be equivalent. If so, returns the preferred one, otherwise null

    Type parameters

    • T

    Parameters

    • f: T

    Returns null | this | T

integral

Private setName_

  • setName_(name: string): this

simplify

  • Return the simplest form of this function we are capable of. The notion of "simplest" is variable, such as whether to prefer factored forms or distribute the multiplications. These behaviors can be altered via the options argument.

    Parameters

    • Optional options: any

    Returns IPFunctionBase<R, U, N>

toHtml

  • Produce HTML from the LaTeX representation. Produces a new HTML element on each call

    Parameters

    • Optional varName: undefined | string
    • Optional block: undefined | false | true
    • Optional ctx: StyleContext

    Returns ViewOf<IPFunctionBase<R, U, N>> & Element

toTex

  • toTex(varName?: undefined | string, ctx?: StyleContext): string

toTexWithUnits

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

Generated using TypeDoc