## Copyright (C) 2018 Dildar Sk
## 
## This program is free software: you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
## 
## This program 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 General Public License for more details.
## 
## You should have received a copy of the GNU General Public License
## along with this program.  If not, see
## <https://www.gnu.org/licenses/>.

## -*- texinfo -*- 
## @deftypefn {} {@var{retval} =} log (@var{input1}, @var{input2})
##
## @seealso{}
## @end deftypefn

## Author: Dildar <dildarsk101010@gmail.com>
## Created: 2018-03-28

function ret = log1 (x, y)
  
  if (nargin == 1)
    ret = log (x);
    return;
  endif
  
  if((nargin >2) || (nargin < 1))
    print_usage ();
  endif
  
  if(nargin == 2 && x==1)
    error ("base can not be one");
  endif
  
  if (x == 0)
    error ("base can not be zero");
  endif
  
  (log(y))./(log(x))
endfunction
