帮助中心帮助中心
本页翻译不是最新的。点击此处可查看最新英文版本。
除了 exp 和 log 等常用函数,MATLAB® 还提供了其他几个相关函数,可以进行灵活的数值计算。expm1 和 log1p 函数补偿小参数中的数值舍入误差,而 reallog、realpow 和 realsqrt 函数将这些函数的范围限制为实数。nthroot 计算任意次方根,而专用函数 pow2 和 nextpow2 计算 2 的幂。
exp
log
expm1
log1p
reallog
realpow
realsqrt
nthroot
pow2
nextpow2
X
exp(X)-1
log10
1+X
log2
sqrt
本主题说明如何使用各种方法计算矩阵幂和指数。
此示例介绍了一种有趣的图形方法,用以确定 e^pi 是否大于 pi^e。
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office