 Lower Bound - Maple Help

DataSeries/numelems

return the number of elements in a DataSeries

DataSeries/lowerbound

return the index of the first element in a DataSeries

DataSeries/upperbound

return the index of the last element in a DataSeries Calling Sequence numelems( ds ) lowerbound( ds ) upperbound( ds ) Parameters

 ds - a DataSeries object Description

 • The numelems( ds ) command returns the number of elements in the DataSeries ds.
 • The lowerbound( ds ) command returns the index, which is always equal to 1, of the first element of the DataSeries ds.
 • The upperbound( ds ) command returns the index of the last element of the DataSeries ds.
 • Note that, for a DataSeries ds, numelems( ds ) is equal to upperbound( ds ). Examples

 > $\mathrm{ds}≔\mathrm{DataSeries}\left(\left[\mathrm{sin}\left(x\right),\mathrm{cos}\left(x\right),\mathrm{tan}\left(x\right)\right]\right)$
 ${\mathrm{ds}}{≔}\left[\begin{array}{cc}{1}& {\mathrm{sin}}{}\left({x}\right)\\ {2}& {\mathrm{cos}}{}\left({x}\right)\\ {3}& {\mathrm{tan}}{}\left({x}\right)\end{array}\right]$ (1)
 > $\mathrm{numelems}\left(\mathrm{ds}\right)$
 ${3}$ (2)
 > $\mathrm{lowerbound}\left(\mathrm{ds}\right)$
 ${1}$ (3)
 > $\mathrm{upperbound}\left(\mathrm{ds}\right)$
 ${3}$ (4)
 > $\mathrm{ds}≔\mathrm{DataSeries}\left(\left[\right]\right)$
 ${\mathrm{ds}}{≔}\left[\begin{array}{}\end{array}\right]$ (5)
 > $\mathrm{numelems}\left(\mathrm{ds}\right)$
 ${0}$ (6)
 > $\mathrm{lowerbound}\left(\mathrm{ds}\right)$
 ${1}$ (7)
 > $\mathrm{upperbound}\left(\mathrm{ds}\right)$
 ${0}$ (8) Compatibility

 • The DataSeries/numelems, DataSeries/lowerbound and DataSeries/upperbound commands were introduced in Maple 2016.