Skip to main content
1-Visitor
Question

x-y plot rectangular coordinates

Hi

Newbie to Mathcad Prime, How do I plot a straight line from the origin using complex numbers.

Eg 10+5i complex number.

Straight line between (0,0) and (10,5) using x-y plot.

Any assistance much appreciated.

11 replies

Werner_E
25-Diamond I

Write the column vector consisting of the x-coordinates of the two points in the placeholder for the abscissa and the column vector consisting of the y-coordinates in the placeholder for the ordinate.

Here is what it looks like in Mathcad15, but it should work similarly in Prime, too.

Translate
23-Emerald V

And it does, in Prime:

Success!
Luc

Translate
23-Emerald V

Or in another incarnation:

Translate
Werner_E
25-Diamond I

OK, so here is yet another one 😉

Translate
24-Ruby IV

Thanks, Werner, for the picture.

See please Arrow on plots

arrow.png

Translate
24-Ruby IV

How do I plot a straight line?

Any assistance much appreciated.

A general way to plot lines (curves) and points

2a-parabola.png

Translate
1-Visitor

Thanks for the feedback. Is it possible to fix the axis to a certain length?

Translate
23-Emerald V

Yes, that happens automatically.

Below is an empty plot (nothing filled in yet). You can set the size of the plot container by pulling the small square at the lower right side of it, pointed to by the red arrow in the drawing below. That sets the length of both the x- and y-axes:

When you actually put expressions to plot, this is what you get:

The plot container grows, but the length of x- and y-axes remain the same.

But notice that the scales are different now. If you want those to be fixed, that's anothe matter.

Prime does not seem to have a way set those (like Mathcad 15 or before do have). What you can do is add another trace with the (minimum) axis limits you want, and make the trace invisible by setting its colour. below I've changed the scales back to + and -10 for both axes The trace colour is set to white, and the line type is dashed to minimally interfere with the blue trace:

Success!
Luc

Translate