📄 terminator.m
字号:
%% description
% Terminator play an important role in iterative
% algorithms.In this project, there are mainly two
% conditions which terminate the process,zi=0 or
% yi=0.However, the word width for every digital
% system is finite, which relaxes the conditions.
% Therefore, we get
% zi < 2^(-wordwidth)
% or yi < 2^(-wordwidth)
% input
% z or y can play such a role
% wordwidth is a system parameter
% output
% signals the end of the process
%% code
function disable=terminator(z,acc)
if(nargin<2)
acc=2^(-64-5-1);
end
if(abs(z)<acc)
disable=1;
else disable=0;
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -