Skip to main content
3-Newcomer
April 28, 2023
Question

Solve x in equation and awsner in mm

  • April 28, 2023
  • 3 replies
  • 2195 views

Capture.PNG

3 replies

21-Topaz II
April 28, 2023

Please upload your worksheet rather than just an image

25-Diamond I
April 28, 2023

That will end in a polynomial of order 4.

Prime may be able to solve it numerically, but I doubt that you will see a decent symbolic solution.

Obviously you know about symbolic solving with "solve". So you sure already tried that on your equation - what was the result?

3-Newcomer
May 2, 2023

when using the symbolic solving function, we get the following answer. 

AS_10669138_0-1683019720732.png

 

25-Diamond I
May 2, 2023

So it looks you get your answer anyway!? Whats the problem.

Primes symbolic unfortunately does not know anything about units and treats them as unknown variables - hence the ugly result.
Sometimes it helps to turn on the calculation option to use units in the symbolics but it doesn't in case of your example.

Assign the result a variable and evaluate that variable numerically so you get the two result in a more meaningful display and if you  are only interested in the positive (larger) result, you can use the "max" function to do the job:.

Werner_E_0-1683021413976.png

BTW, the "solve"  above the shown region fails because the variable to solve for already was assigned a value. You can use "clear([variable name])" or "clear.sym([variable name])" to be able to use that variable name for solving.

 

As you are not looking for a symbolic result but rather a simple numeric one, you may also consider not to use the symbolics but rather numeric methods (either a solve block or the "root" function).

Werner_E_0-1683023690314.png

The precision of the result is dependent on the setting of the system variable TOL. Its default value is 10^-3. I set it to 10^-6 to get the same three decimals as with the symbolic solve. You may set the value for TOL either somewhere at the stop of the sheet or with the ribbon menu (Calculation - Worksheet Settings),

 

Worksheet in format P9 attached

 

23-Emerald IV
May 2, 2023

At the top of your sheet, before anything else, define:

LucMeekes_2-1683062409861.png

Then, at the position of equation (7), you can:

LucMeekes_1-1683062299384.png

and if you only want the (most) positive result:

LucMeekes_3-1683062570128.png

Success!
Luc