Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NumericDerivative

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly base

Optional f_

f_: undefined | IPCompiled<number, Unit<UnitTerms>, 1, IPFunctionCalculus<number, Unit<UnitTerms>, 1, Unit<DivideTerms<UnitTerms, CompleteTerms<{ time: 1 }>>>, Unit<MultiplyTerms<UnitTerms, CompleteTerms<{ time: 1 }>>>>>

Private Readonly from

Readonly name

name: string

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

Readonly nargs

nargs: 1

Optional tex_

tex_: undefined | string

Cached LaTeX string

Readonly time_derivative

time_derivative: number

timestep

timestep: number = ...

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

Readonly unit

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
  • Get the LaTeX representation of this function. The value is cached.

    Returns string

Methods

compile

Protected compileFn

  • compileFn(): IPCompileResult1<number>

derivative

differentiate

equiv

integral

integrate

Private setName_

simplify

toHtml

toTex

toTexWithUnits

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

Generated using TypeDoc