/*
 *  /MathJax/config/local/AMS.js
 *  
 *  Copyright (c) 2010 Design Science, Inc.
 *
 *  Part of the MathJax library.
 *  See http://www.mathjax.org for details.
 * 
 *  Licensed under the Apache License, Version 2.0;
 *  you may not use this file except in compliance with the License.
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 */

MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX;var a=MathJax.ElementJax.mml;c.Macro("break"," ");c.Macro("scr","\\mathcal");c.Macro("bold","\\mathbf");c.Macro("roman","\\mathrm");c.Macro("germ","\\mathfrak");c.Macro("boldkey","\\boldsymbol");c.Macro("coloneq","\\mathrel{:=}");c.Macro("sbs","\\smallsetminus");c.Macro("align","\\begin{align}");c.Macro("endalign","\\end{align}");c.Macro("alignat","\\begin{alignat}");c.Macro("endalignat","\\end{alignat}");c.Macro("aligned","\\begin{aligned}");c.Macro("endaligned","\\end{aligned}");c.Macro("alignedat","\\begin{alignedat}");c.Macro("endalignedat","\\end{alignedat}");c.Macro("matrix","\\begin{matrix}");c.Macro("endmatrix","\\end{matrix}");c.Macro("pmatrix","\\begin{pmatrix}");c.Macro("endpmatrix","\\end{pmatrix}");c.Macro("bmatrix","\\begin{bmatrix}");c.Macro("endbmatrix","\\end{bmatrix}");c.Macro("vmatrix","\\begin{vmatrix}");c.Macro("endvmatrix","\\end{vmatrix}");c.Macro("Vmatrix","\\begin{Vmatrix}");c.Macro("endVmatrix","\\end{Vmatrix}");c.Macro("multline","\\begin{multline}");c.Macro("endmultline","\\end{multline}");c.Macro("gather","\\begin{gather}");c.Macro("endgather","\\end{gather}");c.Macro("gathered","\\begin{gathered}");c.Macro("endgathered","\\end{gathered}");c.Macro("split","\\begin{split}");c.Macro("endsplit","\\end{split}");c.Macro("cases","\\begin{cases}");c.Macro("endcases","\\end{cases}");c.Macro("Sb","_{\\begin{subarray}{c}");c.Macro("endSb","\\end{subarray}}");c.Macro("Sp","^{\\begin{subarray}{c}");c.Macro("endSp","\\end{subarray}}");c.Macro("sp","^");c.Macro("sb","_");c.Macro("and","\\;\\mathbin{\\&}\\;");c.Macro("@","@");c.Macro("Cal","\\cal");c.Macro("dag","\\hbox{$\\dagger$}");c.Macro("ddag","\\hbox{$\\ddagger$}");c.Macro("dasharrow","\\dashrightarrow");c.Macro("dotso","\\ldots");c.Macro("dsize","\\displaystyle");c.Macro("eqcolon","{\\mathrel{=:}}");c.Macro("emptyset","\\varnothing");c.Macro("Gg","\\ggg");c.Macro("curlyepsilon","\\varepsilon");c.Macro("goth","\\mathfrak");c.Macro("injlim","\\mathop{\\roman{inj\\,lim}}");c.Macro("Ll","\\lll");c.Macro("negmedspace","\\kern-.222222em");c.Macro("negthickspace","\\kern-.27777em");c.Macro("nequiv","\\not\\equiv");c.Macro("nsimeq","\\not\\simeq");c.Macro("nsubset","\\not\\subset");c.Macro("nsupset","\\not\\supset");c.Macro("obar","\\bar");c.Macro("overarrow","\\overrightarrow");c.Macro("projlim","\\mathop{\\roman{proj\\,lim}}");c.Macro("smalltilde","\\tilde");c.Macro("spbar","^{-}");c.Macro("spcheck","^{\\vee}");c.Macro("sptilde","^{\\sim}");c.Macro("spvec","^{\\rightarrow}");c.Macro("ssf","\\mathsf");c.Macro("stack","#1\\atop #2",2);c.Macro("tildesymbol","\\mathord{\\sim}");c.Macro("underarrow","\\underrightarrow");c.Macro("smallmatrix","\\begin{smallmatrix}");c.Macro("endsmallmatrix","\\end{smallmatrix}");c.Macro("thickfrac","\\frac");c.Macro("tsize","\\textstyle");c.Macro("backcong","\\mathchoice{\\stackrel{\\smash{\\lower.4ex{\\textstyle\\backsim}}}=}{\\stackrel{\\smash{\\lower.4ex{\\textstyle\\backsim}}}=}{\\stackrel{\\smash{\\lower.35ex{\\scriptstyle\\backsim}}}=}{\\stackrel{\\smash{\\lower.2ex{\\scriptscriptstyle\\backsim}}}=}");c.Macro("bfcdot","\\raise.33ex{\\bf .}");c.Macro("fracwithdelims","{#3\\overwithdelims#1#2#4}",4);c.Macro("intprod","\\mathbin{\\Rule{5pt}{0.4pt}{0pt}\\kern-.4pt\\Rule{0.4pt}{6pt}{0pt}\\kern1pt}");c.Macro("intslash","\\mathop{\\rlap{\\mathchoice{\\kern3pt\\Rule{7pt}{2.75pt}{-2.2pt}}{\\kern3pt\\Rule{4.5pt}{2.75pt}{-2.2pt}}{\\kern3pt\\Rule{4.5pt}{2.75pt}{-2.2pt}}{\\kern3pt\\Rule{4.5pt}{2.75pt}{-2.2pt}}}}\\int");c.Macro("operatornamewithlimits","\\operatorname*");c.Macro("sphat","^{\\mathchoice{}{}{\\raise.3ex\\widehat{\\kern 3.5pt}}{\\!\\lower.3ex\\hbox{^}}}\\mathchoice{\\!\\!}{\\!\\!}{}{}");c.Macro("hfill","\\hskip 5em");c.Macro("lhook","\\mathrel{\\lower2.5pt\\unicode{x02BF}}");c.Macro("rhook","\\mathrel{\\lower2.5pt\\unicode{x02BE}}");c.Macro("joinrel","\\kern-4mu");c.Macro("relbar","\\mathrel{-}");c.Macro("mapstochar","\\mathrel{\\lower3.1pt\\unicode{x02C8}}");c.Definitions.macros.ocirc=["Accent","030A"];c.Definitions.mathchar0mo.hdots="2026";c.Definitions.mathchar0mi.straightphi=c.Definitions.mathchar0mi.phi;c.Definitions.mathchar0mi.phi=c.Definitions.mathchar0mi.varphi;c.Definitions.mathchar0mi.straightepsilon=c.Definitions.mathchar0mi.epsilon;c.Definitions.mathchar0mi.epsilon=c.Definitions.mathchar0mi.varepsilon;c.Parse.Augment({Overset:function(d){var f=this.ParseUpTo(d,"\\to");var e=this.ParseArg(d);this.Push(a.munderover(e,null,f))},Underset:function(d){var f=this.ParseUpTo(d,"\\to");var e=this.ParseArg(d);this.Push(a.munderover(e,f))}});c.Definitions.macros.oversetbrace=["Extension","newcommand"];c.Definitions.macros.undersetbrace=["Extension","newcommand"];c.Definitions.macros.sideset=["Extension","newcommand"];MathJax.Hub.Register.StartupHook("TeX newcommand Ready",function(){c.Definitions.macros.oversetbrace=["MacroWithTemplate","\\overbrace{#2}^{#1}",2,[null,"\\to"]];c.Definitions.macros.undersetbrace=["MacroWithTemplate","\\underbrace{#2}_{#1}",2,[null,"\\to"]];c.Definitions.macros.sideset=["MacroWithTemplate","\\mathop{\\mathop{\\rlap{\\phantom{#3}}}\\nolimits#1\\!\\mathop{#3}\\nolimits#2}",3,[null,"\\and","\\to"]]});c.Definitions.macros.lcfrac=["Extension","AMSmath"];MathJax.Hub.Register.StartupHook("TeX AMSmath Ready",function(){c.Definitions.macros.lcfrac="CFrac";c.Macro("endcfrac","");c.Parse.Augment({CFrac:function(g){var f=this.GetUpTo(g,"\\\\"),i=this.GetUpTo(g,"\\endcfrac");var d=c.Parse("\\strut\\textstyle{"+f+"}",this.stack.env).mml(),h=c.Parse("\\strut\\textstyle{"+i+"\\endcfrac}",this.stack.env).mml();var e=a.mfrac(d,h);if(g==="\\lcfrac"&&i.match(/\\lcfrac/)){e.numalign=e.denomalign=a.ALIGN.LEFT}this.Push(e)}})});c.Definitions.macros.thickfrac="ThickFrac";c.Parse.Augment({ThickFrac:function(e){var f=1;var d=this.GetArgument(e);if(d==="\\thickness"){f=this.GetArgument("\\thickness");if(!f.match(/\d+(\.\d*)?|\.\d+/)){c.Error("Argument for \\thickness must be numeric")}d=this.GetArgument(e)}d=c.Parse(d,this.stack.env).mml();var g=this.ParseArg(e);if(d.type==="mrow"&&d.data.length>1){delete d.inferred}if(g.type==="mrow"&&g.data.length>1){delete g.inferred}this.Push(a.mfrac(d,g).With({linethickness:(f*0.2326)+"ex"}))}});c.Definitions.macros.udot=["AccentBelow","2E"];c.Definitions.macros.utilde=["AccentBelow","7E"];c.Parse.Augment({AccentBelow:function(f,d){var g=this.ParseArg(f);var e=this.mmlToken(a.mo(a.entity("#x"+d)).With({accent:true,stretchy:false}));this.Push(a.munderover(g,e).With({accent:true}))}});var b=c.Stack.Item;b.arrayformat=b.array.Subclass({EndEntry:function(){this.SUPER(arguments).EndEntry.call(this);if(this.env.format){this.arraydef.columnalign=this.env.format}}});c.Definitions.macros.format="Format";c.Definitions.environment.matrix[0]="ArrayWithFormat";c.Definitions.environment.pmatrix[0]="ArrayWithFormat";c.Definitions.environment.bmatrix[0]="ArrayWithFormat";c.Definitions.environment.Bmatrix[0]="ArrayWithFormat";c.Definitions.environment.vmatrix[0]="ArrayWithFormat";c.Definitions.environment.Vmatrix[0]="ArrayWithFormat";c.Parse.Augment({Format:function(d){var e=this.GetUpTo(d,"\\\\");e=e.replace(/\\(&|\\|[a-z][a-z]+)/gi,"").replace(/&/g,"\\&").replace(/((\\.)|.)/g,"$2").replace(/\\/g,"");e=e.replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center").replace(/&/g," ");this.stack.env.format=e},ArrayWithFormat:function(e,d,f){var g=b.arrayformat().With({arraydef:{columnalign:"center",columnspacing:"1em",rowspacing:"3pt"}});if(d){g.open=this.convertDelimiter(d)}if(f){g.close=this.convertDelimiter(f)}this.Push(e);return g}});c.Definitions.macros.eqno=["Extension","AMSmath"];c.Definitions.macros.leqno=["Extension","AMSmath"];MathJax.Hub.Register.StartupHook("TeX AMSmath Ready",function(){c.Definitions.macros.tag=["HandleTag",true];c.Definitions.macros.eqno=["HandleTag",false];c.Definitions.macros.leqno=["HandleTag",false];c.Parse.Augment({HandleTag:function(e,f){var d;while(this.i<this.string.length&&this.nextIsSpace()){this.i++}if(this.string.charAt(this.i)==='"'){this.i++;d=this.GetUpTo(e,'"');f=false}else{if(this.string.charAt(this.i)==="{"){d=this.trimSpaces(this.GetArgument(e))}else{d=this.trimSpaces(this.GetToLineEnd(e))}}if(f){d="("+d+")"}d=d.replace(/\\([#$_&%{}])/g,"$1");if(this.stack.global.notag){c.Error(e+" not allowed in "+this.stack.global.notag+" environment")}if(this.stack.global.tag){c.Error("Multiple "+e)}this.stack.global.tag=a.mtd.apply(a,this.InternalMath(d))},GetToLineEnd:function(d){var e=this.i;while(this.i<this.string.length){if(this.string.substr(this.i,2)==="\\\\"){break}if(this.string.substr(this.i,4)==="\\end"){break}this.i++}return this.string.substr(e,this.i-e)}})});c.Definitions.macros.dots="Dots";c.Parse.Augment({cdotTokens:{"+":true,"-":true,"\\pm":true,"\\mp":true,"\\setminus":true,"\\cdot":true,"\\times":true,"\\ast":true,"\\circ":true,"\\bullet":true,"\\cap":true,"\\cup":true,"\\uplus":true,"\\vee":true,"\\wedge":true,"\\oplus":true,"\\ominus":true,"\\otimes":true,"\\oslash":true,"\\odot":true},Dots:function(d){while(this.i<this.string.length&&this.nextIsSpace()){this.i++}var f=this.string.charAt(this.i);if(f==="\\"){f+=this.string.charAt(this.i+1);if(f.charAt(1).match(/[a-z]/i)){var e=this.i+2;while(e<this.string.length&&this.string.charAt(e).match(/[a-z]/i)){f+=this.string.charAt(e);e++}}}if(this.cdotTokens[f]){f="#x22EF"}else{f="#x2026"}this.Push(this.mmlToken(a.mi(a.entity(f))))}});c.Augment({prefilterMath:function(e,f,d){e=e.replace(/\\text\{\\(bf|rm|tt|it|sf) ([^}]*)\}/g,"{\\$1\\text{$2}}");return e.replace(/([_^]\s*\d)(\d)/g,"$1 $2")}})});MathJax.Ajax.loadComplete("[MathJax]/config/local/AMS.js");

