atan.m
来自「matlab波形优化算法经常要用到的matlab toolbox工具箱:yalm」· M 代码 · 共 32 行
M
32 行
function varargout = atan(varargin)
%ATAN (overloaded)
% Author Johan L鰂berg
% $Id: atan.m,v 1.8 2007/08/02 18:16:26 joloef Exp $
switch class(varargin{1})
case 'double'
error('Overloaded SDPVAR/ATAN CALLED WITH DOUBLE. Report error')
case 'sdpvar'
varargout{1} = InstantiateElementWise(mfilename,varargin{:});
case 'char'
operator = struct('convexity','none','monotonicity','increasing','definiteness','none','model','callback');
operator.convexhull = [];
operator.bounds = @bounds;
operator.derivative = @(x)((1+x.^2).^-1);
operator.range = [-pi/2 pi/2];
varargout{1} = [];
varargout{2} = operator;
varargout{3} = varargin{3};
otherwise
error('SDPVAR/ATAN called with CHAR argument?');
end
function [L,U] = bounds(xL,xU)
L = atan(xL);
U = atan(xU);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?