'*** PROGRAM: Compare 2 numbers using both min/max functions;
' then, output which number is max/and, which is min.
'*** declare variables...
min = 0
max = 0
number1 = 342
number2 = 256
'*** main program...
CLS '...(CL)ear the Output (S)creen
PRINT "Minimum = "; findMin(number1, number2)
PRINT "Maximum = "; findMax(number1, number2)
END '...END of program/halt program code execution
FUNCTION findMax (num1, num2)
answer = 0
IF num1 > num2 THEN answer = num1 ELSE answer = num2
findMax = answer
END FUNCTION
FUNCTION findMin (num1, num2)
answer = 0
IF num1 < num2 THEN answer = num1 ELSE answer = num2
findMin = answer
END FUNCTION
---program output...
Minimum: 256
Maximum: 342
Chat with our AI personalities
Find the maximum and minimum values that the function can take over all the values in the domain for the input. The range is the maximum minus the minimum.
y=2x2-3x2-12x+5=0
Set the first derivative of the function equal to zero, and solve for the variable.
The general procedure is to find the function's derivative, and then solve for (derivative of the function) = 0. Each of these solutions may be a local maximum or minimum - or none. Further analysis is required. A local maximum or minimum may also occur at points where the derivative is undefined, as well as at the function's endpoints (assuming it is only defined for a certain range, for example, from 0 to 10).
the maximum or minimum value of a continuous function on a set.