Skip to main content
8-Gravel
Jan 29, 2024 10:18 AM UTC
Solved

Defining variables for solve

I have defined the more than one values for a variable.

The answer 0.21 mm is wrong (0.1mm is correct value).

Kindly figure out why the answer is wrong.

 

Regards,

GSVP

Mathcad.JPG

terryhendicott
21-Topaz II
Jan 29, 2024 11:28 AM UTC

Hi,

You need to do element by element arithmetic not matrix arithmetic.

Math | Operation and Symbols | Operators |  in the lower right hand corner a V with an arrow over it.

select the whole equation right hand side and apply the operator.

Capture.JPG

6 replies

terryhendicott
21-Topaz II
Jan 29, 2024 11:28 AM UTC

Hi,

You need to do element by element arithmetic not matrix arithmetic.

Math | Operation and Symbols | Operators |  in the lower right hand corner a V with an arrow over it.

select the whole equation right hand side and apply the operator.

Capture.JPG

Translate
8-Gravel
Jan 30, 2024 3:00 AM UTC

HI,

Sry to bother can you save it Prime8 version

 

Thanks

GSVP

Translate
terryhendicott
21-Topaz II
Jan 30, 2024 5:56 AM UTC

Prime5 that can be read by Prime8

Translate
14-Alexandrite
Jan 29, 2024 5:28 PM UTC

I would like to point out that there is an easier and better way to define W1.  Rather than manually enter 9.81 for the gravitational acceleration, Mathcad includes g as a constant.  So, I suggest you do this:

MCP.png

This way, your mass data is entered as data (rather than just a number) and you let Mathcad handle the math and units.

Translate
8-Gravel
Jan 30, 2024 3:01 AM UTC

Thank you fred for the Tip

I will use in future

 

Translate
Werner_E
25-Diamond I
Jan 29, 2024 7:53 PM UTC

Terry already said that 'vectorization' does the magic here.

 

Its often a good idea to turn the calculations into functions which expect single scalars as arguments and after defining the input vectors call this function vectorized:

Werner_E_0-1706557863407.png

 

I wouldn't necessarily vote for it now, but you can also execute the vectorization in the function and then don't have to think about vectorization when calling it:

Werner_E_1-1706557977492.png

 

 

Translate