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

Test if contents of two or more arrays are equal, even with nan.

Example:

syms x
f(x) = x + 1;
g(x) = x + 1;
isequaln(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;
isequaln(f, g)
  ⇒ 0

Note: isequaln considers NaN’s to be equal:

syms x y
f(x) = nan;
g(x) = nan;
isequaln(f, g)
  ⇒ 1

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

Package: symbolic