Finding max value of a function
Finding max value of a function
(OP)
Suppose I have a function wrt time such as:
f(t)=Asin(wt)
Both A and w are known.
I need the maximum value of f(t). To do this I can take the derivative wrt t then equalize zero and find the value of t; then substitute this t into f(t) and I get what I want.
But a simpler approach may be to calculate values of f(t) in a given range and get the maximum value. In MathCad I can get the values of f(t) in a given range as a table. But I cannot make Mathcad to find the max value in this table. As I see, MathCad can only find the max value in a vector. So How can I write the values of f(t) in a vector or in general how to find the maximum value of f(t) through the values in the table?
Regards
f(t)=Asin(wt)
Both A and w are known.
I need the maximum value of f(t). To do this I can take the derivative wrt t then equalize zero and find the value of t; then substitute this t into f(t) and I get what I want.
But a simpler approach may be to calculate values of f(t) in a given range and get the maximum value. In MathCad I can get the values of f(t) in a given range as a table. But I cannot make Mathcad to find the max value in this table. As I see, MathCad can only find the max value in a vector. So How can I write the values of f(t) in a vector or in general how to find the maximum value of f(t) through the values in the table?
Regards
RE: Finding max value of a function