当前位置:网站首页>"Latex" Introduction to latex mathematical formula "suggestions collection"

"Latex" Introduction to latex mathematical formula "suggestions collection"

2022-07-06 23:57:00 Java architects must see

Hello everyone , I'm wang Jun , An architect who can write code and recite poetry . Let's talk about it today 《LaTex》LaTex Introduction to mathematical formulas 「 Recommended collection 」, I hope it can help you make progress !!!

LaTex Introduction to mathematical formulas


List of articles

One 、 The method of quoting mathematical formulas

    CSDN-markdown Editor support is based on MathJax To write LaTeX The mathematical formula , If your document only needs a few simple mathematical formulas , So common LaTeX Have most of the tools you need . If you are writing a scientific document containing many complex formulas , that “mathtools package ” Several new commands have been introduced , These commands are more basic LaTeX The command provided is more powerful , More flexible . Import “mathtools package ” Instructions :

\usepackage { mathtools }

I only heard the voice of the architect from the architect's office : Thousands of miles away from the crowd , Suddenly scattered . Who's going to answer the first couplet or the second couplet ?

     When we quote LaTex When editing a formula , Mathematical formula content and text content are mixed , Therefore, we need to recognize the content of mathematical formulas in the text , In this case, the standard environment name is used to reference LaTex Edit mathematical formulas . Here, bloggers divide the way of quoting formulas into “ Formula in the text ” and “ The solitary formula ”.      The table below for “ Formula in the text ” and “ The solitary formula ” The name of the environment :

type

Name of the environment

Formula in the text

$…$

The solitary formula

$$…$$

example 1:

Writing “ Formula in the text ” Code for :

 This code is created by Java Architects must see the net - Structure Sorting 
 This is the mathematical formula I edited  $k_{n + 1} = n^2 + k_n^2 - k_{ n-1 }$

The writing effect :

This is the mathematical formula I edited k _ { n + 1 } = n ^ 2 + k _ n ^ 2 - k _ { n-1 }

example 2: Will example 1 Of Change it to

Writing “ The solitary formula ” Code for :

 This is the mathematical formula I edited  $$k_{n + 1} = n^2 + k_n^2 - k_{ n-1 }$$

The writing effect :

This is the mathematical formula I edited k n + 1 = n 2 + k n 2 − k n − 1 k_{n + 1} = n^2 + k_n^2 - k_{ n-1 } kn+1​=n2+kn2​−kn−1​

Two 、LaTex Basic code of mathematical formula

1. Symbol

1.1. Conventional mathematical symbols : Enter... Directly from the keyboard
 This code is created by Java Architects must see the net - Structure Sorting 
+    # Add 
-    # reduce 
*    # ride 
/    # except 
%    # Seeking remainder 
()   # parentheses 
[]   # brackets 
{}   # Curly braces 

......
1.2. whatever
\forall
1.3. There is
\exists
1.4. Belong to
\in
1.5. Less than or equal to
\leq
1.6. Greater than or equal to
\geq
1.7. About equal to
\approx
1.8. More mathematical symbols

     For more mathematical symbols, please click List of comprehensive mathematical symbols

2. The Greek letter

     Greek letters only need to enter the name of the letter after the backslash .

2.1. alpha
\alpha
2.2. Beta
\beta
2.3. gamma
\gamma
2.4. The Greek alphabet

3. Operator

     Operator is a function written as a word : Trigonometric functions (sin,cos,tan), Logarithm and exponent (log,exp), limit (lim), And determinant (det).

3.1. Trigonometric functions
\cos(2 \theta)= \cos^2 \theta - \sin^2 \theta

cos ⁡ ( 2 θ ) = cos ⁡ 2 θ − s i n 2 θ \cos(2 \theta)= \cos ^ 2 \theta - \ sin ^ 2 \theta cos(2θ)=cos2θ− sin2θ

3.2. limit
\lim_{x \to  \infty } \exp(-x)= 0

lim ⁡ x → ∞ exp ⁡ ( − x ) = 0 \lim_{x \to \infty } \exp(-x)= 0 x→∞lim​exp(−x)=0

3.3. Modular operators
a \bmod b

or

a \pmod b

a   m o d   b a \bmod b amodb

3.4. Undefined operators ( for example argmax)

     To use an operator that is not predefined, click Custom operators

4. Number of items and index

     The number of items and index are equivalent to superscript and subscript in normal text mode , The insertion symbols are ^ and _ . If the situation and content of items and indexes are complex , Curly brackets should be used {} Group them .

4.1. Number of items
N_{k+1}

N k + 1 N_{k+1} Nk+1​

4.2. Number of items : Can cooperate with | Use to express a specific item
f(n)= n^5 + 4n^2 + 2|_{ n = 17}

f ( n ) = n 5 + 4 n 2 + 2 ∣ n = 17 f(n)= n ^ 5 + 4n ^ 2 + 2 | _ { n = 17 } f(n)=n5+4n2+2∣n=17​

4.3. Index
N^{k+1}

N k + 1 N^{k+1} Nk+1

5. Fractions and binomials

5.1. fraction
\ frac { n!} { k!(nk)!}

n ! k ! ( n − k ) ! \frac { n!} { k!(n-k)!} k!(n−k)!n!​

5.2. fraction : Embed scores in scores
\frac{\frac {1} {x} + \frac {1} {y}}{y-z}

1 x + 1 y y − z \frac{\frac {1} {x} + \frac {1} {y}} {y-z} y−zx1​+y1​​

5.3. fraction : Use the method of number of items and index to express simple scores
^3/_7

3 / 7 ^3/_7 3/7​

5.4. binomial
\ binom {n}{k}

( n k ) \binom {n} {k} (kn​)

6. Open the root

6.1. Square root
\sqrt { \frac { a } { b }}

a b \sqrt { \frac { a } { b }} ba​ ​

6.2. open n Power root
\sqrt [n] {a}

a n \sqrt [n] {a} na ​

7. Sum up 、 integral

7.1. Sum up
\sum _ { i = 1 } ^ { 10 } t _ i

∑ i = 1 10 t i \sum _ { i = 1 } ^ { 10 } t _ i i=1∑10​ti​

7.2. integral

     The upper and lower bounds of the integral follow the sign ^ and _. Use d( Such as :dx) It means that the integral variable is very important , adopt \ mathrm {} Command to get the integral variable , And use \, Separate the integral variable from the integrand .

\int _ 0 ^ \infty  \mathrm { e } ^ { -x } \,\mathrm { d } x

∫ 0 ∞ e − x   d x \int _ 0 ^ \infty \mathrm { e } ^ { -x } \, \mathrm { d } x ∫0∞​e−xdx

7. matrix

     Use the matrix environment to create a basic matrix : Like other table like structures , Entries are specified by rows , Column usage symbols , New line with double backslash \\ Separate .

 \begin {matrix} 
 a &b&c \\
 d & e&f \\
 g&h&i 
 \end {matrix}

a b c d e f g h i \begin {matrix} a &b&c \\ d & e&f \\ g&h&i \end {matrix} adg​beh​cfi​

3、 ... and 、 reference

WIKIBOOKS:https://en.wikibooks.org/wiki/LaTeX/Mathematics

原网站

版权声明
本文为[Java architects must see]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061628470178.html