Cot[z]
给出 z 的余切.
Cot
Cot[z]
给出 z 的余切.
背景
- Cot 是余切函数,三角学中的基本函数之一. 它被定义为正切函数的倒数:
. 直角三角形中一个锐角
的余切值在教科书上的等价定义是
角的邻直角边与对边长度的比值. - 当变量是
的简单有理数倍时,Cot 会自动计算出精确值. 对一些更复杂的有理倍数,FunctionExpand 有时可用于算得显式的精确值. TrigFactorList 可将包含 Cot 的表达式因式分解为包含 Sin 和 Cos 的单项式. 若要使用角度值的变量,则可用符号 Degree 作为乘数(例如 Cot[30 Degree]). 当给出精确数值表达式作为变量时,Cot 可以算出任意精度的数值结果. 对包含 Cot 的符号表达式,其他适用的操作运算有 TrigToExp、TrigExpand、Simplify 和 FullSimplify. - Cot 自动逐项作用于列表和矩阵. 相比之下,MatrixFunction 则可用于给出整个方阵的余切值(即用矩阵幂次代替普通幂次的余切函数的幂级数)而不是单个矩阵元素的余切值.
- Cot 是周期函数,周期为
,可由 FunctionPeriod 算出. Cot 满足恒等式
,这其实与勾股定理等价. 余切函数的定义可由等式
扩展到复数变量
上,其中
是自然对数的底数. Cot 在
且
是整数的这些点处取得极值 ComplexInfinity. Cot[z] 在原点处的级数展开为
,可由伯努利数 BernoulliB 构成的项表示. - Cot 的反函数是 ArcCot. 双曲余切函数是 Coth. 其他相关的数学函数有 Tan 和 Cos.
范例
打开所有单元 关闭所有单元基本范例 (6)
Cot[Pi / 3]用 Degree 指定自变量以度为单位:
Cot[60Degree]Plot[Cot[x], {x, -Pi, Pi}]ComplexPlot3D[Cot[z], {z, -π - 2I, π + 2I}, PlotLegends -> Automatic]Series[Cot[x], {x, 0, 10}]Series[Cot[x], {x, -π, 5}]范围 (46)
数值计算 (6)
Cot[1.2]N[Cot[12 / 10], 50]Cot[1.20000000000000000000000]Cot 可接受复数:
Cot[2.5 + I]在高精度条件下高效计算 Cot:
Cot[1.2`500]//TimingCot[1.2`100000];//TimingCot[ {{5π / 6, π / 2}, {3π / 2, -π / 6}}]或用 MatrixFunction 计算矩阵形式的Cot 函数:
MatrixFunction[Cot[#]&, {{5π / 6, π / 2}, {3π / 2, -π / 6}}]用 Interval 和 CenteredInterval 对象计算最坏情况下的区间:
Cot[Interval[{-π / 4, π / 4}]]Cot[CenteredInterval[1, 1 / 100]]Cot[CenteredInterval[2 + 3I, (1 + I) / 100]]或用 Around 计算一般情况下的统计区间:
Cot[Around[3, 0.01]]特殊值 (5)
Cot 在固定点上的值:
Table[Cot[n(π/6)], {n, 1, 5}]Cot[Infinity]Cot[ComplexInfinity]Cot 的零点:
Assuming[m∈Integers, Refine[Cot[π((1/2) + m)]]]sol = Solve[Cot[x] == 0 && 0 < x < π, x]xzero = x /. First[sol]Plot[Cot[x], {x, 0, π}, Epilog -> Style[Point[{xzero, Cot[xzero]}], PointSize[Large], Red]]Cot 的奇点:
Assuming[m∈Integers, FullSimplify[Refine[Cot[π m]]]]Cot[Pi / 6]更复杂的情形需要使用 FunctionExpand:
Cot[Pi / 8]FunctionExpand[%]可视化 (3)
绘制 Cot 函数:
Plot[Cot[x], {x, -π, π}]ComplexContourPlot[Re[Cot[z]], {z, -π - I, π + I}, IconizedObject[«PlotOptions»]]ComplexContourPlot[Im[Cot[z]], {z, -π - I, π + I}, IconizedObject[«PlotOptions»]]Table[PolarPlot[Cot[k ϕ], {ϕ, 0.01, 3π}, Sequence[Frame -> True, Exclusions -> All, FrameTicks -> {{{-1, -0.5, 0, 0.5, 1}, None}, {{-1, -0.5, 0, 0.5, 1}, None}}, PlotLabel -> "k=" <> ToString[k], PlotRange -> {{-1, 1}, {-1, 1}}]], {k, 1, 4}]函数属性 (13)
Cot 的实定义域:
FunctionDomain[Cot[x], x]FunctionDomain[Cot[z], z, Complexes]Cot 的值域是所有实数:
FunctionRange[Cot[x], x, y]Cot 是周期为
的周期函数:
FunctionPeriod[Cot[x], x]Cot 是一个奇函数:
Cot[-x]Cot 具有镜像属性
:
FullSimplify[Cot[Conjugate[z]] == Conjugate[Cot[z]]]Cot 不是解析函数:
FunctionAnalytic[Cot[x], x]FunctionMeromorphic[Cot[x], x]Cot 在特定范围内是单调的:
FunctionMonotonicity[Cot[x], x]FunctionMonotonicity[{Cot[x], 0 < x < π / 2}, x]Cot 不是单射函数:
FunctionInjective[Cot[x], x]Plot[{Cot[x], 1}, {x, -2π, 2π}]Cot 是满射函数:
FunctionSurjective[Cot[x], x]Plot[{Cot[x], 20}, {x, -2π, 2π}]Cot 既不是非负,也不是非正:
FunctionSign[Cot[x], x]在 π 的倍数处,Cot 有奇点和断点:
FunctionSingularities[Cot[x], x]FunctionDiscontinuities[Cot[x], x]Cot 既不凸,也不凹:
FunctionConvexity[Cot[x], x]TraditionalForm 格式:
Cot[α]//TraditionalForm微分 (3)
D[Cot[x], x]Table[D[Cot[x], {x, n}], {n, 1, 3}]Plot[Evaluate[%], {x, -π, π}, PlotLegends -> {"First Derivative", "Second Derivative", "Third Derivative"}]D[Cot[x], {x, n}]Table[%, {n, 1, 3}]//Activate//Simplify积分 (3)
级数展开式 (3)
使用 Series 求泰勒级数展开:
Series[Cot[x], {x, π / 2, 7}]围绕
绘制 Cot 的前三个近似值:
terms = Normal@Table[Series[Cot[x], {x, π / 2, m}], {m, 0, 5, 2}];
Plot[{Cot[x], terms}, {x, 0, π}, PlotRange -> {{0, π}, Automatic}]Cot 级数展开式的通项:
SeriesCoefficient[Cot[x], {x, 0, n}]Cot 可被应用于幂级数:
Cot[(π/2) + x + (x^2/2) + (x^3/3) + O[x]^4]函数恒等式和化简 (6)
倍角的 Cot:
Expand[Cot[2x], Trig -> True]和的 Cot:
TrigExpand[Cot[x + y]]TrigExpand[Cot[4x]]TrigReduce[%]TrigFactor[Cot[x] + Cot[y]]ComplexExpand[Cot[x + I y]]TrigToExp[Cot[z]]函数表示 (4)
用 Tan 表示:
Simplify[Tan[(Pi/2) - x]]Simplify[JacobiCS[z, 0]]Simplify[I JacobiNS[I z, 1]]用 SphericalHarmonicY 表示:
Simplify[Sqrt[1 / 2]SphericalHarmonicY[1, 0, θ, 0] / SphericalHarmonicY[1, -1, θ, 0]]Simplify[(MathieuC[1, 0, z]/MathieuS[1, 0, z])]应用 (4)
Plot[Cot[x], {x, -Pi / 2, 3 / 2Pi}, Exclusions -> Sin[x] == 0]Plot3D[Re[Cot[x + I y]], {x, -Pi, Pi}, {y, 0, 3}]With[{parabola = Table[1 - x ^ 2 / 4 + I x, {x, 0, 20, 1 / 10}], pnts = Point[ReIm@#]&, opts = {Axes -> True, PlotRange -> All}},
{Graphics[pnts[parabola], opts],
Graphics[pnts[Cot[π / 4.Sqrt[parabola]] ^ 2], opts]}]DSolve[y'[x] + y[x] + Cot[x] == 0, y[x], x]属性和关系 (12)
Cot[x + Pi]Cot[-x]Cot[I x]1 / Cot[x]用 TrigFactorList 将 Cot 因式分解为 Sin 和 Cos:
Cos[x] / Sin[x]TrigFactorList[Cot[x]]Cot[z] + Tan[z]Simplify[%]Cot[-x + k Pi]Simplify[%, k∈Integers]{Cot[ArcCot[z]], Cot[2ArcCot[z]], Cot[3ArcCot[z]]}FunctionExpand[%]//TogetherCot[1] == CotDegrees[180 / π]//SimplifyReduce[Cot[z]^2 - 2Cot[z + Pi / 4] == 4, z]Reduce[Cot[α x + β] == 0, x]Reduce[1 / Cot[α x + β] == 0, x]FindRoot[Cot[z]^2 + 3Cot[z + Pi / 6] + z == 4, {z, 2}]Cot 出现在许多数学方程的特例中:
{BesselJ[-(1/2), z] / BesselJ[(1/2), z], (MathieuC[1, 0, z]/MathieuS[1, 0, z]), JacobiCS[z, 0], JacobiSC[(π/2) - z, 0], JacobiNS[I z, 1], JacobiSN[(π I/2) - I z, 1], HypergeometricPFQ[{}, {(1/2)}, -z] / HypergeometricPFQ[{}, {(3/2)}, -z]}Table[Residue[Cot[z]^k, {z, 0}], {k, 10}](1/2π I)NIntegrate[Cot[z], {z, -(1/4), -(I/4), +(1/4), +(I/4), -(1/4)}]Cot 是一个数值函数:
Attributes[Cot]NumericQ[Cot[2 + E]]可能存在的问题 (3)
Cot[10. ^ 30]N[Cot[10 ^ 30], 20]需要增大 $MaxExtraPrecision 的值:
N[Cot[10 ^ 100], 20]
Block[{$MaxExtraPrecision = 200}, N[Cot[10 ^ 100], 20]]Cot[1.5707963267948966192213216916397514421]巧妙范例 (6)
Underoverscript[∏, k = 1, n - 1] Cot[z + (k π/n)]Simplify[%, (n/2)∈Integers]Simplify[%%, (n - 1/2)∈Integers]Integrate[Cot[ArcTan[z]], z]在整数点绘制 Cot:
ArrayPlot[Table[ArcCot[Abs[Cot[x y]]], {x, -20, 20}, {y, -20, 20}]]Cot[(π/2^12)]//FunctionExpandContinuedFraction[Cot[1], 22]n 为整数时,Cot[n] 是一个超越数:
Element[Cot[1], Algebraics]技术笔记
-
▪
- 初等超越函数
相关指南
-
▪
- 三角函数
历史
1988年引入 (1.0) | 在以下年份被更新:1996 (3.0) ▪ 2021 (13.0)
文本
Wolfram Research (1988),Cot,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Cot.html (更新于 2021 年).
CMS
Wolfram 语言. 1988. "Cot." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2021. https://reference.wolfram.com/language/ref/Cot.html.
APA
Wolfram 语言. (1988). Cot. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Cot.html 年
BibTeX
@misc{reference.wolfram_2026_cot, author="Wolfram Research", title="{Cot}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/Cot.html}", note=[Accessed: 09-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_cot, organization={Wolfram Research}, title={Cot}, year={2021}, url={https://reference.wolfram.com/language/ref/Cot.html}, note=[Accessed: 09-September-2026]}