Skip to main content
3-Newcomer
September 9, 2023
Question

How to assign vectors to a function - MathCad Prime 9

  • September 9, 2023
  • 4 replies
  • 2645 views
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

 

 

 

 

 

4 replies

21-Topaz II
September 10, 2023

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
21-Topaz I
21-Topaz I
September 10, 2023

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

t.t.
21-Topaz II
September 10, 2023
25-Diamond I
September 10, 2023

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
21-Topaz I
21-Topaz I
September 11, 2023

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

image.png

t.t.
ttokoro
21-Topaz I
21-Topaz I
September 11, 2023

With grid mesh.

image.pngimage.pngimage.png

t.t.