\usepackage{algorithm}\usepackage{algorithmic} Here is an exemple: \begin{algorithm}\caption{Calculate$y=x^n$}\begin{algorithmic}\REQUIRE$n\geq0\veex\neq0$\ENSURE$y=x^n$\STATE$y\leftarrow1$\IF{$n <0$}\STATE$X\leftarrow1/x$\STATE$N\leftarrow-n$...
pmatrix, bmatrix, vmatrix, Vmatrix are Latex environments: -* p for parentheses -* b for brackets -* v for verts -* B for braces -* V for double verts. How to write an m x n matrix in LaTeX How to write an m x n matrix with big parentheses \begin{equation*...
\begin{tabular}{|r|l|}\hline2B&hexadecimal\\53&octal\\\cline{2-2}101011&binary\\\hline\hline43&decimal\\\hline\end{tabular}
To write underscore symbole in LateX, you must use backslash to protect it like follows $$\_$$$a\_b$$$a\_b\_c$$ which gives \[\_\] \[a\_b\] \[a\_b\_c\]
c1->Update();/// Create a one dimensional histogram (one float per bin)// and fill it following the distribution in function sqroot.//pad2->cd(); pad2->GetFrame()->SetFillColor(42); pad2->GetFrame()->SetBorderMode(-1); pad...
TPaveLabel* lfunction =newTPaveLabel(5,39,9.8,46,"The sqroot function"); lfunction->SetFillColor(41); lfunction->Draw(); c1->Update();/// Create a one dimensional histogram (one float per bin)// and fill it following the distribution in function sqroot.//pad2->cd(); pad...
How to write angle in latex langle, rangle, wedge, angle, measuredangle, sphericalangle Angles
To write a vector in Latex, we can use\vecfunction $\vec{AB}=0_E$ \[\vec{AB} = 0_E\] or\overrightarrowfunction $\overrightarrow{AB}=0_E$ \[\overrightarrow{AB} = 0_E\] Note: as {Keyboard warrior} said in the comments\overrightarrowfunction looks more like the vec...
How to write a vector in LatexTo write a vector in Latex, we can use \vec function$\vec{AB} = 0_E$AB→=0E or\overrightarrow function$\overrightarrow{AB} = 0_E$AB→=0E Note: as {Keyboard warrior} said in the comments \overrightarrow function looks more like the ...
In Latex, we use theamsfontspackage In the preamble we have: \usepackage{amsfonts} and\mathbbcommand $\mathbb{R}$is the set of real numbers. $\mathbb{R}$ is the set of real numbers. An another example: $$\mathbb{N}\subset\mathbb{Z}\subset\mathbb{D...