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
- :
- How to multiple across vectors?

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

Highlighted

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

06-05-2013
12:25 PM

06-05-2013
12:25 PM

In the attached MathCAD 14 worksheet I have defined two vectors and a number. Is it possible to write an equation that would provide a resultant vector in which each first position is the result of the multiplication of a number by the first position in one vector by the first postion in another vector. The second position of the resultant vector is a number multiplied by the second postion in one vector by the second position in another and so. Basically I am attempting to do this:

4 * [A] * [E] = [4*A*E]

[B] * [F] = [4*B*F]

[C] * [G] = [4*C*G]

[D] * [H] = [4*D*H]

MathCAD is performing this operation as a matrix operation which is what I'm trying not to do. I'm asking because I will eventually be using much larger vectors where I can save time and potential errors by performing it in one step and relying on MathCAD instead of writing out individual equations.

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

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

06-05-2013
12:55 PM

06-05-2013
12:55 PM

Just see that Valery has beaten me for 2 minutes

So find attached two methods to show, that even without vectorization (which is the preferred method of doing what you want, of course) you would not have to resort to writing individual equations. Maybe helpful if calculations get more complicated.

6 REPLIES 6

Highlighted
##

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

06-05-2013
12:41 PM

06-05-2013
12:41 PM

Re: How to multiple across vectors?

May be so:

Highlighted
##

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

06-05-2013
12:43 PM

06-05-2013
12:43 PM

Re: How to multiple across vectors?

This is what vectorization is for.

You find it either in the matrix palette or using the keyboard shortcut strg & -

Highlighted

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

06-05-2013
12:55 PM

06-05-2013
12:55 PM

Just see that Valery has beaten me for 2 minutes

So find attached two methods to show, that even without vectorization (which is the preferred method of doing what you want, of course) you would not have to resort to writing individual equations. Maybe helpful if calculations get more complicated.

Highlighted
##

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

06-05-2013
02:50 PM

06-05-2013
02:50 PM

Re: How to multiple across vectors?

You are both very helpful, thank you!

Does the Given command work with vectors as the variable(s) to solve for?

Highlighted
##

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

06-05-2013
03:23 PM

06-05-2013
03:23 PM

Re: How to multiple across vectors?

Does the Given command work with vectors as the variable(s) to solve for?

Yes, you can work with vectors in solve blocks, but it depends on how you are using them. Generally speaking, chances that you are getting troubles are increased when using vectors and/or units.

Just give it a try and if you are getting troubles come back here and ask.

Highlighted
##

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

06-06-2013
12:47 AM

06-06-2013
12:47 AM

Re: How to multiple across vectors?

Werner Exinger wrote:

Does the Given command work with vectors as the variable(s) to solve for?

Yes, you can work with vectors in solve blocks...

as a vector of guess values: