Method on @symfun: isequal (f, g)
Method on @symfun: isequal (f, g, …)

Test if contents of two or more arrays are equal.

Example:

syms x
f(x) = x + 1;
g(x) = x + 1;
isequal(f, g)
  ⇒ 1

Note: two symfuns are equal if they have the same formula and same arguments:

syms x y
f(x) = x + 1;
g(x, y) = x + 1;
isequal(f, g)
  ⇒ 0

See also: @sym/isequal, @symfun/formula, @symfun/argnames.

Package: symbolic