Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

Symbolic calculation

AK_12548842
3-Newcomer

Symbolic calculation

Hello,

 

Very new to the software which I plan to use as a worksheet for exercises, so the following may be requiring a very simple solution.

I am using Mathcad Prime 9.0.0.0.

 

I am trying to solve an equation both symbolically and numerically (?):

AK_12548842_0-1743775175548.png

I don't seem to be able to get a result and I also don't seem to be able to use = instead of :=.

 

Any help?

Thanks!

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:AK_12548842)

Its good (and necessary) that you name the version of Prime you are using.

For future questions you always should additionally attach your worksheet, no matter how simply and small it may be.

You see by the answer of @Cornel  that he made an error in the placement of the minus sign because he was forced to retype the expression!

 

A general remark: If you use units and symbolic evaluations, you always should turn on this calculation option:

Werner_E_0-1743784578238.png

 

Furthermore its necessary to check an recheck the labelling of the variables - the should always read "Variable" or "(Variable)". This is especially necessary because "sigma" is a predefined constant and "m" may also be confused with the unit meter. Prime tries to auto-detect the correct label to use, but it also fails quite often doing so.
The labels Units, Constants and Variables use different color/typeface but this can easily be overlooked, especially the difference between "Constant" and "Variable":

Werner_E_2-1743785079505.png

 

If you provide an equation for symbolical solving you have to use the Boolean comparison equal sign

Werner_E_1-1743784686251.png

 

But even if you apply this, the symbolic engine is not able to find a numeric solution as long as you provide specific values for P.f, sigma.0 and m. I am not sure why 😞

Werner_E_3-1743785220175.png

 

But if you are looking for a numeric result its better anyway to use a numeric method like a solve block with "find" or the "root" function.

Werner_E_4-1743785302932.png

 

Prime is also able to provide a symbolic solution using just the variables and not the numeric values (you have to either place this before you define your variables or you clear the variables before)

Werner_E_6-1743785492793.png

 

You may turn this also in a function dependent on the three input variables and evaluate it for any input values you like.

You may also use this function for plotting, e.g. to see the effect when changing just one value (here the value of m):

Werner_E_7-1743785810199.png

BTW, I used variable mm for the range which is used for plotting because I wanted the already defined variable "m" to remain untouched. I also use "m" in the plot for the vertical marker.

 

Prime 9 worksheet attached - hope it helps.

View solution in original post

3 REPLIES 3
Cornel
19-Tanzanite
(To:AK_12548842)

Cornel_2-1743782079537.png

 

Werner_E
25-Diamond I
(To:Cornel)

You misplaced the minus sign

Werner_E_0-1743787600679.png

 

Once corrected, you should get the answer seen in my reply below

Werner_E_2-1743787745035.png

Werner_E_4-1743787856230.png

 

 

 

 

 

Werner_E
25-Diamond I
(To:AK_12548842)

Its good (and necessary) that you name the version of Prime you are using.

For future questions you always should additionally attach your worksheet, no matter how simply and small it may be.

You see by the answer of @Cornel  that he made an error in the placement of the minus sign because he was forced to retype the expression!

 

A general remark: If you use units and symbolic evaluations, you always should turn on this calculation option:

Werner_E_0-1743784578238.png

 

Furthermore its necessary to check an recheck the labelling of the variables - the should always read "Variable" or "(Variable)". This is especially necessary because "sigma" is a predefined constant and "m" may also be confused with the unit meter. Prime tries to auto-detect the correct label to use, but it also fails quite often doing so.
The labels Units, Constants and Variables use different color/typeface but this can easily be overlooked, especially the difference between "Constant" and "Variable":

Werner_E_2-1743785079505.png

 

If you provide an equation for symbolical solving you have to use the Boolean comparison equal sign

Werner_E_1-1743784686251.png

 

But even if you apply this, the symbolic engine is not able to find a numeric solution as long as you provide specific values for P.f, sigma.0 and m. I am not sure why 😞

Werner_E_3-1743785220175.png

 

But if you are looking for a numeric result its better anyway to use a numeric method like a solve block with "find" or the "root" function.

Werner_E_4-1743785302932.png

 

Prime is also able to provide a symbolic solution using just the variables and not the numeric values (you have to either place this before you define your variables or you clear the variables before)

Werner_E_6-1743785492793.png

 

You may turn this also in a function dependent on the three input variables and evaluate it for any input values you like.

You may also use this function for plotting, e.g. to see the effect when changing just one value (here the value of m):

Werner_E_7-1743785810199.png

BTW, I used variable mm for the range which is used for plotting because I wanted the already defined variable "m" to remain untouched. I also use "m" in the plot for the vertical marker.

 

Prime 9 worksheet attached - hope it helps.

Announcements

Top Tags