CurveExpert Basic 2.2.3 documentation

# Mathtext¶

You can use a subset of TeX markup in any label by placing it inside a pair of dollar signs ($). This capability allows you to typeset quite complex mathematical expressions within any text label on any plot. Regular text and math text can be freely intermixed. For example: Surface Area$m^2$ renders as “”. Note To make it easy to display monetary values such as$100.00, if a single dollar sign is present in the entire string, it will be displayed as a dollar sign.

Greek letters and a large number of symbols are supported.

## Subscripts and superscripts¶

To make subscripts and superscripts, use the '_' and '^' symbols:

$\alpha_i > \beta_i$


Some symbols automatically put their sub/superscripts under and over the operator. For example, to write the sum of from to , you could do:

$\sum_{i=0}^\infty x_i$


## Fractions, binomials and stacked numbers¶

Fractions, binomials and stacked numbers can be created with the \frac{}{}, \binom{}{} and \stackrel{}{} commands, respectively:

$\frac{3}{4} \binom{3}{4} \stackrel{3}{4}$


produces

Fractions can be arbitrarily nested:

$\frac{5 - \frac{1}{x}}{4}$


produces

Note that special care needs to be taken to place parentheses and brackets around fractions. Doing things the obvious way produces brackets that are too small:

$(\frac{5 - \frac{1}{x}}{4})$


The solution is to precede the bracket with \left and \right to inform the parser that those brackets encompass the entire object:

$\left(\frac{5 - \frac{1}{x}}{4}\right)$


Radicals can be produced with the \sqrt[]{} command. For example:

$\sqrt{2}$


Any base can (optionally) be provided inside square brackets. Note that the base must be a simple expression, and cannot contain layout commands such as fractions or sub/superscripts:

$\sqrt[3]{x}$


## Inline Fonts¶

The default font is italics for mathematical symbols.

To change fonts, eg, to write “sin” in a Roman font, enclose the text in a font command:

$s(t) = \mathcal{A}\mathrm{sin}(2 \omega t)$


More conveniently, many commonly used function names that are typeset in a Roman font have shortcuts. So the expression above could be written as follows:

$s(t) = \mathcal{A}\sin(2 \omega t)$


Here “s” and “t” are variable in italics font (default), “sin” is in Roman font, and the amplitude “A” is in calligraphy font. Note in the example above the calligraphy A is extremely close to the sin. You can use a spacing command to add a little whitespace between them:

s(t) = \mathcal{A}\/\sin(2 \omega t)


The choices available with all fonts are:

Command

Result

\mathrm{Roman}

\mathit{Italic}

\mathtt{Typewriter}

\mathcal{CALLIGRAPHY}

## Global Fonts¶

In CurveExpert Basic, there are three choices for the global font to use for math symbols: Computer Modern, STIX Serif, and STIX Sans Serif. To select one of these fonts, choose Edit->Preferences->Graphing->Global mathtext font.

The look of each font slightly different, with the Computer Modern font resembling the traditional TeX typsetting most closely, STIX Serif meant to blend with Serif-style fonts (such as Times New Roman), and STIX Sans Serif being a mathematical font without any serifs at all.

## Accents¶

An accent command may precede any symbol to add an accent above it. There are long and short forms for some of them.

Command

Result

\acute a or \'a

\bar a

\breve a

\ddot a or \"a

\dot a or \.a

\grave a or \a

\hat a or \^a

\tilde a or \~a

\vec a

In addition, there are two special accents that automatically adjust to the width of the symbols below:

Command

Result

\widehat{xyz}

\widetilde{xyz}

Care should be taken when putting accents on lower-case i’s and j’s. Note that in the following \imath is used to avoid the extra dot over the i:

r"$\hat i\ \ \hat \imath$"


## Symbols¶

Other symbols available in math typesetting are listed below.

Lower-case Greek

 \alpha \beta \chi \delta \digamma \epsilon \eta \gamma \iota \kappa \lambda \mu \nu \omega \phi \pi \psi \rho \sigma \tau \theta \upsilon \varepsilon \varkappa \varphi \varpi \varrho \varsigma \vartheta \xi \zeta

Upper-case Greek

 \Delta \Gamma \Lambda \Omega \Phi \Pi \Psi \Sigma \Theta \Upsilon \Xi \mho \nabla

Hebrew

 \aleph \beth \daleth \gimel

Delimiters

 / [ \Downarrow \Uparrow \Vert \backslash \downarrow \langle \lceil \lfloor \llcorner \lrcorner \rangle \rceil \rfloor \ulcorner \uparrow \urcorner \vert \{ \| \} ] |

Big symbols

 \bigcap \bigcup \bigodot \bigoplus \bigotimes \biguplus \bigvee \bigwedge \coprod \int \oint \prod \sum

Standard function names

 \Pr \arccos \arcsin \arctan \arg \cos \cosh \cot \coth \csc \deg \det \dim \exp \gcd \hom \inf \ker \lg \lim \liminf \limsup \ln \log \max \min \sec \sin \sinh \sup \tan \tanh

Binary operation and relation symbols

 \Bumpeq \Cap \Cup \Doteq \Join \Subset \Supset \Vdash \Vvdash \approx \approxeq \ast \asymp \backepsilon \backsim \backsimeq \barwedge \because \between \bigcirc \bigtriangledown \bigtriangleup \blacktriangleleft \blacktriangleright \bot \bowtie \boxdot \boxminus \boxplus \boxtimes \bullet \bumpeq \cap \cdot \circ \circeq \coloneq \cong \cup \curlyeqprec \curlyeqsucc \curlyvee \curlywedge \dag \dashv \ddag \diamond \div \divideontimes \doteq \doteqdot \dotplus \doublebarwedge \eqcirc \eqcolon \eqsim \eqslantgtr \eqslantless \equiv \fallingdotseq
 \frown \geq \geqq \geqslant \gg \ggg \gnapprox \gneqq \gnsim \gtrapprox \gtrdot \gtreqless \gtreqqless \gtrless \gtrsim \in \intercal \leftthreetimes \leq \leqq \leqslant \lessapprox \lessdot \lesseqgtr \lesseqqgtr \lessgtr \lesssim \ll \lll \lnapprox \lneqq \lnsim \ltimes \mid \models \mp \nVDash \nVdash \napprox \ncong \ne \neq \neq \nequiv \ngeq \ngtr \ni \nleq \nless \nmid \notin \nparallel \nprec \nsim \nsubset \nsubseteq \nsucc \nsupset \nsupseteq \ntriangleleft
 \ntrianglelefteq \ntriangleright \ntrianglerighteq \nvDash \nvdash \odot \ominus \oplus \oslash \otimes \parallel \perp \pitchfork \pm \prec \precapprox \preccurlyeq \preceq \precnapprox \precnsim \precsim \propto \rightthreetimes \risingdotseq \rtimes \sim \simeq \slash \smile \sqcap \sqcup \sqsubset \sqsubset \sqsubseteq \sqsupset \sqsupset \sqsupseteq \star \subset \subseteq \subseteqq \subsetneq \subsetneqq \succ \succapprox \succcurlyeq \succeq \succnapprox \succnsim \succsim \supset \supseteq \supseteqq \supsetneq \supsetneqq \therefore \times \top \triangleleft \trianglelefteq
 \triangleq \triangleright \trianglerighteq \uplus \vDash \varpropto \vartriangleleft \vartriangleright \vdash \vee \veebar \wedge \wr

Arrow symbols

 \Downarrow \Leftarrow \Leftrightarrow \Lleftarrow \Longleftarrow \Longleftrightarrow \Longrightarrow \Lsh \Nearrow \Nwarrow \Rightarrow \Rrightarrow \Rsh \Searrow \Swarrow \Uparrow \Updownarrow \circlearrowleft \circlearrowright \curvearrowleft \curvearrowright \dashleftarrow \dashrightarrow \downarrow \downdownarrows \downharpoonleft \downharpoonright \hookleftarrow \hookrightarrow \leadsto \leftarrow \leftarrowtail \leftharpoondown \leftharpoonup \leftleftarrows \leftrightarrow \leftrightarrows \leftrightharpoons \leftrightsquigarrow \leftsquigarrow
 \longleftarrow \longleftrightarrow \longmapsto \longrightarrow \looparrowleft \looparrowright \mapsto \multimap \nLeftarrow \nLeftrightarrow \nRightarrow \nearrow \nleftarrow \nleftrightarrow \nrightarrow \nwarrow \rightarrow \rightarrowtail \rightharpoondown \rightharpoonup \rightleftarrows \rightleftarrows \rightleftharpoons \rightleftharpoons \rightrightarrows \rightrightarrows \rightsquigarrow \searrow \swarrow \to \twoheadleftarrow \twoheadrightarrow \uparrow \updownarrow \updownarrow \upharpoonleft \upharpoonright \upuparrows

Miscellaneous symbols

 \\$ \AA \Finv \Game \Im \P \Re \S \angle \backprime \bigstar \blacksquare \blacktriangle \blacktriangledown \cdots \checkmark \circledR \circledS \clubsuit \complement \copyright \ddots \diamondsuit \ell \emptyset \eth \exists \flat \forall \hbar \heartsuit \hslash \iiint \iint \iint \imath \infty \jmath \ldots \measuredangle \natural \neg \nexists \oiiint \partial \prime \sharp \spadesuit \sphericalangle \ss \triangledown \varnothing \vartriangle \vdots \wp \yen`