Method on @sym: max (a)
Method on @sym: max (a, b)
Method on @sym: max (a, [], dim)
Method on @sym: [r, I] = max (…)

Return maximum value of a symbolic vector or vectors.

Example:

max(sym(1), sym(2))
  ⇒ (sym) 2
max([1 2*sym(pi) 6])
  ⇒ (sym) 2⋅π
[M, I] = max([1 2*sym(pi) 6])
  ⇒ M = (sym) 2⋅π
  ⇒ I = 2

See also: @sym/min.

Package: symbolic