On 02/01/2022 22:43, Harriet Bazley wrote:
> On 2 Jan 2022 as I do recall,
> Martin wrote:
>> You should download the BASIC manual from
>> which is *much* more up to date!
> There's certainly stuff in there about arrays that I had no idea about -
> I don't know if that's because it's genuinely new since 1987, or because
> I never attempted whole-array operations....
Whole array operations have been there from the first BASIC V. I am
particularly fond of array multiplication, the . operator. This makes
vector transformations a doddle. It is a pity there are not more matrix
> 10 DIM A(2,2)
> 60 A() += n%*n%
> equates to "square the variable n% and increase each and every element
> in the array A() by the result of that calculation"
Just a warning that the apparently similar:
60 A() = n%*n%
has to be:
60 A() = (n%*n%)
And do not forget:
A() = 1,2,3,4,5,6
to fill an array.