Recently I’ve found Mathematica software so I tried to use it for solving some equations. I went to library and found entire book wrote as manual for this software. And there was chapter dedicated to geodesics. I tried to run:
Module[{x,P,z},
b = 2 Pi;
x = torus[3,1,1];
P={Pi,Pi};
sg= solvegeo[x,P,b,30];
z[2]=ParametricPlot[Evaluate[{u[t],v[t]}/.sg],{t,0,b},
PlotRange\[Rule]{-5,10},PlotStyle\[Rule]Hue[0]];
z[1] = ParametricPlot3D[Evaluate[x[u[t],v[t]]/.sg], {t,0,b}];
S @ GraphicsArray[Array[z,2],GraphicsSpacing\[Rule] 0]
]
Show[Graphics[Table[complete[{u[t],v[t]}/.sg,Hue[0]],
{t,0,b,1/2}]],AspectRatio->Automatic]
But unfortunately instead of solution soft. gave me:
!(*
RowBox[{NDSolve::"ndnum", \(:\ ), “<"Encountered non-
numerical value for a derivative
at \!\(s\) == \!\(0.`\). \!\(\*ButtonBox[\"More \",
ButtonStyle->\"RefGuideLinkText\", ButtonFrame->None,
ButtonData:>\"NDSolve::ndnum\"]\)">”}])
And a lot of other’s.
Any ideas what is wrong?
Thanks
Michal Buday