KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
Mind your own business, Spock. I'm sick of your halfbreed interference.
FrontPageAsymtote › Asymptote


inspired by MetaPost, with a much cleaner, powerful C++-like programming syntax and floating-point numerics;

Sample

%% pdflatex -> asy -> pdflatex
%%
\documentclass[12pt]{article}

\usepackage{kotex}
\usepackage{asymptote}

\begin{document}

(º°·Î ¾È) °£´ÜÇÑ 3D ¿¹Á¦.

\begin{center}
\begin{asy}[height=8cm,attach=false]
// sinc.asy
import graph3;
import contour;

currentprojection=orthographic(1,-2,1);
currentlight=(1,-1,0.5);

size(12cm,0);

real sinc(pair z) {
  real r=2pi*abs(z);
  return r != 0 ? sin(r)/r : 1;
}

draw(lift(sinc,contour(sinc,(-2,-2),(2,2),new real[] {0})),red);
draw(surface(sinc,(-2,-2),(2,2),Spline),lightgray+opacity(0.5));

xaxis3("$x$",Bounds,InTicks);
yaxis3("$y$",Bounds,InTicks(beginlabel=false));
zaxis3("$z$",Bounds,InTicks);
\end{asy}
\end{center}

\end{document}


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2009-09-18 00:34:10
Processing time 0.0284 sec