cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Defining variables for solve

VG_10714868
4-Participant

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

6 REPLIES 6

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

HI,

Sry to bother can you save it Prime8 version

 

Thanks

GSVP

Prime5 that can be read by Prime8

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.

VG_10714868
4-Participant
(To:FredLusk)

Thank you fred for the Tip

I will use in future

 

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

 

 

Top Tags