<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://math.chapman.edu/~jipsen/mathml/pmathml.xsl"?>
<!DOCTYPE html SYSTEM "http://math.chapman.edu/~jipsen/mathml/mathml.dtd" [
  <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
]>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Chapman Math: ASCIIMath Sandbox</title>
<script type="text/javascript" src="http://www1.chapman.edu/~jipsen/mathml/ASCIIMathML.js"></script>
<script type="text/javascript" src="http://math.chapman.edu/~jipsen/TP/TextPuzzles3.js"></script>
<script type="text/javascript" src="http://www1.chapman.edu/~jipsen/svg/ASCIIsvg.js"></script>
<style type="text/css">
a {cursor: pointer; cursor: hand;}
</style>
<link rel="stylesheet" href="/wiki.css"></link>
</head><body bgcolor="white" onload="translate();initPuzzlePieces();if (window.drawPicture!=null) drawPicture()">
<h1><a href="mathxml.pl?search=ASCIIMath+Sandbox">ASCIIMath Sandbox</a></h1><a href="mathxml.pl?HomePage">HomePage</a> | <a href="mathxml.pl?RecentChanges">RecentChanges</a> | <a href="mathxml.pl?action=editprefs">Preferences</a><br></br>
<hr></hr>This is a page where you can try any formulas to see how they will be displayed. Just click on the "Edit text of this page" link below to see and/or modify the ASCII input. When you save the page, your formulas will remain on this page for others to see.
<p></p>
<hr noshade="true" size="1"></hr> please don't remove this and above from the top <hr noshade="true" size="1"></hr>
<p></p>
HTML special characters:
`a &lt; b`
`a &lt; b`
`a &lt; &lt; b`
<p></p>
Dollar vs apostrophe vs double dollar vs dollar inside apostrophe:
$a &lt; &lt; b$
`a &lt; &lt; b`
$$a &lt; &lt; b$$
`$a &lt; &lt; b$`
<p></p>
Test:
`frac{df}{dx}=lim_(h-&gt;0) frac{f(x+h)-f(x)}{h}=lim_(\Deltax-&gt;0) frac{f(x+\Deltax)-f(x)}{\Deltax}`
<p></p>
How do we wrap the math to the next line:
`
frac{d}{dx}(m(x)*n(x))=lim_(h-&gt;0) frac{m(x+h)n(x+h)-m(x)n(x)}{h}
=lim_(h-&gt;0) frac{m(x+h)n(x+h)-m(x)n(x+h)+m(x)n(x+h)-m(x)n(x)}{h}
=lim_(h-&gt;0) frac{m(x+h)-m(x)}{h}* n(x+h)+ m(x)*lim_(h-&gt;0) frac{n(x+h)-n(x)}{h}
`
<p></p>
How do we wrap the math to the next line:
$frac{d}{dx}(m(x)*n(x))=lim_(h-&gt;0) frac{m(x+h)n(x+h)-m(x)n(x)}{h}$
<p></p>
<p></p>
$=lim_(h-&gt;0) frac{m(x+h)n(x+h)-m(x)n(x+h)+m(x)n(x+h)-m(x)n(x)}{h}$
<p></p>
<p></p>
$=lim_(h-&gt;0) frac{m(x+h)-m(x)}{h}* n(x+h)+ m(x)*lim_(h-&gt;0) frac{n(x+h)-n(x)}{h}$
<p></p>
<p></p>
Invisible grouping:
`{:[2/3, y],[w, z]:}`
<p></p>
Quantification: 
`forall x in E, x=x`
`exists x:E, x=x`
<p></p>
Pythagorean theorem:
`0+a^2+b^2=c^2`
<p></p>
`AA x in CC (sin^2x+cos^2x=1)`
<p></p>
Dijkstra style:
`(AA x: x in CC: sin^2x+cos^2x=1)`
<p></p>
Test:
$A$, $B$ and $C$ are on the same line $iff$ there exists a real number $lambda$ such that  $vec (AC) = lambda . vec(AB)$
<p></p>
`sum_(i=1)^ni^3=(sum_(i=1)^ni^2)^2`
<p></p>
<b>Definition of the Riemann integral:</b> If `f` is continuous on the interval `(a,b)`, except perhaps at finitely many points, then 
`int_a^b f(x)dx=lim_(n-&gt;oo)sum_[i=1]^n f(x_i^(**))Delta x` where `Delta x=(b-a)/n`, `x_i=a+iDeltax` and `x_i^(**)in[x_[i-1],x_i]`.
<p></p>
And then after extending the Riemann integral to improper integrals (unbounded domains) you get the magic formula:
$\int_0^oo e^{-x^2}dx = 1/2\sqrt{pi}.$ 
`x/x=(1 if x!=0)`
`int_0^pi sinxdx=-cosx]_0^pi=-cospi-(-cos0)=-(-1)-(-1)=2`
<p></p>
Decimal numbers (right-click on the expression to see the MathML code): `epsilon=.001 quad h=-.01 quad pi~~3.14159 quad` weird number `-0.123.456` and dot product `u.v`
<p></p>
Test:
`RR = uuu_{n=0}^oo[-n,n]` and `{0} = nnn_{n=1}^oo(- 1/n,1/n)`
`^^^_{i=1}^nphi_i = phi_1 ^^ phi_2 ^^ cdots ^^ phi_n` and `vvv_{i=1}^nphi_i = phi_1 vv phi_2 vv cdots vv phi_n`
`pi~~3.141592653589793`
`int_-1^1 sqrt(1-x^2)dx = pi/2`
`lim_(x-&gt;a) f(x)=l &lt;=&gt; AA epsi &gt; 0 EE delta &gt; 0 : 0 &lt; {:|x-a|:} &lt; delta =&gt; {:|f(x) - l|:} &lt; epsi`
<p></p>
Chain fractions:
`1/(1+1/(1+...))`
<p></p>
$x := y$
$int vec{A} cdot vec{dl} = int int vec{B} cdot vec{dS}$
<p></p>
Equation numbers:
<table width="100%"><tr><td align="center">`1/(1+1/(1+1/(1+1/(1+...))))=(sqrt5-1)/2`</td><td align="right">(1.1)</td></tr></table>
<p></p>
RyanVolpe was here to ramble about finding offset `o` from indices `[a_0, a_1...a_(n-1)]` in an `n`-dimensional field bounded by a list of dimension deltas `[d_0, d_1...d_(n-1)]`:
<p></p>
`o = sum_(i=0)^n(a_i * prod_(j=0)^(i-1)d_j)`
`a = [1,1,1];
n = 3;
d = [2,3,2];
o = sum_(i=0)^3(a_i * prod_(j=0)^(i-1)d_j) = (1) + (1 * (2)) + (1 * (2*3)) = 1 + 2 + 6 = 9`
`o = i_0 + d_0[i_1 + d_1[...[i_(n-1)]]]` does
`g o f = Id_(e)`
<p></p>
`max`
<p></p>
`e^( i pi ) = -1`
`cos(pi/4)=sqrt(2)/2`
`x^2 + y^2 = z^2`
`x_1 , x_2, ... x_n`
<p></p>
<p></p>
test:
`o = sum_(i=0)^3(a_i * prod_(j=0)^(i-1)d_j) = (1) + (1 * (2)) + (1 * (2*3)) = 1 + 2 + 6 = 9`
<p></p>
test:
$int_0^oo \hbar e^{-x^2}dx = 1/2\sqrt{pi}.$
`grad * vec A = beta phi`
$\hbar$
$a$ $a!=b$ ${[a,b],[\,d]:}
<p></p>
$(\preceq_i)_{i \in N}$
<p></p>
$\pi pi \frac{1}{2} {1}/{2} + {1} + 2 |==_frI a =&gt; b$
<p></p>
\`sinx\` fa `sinx`
<p></p>
`-0.4093 * cos(2 * pi * (gDoy + 10) /365)`
<hr></hr>
<form method="post" action="mathxml.pl" enctype="application/x-www-form-urlencoded">
<a href="mathxml.pl?HomePage">HomePage</a> | <a href="mathxml.pl?RecentChanges">RecentChanges</a> | <a href="mathxml.pl?action=editprefs">Preferences</a><br></br>
This page is read-only | <a href="mathxml.pl?action=history;id=ASCIIMath_Sandbox">View other revisions</a><br></br>Last edited August 22, 2007 12:15 pm <a href="mathxml.pl?action=browse;diff=1;id=ASCIIMath_Sandbox">(diff)</a><br></br>Search: <input type="text" name="search"  size="20" /><input type="hidden" name="dosearch" value="1"  /></form><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2263958-2";
urchinTracker();
</script>

</body>
</html>