cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Maximum y value with corrosponding x value from odesolve result

jeanvanwyk
1-Newbie

Maximum y value with corrosponding x value from odesolve result

I drew up a mathcad sheet that plots a y against x from a odesolve function. For this i have a range of x that gives a number of y(x)'s and plots a curve for me. (this is for a flow profile in a open channel, with lateral inflow)

My problem currently is that i get a list of y(x) values after i done the odesolve function, but how do i now get the maximum value of the ones that he spat out, without having to sieve through them manually? i tried the f=max(y) or max(y(x)) but to no avail...

Can someone please advise me on what to do here?

Kind Regards

Jean-Pierre

2 REPLIES 2

One variant of the ymax.pngsolution your problem:

Hello!

I have added your file with a new program code for transformation (X and Y(X)) in matrixes. Now you can normally work with them further: to calculate a maximum and a minimum etc.

ODE_1.jpg

ODE_2.jpg

P.S. Which version of Mathcad you work?

Top Tags