📄 sin.m
字号:
function x = sin(x)
% SIN for adtayl objects.
global adtayl_CSSAV adtayl_CSARG
if ~isreal(x.tc)
error('COS, SIN for adtayl objects must not have imaginary part')
end
% Compute and store COS and SIN together; or check to see if already
% computed.
if isequal(x.tc, adtayl_CSARG)
x.tc = adtayl_CSSAV;
else
adtayl_CSARG = x.tc;
x = exp(i*x); % a adtayl object
adtayl_CSSAV = x.tc; % a complex array
end
x.tc = imag(x.tc);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -