Skip to main content
10-Marble
November 14, 2025
Solved

Solve a variable

  • November 14, 2025
  • 1 reply
  • 313 views

I'm using MathCAD 9.0.0.0. In my program I have the formula...

BB_14100646_0-1763155810208.png

I have every variable set in my program accept h2 that's in the equation twice. Is there a function to solve for h2? Otherwise, I guess I can rewrite the equation to solve for h2?

 

Thanks,

Brent

Best answer by Werner_E

You have an error in your equation. There should be a multiplication between gamma.o and the opening parentheses.

 

To solve for h2 you could use the symbolic "solve" and evaluate the result numerical. But I would vote against using this way as I think that if you are just looking for a numeric result, you should also just use a numeric method.

In Prime you can use the "root" function (either by providing an interval for h.s or by providing a guess value) or you could use a solve block with "find".

Werner_E_0-1763158658493.png

 

Using the symbolic "solve" gives you an ugly looking result because the symbolics treats units as unknown variables and it does not know that kN = kPa*m2. But you can evaluate the result numerically.

Werner_E_1-1763158813669.png

 

Using he symbolics may make sense before you define you variables or after you make them unknown for the symbolics using the clear command:

Werner_E_2-1763159230840.png

 

Prime 9 sheet attached

 

 

 

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
November 14, 2025

You have an error in your equation. There should be a multiplication between gamma.o and the opening parentheses.

 

To solve for h2 you could use the symbolic "solve" and evaluate the result numerical. But I would vote against using this way as I think that if you are just looking for a numeric result, you should also just use a numeric method.

In Prime you can use the "root" function (either by providing an interval for h.s or by providing a guess value) or you could use a solve block with "find".

Werner_E_0-1763158658493.png

 

Using the symbolic "solve" gives you an ugly looking result because the symbolics treats units as unknown variables and it does not know that kN = kPa*m2. But you can evaluate the result numerically.

Werner_E_1-1763158813669.png

 

Using he symbolics may make sense before you define you variables or after you make them unknown for the symbolics using the clear command:

Werner_E_2-1763159230840.png

 

Prime 9 sheet attached

 

 

 

 

 

10-Marble
November 14, 2025

Thank you!!!