Open up this jupyter notebook in the working directory with all your files you want to work with,
with the Sage Math kernel (with sagemanifolds installed): I did this with the command:
~/Public/sage/sage -n jupyter
so that we run the sage
program/command in the directory with the files you need (such as EuclideanManifold.py
; otherwise, jupyter will treat as the "tree" directory to be the current working directory and you won't be able to go "up" the directory tree (EY : 20160509 please tell me otherwise).
In [6]:
load("EuclideanManifold.py")
In [10]:
R3eg = R3()
print R3eg.transit_sph_to_cart.display();
print R3eg.transit_cyl_to_cart.display();
R3eg.equip_metric()
print R3eg.g.display(R3eg.sph_ch.frame(),R3eg.sph_ch);
R3eg.g.display(R3eg.cyl_ch.frame(),R3eg.cyl_ch)
Out[10]:
In [11]:
to_orthonormal3sph, e3sph, Jacobians3sph = R3eg.make_orthon_frames(R3eg.sph_ch)
to_orthonormal3cyl, e3cyl, Jacobians3cyl = R3eg.make_orthon_frames(R3eg.cyl_ch)
print to_orthonormal3sph.display(R3eg.sph_ch.frame(),R3eg.sph_ch);
to_orthonormal3cyl.display(R3eg.cyl_ch.frame(),R3eg.cyl_ch)
Out[11]:
In [ ]: