公式测试
由 知存在矢量函数 ,使得称 为动态矢量磁位(磁矢位)。
将上式代入 ,得 ,则存在标量函数 ,使得称 为标量电位(电标位)。
为确定矢量函数 ,令上式称为洛伦兹规范(洛伦兹条件),则得到达朗贝尔方程(达朗伯方程):
洛伦兹规范在静态场的条件下退化为库仑规范。
表格测试
| 名称 | 公式 |
|---|---|
| 杂波衰减 | 输入杂波功率与对消处理后输出信号中同一杂波的剩余功率的比值 |
| 对消比 | 同一杂波对消后的电压和对消的电压之比 |
| 改善因子 | 动目标显示系统输出的信号杂波功率比和输入的信号杂波功率比的比值 |
| 杂波中可见度 | 在给定的检测概率和虚警概率下,雷达输出端信杂比等于可见度系数 时,雷达输入端的功率杂信比 |
| 斜距分辨率 | |
| 发射机输出平均功率和峰值功率的关系 | 其中 为脉冲重复频率, 称为雷达工作比 |
代码块测试
代码配色取自 VS Code 的 2026 主题:背景色与普通标识符、标点沿用本站主题色,只有分类明确的 token(关键字、字符串、数字、注释、函数名等)才套用编辑器配色。把系统切换到深色模式,即可对照查看暗色方案。
围栏标记与 VS Code 的语言 ID 一致:
| 语言 | 围栏标记 |
|---|---|
| Bash / Shell | bash、sh、shell |
| PowerShell | powershell |
| Python | python、py |
| MATLAB | matlab |
| C | c |
| C++ | cpp、c++ |
| Kotlin | kotlin |
| CSS | css |
PowerShell 要写
powershell,Rouge 不认ps1;Kotlin 要写kotlin,不认kt。
Bash
#!/usr/bin/env bash
# 构建并启动本地预览
for site in Yummy-Modern zyraxi21.github.io; do
( cd "${REPO_DIR}/${site}" && jekyll build ) || exit 1
done
npx @deepseek-ai/dsh web --port "$PORT"
echo "预览已启动:http://127.0.0.1:${PORT}"
PowerShell
# 汇总日志目录中占用空间最大的若干个文件
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
[int]$Top = 5
)
$ErrorActionPreference = "Stop"
foreach ($f in $files) {
$sizeMB = [math]::Round($f.Length / 1MB, 2)
Write-Host "文件 $($f.Name) 大小 ${sizeMB}MB" -ForegroundColor Green
}
Python
#!/usr/bin/env python3
"""按大小筛选日志文件并汇总统计。"""
import os
THRESHOLD = 1024 * 1024 # 1 MiB
@dataclass
class Entry:
@property
def size_mb(self) -> float:
return round(self.size / THRESHOLD, 2)
def scan(root: str):
for dirpath, _, filenames in os.walk(root):
for fn in filenames:
if fn.endswith(".log"):
yield Entry(fn, os.path.getsize(os.path.join(dirpath, fn)))
MATLAB
% 批量扫描并绘图
Pt = 1e6; % 峰值功率 1 MW
G = 10^(35/10); % 增益 35 dB
lambda = 3e8 / 3e9;
sigma = [1 5 10];
for k = 1:numel(sigma)
R(k) = radarRange(Pt, G, lambda, sigma(k), 1e-13);
assert(R(k) > 0, 'R 必须为正');
end
C
#include <stdio.h>
#define MAX_NAME 64
static int compare_by_score(const void *a, const void *b)
{
const Student *sa = (const Student *)a; const Student *sb = (const Student *)b; if (sa->score < sb->score) return 1; if (sa->score > sb->score) return -1; return 0;
}
int main(void)
{
Student list[] = {
{ "Alice", 1001, 92.5 },
{ "Bob", 1002, 88.0 },
};
return 0;
}
C++
#include <iostream>
int main() {
radar::Range<double> ranges(8);
for (int i = 0; i < 8; ++i) {
ranges.push(10.0 + i * 0.5);
}
std::cout << "max = " << ranges.max() << std::endl;
return 0;
}
Kotlin
package com.example.radar
import kotlin.math.sqrt
data class Target(val name: String, val rcs: Double, val range: Double)
const val MAX_RANGE_KM = 300.0
fun main() {
val radar = Radar(gain = 10.0, wavelength = 0.1)
.add(Target("Alpha", 1.0, 120.0))
.add(Target("Bravo", 2.5, 260.0))
val hits = radar.detectable(1e6)
println("命中 ${hits.size} 个目标")
}
CSS
/* 卡片入场动画 */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.card {
animation: fadeIn 0.3s ease-in-out both;
border-radius: 10px;
box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
width: calc(100% - 24px);
}
行内代码测试
行内代码例如 npx @deepseek-ai/dsh web、--brand-primary-soft、margin: 0 auto 与 pre > code。
Mermaid 图测试
flowchart TD
A[开始] --> B[输入账号密码]
B --> C{校验格式}
C -- 格式错误 --> D[提示重新输入]
D --> B
C -- 格式正确 --> E[调用登录接口]
E --> F{校验结果}
F -- 成功 --> G[跳转首页]
F -- 失败 --> H[显示错误信息]
H --> B
G --> I[结束]