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

How to assign vectors to a function - MathCad Prime 9

JC_10723722
3-Newcomer

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

Werner_E
25-Diamond I
(To:JC_10723722)

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

Announcements

Top Tags