Home > matlab > acado > packages > +acado > @Tan > Tan.m

Tan

PURPOSE ^

Tan of an acado Expression

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

Tan of an acado Expression

  Usage:
    >> tan(e);

  Parameters:
    e          [Expression]

  Licence:
    This file is part of ACADO Toolkit  - (http://www.acadotoolkit.org/)

    ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
    Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven.
    Developed within the Optimization in Engineering Center (OPTEC) under
    supervision of Moritz Diehl. All rights reserved.

    ACADO Toolkit is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 3 of the License, or (at your option) any later version.

    ACADO Toolkit is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with ACADO Toolkit; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

    Author: David Ariens
    Date: 2009

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 %Tan of an acado Expression
0002 %
0003 %  Usage:
0004 %    >> tan(e);
0005 %
0006 %  Parameters:
0007 %    e          [Expression]
0008 %
0009 %  Licence:
0010 %    This file is part of ACADO Toolkit  - (http://www.acadotoolkit.org/)
0011 %
0012 %    ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
0013 %    Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven.
0014 %    Developed within the Optimization in Engineering Center (OPTEC) under
0015 %    supervision of Moritz Diehl. All rights reserved.
0016 %
0017 %    ACADO Toolkit is free software; you can redistribute it and/or
0018 %    modify it under the terms of the GNU Lesser General Public
0019 %    License as published by the Free Software Foundation; either
0020 %    version 3 of the License, or (at your option) any later version.
0021 %
0022 %    ACADO Toolkit is distributed in the hope that it will be useful,
0023 %    but WITHOUT ANY WARRANTY; without even the implied warranty of
0024 %    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0025 %    Lesser General Public License for more details.
0026 %
0027 %    You should have received a copy of the GNU Lesser General Public
0028 %    License along with ACADO Toolkit; if not, write to the Free Software
0029 %    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0030 %
0031 %    Author: David Ariens
0032 %    Date: 2009
0033 %
0034 classdef Tan < acado.UnaryOperator
0035     properties(SetAccess='private')
0036 
0037     end
0038     
0039     methods
0040         function obj = Tan(obj1)
0041             obj.obj1 = obj1;
0042         end
0043         
0044         function s = toString(obj)
0045             s = sprintf('tan(%s)', obj.obj1.toString); 
0046         end
0047     end
0048     
0049 end

www.acadotoolkit.org/matlab
Generated on Tue 01-Jun-2010 20:14:12 by m2html © 2005