diff options
author | dos-reis <gdr@axiomatics.org> | 2007-08-14 05:14:52 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2007-08-14 05:14:52 +0000 |
commit | ab8cc85adde879fb963c94d15675783f2cf4b183 (patch) | |
tree | c202482327f474583b750b2c45dedfc4e4312b1d /src/input/drawcx.input.pamphlet | |
download | open-axiom-ab8cc85adde879fb963c94d15675783f2cf4b183.tar.gz |
Initial population.
Diffstat (limited to 'src/input/drawcx.input.pamphlet')
-rw-r--r-- | src/input/drawcx.input.pamphlet | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/input/drawcx.input.pamphlet b/src/input/drawcx.input.pamphlet new file mode 100644 index 00000000..726cb331 --- /dev/null +++ b/src/input/drawcx.input.pamphlet @@ -0,0 +1,57 @@ +\documentclass{article} +\usepackage{axiom} +\begin{document} +\title{\$SPAD/src/input drawcx.input} +\author{The Axiom Team} +\maketitle +\begin{abstract} +\end{abstract} +\eject +\tableofcontents +\eject +\section{License} +<<license>>= +--Copyright The Numerical Algorithms Group Limited 1991. +@ +<<*>>= +<<license>> +)clear all + +--Plotting Two Dimensional Compiled Functions of One Variable +f(x:DFLOAT):DFLOAT == sin(tan(x))-tan(sin(x)) +draw(f,0..6) +draw(f,0..6,unit == [1.0,0.5],toScale == true) + +--Plotting Two Dimensional Compiled Parametric Plane Curve Functions +i1(t:DFLOAT):DFLOAT == 9*sin(3*t/4) +i2(t:DFLOAT):DFLOAT == 8*sin(t) +draw(curve(i1,i2),-4*%pi..4*%pi) +draw(curve(i1,i2),-4*%pi..4*%pi,toScale == true, title == "Lissajous Curve") + +--Plotting Three Dimensional Compiled Parametric Space Curve Functions +i1(t:DFLOAT):DFLOAT ==sin(t)*cos(3*t/5) +i2(t:DFLOAT):DFLOAT ==cos(t)*cos(3*t/5) +i3(t:DFLOAT):DFLOAT ==cos(t)*sin(3*t/5) +draw(curve(i1,i2,i3),0..15*%pi) +draw(curve(i1,i2,i3),0..15*%pi,title == "Parametric Curve") + +--Plotting Three Dimensional Compiled Functions of Two Variables +l(x:DFLOAT,y:DFLOAT):DFLOAT == cos(x*y) +draw(l,-3..3,-3..3) +colorFxn(x:DFLOAT,y:DFLOAT):DFLOAT == 1/(x**2 + y**2 + 1) +draw(l,-3..3,-3..3, colorFunction == colorFxn) + +--Plotting Three Dimensional Compiled Parametric Surface Functions +n1(u:DFLOAT,v:DFLOAT):DFLOAT == u*cos(v) +n2(u:DFLOAT,v:DFLOAT):DFLOAT == u*sin(v) +n3(u:DFLOAT,v:DFLOAT):DFLOAT == v*cos(u) +draw(surface(n1,n2,n3),-4..4,0..2*%pi) +colorFxn(x:DFLOAT,y:DFLOAT):DFLOAT == 1/(x**2 + y**2 + 1) +draw(surface(n1,n2,n3),-4..4,0..2*%pi, colorFunction == colorFxn) + +@ +\eject +\begin{thebibliography}{99} +\bibitem{1} nothing +\end{thebibliography} +\end{document} |