Skip to content

Commit

Permalink
Merge pull request #2425 from chebfun/fix-diskfun-helptext
Browse files Browse the repository at this point in the history
fix help text typo
  • Loading branch information
trefethen committed Jun 1, 2023
2 parents a589cb5 + c69c0d4 commit 8e54ca9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
8 changes: 7 additions & 1 deletion @chebfun/chebpade.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@

% TODO: Handle quasimatrices/array-valued CHEBFUNs.

% TODO: References?
% Reference:
% [1] Keith O. Geddes, Block structure in the Chebyshev–Padé table, SIAM J.
% Numer. Anal. 18 (1981) 844-861.
%
% [2] Hans J. Maehly, Rational approximation for transcendental functions,
% Proceedings of the International Conference on Information Processing,
% UNESCO Butterword, London, 1960.

% Parse the inputs.
if ( nargin == 2 ) % CHEBPADE(F, M)
Expand Down
1 change: 0 additions & 1 deletion @chebfun3/.dropbox.attr

This file was deleted.

8 changes: 4 additions & 4 deletions @diskfun/mean.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function s = mean(f, dim)
%MEAN Average or mean value of a DISKFUN.
% MEAN(F) takes the mean in the angular direction (default), i.e.,
% MEAN(F) takes the mean in the radial direction (default), i.e.,
% MEAN(F) = sum(F).
%
% MEAN(F, DIM) takes the mean along the direction DIM. If DIM = 1 it is the
Expand All @@ -19,15 +19,15 @@
end

if ( nargin == 1)
% Default to the angular direction.
% Default to the radial direction.
dim = 1;
end

s = sum(f, dim);
if ( dim == 1 )
return; % Mean in the angular direction (default)
return; % Mean in the radial direction (default)
elseif ( dim == 2 )
s = s / (2*pi); % Mean in the radial direction
s = s / (2*pi); % Mean in the angular direction
else
error('CHEBFUN:DISKFUN:mean:dim', ...
'dim must be 1 or 2.')
Expand Down
4 changes: 2 additions & 2 deletions @diskfun/sum.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function f = sum( f, dim )
%SUM Definite Integration of a DISKFUN.
% G = sum(F,DIM) where DIM is 1 or 2 integrates only over theta
% (angular direction) or r (radial direction) respectively,
% G = sum(F,DIM) where DIM is 1 or 2 integrates only over r
% (radial direction) or theta (angular direction) respectively,
% and returns as its output a chebfun in the remaining variable.
%
% G = sum(F) is the same as sum(F,1)
Expand Down

0 comments on commit 8e54ca9

Please sign in to comment.