Help/Simple Equations: Difference between revisions

From CIRPwiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__TOC__
Typically numbered equations are centered in documents.  Due to the appearance of the wiki, however, all numbered equations shown on this wiki are left justified with a small indent and the equation number is right justified.
Typically numbered equations are centered in documents.  Due to the appearance of the wiki, however, all numbered equations shown on this wiki are left justified with a small indent and the equation number is right justified.


To produce a numbered equation in a wiki document, simply surround the LaTeX for the equations by the following: '''\ begin{equation}...\  end{equation)'''The equation number will be automatically incremented, but will not be shown unless desired.
==Numbered Equation==
To produce a numbered equation in a wiki document, simply surround the LaTeX for the equations by the following:  
 
 
<big><nowiki>{{Equation|<math> ... </math>|4}}</nowiki></big>
*Replace '...' with the LaTeX equation (without leading and ending delimiters).
*The number for the equation is the last parameter in the templateIn this case the equation number is 4.  
 


For example, this equation:
For example, this equation:
\begin{equation}
{{Equation|<math>
\left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}
\left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{4}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}
\end{equation}
</math>|4}}
 
was typed as follows:
 
 
'''<nowiki>{{Equation|</nowiki>'''<br>
'''<nowiki><math></nowiki><br>'''
'''&nbsp;&nbsp;&nbsp;<nowiki>\left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}</nowiki><br>'''
'''<nowiki></math>|4}}</nowiki>'''
 
==Equation Not Numbered==
If for some reason it is desired to have an equation set aside but turn off display of the equation number, Then do not use the Equation template (<nowiki>{{Equation| ... |#}}</nowiki>).  You do still need to preface your equation by the <nowiki><math> and </math></nowiki> delimiters.
 
For example, the above equation again:
<math>
\left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}
</math>


was typed as follows:<br>
was typed as follows:<br>
\\begin{equation}<br>
'''<nowiki><math></nowiki><br>'''
  \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}<br>
'''&nbsp;&nbsp;&nbsp;<nowiki>\left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}</nowiki><br>'''
\\end{equation}<br>
'''<nowiki></math></nowiki>'''
 
Some advanced equations have multiple lines, and it may be desired for each line to be aligned at a certain character on each line.
These advanced equations are described on the next page.
 
 
---------
[[Help/Adv._Equations|Adv. Equations]]

Latest revision as of 15:10, 13 December 2022

Typically numbered equations are centered in documents. Due to the appearance of the wiki, however, all numbered equations shown on this wiki are left justified with a small indent and the equation number is right justified.

Numbered Equation

To produce a numbered equation in a wiki document, simply surround the LaTeX for the equations by the following:


{{Equation|<math> ... </math>|4}}

  • Replace '...' with the LaTeX equation (without leading and ending delimiters).
  • The number for the equation is the last parameter in the template. In this case the equation number is 4.


For example, this equation:

  (4)

was typed as follows:


{{Equation|
<math>
   \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}
</math>|4}}

Equation Not Numbered

If for some reason it is desired to have an equation set aside but turn off display of the equation number, Then do not use the Equation template ({{Equation| ... |#}}). You do still need to preface your equation by the <math> and </math> delimiters.

For example, the above equation again:

was typed as follows:
<math>
   \left( {{\rho }_{s}}-\rho \right)g\frac{\pi }{6}{{d}^{3}}={{C}_{D}}\frac{\pi }{8}\rho W_{s}^{2}{{d}^{2}}
</math>

Some advanced equations have multiple lines, and it may be desired for each line to be aligned at a certain character on each line. These advanced equations are described on the next page.



Adv. Equations