eps 函数
来源:互联网 发布:天天酷跑刷坐骑软件 编辑:程序博客网 时间:2024/04/29 01:43
eps 函数
Floating-point relative accuracy
浮点的相关精度
Syntax
语法
eps
d = eps(X)
eps('double')
eps('single')
Description
描述
eps returns the distance from 1.0 to the next largest double-precision number, that is eps = 2^(-52).
d = eps(X) is the positive distance from abs(X) to the next larger in magnitude floating point number of the same precision as X. X may be either double precision or single precision. For all X,
eps返回从1.0到下一个最大的双精度数值的距离,那是eps=2^(-52)。d=eps(X)是正距离从abs(X)到下一个具有相同浮点数值精度的最大值的X。X可以被确定为double precision(双精度)或single precision(单精度)。为所有X,
eps(X) = eps(-X) = eps(abs(X)
eps('double') is the same as eps or eps(1.0).
Eps('double')是和eps或eps(1.0)相同的。
eps('single') is the same as eps(single(1.0)) or single(2^-23).
Eps('single')是和eps(single(1.0))或single(2^-23)相同的。
Except for denormals, if 2^E <= abs(X) < 2^(E+1), then
除了denormals,如果2^E<=abs(X)<2^(E+1),然后
eps(X) = 2^(E-23) if isa(X,'single')
eps(X) = 2^(E-52) if isa(X,'double')
Replace expressions of the form
形式替代词
if Y < eps * ABS(X)
With
if Y < eps(X)
Examples
例如:
double precision
双精度
eps(1/2) = 2^(-53)
eps(1) = 2^(-52)
eps(2) = 2^(-51)
eps(realmax) = 2^971
eps(0) = 2^(-1074)
if(abs(x)) <= realmin, eps(x) = 2^(-1074)
eps(Inf) = NaN
eps(NaN) = NaN
single precision
eps(single(1/2)) = 2^(-24)
eps(single(1)) = 2^(-23)
eps(single(2)) = 2^(-22)
eps(realmax('single')) = 2^104
eps(single(0)) = 2^(-149)
if(abs(x)) <= realmin('single'), eps(x) = 2^(-149)
eps(single(Inf)) = single(NaN)
eps(single(NaN)) = single(NaN)
- eps 函数
- matlab eps函数解释
- Eps
- EPS
- EPS
- EPS
- 【Matlab学习笔记】【函数学习】eps
- eps是什么?
- eps是什么?
- jpg- eps
- 股票EPS
- ABB EPS
- matlab eps
- expression "eps"
- matlab的eps
- EPS系统登陆界面
- QoS Mechanism in EPS
- latex jpg转成eps
- 验证使用spfile
- 我国集成电路布图设计权保护探析
- 杂记2
- 伦敦奥运会"商标保卫战"的启迪 --
- static 简述一
- eps 函数
- 实现成功必须做的6个关键决策 --
- kinect深度数据读取
- Exp 函数
- 九度OJ 1107 搬水果
- FYI:如何管好无欲无求的员工?--
- fix 函数
- 如何在字符串中寻找${demo}
- C#--第2周实验--任务六--编写一个控制台应用--输出所有的水仙花数