Skip to content
Property Value
Hex Value $28
Categories
Localizations
  • FR: fMax(

fMax(

Overview

Returns the value of variable where the local maximum of expression occurs, between lower and upper,with specified tolerance.

Availability: Token available everywhere.

Syntax

fMax(expression,variable,lower,upper[,tolerance])

Arguments

NameTypeOptional
expressionexpression
variable
lower
upper
toleranceYes

Location

math, MATH, 7:fMax(


Description

fMax(f(var),var,lo,hi[,tol]) finds the value of var between lo and hi at which the maximum of f(var) occurs. tol controls the accuracy of the maximum value computed. The default value of tol is 10-5.

fMax( only works for real numbers and expressions. Brent's method for optimization is used for approximating the maximum value.

fMax(sin(X)cos(X),X,0,3)
        .7853995667

Keep in mind that the result is the value of var, and not the value of f(var). In this example, .7853995667 is not the highest possible value of sin(X)cos(X), but rather the X-value at which sin(X)cos(X) is the highest.

Error Conditions

  • ERR:BOUND is thrown if the lower bound is greater than the upper bound.
  • ERR:DOMAIN is thrown if tol is 0.
  • ERR:TOL NOT MET is thrown if the tolerance is too small for this specific function.

Source: parts of this page were written by the following TI|BD contributors: burr, DarkerLine, GoVegan, kg583, thornahawk.

History

Calculator OS Version Description
TI-82 1.0 Added
Authors: Adrien Bertrand