Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Dec 10, 2004
Messages
39
Location
TR
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
 
Try
Sine.JPG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top