Path: blob/master/grafici/quadriche.tex
185 views
%\begin{tikzpicture}1% \pgfplotsset{ticks=none}2% \begin{axis}[3% xmin=-3,xmax=3,4% ymin=-3,ymax=3,5% zmin=-2,zmax=2,6% xlabel={$x$},7% ylabel={$y$},8% zlabel={$z$},9% zlabel style={rotate=90},10% view={10}{20},11% width=3cm,12% height=3cm]13% \addplot3[mesh,black,domain=0:2*pi,y domain=0:pi,samples=10,samples y=10]({2*cos(deg(x))*sin(deg(y))},{sin(deg(x))*sin(deg(y))},{cos(deg(y))});14% \end{axis}15%16% \node[text width=1.7cm] at (0.5,-0.4) {$\scriptstyle \frac{x^2}{4}+y^2+z^2=1$};17%\end{tikzpicture}18\begin{tikzpicture}19\pgfplotsset{ticks=none}20\begin{axis}[21xmin=-3,xmax=3,22ymin=-3,ymax=3,23zmin=-2,zmax=2,24xlabel={$x$},25ylabel={$y$},26zlabel={$z$},27zlabel style={rotate=90},28view={20}{20},29width=3cm,30height=3cm]31% x^2+y^2-z^2=132\addplot3[mesh,black,domain=1:2,y domain=0:2*pi,samples=6,samples y=10]({x*cos(deg(y))},{x*sin(deg(y))},{sqrt(x^2-1)});33\addplot3[mesh,black,domain=1:2,y domain=0:2*pi,samples=6,samples y=10]({x*cos(deg(y))},{x*sin(deg(y))},{-sqrt(x^2-1)});34\end{axis}3536\node[text width=1.6cm] at (0.7,-0.4) {$\scriptstyle x^2+y^2-z^2=1$};37\end{tikzpicture}38\begin{tikzpicture}39\pgfplotsset{ticks=none}40\begin{axis}[41xmin=-3,xmax=3,42ymin=-3,ymax=3,43zmin=-2,zmax=2,44xlabel={$x$},45ylabel={$y$},46zlabel={$z$},47zlabel style={rotate=90},48view={25}{20},49width=3cm,50height=3cm]51% x^2-y^2-z^2=152\addplot3[mesh,black,domain=-1.2:1.2,y domain=-1.2:1.2,samples=8,samples y=8]({cosh(x)*cosh(y)},{cosh(x)*sinh(y)},{sinh(x)});53\addplot3[mesh,black,domain=-1.2:1.2,y domain=-1.2:1.2,samples=8,samples y=8]({-cosh(x)*cosh(y)},{cosh(x)*sinh(y)},{sinh(x)});5455\end{axis}5657\node[text width=1.6cm] at (0.7,-0.4) {$\scriptstyle x^2-y^2-z^2=1$};58\end{tikzpicture}59\begin{tikzpicture}60\pgfplotsset{ticks=none}61\begin{axis}[62xmin=-3,xmax=3,63ymin=-3,ymax=3,64zmin=-2,zmax=2,65xlabel={$x$},66ylabel={$y$},67zlabel={$z$},68zlabel style={rotate=90},69view={20}{20},70width=3cm,71height=3cm]72\addplot3[mesh,black,domain=0:2*pi,y domain=0:1.5,samples=9,samples y=6]({y*cos(deg(x))},{y*sin(deg(x))},{y^2});7374\end{axis}7576\node[text width=1.2cm] at (0.7,-0.4) {$\scriptstyle x^2+y^2=z$};77\end{tikzpicture}78\begin{tikzpicture}79\pgfplotsset{ticks=none}80\begin{axis}[81xmin=-3,xmax=3,82ymin=-3,ymax=3,83zmin=-2,zmax=2,84xlabel={$x$},85ylabel={$y$},86zlabel={$z$},87zlabel style={rotate=90},88view={15}{40},89width=3cm,90height=3cm]91\addplot3[mesh,black,domain=-1.5:1.5,y domain=-1.5:1.5,samples=8,samples y=8]({x},{y},{x^2-y^2});9293\end{axis}9495\node[text width=1.2cm] at (0.7,-0.4) {$\scriptstyle x^2-y^2=z$};96\end{tikzpicture}979899