Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132939 views
License: OTHER
1
\documentclass{standalone}
2
\usepackage{asymptote}
3
4
\begin{document}
5
6
\begin{asy}[width=10cm,height=10cm]
7
import graph3;
8
9
usepackage("amsfonts");
10
11
size3(200);
12
13
currentprojection=orthographic(4,6,3);
14
15
// parametrization
16
real x(real t) {return cos(2pi*t);}
17
real y(real t) {return sin(2pi*t);}
18
real z(real t) {return 0.5*t;}
19
real z0(real t) {return 0;}
20
21
scale(true);
22
23
// some parameters
24
real delta = 0.01;
25
real phix = 0.1;
26
real phim = 6.7;
27
28
// spiral
29
path3 spiral1 = graph(x,y,z,0.9,1,operator ..);
30
draw(spiral1,dotted);
31
path3 spiral2 = graph(x,y,z,1,phim,operator ..);
32
draw(spiral2,Arrow3);
33
34
// blue circle
35
draw(unitcircle3, blue);
36
37
// orange segments
38
pen sp = orange+1;
39
40
draw(graph(x,y,z0,phix-delta,phix+delta,operator ..),sp);
41
for(real i=1; i<phim; ++i) {
42
draw(graph(x,y,z,i+phix-delta,i+phix+delta,operator ..),sp);
43
}
44
45
// the dot x
46
triple px = (x(phix),y(phix),0);
47
dot(px);
48
label("$x$",px,S);
49
50
// axes and labels
51
xaxis3("",red,Arrow3);
52
yaxis3("",red,Arrow3);
53
zaxis3("",red,Arrow3);
54
55
label("$\mathbb{R}$",(1,-1,4));
56
57
draw((-1,1,4)--(-1,1,1),Arrow3);
58
label("$p$",(-1,1,2.5),E);
59
60
label("$S^1$",(-1,1,0),W,blue);
61
\end{asy}
62
63
\end{document}
64
65