<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>数学 on heyaohua's Blog</title><link>https://blog.heyaohua.com/tags/%E6%95%B0%E5%AD%A6/</link><description>Recent content in 数学 on heyaohua's Blog</description><image><title>heyaohua's Blog</title><url>https://blog.heyaohua.com/og-image.png</url><link>https://blog.heyaohua.com/og-image.png</link></image><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 15 Jan 2024 15:00:00 +0800</lastBuildDate><atom:link href="https://blog.heyaohua.com/tags/%E6%95%B0%E5%AD%A6/index.xml" rel="self" type="application/rss+xml"/><item><title>数学公式示例</title><link>https://blog.heyaohua.com/posts/2024/01/math-example/</link><pubDate>Mon, 15 Jan 2024 15:00:00 +0800</pubDate><guid>https://blog.heyaohua.com/posts/2024/01/math-example/</guid><description>本文示范如何在 Pelican 博客中优雅呈现常见数学公式，帮助撰写技术或科研类文章时保持专业排版。示例基于 LaTeX 语法，并依赖 插件完成渲染。</description><content:encoded><![CDATA[<p>本文示范如何在 Pelican 博客中优雅呈现常见数学公式，帮助撰写技术或科研类文章时保持专业排版。示例基于 LaTeX 语法，并依赖 <code>render_math</code> 插件完成渲染。</p>
<h2 id="行内公式">行内公式</h2>
<p>当公式只需要嵌入在段落中时，可使用单个美元符号包裹表达式，例如 $E = mc^2$。这是著名的质能方程，适合在正文中快速引用。</p>
<h2 id="块级公式">块级公式</h2>
<p>对于需要突出显示的公式，可使用双美元符号放在独立段落中：</p>
<h3 id="一元二次方程求根">一元二次方程求根</h3>
<p>$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$</p>
<h3 id="欧拉恒等式">欧拉恒等式</h3>
<p>$$e^{i\pi} + 1 = 0$$</p>
<h3 id="高斯积分">高斯积分</h3>
<p>$$\int_{-\infty}^{\infty} e^{-x^2} , dx = \sqrt{\pi}$$</p>
<h2 id="矩阵乘法">矩阵乘法</h2>
<p>线性代数场景中，矩阵语法有助于展示多维运算：</p>
<h1 id="endpmatrix">$$
\begin{pmatrix}
a &amp; b <br>
c &amp; d
\end{pmatrix}
\begin{pmatrix}
x <br>
y
\end{pmatrix}</h1>
<p>\begin{pmatrix}
ax + by <br>
cx + dy
\end{pmatrix}
$$</p>
<h2 id="求和公式">求和公式</h2>
<p>常见求和表达式也能通过 LaTeX 清晰呈现：</p>
<p>$$\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$$</p>
<hr>
<blockquote>
<p>提示：撰写公式类文章时，务必确认 <code>pelicanconf.py</code> 中已启用 <code>render_math</code> 插件，并保持 LaTeX 语法正确，以确保静态页面渲染正常。</p>
</blockquote>
]]></content:encoded></item></channel></rss>