var checkforprocessasciimathinmoodle=false;var dsvglocation="";var isIE=document.createElementNS==null;var noMathML=false,translated=false;if(isIE){document.write("<objectid=\"mathplayer\"\
setStylesheet("#AMMLcloseDiv \{font-size:0.8em; padding-top:1em; color:#014\}\n#AMMLwarningBox \{position:absolute; width:100%; top:0; left:0; z-index:200; text-align:center; font-size:1em; font-weight:bold; padding:0.5em 0 0.5em 0; color:#ffc; background:#c30\}");function init(){var msg,warnings=new Array();if(document.getElementById==null){alert("This webpage requires a recent browser such as Mozilla Firefox/Netscape 7+ or Internet Explorer 6+ with MathPlayer and Adobe SVGviewer");return null;}
else noMathML=true;if(noMathML&¬ifyIfNoMathML){var msg="To view the ASCIIMathML notation use Internet Explorer + MathPlayer or Mozilla Firefox 2.0 or later.";if(alertIfNoMathML)
alert(msg);else return msg;}}
function hideWarning(){var body=document.getElementsByTagName("body")[0];body.removeChild(document.getElementById('AMMLwarningBox'));body.onclick=null;}
function displayWarnings(warnings){var i,frag,nd=createElementXHTML("div");var body=document.getElementsByTagName("body")[0];body.onclick=hideWarning;nd.id='AMMLwarningBox';for(i=0;i<warnings.length;i++){frag=createElementXHTML("div");frag.appendChild(document.createTextNode(warnings[i]));frag.style.paddingBottom="1.0em";nd.appendChild(frag);}
nd.appendChild(createElementXHTML("p"));nd.appendChild(document.createTextNode("For instructions see the "));var an=createElementXHTML("a");an.appendChild(document.createTextNode("ASCIIMathML"));an.setAttribute("href","http://www.chapman.edu/~jipsen/asciimath.html");nd.appendChild(an);nd.appendChild(document.createTextNode(" homepage"));an=createElementXHTML("div");an.id='AMMLcloseDiv';an.appendChild(document.createTextNode('(click anywhere to close this warning)'));nd.appendChild(an);var body=document.getElementsByTagName("body")[0];body.insertBefore(nd,body.childNodes[0]);}
function translate(spanclassAM){if(!translated){translated=true;var body=document.getElementsByTagName("body")[0];var processN=document.getElementById(AMdocumentId);if(translateLaTeX)LMprocessNode((processN!=null?processN:body));if(translateASCIIMath)AMprocessNode((processN!=null?processN:body),false,spanclassAM);}}
function createElementXHTML(t){if(isIE)return document.createElement(t);else return document.createElementNS("http://www.w3.org/1999/xhtml",t);}
function createMmlNode(t,frag){if(isIE)var node=document.createElement("m:"+t);else var node=document.createElementNS("http://www.w3.org/1998/Math/MathML",t);if(frag)node.appendChild(frag);return node;}
var AMcal=[0xEF35,0x212C,0xEF36,0xEF37,0x2130,0x2131,0xEF38,0x210B,0x2110,0xEF39,0xEF3A,0x2112,0x2133,0xEF3B,0xEF3C,0xEF3D,0xEF3E,0x211B,0xEF3F,0xEF40,0xEF41,0xEF42,0xEF43,0xEF44,0xEF45,0xEF46];var AMfrk=[0xEF5D,0xEF5E,0x212D,0xEF5F,0xEF60,0xEF61,0xEF62,0x210C,0x2111,0xEF63,0xEF64,0xEF65,0xEF66,0xEF67,0xEF68,0xEF69,0xEF6A,0x211C,0xEF6B,0xEF6C,0xEF6D,0xEF6E,0xEF6F,0xEF70,0xEF71,0x2128];var AMbbb=[0xEF8C,0xEF8D,0x2102,0xEF8E,0xEF8F,0xEF90,0xEF91,0x210D,0xEF92,0xEF93,0xEF94,0xEF95,0xEF96,0x2115,0xEF97,0x2119,0x211A,0x211D,0xEF98,0xEF99,0xEF9A,0xEF9B,0xEF9C,0xEF9D,0xEF9E,0x2124];var CONST=0,UNARY=1,BINARY=2,INFIX=3,LEFTBRACKET=4,RIGHTBRACKET=5,SPACE=6,UNDEROVER=7,DEFINITION=8,LEFTRIGHT=9,TEXT=10,BIG=11,LONG=12,STRETCHY=13,MATRIX=14;;var AMquote={input:"\"",tag:"mtext",output:"mbox",tex:null,ttype:TEXT};var AMsymbols=[{input:"alpha",tag:"mi",output:"\u03B1",tex:null,ttype:CONST},{input:"beta",tag:"mi",output:"\u03B2",tex:null,ttype:CONST},{input:"chi",tag:"mi",output:"\u03C7",tex:null,ttype:CONST},{input:"delta",tag:"mi",output:"\u03B4",tex:null,ttype:CONST},{input:"Delta",tag:"mo",output:"\u0394",tex:null,ttype:CONST},{input:"epsi",tag:"mi",output:"\u03B5",tex:"epsilon",ttype:CONST},{input:"varepsilon",tag:"mi",output:"\u025B",tex:null,ttype:CONST},{input:"eta",tag:"mi",output:"\u03B7",tex:null,ttype:CONST},{input:"gamma",tag:"mi",output:"\u03B3",tex:null,ttype:CONST},{input:"Gamma",tag:"mo",output:"\u0393",tex:null,ttype:CONST},{input:"iota",tag:"mi",output:"\u03B9",tex:null,ttype:CONST},{input:"kappa",tag:"mi",output:"\u03BA",tex:null,ttype:CONST},{input:"lambda",tag:"mi",output:"\u03BB",tex:null,ttype:CONST},{input:"Lambda",tag:"mo",output:"\u039B",tex:null,ttype:CONST},{input:"mu",tag:"mi",output:"\u03BC",tex:null,ttype:CONST},{input:"nu",tag:"mi",output:"\u03BD",tex:null,ttype:CONST},{input:"omega",tag:"mi",output:"\u03C9",tex:null,ttype:CONST},{input:"Omega",tag:"mo",output:"\u03A9",tex:null,ttype:CONST},{input:"phi",tag:"mi",output:"\u03C6",tex:null,ttype:CONST},{input:"varphi",tag:"mi",output:"\u03D5",tex:null,ttype:CONST},{input:"Phi",tag:"mo",output:"\u03A6",tex:null,ttype:CONST},{input:"pi",tag:"mi",output:"\u03C0",tex:null,ttype:CONST},{input:"Pi",tag:"mo",output:"\u03A0",tex:null,ttype:CONST},{input:"psi",tag:"mi",output:"\u03C8",tex:null,ttype:CONST},{input:"Psi",tag:"mi",output:"\u03A8",tex:null,ttype:CONST},{input:"rho",tag:"mi",output:"\u03C1",tex:null,ttype:CONST},{input:"sigma",tag:"mi",output:"\u03C3",tex:null,ttype:CONST},{input:"Sigma",tag:"mo",output:"\u03A3",tex:null,ttype:CONST},{input:"tau",tag:"mi",output:"\u03C4",tex:null,ttype:CONST},{input:"theta",tag:"mi",output:"\u03B8",tex:null,ttype:CONST},{input:"vartheta",tag:"mi",output:"\u03D1",tex:null,ttype:CONST},{input:"Theta",tag:"mo",output:"\u0398",tex:null,ttype:CONST},{input:"upsilon",tag:"mi",output:"\u03C5",tex:null,ttype:CONST},{input:"xi",tag:"mi",output:"\u03BE",tex:null,ttype:CONST},{input:"Xi",tag:"mo",output:"\u039E",tex:null,ttype:CONST},{input:"zeta",tag:"mi",output:"\u03B6",tex:null,ttype:CONST},{input:"*",tag:"mo",output:"\u22C5",tex:"cdot",ttype:CONST},{input:"**",tag:"mo",output:"\u22C6",tex:"star",ttype:CONST},{input:"//",tag:"mo",output:"/",tex:null,ttype:CONST},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:CONST},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:CONST},{input:"xx",tag:"mo",output:"\u00D7",tex:"times",ttype:CONST},{input:"-:",tag:"mo",output:"\u00F7",tex:"divide",ttype:CONST},{input:"@",tag:"mo",output:"\u2218",tex:"circ",ttype:CONST},{input:"o+",tag:"mo",output:"\u2295",tex:"oplus",ttype:CONST},{input:"ox",tag:"mo",output:"\u2297",tex:"otimes",ttype:CONST},{input:"o.",tag:"mo",output:"\u2299",tex:"odot",ttype:CONST},{input:"sum",tag:"mo",output:"\u2211",tex:null,ttype:UNDEROVER},{input:"prod",tag:"mo",output:"\u220F",tex:null,ttype:UNDEROVER},{input:"^^",tag:"mo",output:"\u2227",tex:"wedge",ttype:CONST},{input:"^^^",tag:"mo",output:"\u22C0",tex:"bigwedge",ttype:UNDEROVER},{input:"vv",tag:"mo",output:"\u2228",tex:"vee",ttype:CONST},{input:"vvv",tag:"mo",output:"\u22C1",tex:"bigvee",ttype:UNDEROVER
else return-1;}
var AMnames=[];function initSymbols(){var texsymbols=[],i;for(i=0;i<AMsymbols.length;i++)
function refreshSymbols(){var i;AMsymbols.sort(compareNames);for(i=0;i<AMsymbols.length;i++)AMnames[i]=AMsymbols[i].input;LMsymbols.sort(compareNames);for(i=0;i<LMsymbols.length;i++)LMnames[i]=LMsymbols[i].input;}
function define(oldstr,newstr){if(oldstr.substr(0,1)=="\\")
function AMremoveBrackets(node){var st;if(node.nodeName=="mrow"){st=node.firstChild.firstChild.nodeValue;if(st=="("||st=="["||st=="{")node.removeChild(node.firstChild);}
var AMnestingDepth,AMpreviousSymbol,AMcurrentSymbol;function AMparseSexpr(str){var symbol,node,result,i,st,newFrag=document.createDocumentFragment();str=AMremoveCharsAndBlanks(str,0);symbol=AMgetSymbol(str);if(symbol==null||symbol.ttype==RIGHTBRACKET&&AMnestingDepth>0){return[null,str];}
case BINARY:str=AMremoveCharsAndBlanks(str,symbol.input.length);result=AMparseSexpr(str);if(result[0]==null)return[createMmlNode("mo",document.createTextNode(symbol.input)),str];AMremoveBrackets(result[0]);var result2=AMparseSexpr(result[1]);if(result2[0]==null)return[createMmlNode("mo",document.createTextNode(symbol.input)),str];AMremoveBrackets(result2[0]);if(symbol.input=="root"||symbol.input=="stackrel")
function AMparseIexpr(str){var symbol,sym1,sym2,node,result,underover;str=AMremoveCharsAndBlanks(str,0);sym1=AMgetSymbol(str);result=AMparseSexpr(str);node=result[0];str=result[1];symbol=AMgetSymbol(str);if(symbol.ttype==INFIX&&symbol.input!="/"){str=AMremoveCharsAndBlanks(str,symbol.input.length);result=AMparseSexpr(str);if(result[0]==null)
function AMparseExpr(str,rightbracket){var symbol,node,result,i,nodeList=[],newFrag=document.createDocumentFragment();do{str=AMremoveCharsAndBlanks(str,0);result=AMparseIexpr(str);node=result[0];str=result[1];symbol=AMgetSymbol(str);if(symbol.ttype==INFIX&&symbol.input=="/"){str=AMremoveCharsAndBlanks(str,symbol.input.length);result=AMparseIexpr(str);if(result[0]==null)
function parseMath(str,latex){var frag,node;AMnestingDepth=0;frag=latex?LMparseExpr(str.replace(/^\s+/g,""),false,false)[0]:AMparseExpr(str.replace(/^\s+/g,""),false)[0];node=createMmlNode("mstyle",frag);node.setAttribute("mathcolor",mathcolor);node.setAttribute("fontfamily",mathfontfamily);node.setAttribute("mathsize",mathfontsize);if(displaystyle)node.setAttribute("displaystyle","true");node=createMmlNode("math",node);if(showasciiformulaonhover)
function strarr2docFrag(arr,linebreaks,latex){var newFrag=document.createDocumentFragment();var expr=false;for(var i=0;i<arr.length;i++){if(expr)newFrag.appendChild(parseMath(arr[i],latex));else{vararri=(linebreaks?arr[i].split("\n\n"):[arr[i]]);newFrag.appendChild(createElementXHTML("span").appendChild(document.createTextNode(arri[0])));for(varj=1;j<arri.length;j++){newFrag.appendChild(createElementXHTML("p"));newFrag.appendChild(createElementXHTML("span").appendChild(document.createTextNode(arri[j])));}}
var LMsymbols=[{input:"\\alpha",tag:"mi",output:"\u03B1",ttype:CONST},{input:"\\beta",tag:"mi",output:"\u03B2",ttype:CONST},{input:"\\gamma",tag:"mi",output:"\u03B3",ttype:CONST},{input:"\\delta",tag:"mi",output:"\u03B4",ttype:CONST},{input:"\\epsilon",tag:"mi",output:"\u03B5",ttype:CONST},{input:"\\varepsilon",tag:"mi",output:"\u025B",ttype:CONST},{input:"\\zeta",tag:"mi",output:"\u03B6",ttype:CONST},{input:"\\eta",tag:"mi",output:"\u03B7",ttype:CONST},{input:"\\theta",tag:"mi",output:"\u03B8",ttype:CONST},{input:"\\vartheta",tag:"mi",output:"\u03D1",ttype:CONST},{input:"\\iota",tag:"mi",output:"\u03B9",ttype:CONST},{input:"\\kappa",tag:"mi",output:"\u03BA",ttype:CONST},{input:"\\lambda",tag:"mi",output:"\u03BB",ttype:CONST},{input:"\\mu",tag:"mi",output:"\u03BC",ttype:CONST},{input:"\\nu",tag:"mi",output:"\u03BD",ttype:CONST},{input:"\\xi",tag:"mi",output:"\u03BE",ttype:CONST},{input:"\\pi",tag:"mi",output:"\u03C0",ttype:CONST},{input:"\\varpi",tag:"mi",output:"\u03D6",ttype:CONST},{input:"\\rho",tag:"mi",output:"\u03C1",ttype:CONST},{input:"\\varrho",tag:"mi",output:"\u03F1",ttype:CONST},{input:"\\varsigma",tag:"mi",output:"\u03C2",ttype:CONST},{input:"\\sigma",tag:"mi",output:"\u03C3",ttype:CONST},{input:"\\tau",tag:"mi",output:"\u03C4",ttype:CONST},{input:"\\upsilon",tag:"mi",output:"\u03C5",ttype:CONST},{input:"\\phi",tag:"mi",output:"\u03C6",ttype:CONST},{input:"\\varphi",tag:"mi",output:"\u03D5",ttype:CONST},{input:"\\chi",tag:"mi",output:"\u03C7",ttype:CONST},{input:"\\psi",tag:"mi",output:"\u03C8",ttype:CONST},{input:"\\omega",tag:"mi",output:"\u03C9",ttype:CONST},{input:"\\Gamma",tag:"mo",output:"\u0393",ttype:CONST},{input:"\\Delta",tag:"mo",output:"\u0394",ttype:CONST},{input:"\\Theta",tag:"mo",output:"\u0398",ttype:CONST},{input:"\\Lambda",tag:"mo",output:"\u039B",ttype:CONST},{input:"\\Xi",tag:"mo",output:"\u039E",ttype:CONST},{input:"\\Pi",tag:"mo",output:"\u03A0",ttype:CONST},{input:"\\Sigma",tag:"mo",output:"\u03A3",ttype:CONST},{input:"\\Upsilon",tag:"mo",output:"\u03A5",ttype:CONST},{input:"\\Phi",tag:"mo",output:"\u03A6",ttype:CONST},{input:"\\Psi",tag:"mo",output:"\u03A8",ttype:CONST},{input:"\\Omega",tag:"mo",output:"\u03A9",ttype:CONST},{input:"\\frac12",tag:"mo",output:"\u00BD",ttype:CONST},{input:"\\frac14",tag:"mo",output:"\u00BC",ttype:CONST},{input:"\\frac34",tag:"mo",output:"\u00BE",ttype:CONST},{input:"\\frac13",tag:"mo",output:"\u2153",ttype:CONST},{input:"\\frac23",tag:"mo",output:"\u2154",ttype:CONST},{input:"\\frac15",tag:"mo",output:"\u2155",ttype:CONST},{input:"\\frac25",tag:"mo",output:"\u2156",ttype:CONST},{input:"\\frac35",tag:"mo",output:"\u2157",ttype:CONST},{input:"\\frac45",tag:"mo",output:"\u2158",ttype:CONST},{input:"\\frac16",tag:"mo",output:"\u2159",ttype:CONST},{input:"\\frac56",tag:"mo",output:"\u215A",ttype:CONST},{input:"\\frac18",tag:"mo",output:"\u215B",ttype:CONST},{input:"\\frac38",tag:"mo",output:"\u215C",ttype:CONST},{input:"\\frac58",tag:"mo",output:"\u215D",ttype:CONST},{input:"\\frac78",tag:"mo",output:"\u215E",ttype:CONST},{input:"\\pm",tag:"mo",output:"\u00B1",ttype:CONST},{input:"\\mp",tag:"mo",output:"\u2213",ttype:CONST},{input:"\\triangleleft",tag:"mo",output:"\u22B2",ttype:CONST},{input:"\\triangleright",tag:"mo",output:"\u22B3",ttype:CONST},{input:"\\cdot",tag:"mo",output:"\u22C5",ttype:CONST},{input:"\\star",tag:"mo",output:"\u22C6",ttype:CONST},{input:"\\ast",tag:"mo",output:"\u002A",ttype:CONST},{input:"\\times",tag:"mo",output:"\u00D7",ttype:CONST},{input:"\\div",tag:"mo",output:"\u00F7",ttype:CONST},{input:"\\circ",tag:"mo",output:"\u2218",ttype:CONST},{input:"\\bullet",tag:"mo",output:"\u2022",ttype:CONST},{input:"\\oplus",tag:"mo",output:"\u2295",ttype:CONST},{input:"\\ominus",tag:"mo",output:"\u2296",ttype:CONST},{input:"\\otimes",tag:"mo",output:"\u2297",ttype:CONST},{input:"\\bigcirc",tag:"mo",output:"\u25CB",ttype:CONST},{input:"\\oslash",tag:"mo",output:"\u2298",ttype:CONST},{input:"\\odot",tag:"mo",output:"\u2299",ttype:CONST},{input:"\\land",tag:"mo",output:"\u2227",ttype:CONST},{input:"\\wedge",tag:"mo",output:"\u2227",ttype:CONST},{inpu
function LMgetSymbol(str){var k=0;var j=0;var mk;var st;var tagst;var match="";var more=true;for(var i=1;i<=str.length&&more;i++){st=str.slice(0,i);j=k;k=position(LMnames,st,j);if(k<LMnames.length&&str.slice(0,LMnames[k].length)==LMnames[k]){match=LMnames[k];mk=k;i=match.length;}
var LMpreviousSymbol,LMcurrentSymbol;function LMparseSexpr(str){var symbol,node,result,result2,i,st,newFrag=document.createDocumentFragment();str=LMremoveCharsAndBlanks(str,0);symbol=LMgetSymbol(str);if(symbol==null||symbol.ttype==RIGHTBRACKET)
node.setAttribute("columnspacing","0.167em");node.setAttribute("columnalign","right center left");node.setAttribute("displaystyle","true");node=createMmlNode("mrow",node);return[node,result[1],null];}
case TEXT:if(str.charAt(0)=="{")i=str.indexOf("}");else i=0;if(i==-1)
case BINARY:result=LMparseSexpr(str);if(result[0]==null)return[createMmlNode("mo",document.createTextNode(symbol.input)),str,null];result2=LMparseSexpr(result[1]);if(result2[0]==null)return[createMmlNode("mo",document.createTextNode(symbol.input)),str,null];if(symbol.input=="\\root"||symbol.input=="\\stackrel")
function LMparseIexpr(str){var symbol,sym1,sym2,node,result,tag,underover;str=LMremoveCharsAndBlanks(str,0);sym1=LMgetSymbol(str);result=LMparseSexpr(str);node=result[0];str=result[1];tag=result[2];symbol=LMgetSymbol(str);if(symbol.ttype==INFIX){str=LMremoveCharsAndBlanks(str,symbol.input.length);result=LMparseSexpr(str);if(result[0]==null)
function LMparseExpr(str,rightbracket,matrix){var symbol,node,result,i,tag,newFrag=document.createDocumentFragment();do{str=LMremoveCharsAndBlanks(str,0);result=LMparseIexpr(str);node=result[0];str=result[1];tag=result[2];symbol=LMgetSymbol(str);if(node!=undefined){if((tag=="mn"||tag=="mi")&&symbol!=null&&typeof symbol.func=="boolean"&&symbol.func){var space=createMmlNode("mspace");space.setAttribute("width","0.167em");node=createMmlNode("mrow",node);node.appendChild(space);}
var row,frag,n,k,table=document.createDocumentFragment();for(i=0;i<m;i=i+2){row=document.createDocumentFragment();frag=document.createDocumentFragment();node=newFrag.firstChild;n=node.childNodes.length;k=0;for(j=0;j<n;j++){if(typeofpos[i][k]!="undefined"&&j==pos[i][k]){node.removeChild(node.firstChild);row.appendChild(createMmlNode("mtd",frag));k++;}elsefrag.appendChild(node.firstChild);}
var tcnt=0,dcnt=0;function simpleLaTeXformatting(st){st=st.replace(/\$\$((.|\n)*?)\$\$/g,"<palign=\"center\">$\\displaystyle{$1}$</p>");st=st.replace(/\\begin{(theorem|lemma|proposition|corollary)}((.|\n)*?)\\end{\1}/g,function(r,s,t){tcnt++;return"<b>"+s.charAt(0).toUpperCase()+s.slice(1)+" "+tcnt+".</b><i>"+t.replace(/^\s*<\/?\w+\/?>|\s*<\/?\w+\/?>$/g,"")+"</i>"});st=st.replace(/\\begin{(definition|example|remark|problem|exercise|conjecture|solution)}((.|\n)*?)\\end{\1}/g,function(r,s,t){dcnt++;return"<b>"+s.charAt(0).toUpperCase()+s.slice(1)+" "+dcnt+".</b> "+t.replace(/^\s*<\/?\w+\/?>|\s*<\/?\w+\/?>$/g,"")});st=st.replace(/\\begin{proof}((.|\n)*?)\\end{proof}/g,function(s,t){return"<i>Proof:</i> "+t.replace(/^\s*<\/?\w+\/?>|\s*<\/?\w+\/?>$/g,"")+" □"});st=st.replace(/\\emph{(.*?)}/g,"<em>$1</em>");st=st.replace(/\\textbf{(.*?)}/g,"<b>$1</b>");st=st.replace(/\\cite{(.*?)}/g,"[$1]");st=st.replace(/\\chapter{(.*?)}/g,"<h2>$1</h2>");st=st.replace(/\\section{(.*?)}(\s*<\/?(br|p)\s?\/?>)?/g,"<h3>$1</h3>");st=st.replace(/\\subsection{((.|\n)*?)}/g,"<h4>$1</h4>");st=st.replace(/\\begin{itemize}(\s*<\/?(br|p)\s?\/?>)?/g,"<ul>");st=st.replace(/\\item\s((.|\n)*?)(?=(\\item|\\end))/g,"<li>$1</li>");st=st.replace(/\\end{itemize}(\s*<\/?(br|p)\s?\/?>)?/g,"</ul>");st=st.replace(/\\begin{enumerate}(\s*<\/?(br|p)\s?\/?>)?/g,"<ol>");st=st.replace(/\\end{enumerate}(\s*<\/?(br|p)\s?\/?>)?/g,"</ol>");st=st.replace(/\\item\[(.*?)]{(.*?)}/g,"<dt>$1</dt><dd>$2</dd>");st=st.replace(/\\begin{description}/g,"<dl>");st=st.replace(/\\end{description}/g,"</dl>");st=st.replace(/\\newline\b/g,"<br/>");st=st.replace(/\\newpage\b/g,"<brstyle=\"page-break-after:always;\">");st=st.replace(/\\par\b/g,"<p> </p>");st=st.replace(/\\bigskip/g,"<pstyle=\"margin-bottom:0.5in\"> </p>");st=st.replace(/\\medskip/g,"<pstyle=\"margin-bottom:0.3in\"> </p>");st=st.replace(/\\smallskip/g,"<pstyle=\"margin-bottom:0.15in\"> </p>");st=st.replace(/\\begin{center}((.|\n)*?)\\end{center}/g,"<center>$1</center>");return st}
function ASCIIandgraphformatting(st){st=st.replace(/<sup>(.*?)<\/sup>(\s|(\S))/gi,"^{$1} $3");st=st.replace(/(Proof:)/g,"<i>$1</i>");st=st.replace(/QED/g," □");st=st.replace(/(\\?end{?a?math}?)/ig,"<span></span>$1");st=st.replace(/(\bamath\b|\\begin{a?math})/ig,"<span></span>$1");st=st.replace(/([>\n])(Theorem|Lemma|Proposition|Corollary|Definition|Example|Remark|Problem|Exercise|Conjecture|Solution)(:|\W\W?(\w|\s|-|\.)*?\W?:)/g,"$1<b>$2$3</b>");st=st.replace(/<embed\s+class\s?=\s?"?ASCIIsvg"?/gi,"<embedclass=\"ASCIIsvg\"src=\""+dsvglocation+"d.svg\"wmode=\"transparent\"");st=st.replace(/(?:\\begin{a?graph}|\bagraph|\(:graph\s)((.|\n)*?)(?:\\end{a?graph}|enda?graph|:\))/g,function(s,t){return"<table><tr><td><divclass=\"ASCIIsvg\"><embedclass=\"ASCIIsvg\"src=\""+dsvglocation+"d.svg\"wmode=\"transparent\"script=\'"+t.replace(/<\/?(br|p|pre)\s?\/?>/gi,"\n")+"\'/></div></td></tr></table>"});st=st.replace(/insertASCIIMathCalculator/g,"<divclass=\"ASCIIMathCalculator\"></div>");return st}
function LMprocessNode(n){var frag,st;try{st=n.innerHTML;}catch(err){}
var am=/amath\b|graph/i.test(st);if((st==null||st.indexOf("\$ ")!=-1||st.indexOf("\$<")!=-1||st.indexOf("\\begin")!=-1||am||st.slice(-1)=="$"||st.indexOf("\$\n")!=-1)&&!/edit-content|HTMLArea|wikiedit|wpTextbox1/.test(st)){if(!avoidinnerHTML&&translateLaTeXformatting)
noSVG=null;else noSVG=true;if(noSVG&¬ifyIfNoSVG){var msg="To view the ASCIIsvg images use Internet Explorer + Adobe SVGviewer or Mozilla Firefox 2.0 or later."
if(alertIfNoSVG)
alert(msg);else return msg;}}
function setText(st,id){var node=document.getElementById(id);if(node!=null)
function getX(evt){var svgroot=evt.target.parentNode;pos=findPos(svgroot.parentNode);return(evt.clientX+(isIE?0:window.pageXOffset)-pos[0]-svgroot.getAttribute("ox"))/parseFloat(svgroot.getAttribute("xunitlength"));}
function getY(evt){var svgroot=evt.target.parentNode;pos=findPos(svgroot.parentNode);return(svgroot.getAttribute("height")-svgroot.getAttribute("oy")-(evt.clientY+(isIE?0:window.pageYOffset)-pos[1]))/parseFloat(svgroot.getAttribute("yunitlength"));}
function translateandeval(src){var errstr;src=src.replace(/plot\(\x20*([^\"f\[][^\n\r;]+?)\,/g,"plot\(\"$1\",");src=src.replace(/plot\(\x20*([^\"f\[][^\n\r;]+)\)/g,"plot(\"$1\")");src=src.replace(/([=[(,]\x20*)\(([-a-z0-9./+*]+?),([-a-z0-9./+*]+?)\)/g,"$1[$2,$3]");src=src.replace(/([0-9])([a-df-zA-Z]|e^)/g,"$1*$2");src=src.replace(/\)([\(0-9a-zA-Z])/g,"\)*$1");try{with(Math)eval(src);}catch(err){if(err!="wait"){if(typeof err=="object")
function setdefaults(){strokewidth=defaultstrokewidth;stroke=defaultstroke;strokeopacity=defaultstrokeopacity;strokedasharray=defaultstrokedasharray;fill=defaultfill;fillopacity=defaultfillopacity;fontstyle=defaultfontstyle;fontfamily=defaultfontfamily;fontsize=defaultfontsize;fontweight=defaultfontweight;fontstroke=defaultfontstroke;fontfill=defaultfontfill;marker=defaultmarker;endpoints=defaultendpoints;}
function switchTo(id){if(id==undefined)return;var name=id;if(typeof name!="string")name=id.target.parentNode.getAttribute("name");picture=document.getElementById(name);width=picture.getAttribute("width")-0;height=picture.getAttribute("height")-0;setdefaults();if((picture.nodeName=="EMBED"||picture.nodeName=="embed")&&isIE){svgpicture=picture.getSVGDocument().getElementById("root");doc=picture.getSVGDocument();}else{svgpicture=picture;doc=document;}
var sinceFirstClick=0;var dblClkTimer;function timer(){if(sinceFirstClick<60){sinceFirstClick++;setTimeout("timer()",10);}else{clearTimeout(dblClkTimer);dblClkTimer="";}}
function mClick(evt){if(sinceFirstClick!=0){if(sinceFirstClick<=40){if(evt.shiftKey){if(evt.altKey)changepicturesize(evt,2);else zoom(evt,.5);}else if(evt.altKey)zoom(evt,2);else showHideCode(evt);clearTimeout(dblClkTimer);dblClkTimer="";}else{clearTimeout(dblClkTimer);sinceFirstClick=0;dblClkTimer=setTimeout("timer()",10);}}else{sinceFirstClick=0;dblClkTimer=setTimeout("timer()",10);}}
function showHideCode(evt){var obj=evt.target;var name=obj.parentNode.getAttribute("name");var node=document.getElementById(name+"input");node.style.display=(node.style.display=="none"?"":"none");var node=document.getElementById(name+"button");node.style.display=(node.style.display=="none"?"":"none");}
function showcode(){}
function setBorder(x){border=x}
function initPicture(x_min,x_max,y_min,y_max){if(!initialized){setdefaults();initialized=true;if(x_min!=null)xmin=x_min;if(x_max!=null)xmax=x_max;if(y_min!=null)ymin=y_min;if(y_max!=null)ymax=y_max;if(xmin==null)xmin=defaultxmin;if(xmax==null)xmax=defaultxmax;if(typeof xmin!="number"||typeof xmax!="number"||xmin>=xmax)
alert("Picture requires at least two numbers: xmin <xmax");elseif(y_max!=null&&(typeofy_min!="number"||typeofy_max!="number"||y_min>=y_max))
function line(p,q,id,endpts){var node;if(id!=null)node=doc.getElementById(id);if(node==null){node=myCreateElementSVG("path");node.setAttribute("id",id);svgpicture.appendChild(node);}
function path(plist,id,c,endpts){if(c==null)c="";var node,st,i;if(id!=null)node=doc.getElementById(id);if(node==null){node=myCreateElementSVG("path");node.setAttribute("id",id);svgpicture.appendChild(node);}
function curve(plist,id,endpts){path(plist,id,"T",endpts);}
function vector(p,q,id){line(p,q,id,"","->");}
function circle(center,radius,id){var node;if(id!=null)node=doc.getElementById(id);if(node==null){node=myCreateElementSVG("circle");node.setAttribute("id",id);svgpicture.appendChild(node);}
function arc(start,end,radius,id,largearc){var node,v;if(id!=null)node=doc.getElementById(id);if(largearc==null)largearc=0;if(radius==null){v=[end[0]-start[0],end[1]-start[1]];radius=Math.sqrt(v[0]*v[0]+v[1]*v[1]);}
function sector(center,start,end,id){var rx=start[0]-center[0],ry=start[1]-center[1];arc(start,end,Math.sqrt(rx*rx+ry*ry),id+"arc");path([end,center,start],id+"path");}
function ellipse(center,rx,ry,id){var node;if(id!=null)node=doc.getElementById(id);if(node==null){node=myCreateElementSVG("ellipse");node.setAttribute("id",id);svgpicture.appendChild(node);}
function rect(p,q,id,rx,ry){var node;if(id!=null)node=doc.getElementById(id);if(node==null){node=myCreateElementSVG("rect");node.setAttribute("id",id);svgpicture.appendChild(node);}
function text(p,st,pos,id,fontsty){var dnode,node,dx=0,dy=fontsize/3,str=st.toString();if(/(`|\$)/.test(str)){dnode=document.getElementById(svgpicture.getAttribute("name")+"mml");if(dnode!=null){if(id!=null)node=document.getElementById(id);if(node==null){node=createElementXHTML("div");node.setAttribute("id",id);node.style.position="absolute";dnode.appendChild(node);}
var textanchor="middle";if(pos!=null){if(/above/.test(pos))dy=-fontsize/2;if(/below/.test(pos))dy=fontsize-0;if(/right/.test(pos)){textanchor="start";dx=fontsize/4;}
function mtext(p,st,pos,fontsty,fontsz){var textanchor="middle";var dx=0;var dy=fontsize/3;if(pos!=null){if(pos.slice(0,5)=="above")dy=-fontsize/2;if(pos.slice(0,5)=="below")dy=fontsize-0;if(pos.slice(0,5)=="right"||pos.slice(5,10)=="right"){textanchor="start";dx=fontsize/2;}
function image(imgurl,p,w,h,id){var node;if(id!=null)node=doc.getElementById(id);if(node==null){node=myCreateElementSVG("image");node.setAttribute("id",id);svgpicture.appendChild(node);}
function ASdot(center,radius,s,f){if(s==null)s=stroke;if(f==null)f=fill;var node=myCreateElementSVG("circle");node.setAttribute("cx",center[0]*xunitlength+origin[0]);node.setAttribute("cy",height-center[1]*yunitlength-origin[1]);node.setAttribute("r",radius);node.setAttribute("stroke-width",strokewidth);node.setAttribute("stroke",s);node.setAttribute("fill",f);svgpicture.appendChild(node);}
function dot(center,typ,label,pos,id){var node;var cx=center[0]*xunitlength+origin[0];var cy=height-center[1]*yunitlength-origin[1];if(id!=null)node=doc.getElementById(id);if(typ=="+"||typ=="-"||typ=="|"){if(node==null){node=myCreateElementSVG("path");node.setAttribute("id",id);svgpicture.appendChild(node);}
if(typ=="+"){node.setAttribute("d"," M "+(cx-ticklength)+" "+cy+" L "+(cx+ticklength)+" "+cy+" M "+cx+" "+(cy-ticklength)+" L "+cx+" "+(cy+ticklength));node.setAttribute("stroke-width",.5);node.setAttribute("stroke",axesstroke);}else{if(typ=="-")node.setAttribute("d"," M "+(cx-ticklength)+" "+cy+" L "+(cx+ticklength)+" "+cy);else node.setAttribute("d"," M "+cx+" "+(cy-ticklength)+" L "+cx+" "+(cy+ticklength));node.setAttribute("stroke-width",strokewidth);node.setAttribute("stroke",stroke);}}else{if(node==null){node=myCreateElementSVG("circle");node.setAttribute("id",id);svgpicture.appendChild(node);}
function mathjs(st){st=st.replace(/\s/g,"");if(st.indexOf("^-1")!=-1){st=st.replace(/sin\^-1/g,"arcsin");st=st.replace(/cos\^-1/g,"arccos");st=st.replace(/tan\^-1/g,"arctan");st=st.replace(/sec\^-1/g,"arcsec");st=st.replace(/csc\^-1/g,"arccsc");st=st.replace(/cot\^-1/g,"arccot");st=st.replace(/sinh\^-1/g,"arcsinh");st=st.replace(/cosh\^-1/g,"arccosh");st=st.replace(/tanh\^-1/g,"arctanh");st=st.replace(/sech\^-1/g,"arcsech");st=st.replace(/csch\^-1/g,"arccsch");st=st.replace(/coth\^-1/g,"arccoth");}
j--;}else{return"Error: incorrect syntax in "+st+" at position "+j;}
if(i==st.length-1)return"Error: missing argument";k=i+1;ch=st.charAt(k);if(ch>="0"&&ch<="9"||ch=="-"){k++;while(k<st.length&&(ch=st.charAt(k))>="0"&&ch<="9")k++;if(ch=="."){k++;while(k<st.length&&(ch=st.charAt(k))>="0"&&ch<="9")k++;}}else if(ch=="("){nested=1;k++;while(k<st.length&&nested>0){ch=st.charAt(k);if(ch=="(")nested++;else if(ch==")")nested--;k++;}}else if(ch>="a"&&ch<="z"||ch>="A"&&ch<="Z"){k++;while(k<st.length&&(ch=st.charAt(k))>="a"&&ch<="z"||ch>="A"&&ch<="Z")k++;}else{return"Error: incorrect syntax in "+st+" at position "+k;}
function displayCoord(evt){if(showcoordinates){var svgroot=evt.target.parentNode;var nl=svgroot.childNodes;for(var i=0;i<nl.length&&nl.item(i).nodeName!="text";i++);varcnode=nl.item(i);cnode.mtext=mtext;cnode.mtext([svgroot.getAttribute("width")-(-7),svgroot.getAttribute("height")-7],"("+getX(evt).toFixed(2)+","+getY(evt).toFixed(2)+")","left","","11");}}
function removeCoord(evt){var svgroot=evt.target.parentNode;var nl=svgroot.childNodes;for(var i=0;i<nl.length&&nl.item(i).nodeName!="text";i++);varcnode=nl.item(i);cnode.mtext=mtext;cnode.mtext([svgroot.getAttribute("width")-0,svgroot.getAttribute("height")-0],"","aboveleft","");}
function initASCIIMathCalculators(li){var i;for(i=0;i<li.length;i++){li[i].innerHTML=calcstr;AMprocessNode(li[i]);}
function append(st){document.getElementById('in').value+=st;calculate('in','out');document.getElementById('in').scrollTop=1000;document.getElementById('in').focus();}
function clearTextArea(){document.getElementById('in').value="";calculate('in','out');document.getElementById('in').focus();}
var calcstr="<tablealign=\"center\">\n<tr><th>\nASCIIMath Scientific Calculator\n</th></tr>\n<tr><td>\nClick in the box to use your keyboard or use the buttons\n</td></tr>\n<tr><td>\n<textareaid=\"in\"rows=\"3\"cols=\"40\"onkeyup=\"calculate('in','out')\"></textarea></td></tr>\n<tr><tdheight=\"50\">Result: <spanid=\"out\"></span></td></tr>\n</table>\n<tablealign=\"center\"cellspacing=\"0\"cellpadding=\"0\">\n<tbodyalign=\"center\">\n<tr>\n<tdcolspan=\"4\">\n<buttononclick=\"append('sin^-1(')\"><fontsize=2>`sin^-1`</font></button><buttononclick=\"append('cos^-1(')\"><fontsize=2>`cos^-1`</font></button><buttononclick=\"append('tan^-1(')\"><fontsize=2>`tan^-1`</font></button></td>\n<td><buttononclick=\"clearTextArea()\"> `C` </button></td>\n\n</tr>\n<tr>\n<td><buttononclick=\"append('pi')\"> `pi` </button></td>\n<td><buttononclick=\"append('sin(')\"> `sin`</button></td>\n<td><buttononclick=\"append('cos(')\"> `cos`</button></td>\n<td><buttononclick=\"append('tan(')\"> `tan`</button></td>\n<td><buttononclick=\"append('^')\">`x^y`</button></td>\n</tr>\n<tr>\n<td><buttononclick=\"append('!')\"> `!` </button></td>\n\n<td><buttononclick=\"append('(')\"><fontsize=2> `(` </font></button></td>\n<td><buttononclick=\"append(')')\"><fontsize=2> `)` </font></button></td>\n<td><buttononclick=\"append('sqrt(')\"><fontsize=2>`sqrt({::}^\ )`</font></button></td>\n<td><buttononclick=\"append('/')\"> `-:\ `</button></td>\n</tr>\n<tr>\n<td><buttononclick=\"append('log(')\">`log`</button></td>\n<td><buttononclick=\"append('7')\"> `7` </button></td>\n<td><buttononclick=\"append('8')\"> `8` </button></td>\n\n<td><buttononclick=\"append('9')\"> `9` </button></td>\n<td><buttononclick=\"append('*')\"> `times` </button></td>\n</tr>\n<tr>\n<td><buttononclick=\"append('ln(')\"> `ln` </button></td>\n<td><buttononclick=\"append('4')\"> `4` </button></td>\n<td><buttononclick=\"append('5')\"> `5` </button></td>\n<td><buttononclick=\"append('6')\"> `6` </button></td>\n\n<td><buttononclick=\"append('-')\"> `-{::}` </button></td>\n</tr>\n<tr>\n<td><buttononclick=\"append('e')\"> `e` </button></td>\n<td><buttononclick=\"append('1')\"> `1` </button></td>\n<td><buttononclick=\"append('2')\"> `2` </button></td>\n<td><buttononclick=\"append('3')\"> `3` </button></td>\n<td><buttononclick=\"append('+')\"> `+{::}` </button></td>\n\n</tr>\n<tr>\n<td><!--button onclick=\"append('pi')\"> `pi` </button--></td>\n<td><buttononclick=\"append('0')\"> `0` </button></td>\n<td><buttononclick=\"append('.')\"> `.` </button></td>\n<td><buttononclick=\"append('\\n')\"> `\"ent\"`</button></td>\n</tr>\n</tbody>\n</table>";function generic()
var li=getElementsByClass(document,"div","ASCIIMathCalculator");if(!noMathML&&li.length>0)initASCIIMathCalculators(li);}};if(typeof window.addEventListener!='undefined')
var undef;var slideCSS='';var snum=0;var smax=1;var incpos=0;var number=undef;var s5mode=true;var defaultView='slideshow';var controlVis='visible';var isIE=navigator.appName=='Microsoft Internet Explorer'&&navigator.userAgent.indexOf('Opera')<1?1:0;var isOp=navigator.userAgent.indexOf('Opera')>-1?1:0;var isGe=navigator.userAgent.indexOf('Gecko')>-1&&navigator.userAgent.indexOf('Safari')<1?1:0;function hasClass(object,className){if(!object.className)return false;return(object.className.search('(^|\\s)'+className+'(\\s|$)')!=-1);}
function hasValue(object,value){if(!object)return false;return(object.search('(^|\\s)'+value+'(\\s|$)')!=-1);}
function removeClass(object,className){if(!object)return;object.className=object.className.replace(new RegExp('(^|\\s)'+className+'(\\s|$)'),RegExp.$1+RegExp.$2);}
function addClass(object,className){if(!object||hasClass(object,className))return;if(object.className){object.className+=' '+className;}else{object.className=className;}}
function GetElementsWithClassName(elementName,className){var allElements=document.getElementsByTagName(elementName);var elemColl=new Array();for(var i=0;i<allElements.length;i++){if(hasClass(allElements[i],className)){elemColl[elemColl.length]=allElements[i];}}
return elemColl;}
function isParentOrSelf(element,id){if(element==null||element.nodeName=='BODY')return false;else if(element.id==id)return true;else return isParentOrSelf(element.parentNode,id);}
function nodeValue(node){var result="";if(node.nodeType==1){var children=node.childNodes;for(var i=0;i<children.length;++i){result+=nodeValue(children[i]);}}
else if(node.nodeType==3){result=node.nodeValue;}
return(result);}
function slideLabel(){var slideColl=GetElementsWithClassName('*','slide');var list=document.getElementById('jumplist');smax=slideColl.length;for(var n=0;n<smax;n++){varobj=slideColl[n];vardid='slide'+n.toString();obj.setAttribute('id',did);if(isOp)continue;varotext='';varmenu=obj.firstChild;if(!menu)continue;while(menu&&menu.nodeType==3){menu=menu.nextSibling;}
function goTo(target){if(target>=smax||target==snum)return;go(target-snum);}
function subgo(step){if(step>0){removeClass(incrementals[snum][incpos-1],'current');removeClass(incrementals[snum][incpos],'incremental');addClass(incrementals[snum][incpos],'current');incpos++;}else{incpos--;removeClass(incrementals[snum][incpos],'current');addClass(incrementals[snum][incpos],'incremental');addClass(incrementals[snum][incpos-1],'current');}}
function toggle(){var slideColl=GetElementsWithClassName('*','slide');var slides=document.getElementById('slideProj');var outline=document.getElementById('outlineStyle');if(!slides.disabled){slides.disabled=true;outline.disabled=false;s5mode=false;fontSize('1em');for(var n=0;n<smax;n++){varslide=slideColl[n];slide.style.visibility='visible';}}else{slides.disabled=false;outline.disabled=true;s5mode=true;fontScale();for(varn=0;n<smax;n++){varslide=slideColl[n];slide.style.visibility='hidden';}
slideColl[snum].style.visibility='visible';}}
function showHide(action){var obj=GetElementsWithClassName('*','hideme')[0];switch(action){case's':obj.style.visibility='visible';break;case'h':obj.style.visibility='hidden';break;case'k':if(obj.style.visibility!='visible'){obj.style.visibility='visible';}else{obj.style.visibility='hidden';}
break;}}
function keys(key){if(!key){key=event;key.which=key.keyCode;}
function clicker(e){number=undef;var target;if(window.event){target=window.event.srcElement;e=window.event;}else target=e.target;if(target.getAttribute('href')!=null||hasValue(target.rel,'external')||isParentOrSelf(target,'controls')||isParentOrSelf(target,'embed')||isParentOrSelf(target,'object'))return true;if(!e.which||e.which==1){if(!incrementals[snum]||incpos>=incrementals[snum].length){go(1);}else{subgo(1);}}}
function findSlide(hash){var target=null;var slides=GetElementsWithClassName('*','slide');for(var i=0;i<slides.length;i++){vartargetSlide=slides[i];if((targetSlide.name&&targetSlide.name==hash)||(targetSlide.id&&targetSlide.id==hash)){target=targetSlide;break;}}
function slideJump(){if(window.location.hash==null)return;var sregex=/^#slide(\d+)$/;var matches=sregex.exec(window.location.hash);var dest=null;if(matches!=null){dest=parseInt(matches[1]);}else{dest=findSlide(window.location.hash.slice(1));}
if(dest!=null)
go(dest-snum);}
function fixLinks(){var thisUri=window.location.href;thisUri=thisUri.slice(0,thisUri.length-window.location.hash.length);var aelements=document.getElementsByTagName('A');for(var i=0;i<aelements.length;i++){vara=aelements[i].href;varslideID=a.match('\#slide[0-9]{1,2}');if((slideID)&&(slideID[0].slice(0,1)=='#')){vardest=findSlide(slideID[0].slice(1));if(dest!=null){if(aelements[i].addEventListener){aelements[i].addEventListener("click",newFunction("e","if(document.getElementById('slideProj').disabled)return;"+"go("+dest+"-snum);"+"if(e.preventDefault)e.preventDefault();"),true);}elseif(aelements[i].attachEvent){aelements[i].attachEvent("onclick",newFunction("","if(document.getElementById('slideProj').disabled)return;"+"go("+dest+"-snum);"+"event.returnValue =false;"));}}}}}
function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName('a');for(var i=0;i<anchors.length;i++){varanchor=anchors[i];if(anchor.getAttribute('href')&&hasValue(anchor.rel,'external')){anchor.target='_blank';addClass(anchor,'external');}}}
function createControls(){var controlsDiv=document.getElementById("controls");if(!controlsDiv)return;var hider=' onmouseover="showHide(\'s\');" onmouseout="showHide(\'h\');"';var hideDiv,hideList='';if(controlVis=='hidden'){hideDiv=hider;}else{hideList=hider;}
var newSize=Math.min(Math.round(vSize/vScale),Math.round(hSize/hScale));fontSize(newSize+'px');if(isGe){var obj=document.getElementsByTagName('body')[0];obj.style.display='none';obj.style.display='block';}}
function fontSize(value){if(!(s5ss=document.getElementById('s5ss'))){if(!isIE){document.getElementsByTagName('head')[0].appendChild(s5ss=document.createElement('style'));s5ss.setAttribute('media','screen, projection');s5ss.setAttribute('id','s5ss');}else{document.createStyleSheet();document.s5ss=document.styleSheets[document.styleSheets.length-1];}}
function notOperaFix(){slideCSS=document.getElementById('slideProj').href;var slides=document.getElementById('slideProj');var outline=document.getElementById('outlineStyle');slides.setAttribute('media','screen');outline.disabled=true;if(isGe){slides.setAttribute('href','null');slides.setAttribute('href',slideCSS);}
function createIncrementals(){var incrementals=new Array();for(var i=0;i<smax;i++){incrementals[i]=getIncrementals(document.getElementById('slide'+i));}
return incrementals;}
function defaultCheck(){var allMetas=document.getElementsByTagName('meta');for(var i=0;i<allMetas.length;i++){if(allMetas[i].name=='defaultView'){defaultView=allMetas[i].content;}