HP Forums

Full Version: Questions about Strings and Matrices - buffer?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone, I came up with these doubts some time ago, I would like to understand a little more the reasons for these differences.

1. If I have an extensive program (2), when using in Home for example: Programs(2), the history succeeds in displaying the entire string even if it has more than 65,535 characters. Why ?, What is the difference of the Home history? Home Buffer?

2. Why the MAKEMAT() command only allows me to create an matrix with a maximum of 19,999 elements, if when created with this form does not fail:
Code:
Exmpl2
BEGIN
  LOCAL n=200,mtx=[[0]];
  FOR X:=20 TO n DO
    FOR Y:=20 TO n DO
      mtx[X,Y]:=0;      //mtx → 200x200 = 40,000 elements
    END
  END
END;
A buffer again? Doing this allows you to create very large matrices
I'm not understanding your point #1.

2) Is because matrices are limited to 20000 items. Lists are limited to 10000. Looks like the "expansion" code is not checking the size which it should be.

What is the purpose for such a large matrix?
(07-04-2017 10:35 PM)Tim Wessman Wrote: [ -> ]I'm not understanding your point #1.

Quisiera saber por qué en Home sí se puede mostrar una cadena de más de 65535 caracteres.
[Image: 34916058653_92cf93445d_o.png]

(07-04-2017 10:35 PM)Tim Wessman Wrote: [ -> ]2) Is because matrices are limited to 20000 items. Lists are limited to 10000. Looks like the "expansion" code is not checking the size which it should be.

What is the purpose for such a large matrix?

Some programs I've created require using 198x198 matrices and maybe a little more.


Reference URL's