3200
|
1 ## Copyright (C) 1995, 1996, 1997 Kurt Hornik |
3426
|
2 ## |
3200
|
3 ## This program is free software; you can redistribute it and/or modify |
|
4 ## it under the terms of the GNU General Public License as published by |
|
5 ## the Free Software Foundation; either version 2, or (at your option) |
|
6 ## any later version. |
3426
|
7 ## |
3200
|
8 ## This program is distributed in the hope that it will be useful, but |
|
9 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3426
|
11 ## General Public License for more details. |
|
12 ## |
3200
|
13 ## You should have received a copy of the GNU General Public License |
|
14 ## along with this file. If not, write to the Free Software Foundation, |
|
15 ## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
16 |
3453
|
17 ## -*- texinfo -*- |
|
18 ## @deftypefn {Function File} {} cloglog (@var{x}) |
|
19 ## Return the complementary log-log function of @var{x}, defined as |
|
20 ## |
|
21 ## @example |
|
22 ## - log (- log (@var{x})) |
|
23 ## @end example |
|
24 ## @end deftypefn |
3426
|
25 |
3200
|
26 ## Author: KH <Kurt.Hornik@ci.tuwien.ac.at> |
|
27 ## Description: Complementary log-log function |
3426
|
28 |
3200
|
29 function y = cloglog (x) |
3426
|
30 |
3200
|
31 if (nargin != 1) |
|
32 usage ("cloglog (x)"); |
|
33 endif |
3426
|
34 |
3200
|
35 y = - log (- log (x)); |
3426
|
36 |
3200
|
37 endfunction |