当前位置:网站首页>"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
边栏推荐
- 《数字经济全景白皮书》保险数字化篇 重磅发布
- The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
- Quickly use various versions of PostgreSQL database in docker
- Wasserstein slim gain with gradient poverty (wsgain-gp) introduction and code implementation -- missing data filling based on generated countermeasure network
- 【无人机】多无人协同任务分配程序平台含Matlab代码
- TypeScript中使用类型别名
- There are only two TXT cells in the ArrayExpress database. Can you only download the sequencing run matrix from line to ENA?
- Wind chime card issuing network source code latest version - commercially available
- DAY FIVE
- 零代码高回报,如何用40套模板,能满足工作中95%的报表需求
猜你喜欢
Asset security issues or constraints on the development of the encryption industry, risk control + compliance has become the key to breaking the platform
【通信】两层无线 Femtocell 网络上行链路中的最优功率分配附matlab代码
Gold three silver four, don't change jobs
Penetration test --- database security: detailed explanation of SQL injection into database principle
After 3 years of testing bytecan software, I was ruthlessly dismissed in February, trying to wake up my brother who was paddling
pytest多进程/多线程执行测试用例
什么是响应式对象?响应式对象的创建过程?
The programmer refused the offer because of low salary, HR became angry and netizens exploded
Entropy information entropy cross entropy
Eureka Client启动后就关闭 Unregistering application xxx with eureka with status DOWN
随机推荐
Experiment 4: installing packages from Gui
谁说新消费品牌大溃败?背后有人赢麻了
17、 MySQL - high availability + read / write separation + gtid + semi synchronous master-slave replication cluster
[unmanned aerial vehicle] multi unmanned cooperative task allocation program platform, including Matlab code
leetcode:236. 二叉树的最近公共祖先
What should I do if the USB flash disk data is formatted and how can I recover the formatted USB flash disk data?
【CVPR 2022】目标检测SOTA:DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
DAY TWO
Who said that new consumer brands collapsed? Someone behind me won
Wind chime card issuing network source code latest version - commercially available
[boutique] Pinia Persistence Based on the plug-in Pinia plugin persist
PostgreSQL高可用之repmgr(1主2从+1witness)+Pgpool-II实现主从切换+读写分离
Gradle知識概括
STM32 enters and wakes up the stop mode through the serial port
快讯 l Huobi Ventures与Genesis公链深入接洽中
DevOps可以帮助减少技术债务的十种方式
Pinia module division
Basic chart interpretation of "Oriental selection" hot out of circle data
MATLIB reads data from excel table and draws function image
Supersocket 1.6 creates a simple socket server with message length in the header