当前位置:网站首页>《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. 任何
\forall1.3. 存在
\exists1.4. 属于
\in1.5. 小于等于
\leq1.6. 大于等于
\geq1.7. 约等于
\approx1.8. 更多数学符号
更多数学符号请点击综合数学符号列表
2. 希腊字母
希腊字母只需要在反斜杠后输入字母的名称。
2.1. 阿尔法
\alpha2.2. 贝塔
\beta2.3. 伽马
\gamma2.4. 希腊字母表
3. 运算符
运算符是一个写成单词的函数:三角函数(sin,cos,tan),对数和指数(log,exp),极限(lim),以及行列式(det)。
3.1. 三角函数
\cos(2 \theta)= \cos^2 \theta - \sin^2 \thetacos ( 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)= 0lim x → ∞ exp ( − x ) = 0 \lim_{x \to \infty } \exp(-x)= 0 x→∞limexp(−x)=0
3.3. 模块化运算符
a \bmod b或
a \pmod ba   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/_73 / 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
三、参考文献
边栏推荐
- MVC and MVVM
- pytest多进程/多线程执行测试用例
- The important data in the computer was accidentally deleted by mistake, which can be quickly retrieved by this method
- Asset security issues or constraints on the development of the encryption industry, risk control + compliance has become the key to breaking the platform
- STM32 enters and wakes up the stop mode through the serial port
- Experiment 6: installing eve-ng
- The programmer said, "I'm 36 years old, and I don't want to be rolled, let alone cut."
- leetcode:236. The nearest common ancestor of binary tree
- STM32通过串口进入和唤醒停止模式
- 2022 latest blind box mall complete open source operation source code / docking visa free payment interface / building tutorial
猜你喜欢

Automatic test tool katalon (WEB) test operation instructions

亚朵三顾 IPO

How rider uses nuget package offline

How to implement Lua entry of API gateway
Detailed explanation of regular expression (regexp) in MySQL

快讯 l Huobi Ventures与Genesis公链深入接洽中

Do you still have to rely on Simba to shout for a new business that is Kwai?

【OFDM通信】基于深度学习的OFDM系统信号检测附matlab代码
![[unmanned aerial vehicle] multi unmanned cooperative task allocation program platform, including Matlab code](/img/4c/5d867437aac5faa299817e187602e1.png)
[unmanned aerial vehicle] multi unmanned cooperative task allocation program platform, including Matlab code

服务器SMP、NUMA、MPP体系学习笔记。
随机推荐
内网穿透zerotier 外网(手机、电脑等)访问内网设备(树莓派、NAS、电脑等)
Implementation steps of mysql start log in docker
[system analyst's road] Chapter 7 double disk system design (service-oriented development method)
Can async i/o be implemented by UDF operator and then called by SQL API? At present, it seems that only datastre can be seen
【212】php发送post请求有哪三种方法
编译logisim
The tutorial of computer reinstallation win10 system is simple and easy to understand. It can be reinstalled directly without U disk
DAY FIVE
若依请求url中带有jsessionid的解决办法
【自动化测试框架】关于unittest你需要知道的事
使用源码编译来安装PostgreSQL13.3数据库
STM32 enters and wakes up the stop mode through the serial port
量子时代计算机怎么保证数据安全?美国公布四项备选加密算法
Matplotlib draws a histogram and adds values to the graph
openresty ngx_lua子请求
传统企业要为 Web3 和去中心化做的 11 个准备
Please help xampp to do sqlilab is a black
JS import excel & Export Excel
在docker中快速使用各个版本的PostgreSQL数据库
Building lease management system based on SSM framework