Skip to main content
1-Visitor
December 4, 2022
Solved

MathCAD 7 Prime Minimize Maximize function support

  • December 4, 2022
  • 2 replies
  • 2721 views

I'm having trouble getting a minimization function to work for my HETP graph.

Best answer by ttokoro

image.png

2 replies

ttokoro
21-Topaz I
ttokoro21-Topaz IAnswer
21-Topaz I
December 4, 2022

image.png

t.t.
1-Visitor
December 4, 2022

That did help get an answer, but I am looking for the minimum of the top line of the graph on the second page. The minimum should be around 0.167 mm

ttokoro
21-Topaz I
21-Topaz I
December 4, 2022

Your plot is the answer in cm/s.

image.pngimage.png

t.t.
25-Diamond I
December 4, 2022

As @ttokoro  already noticed - minimize is quite sensible with respect to the initial guess value.

You may also use the root of the derivative and you don't even need to use symbolic calculation if you use the "root" function ("root" function with a provided guess value or a solve block with "find" would be other numeric ways to determine the desired position).

Werner_E_0-1670162889211.png

As you can see, using the derivative and the "root" function returns a result which is slightly more accurate (the corresponding H-value is slightly smaller).

 

Here is even another way to skin this cat, but I won't recommend it.

First we create vectors for u- and corresponding H-values and then use the "min" function to determine the smallest H-value. Lookup then gives us the corresponding velocity value.

Werner_E_2-1670163627950.png