upperbound - Maple Programming Help

upperbound

array upper bound

lowerbound

array lower bound

 Calling Sequence lowerbound(a, dim) lowerbound(a) upperbound(a, dim) upperbound(a)

Parameters

 a - rtable, array, list, set, string or object dim - posint

Description

 • The lowerbound and upperbound commands return the lower or upper bounds of the specified dimension, dim, of the array or rtable, a.
 • The lowerbound of a list is always 1.  The upperbound of a list is the same as numelems('a').  A list-of-lists or other recursive list structure is considered a one-dimensional object.
 • If a is an object that implements the lowerbound or upperbound methods, then lowerbound( a ) and upperbound( a ) (or lowerbound( a, dim ) and upperbound( a, dim )) depend on how the object a defines these numbers.
 • If dim is not specified, all lower or upper bounds are returned as a sequence.
 • The following objects have an upperbound method:
 • To obtain a lower or upper bound on the data contained in the object a, use the min or max commands, respectively.

 • The upperbound and lowerbound commands are thread-safe as of Maple 15.

Examples

 > $M≔⟨⟨1|2|3⟩,⟨4|5|6⟩⟩$
 ${M}{≔}\left[\begin{array}{ccc}{1}& {2}& {3}\\ {4}& {5}& {6}\end{array}\right]$ (1)
 > $m,n≔\mathrm{upperbound}\left(M\right)$
 ${m}{,}{n}{≔}{2}{,}{3}$ (2)
 > $\mathrm{upperbound}\left(M,1\right)$
 ${2}$ (3)
 > $\mathrm{upperbound}\left(M,2\right)$
 ${3}$ (4)
 > $\mathrm{lowerbound}\left(M,1\right)$
 ${1}$ (5)
 > $\mathrm{upperbound}\left(\left[1,2,3\right]\right)$
 ${3}$ (6)
 > $\mathrm{upperbound}\left(\left[\left[1,2,3\right],\left[4,5,6\right]\right]\right)$
 ${2}$ (7)

Compatibility

 • The upperbound and lowerbound commands were introduced in Maple 15.
{"ft_lang_label":"__label__en","ft_lang_prob":0.7168633,"math_prob":0.99811,"size":1604,"snap":"2020-34-2020-40","text_gpt3_token_len":444,"char_repetition_ratio":0.20125,"word_repetition_ratio":0.024896266,"special_character_ratio":0.22693267,"punctuation_ratio":0.13664596,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9949107,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-20T13:02:41Z\",\"WARC-Record-ID\":\"<urn:uuid:21e3d71f-b2bb-4a69-a402-212d7c8ebdcc>\",\"Content-Length\":\"209908\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e3769168-e4d1-45c2-8ec6-4b9ce02096b9>\",\"WARC-Concurrent-To\":\"<urn:uuid:b12c42fb-9980-4c14-a832-700286a90c26>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://de.maplesoft.com/support/help/maplesim/view.aspx?path=upperbound\",\"WARC-Payload-Digest\":\"sha1:PSLFYFOPCBEB5RZ6LNPJ5CBSLWVPHW4A\",\"WARC-Block-Digest\":\"sha1:UWT2HPHOB3MQOAONZBAS2E3Z7JAF5T4J\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400198213.25_warc_CC-MAIN-20200920125718-20200920155718-00735.warc.gz\"}"}