⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 log10.m

📁 这是MATLAB小型的。下下去看看嘛
💻 M
字号:
function y = log10(x);
%LOG10  Common (base 10) logarithm.
%   LOG10(X) is the base 10 logarithm of the elements of X.   
%   Complex results are produced if X is not positive.
%
%   See also LOG, LOG2, EXP, LOGM.

%   Copyright 1984-2002 The MathWorks, Inc. 
%   $Revision: 5.10 $  $Date: 2002/04/08 20:11:22 $

% Compute y = log2(x)/log2(10) with an averaging process so that roundoff
% errors cancel and log10(10^k) == k for all integers k = -307:308.
% Use y = log2(x)/c1 + log2(x)/c2 where c1 = 2*log2(10)+2.5*eps,
% c2 = 2*log2(10)-1.5*eps are successive floating point numbers on
% either side of 2*log2(10).

y = log2(x);
y = y/6.64385618977472436 + y/6.64385618977472525;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -