Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
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!
Please post your Mathcad worksheet to show what you have done so far.
Here is what I have
Why don't you post the sheet? Upper right - Use advanced editor.
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
Seems the unit error is in the logarithm. Units inside simplify to meter but you can take the logarithm of a dimensionless expression only.
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:
Plot please a X-Y graph and see where the curve crosses the x axe
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
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.
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
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.
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.
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!?
Hello Werner,
Here the image representation for the variable S and X inside or outside the box of solution.
Cordially.
Denis
Mathcads variables are case sensitive!
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.
After all it is in any case more versatile and useful to turn the solve block into a function:
Hello Werner,
Thank you for this very comprehensive demonstration.
I hope it will satisfy the question of Samuel.
Cordially.
Denis
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