Tuesday, September 27, 2022
HomeMatlabHouse Displayed Mathematical Equations – Nick Higham

House Displayed Mathematical Equations – Nick Higham

An equation or different mathematical assemble is separated from a qualifying expression by a quad. Examples:

notag     |a_{ii}| ge displaystylesum_{jne i} |a_{ij}|, quad i=1colon n.

notag       fl(xmathbin{mathrm{op}}y) = (xmathbin{mathrm{op}} y)(1+delta), quad |delta|le u,       quad mathbin{mathrm{op}} =+,-,*,/.

notag    y' = t^2+y^2, quad 0le tle 1, quad y(0)=0.

When the qualifying expression is a prepositional phrase it’s given normal sentence spacing. Examples:

notag min_x c^Tx quad mathrm{subject~to~} Ax=b,~ xge 0.

notag   |J(v)-J(w)| le theta_L |v-w| quad   mathrm{for~all~} v,w in mathbb{R}^n.

The primary instance was typed as (utilizing the equation* surroundings supplied by the amsmath bundle)

min_x c^Tx quad textual content{topic to $Ax=b$, $xge 0$}.

Right here, the qualifying phrase is positioned inside a textual content command, which jumps out of math mode and codecs its argument as common textual content, with the same old interword spacing in impact, and we re-enter math mode for the situations. That is higher than writing

min_x c^Tx quad textual content{topic to} ~Ax=b, ~xge 0.

with onerous areas. Observe that textual content is a command from the amsmath bundle, and it’s just like the LaTeX command mbox and the TeX command hbox, each of which work equally nicely right here.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments