Hi all,
For example, I have:
restart:
with(VectorCalculus):
z1:=1+I*5;
z2:=6-I*3;
I want to plot three vectors which are represented by z1, z2 and z1+z2.
I can plot them as:
PlotVector([<Re(z1),Im(z1)>,<Re(z2),Im(z2)>,<Re(z1+z2),Im(z1+z2)>],color=[red,blue,yellow]);
But the three vectors have origin at point x:=0 and y:=0.
I can change this by applying VectorSpace as:
vs1 := VectorSpace('cartesian', [0, 0]): vs2 := VectorSpace('cartesian', [1, 5]):
PlotVector([vs1:-Vector([Re(z1),Im(z1)]),vs2:-Vector([Re(z2),Im(z2)]),vs1:-Vector([Re(z1+z2),Im(z1+z2)])],color=[red,blue,yellow]);
Is there an other more easy way to do this type of ploting of complex numbers without applying Re(z1), Im(z1), and VectorSpace ? When we have for example 6.2*z1+sqrt(2)*0.2*z2+z3, it is not easy to to determine the VectorSpace.
Thanks in advance
Kamel