Skip to main content
1-Visitor
January 28, 2013
Solved

Plotting complex numbers in Mathcad Prime 2.0

  • January 28, 2013
  • 4 replies
  • 14556 views

Hello,

Is there any possibility to plot a diagram formed by vectors representing complex numbers? (see attached file).

I want to visualize the vectors in this file (e.g. in cartesian coordinates). Notice that V1 = V2 + V3, that means all three vectors form a triangle; and I want to visualize this triangle.I have to tell Mathcad that vector V3 does not start from the origin of the cartesian coordinates, but instead starts from the end of vector V2. Same thing for V4, V5 and V6.

Any help would be much appreciated.

Best answer by RichardJ

Good idea.

4 replies

25-Diamond I
January 28, 2013

John Doe schrieb:

Hello,

Is there any possibility to plot a diagram formed by vectors representing complex numbers? (see attached file).

No, at least not nice and comfortable.

See if the attached would help. I've writte two auxiliary functions, one for the representation of a position vector given by a complex number and the second for and addition according to your definition. Arrows are missing and would cost quite some time to implement.

19-Tanzanite
January 29, 2013

Here's another approach that let's you plot (somewhat crude) arrows.

Alan

JohnDoe1-VisitorAuthor
1-Visitor
January 31, 2013

Elegant solution Alan. However it does not function when I changed the values for vector V3 (it is not the sum of V1 and V2 anymore, but it still should begin at the end of V2).

For this reason I tried to expand your program to consider this case. It worked, only the arrows are now corrupted. Does anyone have a remedy for this?

19-Tanzanite
January 31, 2013

John Doe wrote:

Elegant solution Alan. However it does not function when I changed the values for vector V3 (it is not the sum of V1 and V2 anymore, but it still should begin at the end of V2).

If the "end" vector is expressed as a sum of the two vectors that are head to tail the original works ok - see attached.

Alan

19-Tanzanite
January 29, 2013

Here's another one I converted from an old worksheet from Tom Gutman.

JohnDoe1-VisitorAuthor
1-Visitor
January 31, 2013

This is also a very elegant solution. See its implementation for my current example it worked very fine. However I miss the colorful diagram from Alan's method

Is it possible here to assign different colors to different vectors?

I also find the arrowhead in Alan's method finer. Is it possible to change the shape of the arrowheads here? I tried to manipulate the values in AHd but didn't help.

19-Tanzanite
January 31, 2013

Is it possible here to assign different colors to different vectors?

Only by plotting the arrows individually.

I also find the arrowhead in Alan's method finer. Is it possible to change the shape of the arrowheads here? I tried to manipulate the values in AHd but didn't help.

That's what the multiplier of "1" is for. It scales the arrow heads.

JohnDoe1-VisitorAuthor
1-Visitor
February 1, 2013

Thank you for your useful contributions. I hope one day this method will be implemented as a buit-in function in Mathcad Prime. Vector diagrams are useful in many engineering areas.

1-Visitor
March 8, 2020

Hello all, I just need to find way how to plot phasors (= vectors in electrical engineering) in polar coordinates in Prime6.

I want to plot individual vectors, voltages, currents, impedances, powers and sums and products of corresponding vectors, starting from origo and starting from endpoint of preceding vector.

I hope to get answer from someone.

rgd matti

23-Emerald IV
March 8, 2020

How about you have a look at 'Insert' -> 'Polar Plot' from the 'Plots' menu....

If you are unsure about how to use it, consult the help. It has a nice example.

For further help: do attach your worksheet with some examples of data you want to plot.

 

Success!
Luc