当前位置:网站首页>"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】
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→∞limexp(−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∑10ti
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} adgbehcfi
3、 ... and 、 reference
边栏推荐
- Experiment 5: common automation libraries
- 在Docker中分分钟拥有Oracle EMCC 13.5环境
- 士大夫哈哈哈
- Design a red envelope grabbing system
- 《数字经济全景白皮书》保险数字化篇 重磅发布
- [CVPR 2022] semi supervised object detection: dense learning based semi supervised object detection
- Gradle knowledge generalization
- PostgreSQL使用Pgpool-II实现读写分离+负载均衡
- 【自动化测试框架】关于unittest你需要知道的事
- [boutique] Pinia Persistence Based on the plug-in Pinia plugin persist
猜你喜欢
Who said that new consumer brands collapsed? Someone behind me won
Design a red envelope grabbing system
Pytest multi process / multi thread execution test case
17、 MySQL - high availability + read / write separation + gtid + semi synchronous master-slave replication cluster
What is AVL tree?
Entropy information entropy cross entropy
Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
Close unregistering application XXX with Eureka with status down after Eureka client starts
The best sister won the big factory offer of 8 test posts at one go, which made me very proud
[communication] optimal power allocation in the uplink of two-layer wireless femtocell network with matlab code
随机推荐
Gradle知識概括
How does win11 restore the traditional right-click menu? Win11 right click to change back to traditional mode
GEO数据挖掘(三)使用DAVID数据库进行GO、KEGG富集分析
Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
DAY FIVE
[unmanned aerial vehicle] multi unmanned cooperative task allocation program platform, including Matlab code
刘永鑫报告|微生物组数据分析与科学传播(晚7点半)
MySQL主从之多源复制(3主1从)搭建及同步测试
Every year, 200 billion yuan is invested in the chip field, and "China chip" venture capital is booming
DAY TWO
DAY ONE
PostgreSQL uses pgpool II to realize read-write separation + load balancing
Can online reload system software be used safely? Test use experience to share with you
Oracle对表进行的常用修改命令
三句话简要介绍子网掩码
There are only two TXT cells in the ArrayExpress database. Can you only download the sequencing run matrix from line to ENA?
Zero code and high return. How to use 40 sets of templates to meet 95% of the reporting needs in the work
MySQL master-slave multi-source replication (3 master and 1 slave) setup and synchronization test
内网穿透zerotier 外网(手机、电脑等)访问内网设备(树莓派、NAS、电脑等)
[CVPR 2022] semi supervised object detection: dense learning based semi supervised object detection