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

1-Newbie

Solving a Complex Equation in MathCad

Trying to solve this equation in mathcad prime, i just cant get the form right, i keep getting an error when I know it should be a simple operation.

It has values S (total distance traveled) and X (horizontal distance traveled) known, trying to solve for the max value of H (height) of an object in parabola projection.

I keep setting the variables, guess for the H variable, and then try to solve the equation using Find(H) or Maximize(H) doesnt work. I'll attach an image of the problem. Any help would be greatly appreciated!

Thanks!

18 REPLIES 18
24-Ruby IV
(To:swise)

1-Newbie
(To:Werner_E)

Here is what I have

24-Ruby IV
(To:swise)

Why don't you post the sheet? Upper right - Use advanced editor.

3-Visitor
(To:swise)

Offhand, it looks like a units mismatch between the first expression and the second. The first expression looks like it results m^2, while everything else results in m

TTFN

24-Ruby IV
(To:IRstuff)

Seems the unit error is in the logarithm. Units inside simplify to meter but you can take the logarithm of a dimensionless expression only.

24-Ruby II
(To:Werner_E)
 Werner Exinger wrote:Seems the unit error is in the logarithm. Units inside simplify to meter but you can take the logarithm of a dimensionless expression only.

One example in Mathcad - Entropy ideal gas calculation:

24-Ruby II
(To:swise)

Plot please a X-Y graph and see where the curve crosses the x axe

12-Amethyst
(To:swise)

Samuel…

In your constraints equation, there appears to be a missing operator (plus sign?) between X^2 and 16*H^2 under the square root. In addition, you need to divide the term inside the natural log by meters so that you're taking the ln of a scalar.

Fred

24-Ruby IV
(To:FredLusk)
 In addition, you need to divide the term inside the natural log by meters so that you're taking the ln of a scalar.

Or again the formula is false and there is a second missing plus sign between H and the root.

15-Moonstone
(To:Werner_E)

Hello Werner,

Even if we write the equation with all the signs, there is always no good result.

Always the message on non-compatible units.

Cordially.

Denis

24-Ruby IV
(To:DenisJaunin)
 Even if we write the equation with all the signs, there is always no good result.Always the message on non-compatible units.

Really?

I just added the two plus signs we wrote about and it works. Not sure if thats the equation Samuel is trying to solve but it looks reasonable. Maybe Sanuel is no longer interested anyway, finally he did not respond until now.

15-Moonstone
(To:Werner_E)

Hello Werner,

Oops, sorry, it's me, I made a mistake, I put a sign "x" instead of a "+" between H e root.

But also if we do not leave S and X and the last H block, you do not get the solution.

For Samuel, actually it is not income??, It allowed us to study this case and have the same result.

Cordially.

Denis.

24-Ruby IV
(To:DenisJaunin)
 But also if we do not leave S and X and the last H block, you do not get the solution.

Sorry, I don't understand what you mean!?

15-Moonstone
(To:Werner_E)

Hello Werner,

Here the image representation for the variable S and X inside or outside the box of solution.

Cordially.

Denis

24-Ruby IV
(To:DenisJaunin)

The solve block should work with X:=15m being inside, too.

Look at the error message - it tells you that X (uppercase) is undefined.

I had the definitions of X and S at the outside because they are no guess values and so have nothing to do with the solvblock itself. They just have to be defined.

24-Ruby IV
(To:DenisJaunin)

After all it is in any case more versatile and useful to turn the solve block into a function:

15-Moonstone
(To:Werner_E)

Hello Werner,

Thank you for this very comprehensive demonstration.

I hope it will satisfy the question of Samuel.

Cordially.

Denis

15-Moonstone
(To:swise)

Hello, Samuel,

Do you have another source for the form of the attachment, because even with other software it is not H.

Do you have any worksheet to send.

As you noted Arbiter, the units are not consistent.

Cordially.

Denis

Announcements
Check out the latest