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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Translate the entire conversation x

Solve a variable

BB_14100646
10-Marble

Solve a variable

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

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:BB_14100646)

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

 

 

 

 

 

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:BB_14100646)

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

 

 

 

 

 

Thank you!!!

Announcements

Top Tags