Method on @symfun: int (f)
Method on @symfun: int (f, x)
Method on @symfun: int (f, x, a, b)
Method on @symfun: int (f, x, [a, b])
Method on @symfun: int (f, a, b)
Method on @symfun: int (f, [a, b])

Symbolic integration of a symfun.

The indefinite integral of a symfun returns another symfun:

syms x
f(x) = sin(x)
  ⇒ f(x) = (symfun) sin(x)
h = int(f, x)
  ⇒ h(x) = (symfun) -cos(x)

Definite integrals return a sym:

f(x) = sin(x)
  ⇒ f(x) = (symfun) sin(x)
int(f, x, [0 pi])
  ⇒ (sym) 2

See also: @sym/int, @symfun/diff.

Package: symbolic