Skip to main content
1-Visitor
February 14, 2020
Solved

Solving equation though variables

  • February 14, 2020
  • 1 reply
  • 1032 views

I have the following equation:

John6_0-1581720227673.png

I want to find the value o x, the others variables are all defined earlier on worksheet. After getting the value, how can I link this value to a variable?

I am using PTC Mathcad 5.

Best answer by Werner_E

To get the two solutions of this simple quadratic equation you may use the symbolic "solve" command, or, if all other variables are already numerically defined, the numerical "root" command in one of its two flavours or a numeric solve block with "find".

The numeric methods will only give you one of the two solutions depending on a guess value or you may control the outcome by additional constraints like "x>10".

Whatever method you chose, you can always assign the result to a variable by simple prepending the expression by an normal assignment ("variable name : = ...")

You may decide to attach you worksheet for further help - I am too lazy to retype what you already did and I don't know the value of the other variables.

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
February 15, 2020

To get the two solutions of this simple quadratic equation you may use the symbolic "solve" command, or, if all other variables are already numerically defined, the numerical "root" command in one of its two flavours or a numeric solve block with "find".

The numeric methods will only give you one of the two solutions depending on a guess value or you may control the outcome by additional constraints like "x>10".

Whatever method you chose, you can always assign the result to a variable by simple prepending the expression by an normal assignment ("variable name : = ...")

You may decide to attach you worksheet for further help - I am too lazy to retype what you already did and I don't know the value of the other variables.