Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Topic: saving a Notebook as pdf or xml
Replies: 2   Last Post: Feb 20, 2012 2:50 AM

 Messages: [ Previous | Next ]
 André Hautot Posts: 18 Registered: 12/8/04
saving a Notebook as pdf or xml
Posted: Feb 17, 2012 6:31 AM

Hello,
Here is a short Notebook that works pretty well :

gr = Plot3D[x^2 + y^2, {x, -2, 2}, {y, -2, 2}, Mesh -> None,
BoxRatios -> Automatic];

sol[p_, g_, y0_, vx0_] :=
NDSolve[{- x''[t] + (- g - (2 x'[t]^2 + 2 y'[t]^2 + 2 x[t] x''[t] + 2
y[t] y''[t])) 2 p x[t] == 0,
- y''[t] + (- g - (2 x'[t]^2 + 2 y'[t]^2 + 2 x[t] x''[t] + 2 y[t]
y''[t])) 2 p y[t] == 0,
z[t] == p (x[t]^2 + y[t]^2), x[0] == 0, x'[0] == -vx0, y[0] == y0,
y'[0] == 0}, {x, y, z}, {t, 0, 100}];

a0 = ParametricPlot3D[
Evaluate[{x[t], y[t], z[t]} /. sol[1, 10, 1.5, 1]], {t, 0, 10},
PlotStyle -> Thick];

Show[a0, gr]

However, 1) saving the Notebook as a pdf file alters the a0-display in
the final output
2) saving the Notebook as a xml file alters some printings like = = (Equal)