Difference between revisions of "AoPSWiki:Sandbox"

Line 1: Line 1:
 +
<span style="font-size: 250%; color:#27445C">'''To the point Tutorial for Using Asymptote in AoPS'''</span>
 +
----
 +
== The Name Asymptote ==
 +
<div class="mw-collapsible mw-collapsed" style="width:100%">
 +
<big>'''The Name Asymptote'''</big>
 +
<div class="mw-collapsible-content">
 +
* Why Asymptote is called Asymptote?
 +
<blockquote>http://asymptote.sourceforge.net/FAQ/section1.html#whyasy
 +
Question 1.4. Why was the name Asymptote chosen?
 +
Well, it isn't the  perfect graphics package, but we do think it is getting there  asymptotically...
 +
</blockquote>
 +
</div></div>
 +
=== 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 <code>$</code> signs to enclose the math we want to display, and it displays in-line with our text. For example, typing <code>$\sqrt{x} = 5$</code> gives us <math>\sqrt{x} = 5.</math>
 +
 +
==== 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, <code>$$\sqrt{x} = 5$$</code> gives us <cmath>\sqrt{x} = 5.</cmath>
 +
 +
==== 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 <code>$\sum_{k=1}^n k^2$</code> gives us <math>\textstyle\sum_{k=1}^n k^2,</math> whereas <code>$$\sum_{k=1}^n k^2$$</code> gives us <cmath>\sum_{k=1}^n k^2.</cmath>
 +
 +
=== Basic Expressions ===
 +
 +
==== Multiplication ====
 +
 +
Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write <math>xy</math> instead of <math>x\cdot y</math> without ambiguity. However, when you're multiplying numbers, for instance, a multiplication symbol comes in handy. The standard symbol is given by <code>$\cdot$</code>. For example, <code>$12\cdot\frac{1}{2}$</code> gives us <math>\textstyle 12\cdot \frac 12.</math>
 +
 +
==== Fractions ====
 +
 +
We can make fractions via <code>$\frac{...}{...}$</code>. For instance, <code>$\frac{x+y}{2}$</code> will give us <math>\textstyle\frac{x+y}{2}.</math>
 +
 +
 
<h1>Asymptote tutorial for AoPS</h1>
 
<h1>Asymptote tutorial for AoPS</h1>
 
<dd>
 
<dd>
 +
== The Name Asymptote ==
 
<div class="mw-collapsible mw-collapsed" style="width:100%">
 
<div class="mw-collapsible mw-collapsed" style="width:100%">
 
<big>'''The Name Asymptote'''</big>
 
<big>'''The Name Asymptote'''</big>
Line 1,170: Line 1,210:
 
<br></div></div>
 
<br></div></div>
 
</dd>
 
</dd>
 +
 +
[[Category:Asymptote tutorial for AoPS]]

Revision as of 16:55, 3 June 2022

To the point Tutorial for Using Asymptote in AoPS


The Name Asymptote

Expand

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 $\sqrt{x} = 5.$

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 \[\sqrt{x} = 5.\]

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 $\textstyle\sum_{k=1}^n k^2,$ whereas $$\sum_{k=1}^n k^2$$ gives us \[\sum_{k=1}^n k^2.\]

Basic Expressions

Multiplication

Sometimes, when we're multiplying, we don't need a multiplication symbol. For instance, we can write $xy$ instead of $x\cdot y$ 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 $\textstyle 12\cdot \frac 12.$

Fractions

We can make fractions via $\frac{...}{...}$. For instance, $\frac{x+y}{2}$ will give us $\textstyle\frac{x+y}{2}.$


Asymptote tutorial for AoPS

The Name Asymptote

Expand

The Name Asymptote

Expand

Tips

Expand

#1 Beginning your code

Expand

#2 Setting points

Expand

#3 Pair part 1

Expand

#4 Connecting two points, coloring the line

Expand

#5 Labeling, Midpoint

Expand

#6 Angle Measures

Expand

#7 Distance Function

Expand

#8 Casting

Expand

#9 Right Angle Mark

Expand

#10 Intersection

Expand

#11 Filling

Expand

#12 Dot

Expand

#13 Size

Expand

#14 Tick Marks

Expand

#15 Arrows

Expand

#16 Shifting Coordinates

Expand

#17 Rotating

Expand

#18 Circles

Expand

#19 Dashed Lines

Expand

#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