HP Forums
randMat and CAS - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: randMat and CAS (/thread-2616.html)



randMat and CAS - Helge Gabert - 12-13-2014 06:53 PM

This is also a little strange:

In CAS, randMat(5,5,4) returns a 5x5 matrix with integers between 1 and 4 - - OK
but randMat(5,5,4,7) returns 5 ??

Contrast this with Home RANDMAT(5,5,4,7) OK.


RE: randMat and CAS - parisse - 12-14-2014 06:56 AM

Indeed, there is a typo in source code (return m; instead of return M; )


RE: randMat and CAS - Gerald H - 12-14-2014 09:55 AM

(12-14-2014 06:56 AM)parisse Wrote:  Indeed, there is a typo in source code (return m; instead of return M; )

Another instance of the malignity of differentiating entities purely by capitalization.


RE: randMat and CAS - cyrille de brébisson - 12-15-2014 09:59 AM

Hello

Quote:Another instance of the malignity of differentiating entities purely by capitalization.

PASCAL RULEZ!
:-)

Cyrille