Skip to main content
← Help Center

How to type functions

Type f(t) using t as the variable. These are the building blocks the calculator understands.

Building blocks

WhatTypeExample
Variablett
Numbers5, 0.55*t, 0.5*t
Multiply, divide* and /3*t, t/2
Powers^t^2, t^3
Exponentialexp( )exp(-2*t)
Sine, cosinesin( ), cos( )sin(3*t), cos(2*t)
Hyperbolic sine, cosinesinh( ), cosh( )sinh(t), cosh(4*t)
Unit stepheaviside( )heaviside(t-2)
Impulsedirac( )dirac(t)

Combining them

Add, subtract and multiply building blocks, using brackets where needed:

  • exp(-2*t)*cos(3*t) for e-2tcos(3t)
  • t^2*exp(-3*t) for t²e-3t
  • 3*sin(2*t) + 4*cos(2*t)
  • heaviside(t-1)*exp(-(t-1)) for a delayed exponential

Rules that avoid most errors

  • Always write * between things that multiply: 2*t, not 2t.
  • Use exp(...) for e to a power.
  • Put the argument of a function in brackets: sin(3*t), not sin 3t.
  • Close every bracket you open. Spaces are allowed.
Still stuck? Click Help at the bottom right of any LapCalc dashboard page to message our team, or email support@lapcalc.com.