AoPSWiki:Sandbox
To the point Tutorial for Using Asymptote in AoPS
Contents
[hide]The Name Asymptote
The Name Asymptote
The Very Basics
LaTeX uses a special "math mode" to display mathematics. There are two types of this "math mode":
In-line Math Mode
In in-line math mode, we use $
signs to enclose the math we want to display, and it displays in-line with our text. For example, typing $\sqrt{x} = 5$
gives us
Display Math Mode
In display math mode, we enclose our code in double dollar signs, and it displays the math centered and on its own line. For example, $$\sqrt{x} = 5$$
gives us
In-line vs. Display
Besides displaying in-line vs. displaying centered and on a new line, the two modes render differently in other ways. Note that $\sum_{k=1}^n k^2$
gives us whereas $$\sum_{k=1}^n k^2$$
gives us
Basic Expressions
Multiplication
Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write instead of without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by $\cdot$
. For example, $12\cdot\frac{1}{2}$
gives us
Fractions
We can make fractions via $\frac{...}{...}$
. For instance, $\frac{x+y}{2}$
will give us
Asymptote tutorial for AoPS
The Name Asymptote
The Name Asymptote
Tips
#1 Beginning your code
#2 Setting points
#3 Pair part 1
#4 Connecting two points, coloring the line
#5 Labeling, Midpoint
#6 Angle Measures
#7 Distance Function
#8 Casting
#9 Right Angle Mark
#10 Intersection
#11 Filling
#12 Dot
#13 Size
#14 Tick Marks
#15 Arrows
#16 Shifting Coordinates
#17 Rotating
#18 Circles
#19 Dashed Lines
#20 Angle Mark
Expand
#21 "for" Command
Expand
#22 Extension
Expand
#23 How to draw an equilateral triangle
Expand
#24 How to draw an isosceles triangle
Expand
#25 How to draw a scalene triangle
Expand
#26 Labeling Angles
Expand
#27 Drawing triangles using SSS, SAS, AAS, and ASA
Expand
#28 Arcs
Expand
#29 The Nine Point Circle
Expand
#30 Pair Part 2
Expand
#31 Finding the midpoint
Expand
#32 Foot Command
Expand
#33 Introduction to 3D Geometry