Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Re: Trying to multiply and take square root of mat...

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

03-19-2021
01:50 AM

03-19-2021
01:50 AM

I'm pretty new to Mathcad like today new, and all I'm trying to do is multiply and take the square root of a bunch of values in matrices but I can't get it to work for the life of me. I've attached a screenshot. My project consists of plotting a bunch of bending moments and shear force diagrams so I have two matrices from two plots with about 500 rows of values and just want to do a simple calculation to get another matrix output that I can take the maximum value from. Any help would be greatly appreciated. Ive also attached the file below in case anyone needs that.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

03-19-2021
03:37 AM

03-19-2021
03:37 AM

Hi,

Trust your having a good time with mathcad.

a) There is a difference between a vector of values "x" and a range variable "i" that references each individual element of "x".

b) There is a difference between a definition of a function Mz(x) in terms of x and an evaluation of the function many times using "x" the vector at each index "i".

c) You use the vectorise method to work on vectors and matrices. It is found on the ribbon at Math | Operators | Vector and Matrices in the bottom right hand corner is a capital V with an arrow over it. You highlight the equation or part of equation required then select the operator. You only need one vectorisation over the whole equation to get the right values.

d} I have enclosed reworked worksheet.

Cheers

Terry

6 REPLIES 6

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

03-19-2021
02:16 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

03-19-2021
04:54 AM

03-19-2021
04:54 AM

Re: Trying to multiply and take square root of matrices

Hi,

Mathcad works from left to right and top to bottom in calculating results.

Placement of items is therefore important.

In your worksheet and the one I posted I have noticed an error is bought in by this mechanism.

You have defined the moment function as a integration of the associated vector calculation of the program and place the definition of moment function above the bottom of the V calculation. This means M uses the previous definition of V not the one beside it.

Correction enclosed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

03-19-2021
03:37 AM

03-19-2021
03:37 AM

Hi,

Trust your having a good time with mathcad.

a) There is a difference between a vector of values "x" and a range variable "i" that references each individual element of "x".

b) There is a difference between a definition of a function Mz(x) in terms of x and an evaluation of the function many times using "x" the vector at each index "i".

c) You use the vectorise method to work on vectors and matrices. It is found on the ribbon at Math | Operators | Vector and Matrices in the bottom right hand corner is a capital V with an arrow over it. You highlight the equation or part of equation required then select the operator. You only need one vectorisation over the whole equation to get the right values.

d} I have enclosed reworked worksheet.

Cheers

Terry

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

03-19-2021
04:40 AM

03-19-2021
04:40 AM

Re: Trying to multiply and take square root of matrices

Thank you this solved all my problems I was running into!! I really appreciate all the help and work you did! I am new to this community and forum so I believe I accidentally accepted the wrong answer for this question, if you know how to reverse that please let me know so I can mark this as the solution!!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

03-19-2021
04:45 AM

03-19-2021
04:45 AM

Re: Trying to multiply and take square root of matrices

Go back and accept your best answer as solution.

Success!

Luc

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

03-19-2021
08:03 AM

03-19-2021
08:03 AM

Re: Trying to multiply and take square root of matrices

the last question, ie d), is unanswered.