Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPFunctionBase<R, U, N>

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

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

Private setName_

  • setName_(name: string): this
  • Set a name of the function

    Parameters

    • name: string

    Returns 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
  • Compute the LaTeX representation of this function.

    Parameters

    • Optional varName: undefined | string
    • Optional ctx: StyleContext

    Returns string

toTexWithUnits

  • toTexWithUnits(varName?: undefined | string, ctx?: StyleContext): string
  • Compute the LaTeX representation of this function including units.

    Parameters

    • Optional varName: undefined | string
    • Optional ctx: StyleContext

    Returns string

Generated using TypeDoc