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