> restart:
with(linalg):
with(LinearAlgebra):
q:=<a*(cos(E)-e), a*sqrt(1-e^2)*sin(E),0>;
qdot:=<-n*a*sin(E)/(1-e*cos(E)), n*a*sqrt(1-e^2)*cos(E)/(1-e*cos(E)),0>;
Rxq:=< <
cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega),
-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega),
sin(Omega)*sin(i)>|
<sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega),
-sin(Omega)*sin(omega)+cos(Omega)*cos(i)*cos(omega),
-cos(Omega)*sin(i)>|
<sin(i)*sin(omega),
sin(i)*cos(omega),
cos(i)>>;
r:=MatrixVectorMultiply(Rxq, q);
rdot:=MatrixVectorMultiply(Rxq, qdot);
X:=r[1];
Y:=r[2];
Z:=r[3];
VX:=rdot[1];
VY:=rdot[2];
VZ:=rdot[3];

Jzp:=((X*VY-Y*VX)/sqrt((X^2+Y^2)*(VX^2+VY^2)));

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;


n:=sqrt(GM)*a^(-3/2);
omega:=0;
Omega:=0;
#e:=0.15;
#a:=1;
# i:=0;
GM:=1;
#FCE:=(X,Y,Z)->subs(E=X, i=Y/180.0*Pi, e=Z, Jzp);
FCE:=(X,Y,Z,fn)->subs(E=X, i=Y/180.0*Pi, e=Z, a=fn, Jzp);

plot([FCE(x,0,0,1), FCE(x,30,0,1), FCE(x,60,0,1), FCE(x,90,0,1)], x=0..2*Pi, y=-1.1..+1.1, axes=boxed, legend=["(x,0,0,1)", "(x,30,0,1)", "(x,60,0,1)", "(x,90,0,1)"]);

plot([FCE(x,0,0.15,1), FCE(x,30,0.15,1), FCE(x,60,0.15,1), FCE(x,90,0.15,1)], x=0..2*Pi, y=-1.1..+1.1, axes=boxed, legend=["(x,0,0.15,1)", "(x,30,0.15,1)", "(x,60,0.15,1)", "(x,90,0.15,1)"]);

plot([FCE(x,0,0.35,1), FCE(x,30,0.35,1), FCE(x,60,0.35,1), FCE(x,90,0.35,1)], x=0..2*Pi, y=-1.1..+1.1, axes=boxed, legend=["(x,0,0.35,1)", "(x,30,0.35,1)", "(x,60,0.35,1)", "(x,90,0.35,1)"]);

plot([FCE(x,0,0.65,1), FCE(x,30,0.65,1), FCE(x,60,0.65,1), FCE(x,90,0.65,1)], x=0..2*Pi, y=-1.1..+1.1, axes=boxed, legend=["(x,0,0.65,1)", "(x,30,0.65,1)", "(x,60,0.65,1)", "(x,90,0.65,1)"]);

plot([FCE(x,0,0.95,1), FCE(x,30,0.95,1), FCE(x,60,0.95,1), FCE(x,90,0.95,1)], x=0..2*Pi, y=-1.1..+1.1, axes=boxed, legend=["(x,0,0.95,1)", "(x,30,0.95,1)", "(x,60,0.95,1)", "(x,90,0.95,1)"]);
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;
plot([FCE(x,0,0,1), FCE(x,30,0,1), FCE(x,60,0,1), FCE(x,90,0,1),
FCE(x,0,0,3), FCE(x,30,0,3), FCE(x,60,0,3), FCE(x,90,0,3)], x=0..2*Pi, y=-1.1..+1.1, axes=boxed, legend=["(x,0,0,1)", "(x,30,0,1)", "(x,60,0,1)", "(x,90,0,1)","(x,0,0,3)", "(x,30,0,3)", "(x,60,0,3)", "(x,90,0,3)"]);
plot([FCE(x,0,0,1), FCE(x,30,0,1), FCE(x,60,0,1), FCE(x,90,0,1),
FCE(x,0,0,3), FCE(x,30,0,3), FCE(x,60,0,3), FCE(x,90,0,3)], x=0..2*Pi, y=-1.1..+1.1, axes=boxed);

plot([FCE(x,0,0.15,1), FCE(x,30,0.15,1), FCE(x,60,0.15,1), FCE(x,90,0.15,1),
FCE(x,0,0.15,3), FCE(x,30,0.15,3), FCE(x,60,0.15,3), FCE(x,90,0.15,3)], x=0..2*Pi, y=-1.1..+1.1, axes=boxed, legend=["(x,0,0.15,1)", "(x,30,0.15,1)", "(x,60,0.15,1)", "(x,90,0.15,1)","(x,0,0.15,3)", "(x,30,0.15,3)", "(x,60,0.15,3)", "(x,90,0.15,3)"]);
plot([FCE(x,0,0.15,1), FCE(x,30,0.15,1), FCE(x,60,0.15,1), FCE(x,90,0.15,1),
FCE(x,0,0.15,3), FCE(x,30,0.15,3), FCE(x,60,0.15,3), FCE(x,90,0.15,3)], x=0..2*Pi, y=-1.1..+1.1, axes=boxed);

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;

E:=Pi;
Omega:=0;
n:=sqrt(GM)*a^(-3/2);
#Jzp_zjednoduseny:=simplify((X*VY-Y*VX)/sqrt((X^2+Y^2)*(VX^2+VY^2)));
 

Vector[column](%id = 135730932) 

Vector[column](%id = 136241232) 

Matrix(%id = 136469904)
Matrix(%id = 136469904)
Matrix(%id = 136469904)
Matrix(%id = 136469904)
 

Vector[column](%id = 136560672)
Vector[column](%id = 136560672)
Vector[column](%id = 136560672)
Vector[column](%id = 136560672)
Vector[column](%id = 136560672)
Vector[column](%id = 136560672)
 

Vector[column](%id = 136616156)
Vector[column](%id = 136616156)
Vector[column](%id = 136616156)
Vector[column](%id = 136616156)
Vector[column](%id = 136616156)
Vector[column](%id = 136616156)
 

(cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E)
(cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E)
 

(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))*a*(cos(E)-e)+(-sin(Omega)*sin(omega)+cos(Omega)*cos(i)*cos(omega))*a*(1-e^2)^(1/2)*sin(E)
(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))*a*(cos(E)-e)+(-sin(Omega)*sin(omega)+cos(Omega)*cos(i)*cos(omega))*a*(1-e^2)^(1/2)*sin(E)
 

sin(Omega)*sin(i)*a*(cos(E)-e)-cos(Omega)*sin(i)*a*(1-e^2)^(1/2)*sin(E) 

-(cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*n*a*sin(E)/(1-e*cos(E))+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*n*a*(1-e^2)^(1/2)*cos(E)/(1-e*cos(E))
-(cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*n*a*sin(E)/(1-e*cos(E))+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*n*a*(1-e^2)^(1/2)*cos(E)/(1-e*cos(E))
 

-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))*n*a*sin(E)/(1-e*cos(E))+(-sin(Omega)*sin(omega)+cos(Omega)*cos(i)*cos(omega))*n*a*(1-e^2)^(1/2)*cos(E)/(1-e*cos(E))
-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))*n*a*sin(E)/(1-e*cos(E))+(-sin(Omega)*sin(omega)+cos(Omega)*cos(i)*cos(omega))*n*a*(1-e^2)^(1/2)*cos(E)/(1-e*cos(E))
 

-sin(Omega)*sin(i)*n*a*sin(E)/(1-e*cos(E))-cos(Omega)*sin(i)*n*a*(1-e^2)^(1/2)*cos(E)/(1-e*cos(E)) 

(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
(((cos(Omega)*cos(omega)-sin(Omega)*cos(i)*sin(omega))*a*(cos(E)-e)+(sin(Omega)*cos(omega)+cos(Omega)*cos(i)*sin(omega))*a*(1-e^2)^(1/2)*sin(E))*(-(-cos(Omega)*sin(omega)-sin(Omega)*cos(i)*cos(omega))...
 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 

GM^(1/2)/a^(3/2) 

0 

0 

1 

proc (X, Y, Z, fn) options operator, arrow; subs(E = X, i = Y*Pi/180.0, e = Z, a = fn, Jzp) end proc 

Plot 

Plot 

Plot 

Plot 

Plot 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 

Plot 

Plot 

Plot 

Plot 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 

Pi 

0 

1/a^(3/2) (1)
 

>