当前位置:网站首页>《LaTex》LaTex数学公式简介「建议收藏」
《LaTex》LaTex数学公式简介「建议收藏」
2022-07-06 16:30:00 【Java架构师必看】
大家好,我是架构君,一个会写代码吟诗的架构师。今天说一说《LaTex》LaTex数学公式简介「建议收藏」,希望能够帮助大家进步!!!
LaTex数学公式简介
文章目录
一、引用数学公式的方法
CSDN-markdown编辑器支持基于MathJax编写LaTeX数学公式,如果你的文档只需要几个简单的数学公式,那么普通的LaTeX就拥有你需要的大多数工具。如果你正在编写包含许多复杂公式的科学文档,那么“mathtools包”引入了几个新命令,这些命令比基本LaTeX提供的命令更强大,更灵活。 导入“mathtools包”的指令:
\usepackage { mathtools }
只听到从架构师办公室传来架构君的声音: 怅离群万里,恍然惊散。有谁来对上联或下联?
当我们在文本中引用LaTex编辑公式时,数学公式内容和文字内容是掺杂在一起的,所以需要在文本中需要识别出数学公式的内容,此时便使用标准的环境名称来引用LaTex编辑数学公式。此处博主将引用公式的方式分为“文内公式”和“独行公式”。 下表为“文内公式”和“独行公式”的环境名称:
类型 | 环境名称 |
---|---|
文内公式 | $…$ |
独行公式 | $$…$$ |
例1:
书写“文内公式”的代码:
此代码由Java架构师必看网-架构君整理
这是我编辑的数学公式 $k_{n + 1} = n^2 + k_n^2 - k_{ n-1 }$
书写效果:
这是我编辑的数学公式k _ { n + 1 } = n ^ 2 + k _ n ^ 2 - k _ { n-1 }
例2:将例1的改为
书写“独行公式”的代码:
这是我编辑的数学公式 $$k_{n + 1} = n^2 + k_n^2 - k_{ n-1 }$$
书写效果:
这是我编辑的数学公式 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
二、LaTex数学公式的基本代码
1. 符号
1.1. 常规的数学符号:直接从键盘输入
此代码由Java架构师必看网-架构君整理
+ #加
- #减
* #乘
/ #除
% #求余
() #小括号
[] #中括号
{} #大括号
......
1.2. 任何
\forall
1.3. 存在
\exists
1.4. 属于
\in
1.5. 小于等于
\leq
1.6. 大于等于
\geq
1.7. 约等于
\approx
1.8. 更多数学符号
更多数学符号请点击综合数学符号列表
2. 希腊字母
希腊字母只需要在反斜杠后输入字母的名称。
2.1. 阿尔法
\alpha
2.2. 贝塔
\beta
2.3. 伽马
\gamma
2.4. 希腊字母表
3. 运算符
运算符是一个写成单词的函数:三角函数(sin,cos,tan),对数和指数(log,exp),极限(lim),以及行列式(det)。
3.1. 三角函数
\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. 极限
\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. 模块化运算符
a \bmod b
或
a \pmod b
a   m o d   b a \bmod b amodb
3.4. 未预定义的运算符(例如argmax)
使用未预定义的运算符请点击自定义运算符
4. 项数和指数
项数和指数等同于普通文本模式中的上标和下标,插入符号分别为 ^
和 _
。如果项数和指数的形势和内容复杂的,则应使用花括号 {}
对它们进行分组。
4.1. 项数
N_{k+1}
N k + 1 N_{k+1} Nk+1
4.2. 项数:可以配合 |
使用表示具体的某一项
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. 指数
N^{k+1}
N k + 1 N^{k+1} Nk+1
5. 分数和二项式
5.1. 分数
\ frac { n!} { k!(nk)!}
n ! k ! ( n − k ) ! \frac { n!} { k!(n-k)!} k!(n−k)!n!
5.2. 分数:分数中嵌入分数
\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. 分数:使用项数和指数的方法来表示简单的分数
^3/_7
3 / 7 ^3/_7 3/7
5.4. 二项式
\ binom {n}{k}
( n k ) \binom {n} {k} (kn)
6. 开根
6.1. 开平方根
\sqrt { \frac { a } { b }}
a b \sqrt { \frac { a } { b }} ba
6.2. 开 n 次方根
\sqrt [n] {a}
a n \sqrt [n] {a} na
7. 求和、积分
7.1. 求和
\sum _ { i = 1 } ^ { 10 } t _ i
∑ i = 1 10 t i \sum _ { i = 1 } ^ { 10 } t _ i i=1∑10ti
7.2. 积分
积分的上下限遵循符号 ^
和 _
。使用 d
(如:dx)表示积分变量很重要,通过\ mathrm {}命令获得积分变量,并使用 \,
将积分变量与被积函数分开。
\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. 矩阵
使用矩阵环境创建基本矩阵:与其他类似于表的结构一样,条目由行指定,列使用 &
符号分隔,新行以双反斜杠 \\
分隔。
\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
三、参考文献
边栏推荐
- leetcode:236. 二叉树的最近公共祖先
- AI金榜题名时,MLPerf榜单的份量究竟有多重?
- Leetcode problem solving - 889 Construct binary tree according to preorder and postorder traversal
- Close unregistering application XXX with Eureka with status down after Eureka client starts
- 公链与私链在数据隐私和吞吐量上的竞争
- Hydrogen future industry accelerates | the registration channel of 2022 hydrogen energy specialty special new entrepreneurship competition is opened!
- Common modification commands of Oracle for tables
- How does crmeb mall system help marketing?
- Oracle中使用包FY_Recover_Data.pck来恢复truncate误操作的表
- Automatic test tool katalon (WEB) test operation instructions
猜你喜欢
The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
零代码高回报,如何用40套模板,能满足工作中95%的报表需求
App general function test cases
【自动化测试框架】关于unittest你需要知道的事
若依请求url中带有jsessionid的解决办法
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
2022 latest blind box mall complete open source operation source code / docking visa free payment interface / building tutorial
Why is bat still addicted to 996 when the four-day working system is being tried out in Britain?
自动化测试工具Katalon(Web)测试操作说明
app通用功能测试用例
随机推荐
If the request URL contains jsessionid, the solution
[212] what are three methods for PHP to send post requests
Interface joint debugging test script optimization v4.0
B 站弹幕 protobuf 协议还原分析
How does crmeb mall system help marketing?
【系统分析师之路】第七章 复盘系统设计(面向服务开发方法)
【精品】pinia 基于插件pinia-plugin-persist的 持久化
Can online reload system software be used safely? Test use experience to share with you
Today's sleep quality record 78 points
How to find out if the U disk file of the computer reinstallation system is hidden
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
基础图表解读“东方甄选”爆火出圈数据
为什么完全背包要用顺序遍历?简要解释一下
Hydrogen future industry accelerates | the registration channel of 2022 hydrogen energy specialty special new entrepreneurship competition is opened!
内网穿透zerotier 外网(手机、电脑等)访问内网设备(树莓派、NAS、电脑等)
Gradle knowledge generalization
士大夫哈哈哈
Close unregistering application XXX with Eureka with status down after Eureka client starts
The programmer refused the offer because of low salary, HR became angry and netizens exploded
Design of short chain