Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding max value of a function

Status
Not open for further replies.

Drkwing

Mechanical
Dec 10, 2004
39
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
 
Replies continue below

Recommended for you

Try
Sine.JPG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor