var AMTcgiloc="/cgi-bin/mathtex.cgi";var mathcolor="white";var mathfontsize="1.33em";var mathfontfamily="serif";var automathrecognize=false;var checkForMathML=true;var notifyIfNoMathML=false;var alertIfNoMathML=false;var translateOnLoad=true;var translateLaTeX=true;var translateLaTeXformatting=true;var translateASCIIMath=true;var translateASCIIsvg=true;var avoidinnerHTML=false;var displaystyle=false;var showasciiformulaonhover=true;var decimalsign=".";var AMdelimiter1="`",AMescape1="\\\\`";var AMdocumentId="wikitext";var checkforprocessasciimathinmoodle=false;var dsvglocation="";var isIE=document.createElementNS==null;var noMathML=false,translated=false;if(isIE){document.write('<object id="mathplayer"  classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987"></object>');document.write('<?import namespace="m" implementation="#mathplayer"?>')}function setStylesheet(a){var c="AMMLcustomStyleSheet";var b=document.getElementById(c);if(document.createStyleSheet){if(b){b.parentNode.removeChild(b)}document.getElementsByTagName("head")[0].insertAdjacentHTML("beforeEnd","&nbsp;<style id='"+c+"'>"+a+"</style>")}else{if(b){b.replaceChild(document.createTextNode(a),b.firstChild)}else{b=document.createElement("style");b.type="text/css";b.id=c;b.appendChild(document.createTextNode(a));document.getElementsByTagName("head")[0].appendChild(b)}}}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 b,a=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}if(checkForMathML&&(b=checkMathML())){a.push(b)}if(a.length>0){displayWarnings(a)}initSymbols();return true}function checkMathML(){if(navigator.product&&navigator.product=="Gecko"){var d=navigator.userAgent.toLowerCase().match(/rv:\s*([\d\.]+)/);if(d!=null){d=d[1].split(".");if(d.length<3){d[2]=0}if(d.length<2){d[1]=0}}if(d!=null&&10000*d[0]+100*d[1]+1*d[2]>=10900){noMathML=null}else{noMathML=true}}else{if(navigator.appName.slice(0,9)=="Microsoft"){try{var c=new ActiveXObject("MathPlayer.Factory.1");noMathML=null}catch(a){noMathML=true}}else{if(navigator.appName.slice(0,5)=="Opera"&&1*navigator.appVersion.slice(0,4)>=9.5){noMathML=null}else{noMathML=true}}}if(noMathML&&notifyIfNoMathML){var b="To view the ASCIIMathML notation use Internet Explorer + MathPlayer or Mozilla Firefox 2.0 or later.";if(alertIfNoMathML){alert(b)}else{return b}}}function hideWarning(){var a=document.getElementsByTagName("body")[0];a.removeChild(document.getElementById("AMMLwarningBox"));a.onclick=null}function displayWarnings(b){var c,g,f=createElementXHTML("div");var a=document.getElementsByTagName("body")[0];a.onclick=hideWarning;f.id="AMMLwarningBox";for(c=0;c<b.length;c++){g=createElementXHTML("div");g.appendChild(document.createTextNode(b[c]));g.style.paddingBottom="1.0em";f.appendChild(g)}f.appendChild(createElementXHTML("p"));f.appendChild(document.createTextNode("For instructions see the "));var d=createElementXHTML("a");d.appendChild(document.createTextNode("ASCIIMathML"));d.setAttribute("href","http://www.chapman.edu/~jipsen/asciimath.html");f.appendChild(d);f.appendChild(document.createTextNode(" homepage"));d=createElementXHTML("div");d.id="AMMLcloseDiv";d.appendChild(document.createTextNode("(click anywhere to close this warning)"));f.appendChild(d);var a=document.getElementsByTagName("body")[0];a.insertBefore(f,a.childNodes[0])}function translate(b){if(!translated){translated=true;var a=document.getElementsByTagName("body")[0];var c=document.getElementById(AMdocumentId);if(translateLaTeX){LMprocessNode((c!=null?c:a))}if(translateASCIIMath){AMprocessNode((c!=null?c:a),false,b)}}}function createElementXHTML(a){if(isIE){return document.createElement(a)}else{return document.createElementNS("http://www.w3.org/1999/xhtml",a)}}function createMmlNode(a,c){if(isIE){var b=document.createElement("m:"+a)}else{var b=document.createElementNS("http://www.w3.org/1998/Math/MathML",a)}if(c){b.appendChild(c)}return b}var AMcal=[61237,8492,61238,61239,8496,8497,61240,8459,8464,61241,61242,8466,8499,61243,61244,61245,61246,8475,61247,61248,61249,61250,61251,61252,61253,61254];var AMfrk=[61277,61278,8493,61279,61280,61281,61282,8460,8465,61283,61284,61285,61286,61287,61288,61289,61290,8476,61291,61292,61293,61294,61295,61296,61297,8488];var AMbbb=[61324,61325,8450,61326,61327,61328,61329,8461,61330,61331,61332,61333,61334,8469,61335,8473,8474,8477,61336,61337,61338,61339,61340,61341,61342,8484];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},{input:"nn",tag:"mo",output:"\u2229",tex:"cap",ttype:CONST},{input:"nnn",tag:"mo",output:"\u22C2",tex:"bigcap",ttype:UNDEROVER},{input:"uu",tag:"mo",output:"\u222A",tex:"cup",ttype:CONST},{input:"uuu",tag:"mo",output:"\u22C3",tex:"bigcup",ttype:UNDEROVER},{input:"!=",tag:"mo",output:"\u2260",tex:"ne",ttype:CONST},{input:":=",tag:"mo",output:":=",tex:null,ttype:CONST},{input:"lt",tag:"mo",output:"<",tex:null,ttype:CONST},{input:"<=",tag:"mo",output:"\u2264",tex:"le",ttype:CONST},{input:"lt=",tag:"mo",output:"\u2264",tex:"leq",ttype:CONST},{input:">=",tag:"mo",output:"\u2265",tex:"ge",ttype:CONST},{input:"geq",tag:"mo",output:"\u2265",tex:null,ttype:CONST},{input:"-<",tag:"mo",output:"\u227A",tex:"prec",ttype:CONST},{input:"-lt",tag:"mo",output:"\u227A",tex:null,ttype:CONST},{input:">-",tag:"mo",output:"\u227B",tex:"succ",ttype:CONST},{input:"-<=",tag:"mo",output:"\u2AAF",tex:"preceq",ttype:CONST},{input:">-=",tag:"mo",output:"\u2AB0",tex:"succeq",ttype:CONST},{input:"in",tag:"mo",output:"\u2208",tex:null,ttype:CONST},{input:"!in",tag:"mo",output:"\u2209",tex:"notin",ttype:CONST},{input:"sub",tag:"mo",output:"\u2282",tex:"subset",ttype:CONST},{input:"sup",tag:"mo",output:"\u2283",tex:"supset",ttype:CONST},{input:"sube",tag:"mo",output:"\u2286",tex:"subseteq",ttype:CONST},{input:"supe",tag:"mo",output:"\u2287",tex:"supseteq",ttype:CONST},{input:"-=",tag:"mo",output:"\u2261",tex:"equiv",ttype:CONST},{input:"~=",tag:"mo",output:"\u2245",tex:"cong",ttype:CONST},{input:"~~",tag:"mo",output:"\u2248",tex:"approx",ttype:CONST},{input:"prop",tag:"mo",output:"\u221D",tex:"propto",ttype:CONST},{input:"and",tag:"mtext",output:"and",tex:null,ttype:SPACE},{input:"or",tag:"mtext",output:"or",tex:null,ttype:SPACE},{input:"not",tag:"mo",output:"\u00AC",tex:"neg",ttype:CONST},{input:"=>",tag:"mo",output:"\u21D2",tex:"implies",ttype:CONST},{input:"if",tag:"mo",output:"if",tex:null,ttype:SPACE},{input:"<=>",tag:"mo",output:"\u21D4",tex:"iff",ttype:CONST},{input:"AA",tag:"mo",output:"\u2200",tex:"forall",ttype:CONST},{input:"EE",tag:"mo",output:"\u2203",tex:"exists",ttype:CONST},{input:"_|_",tag:"mo",output:"\u22A5",tex:"bot",ttype:CONST},{input:"TT",tag:"mo",output:"\u22A4",tex:"top",ttype:CONST},{input:"|--",tag:"mo",output:"\u22A2",tex:"vdash",ttype:CONST},{input:"|==",tag:"mo",output:"\u22A8",tex:"models",ttype:CONST},{input:"(",tag:"mo",output:"(",tex:null,ttype:LEFTBRACKET},{input:")",tag:"mo",output:")",tex:null,ttype:RIGHTBRACKET},{input:"[",tag:"mo",output:"[",tex:null,ttype:LEFTBRACKET},{input:"]",tag:"mo",output:"]",tex:null,ttype:RIGHTBRACKET},{input:"{",tag:"mo",output:"{",tex:null,ttype:LEFTBRACKET},{input:"}",tag:"mo",output:"}",tex:null,ttype:RIGHTBRACKET},{input:"|",tag:"mo",output:"|",tex:null,ttype:LEFTRIGHT},{input:"(:",tag:"mo",output:"\u2329",tex:"langle",ttype:LEFTBRACKET},{input:":)",tag:"mo",output:"\u232A",tex:"rangle",ttype:RIGHTBRACKET},{input:"<<",tag:"mo",output:"\u2329",tex:null,ttype:LEFTBRACKET},{input:">>",tag:"mo",output:"\u232A",tex:null,ttype:RIGHTBRACKET},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:LEFTBRACKET,invisible:true},{input:":}",tag:"mo",output:":}",tex:null,ttype:RIGHTBRACKET,invisible:true},{input:"int",tag:"mo",output:"\u222B",tex:null,ttype:CONST},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:DEFINITION},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:DEFINITION},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:DEFINITION},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:DEFINITION},{input:"oint",tag:"mo",output:"\u222E",tex:null,ttype:CONST},{input:"del",tag:"mo",output:"\u2202",tex:"partial",ttype:CONST},{input:"grad",tag:"mo",output:"\u2207",tex:"nabla",ttype:CONST},{input:"+-",tag:"mo",output:"\u00B1",tex:"pm",ttype:CONST},{input:"O/",tag:"mo",output:"\u2205",tex:"emptyset",ttype:CONST},{input:"oo",tag:"mo",output:"\u221E",tex:"infty",ttype:CONST},{input:"aleph",tag:"mo",output:"\u2135",tex:null,ttype:CONST},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:CONST},{input:":.",tag:"mo",output:"\u2234",tex:"therefore",ttype:CONST},{input:"/_",tag:"mo",output:"\u2220",tex:"angle",ttype:CONST},{input:"\\ ",tag:"mo",output:"\u00A0",tex:null,ttype:CONST},{input:"quad",tag:"mo",output:"\u00A0\u00A0",tex:null,ttype:CONST},{input:"qquad",tag:"mo",output:"\u00A0\u00A0\u00A0\u00A0",tex:null,ttype:CONST},{input:"cdots",tag:"mo",output:"\u22EF",tex:null,ttype:CONST},{input:"vdots",tag:"mo",output:"\u22EE",tex:null,ttype:CONST},{input:"ddots",tag:"mo",output:"\u22F1",tex:null,ttype:CONST},{input:"diamond",tag:"mo",output:"\u22C4",tex:null,ttype:CONST},{input:"square",tag:"mo",output:"\u25A1",tex:null,ttype:CONST},{input:"|__",tag:"mo",output:"\u230A",tex:"lfloor",ttype:CONST},{input:"__|",tag:"mo",output:"\u230B",tex:"rfloor",ttype:CONST},{input:"|~",tag:"mo",output:"\u2308",tex:"lceiling",ttype:CONST},{input:"~|",tag:"mo",output:"\u2309",tex:"rceiling",ttype:CONST},{input:"CC",tag:"mo",output:"\u2102",tex:null,ttype:CONST},{input:"NN",tag:"mo",output:"\u2115",tex:null,ttype:CONST},{input:"QQ",tag:"mo",output:"\u211A",tex:null,ttype:CONST},{input:"RR",tag:"mo",output:"\u211D",tex:null,ttype:CONST},{input:"ZZ",tag:"mo",output:"\u2124",tex:null,ttype:CONST},{input:"f",tag:"mi",output:"f",tex:null,ttype:UNARY,func:true},{input:"g",tag:"mi",output:"g",tex:null,ttype:UNARY,func:true},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:UNDEROVER},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:UNDEROVER},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:UNARY,func:true},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:UNARY,func:true},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:UNARY,func:true},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:UNARY,func:true},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:UNARY,func:true},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:UNARY,func:true},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:UNARY,func:true},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:UNARY,func:true},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:UNARY,func:true},{input:"log",tag:"mo",output:"log",tex:null,ttype:UNARY,func:true},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:UNARY,func:true},{input:"det",tag:"mo",output:"det",tex:null,ttype:UNARY,func:true},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:CONST},{input:"mod",tag:"mo",output:"mod",tex:null,ttype:CONST},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:UNARY,func:true},{input:"lcm",tag:"mo",output:"lcm",tex:null,ttype:UNARY,func:true},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:CONST},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:CONST},{input:"min",tag:"mo",output:"min",tex:null,ttype:UNDEROVER},{input:"max",tag:"mo",output:"max",tex:null,ttype:UNDEROVER},{input:"uarr",tag:"mo",output:"\u2191",tex:"uparrow",ttype:CONST},{input:"darr",tag:"mo",output:"\u2193",tex:"downarrow",ttype:CONST},{input:"rarr",tag:"mo",output:"\u2192",tex:"rightarrow",ttype:CONST},{input:"->",tag:"mo",output:"\u2192",tex:"to",ttype:CONST},{input:">->",tag:"mo",output:"\u21A3",tex:"rightarrowtail",ttype:CONST},{input:"->>",tag:"mo",output:"\u21A0",tex:"twoheadrightarrow",ttype:CONST},{input:">->>",tag:"mo",output:"\u2916",tex:"twoheadrightarrowtail",ttype:CONST},{input:"|->",tag:"mo",output:"\u21A6",tex:"mapsto",ttype:CONST},{input:"larr",tag:"mo",output:"\u2190",tex:"leftarrow",ttype:CONST},{input:"harr",tag:"mo",output:"\u2194",tex:"leftrightarrow",ttype:CONST},{input:"rArr",tag:"mo",output:"\u21D2",tex:"Rightarrow",ttype:CONST},{input:"lArr",tag:"mo",output:"\u21D0",tex:"Leftarrow",ttype:CONST},{input:"hArr",tag:"mo",output:"\u21D4",tex:"Leftrightarrow",ttype:CONST},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:UNARY},{input:"root",tag:"mroot",output:"root",tex:null,ttype:BINARY},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:BINARY},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:INFIX},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:BINARY},{input:"_",tag:"msub",output:"_",tex:null,ttype:INFIX},{input:"^",tag:"msup",output:"^",tex:null,ttype:INFIX},{input:"hat",tag:"mover",output:"\u005E",tex:null,ttype:UNARY,acc:true},{input:"bar",tag:"mover",output:"\u00AF",tex:"overline",ttype:UNARY,acc:true},{input:"vec",tag:"mover",output:"\u2192",tex:null,ttype:UNARY,acc:true},{input:"dot",tag:"mover",output:".",tex:null,ttype:UNARY,acc:true},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:UNARY,acc:true},{input:"ul",tag:"munder",output:"\u0332",tex:"underline",ttype:UNARY,acc:true},{input:"text",tag:"mtext",output:"text",tex:null,ttype:TEXT},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:TEXT},AMquote,{input:"bb",tag:"mstyle",atname:"fontweight",atval:"bold",output:"bb",tex:null,ttype:UNARY},{input:"mathbf",tag:"mstyle",atname:"fontweight",atval:"bold",output:"mathbf",tex:null,ttype:UNARY},{input:"sf",tag:"mstyle",atname:"fontfamily",atval:"sans-serif",output:"sf",tex:null,ttype:UNARY},{input:"mathsf",tag:"mstyle",atname:"fontfamily",atval:"sans-serif",output:"mathsf",tex:null,ttype:UNARY},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:null,ttype:UNARY,codes:AMbbb},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:UNARY,codes:AMbbb},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:null,ttype:UNARY,codes:AMcal},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:UNARY,codes:AMcal},{input:"tt",tag:"mstyle",atname:"fontfamily",atval:"monospace",output:"tt",tex:null,ttype:UNARY},{input:"mathtt",tag:"mstyle",atname:"fontfamily",atval:"monospace",output:"mathtt",tex:null,ttype:UNARY},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:null,ttype:UNARY,codes:AMfrk},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:UNARY,codes:AMfrk}];function compareNames(b,a){if(b.input>a.input){return 1}else{return -1}}var AMnames=[];function initSymbols(){var b=[],a;for(a=0;a<AMsymbols.length;a++){if(AMsymbols[a].tex&&!(typeof AMsymbols[a].notexcopy=="boolean"&&AMsymbols[a].notexcopy)){b[b.length]={input:AMsymbols[a].tex,tag:AMsymbols[a].tag,output:AMsymbols[a].output,ttype:AMsymbols[a].ttype}}}AMsymbols=AMsymbols.concat(b);refreshSymbols()}function refreshSymbols(){var a;AMsymbols.sort(compareNames);for(a=0;a<AMsymbols.length;a++){AMnames[a]=AMsymbols[a].input}LMsymbols.sort(compareNames);for(a=0;a<LMsymbols.length;a++){LMnames[a]=LMsymbols[a].input}}function define(a,b){if(a.substr(0,1)=="\\"){LMsymbols=LMsymbols.concat([{input:a,tag:"mo",output:b,ttype:DEFINITION}])}else{AMsymbols=AMsymbols.concat([{input:a,tag:"mo",output:b,tex:null,ttype:DEFINITION}])}refreshSymbols()}function AMremoveCharsAndBlanks(c,d){var a;if(c.charAt(d)=="\\"&&c.charAt(d+1)!="\\"&&c.charAt(d+1)!=" "){a=c.slice(d+1)}else{a=c.slice(d)}for(var b=0;b<a.length&&a.charCodeAt(b)<=32;b=b+1){}return a.slice(b)}function position(b,f,g){if(g==0){var d,a;g=-1;d=b.length;while(g+1<d){a=(g+d)>>1;if(b[a]<f){g=a}else{d=a}}return d}else{for(var c=g;c<b.length&&b[c]<f;c++){}}return c}function AMgetSymbol(h){var a=0;var b=0;var d;var n;var m;var f="";var g=true;for(var c=1;c<=h.length&&g;c++){n=h.slice(0,c);b=a;a=position(AMnames,n,b);if(a<AMnames.length&&h.slice(0,AMnames[a].length)==AMnames[a]){f=AMnames[a];d=a;c=f.length}g=a<AMnames.length&&h.slice(0,AMnames[a].length)>=AMnames[a]}AMpreviousSymbol=AMcurrentSymbol;if(f!=""){AMcurrentSymbol=AMsymbols[d].ttype;return AMsymbols[d]}AMcurrentSymbol=CONST;a=1;n=h.slice(0,1);var l=true;while("0"<=n&&n<="9"&&a<=h.length){n=h.slice(a,a+1);a++}if(n==decimalsign){n=h.slice(a,a+1);if("0"<=n&&n<="9"){l=false;a++;while("0"<=n&&n<="9"&&a<=h.length){n=h.slice(a,a+1);a++}}}if((l&&a>1)||a>2){n=h.slice(0,a-1);m="mn"}else{a=2;n=h.slice(0,1);m=(("A">n||n>"Z")&&("a">n||n>"z")?"mo":"mi")}if(n=="-"&&AMpreviousSymbol==INFIX){AMcurrentSymbol=INFIX;return{input:n,tag:m,output:n,ttype:UNARY,func:true,val:true}}return{input:n,tag:m,output:n,ttype:CONST,val:true}}function AMremoveBrackets(b){var a;if(b.nodeName=="mrow"){a=b.firstChild.firstChild.nodeValue;if(a=="("||a=="["||a=="{"){b.removeChild(b.firstChild)}}if(b.nodeName=="mrow"){a=b.lastChild.firstChild.nodeValue;if(a==")"||a=="]"||a=="}"){b.removeChild(b.lastChild)}}}function AMTremoveBrackets(b){var a;if(b.charAt(0)=="{"&&b.charAt(b.length-1)=="}"){a=b.charAt(1);if(a=="("||a=="["){b="{"+b.substr(2)}a=b.substr(1,6);if(a=="\\left("||a=="\\left["||a=="\\left{"){b="{"+b.substr(7)}a=b.substr(1,12);if(a=="\\left\\lbrace"||a=="\\left\\langle"){b="{"+b.substr(13)}a=b.charAt(b.length-2);if(a==")"||a=="]"){b=b.substr(0,b.length-8)+"}"}a=b.substr(b.length-8,7);if(a=="\\rbrace"||a=="\\rangle"){b=b.substr(0,b.length-14)+"}"}}return b}var AMnestingDepth,AMpreviousSymbol,AMcurrentSymbol;function AMTgetTeXsymbol(a){if(typeof a.val=="boolean"&&a.val){pre=""}else{pre="\\"}if(a.tex==null){return(pre+a.input)}else{return(pre+a.tex)}}function AMTgetTeXbracket(a){if(a.tex==null){return(a.input)}else{return("\\"+a.tex)}}function AMTparseSexpr(h){var c,b,k,d,j,g="";h=AMremoveCharsAndBlanks(h,0);c=AMgetSymbol(h);if(c==null||c.ttype==RIGHTBRACKET&&AMnestingDepth>0){return[null,h]}if(c.ttype==DEFINITION){h=c.output+AMremoveCharsAndBlanks(h,c.input.length);c=AMgetSymbol(h)}switch(c.ttype){case UNDEROVER:case CONST:h=AMremoveCharsAndBlanks(h,c.input.length);var f=AMTgetTeXsymbol(c);if(f.charAt(0)=="\\"||c.tag=="mo"){return[f,h]}else{return["{"+f+"}",h]}case LEFTBRACKET:AMnestingDepth++;h=AMremoveCharsAndBlanks(h,c.input.length);k=AMTparseExpr(h,true);AMnestingDepth--;if(typeof c.invisible=="boolean"&&c.invisible){b="{\\left."+k[0]+"}"}else{b="{\\left"+AMTgetTeXbracket(c)+k[0]+"}"}return[b,k[1]];case TEXT:if(c!=AMquote){h=AMremoveCharsAndBlanks(h,c.input.length)}if(h.charAt(0)=="{"){d=h.indexOf("}")}else{if(h.charAt(0)=="("){d=h.indexOf(")")}else{if(h.charAt(0)=="["){d=h.indexOf("]")}else{if(c==AMquote){d=h.slice(1).indexOf('"')+1}else{d=0}}}}if(d==-1){d=h.length}j=h.slice(1,d);if(j.charAt(0)==" "){g="\\ "}g+="\\text{"+j+"}";if(j.charAt(j.length-1)==" "){g+="\\ "}h=AMremoveCharsAndBlanks(h,d+1);return[g,h];case UNARY:h=AMremoveCharsAndBlanks(h,c.input.length);k=AMTparseSexpr(h);if(k[0]==null){return["{"+AMTgetTeXsymbol(c)+"}",h]}if(typeof c.func=="boolean"&&c.func){j=h.charAt(0);if(j=="^"||j=="_"||j=="/"||j=="|"||j==","){return["{"+AMTgetTeXsymbol(c)+"}",h]}else{b="{"+AMTgetTeXsymbol(c)+"{"+k[0]+"}}";return[b,k[1]]}}k[0]=AMTremoveBrackets(k[0]);if(c.input=="sqrt"){return["\\sqrt{"+k[0]+"}",k[1]]}else{if(typeof c.acc=="boolean"&&c.acc){return["{"+AMTgetTeXsymbol(c)+"{"+k[0]+"}}",k[1]]}else{return["{"+AMTgetTeXsymbol(c)+"{"+k[0]+"}}",k[1]]}}case BINARY:h=AMremoveCharsAndBlanks(h,c.input.length);k=AMTparseSexpr(h);if(k[0]==null){return["{"+AMTgetTeXsymbol(c)+"}",h]}k[0]=AMTremoveBrackets(k[0]);var a=AMTparseSexpr(k[1]);if(a[0]==null){return["{"+AMTgetTeXsymbol(c)+"}",h]}a[0]=AMTremoveBrackets(a[0]);if(c.input=="root"||c.input=="stackrel"){if(c.input=="root"){g="{\\sqrt["+k[0]+"]{"+a[0]+"}}"}else{g="{"+AMTgetTeXsymbol(c)+"{"+k[0]+"}{"+a[0]+"}}"}}if(c.input=="frac"){g="{\\frac{"+k[0]+"}{"+a[0]+"}}"}return[g,a[1]];case INFIX:h=AMremoveCharsAndBlanks(h,c.input.length);return[c.output,h];case SPACE:h=AMremoveCharsAndBlanks(h,c.input.length);return["{\\quad\\text{"+c.input+"}\\quad}",h];case LEFTRIGHT:AMnestingDepth++;h=AMremoveCharsAndBlanks(h,c.input.length);k=AMTparseExpr(h,false);AMnestingDepth--;var j="";j=k[0].charAt(k[0].length-1);if(j=="|"){b="{\\left|"+k[0]+"}";return[b,k[1]]}else{b="{\\mid}";return[b,h]}default:h=AMremoveCharsAndBlanks(h,c.input.length);return["{"+AMTgetTeXsymbol(c)+"}",h]}}function AMTparseIexpr(h){var f,j,g,d,a,c;h=AMremoveCharsAndBlanks(h,0);j=AMgetSymbol(h);a=AMTparseSexpr(h);d=a[0];h=a[1];f=AMgetSymbol(h);if(f.ttype==INFIX&&f.input!="/"){h=AMremoveCharsAndBlanks(h,f.input.length);a=AMTparseSexpr(h);if(a[0]==null){a[0]="{}"}else{a[0]=AMTremoveBrackets(a[0])}h=a[1];if(f.input=="_"){g=AMgetSymbol(h);c=(j.ttype==UNDEROVER);if(g.input=="^"){h=AMremoveCharsAndBlanks(h,g.input.length);var b=AMTparseSexpr(h);b[0]=AMTremoveBrackets(b[0]);h=b[1];d="{"+d;d+="_{"+a[0]+"}";d+="^{"+b[0]+"}";d+="}"}else{d+="_{"+a[0]+"}"}}else{d="{"+d+"}^{"+a[0]+"}"}}return[d,h]}function AMTparseExpr(j,h){var l,k,d,n,s=[],g="";var c=false;do{j=AMremoveCharsAndBlanks(j,0);d=AMTparseIexpr(j);k=d[0];j=d[1];l=AMgetSymbol(j);if(l.ttype==INFIX&&l.input=="/"){j=AMremoveCharsAndBlanks(j,l.input.length);d=AMTparseIexpr(j);if(d[0]==null){d[0]="{}"}else{d[0]=AMTremoveBrackets(d[0])}j=d[1];k=AMTremoveBrackets(k);k="\\frac{"+k+"}";k+="{"+d[0]+"}";g+=k;l=AMgetSymbol(j)}else{if(k!=undefined){g+=k}}}while((l.ttype!=RIGHTBRACKET&&(l.ttype!=LEFTRIGHT||h)||AMnestingDepth==0)&&l!=null&&l.output!="");if(l.ttype==RIGHTBRACKET||l.ttype==LEFTRIGHT){var o=g.length;if(o>2&&g.charAt(0)=="{"&&g.indexOf(",")>0){var q=g.charAt(o-2);if(q==")"||q=="]"){var a=g.charAt(6);if((a=="("&&q==")"&&l.output!="}")||(a=="["&&q=="]")){var r="\\matrix{";var b=new Array();b.push(0);var m=true;var p=0;for(n=1;n<o-1;n++){if(g.charAt(n)==a){p++}if(g.charAt(n)==q){p--;if(p==0&&g.charAt(n+2)==","&&g.charAt(n+3)=="{"){b.push(n+2)}}}b.push(o);var f=-1;if(p==0&&b.length>0){for(n=0;n<b.length-1;n++){if(n>0){r+="\\\\"}if(n==0){var t=g.substr(b[n]+7,b[n+1]-b[n]-15).split(",")}else{var t=g.substr(b[n]+8,b[n+1]-b[n]-16).split(",")}if(f>0&&t.length!=f){m=false}else{if(f==-1){f=t.length}}r+=t.join("&")}}r+="}";if(m){g=r}}}}j=AMremoveCharsAndBlanks(j,l.input.length);if(typeof l.invisible!="boolean"||!l.invisible){k="\\right"+AMTgetTeXbracket(l);g+=k;c=true}else{g+="\\right.";c=true}}if(AMnestingDepth>0&&!c){g+="\\right."}return[g,j]}function AMTparseAMtoTeX(a){AMnestingDepth=0;a=a.replace(/&nbsp;/g,"");a=a.replace(/&gt;/g,">");a=a.replace(/&lt;/g,"<");return AMTparseExpr(a.replace(/^\s+/g,""),false)[0]}function AMTparseMath(d,a){if(a){var b=d}else{var b=AMTparseAMtoTeX(d)}b=b.replace(/\u2019/g,"'");b="\\png\\cache "+b;if(mathcolor!=""){b="\\usepackage{color}\\pagecolor[gray]{0.4}\\color{"+mathcolor+"} "+b}else{b="\\usepackage{color}\\pagecolor[gray]{0.4}\\pagecolor{mgray}\\color{white} "+b}var c=createElementXHTML("img");if(typeof encodeURIComponent=="function"){b=encodeURIComponent(b)}else{b=escape(b)}c.src=AMTcgiloc+"?"+b;c.style.verticalAlign="-0.3em";if(showasciiformulaonhover){c.setAttribute("title",d.replace(/\s+/g," "))}return c}function AMparseSexpr(h){var c,b,m,f,l,g=document.createDocumentFragment();h=AMremoveCharsAndBlanks(h,0);c=AMgetSymbol(h);if(c==null||c.ttype==RIGHTBRACKET&&AMnestingDepth>0){return[null,h]}if(c.ttype==DEFINITION){h=c.output+AMremoveCharsAndBlanks(h,c.input.length);c=AMgetSymbol(h)}switch(c.ttype){case UNDEROVER:case CONST:h=AMremoveCharsAndBlanks(h,c.input.length);return[createMmlNode(c.tag,document.createTextNode(c.output)),h];case LEFTBRACKET:AMnestingDepth++;h=AMremoveCharsAndBlanks(h,c.input.length);m=AMparseExpr(h,true);AMnestingDepth--;if(typeof c.invisible=="boolean"&&c.invisible){b=createMmlNode("mrow",m[0])}else{b=createMmlNode("mo",document.createTextNode(c.output));b=createMmlNode("mrow",b);b.appendChild(m[0])}return[b,m[1]];case TEXT:if(c!=AMquote){h=AMremoveCharsAndBlanks(h,c.input.length)}if(h.charAt(0)=="{"){f=h.indexOf("}")}else{if(h.charAt(0)=="("){f=h.indexOf(")")}else{if(h.charAt(0)=="["){f=h.indexOf("]")}else{if(c==AMquote){f=h.slice(1).indexOf('"')+1}else{f=0}}}}if(f==-1){f=h.length}l=h.slice(1,f);if(l.charAt(0)==" "){b=createMmlNode("mspace");b.setAttribute("width","1ex");g.appendChild(b)}g.appendChild(createMmlNode(c.tag,document.createTextNode(l)));if(l.charAt(l.length-1)==" "){b=createMmlNode("mspace");b.setAttribute("width","1ex");g.appendChild(b)}h=AMremoveCharsAndBlanks(h,f+1);return[createMmlNode("mrow",g),h];case UNARY:h=AMremoveCharsAndBlanks(h,c.input.length);m=AMparseSexpr(h);if(m[0]==null){return[createMmlNode(c.tag,document.createTextNode(c.output)),h]}if(typeof c.func=="boolean"&&c.func){l=h.charAt(0);if(l=="^"||l=="_"||l=="/"||l=="|"||l==","){return[createMmlNode(c.tag,document.createTextNode(c.output)),h]}else{b=createMmlNode("mrow",createMmlNode(c.tag,document.createTextNode(c.output)));b.appendChild(m[0]);return[b,m[1]]}}AMremoveBrackets(m[0]);if(c.input=="sqrt"){return[createMmlNode(c.tag,m[0]),m[1]]}else{if(typeof c.acc=="boolean"&&c.acc){b=createMmlNode(c.tag,m[0]);b.appendChild(createMmlNode("mo",document.createTextNode(c.output)));return[b,m[1]]}else{if(!isIE&&typeof c.codes!="undefined"){for(f=0;f<m[0].childNodes.length;f++){if(m[0].childNodes[f].nodeName=="mi"||m[0].nodeName=="mi"){l=(m[0].nodeName=="mi"?m[0].firstChild.nodeValue:m[0].childNodes[f].firstChild.nodeValue);var k=[];for(var d=0;d<l.length;d++){if(l.charCodeAt(d)>64&&l.charCodeAt(d)<91){k=k+String.fromCharCode(c.codes[l.charCodeAt(d)-65])}else{k=k+l.charAt(d)}}if(m[0].nodeName=="mi"){m[0]=createMmlNode("mo").appendChild(document.createTextNode(k))}else{m[0].replaceChild(createMmlNode("mo").appendChild(document.createTextNode(k)),m[0].childNodes[f])}}}}b=createMmlNode(c.tag,m[0]);b.setAttribute(c.atname,c.atval);return[b,m[1]]}}case BINARY:h=AMremoveCharsAndBlanks(h,c.input.length);m=AMparseSexpr(h);if(m[0]==null){return[createMmlNode("mo",document.createTextNode(c.input)),h]}AMremoveBrackets(m[0]);var a=AMparseSexpr(m[1]);if(a[0]==null){return[createMmlNode("mo",document.createTextNode(c.input)),h]}AMremoveBrackets(a[0]);if(c.input=="root"||c.input=="stackrel"){g.appendChild(a[0])}g.appendChild(m[0]);if(c.input=="frac"){g.appendChild(a[0])}return[createMmlNode(c.tag,g),a[1]];case INFIX:h=AMremoveCharsAndBlanks(h,c.input.length);return[createMmlNode("mo",document.createTextNode(c.output)),h];case SPACE:h=AMremoveCharsAndBlanks(h,c.input.length);b=createMmlNode("mspace");b.setAttribute("width","1ex");g.appendChild(b);g.appendChild(createMmlNode(c.tag,document.createTextNode(c.output)));b=createMmlNode("mspace");b.setAttribute("width","1ex");g.appendChild(b);return[createMmlNode("mrow",g),h];case LEFTRIGHT:AMnestingDepth++;h=AMremoveCharsAndBlanks(h,c.input.length);m=AMparseExpr(h,false);AMnestingDepth--;var l="";if(m[0].lastChild!=null){l=m[0].lastChild.firstChild.nodeValue}if(l=="|"){b=createMmlNode("mo",document.createTextNode(c.output));b=createMmlNode("mrow",b);b.appendChild(m[0]);return[b,m[1]]}else{b=createMmlNode("mo",document.createTextNode("\u2223"));b=createMmlNode("mrow",b);return[b,h]}default:h=AMremoveCharsAndBlanks(h,c.input.length);return[createMmlNode(c.tag,document.createTextNode(c.output)),h]}}function AMparseIexpr(h){var f,j,g,d,a,c;h=AMremoveCharsAndBlanks(h,0);j=AMgetSymbol(h);a=AMparseSexpr(h);d=a[0];h=a[1];f=AMgetSymbol(h);if(f.ttype==INFIX&&f.input!="/"){h=AMremoveCharsAndBlanks(h,f.input.length);a=AMparseSexpr(h);if(a[0]==null){a[0]=createMmlNode("mo",document.createTextNode("\u25A1"))}else{AMremoveBrackets(a[0])}h=a[1];if(f.input=="_"){g=AMgetSymbol(h);c=(j.ttype==UNDEROVER);if(g.input=="^"){h=AMremoveCharsAndBlanks(h,g.input.length);var b=AMparseSexpr(h);AMremoveBrackets(b[0]);h=b[1];d=createMmlNode((c?"munderover":"msubsup"),d);d.appendChild(a[0]);d.appendChild(b[0]);d=createMmlNode("mrow",d)}else{d=createMmlNode((c?"munder":"msub"),d);d.appendChild(a[0])}}else{d=createMmlNode(f.tag,d);d.appendChild(a[0])}}return[d,h]}function AMparseExpr(o,l){var s,p,f,w,A=[],g=document.createDocumentFragment();do{o=AMremoveCharsAndBlanks(o,0);f=AMparseIexpr(o);p=f[0];o=f[1];s=AMgetSymbol(o);if(s.ttype==INFIX&&s.input=="/"){o=AMremoveCharsAndBlanks(o,s.input.length);f=AMparseIexpr(o);if(f[0]==null){f[0]=createMmlNode("mo",document.createTextNode("\u25A1"))}else{AMremoveBrackets(f[0])}o=f[1];AMremoveBrackets(p);p=createMmlNode(s.tag,p);p.appendChild(f[0]);g.appendChild(p);s=AMgetSymbol(o)}else{if(p!=undefined){g.appendChild(p)}}}while((s.ttype!=RIGHTBRACKET&&(s.ttype!=LEFTRIGHT||l)||AMnestingDepth==0)&&s!=null&&s.output!="");if(s.ttype==RIGHTBRACKET||s.ttype==LEFTRIGHT){var x=g.childNodes.length;if(x>0&&g.childNodes[x-1].nodeName=="mrow"&&x>1&&g.childNodes[x-2].nodeName=="mo"&&g.childNodes[x-2].firstChild.nodeValue==","){var z=g.childNodes[x-1].lastChild.firstChild.nodeValue;if(z==")"||z=="]"){var b=g.childNodes[x-1].firstChild.firstChild.nodeValue;if(b=="("&&z==")"&&s.output!="}"||b=="["&&z=="]"){var c=[];var t=true;var q=g.childNodes.length;for(w=0;t&&w<q;w=w+2){c[w]=[];p=g.childNodes[w];if(t){t=p.nodeName=="mrow"&&(w==q-1||p.nextSibling.nodeName=="mo"&&p.nextSibling.firstChild.nodeValue==",")&&p.firstChild.firstChild.nodeValue==b&&p.lastChild.firstChild.nodeValue==z}if(t){for(var v=0;v<p.childNodes.length;v++){if(p.childNodes[v].firstChild.nodeValue==","){c[w][c[w].length]=v}}}if(t&&w>1){t=c[w].length==c[w-2].length}}if(t){var d,a,h,r,y=document.createDocumentFragment();for(w=0;w<q;w=w+2){d=document.createDocumentFragment();a=document.createDocumentFragment();p=g.firstChild;h=p.childNodes.length;r=0;p.removeChild(p.firstChild);for(v=1;v<h-1;v++){if(typeof c[w][r]!="undefined"&&v==c[w][r]){p.removeChild(p.firstChild);d.appendChild(createMmlNode("mtd",a));r++}else{a.appendChild(p.firstChild)}}d.appendChild(createMmlNode("mtd",a));if(g.childNodes.length>2){g.removeChild(g.firstChild);g.removeChild(g.firstChild)}y.appendChild(createMmlNode("mtr",d))}p=createMmlNode("mtable",y);if(typeof s.invisible=="boolean"&&s.invisible){p.setAttribute("columnalign","left")}g.replaceChild(p,g.firstChild)}}}}o=AMremoveCharsAndBlanks(o,s.input.length);if(typeof s.invisible!="boolean"||!s.invisible){p=createMmlNode("mo",document.createTextNode(s.output));g.appendChild(p)}}return[g,o]}function parseMath(c,b){var d,a;AMnestingDepth=0;d=b?LMparseExpr(c.replace(/^\s+/g,""),false,false)[0]:AMparseExpr(c.replace(/^\s+/g,""),false)[0];a=createMmlNode("mstyle",d);a.setAttribute("mathcolor",mathcolor);a.setAttribute("fontfamily",mathfontfamily);a.setAttribute("mathsize",mathfontsize);if(displaystyle){a.setAttribute("displaystyle","true")}a=createMmlNode("math",a);if(showasciiformulaonhover){a.setAttribute("title",c.replace(/\s+/g," "))}return a}function strarr2docFrag(a,d,g){var k=document.createDocumentFragment();var h=false;for(var f=0;f<a.length;f++){if(h&&noMathML){k.appendChild(AMTparseMath(a[f],g))}else{if(h&&!noMathML){k.appendChild(parseMath(a[f],g))}else{var b=(d?a[f].split("\n\n"):[a[f]]);k.appendChild(createElementXHTML("span").appendChild(document.createTextNode(b[0])));for(var c=1;c<b.length;c++){k.appendChild(createElementXHTML("p"));k.appendChild(createElementXHTML("span").appendChild(document.createTextNode(b[c])))}}}h=!h}return k}function AMautomathrec(l){var c="\\\\[a-zA-Z]+|\\\\\\s|";var k="\\b(?:oo|lim|ln|int|oint|del|grad|aleph|prod|prop|sinh|cosh|tanh|cos|sec|pi|tt|fr|sf|sube|supe|sub|sup|det|mod|gcd|lcm|min|max|vec|ddot|ul|chi|eta|nu|mu)(?![a-z])|";var m="\\b(?:sum|ox|log|sin|tan|dim|hat|bar|dot)(?![a-z])|";var d="|\\bI\\b|\\bin\\b|\\btext\\b";var a="NN|ZZ|QQ|RR|CC|TT|AA|EE|sqrt|dx|dy|dz|dt|xx|vv|uu|nn|bb|cc|csc|cot|alpha|beta|delta|Delta|epsilon|gamma|Gamma|kappa|lambda|Lambda|omega|phi|Phi|Pi|psi|Psi|rho|sigma|Sigma|tau|theta|Theta|xi|Xi|zeta";var b="[a-zA-HJ-Z](?=(?:[^a-zA-Z]|$|"+k+m+a+"))|";var f=b+c+"\\d+|[-()[\\]{}+=*&^_%\\@/<>,\\|!:;'~]|\\.(?!(?:\x20|$))|"+k+m+a;var n=new RegExp("(^|\\s)((("+f+")\\s?)(("+f+d+")\\s?)+)([,.?]?(?=\\s|$))","g");l=l.replace(n," `$2`$7");var h=l.split(AMdelimiter1);var j=new RegExp("(^|\\s)([b-zB-HJ-Z+*<>]|"+c+k+a+")(\\s|\\n|$)","g");var g=new RegExp("(^|\\s)([a-z]|"+c+k+a+")([,.])","g");for(i=0;i<h.length;i++){if(i%2==0){h[i]=h[i].replace(j," `$2`$3");h[i]=h[i].replace(g," `$2`$3");h[i]=h[i].replace(/([{}[\]])/,"`$1`")}}l=h.join(AMdelimiter1);l=l.replace(/((^|\s)\([a-zA-Z]{2,}.*?)\)`/g,"$1`)");l=l.replace(/`(\((a\s|in\s))(.*?[a-zA-Z]{2,}\))/g,"$1`$3");l=l.replace(/\sin`/g,"` in");l=l.replace(/`(\(\w\)[,.]?(\s|\n|$))/g,"$1`");l=l.replace(/`([0-9.]+|e.g|i.e)`(\.?)/gi,"$1$2");l=l.replace(/`([0-9.]+:)`/g,"$1");return l}function processNodeR(c,h,b){var k,j,f,a,d;if(c.childNodes.length==0){if((c.nodeType!=8||h)&&c.parentNode.nodeName!="form"&&c.parentNode.nodeName!="FORM"&&c.parentNode.nodeName!="textarea"&&c.parentNode.nodeName!="TEXTAREA"){j=c.nodeValue;if(!(j==null)){j=j.replace(/\r\n\r\n/g,"\n\n");j=j.replace(/\x20+/g," ");j=j.replace(/\s*\r\n/g," ");if(b){k=(j.indexOf("$")==-1?false:true);j=j.replace(/([^\\])\$/g,"$1 $");j=j.replace(/^\$/," $");f=j.split(" $");for(d=0;d<f.length;d++){f[d]=f[d].replace(/\\\$/g,"$")}}else{k=false;j=j.replace(new RegExp(AMescape1,"g"),function(){k=true;return"AMescape1"});j=j.replace(/\\?end{?a?math}?/i,function(){automathrecognize=false;k=true;return""});j=j.replace(/amath\b|\\begin{a?math}/i,function(){automathrecognize=true;k=true;return""});f=j.split(AMdelimiter1);if(automathrecognize){for(d=0;d<f.length;d++){if(d%2==0){f[d]=AMautomathrec(f[d])}}}j=f.join(AMdelimiter1);f=j.split(AMdelimiter1);for(d=0;d<f.length;d++){f[d]=f[d].replace(/AMescape1/g,AMdelimiter1)}}if(f.length>1||k){a=strarr2docFrag(f,c.nodeType==8,b);var g=a.childNodes.length;c.parentNode.replaceChild(a,c);return g-1}}}else{return 0}}else{if(c.nodeName!="math"){for(d=0;d<c.childNodes.length;d++){d+=processNodeR(c.childNodes[d],h,b)}}}return 0}function AMprocessNode(h,b,f){var g,a;if(f!=null){g=document.getElementsByTagName("span");for(var c=0;c<g.length;c++){if(g[c].className=="AM"){processNodeR(g[c],b,false)}}}else{try{a=h.innerHTML}catch(d){}if(a==null||/amath\b|\\begin{a?math}/i.test(a)||a.indexOf(AMdelimiter1+" ")!=-1||a.slice(-1)==AMdelimiter1||a.indexOf(AMdelimiter1+"<")!=-1||a.indexOf(AMdelimiter1+"\n")!=-1){processNodeR(h,b,false)}}}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},{input:"\\lor",tag:"mo",output:"\u2228",ttype:CONST},{input:"\\vee",tag:"mo",output:"\u2228",ttype:CONST},{input:"\\cap",tag:"mo",output:"\u2229",ttype:CONST},{input:"\\cup",tag:"mo",output:"\u222A",ttype:CONST},{input:"\\sqcap",tag:"mo",output:"\u2293",ttype:CONST},{input:"\\sqcup",tag:"mo",output:"\u2294",ttype:CONST},{input:"\\uplus",tag:"mo",output:"\u228E",ttype:CONST},{input:"\\amalg",tag:"mo",output:"\u2210",ttype:CONST},{input:"\\bigtriangleup",tag:"mo",output:"\u25B3",ttype:CONST},{input:"\\bigtriangledown",tag:"mo",output:"\u25BD",ttype:CONST},{input:"\\dag",tag:"mo",output:"\u2020",ttype:CONST},{input:"\\dagger",tag:"mo",output:"\u2020",ttype:CONST},{input:"\\ddag",tag:"mo",output:"\u2021",ttype:CONST},{input:"\\ddagger",tag:"mo",output:"\u2021",ttype:CONST},{input:"\\lhd",tag:"mo",output:"\u22B2",ttype:CONST},{input:"\\rhd",tag:"mo",output:"\u22B3",ttype:CONST},{input:"\\unlhd",tag:"mo",output:"\u22B4",ttype:CONST},{input:"\\unrhd",tag:"mo",output:"\u22B5",ttype:CONST},{input:"\\sum",tag:"mo",output:"\u2211",ttype:UNDEROVER},{input:"\\prod",tag:"mo",output:"\u220F",ttype:UNDEROVER},{input:"\\bigcap",tag:"mo",output:"\u22C2",ttype:UNDEROVER},{input:"\\bigcup",tag:"mo",output:"\u22C3",ttype:UNDEROVER},{input:"\\bigwedge",tag:"mo",output:"\u22C0",ttype:UNDEROVER},{input:"\\bigvee",tag:"mo",output:"\u22C1",ttype:UNDEROVER},{input:"\\bigsqcap",tag:"mo",output:"\u2A05",ttype:UNDEROVER},{input:"\\bigsqcup",tag:"mo",output:"\u2A06",ttype:UNDEROVER},{input:"\\coprod",tag:"mo",output:"\u2210",ttype:UNDEROVER},{input:"\\bigoplus",tag:"mo",output:"\u2A01",ttype:UNDEROVER},{input:"\\bigotimes",tag:"mo",output:"\u2A02",ttype:UNDEROVER},{input:"\\bigodot",tag:"mo",output:"\u2A00",ttype:UNDEROVER},{input:"\\biguplus",tag:"mo",output:"\u2A04",ttype:UNDEROVER},{input:"\\int",tag:"mo",output:"\u222B",ttype:CONST},{input:"\\oint",tag:"mo",output:"\u222E",ttype:CONST},{input:":=",tag:"mo",output:":=",ttype:CONST},{input:"\\lt",tag:"mo",output:"<",ttype:CONST},{input:"\\gt",tag:"mo",output:">",ttype:CONST},{input:"\\ne",tag:"mo",output:"\u2260",ttype:CONST},{input:"\\neq",tag:"mo",output:"\u2260",ttype:CONST},{input:"\\le",tag:"mo",output:"\u2264",ttype:CONST},{input:"\\leq",tag:"mo",output:"\u2264",ttype:CONST},{input:"\\leqslant",tag:"mo",output:"\u2264",ttype:CONST},{input:"\\ge",tag:"mo",output:"\u2265",ttype:CONST},{input:"\\geq",tag:"mo",output:"\u2265",ttype:CONST},{input:"\\geqslant",tag:"mo",output:"\u2265",ttype:CONST},{input:"\\equiv",tag:"mo",output:"\u2261",ttype:CONST},{input:"\\ll",tag:"mo",output:"\u226A",ttype:CONST},{input:"\\gg",tag:"mo",output:"\u226B",ttype:CONST},{input:"\\doteq",tag:"mo",output:"\u2250",ttype:CONST},{input:"\\prec",tag:"mo",output:"\u227A",ttype:CONST},{input:"\\succ",tag:"mo",output:"\u227B",ttype:CONST},{input:"\\preceq",tag:"mo",output:"\u227C",ttype:CONST},{input:"\\succeq",tag:"mo",output:"\u227D",ttype:CONST},{input:"\\subset",tag:"mo",output:"\u2282",ttype:CONST},{input:"\\supset",tag:"mo",output:"\u2283",ttype:CONST},{input:"\\subseteq",tag:"mo",output:"\u2286",ttype:CONST},{input:"\\supseteq",tag:"mo",output:"\u2287",ttype:CONST},{input:"\\sqsubset",tag:"mo",output:"\u228F",ttype:CONST},{input:"\\sqsupset",tag:"mo",output:"\u2290",ttype:CONST},{input:"\\sqsubseteq",tag:"mo",output:"\u2291",ttype:CONST},{input:"\\sqsupseteq",tag:"mo",output:"\u2292",ttype:CONST},{input:"\\sim",tag:"mo",output:"\u223C",ttype:CONST},{input:"\\simeq",tag:"mo",output:"\u2243",ttype:CONST},{input:"\\approx",tag:"mo",output:"\u2248",ttype:CONST},{input:"\\cong",tag:"mo",output:"\u2245",ttype:CONST},{input:"\\Join",tag:"mo",output:"\u22C8",ttype:CONST},{input:"\\bowtie",tag:"mo",output:"\u22C8",ttype:CONST},{input:"\\in",tag:"mo",output:"\u2208",ttype:CONST},{input:"\\ni",tag:"mo",output:"\u220B",ttype:CONST},{input:"\\owns",tag:"mo",output:"\u220B",ttype:CONST},{input:"\\propto",tag:"mo",output:"\u221D",ttype:CONST},{input:"\\vdash",tag:"mo",output:"\u22A2",ttype:CONST},{input:"\\dashv",tag:"mo",output:"\u22A3",ttype:CONST},{input:"\\models",tag:"mo",output:"\u22A8",ttype:CONST},{input:"\\perp",tag:"mo",output:"\u22A5",ttype:CONST},{input:"\\smile",tag:"mo",output:"\u2323",ttype:CONST},{input:"\\frown",tag:"mo",output:"\u2322",ttype:CONST},{input:"\\asymp",tag:"mo",output:"\u224D",ttype:CONST},{input:"\\notin",tag:"mo",output:"\u2209",ttype:CONST},{input:"\\begin{eqnarray}",output:"X",ttype:MATRIX,invisible:true},{input:"\\begin{array}",output:"X",ttype:MATRIX,invisible:true},{input:"\\\\",output:"}&{",ttype:DEFINITION},{input:"\\end{eqnarray}",output:"}}",ttype:DEFINITION},{input:"\\end{array}",output:"}}",ttype:DEFINITION},{input:"\\big",tag:"mo",output:"X",atval:"1.2",ieval:"2.2",ttype:BIG},{input:"\\Big",tag:"mo",output:"X",atval:"1.6",ieval:"2.6",ttype:BIG},{input:"\\bigg",tag:"mo",output:"X",atval:"2.2",ieval:"3.2",ttype:BIG},{input:"\\Bigg",tag:"mo",output:"X",atval:"2.9",ieval:"3.9",ttype:BIG},{input:"\\left",tag:"mo",output:"X",ttype:LEFTBRACKET},{input:"\\right",tag:"mo",output:"X",ttype:RIGHTBRACKET},{input:"{",output:"{",ttype:LEFTBRACKET,invisible:true},{input:"}",output:"}",ttype:RIGHTBRACKET,invisible:true},{input:"(",tag:"mo",output:"(",atval:"1",ttype:STRETCHY},{input:"[",tag:"mo",output:"[",atval:"1",ttype:STRETCHY},{input:"\\lbrack",tag:"mo",output:"[",atval:"1",ttype:STRETCHY},{input:"\\{",tag:"mo",output:"{",atval:"1",ttype:STRETCHY},{input:"\\lbrace",tag:"mo",output:"{",atval:"1",ttype:STRETCHY},{input:"\\langle",tag:"mo",output:"\u2329",atval:"1",ttype:STRETCHY},{input:"\\lfloor",tag:"mo",output:"\u230A",atval:"1",ttype:STRETCHY},{input:"\\lceil",tag:"mo",output:"\u2308",atval:"1",ttype:STRETCHY},{input:")",tag:"mo",output:")",rtag:"mi",atval:"1",ttype:STRETCHY},{input:"]",tag:"mo",output:"]",rtag:"mi",atval:"1",ttype:STRETCHY},{input:"\\rbrack",tag:"mo",output:"]",rtag:"mi",atval:"1",ttype:STRETCHY},{input:"\\}",tag:"mo",output:"}",rtag:"mi",atval:"1",ttype:STRETCHY},{input:"\\rbrace",tag:"mo",output:"}",rtag:"mi",atval:"1",ttype:STRETCHY},{input:"\\rangle",tag:"mo",output:"\u232A",rtag:"mi",atval:"1",ttype:STRETCHY},{input:"\\rfloor",tag:"mo",output:"\u230B",rtag:"mi",atval:"1",ttype:STRETCHY},{input:"\\rceil",tag:"mo",output:"\u2309",rtag:"mi",atval:"1",ttype:STRETCHY},{input:"|",tag:"mo",output:"\u2223",atval:"1",ttype:STRETCHY},{input:"\\|",tag:"mo",output:"\u2225",atval:"1",ttype:STRETCHY},{input:"\\vert",tag:"mo",output:"\u2223",atval:"1",ttype:STRETCHY},{input:"\\Vert",tag:"mo",output:"\u2225",atval:"1",ttype:STRETCHY},{input:"\\mid",tag:"mo",output:"\u2223",atval:"1",ttype:STRETCHY},{input:"\\parallel",tag:"mo",output:"\u2225",atval:"1",ttype:STRETCHY},{input:"/",tag:"mo",output:"/",atval:"1.01",ttype:STRETCHY},{input:"\\backslash",tag:"mo",output:"\u2216",atval:"1",ttype:STRETCHY},{input:"\\setminus",tag:"mo",output:"\\",ttype:CONST},{input:"\\!",tag:"mspace",atname:"width",atval:"-0.167em",ttype:SPACE},{input:"\\,",tag:"mspace",atname:"width",atval:"0.167em",ttype:SPACE},{input:"\\>",tag:"mspace",atname:"width",atval:"0.222em",ttype:SPACE},{input:"\\:",tag:"mspace",atname:"width",atval:"0.222em",ttype:SPACE},{input:"\\;",tag:"mspace",atname:"width",atval:"0.278em",ttype:SPACE},{input:"~",tag:"mspace",atname:"width",atval:"0.333em",ttype:SPACE},{input:"\\quad",tag:"mspace",atname:"width",atval:"1em",ttype:SPACE},{input:"\\qquad",tag:"mspace",atname:"width",atval:"2em",ttype:SPACE},{input:"\\prime",tag:"mo",output:"\u2032",ttype:CONST},{input:"'",tag:"mo",output:"\u02B9",ttype:CONST},{input:"''",tag:"mo",output:"\u02BA",ttype:CONST},{input:"'''",tag:"mo",output:"\u2034",ttype:CONST},{input:"''''",tag:"mo",output:"\u2057",ttype:CONST},{input:"\\ldots",tag:"mo",output:"\u2026",ttype:CONST},{input:"\\cdots",tag:"mo",output:"\u22EF",ttype:CONST},{input:"\\vdots",tag:"mo",output:"\u22EE",ttype:CONST},{input:"\\ddots",tag:"mo",output:"\u22F1",ttype:CONST},{input:"\\forall",tag:"mo",output:"\u2200",ttype:CONST},{input:"\\exists",tag:"mo",output:"\u2203",ttype:CONST},{input:"\\Re",tag:"mo",output:"\u211C",ttype:CONST},{input:"\\Im",tag:"mo",output:"\u2111",ttype:CONST},{input:"\\aleph",tag:"mo",output:"\u2135",ttype:CONST},{input:"\\hbar",tag:"mo",output:"\u210F",ttype:CONST},{input:"\\ell",tag:"mo",output:"\u2113",ttype:CONST},{input:"\\wp",tag:"mo",output:"\u2118",ttype:CONST},{input:"\\emptyset",tag:"mo",output:"\u2205",ttype:CONST},{input:"\\infty",tag:"mo",output:"\u221E",ttype:CONST},{input:"\\surd",tag:"mo",output:"\\sqrt{}",ttype:DEFINITION},{input:"\\partial",tag:"mo",output:"\u2202",ttype:CONST},{input:"\\nabla",tag:"mo",output:"\u2207",ttype:CONST},{input:"\\triangle",tag:"mo",output:"\u25B3",ttype:CONST},{input:"\\therefore",tag:"mo",output:"\u2234",ttype:CONST},{input:"\\angle",tag:"mo",output:"\u2220",ttype:CONST},{input:"\\diamond",tag:"mo",output:"\u22C4",ttype:CONST},{input:"\\Diamond",tag:"mo",output:"\u25C7",ttype:CONST},{input:"\\neg",tag:"mo",output:"\u00AC",ttype:CONST},{input:"\\lnot",tag:"mo",output:"\u00AC",ttype:CONST},{input:"\\bot",tag:"mo",output:"\u22A5",ttype:CONST},{input:"\\top",tag:"mo",output:"\u22A4",ttype:CONST},{input:"\\square",tag:"mo",output:"\u25AB",ttype:CONST},{input:"\\Box",tag:"mo",output:"\u25A1",ttype:CONST},{input:"\\wr",tag:"mo",output:"\u2240",ttype:CONST},{input:"\\arccos",tag:"mi",output:"arccos",ttype:UNARY,func:true},{input:"\\arcsin",tag:"mi",output:"arcsin",ttype:UNARY,func:true},{input:"\\arctan",tag:"mi",output:"arctan",ttype:UNARY,func:true},{input:"\\arg",tag:"mi",output:"arg",ttype:UNARY,func:true},{input:"\\cos",tag:"mi",output:"cos",ttype:UNARY,func:true},{input:"\\cosh",tag:"mi",output:"cosh",ttype:UNARY,func:true},{input:"\\cot",tag:"mi",output:"cot",ttype:UNARY,func:true},{input:"\\coth",tag:"mi",output:"coth",ttype:UNARY,func:true},{input:"\\csc",tag:"mi",output:"csc",ttype:UNARY,func:true},{input:"\\deg",tag:"mi",output:"deg",ttype:UNARY,func:true},{input:"\\det",tag:"mi",output:"det",ttype:UNARY,func:true},{input:"\\dim",tag:"mi",output:"dim",ttype:UNARY,func:true},{input:"\\exp",tag:"mi",output:"exp",ttype:UNARY,func:true},{input:"\\gcd",tag:"mi",output:"gcd",ttype:UNARY,func:true},{input:"\\hom",tag:"mi",output:"hom",ttype:UNARY,func:true},{input:"\\inf",tag:"mo",output:"inf",ttype:UNDEROVER},{input:"\\ker",tag:"mi",output:"ker",ttype:UNARY,func:true},{input:"\\lg",tag:"mi",output:"lg",ttype:UNARY,func:true},{input:"\\lim",tag:"mo",output:"lim",ttype:UNDEROVER},{input:"\\liminf",tag:"mo",output:"liminf",ttype:UNDEROVER},{input:"\\limsup",tag:"mo",output:"limsup",ttype:UNDEROVER},{input:"\\ln",tag:"mi",output:"ln",ttype:UNARY,func:true},{input:"\\log",tag:"mi",output:"log",ttype:UNARY,func:true},{input:"\\max",tag:"mo",output:"max",ttype:UNDEROVER},{input:"\\min",tag:"mo",output:"min",ttype:UNDEROVER},{input:"\\Pr",tag:"mi",output:"Pr",ttype:UNARY,func:true},{input:"\\sec",tag:"mi",output:"sec",ttype:UNARY,func:true},{input:"\\sin",tag:"mi",output:"sin",ttype:UNARY,func:true},{input:"\\sinh",tag:"mi",output:"sinh",ttype:UNARY,func:true},{input:"\\sup",tag:"mo",output:"sup",ttype:UNDEROVER},{input:"\\tan",tag:"mi",output:"tan",ttype:UNARY,func:true},{input:"\\tanh",tag:"mi",output:"tanh",ttype:UNARY,func:true},{input:"\\gets",tag:"mo",output:"\u2190",ttype:CONST},{input:"\\leftarrow",tag:"mo",output:"\u2190",ttype:CONST},{input:"\\to",tag:"mo",output:"\u2192",ttype:CONST},{input:"\\rightarrow",tag:"mo",output:"\u2192",ttype:CONST},{input:"\\leftrightarrow",tag:"mo",output:"\u2194",ttype:CONST},{input:"\\uparrow",tag:"mo",output:"\u2191",ttype:CONST},{input:"\\downarrow",tag:"mo",output:"\u2193",ttype:CONST},{input:"\\updownarrow",tag:"mo",output:"\u2195",ttype:CONST},{input:"\\Leftarrow",tag:"mo",output:"\u21D0",ttype:CONST},{input:"\\Rightarrow",tag:"mo",output:"\u21D2",ttype:CONST},{input:"\\Leftrightarrow",tag:"mo",output:"\u21D4",ttype:CONST},{input:"\\iff",tag:"mo",output:"~\\Longleftrightarrow~",ttype:DEFINITION},{input:"\\Uparrow",tag:"mo",output:"\u21D1",ttype:CONST},{input:"\\Downarrow",tag:"mo",output:"\u21D3",ttype:CONST},{input:"\\Updownarrow",tag:"mo",output:"\u21D5",ttype:CONST},{input:"\\mapsto",tag:"mo",output:"\u21A6",ttype:CONST},{input:"\\longleftarrow",tag:"mo",output:"\u2190",ttype:LONG},{input:"\\longrightarrow",tag:"mo",output:"\u2192",ttype:LONG},{input:"\\longleftrightarrow",tag:"mo",output:"\u2194",ttype:LONG},{input:"\\Longleftarrow",tag:"mo",output:"\u21D0",ttype:LONG},{input:"\\Longrightarrow",tag:"mo",output:"\u21D2",ttype:LONG},{input:"\\implies",tag:"mo",output:"\u21D2",ttype:LONG},{input:"\\Longleftrightarrow",tag:"mo",output:"\u21D4",ttype:LONG},{input:"\\longmapsto",tag:"mo",output:"\u21A6",ttype:CONST},{input:"\\sqrt",tag:"msqrt",output:"sqrt",ttype:UNARY},{input:"\\root",tag:"mroot",output:"root",ttype:BINARY},{input:"\\frac",tag:"mfrac",output:"/",ttype:BINARY},{input:"\\stackrel",tag:"mover",output:"stackrel",ttype:BINARY},{input:"\\atop",tag:"mfrac",output:"",ttype:INFIX},{input:"\\choose",tag:"mfrac",output:"",ttype:INFIX},{input:"_",tag:"msub",output:"_",ttype:INFIX},{input:"^",tag:"msup",output:"^",ttype:INFIX},{input:"\\mathrm",tag:"mtext",output:"text",ttype:TEXT},{input:"\\mbox",tag:"mtext",output:"mbox",ttype:TEXT},{input:"\\acute",tag:"mover",output:"\u00B4",ttype:UNARY,acc:true},{input:"\\grave",tag:"mover",output:"\u0060",ttype:UNARY,acc:true},{input:"\\breve",tag:"mover",output:"\u02D8",ttype:UNARY,acc:true},{input:"\\check",tag:"mover",output:"\u02C7",ttype:UNARY,acc:true},{input:"\\dot",tag:"mover",output:".",ttype:UNARY,acc:true},{input:"\\ddot",tag:"mover",output:"..",ttype:UNARY,acc:true},{input:"\\mathring",tag:"mover",output:"\u00B0",ttype:UNARY,acc:true},{input:"\\vec",tag:"mover",output:"\u20D7",ttype:UNARY,acc:true},{input:"\\overrightarrow",tag:"mover",output:"\u20D7",ttype:UNARY,acc:true},{input:"\\overleftarrow",tag:"mover",output:"\u20D6",ttype:UNARY,acc:true},{input:"\\hat",tag:"mover",output:"\u005E",ttype:UNARY,acc:true},{input:"\\widehat",tag:"mover",output:"\u0302",ttype:UNARY,acc:true},{input:"\\tilde",tag:"mover",output:"~",ttype:UNARY,acc:true},{input:"\\widetilde",tag:"mover",output:"\u02DC",ttype:UNARY,acc:true},{input:"\\bar",tag:"mover",output:"\u203E",ttype:UNARY,acc:true},{input:"\\overbrace",tag:"mover",output:"\u23B4",ttype:UNARY,acc:true},{input:"\\overline",tag:"mover",output:"\u00AF",ttype:UNARY,acc:true},{input:"\\underbrace",tag:"munder",output:"\u23B5",ttype:UNARY,acc:true},{input:"\\underline",tag:"munder",output:"\u00AF",ttype:UNARY,acc:true},{input:"\\displaystyle",tag:"mstyle",atname:"displaystyle",atval:"true",ttype:UNARY},{input:"\\textstyle",tag:"mstyle",atname:"displaystyle",atval:"false",ttype:UNARY},{input:"\\scriptstyle",tag:"mstyle",atname:"scriptlevel",atval:"1",ttype:UNARY},{input:"\\scriptscriptstyle",tag:"mstyle",atname:"scriptlevel",atval:"2",ttype:UNARY},{input:"\\textrm",tag:"mstyle",output:"\\mathrm",ttype:DEFINITION},{input:"\\mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",ttype:UNARY},{input:"\\textbf",tag:"mstyle",atname:"mathvariant",atval:"bold",ttype:UNARY},{input:"\\mathit",tag:"mstyle",atname:"mathvariant",atval:"italic",ttype:UNARY},{input:"\\textit",tag:"mstyle",atname:"mathvariant",atval:"italic",ttype:UNARY},{input:"\\mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",ttype:UNARY},{input:"\\texttt",tag:"mstyle",atname:"mathvariant",atval:"monospace",ttype:UNARY},{input:"\\mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",ttype:UNARY},{input:"\\mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",ttype:UNARY,codes:AMbbb},{input:"\\mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",ttype:UNARY,codes:AMcal},{input:"\\mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",ttype:UNARY,codes:AMfrk}];var LMnames=[];function LMremoveCharsAndBlanks(c,d){var a;a=c.slice(d);for(var b=0;b<a.length&&a.charCodeAt(b)<=32;b=b+1){}return a.slice(b)}function LMgetSymbol(h){var a=0;var b=0;var d;var m;var l;var f="";var g=true;for(var c=1;c<=h.length&&g;c++){m=h.slice(0,c);b=a;a=position(LMnames,m,b);if(a<LMnames.length&&h.slice(0,LMnames[a].length)==LMnames[a]){f=LMnames[a];d=a;c=f.length}g=a<LMnames.length&&h.slice(0,LMnames[a].length)>=LMnames[a]}LMpreviousSymbol=LMcurrentSymbol;if(f!=""){LMcurrentSymbol=LMsymbols[d].ttype;return LMsymbols[d]}LMcurrentSymbol=CONST;a=1;m=h.slice(0,1);if("0"<=m&&m<="9"){l="mn"}else{l=(("A">m||m>"Z")&&("a">m||m>"z")?"mo":"mi")}return{input:m,tag:l,output:m,ttype:CONST}}var LMpreviousSymbol,LMcurrentSymbol;function LMparseSexpr(n){var p,o,k,a,s,m,l=document.createDocumentFragment();n=LMremoveCharsAndBlanks(n,0);p=LMgetSymbol(n);if(p==null||p.ttype==RIGHTBRACKET){return[null,n,null]}if(p.ttype==DEFINITION){n=p.output+LMremoveCharsAndBlanks(n,p.input.length);p=LMgetSymbol(n);if(p==null||p.ttype==RIGHTBRACKET){return[null,n,null]}}n=LMremoveCharsAndBlanks(n,p.input.length);switch(p.ttype){case SPACE:o=createMmlNode(p.tag);o.setAttribute(p.atname,p.atval);return[o,n,p.tag];case UNDEROVER:if(isIE){if(p.input.substr(0,4)=="\\big"){n="\\"+p.input.substr(4)+n;p=LMgetSymbol(n);p.ttype=UNDEROVER;n=LMremoveCharsAndBlanks(n,p.input.length)}}return[createMmlNode(p.tag,document.createTextNode(p.output)),n,p.tag];case CONST:var g=p.output;if(isIE){if(p.input=="'"){g="\u2032"}else{if(p.input=="''"){g="\u2033"}else{if(p.input=="'''"){g="\u2033\u2032"}else{if(p.input=="''''"){g="\u2033\u2033"}else{if(p.input=="\\square"){g="\u25A1"}else{if(p.input.substr(0,5)=="\\frac"){var c=p.input.substr(6,1);if(c=="5"||c=="6"){n=p.input.replace(/\\frac/,"\\frac ")+n;return[o,n,p.tag]}}}}}}}}o=createMmlNode(p.tag,document.createTextNode(g));return[o,n,p.tag];case LONG:o=createMmlNode(p.tag,document.createTextNode(p.output));o.setAttribute("minsize","1.5");o.setAttribute("maxsize","1.5");o=createMmlNode("mover",o);o.appendChild(createMmlNode("mspace"));return[o,n,p.tag];case STRETCHY:if(isIE&&p.input=="\\backslash"){p.output="\\"}o=createMmlNode(p.tag,document.createTextNode(p.output));if(p.input=="|"||p.input=="\\vert"||p.input=="\\|"||p.input=="\\Vert"){o.setAttribute("lspace","0em");o.setAttribute("rspace","0em")}o.setAttribute("maxsize",p.atval);if(p.rtag!=null){return[o,n,p.rtag]}else{return[o,n,p.tag]}case BIG:var f=p.atval;if(isIE){f=p.ieval}p=LMgetSymbol(n);if(p==null){return[null,n,null]}n=LMremoveCharsAndBlanks(n,p.input.length);o=createMmlNode(p.tag,document.createTextNode(p.output));if(isIE){var v=createMmlNode("mspace");v.setAttribute("height",f+"ex");o=createMmlNode("mrow",o);o.appendChild(v)}else{o.setAttribute("minsize",f);o.setAttribute("maxsize",f)}return[o,n,p.tag];case LEFTBRACKET:if(p.input=="\\left"){p=LMgetSymbol(n);if(p!=null){if(p.input=="."){p.invisible=true}n=LMremoveCharsAndBlanks(n,p.input.length)}}k=LMparseExpr(n,true,false);if(p==null||(typeof p.invisible=="boolean"&&p.invisible)){o=createMmlNode("mrow",k[0])}else{o=createMmlNode("mo",document.createTextNode(p.output));o=createMmlNode("mrow",o);o.appendChild(k[0])}return[o,k[1],k[2]];case MATRIX:if(p.input=="\\begin{array}"){var r="";p=LMgetSymbol(n);n=LMremoveCharsAndBlanks(n,0);if(p==null){r="l"}else{n=LMremoveCharsAndBlanks(n,p.input.length);if(p.input!="{"){r="l"}else{do{p=LMgetSymbol(n);if(p!=null){n=LMremoveCharsAndBlanks(n,p.input.length);if(p.input!="}"){r=r+p.input}}}while(p!=null&&p.input!=""&&p.input!="}")}}k=LMparseExpr("{"+n,true,true);o=createMmlNode("mtable",k[0]);r=r.replace(/l/g,"left ");r=r.replace(/r/g,"right ");r=r.replace(/c/g,"center ");o.setAttribute("columnalign",r);o.setAttribute("displaystyle","false");if(isIE){return[o,k[1],null]}var d=createMmlNode("mspace");d.setAttribute("width","0.167em");var t=createMmlNode("mspace");t.setAttribute("width","0.167em");var b=createMmlNode("mrow",d);b.appendChild(o);b.appendChild(t);return[b,k[1],null]}else{k=LMparseExpr("{"+n,true,true);o=createMmlNode("mtable",k[0]);if(isIE){o.setAttribute("columnspacing","0.25em")}else{o.setAttribute("columnspacing","0.167em")}o.setAttribute("columnalign","right center left");o.setAttribute("displaystyle","true");o=createMmlNode("mrow",o);return[o,k[1],null]}case TEXT:if(n.charAt(0)=="{"){s=n.indexOf("}")}else{s=0}if(s==-1){s=n.length}m=n.slice(1,s);if(m.charAt(0)==" "){o=createMmlNode("mspace");o.setAttribute("width","0.33em");l.appendChild(o)}l.appendChild(createMmlNode(p.tag,document.createTextNode(m)));if(m.charAt(m.length-1)==" "){o=createMmlNode("mspace");o.setAttribute("width","0.33em");l.appendChild(o)}n=LMremoveCharsAndBlanks(n,s+1);return[createMmlNode("mrow",l),n,null];case UNARY:k=LMparseSexpr(n);if(k[0]==null){return[createMmlNode(p.tag,document.createTextNode(p.output)),n]}if(typeof p.func=="boolean"&&p.func){m=n.charAt(0);if(m=="^"||m=="_"||m==","){return[createMmlNode(p.tag,document.createTextNode(p.output)),n,p.tag]}else{o=createMmlNode("mrow",createMmlNode(p.tag,document.createTextNode(p.output)));if(isIE){var v=createMmlNode("mspace");v.setAttribute("width","0.167em");o.appendChild(v)}o.appendChild(k[0]);return[o,k[1],p.tag]}}if(p.input=="\\sqrt"){if(isIE){var v=createMmlNode("mspace");v.setAttribute("height","1.2ex");v.setAttribute("width","0em");o=createMmlNode(p.tag,k[0]);o.appendChild(v);return[o,k[1],p.tag]}else{return[createMmlNode(p.tag,k[0]),k[1],p.tag]}}else{if(typeof p.acc=="boolean"&&p.acc){o=createMmlNode(p.tag,k[0]);var g=p.output;if(isIE){if(p.input=="\\hat"){g="\u0302"}else{if(p.input=="\\widehat"){g="\u005E"}else{if(p.input=="\\bar"){g="\u00AF"}else{if(p.input=="\\grave"){g="\u0300"}else{if(p.input=="\\tilde"){g="\u0303"}}}}}}var b=createMmlNode("mo",document.createTextNode(g));if(p.input=="\\vec"||p.input=="\\check"){b.setAttribute("maxsize","1.2")}if(isIE&&p.input=="\\bar"){b.setAttribute("maxsize","0.5")}if(p.input=="\\underbrace"||p.input=="\\underline"){b.setAttribute("accentunder","true")}else{b.setAttribute("accent","true")}o.appendChild(b);if(p.input=="\\overbrace"||p.input=="\\underbrace"){o.ttype=UNDEROVER}return[o,k[1],p.tag]}else{if(!isIE&&typeof p.codes!="undefined"){for(s=0;s<k[0].childNodes.length;s++){if(k[0].childNodes[s].nodeName=="mi"||k[0].nodeName=="mi"){m=(k[0].nodeName=="mi"?k[0].firstChild.nodeValue:k[0].childNodes[s].firstChild.nodeValue);var h=[];for(var q=0;q<m.length;q++){if(m.charCodeAt(q)>64&&m.charCodeAt(q)<91){h=h+String.fromCharCode(p.codes[m.charCodeAt(q)-65])}else{h=h+m.charAt(q)}}if(k[0].nodeName=="mi"){k[0]=createMmlNode("mo").appendChild(document.createTextNode(h))}else{k[0].replaceChild(createMmlNode("mo").appendChild(document.createTextNode(h)),k[0].childNodes[s])}}}}o=createMmlNode(p.tag,k[0]);o.setAttribute(p.atname,p.atval);if(p.input=="\\scriptstyle"||p.input=="\\scriptscriptstyle"){o.setAttribute("displaystyle","false")}return[o,k[1],p.tag]}}case BINARY:k=LMparseSexpr(n);if(k[0]==null){return[createMmlNode("mo",document.createTextNode(p.input)),n,null]}a=LMparseSexpr(k[1]);if(a[0]==null){return[createMmlNode("mo",document.createTextNode(p.input)),n,null]}if(p.input=="\\root"||p.input=="\\stackrel"){l.appendChild(a[0])}l.appendChild(k[0]);if(p.input=="\\frac"){l.appendChild(a[0])}return[createMmlNode(p.tag,l),a[1],p.tag];case INFIX:n=LMremoveCharsAndBlanks(n,p.input.length);return[createMmlNode("mo",document.createTextNode(p.output)),n,p.tag];default:return[createMmlNode(p.tag,document.createTextNode(p.output)),n,p.tag]}}function LMparseIexpr(g){var f,c,b,d,j,k,h;g=LMremoveCharsAndBlanks(g,0);c=LMgetSymbol(g);j=LMparseSexpr(g);d=j[0];g=j[1];k=j[2];f=LMgetSymbol(g);if(f.ttype==INFIX){g=LMremoveCharsAndBlanks(g,f.input.length);j=LMparseSexpr(g);if(j[0]==null){j[0]=createMmlNode("mo",document.createTextNode("\u25A1"))}g=j[1];k=j[2];if(f.input=="_"||f.input=="^"){b=LMgetSymbol(g);k=null;h=((c.ttype==UNDEROVER)||(d.ttype==UNDEROVER));if(f.input=="_"&&b.input=="^"){g=LMremoveCharsAndBlanks(g,b.input.length);var a=LMparseSexpr(g);g=a[1];k=a[2];d=createMmlNode((h?"munderover":"msubsup"),d);d.appendChild(j[0]);d.appendChild(a[0])}else{if(f.input=="_"){d=createMmlNode((h?"munder":"msub"),d);d.appendChild(j[0])}else{d=createMmlNode((h?"mover":"msup"),d);d.appendChild(j[0])}}d=createMmlNode("mrow",d)}else{d=createMmlNode(f.tag,d);if(f.input=="\\atop"||f.input=="\\choose"){d.setAttribute("linethickness","0ex")}d.appendChild(j[0]);if(f.input=="\\choose"){d=createMmlNode("mfenced",d)}}}return[d,g,k]}function LMparseExpr(l,h,s){var r,o,d,v,z,f=document.createDocumentFragment();do{l=LMremoveCharsAndBlanks(l,0);d=LMparseIexpr(l);o=d[0];l=d[1];z=d[2];r=LMgetSymbol(l);if(o!=undefined){if((z=="mn"||z=="mi")&&r!=null&&typeof r.func=="boolean"&&r.func){var y=createMmlNode("mspace");y.setAttribute("width","0.167em");o=createMmlNode("mrow",o);o.appendChild(y)}f.appendChild(o)}}while((r.ttype!=RIGHTBRACKET)&&r!=null&&r.output!="");z=null;if(r.ttype==RIGHTBRACKET){if(r.input=="\\right"){l=LMremoveCharsAndBlanks(l,r.input.length);r=LMgetSymbol(l);if(r!=null&&r.input=="."){r.invisible=true}if(r!=null){z=r.rtag}}if(r!=null){l=LMremoveCharsAndBlanks(l,r.input.length)}var w=f.childNodes.length;if(s&&w>0&&f.childNodes[w-1].nodeName=="mrow"&&w>1&&f.childNodes[w-2].nodeName=="mo"&&f.childNodes[w-2].firstChild.nodeValue=="&"){var b=[];var p=f.childNodes.length;for(v=0;s&&v<p;v=v+2){b[v]=[];o=f.childNodes[v];for(var t=0;t<o.childNodes.length;t++){if(o.childNodes[t].firstChild.nodeValue=="&"){b[v][b[v].length]=t}}}var c,a,g,q,x=document.createDocumentFragment();for(v=0;v<p;v=v+2){c=document.createDocumentFragment();a=document.createDocumentFragment();o=f.firstChild;g=o.childNodes.length;q=0;for(t=0;t<g;t++){if(typeof b[v][q]!="undefined"&&t==b[v][q]){o.removeChild(o.firstChild);c.appendChild(createMmlNode("mtd",a));q++}else{a.appendChild(o.firstChild)}}c.appendChild(createMmlNode("mtd",a));if(f.childNodes.length>2){f.removeChild(f.firstChild);f.removeChild(f.firstChild)}x.appendChild(createMmlNode("mtr",c))}return[x,l]}if(typeof r.invisible!="boolean"||!r.invisible){o=createMmlNode("mo",document.createTextNode(r.output));f.appendChild(o)}}return[f,l,z]}var tcnt=0,dcnt=0;function simpleLaTeXformatting(a){a=a.replace(/\$\$((.|\n)*?)\$\$/g,'<p align="center">$\\displaystyle{$1}$</p>');a=a.replace(/\\begin{(theorem|lemma|proposition|corollary)}((.|\n)*?)\\end{\1}/g,function(d,c,b){tcnt++;return"<b>"+c.charAt(0).toUpperCase()+c.slice(1)+" "+tcnt+".</b> <i>"+b.replace(/^\s*<\/?\w+\/?>|\s*<\/?\w+\/?>$/g,"")+"</i>"});a=a.replace(/\\begin{(definition|example|remark|problem|exercise|conjecture|solution)}((.|\n)*?)\\end{\1}/g,function(d,c,b){dcnt++;return"<b>"+c.charAt(0).toUpperCase()+c.slice(1)+" "+dcnt+".</b> "+b.replace(/^\s*<\/?\w+\/?>|\s*<\/?\w+\/?>$/g,"")});a=a.replace(/\\begin{proof}((.|\n)*?)\\end{proof}/g,function(c,b){return"<i>Proof:</i> "+b.replace(/^\s*<\/?\w+\/?>|\s*<\/?\w+\/?>$/g,"")+" &#x25A1;"});a=a.replace(/\\emph{(.*?)}/g,"<em>$1</em>");a=a.replace(/\\textbf{(.*?)}/g,"<b>$1</b>");a=a.replace(/\\cite{(.*?)}/g,"[$1]");a=a.replace(/\\chapter{(.*?)}/g,"<h2>$1</h2>");a=a.replace(/\\section{(.*?)}(\s*<\/?(br|p)\s?\/?>)?/g,"<h3>$1</h3>");a=a.replace(/\\subsection{((.|\n)*?)}/g,"<h4>$1</h4>");a=a.replace(/\\begin{itemize}(\s*<\/?(br|p)\s?\/?>)?/g,"<ul>");a=a.replace(/\\item\s((.|\n)*?)(?=(\\item|\\end))/g,"<li>$1</li>");a=a.replace(/\\end{itemize}(\s*<\/?(br|p)\s?\/?>)?/g,"</ul>");a=a.replace(/\\begin{enumerate}(\s*<\/?(br|p)\s?\/?>)?/g,"<ol>");a=a.replace(/\\end{enumerate}(\s*<\/?(br|p)\s?\/?>)?/g,"</ol>");a=a.replace(/\\item\[(.*?)]{(.*?)}/g,"<dt>$1</dt><dd>$2</dd>");a=a.replace(/\\begin{description}/g,"<dl>");a=a.replace(/\\end{description}/g,"</dl>");a=a.replace(/\\newline\b/g,"<br/>");a=a.replace(/\\newpage\b/g,'<br style="page-break-after:always;">');a=a.replace(/\\par\b/g,"<p>&nbsp;</p>");a=a.replace(/\\bigskip/g,'<p style="margin-bottom:0.5in">&nbsp;</p>');a=a.replace(/\\medskip/g,'<p style="margin-bottom:0.3in">&nbsp;</p>');a=a.replace(/\\smallskip/g,'<p style="margin-bottom:0.15in">&nbsp;</p>');a=a.replace(/\\begin{center}((.|\n)*?)\\end{center}/g,"<center>$1</center>");return a}function ASCIIandgraphformatting(a){a=a.replace(/<sup>(.*?)<\/sup>(\s|(\S))/gi,"^{$1} $3");a=a.replace(/(Proof:)/g,"<i>$1</i>");a=a.replace(/QED/g,"&nbsp; &nbsp; &#x25A1;");a=a.replace(/(\\?end{?a?math}?)/ig,"<span></span>$1");a=a.replace(/(\bamath\b|\\begin{a?math})/ig,"<span></span>$1");a=a.replace(/([>\n])(Theorem|Lemma|Proposition|Corollary|Definition|Example|Remark|Problem|Exercise|Conjecture|Solution)(:|\W\W?(\w|\s|-|\.)*?\W?:)/g,"$1<b>$2$3</b>");a=a.replace(/<embed\s+class\s?=\s?"?ASCIIsvg"?/gi,'<embed class="ASCIIsvg" src="'+dsvglocation+'d.svg" wmode="transparent"');a=a.replace(/(?:\\begin{a?graph}|\bagraph|\(:graph\s)((.|\n)*?)(?:\\end{a?graph}|enda?graph|:\))/g,function(c,b){return'<table><tr><td><div class="ASCIIsvg"><embed class="ASCIIsvg" src="'+dsvglocation+'d.svg" wmode="transparent" script=\''+b.replace(/<\/?(br|p|pre)\s?\/?>/gi,"\n")+"'/></div></td></tr></table>"});a=a.replace(/insertASCIIMathCalculator/g,'<div class="ASCIIMathCalculator"></div>');return a}function LMprocessNode(f){var d,a;try{a=f.innerHTML}catch(b){}var c=/amath\b|graph/i.test(a);if((a==null||a.indexOf("$ ")!=-1||a.indexOf("$<")!=-1||a.indexOf("\\begin")!=-1||c||a.slice(-1)=="$"||a.indexOf("$\n")!=-1)&&!/edit-content|HTMLArea|wikiedit|wpTextbox1/.test(a)){if(!avoidinnerHTML&&translateLaTeXformatting){a=simpleLaTeXformatting(a)}if(a!=null&&c&&!avoidinnerHTML){a=ASCIIandgraphformatting(a)}a=a.replace(/%7E/g,"~");if(!avoidinnerHTML){f.innerHTML=a}processNodeR(f,false,true)}}var checkIfSVGavailable=true;var notifyIfNoSVG=true;var alertIfNoSVG=false;var noSVG=false;var defaultwidth=300;defaultheight=200;var defaultxmin=-5.5;defaultxmax=5.5;var defaultborder=0;border=defaultborder;var defaultstrokewidth="1";var defaultstroke="blue";var defaultstrokeopacity=1;var defaultstrokedasharray=null;var defaultfill="none";var defaultfillopacity=1;var defaultfontstyle="normal";var defaultfontfamily="times";var defaultfontsize="16";var defaultfontweight="normal";var defaultfontstroke="none";var defaultfontfill="none";var defaultmarker="none";var defaultendpoints="";var showcoordinates=true;var markerstrokewidth="1";var markerstroke="black";var markerfill="yellow";var markersize=4;var arrowfill=stroke;var dotradius=4;var ticklength=4;var axesstroke="black";var gridstroke="grey";var backgroundstyle="fill-opacity:1; fill:white";var singlelettersitalic=true;var picturepos=null;var xunitlength;var yunitlength;var origin=[0,0];var above="above";var below="below";var left="left";var right="right";var aboveleft="aboveleft";var aboveright="aboveright";var belowleft="belowleft";var belowright="belowright";var xmin,xmax,ymin,ymax,xscl,yscl,xgrid,ygrid,xtick,ytick,initialized;var strokewidth,strokedasharray,stroke,fill,strokeopacity,fillopacity;var fontstyle,fontfamily,fontsize,fontweight,fontstroke,fontfill;var marker,endpoints,dynamic={};var picture,svgpicture,doc,width,height;var isIE=document.createElementNS==null;var cpi="\u03C0",ctheta="\u03B8";var log=function(a){return ln(a)/ln(10)};var pi=Math.PI,e=Math.E,ln=Math.log,sqrt=Math.sqrt;var floor=Math.floor,ceil=Math.ceil,abs=Math.abs;var sin=Math.sin,cos=Math.cos,tan=Math.tan;var arcsin=Math.asin,arccos=Math.acos,arctan=Math.atan;var sec=function(a){return 1/Math.cos(a)};var csc=function(a){return 1/Math.sin(a)};var cot=function(a){return 1/Math.tan(a)};var arcsec=function(a){return arccos(1/a)};var arccsc=function(a){return arcsin(1/a)};var arccot=function(a){return arctan(1/a)};var sinh=function(a){return(Math.exp(a)-Math.exp(-a))/2};var cosh=function(a){return(Math.exp(a)+Math.exp(-a))/2};var tanh=function(a){return(Math.exp(a)-Math.exp(-a))/(Math.exp(a)+Math.exp(-a))};var sech=function(a){return 1/cosh(a)};var csch=function(a){return 1/sinh(a)};var coth=function(a){return 1/tanh(a)};var arcsinh=function(a){return ln(a+Math.sqrt(a*a+1))};var arccosh=function(a){return ln(a+Math.sqrt(a*a-1))};var arctanh=function(a){return ln((1+a)/(1-a))/2};var sech=function(a){return 1/cosh(a)};var csch=function(a){return 1/sinh(a)};var coth=function(a){return 1/tanh(a)};var arcsech=function(a){return arccosh(1/a)};var arccsch=function(a){return arcsinh(1/a)};var arccoth=function(a){return arctanh(1/a)};var sign=function(a){return(a==0?0:(a<0?-1:1))};function factorial(a,c){if(c==null){c=1}if(Math.abs(a-Math.round(a*1000000)/1000000)<1e-15){a=Math.round(a*1000000)/1000000}if(a-Math.floor(a)!=0){return NaN}for(var b=a-c;b>0;b-=c){a*=b}return(a<0?NaN:(a==0?1:a))}function C(a,b){var d=1;for(var c=0;c<b;c++){d*=(a-c)/(b-c)}return d}function chop(a,b){if(b==null){b=0}return Math.floor(a*Math.pow(10,b))/Math.pow(10,b)}function ran(d,c,f){if(f==null){f=0}return chop((c+Math.pow(10,-f)-d)*Math.random()+d,f)}function myCreateElementSVG(a){if(isIE){return doc.createElement(a)}else{return doc.createElementNS("http://www.w3.org/2000/svg",a)}}function getElementsByClass(a,c,d){var f=new Array(0);var g=a.getElementsByTagName(c);for(var b=0;b<g.length;b++){if(g[b].className.slice(0,d.length)==d){f[f.length]=g[b]}}return f}function showobj(c){var a="",b;for(b in c){a+=(c.getAttribute(b)==null?"":" "+b+":"+c.getAttribute(b))}return a}function findPos(a){var b=curtop=0;if(a.offsetParent){b=a.offsetLeft;curtop=a.offsetTop;while(a=a.offsetParent){b+=a.offsetLeft;curtop+=a.offsetTop}}return[b,curtop]}function checkSVG(){if(navigator.appName.slice(0,8)=="Netscape"){if(window.SVGElement){noSVG=null}else{noSVG=true}}else{if(navigator.appName.slice(0,9)=="Microsoft"){try{var oSVG=eval("new ActiveXObject('Adobe.SVGCtl.3');");noSVG=null}catch(e){noSVG=true}}else{if(navigator.appName.slice(0,5)=="Opera"){noSVG=null}else{noSVG=true}}}if(noSVG&&notifyIfNoSVG){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(a,c){var b=document.getElementById(c);if(b!=null){if(b.childNodes.length!=0){b.childNodes[0].nodeValue=a}else{b.appendChild(document.createTextNode(a))}}}function getX(a){var b=a.target.parentNode;pos=findPos(b.parentNode);return(a.clientX+(isIE?0:window.pageXOffset)-pos[0]-b.getAttribute("ox"))/parseFloat(b.getAttribute("xunitlength"))}function getY(a){var b=a.target.parentNode;pos=findPos(b.parentNode);return(b.getAttribute("height")-b.getAttribute("oy")-(a.clientY+(isIE?0:window.pageYOffset)-pos[1]))/parseFloat(b.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"){errstr=err.name+" "+err.message+" "+err.number+" "+err.description}else{errstr=err}alert(errstr+"\n"+src)}}}var lastSlot=0;function drawPictures(){var a,c,f,g,d,n,l,m,j,h,o;var b=document.getElementsByTagName("body")[0];pictures=getElementsByClass(b,"embed","ASCIIsvg");var k=pictures.length;if(k==0){return}for(l=lastSlot;l<k+lastSlot;l++){width=null;height=null;xmin=null;xmax=null;ymin=null;ymax=null;xscl=null;xgrid=null;yscl=null;ygrid=null;initialized=false;picture=pictures[l-lastSlot];a=picture.getAttribute("script");if(a==null){a=""}if(!/axes\b|initPicture/.test(a)){var h=0;while(/((yscl|ymax|ymin|xscl|xmax|xmin|\bwidth|\bheight)\s*=\s*-?\d*(\d\.|\.\d|\d)\d*\s*;?)/.test(a.slice(h))){h++}a=(h==0?"axes(); "+a:a.slice(0,h)+a.slice(h).replace(/((scl|max|min|idth|eight)\s*=\s*-?\d*(\d\.|\.\d|\d)\d*\s*;?)/,"$1\naxes();"))}n=picture.getAttribute("height");if(isIE){picture.setAttribute("wmode","transparent")}if(document.getElementById("picture"+(l+1)+"mml")==null){picture.parentNode.style.position="relative";d=createElementXHTML("div");d.style.position="absolute";d.style.top="0px";d.style.left="0px";d.setAttribute("id","picture"+(l+1)+"mml");picture.parentNode.insertBefore(d,picture.nextSibling)}if(n==null){n=""}if(n==""||a==""){if(document.getElementById("picture"+(l+1)+"input")==null){d=createElementXHTML("textarea");j=a.split("\n");m=0;for(h=0;h<j.length;h++){m=Math.max(m,j[h].length)}d.setAttribute("rows",Math.min(10,j.length)+1);d.setAttribute("cols",Math.max(Math.min(60,m),20)+5);if(isIE){a=a.replace(/([^\r])\n/g,"$1\r")}d.appendChild(document.createTextNode(a));if(a.indexOf("showcode()")==-1){d.style.display="none"}d.setAttribute("id","picture"+(l+1)+"input");picture.parentNode.insertBefore(d,picture.nextSibling);picture.parentNode.insertBefore(createElementXHTML("br"),d);o=createElementXHTML("button");o.setAttribute("id","picture"+(l+1)+"button");if(isIE){o.onclick=function(){updatePicture(this)}}else{o.setAttribute("onclick","updatePicture(this)")}o.appendChild(document.createTextNode("Update"));if(a.indexOf("showcode()")==-1){o.style.display="none"}picture.parentNode.insertBefore(o,d);picture.parentNode.insertBefore(createElementXHTML("br"),d)}else{a=document.getElementById("picture"+(l+1)+"input").value}}c=picture.getAttribute("id");f=picture.getAttribute("src");if(c==null||c==""){c="picture"+(l+1);picture.setAttribute("id",c)}translateandeval(a)}lastSlot+=k}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(b){if(b==undefined){return}var a=b;if(typeof a!="string"){a=b.target.parentNode.getAttribute("name")}picture=document.getElementById(a);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}xunitlength=parseFloat(svgpicture.getAttribute("xunitlength"));yunitlength=parseFloat(svgpicture.getAttribute("yunitlength"));xmin=parseFloat(svgpicture.getAttribute("xmin"));xmax=parseFloat(svgpicture.getAttribute("xmax"));ymin=parseFloat(svgpicture.getAttribute("ymin"));ymax=parseFloat(svgpicture.getAttribute("ymax"));origin=[svgpicture.getAttribute("ox")-0,svgpicture.getAttribute("oy")-0]}function updatePicture(d){var a,f,g,c,b;if(typeof d=="object"){g=d.id.slice(0,-6)}else{g=(typeof d=="string"?d:"picture"+(d+1))}f=document.getElementById(g+"input").value;xmin=null;xmax=null;ymin=null;ymax=null;xscl=null;xgrid=null;yscl=null;ygrid=null;initialized=false;picture=document.getElementById(g);translateandeval(f)}function changepicturesize(a,d){var f=a.target;var c=f.parentNode.getAttribute("name");var b=document.getElementById(c);var g=document.getElementById(c+"input").value;if(!/height/.test(g)){g="height=0; "+g}if(!/width/.test(g)){g="width=0; "+g}g=g.replace(/width\s*=\s*\d+/,"width="+(d*(b.getAttribute("width")-0)));g=g.replace(/height\s*=\s*\d+/,"height="+(d*(b.getAttribute("height")-0)));document.getElementById(c+"input").value=g;updatePicture(c)}function zoom(k,j){switchTo(k);var g=k.target;var c=g.parentNode.getAttribute("name");var h=document.getElementById(c);var b=document.getElementById(c+"input").value;var d=(xmax-xmin)/2;var l=(ymax-ymin)/2;var f=getX(k),a=getY(k);if(!/ymax/.test(b)){b="ymax=0; "+b}if(!/ymin/.test(b)){b="ymin=0; "+b}if(!/xmax/.test(b)){b="xmax=0; "+b}if(!/xmin/.test(b)){b="xmin=0; "+b}b=b.replace(/xmin\s*=\s*[-\d.e]+/,"xmin="+(f-j*d));b=b.replace(/xmax\s*=\s*[-\d.e]+/,"xmax="+(f+j*d));b=b.replace(/ymin\s*=\s*[-\d.e]+/,"ymin="+(a-j*l));b=b.replace(/ymax\s*=\s*[-\d.e]+/,"ymax="+(a+j*l));document.getElementById(c+"input").value=b;updatePicture(c)}var sinceFirstClick=0;var dblClkTimer;function timer(){if(sinceFirstClick<60){sinceFirstClick++;setTimeout("timer()",10)}else{clearTimeout(dblClkTimer);dblClkTimer=""}}function mClick(a){if(sinceFirstClick!=0){if(sinceFirstClick<=40){if(a.shiftKey){if(a.altKey){changepicturesize(a,2)}else{zoom(a,0.5)}}else{if(a.altKey){zoom(a,2)}else{showHideCode(a)}}clearTimeout(dblClkTimer);dblClkTimer=""}else{clearTimeout(dblClkTimer);sinceFirstClick=0;dblClkTimer=setTimeout("timer()",10)}}else{sinceFirstClick=0;dblClkTimer=setTimeout("timer()",10)}}function showHideCode(a){var d=a.target;var b=d.parentNode.getAttribute("name");var c=document.getElementById(b+"input");c.style.display=(c.style.display=="none"?"":"none");var c=document.getElementById(b+"button");c.style.display=(c.style.display=="none"?"":"none")}function showcode(){}function setBorder(a){border=a}function initPicture(h,f,c,a){if(!initialized){setdefaults();initialized=true;if(h!=null){xmin=h}if(f!=null){xmax=f}if(c!=null){ymin=c}if(a!=null){ymax=a}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")}else{if(a!=null&&(typeof c!="number"||typeof a!="number"||c>=a)){alert("initPicture(xmin,xmax,ymin,ymax) requires numbers ymin < ymax")}else{if(width==null){width=picture.getAttribute("width");if(width==null||width==""){width=defaultwidth}}picture.setAttribute("width",width);if(height==null){height=picture.getAttribute("height");if(height==null||height==""){height=defaultheight}}picture.setAttribute("height",height);xunitlength=(width-2*border)/(xmax-xmin);yunitlength=xunitlength;if(ymin==null){origin=[-xmin*xunitlength+border,height/2];ymin=-(height-2*border)/(2*yunitlength);ymax=-ymin}else{if(ymax!=null){yunitlength=(height-2*border)/(ymax-ymin)}else{ymax=(height-2*border)/yunitlength+ymin}origin=[-xmin*xunitlength+border,-ymin*yunitlength+border]}if(isIE){if(picture.FULLSCREEN==undefined){setTimeout("drawPictures()",50);throw"wait"}svgpicture=picture.getSVGDocument().getElementById("root");if(svgpicture==null){setTimeout("drawPictures()",50);throw"wait"}svgpicture=picture.getSVGDocument().getElementById("root");while(svgpicture.childNodes.length>0){svgpicture.removeChild(svgpicture.lastChild)}svgpicture.setAttribute("width",width);svgpicture.setAttribute("height",height);svgpicture.setAttribute("name",picture.getAttribute("id"));doc=picture.getSVGDocument()}else{var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("id",picture.getAttribute("id"));b.setAttribute("name",picture.getAttribute("id"));b.setAttribute("width",picture.getAttribute("width"));b.setAttribute("height",picture.getAttribute("height"));picturepos=findPos(picture);if(picture.parentNode!=null){picture.parentNode.replaceChild(b,picture)}else{svgpicture.parentNode.replaceChild(b,svgpicture)}svgpicture=b;doc=document}var g=document.getElementById(picture.getAttribute("id")+"mml");if(g!=null){while(g.childNodes.length>0){g.removeChild(g.lastChild)}}svgpicture.setAttribute("xunitlength",xunitlength);svgpicture.setAttribute("yunitlength",yunitlength);svgpicture.setAttribute("xmin",xmin);svgpicture.setAttribute("xmax",xmax);svgpicture.setAttribute("ymin",ymin);svgpicture.setAttribute("ymax",ymax);svgpicture.setAttribute("ox",origin[0]);svgpicture.setAttribute("oy",origin[1]);var d=myCreateElementSVG("rect");d.setAttribute("x","0");d.setAttribute("y","0");d.setAttribute("width",width);d.setAttribute("height",height);d.setAttribute("style",backgroundstyle);svgpicture.appendChild(d);svgpicture.setAttribute("onmousemove","displayCoord(evt)");svgpicture.setAttribute("onmouseout","removeCoord(evt)");svgpicture.setAttribute("onclick","mClick(evt)");d=myCreateElementSVG("text");d.appendChild(doc.createTextNode(" "));d.setAttribute("id","coords");svgpicture.appendChild(d);d=myCreateElementSVG("text");d.appendChild(doc.createTextNode(" "));d.setAttribute("id","coords");svgpicture.appendChild(d);border=defaultborder}}}}function line(d,c,f,b){var a;if(f!=null){a=doc.getElementById(f)}if(a==null){a=myCreateElementSVG("path");a.setAttribute("id",f);svgpicture.appendChild(a)}a.setAttribute("d","M"+(d[0]*xunitlength+origin[0])+","+(height-d[1]*yunitlength-origin[1])+" "+(c[0]*xunitlength+origin[0])+","+(height-c[1]*yunitlength-origin[1]));a.setAttribute("stroke-width",strokewidth);if(strokedasharray!=null){a.setAttribute("stroke-dasharray",strokedasharray)}a.setAttribute("stroke",stroke);a.setAttribute("fill",fill);a.setAttribute("stroke-opacity",strokeopacity);a.setAttribute("fill-opacity",fillopacity);if(marker=="dot"||marker=="arrowdot"){ASdot(d,markersize,markerstroke,markerfill);if(marker=="arrowdot"){arrowhead(d,c)}ASdot(c,markersize,markerstroke,markerfill)}else{if(marker=="arrow"){arrowhead(d,c)}}if(b==null&&endpoints!=""){b=endpoints}if(b!=null){if(b.indexOf("<-")!=-1){arrowhead(c,d)}if(b.indexOf("o-")!=-1){dot(d,"open")}if(b.indexOf("*-")!=-1){dot(d,"closed")}if(b.indexOf("->")!=-1){arrowhead(d,c)}if(b.indexOf("-o")!=-1){dot(c,"open")}if(b.indexOf("-*")!=-1){dot(c,"closed")}}}function path(g,j,h,f){if(h==null){h=""}var d,a,b;if(j!=null){d=doc.getElementById(j)}if(d==null){d=myCreateElementSVG("path");d.setAttribute("id",j);svgpicture.appendChild(d)}if(typeof g=="string"){a=g}else{a="M";a+=(g[0][0]*xunitlength+origin[0])+","+(height-g[0][1]*yunitlength-origin[1])+" "+h;for(b=1;b<g.length;b++){a+=(g[b][0]*xunitlength+origin[0])+","+(height-g[b][1]*yunitlength-origin[1])+" "}}d.setAttribute("d",a);d.setAttribute("stroke-width",strokewidth);if(strokedasharray!=null){d.setAttribute("stroke-dasharray",strokedasharray)}d.setAttribute("stroke",stroke);d.setAttribute("fill",fill);d.setAttribute("stroke-opacity",strokeopacity);d.setAttribute("fill-opacity",fillopacity);if(marker=="dot"||marker=="arrowdot"){for(b=0;b<g.length;b++){if(h!="C"&&h!="T"||b!=1&&b!=2){ASdot(g[b],markersize,markerstroke,markerfill)}}}if(f==null&&endpoints!=""){f=endpoints}if(f!=null){if(f.indexOf("<-")!=-1){arrowhead(g[1],g[0])}if(f.indexOf("o-")!=-1){dot(g[0],"open")}if(f.indexOf("*-")!=-1){dot(g[0],"closed")}if(f.indexOf("->")!=-1){arrowhead(g[g.length-2],g[g.length-1])}if(f.indexOf("-o")!=-1){dot(g[g.length-1],"open")}if(f.indexOf("-*")!=-1){dot(g[g.length-1],"closed")}}}function curve(b,c,a){path(b,c,"T",a)}function vector(b,a,c){line(b,a,c,"","->")}function circle(b,a,d){var c;if(d!=null){c=doc.getElementById(d)}if(c==null){c=myCreateElementSVG("circle");c.setAttribute("id",d);svgpicture.appendChild(c)}c.setAttribute("cx",b[0]*xunitlength+origin[0]);c.setAttribute("cy",height-b[1]*yunitlength-origin[1]);c.setAttribute("r",a*xunitlength);c.setAttribute("stroke-width",strokewidth);c.setAttribute("stroke",stroke);c.setAttribute("fill",fill);c.setAttribute("stroke-opacity",strokeopacity);c.setAttribute("fill-opacity",fillopacity)}function loop(a,b,c){if(b==null){b=[1,0]}path([a,[a[0]+b[0],a[1]+b[1]],[a[0]-b[1],a[1]+b[0]],a],c,"C");if(marker=="arrow"||marker=="arrowdot"){arrowhead([a[0]+Math.cos(1.4)*b[0]-Math.sin(1.4)*b[1],a[1]+Math.sin(1.4)*b[0]+Math.cos(1.4)*b[1]],a)}}function arc(h,c,a,g,b){var f,d;if(g!=null){f=doc.getElementById(g)}if(b==null){b=0}if(a==null){d=[c[0]-h[0],c[1]-h[1]];a=Math.sqrt(d[0]*d[0]+d[1]*d[1])}if(f==null){f=myCreateElementSVG("path");f.setAttribute("id",g);svgpicture.appendChild(f)}f.setAttribute("d","M"+(h[0]*xunitlength+origin[0])+","+(height-h[1]*yunitlength-origin[1])+" A"+a*xunitlength+","+a*yunitlength+" 0 "+b+",0 "+(c[0]*xunitlength+origin[0])+","+(height-c[1]*yunitlength-origin[1]));f.setAttribute("stroke-width",strokewidth);f.setAttribute("stroke",stroke);f.setAttribute("fill",fill);f.setAttribute("stroke-opacity",strokeopacity);f.setAttribute("fill-opacity",fillopacity);if(marker=="arrow"||marker=="arrowdot"){u=[(c[1]-h[1])/4,(h[0]-c[0])/4];d=[(c[0]-h[0])/2,(c[1]-h[1])/2];d=[h[0]+d[0]+u[0],h[1]+d[1]+u[1]]}else{d=[h[0],h[1]]}if(marker=="dot"||marker=="arrowdot"){ASdot(h,markersize,markerstroke,markerfill);if(marker=="arrowdot"){arrowhead(d,c)}ASdot(c,markersize,markerstroke,markerfill)}else{if(marker=="arrow"){arrowhead(d,c)}}}function sector(a,g,b,f){var d=g[0]-a[0],c=g[1]-a[1];arc(g,b,Math.sqrt(d*d+c*c),f+"arc");path([b,a,g],f+"path")}function ellipse(a,d,c,f){var b;if(f!=null){b=doc.getElementById(f)}if(b==null){b=myCreateElementSVG("ellipse");b.setAttribute("id",f);svgpicture.appendChild(b)}b.setAttribute("cx",a[0]*xunitlength+origin[0]);b.setAttribute("cy",height-a[1]*yunitlength-origin[1]);b.setAttribute("rx",d*xunitlength);b.setAttribute("ry",c*yunitlength);b.setAttribute("stroke-width",strokewidth);b.setAttribute("stroke",stroke);b.setAttribute("fill",fill);b.setAttribute("stroke-opacity",strokeopacity);b.setAttribute("fill-opacity",fillopacity)}function triangle(c,b,a,d){path([c,b,a,c],d)}function rect(f,c,g,d,b){var a;if(g!=null){a=doc.getElementById(g)}if(a==null){a=myCreateElementSVG("rect");a.setAttribute("id",g);svgpicture.appendChild(a)}a.setAttribute("x",f[0]*xunitlength+origin[0]);a.setAttribute("y",height-c[1]*yunitlength-origin[1]);a.setAttribute("width",(c[0]-f[0])*xunitlength);a.setAttribute("height",(c[1]-f[1])*yunitlength);if(d!=null){a.setAttribute("rx",d*xunitlength)}if(b!=null){a.setAttribute("ry",b*yunitlength)}a.setAttribute("stroke-width",strokewidth);a.setAttribute("stroke",stroke);a.setAttribute("fill",fill);a.setAttribute("stroke-opacity",strokeopacity);a.setAttribute("fill-opacity",fillopacity)}function text(b,l,h,a,j){var f,d,m=0,k=fontsize/3,g=l.toString();if(/(`|\$)/.test(g)){f=document.getElementById(svgpicture.getAttribute("name")+"mml");if(f!=null){if(a!=null){d=document.getElementById(a)}if(d==null){d=createElementXHTML("div");d.setAttribute("id",a);d.style.position="absolute";f.appendChild(d)}while(d.childNodes.length>0){d.removeChild(d.lastChild)}d.appendChild(document.createTextNode(g));if(/`/.test(g)){AMprocessNode(d)}else{LMprocessNode(d)}m=-d.offsetWidth/2;k=-d.offsetHeight/2;if(h!=null){if(/above/.test(h)){k=-d.offsetHeight}if(/below/.test(h)){k=0}if(/right/.test(h)){m=0}if(/left/.test(h)){m=-d.offsetWidth}}d.style.left=""+(b[0]*xunitlength+origin[0]+m)+"px";d.style.top=""+(height-b[1]*yunitlength-origin[1]+k)+"px"}return b}var c="middle";if(h!=null){if(/above/.test(h)){k=-fontsize/2}if(/below/.test(h)){k=fontsize-0}if(/right/.test(h)){c="start";m=fontsize/4}if(/left/.test(h)){c="end";m=-fontsize/4}}if(a!=null){d=doc.getElementById(a)}if(d==null){d=myCreateElementSVG("text");d.setAttribute("id",a);svgpicture.appendChild(d);d.appendChild(doc.createTextNode(g))}while(d.childNodes.length>1){d.removeChild(d.lastChild)}d.lastChild.nodeValue="\xA0"+g+"\xA0";d.setAttribute("x",b[0]*xunitlength+origin[0]+m);d.setAttribute("y",height-b[1]*yunitlength-origin[1]+k);d.setAttribute("font-style",(j!=null?j:(g.search(/^[a-zA-Z]$/)!=-1?"italic":fontstyle)));d.setAttribute("font-family",fontfamily);d.setAttribute("font-size",fontsize);d.setAttribute("font-weight",fontweight);d.setAttribute("text-anchor",c);if(fontstroke!="none"){d.setAttribute("stroke",fontstroke)}if(fontfill!="none"){d.setAttribute("fill",fontfill)}return b}function mtext(a,h,d,g,f){var c="middle";var k=0;var j=fontsize/3;if(d!=null){if(d.slice(0,5)=="above"){j=-fontsize/2}if(d.slice(0,5)=="below"){j=fontsize-0}if(d.slice(0,5)=="right"||d.slice(5,10)=="right"){c="start";k=fontsize/2}if(d.slice(0,4)=="left"||d.slice(5,9)=="left"){c="end";k=-fontsize/2}}var b=this;if(this.nodeName=="svg"){b=myCreateElementSVG("text");this.appendChild(b);b.appendChild(doc.createTextNode(h))}b.lastChild.nodeValue=h;b.setAttribute("x",a[0]+k);b.setAttribute("y",a[1]+j);b.setAttribute("font-style",(g!=null?g:fontstyle));b.setAttribute("font-family",fontfamily);b.setAttribute("font-size",(f!=null?f:fontsize));b.setAttribute("font-weight",fontweight);b.setAttribute("text-anchor",c);if(fontstroke!="none"){b.setAttribute("stroke",fontstroke)}if(fontfill!="none"){b.setAttribute("fill",fontfill)}}function image(b,f,a,c,g){var d;if(g!=null){d=doc.getElementById(g)}if(d==null){d=myCreateElementSVG("image");d.setAttribute("id",g);svgpicture.appendChild(d)}d.setAttribute("x",f[0]*xunitlength+origin[0]);d.setAttribute("y",height-f[1]*yunitlength-origin[1]);d.setAttribute("width",a);d.setAttribute("height",c);d.setAttribute("xlink:href",b)}function ASdot(b,a,c,g){if(c==null){c=stroke}if(g==null){g=fill}var d=myCreateElementSVG("circle");d.setAttribute("cx",b[0]*xunitlength+origin[0]);d.setAttribute("cy",height-b[1]*yunitlength-origin[1]);d.setAttribute("r",a);d.setAttribute("stroke-width",strokewidth);d.setAttribute("stroke",c);d.setAttribute("fill",g);svgpicture.appendChild(d)}function dot(b,f,c,j,h){var d;var a=b[0]*xunitlength+origin[0];var g=height-b[1]*yunitlength-origin[1];if(h!=null){d=doc.getElementById(h)}if(f=="+"||f=="-"||f=="|"){if(d==null){d=myCreateElementSVG("path");d.setAttribute("id",h);svgpicture.appendChild(d)}if(f=="+"){d.setAttribute("d"," M "+(a-ticklength)+" "+g+" L "+(a+ticklength)+" "+g+" M "+a+" "+(g-ticklength)+" L "+a+" "+(g+ticklength));d.setAttribute("stroke-width",0.5);d.setAttribute("stroke",axesstroke)}else{if(f=="-"){d.setAttribute("d"," M "+(a-ticklength)+" "+g+" L "+(a+ticklength)+" "+g)}else{d.setAttribute("d"," M "+a+" "+(g-ticklength)+" L "+a+" "+(g+ticklength))}d.setAttribute("stroke-width",strokewidth);d.setAttribute("stroke",stroke)}}else{if(d==null){d=myCreateElementSVG("circle");d.setAttribute("id",h);svgpicture.appendChild(d)}d.setAttribute("cx",a);d.setAttribute("cy",g);d.setAttribute("r",dotradius);d.setAttribute("stroke-width",strokewidth);d.setAttribute("stroke",stroke);d.setAttribute("fill",(f=="open"?"white":(f=="closed"?stroke:markerfill)))}if(c!=null){text(b,c,(j==null?"below":j),(h==null?h:h+"label"))}}point=dot;function arrowhead(j,h){var a;var c=[j[0]*xunitlength+origin[0],height-j[1]*yunitlength-origin[1]];var b=[h[0]*xunitlength+origin[0],height-h[1]*yunitlength-origin[1]];var f=[b[0]-c[0],b[1]-c[1]];var k=Math.sqrt(f[0]*f[0]+f[1]*f[1]);if(k>1e-8){f=[f[0]/k,f[1]/k];a=[-f[1],f[0]];var g=myCreateElementSVG("path");g.setAttribute("d","M "+(b[0]-15*f[0]-4*a[0])+" "+(b[1]-15*f[1]-4*a[1])+" L "+(b[0]-3*f[0])+" "+(b[1]-3*f[1])+" L "+(b[0]-15*f[0]+4*a[0])+" "+(b[1]-15*f[1]+4*a[1])+" z");g.setAttribute("stroke-width",markerstrokewidth);g.setAttribute("stroke",stroke);g.setAttribute("fill",stroke);g.setAttribute("stroke-opacity",strokeopacity);g.setAttribute("fill-opacity",fillopacity);svgpicture.appendChild(g)}}function chopZ(b){var a=b.indexOf(".");if(a==-1){return b}for(var c=b.length-1;c>a&&b.charAt(c)=="0";c--){}if(c==a){c--}return b.slice(0,c+1)}function grid(b,a){axes(b,a,null,b,a)}function noaxes(){if(!initialized){initPicture()}}function axes(dx,dy,labels,gdx,gdy){var x,y,ldx,ldy,lx,ly,lxp,lyp,pnode,st;if(!initialized){initPicture()}if(typeof dx=="string"){labels=dx;dx=null}if(typeof dy=="string"){gdx=dy;dy=null}if(xscl!=null){dx=xscl;gdx=xscl;labels=dx}if(yscl!=null){dy=yscl;gdy=yscl}if(xtick!=null){dx=xtick}if(ytick!=null){dy=ytick}dx=(dx==null?xunitlength:dx*xunitlength);dy=(dy==null?dx:dy*yunitlength);fontsize=Math.min(dx/2,dy/2,16);ticklength=fontsize/4;if(xgrid!=null){gdx=xgrid}if(ygrid!=null){gdy=ygrid}if(gdx!=null){gdx=(typeof gdx=="string"?dx:gdx*xunitlength);gdy=(gdy==null?dy:gdy*yunitlength);pnode=myCreateElementSVG("path");st="";for(x=origin[0];x<width;x=x+gdx){st+=" M"+x+",0 "+x+","+height}for(x=origin[0]-gdx;x>0;x=x-gdx){st+=" M"+x+",0 "+x+","+height}for(y=height-origin[1];y<height;y=y+gdy){st+=" M0,"+y+" "+width+","+y}for(y=height-origin[1]-gdy;y>0;y=y-gdy){st+=" M0,"+y+" "+width+","+y}pnode.setAttribute("d",st);pnode.setAttribute("stroke-width",0.5);pnode.setAttribute("stroke",gridstroke);pnode.setAttribute("fill",fill);svgpicture.appendChild(pnode)}pnode=myCreateElementSVG("path");st="M0,"+(height-origin[1])+" "+width+","+(height-origin[1])+" M"+origin[0]+",0 "+origin[0]+","+height;for(x=origin[0]+dx;x<width;x=x+dx){st+=" M"+x+","+(height-origin[1]+ticklength)+" "+x+","+(height-origin[1]-ticklength)}for(x=origin[0]-dx;x>0;x=x-dx){st+=" M"+x+","+(height-origin[1]+ticklength)+" "+x+","+(height-origin[1]-ticklength)}for(y=height-origin[1]+dy;y<height;y=y+dy){st+=" M"+(origin[0]+ticklength)+","+y+" "+(origin[0]-ticklength)+","+y}for(y=height-origin[1]-dy;y>0;y=y-dy){st+=" M"+(origin[0]+ticklength)+","+y+" "+(origin[0]-ticklength)+","+y}if(labels!=null){with(Math){ldx=dx/xunitlength;ldy=dy/yunitlength;lx=(xmin>0||xmax<0?xmin:0);ly=(ymin>0||ymax<0?ymin:0);lxp=(ly==0?"below":"above");lyp=(lx==0?"left":"right");var ddx=floor(1.1-log(ldx)/log(10))+1;var ddy=floor(1.1-log(ldy)/log(10))+1;for(x=ldx;x<=xmax;x=x+ldx){text([x,ly],chopZ(x.toFixed(ddx)),lxp)}for(x=-ldx;xmin<=x;x=x-ldx){text([x,ly],chopZ(x.toFixed(ddx)),lxp)}for(y=ldy;y<=ymax;y=y+ldy){text([lx,y],chopZ(y.toFixed(ddy)),lyp)}for(y=-ldy;ymin<=y;y=y-ldy){text([lx,y],chopZ(y.toFixed(ddy)),lyp)}}}fontsize=defaultfontsize;pnode.setAttribute("d",st);pnode.setAttribute("stroke-width",0.5);pnode.setAttribute("stroke",axesstroke);pnode.setAttribute("fill",fill);pnode.setAttribute("stroke-opacity",strokeopacity);pnode.setAttribute("fill-opacity",fillopacity);svgpicture.appendChild(pnode)}function mathjs(c){c=c.replace(/\s/g,"");if(c.indexOf("^-1")!=-1){c=c.replace(/sin\^-1/g,"arcsin");c=c.replace(/cos\^-1/g,"arccos");c=c.replace(/tan\^-1/g,"arctan");c=c.replace(/sec\^-1/g,"arcsec");c=c.replace(/csc\^-1/g,"arccsc");c=c.replace(/cot\^-1/g,"arccot");c=c.replace(/sinh\^-1/g,"arcsinh");c=c.replace(/cosh\^-1/g,"arccosh");c=c.replace(/tanh\^-1/g,"arctanh");c=c.replace(/sech\^-1/g,"arcsech");c=c.replace(/csch\^-1/g,"arccsch");c=c.replace(/coth\^-1/g,"arccoth")}c=c.replace(/^e$/g,"(Math.E)");c=c.replace(/^e([^a-zA-Z])/g,"(Math.E)$1");c=c.replace(/([^a-zA-Z])e/g,"$1(Math.E)");c=c.replace(/([0-9])([\(a-zA-Z])/g,"$1*$2");c=c.replace(/\)([\(0-9a-zA-Z])/g,")*$1");var d,b,a,f,g;while((d=c.indexOf("^"))!=-1){if(d==0){return"Error: missing argument"}b=d-1;f=c.charAt(b);if(f>="0"&&f<="9"){b--;while(b>=0&&(f=c.charAt(b))>="0"&&f<="9"){b--}if(f=="."){b--;while(b>=0&&(f=c.charAt(b))>="0"&&f<="9"){b--}}}else{if(f==")"){g=1;b--;while(b>=0&&g>0){f=c.charAt(b);if(f=="("){g--}else{if(f==")"){g++}}b--}while(b>=0&&(f=c.charAt(b))>="a"&&f<="z"||f>="A"&&f<="Z"){b--}}else{if(f>="a"&&f<="z"||f>="A"&&f<="Z"){b--;while(b>=0&&(f=c.charAt(b))>="a"&&f<="z"||f>="A"&&f<="Z"){b--}}else{return"Error: incorrect syntax in "+c+" at position "+b}}}if(d==c.length-1){return"Error: missing argument"}a=d+1;f=c.charAt(a);if(f>="0"&&f<="9"||f=="-"){a++;while(a<c.length&&(f=c.charAt(a))>="0"&&f<="9"){a++}if(f=="."){a++;while(a<c.length&&(f=c.charAt(a))>="0"&&f<="9"){a++}}}else{if(f=="("){g=1;a++;while(a<c.length&&g>0){f=c.charAt(a);if(f=="("){g++}else{if(f==")"){g--}}a++}}else{if(f>="a"&&f<="z"||f>="A"&&f<="Z"){a++;while(a<c.length&&(f=c.charAt(a))>="a"&&f<="z"||f>="A"&&f<="Z"){a++}}else{return"Error: incorrect syntax in "+c+" at position "+a}}}c=c.slice(0,b+1)+"Math.pow("+c.slice(b+1,d)+","+c.slice(d+1,a)+")"+c.slice(a)}while((d=c.indexOf("!"))!=-1){if(d==0){return"Error: missing argument"}b=d-1;f=c.charAt(b);if(f>="0"&&f<="9"){b--;while(b>=0&&(f=c.charAt(b))>="0"&&f<="9"){b--}if(f=="."){b--;while(b>=0&&(f=c.charAt(b))>="0"&&f<="9"){b--}}}else{if(f==")"){g=1;b--;while(b>=0&&g>0){f=c.charAt(b);if(f=="("){g--}else{if(f==")"){g++}}b--}while(b>=0&&(f=c.charAt(b))>="a"&&f<="z"||f>="A"&&f<="Z"){b--}}else{if(f>="a"&&f<="z"||f>="A"&&f<="Z"){b--;while(b>=0&&(f=c.charAt(b))>="a"&&f<="z"||f>="A"&&f<="Z"){b--}}else{return"Error: incorrect syntax in "+c+" at position "+b}}}c=c.slice(0,b+1)+"factorial("+c.slice(b+1,d)+")"+c.slice(d+1)}return c}function plot(fun,x_min,x_max,points,id,endpts){var pth=[];var f=function(x){return x},g=fun;var name=null;if(typeof fun=="string"){eval("g = function(x){ with(Math) return "+mathjs(fun)+" }")}else{if(typeof fun=="object"){eval("f = function(t){ with(Math) return "+mathjs(fun[0])+" }");eval("g = function(t){ with(Math) return "+mathjs(fun[1])+" }")}}if(typeof x_min=="string"){name=x_min;x_min=xmin}else{name=id}var min=(x_min==null?xmin:x_min);var max=(x_max==null?xmax:x_max);var inc=max-min-0.000001*(max-min);inc=(points==null?inc/200:inc/points);var gt;for(var t=min;t<=max;t+=inc){gt=g(t);if(!(isNaN(gt)||Math.abs(gt)=="Infinity")){pth[pth.length]=[f(t),gt]}}path(pth,name,null,endpts);return pth}function slopefield(fun,dx,dy){var g=fun;if(typeof fun=="string"){eval("g = function(x,y){ with(Math) return "+mathjs(fun)+" }")}var gxy,x,y,u,v,dz;if(dx==null){dx=1}if(dy==null){dy=1}dz=Math.sqrt(dx*dx+dy*dy)/6;var x_min=Math.ceil(xmin/dx);var y_min=Math.ceil(ymin/dy);for(x=x_min;x<=xmax;x+=dx){for(y=y_min;y<=ymax;y+=dy){gxy=g(x,y);if(!isNaN(gxy)){if(Math.abs(gxy)=="Infinity"){u=0;v=dz}else{u=dz/Math.sqrt(1+gxy*gxy);v=gxy*u}line([x-u,y-v],[x+u,y+v])}}}}function show_props(c){var a="";for(var b=0;b<c.childNodes.length;b++){a+=c.childNodes.item(b)+"\n"}return a}function displayCoord(b){if(showcoordinates){var d=b.target.parentNode;var a=d.childNodes;for(var c=0;c<a.length&&a.item(c).nodeName!="text";c++){}var f=a.item(c);f.mtext=mtext;f.mtext([d.getAttribute("width")-(-7),d.getAttribute("height")-7],"("+getX(b).toFixed(2)+", "+getY(b).toFixed(2)+")","left","","11")}}function removeCoord(b){var d=b.target.parentNode;var a=d.childNodes;for(var c=0;c<a.length&&a.item(c).nodeName!="text";c++){}var f=a.item(c);f.mtext=mtext;f.mtext([d.getAttribute("width")-0,d.getAttribute("height")-0],"","aboveleft","")}function initASCIIMathCalculators(li){var i;for(i=0;i<li.length;i++){li[i].innerHTML=calcstr;AMprocessNode(li[i])}li=document.getElementsByTagName("textarea");var st;for(i=0;i<li.length;i++){st=li[i].getAttribute("onkeyup");if(st!=null){eval(String(st).replace(/function anonymous\(\)/,""))}}}function calculate(inputId,outputId){var str=document.getElementById(inputId).value;var err="";var ind=str.lastIndexOf("\n");if(ind==str.length-1){str=str.slice(0,ind)}str=str.slice(str.lastIndexOf("\n")+1);try{var res=eval(mathjs(str))}catch(e){err="syntax incomplete"}if(!isNaN(res)&&res!="Infinity"){str="`"+str+" =` "+(Math.abs(res-Math.round(res*1000000)/1000000)<1e-15?Math.round(res*1000000)/1000000:res)+err}else{if(str!=""){str="`"+str+"` = undefined"}}var outnode=document.getElementById(outputId);var n=outnode.childNodes.length;for(var i=0;i<n;i++){outnode.removeChild(outnode.firstChild)}outnode.appendChild(document.createTextNode(str));AMprocessNode(outnode)}function append(a){document.getElementById("in").value+=a;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='<table align="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<textarea id="in" rows="3" cols="40" onkeyup="calculate(\'in\',\'out\')"></textarea></td></tr>\n<tr><td height="50">Result: &nbsp; &nbsp; <span id="out"></span></td></tr>\n</table>\n<table align="center" cellspacing="0" cellpadding="0">\n<tbody align="center">\n<tr>\n<td colspan="4">\n<button onclick="append(\'sin^-1(\')"><font size=2>`sin^-1`</font></button><button onclick="append(\'cos^-1(\')"><font size=2>`cos^-1`</font></button><button onclick="append(\'tan^-1(\')"><font size=2>`tan^-1`</font></button></td>\n<td><button onclick="clearTextArea()">&nbsp;`C`&nbsp;</button></td>\n\n</tr>\n<tr>\n<td><button onclick="append(\'pi\')">&nbsp;`pi` &nbsp;</button></td>\n<td><button onclick="append(\'sin(\')">&nbsp;`sin`</button></td>\n<td><button onclick="append(\'cos(\')">&nbsp;`cos`</button></td>\n<td><button onclick="append(\'tan(\')">&nbsp;`tan`</button></td>\n<td><button onclick="append(\'^\')">`x^y`</button></td>\n</tr>\n<tr>\n<td><button onclick="append(\'!\')">&nbsp; `!` &nbsp;</button></td>\n\n<td><button onclick="append(\'(\')"><font size=2>&nbsp;&nbsp;`(`&nbsp;&nbsp;</font></button></td>\n<td><button onclick="append(\')\')"><font size=2>&nbsp;&nbsp;`)`&nbsp;&nbsp;</font></button></td>\n<td><button onclick="append(\'sqrt(\')"><font size=2>`sqrt({::}^ )`</font></button></td>\n<td><button onclick="append(\'/\')">&nbsp;`-: `</button></td>\n</tr>\n<tr>\n<td><button onclick="append(\'log(\')">`log`</button></td>\n<td><button onclick="append(\'7\')">&nbsp; `7` &nbsp;</button></td>\n<td><button onclick="append(\'8\')">&nbsp; `8` &nbsp;</button></td>\n\n<td><button onclick="append(\'9\')">&nbsp; `9` &nbsp;</button></td>\n<td><button onclick="append(\'*\')">&nbsp;`times`&nbsp;</button></td>\n</tr>\n<tr>\n<td><button onclick="append(\'ln(\')">&nbsp;`ln`&nbsp;</button></td>\n<td><button onclick="append(\'4\')">&nbsp; `4` &nbsp;</button></td>\n<td><button onclick="append(\'5\')">&nbsp; `5` &nbsp;</button></td>\n<td><button onclick="append(\'6\')">&nbsp; `6` &nbsp;</button></td>\n\n<td><button onclick="append(\'-\')">&nbsp;`-{::}`&nbsp;</button></td>\n</tr>\n<tr>\n<td><button onclick="append(\'e\')">&nbsp; `e` &nbsp;</button></td>\n<td><button onclick="append(\'1\')">&nbsp;&nbsp;`1` &nbsp;</button></td>\n<td><button onclick="append(\'2\')">&nbsp; `2` &nbsp;</button></td>\n<td><button onclick="append(\'3\')">&nbsp; `3` &nbsp;</button></td>\n<td><button onclick="append(\'+\')">&nbsp;`+{::}`&nbsp;</button></td>\n\n</tr>\n<tr>\n<td> <!--button onclick="append(\'pi\')">&nbsp;`pi` &nbsp;</button--></td>\n<td><button onclick="append(\'0\')">&nbsp; `0` &nbsp;</button></td>\n<td><button onclick="append(\'.\')">&nbsp; `.` &nbsp;</button></td>\n<td><button onclick="append(\'\\n\')">&nbsp;`"ent"`</button></td>\n</tr>\n</tbody>\n</table>';function generic(){if(!init()){return}if(translateOnLoad){var b=document.getElementById("processasciimathinmoodle");if(b!=null){dsvglocation=b.className}if(b!=null||!checkforprocessasciimathinmoodle){translate();if(!noSVG&&translateASCIIsvg){drawPictures()}}var a=getElementsByClass(document,"div","ASCIIMathCalculator");if(!noMathML&&a.length>0){initASCIIMathCalculators(a)}}}if(typeof window.addEventListener!="undefined"){window.addEventListener("load",generic,false)}else{if(typeof document.addEventListener!="undefined"){document.addEventListener("load",generic,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",generic)}else{if(typeof window.onload=="function"){var existing=onload;window.onload=function(){existing();generic()}}else{window.onload=generic}}}};
