log2
2016-05-25 00:00
246 查看
摘要: log2
log2
Base 2 logarithm and dissect floating-point numbers into exponent and mantissa
Syntax
Y = log2(X)
[F,E] = log2(X)
Description
Y = log2(X) computes the base 2 logarithm of the elements of X.
[F,E] = log2(X) returns arrays F and E. Argument F is an array of real values, usually in the range 0.5 <= abs(F) < 1. For real X, F satisfies the equation: X = F.*2.^E. Argument E is an array of integers that, for real X, satisfy the equation: X = F.*2.^E.
Examples
For IEEE arithmetic, the statement [F,E] = log2(X) yields the values:
X
F
E
1 1/2 1
pi pi/4 2
-3 -3/4 2
eps 1/2 -51
realmax 1-eps/2 1024
realmin 1/2 -1021
More About
expand all
Tips
This function corresponds to the ANSI C function frexp() and the IEEE floating-point standard function logb(). Any zeros in X produce F = 0 and E = 0.
log2
Base 2 logarithm and dissect floating-point numbers into exponent and mantissa
Syntax
Y = log2(X)
[F,E] = log2(X)
Description
Y = log2(X) computes the base 2 logarithm of the elements of X.
[F,E] = log2(X) returns arrays F and E. Argument F is an array of real values, usually in the range 0.5 <= abs(F) < 1. For real X, F satisfies the equation: X = F.*2.^E. Argument E is an array of integers that, for real X, satisfy the equation: X = F.*2.^E.
Examples
For IEEE arithmetic, the statement [F,E] = log2(X) yields the values:
X
F
E
1 1/2 1
pi pi/4 2
-3 -3/4 2
eps 1/2 -51
realmax 1-eps/2 1024
realmin 1/2 -1021
More About
expand all
Tips
This function corresponds to the ANSI C function frexp() and the IEEE floating-point standard function logb(). Any zeros in X produce F = 0 and E = 0.
相关文章推荐
- 快速计算log2
- Java 代码块的执行顺序
- CentOS 6.4下安装Oracle 11gR2(x64)
- ORA-28000: the account is locked的解决办法
- oracle默认初始化用户名密码和密码修改
- 忘记oracle的sys用户密码怎么修改
- Linux下建立Oracle服务及其开机自启动
- 企业管理器控制台本地无法访问
- linux下Oracle的安装(二)
- centos7 关闭firewall安装iptables并配置
- 开源的服务发现可供选择的技术选型
- 详解Zoosk千万用户实时通信背后的开源技术[转]
- json字符串,json对象
- java获取真实ip地址
- js 数组快速查询指定字符串方法
- Ubuntu Android 开发(一) JDK 安装
- Ubuntu Android 开发(二) Android SDK 安装
- Ubuntu Android 开发(三) 使用SDK更新SDK 镜像
- 重排序
- PCA vs. LDA