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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to assign vectors to a function - MathCad Prime 9

JC_10723722
3-Visitor

How to assign vectors to a function - MathCad Prime 9

Hello friends, I am a newbie to Mathcad, could you please help me with this?
I'm trying to make a spreadsheet to determine the farthest vector from a line. Thank you

dfdafadf.png

 

 

 

 

 

6 REPLIES 6

Hi,

I have changed the coordinates a, b ,c into column vectors then you only need to index their position once.

Note index starts at zero by default.

Changed function to use the two elements of a vector x

Capture.JPG

Cheers

Terry

ttokoro
20-Turquoise
(To:JC_10723722)

image.pngimage.pngimage.pngimage.pngAns=b.

Capture.JPG

In Prime a vector only is a column vector and you need just one index to specify one of its components.

row vectors are considered 1 x n matrices.

 

But of course you may define your points in the form of row vectors. You simply need to adopt the calculations accordingly or you could always use the transpose operator to turn a row vector into a column vector.

 

Here are my two cents

Werner_E_0-1694357317195.png

 

Werner_E_0-1694356876186.png

 

Prime 9 worksheet attached

 

 

ttokoro
20-Turquoise
(To:JC_10723722)

The one of 3D. Max is A.
image.pngimage.png

image.png

ttokoro
20-Turquoise
(To:ttokoro)

With grid mesh.

image.pngimage.pngimage.png

Top Tags