当前位置:网站首页>"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
边栏推荐
- Wasserstein Slim GAIN with Gradient Penalty(WSGAIN-GP)介绍及代码实现——基于生成对抗网络的缺失数据填补
- vector的使用方法_vector指针如何使用
- Every year, 200 billion yuan is invested in the chip field, and "China chip" venture capital is booming
- 短链的设计
- 快讯 l Huobi Ventures与Genesis公链深入接洽中
- DAY TWO
- 在docker中快速使用各个版本的PostgreSQL数据库
- 达晨史上最大单笔投资,今天IPO了
- MATLIB从excel表中读取数据并画出函数图像
- STM32通过串口进入和唤醒停止模式
猜你喜欢
【2022全网最细】接口测试一般怎么测?接口测试的流程和步骤
谁说新消费品牌大溃败?背后有人赢麻了
快讯 l Huobi Ventures与Genesis公链深入接洽中
【OFDM通信】基于深度学习的OFDM系统信号检测附matlab代码
DAY THREE
Introduction to GPIO
Tourism Management System Based on jsp+servlet+mysql framework [source code + database + report]
Competition between public and private chains in data privacy and throughput
The largest single investment in the history of Dachen was IPO today
Pytest multi process / multi thread execution test case
随机推荐
After 3 years of testing bytecan software, I was ruthlessly dismissed in February, trying to wake up my brother who was paddling
Experiment 4: installing packages from Gui
【自动化测试框架】关于unittest你需要知道的事
DAY ONE
Pinia module division
Yaduo Sangu IPO
《LaTex》LaTex数学公式简介「建议收藏」
DAY FIVE
Design of short chain
The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
Use source code compilation to install postgresql13.3 database
专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
The programmer said, "I'm 36 years old, and I don't want to be rolled, let alone cut."
Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
基于SSM框架实现的房屋租赁管理系统
Unity 颜色板|调色板|无级变色功能
每年 2000 亿投资进入芯片领域,「中国芯」创投正蓬勃
Local deployment Zeppelin 0.10.1
Résumé des connaissances de gradle
2022 latest blind box mall complete open source operation source code / docking visa free payment interface / building tutorial