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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again 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

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

FredLusk
14-Alexandrite
(To:VG_10714868)

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

 

Werner_E
25-Diamond I
(To:VG_10714868)

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

 

 

Announcements

Top Tags