| 1 |
\documentclass{article} |
| 2 |
\usepackage{pst-ode,pst-3dplot} |
| 3 |
\usepackage[T1]{fontenc} |
| 4 |
\usepackage[latin1]{inputenc}% |
| 5 |
|
| 6 |
\begin{document} |
| 7 |
\begin{center} |
| 8 |
\pstVerb{ |
| 9 |
/alpha 10 def |
| 10 |
/beta 28 def |
| 11 |
/gamma 8 3 div def |
| 12 |
}% |
| 13 |
\pstODEsolve[ |
| 14 |
algebraic, |
| 15 |
% saveData % enabling this writes table of results in file lorenzXYZ.data |
| 16 |
% requires ps2pdf -dNOSAFER |
| 17 |
]{lorenzXYZ}{0 1 2}{0}{25}{2501}{10 10 30}{ |
| 18 |
alpha*(x[1]-x[0]) | |
| 19 |
x[0]*(beta-x[2]) - x[1] | |
| 20 |
x[0]*x[1] - gamma*x[2] |
| 21 |
} |
| 22 |
\fbox{\begin{pspicture}(-6,-2)(6,10) |
| 23 |
\psset{unit=0.17cm,Alpha=45,Beta=15} |
| 24 |
\listplotThreeD{lorenzXYZ} |
| 25 |
\psset{unit=0.425cm,linestyle=dashed} |
| 26 |
\pstThreeDNode(0,0,0){O} |
| 27 |
\pstThreeDNode(0,0,5){Z} |
| 28 |
\pstThreeDNode(5,0,0){X} |
| 29 |
\pstThreeDNode(0,5,0){Y} |
| 30 |
\pstThreeDNode(-10,-10,0){A} |
| 31 |
\pstThreeDNode(-10,-10,20){B} |
| 32 |
\pstThreeDNode(-10,10,20){C} |
| 33 |
\pstThreeDNode(-10,10,0){D} |
| 34 |
\pstThreeDNode(10,-10,0){E} |
| 35 |
\pstThreeDNode(10,-10,20){F} |
| 36 |
\pstThreeDNode(10,10,20){G} |
| 37 |
\pstThreeDNode(10,10,0){H} |
| 38 |
\pspolygon(A)(B)(C)(D) |
| 39 |
\pspolygon(E)(F)(G)(H) |
| 40 |
\psline(A)(E) |
| 41 |
\psline(B)(F) |
| 42 |
\psline(D)(H) |
| 43 |
\psline(C)(G) |
| 44 |
\psset{linestyle=solid,linecolor=red} |
| 45 |
\psline{->}(O)(X) |
| 46 |
\psline{->}(O)(Y) |
| 47 |
\psline{->}(O)(Z) |
| 48 |
\end{pspicture}} |
| 49 |
\end{center} |
| 50 |
\end{document} |