Skip to main content
3-Newcomer
Apr 28, 2023 12:37 PM UTC
Question

Solve x in equation and awsner in mm

Capture.PNG

8 replies

terryhendicott
21-Topaz II
Apr 28, 2023 2:13 PM UTC

Please upload your worksheet rather than just an image

Translate
Werner_E
25-Diamond I
Apr 28, 2023 7:16 PM UTC

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?

Translate
3-Newcomer
May 2, 2023 9:29 AM UTC

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

AS_10669138_0-1683019720732.png

 

Translate
Werner_E
25-Diamond I
May 2, 2023 10:10 AM UTC

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

 

Translate
23-Emerald V
May 2, 2023 9:23 PM UTC

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

Translate