view examples/@polynomial/polyval.m @ 11117:3cbc0d77db48 ss-3-3-53

update version info for snapshot
author John W. Eaton <jwe@octave.org>
date Tue, 19 Oct 2010 02:25:32 -0400
parents 567e3e4ab74d
children 1b48b209a8d6
line wrap: on
line source

function [y, dy] = polyval (p, varargin)
  if (nargout == 2)
    [y, dy] = polyval (fliplr(p.poly), varargin{:});
  else
    y = polyval (fliplr(p.poly), varargin{:});
  endif
endfunction