Erf
范例
打开所有单元 关闭所有单元基本范例 (5)
Erf[0.95]Plot[Erf[x], {x, -5, 5}]ComplexPlot3D[Erf[z], {z, -2 - 2I, 2 + 2I}, PlotLegends -> Automatic]Series[Erf[x], {x, 0, 10}]Infinity 处的级数展开式:
Series[Erf[x], {x, ∞, 5}]//Normal范围 (40)
数值计算 (6)
{Erf[1.5], Erf[1.5, 2]}N[Erf[3 / 2], 50]Erf[1.5000000000000000000000000000]Erf[1.5 - I]在高精度条件下高效计算 Erf:
Erf[1.2`500]//TimingErf[1.2`5000];//Timing用 Interval 和 CenteredInterval 对象计算最坏情况下的区间:
Erf[Interval[{-2.1, -1.9}]]Erf[2, Interval[{1.4, 1.5}]]Erf[CenteredInterval[2, 1 / 2]]Erf[1, CenteredInterval[2, 1 / 3]]或用 Around 计算一般情况下的统计区间:
Erf[ Around[2, 0.01]]Erf[{{0 , I π / 2}, {I π / 2, 0}}]或用 MatrixFunction 计算矩阵形式的 Erf 函数:
MatrixFunction[Erf, {{0, I π / 2}, {I π / 2, 0}}]特殊值 (3)
Erf[0]Erf[{Infinity, -Infinity, I Infinity, -I Infinity}]Erf[-Infinity, Infinity]求 Erf 的零点:
xzero = Solve[Erf[x] == 0 && -1 < x < 1, x][[1, 1, 2]]Plot[Erf[x], {x, -1.5, 1.5}, Epilog -> Style[Point[{xzero, Erf[xzero]}], PointSize[Large], Red]]可视化 (2)
绘制 Erf 函数:
Plot[Erf[x], {x, -3, 3}]ComplexContourPlot[Re[Erf[z]], {z, -2 - 2 I, 2 + 2 I}, Contours -> 20]ComplexContourPlot[Im[Erf[z]], {z, -2 - 2 I, 2 + 2 I}, Contours -> 20]函数属性 (10)
Erf 是针对所有实数和复数定义的:
FunctionDomain[Erf[x], x]FunctionDomain[Erf[z], z, Complexes]Erf 的值域为 –1 和 1 之间的所有实数:
FunctionRange[Erf[x], x, y]Erf 是一个奇函数:
Erf[-x] == -Erf[x]Erf 具有镜像属性
:
FullSimplify[Erf[Conjugate[z]] == Conjugate[Erf[z]]]Erf 是 x 的解析函数:
FunctionAnalytic[Erf[x], x]FunctionSingularities[Erf[x], x]FunctionDiscontinuities[Erf[x], x]Erf 非递减:
FunctionMonotonicity[Erf[x], x]Erf 是单射函数:
FunctionInjective[Erf[x], x]Plot[{Erf[x], .5}, {x, -5, 5}]Erf 不是满射函数:
FunctionSurjective[Erf[x], x]Plot[{Erf[x], -2}, {x, -10, 10}]Erf 既不是非负,也不是非正:
FunctionSign[Erf[x], x]Erf 既不凸,也不凹:
FunctionConvexity[Erf[x], x]微分 (3)
D[Erf[x], x]Table[D[Erf[x], {x, n}], {n, 1, 4}]Plot[Evaluate[%], {x, -4, 4}, PlotLegends -> {"First Derivative", "Second Derivative", "Third Derivative", "Fourth Derivative"}]D[Erf[x], {x, n}]积分 (3)
Erf 的不定积分:
Integrate[Erf[x], x]Integrate[Erf[x], {x, -4, 4}]Integrate[z^αErf[z^β], z]Integrate[z Exp[z]Erf[z], z]Integrate[1 - Erf[z]^2, {z, -Infinity, Infinity}]级数展开式 (4)
Erf 的泰勒展开式:
Series[Erf[x], {x, 0, 7}]绘制 Erf 在
处的前三个近似式:
terms = Normal@Table[Series[Erf[x], {x, 0, m}], {m, 1, 5, 2}];
Plot[{Erf[x], terms}, {x, -3, 3}]Erf 级数展开式的通项:
SeriesCoefficient[Erf[x], {x, 0, n}]Erf 的渐近展开式:
Series[Erf[x], {x, Infinity, 1}]//NormalErf 可被应用于幂级数:
Erf[Sin[x] + O[x] ^ 10]积分变换 (2)
用 FourierTransform 计算 Erf 的傅立叶变换:
FourierTransform[Erf[t], t, ω]LaplaceTransform[Erf[t], t, s]函数恒等式和化简 (3)
函数表示 (4)
用不完全 Gamma 函数表示的误差函数:
(Sqrt[z^2] /z)(1 - (1/Sqrt[π])Gamma[(1/2), z^2])//FullSimplify通过 MeijerGReduce 用 MeijerG 表示:
MeijerGReduce[Erf[x], x]Activate[%]Erf 可被表示为 DifferentialRoot:
DifferentialRootReduce[Erf[x], x]TraditionalForm 格式:
Erf[α]//TraditionalForm应用 (3)
用错误函数表示 NormalDistribution 的 CDF:
CDF[NormalDistribution[0, σ], x]//FunctionExpandPlot[% /. σ -> 2, {x, -10, 10}]位于 -n σ 和 n σ 之间的正态随机变量值的累积概率:
Table[CDF[NormalDistribution[0, σ], n σ] - CDF[NormalDistribution[0, σ], -n σ], {n, 4}] //Ntemp[x_, t_] := With[{η = (1/2 Sqrt[t])}, (Erf[(x + 1)η] - Erf[(x - 1)η]) / 2]D[temp[x, t], t] == D[temp[x, t], x, x]// SimplifyPlot[Evaluate[{temp[x, 0.01], temp[x, 0.2], temp[x, 0.6], temp[x, 1.5]}], {x, -4, 4}]根据超额损失再保险协议,只有当索赔额超过一个固定数额(称为自留额)时,保险人和再保险人之间才能共负索赔。否则,保险人全额支付赔款。如果索赔遵循参数为
和
的对数正态分布,计算自留额为
时保险人和再保险人支付的金额
和
的期望值。求保险人的预期赔付率:
insurerPayouts = TransformedDistribution[Min[x, m], xLogNormalDistribution[μ, σ], Assumptions -> m > 0];Expectation[y, yinsurerPayouts]reinsurerPayouts = TransformedDistribution[Max[0, x - m], xLogNormalDistribution[μ, σ], Assumptions -> m > 0];Expectation[z, zreinsurerPayouts]属性和关系 (3)
{Erf[InverseErf[z]], InverseErf[Erf[z]]}PowerExpand[%]Solve[Erf[x] == 1 / 2, x]Erf 出现在许多数学函数的特例中:
{ GammaRegularized[1 / 2, z^2], HypergeometricU[1 / 2, 1 / 2, z^2], MeijerG[{{1 / 2}, {}}, {{0}, {-1 / 2}}, z^2]}//FunctionExpand可能存在的问题 (3)
巧妙范例 (2)
ParametricPlot[ReIm[Erf[t + I t]], {t, -5, 5}, Axes -> None]With[{n = 12}, 1 / (1 + ContinuedFractionK[HoldForm[k], 1, {k, n}])]极限可以 Erf 来表示:
{ReleaseHold //@ %, Sqrt[(π E/2)] (1 - Erf[(1/Sqrt[2])])} //N技术笔记
-
▪
- 特殊函数
历史
1988年引入 (1.0) | 在以下年份被更新:2021 (13.0) ▪ 2022 (13.1)
文本
Wolfram Research (1988),Erf,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Erf.html (更新于 2022 年).
CMS
Wolfram 语言. 1988. "Erf." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2022. https://reference.wolfram.com/language/ref/Erf.html.
APA
Wolfram 语言. (1988). Erf. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Erf.html 年
BibTeX
@misc{reference.wolfram_2026_erf, author="Wolfram Research", title="{Erf}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/Erf.html}", note=[Accessed: 10-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_erf, organization={Wolfram Research}, title={Erf}, year={2022}, url={https://reference.wolfram.com/language/ref/Erf.html}, note=[Accessed: 10-September-2026]}