Difference between revisions of "User:Boris Tsirelson/sandbox2"
(Undo revision 35590 by Boris Tsirelson (talk)) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 35: | Line 35: | ||
==Three dimensions== | ==Three dimensions== | ||
+ | |||
+ | <center><asy> | ||
+ | settings.render = 0; | ||
+ | |||
+ | unitsize(100); | ||
+ | |||
+ | import three; | ||
+ | import tube; | ||
+ | |||
+ | import graph; | ||
+ | path unitCircle = Circle((0,0),1,35); | ||
+ | |||
+ | currentprojection = perspective((900,-350,-650)); | ||
+ | currentlight=light(gray(0.4),specularfactor=3,viewport=false,(-0.5,-0.5,-0.75),(0,-0.5,0.5),(0.5,0.5,0.75)); | ||
+ | // currentlight=light(gray(0.4),specularfactor=3,viewport=false,(-0.5,-0.5,-0.75),(0.5,-0.5,0.5),(0.5,0.5,0.75)); | ||
+ | |||
+ | triple horn_start=(0,-1,0.6); | ||
+ | triple horn_end=(0,0.4,0.2); | ||
+ | real horn_radius=0.2; | ||
+ | |||
+ | real ratio=horn_end.z/(-horn_start.y); // fractal levels ratio | ||
+ | |||
+ | transform3 implode_right = shift(horn_end) * scale3(ratio) * rotate(-90,X) * shift(-horn_start.y*Y); | ||
+ | transform3 left_right = reflect(O,X,Z)*rotate(90,Y); | ||
+ | |||
+ | path[] cover_with_holes = scale(horn_radius/ratio)*unitCircle^^ | ||
+ | shift((horn_start.z,0))*scale(0.9horn_radius)*reverse(unitCircle)^^ | ||
+ | shift((-horn_start.z,0))*scale(0.9horn_radius)*reverse(unitCircle); | ||
+ | surface cover = surface(cover_with_holes,ZXplane); | ||
+ | surface cover_left = shift((horn_start.x,horn_start.y,0))*cover; | ||
+ | surface two_covers = surface(cover_left,left_right*cover_left); | ||
+ | |||
+ | path3 horn_axis = horn_start..horn_start+(0,0.01,0)..(0,0,0.7)..(0,0.2,0.6)..horn_end+(0,0,0.01)..horn_end; | ||
+ | |||
+ | surface horn = tube( horn_axis, scale(horn_radius)*unitCircle ); | ||
+ | surface two_horns = surface(horn,reflect(O,X,Y)*horn); | ||
+ | surface two_horns = surface(horn,reflect(O,X,Y)*horn); | ||
+ | surface four_horns = surface(two_horns,left_right*two_horns,two_covers); | ||
+ | |||
+ | surface four_small_horns = implode_right*four_horns; | ||
+ | surface eight_small_horns = surface(four_small_horns,left_right*four_small_horns); | ||
+ | |||
+ | surface big_surface = surface(four_horns,eight_small_horns); | ||
+ | |||
+ | real R = horn_radius/ratio; | ||
+ | |||
+ | draw ( circle((0,1,0), 1.005R, Y ), currentpen+2 ); | ||
+ | draw ( circle((horn_start.z,1.01,horn_start.x), horn_radius, Y ), currentpen+2 ); | ||
+ | draw ( circle((-horn_start.z,1.01,horn_start.x), horn_radius, Y ), currentpen+2 ); | ||
+ | |||
+ | draw (big_surface, yellow); | ||
+ | |||
+ | pen blackpen = currentpen+1.5; | ||
+ | |||
+ | draw ( circle((0,-1,0), 1.005R, Y ), blackpen ); | ||
+ | draw ( circle(horn_start, 0.98horn_radius, Y ), blackpen ); | ||
+ | draw ( circle((horn_start.x,horn_start.y,-horn_start.z), 0.98horn_radius, Y ), blackpen ); | ||
+ | |||
+ | real phi=0.9; // adjust to the projection | ||
+ | triple u = (cos(phi),0,sin(phi)); | ||
+ | draw( R*u-Y -- R*u+Y, blackpen ); | ||
+ | draw( -R*u-Y -- -R*u+Y, blackpen ); | ||
+ | |||
+ | </asy></center> | ||
+ | |||
<center><asy> | <center><asy> | ||
Line 62: | Line 127: | ||
==Sinusoid== | ==Sinusoid== | ||
− | <asy> | + | <center><asy> |
import graph; | import graph; | ||
− | size( | + | size(450); |
real f(real x) {return sin(x);}; | real f(real x) {return sin(x);}; | ||
real f1(real x) {return cos(x);}; | real f1(real x) {return cos(x);}; | ||
− | draw(graph(f1,-2*pi,2*pi),blue,"$\cos(x)$"); | + | draw(graph(f1,-2*pi,2*pi),blue+1,"$\cos(x)$"); |
− | draw(graph(f,-2*pi,2*pi),red,"$\sin(x)$"); | + | draw(graph(f,-2*pi,2*pi),red+1,"$\sin(x)$"); |
xaxis("$x$",Arrow); | xaxis("$x$",Arrow); | ||
yaxis(); | yaxis(); | ||
Line 85: | Line 150: | ||
xtick("$-2\pi$",-2*pi,N); | xtick("$-2\pi$",-2*pi,N); | ||
− | ytick("$1/2$",0.5,1); | + | ytick("$1/2$",0.5,1,fontsize(8pt)); |
− | ytick("$\sqrt{2}/2$",sqrt(2)/2,1); | + | ytick("$\sqrt{2}/2$",sqrt(2)/2,1,fontsize(8pt)); |
− | ytick("$\sqrt{3}/2$",sqrt(3)/2,1); | + | ytick("$\sqrt{3}/2$",sqrt(3)/2,1,fontsize(8pt)); |
− | ytick("$1$",1,1); | + | ytick("$1$",1,1,fontsize(8pt)); |
− | ytick("$-1/2$",-0.5,-1); | + | ytick("$-1/2$",-0.5,-1,fontsize(8pt)); |
− | ytick("$-\sqrt{2}/2$",-sqrt(2)/2,-1); | + | ytick("$-\sqrt{2}/2$",-sqrt(2)/2,-1,fontsize(8pt)); |
− | ytick("$-\sqrt{3}/2$",-sqrt(3)/2,-1); | + | ytick("$-\sqrt{3}/2$",-sqrt(3)/2,-1,fontsize(8pt)); |
− | ytick("$-1$",-1,-1); | + | ytick("$-1$",-1,-1,fontsize(8pt)); |
attach(legend(),truepoint(E),10E,UnFill); | attach(legend(),truepoint(E),10E,UnFill); | ||
− | </asy> | + | </asy></center> |
==Sinusoidal spiral== | ==Sinusoidal spiral== |
Latest revision as of 20:14, 12 December 2014
Experiments
Note a fine distinction from Ada:
![](/images/math/0/b/3/0b3fdedfd8137ecc05a65d58c53fc31f.png)
I guess, the reason is that there Asy generates pdf file (converted into png afterwards), and here something else (probably ps).
No, it seems, it generates eps, both here and there. Then, what could be the reason?
More.
![](/images/math/c/d/c/cdc4d914be6157861dc048141665bc00.png)
![](/images/math/8/3/1/831a68240a0d6bc38040fa83f1cf1d3b.png)
Mysterious.
Three dimensions
![](/images/math/7/a/9/7a90a4cbf5a9997699232c5584fc10c3.png)
![](/images/math/5/9/c/59c4699d19bcb83dcf55a99df1ac35c0.png)
Sinusoid
![](/images/math/d/4/9/d4927eacf686c2e7d1718fdaa258b03d.png)
Sinusoidal spiral
![](/images/math/a/c/c/acc5bf76ad01abdd52313332523c1602.png)
Power function
![](/images/math/f/3/1/f31fb5ea1fafe7f63d1c42ead4d0e6e5.png)
Kolmogorov test
![](/images/math/6/b/3/6b3628c67f85c862c5de59f88784d605.png)
Golden ratio
Strangely, the figure in EoM is erroneous! ED=EB, not BD=EB.
![](/images/math/1/0/9/1096637b14dbb0a111e80c2fc8d74c6a.png)
[Calculus: ] the art of numbering and measuring exactly a thing whose existence cannot be conceived. (Voltaire, Letter XVII: On Infinites In Geometry, And Sir Isaac Newton's Chronology)
And what are these fluxions? The velocities of evanescent increments? They are neither finite quantities, nor quantities infinitely small, nor yet nothing. May we not call them ghosts of departed quantities? (Berkeley, The Analyst)
WARNING: Asirra, the cat and dog CAPTCHA, is closing permanently on October 6, 2014. Please contact this site's administrator and ask them to switch to a different CAPTCHA. Thank you!
Boris Tsirelson/sandbox2. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=Boris_Tsirelson/sandbox2&oldid=35354