view examples/@polynomial/end.m @ 16660:cbb1bb7a5c3d

Added tag ss-3-7-5 for changeset 608e307b4914
author John W. Eaton <jwe@octave.org>
date Tue, 14 May 2013 05:23:53 -0400
parents 7621f0b0e588
children
line wrap: on
line source

function r = end (obj, index_pos, num_indices)

  if (num_indices != 1)
    error ("polynomial object may only have one index")
  endif
  
  r = length (obj.poly) - 1;

endfunction