KaTex 编写示例 公式 数学公式

2024-06-04 08:58

本文主要是介绍KaTex 编写示例 公式 数学公式,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

例1. 展示风格

编码
$$
c(t) = \displaystyle\sum_{i=0}^nb**\scriptscriptstyle** i \displaystyle B \scriptscriptstyle i \displaystyle(t),0 \le t \le1, \tag{1}
$$
效果:
c ( t ) = ∑ i = 0 n b i B i ( t ) , 0 ≤ t ≤ 1 , (1) c(t) = \displaystyle\sum_{i=0}^nb\scriptscriptstyle i \displaystyle B\scriptscriptstyle i \displaystyle(t),0 \le t \le1, \tag{1} c(t)=i=0nbiBi(t),0t1,(1)

例2. 穿插风格

编码
式中,n为次数,$b \scriptscriptstyle i$为第$i$个控制点,$B \scriptscriptstyle i,n \displaystyle (t)$为Bernstein基多项式,如式(2)所示:
效果:
式中,n为次数, b i b\scriptscriptstyle i bi为第 i i i个控制点, B i , n ( t ) B\scriptscriptstyle i,n \displaystyle (t) Bi,n(t)为Bernstein基多项式,如式(2)所示:

例3. 混合

编码
$$
B \scriptscriptstyle i,n \displaystyle (t)=\dbinom{n}{i} ti(1-t){n-i},i = 0,…,n, \tag{2}
$$
式中,$\binom{n}{i}$是二项式系数
效果:
B i , n ( t ) = ( n i ) t i ( 1 − t ) n − i , i = 0 , . . . , n , (2) B\scriptscriptstyle i,n \displaystyle (t)=\dbinom{n}{i} t^i(1-t)^{n-i},i = 0,...,n, \tag{2} Bi,n(t)=(in)ti(1t)ni,i=0,...,n,(2)
式中, ( n i ) \binom{n}{i} (in)是二项式系数

例4. 矩阵

编码
$$
\left[
\begin{matrix}
B_{0,3}(t_0) & \cdots & B_{3,3}(t_0) \\
B_{0,3}(t_1) & \cdots & B_{3,3}(t_1) \\
\vdots & \ddots & \vdots \\
B_{0,3}(t_m) & \cdots & B_{3,3}(t_m)
\end{matrix}
\right]
\left[
\begin{matrix}
b_{x0} & b_{y0} \\
b_{x1} & b_{y1} \\
b_{x2} & b_{y2} \\
b_{x3} & b_{y3}
\end{matrix}
\right] =
\left[
\begin{matrix}
p_{x0} & p_{y0} \\
p_{x1} & p_{y1} \\
\vdots & \vdots \\
p_{xm} & p_{ym}
\end{matrix}
\right]
\tag{4}
$$
效果:
[ B 0 , 3 ( t 0 ) ⋯ B 3 , 3 ( t 0 ) B 0 , 3 ( t 1 ) ⋯ B 3 , 3 ( t 1 ) ⋮ ⋱ ⋮ B 0 , 3 ( t m ) ⋯ B 3 , 3 ( t m ) ] [ b x 0 b y 0 b x 1 b y 1 b x 2 b y 2 b x 3 b y 3 ] = [ p x 0 p y 0 p x 1 p y 1 ⋮ ⋮ p x m p y m ] (4) \left[ \begin{matrix} B_{0,3}(t_0) & \cdots & B_{3,3}(t_0) \\ B_{0,3}(t_1) & \cdots & B_{3,3}(t_1) \\ \vdots & \ddots & \vdots \\ B_{0,3}(t_m) & \cdots & B_{3,3}(t_m) \end{matrix} \right] \left[ \begin{matrix} b_{x0} & b_{y0} \\ b_{x1} & b_{y1} \\ b_{x2} & b_{y2} \\ b_{x3} & b_{y3} \end{matrix} \right] = \left[ \begin{matrix} p_{x0} & p_{y0} \\ p_{x1} & p_{y1} \\ \vdots & \vdots \\ p_{xm} & p_{ym} \end{matrix} \right] \tag{4} B0,3(t0)B0,3(t1)B0,3(tm)B3,3(t0)B3,3(t1)B3,3(tm)bx0bx1bx2bx3by0by1by2by3=px0px1pxmpy0py1pym(4)

例5. 其他

编码
$$
op = bp \cdot \dfrac {g_{iw}} {h_{out}}+tp \cdot
(1-\dfrac {g_{ih}}{h_{out}})
$$
效果:
o p = b p ⋅ g i w h o u t + t p ⋅ ( 1 − g i h h o u t ) op = bp \cdot \dfrac {g_{iw}} {h_{out}}+tp \cdot (1-\dfrac {g_{ih}}{h_{out}}) op=bphoutgiw+tp(1houtgih)

参考文档

欢迎访问我的博客
隆力奇的博客

这篇关于KaTex 编写示例 公式 数学公式的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1029632

相关文章

hdu 4565 推倒公式+矩阵快速幂

题意 求下式的值: Sn=⌈ (a+b√)n⌉%m S_n = \lceil\ (a + \sqrt{b}) ^ n \rceil\% m 其中: 0<a,m<215 0< a, m < 2^{15} 0<b,n<231 0 < b, n < 2^{31} (a−1)2<b<a2 (a-1)^2< b < a^2 解析 令: An=(a+b√)n A_n = (a +

如何编写Linux PCIe设备驱动器 之二

如何编写Linux PCIe设备驱动器 之二 功能(capability)集功能(capability)APIs通过pci_bus_read_config完成功能存取功能APIs参数pos常量值PCI功能结构 PCI功能IDMSI功能电源功率管理功能 功能(capability)集 功能(capability)APIs int pcie_capability_read_wo

zeroclipboard 粘贴板的应用示例, 兼容 Chrome、IE等多浏览器

zeroclipboard单个复制按钮和多个复制按钮的实现方法 最近网站改版想让复制代码功能在多个浏览器上都可以实现,最近看网上不少说我们的代码复制功能不好用的,我们最近将会增加代码高亮等功能,希望大家多多支持我们 zeroclipboard是一个跨浏览器的库类 它利用 Flash 进行复制,所以只要浏览器装有 Flash 就可以运行,而且比 IE 的

基于SpringBoot的宠物服务系统+uniapp小程序+LW参考示例

系列文章目录 1.基于SSM的洗衣房管理系统+原生微信小程序+LW参考示例 2.基于SpringBoot的宠物摄影网站管理系统+LW参考示例 3.基于SpringBoot+Vue的企业人事管理系统+LW参考示例 4.基于SSM的高校实验室管理系统+LW参考示例 5.基于SpringBoot的二手数码回收系统+原生微信小程序+LW参考示例 6.基于SSM的民宿预订管理系统+LW参考示例 7.基于

Spring Roo 实站( 一 )部署安装 第一个示例程序

转自:http://blog.csdn.net/jun55xiu/article/details/9380213 一:安装 注:可以参与官网spring-roo: static.springsource.org/spring-roo/reference/html/intro.html#intro-exploring-sampleROO_OPTS http://stati

Java http请求示例

使用HttpURLConnection public static String httpGet(String host) {HttpURLConnection connection = null;try {URL url = new URL(host);connection = (HttpURLConnection) url.openConnection();connection.setReq

Wondows dos下怎么编写bat批处理文件

最近搞php,在运行时,以Nginx+php-cgi.exe方式运行Wordpress项目 打开dos,先cd到php-cgi.exe文件当前目录下执行启动命令:php-cgi.exe -b 127.0.0.1:9001再打开一个dos,再cd到nginx.exe文件当前目录下执行启动命令:start nginx 大概过程要经过这些步骤,觉得很麻烦,就学下怎么编写一个bat文件,以双击运行代替

2.3多任务编程示例1

1.CUBEMAX配置  2.CODE void StartTask1(void const * argument){/* USER CODE BEGIN StartTask1 */TickType_t pxPreviousWakeTime=xTaskGetTickCount();/* Infinite loop */for(;;){LED1_Turn();// vTaskDelay

用Python编写倒计时程序:详细教程

目录 引言 环境准备 基本概念 代码实现 步骤一:导入必要的库 步骤二:获取用户输入 步骤三:实现倒计时逻辑 步骤四:整合代码 运行程序 高级功能 扩展功能示例:支持分钟和小时输入 扩展功能示例:图形用户界面 (GUI) 总结 引言 倒计时程序是一个非常常见的小工具,广泛用于各种应用场景中,例如考试时间提醒、烹饪计时器、会议倒计时等。Python 作为一种

二维旋转公式

二维旋转公式 ros的tf工具包可以很方便的实现任意坐标系之间的坐标转换。但是,如果只是想简单的测试想法,而又不想编写过于庞杂的代码,考虑自己写二维旋转的函数。而与二维旋转问题对偶的另一个问题便是二维坐标系旋转变换。这两个问题的形式基本一样,只是旋转的角度相差一个负号。就是这个容易搞混,所以做个笔记,以备查用。 1. 二维旋转公式(算法) 而(此文只针对二维)旋转则是表示某一坐标点 ( x