|
[Sponsors] | |||||
|
|
|
#1 |
|
Administrator
Peter Jones
Join Date: Jan 2009
Posts: 399
Rep Power: 10 ![]() |
This is a brief introduction about how to write equations in the CFD Online discussion forums. The equation functionality is based on LaTeX, a versatile mathematical typesetting system which is often used to write scientific papers and books. With LaTeX mathematical equations are written using normal text and this makes it very suitable for a text-based forum like this. The forum will automatically generate images of the LaTeX codes it finds and display them properly. LaTeX often gives very nice looking formulas. LaTeX can be a bit difficult to get started with, but those who know it tend to like it very much. Here is a simple example to illustrate how it works:A usefull feature in the forum is that the LaTeX code used to write an equation can be seen when you hoover with the pointer over it. If you click on an equation a window will be opened displaying the LaTeX code used to write it. This makes it easy to learn from other people and to copy-and-paste equations from other posts.
You can see how all equations on this page have been written either by hoovering over them with the pointer or by clicking on them! LaTeX can be used in two ways:
There is a special LaTeX reference tool avalable in the advanced editor which helps you to find the codes needed to write symbols, relations, operators etc. in LaTeX. To open the LaTeX reference click on the symbol to the right just above the editor window.Below follows a summary of the most commonly used symbols, relations, operators and functions as well as a few other frequently asked questions. To see how these symbols or equations were created just click on the one you are interested in and a window will be opened showing the code used to create it: Symbols Lowercase Greek letters: ![]() Capital Greek letters: ![]() Operators and relations: ![]() Misc: Bracketing - () {} [] You can simply write the brackets you want. To get the correct size of the brackets you sometimes have to use the \left and \right keywords in front of the bracket. For example, just writing parentheses gives , but with \left and \right keywords you would get .Exponents and Subscripts - [math]a_i^n[/math] - [math]x_{i+1}^{2^{n+1}}[/math]Functions - Fractions, Radicals, Integrals, Sums, Limits, ... - [math]\frac{1}{2}[/math] - [math]\sqrt{x+y}[/math] - [math]\sqrt[n]{x}[/math] - [math]\int^\infty_0 f(x) \, dx[/math] - [math]\oint_\Gamma f(x) \, ds[/math] - [math]\sum_{i=1}^{\infty}\frac{1}{i}[/math] - [math]\lim_{x\to\infty}\frac{1}{x}[/math]Trigonometric and Logarithmic Functions Please use these instead of simply typing in "sin". That ensures that the function is typeset properly with the right font and spacing. - [math]\cos^2 x + \sin^2 x = 1[/math] - [math]\tanh(c)[/math] - [math]\log n^2[/math] - [math]\ln(e)[/math]Spacing Sometime you may want to add extra horizontal space between characters. The following codes can be used to add extra space:
|
|
|
|
|
|
|
|
|
#2 |
|
New Member
Mohit Madan
Join Date: Oct 2009
Posts: 4
Rep Power: 5 ![]() |
||
|
|
|
|
|
|
|
#3 |
|
New Member
Mohit Madan
Join Date: Oct 2009
Posts: 4
Rep Power: 5 ![]() |
||
|
|
|
|
|
|
|
#4 |
|
New Member
Mohit Madan
Join Date: Oct 2009
Posts: 4
Rep Power: 5 ![]() |
||
|
|
|
|
|
|
|
#5 |
|
New Member
Mohit Madan
Join Date: Oct 2009
Posts: 4
Rep Power: 5 ![]() |
||
|
|
|
|
|
|
|
#6 |
|
Senior Member
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 177
Rep Power: 5 ![]() |
||
|
|
|
|
|
|
|
#7 |
|
New Member
Sha Liu
Join Date: Nov 2011
Posts: 1
Rep Power: 0 ![]() |
cool. i often use mathematica to write equations. then they can be transform to latex form.
|
|
|
|
|
|
|
|
|
#8 |
|
New Member
Stefan Bjornsson
Join Date: Apr 2013
Posts: 7
Rep Power: 2 ![]() |
||
|
|
|
|
|
|
|
#9 |
|
New Member
zdong
Join Date: Aug 2011
Posts: 10
Rep Power: 3 ![]() |
||
|
|
|
|
![]() |
| Tags |
| equations, formulas, latex, symbols |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Guide: Getting Started with the CFD Online Discussion Forums | pete | Site Help, Feedback & Discussions | 2 | March 19, 2009 11:28 |
| Writting equations on cfd-online.com | Guillermo Marraco | CFD-Wiki | 2 | September 11, 2006 18:12 |
| latex and dvi | Hong | Main CFD Forum | 1 | March 31, 2000 09:27 |
| Latex | chaker | Main CFD Forum | 3 | October 27, 1999 09:19 |