Mercurial > hg > octave-lyh
annotate scripts/deprecated/cquad.m @ 14138:72c96de7a403 stable
maint: update copyright notices for 2012
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 02 Jan 2012 14:25:41 -0500 |
parents | 88558b8eb8a7 |
children |
rev | line source |
---|---|
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
12556
diff
changeset
|
1 ## Copyright (C) 2012 John W. Eaton |
12556
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
2 ## |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
3 ## This file is part of Octave. |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
4 ## |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
5 ## Octave is free software; you can redistribute it and/or modify it |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
6 ## under the terms of the GNU General Public License as published by |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
8 ## your option) any later version. |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
9 ## |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
10 ## Octave is distributed in the hope that it will be useful, but |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
13 ## General Public License for more details. |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
14 ## |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
15 ## You should have received a copy of the GNU General Public License |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
16 ## along with Octave; see the file COPYING. If not, see |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
17 ## <http://www.gnu.org/licenses/>. |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
18 |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
19 ## -*- texinfo -*- |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
20 ## @deftypefn {Function File} {[@var{int}, @var{err}, @var{nr_points}] =} cquad (@var{f}, @var{a}, @var{b}, @var{tol}) |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
21 ## @deftypefnx {Function File} {[@var{int}, @var{err}, @var{nr_points}] =} cquad (@var{f}, @var{a}, @var{b}, @var{tol}, @var{sing}) |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
22 ## This function is an alias for compatibility with older versions of |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
23 ## Octave. New programs should use @code{quadcc} instead. |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
24 ## @seealso{quadcc} |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
25 ## @end deftypefn |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
26 |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
27 ## Deprecated in version 3.4 |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
28 |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
29 function retval = cquad (varargin) |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
30 persistent warned = false; |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
31 if (! warned) |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
32 warned = true; |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
33 warning ("Octave:deprecated-function", |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
34 "cquad has been renamed to quadcc and this alias will be removed from a future version of Octave; please use quadcc instead"); |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
35 endif |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
36 |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
37 retval = quadcc (varargin{:}); |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
38 |
88558b8eb8a7
Add deprecated entry for cquad() pointing to quadcc().
Rik <octave@nomad.inbox5.com>
parents:
diff
changeset
|
39 endfunction |