📄 payoff_years.m
字号:
function varargout = payoff_years(x)%% %% [y] = payoff_years(x)% [y,yp] = payoff_years(x) returns the function value in y and % the derivative in yp%% Matthias Heinkenschloss% Department of Computational and Applied Mathematics% Rice University% April 17, 2001%a = 100000;p = 10000;r = 0.06;% return the function valuevarargout{1} = a*(1+r).^x - p*((1+r).^x-1)./r;if( nargout > 1 ) % return the derivative as the second argument varargout{2} = a*(1+r).^x.*log(1+r) - p.*log(1+r)*(1+r).^x./r;end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -