laplace
Computes the symbolic Laplace transform of an expression.
The transform maps an expression from a source variable to a transform variable. Supported forms include powers, exponentials, trigonometric and hyperbolic functions, linear combinations, and common shift and scaling patterns.
If no supported transform rule applies, Nerdamer leaves the Laplace transform unevaluated.
Examples
These examples use Nerdamer Notation.
Transform a polynomial power.
laplace(t^2,t,s) // → 2*s^-3
Apply the exponential shift rule.
laplace(e^(-t),t,s)Transform a trigonometric function.
laplace(sin(t),t,s)Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
laplace(arg1, arg2, arg3)
nerdamer.laplace
Call the operation through the default nerdamer import.
nerdamer.laplace(expr: ExpressionInput, t: ExpressionInput, s: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
expr | ExpressionInput | Time-domain expression. |
t | ExpressionInput | Plain time-domain variable. |
s | ExpressionInput | Plain transform-domain variable. |
Returns
Expression — The symbolic transform, or an unevaluated `laplace(expr, t, s)` Expression when no table rule resolves the input.
Direct JavaScript / TypeScript API
Import the operation directly from its package entry point.
import { laplace } from 'nerdamer/calculus';
laplace(expr: ExpressionInput, t: ExpressionInput, s: ExpressionInput): Expression
Parameters
| Name | Type | Description |
|---|---|---|
expr | ExpressionInput | Time-domain expression. |
t | ExpressionInput | Plain time-domain variable. |
s | ExpressionInput | Plain transform-domain variable. |
Returns
Expression — The symbolic transform, or an unevaluated `laplace(expr, t, s)` Expression when no table rule resolves the input.
