Search found 8 matches

by toml_12953
Wed 02 Dec, 2009 8:08 pm
Forum: BBC BASIC
Topic: Nspire Compatibility
Replies: 19
Views: 57737

Re: Nspire Compatibility

Galandros wrote:Nspire compatibility, great. Good update. :)
How much free memory does BBC BASIC have on the Nspire? The same as on the 83?

Tom L
by toml_12953
Tue 28 Jul, 2009 2:24 am
Forum: BBC BASIC
Topic: Matrices
Replies: 15
Views: 28356

Re: Matrices

I don't suppose you have any recommendations or suggestions for an algorithm that could be used to calculate the inversion of a matrix? Thanks for all of your help and suggestions! :) How much stack space do you have? There are recursive routines that don't take much code but do take quite a bit of...
by toml_12953
Tue 28 Jul, 2009 12:31 am
Forum: BBC BASIC
Topic: Matrices
Replies: 15
Views: 28356

Re: Matrices

I have also modified quite a lot of the code to try and gain a little more space; I'm down to 490 bytes to squeeze the inversion/determinant code in, which is more than a little tight! Maybe you could eliminate Revision 752 "Added check to ensure that result matrix is neither of the operand ma...
by toml_12953
Tue 28 Jul, 2009 12:14 am
Forum: BBC BASIC
Topic: Matrices
Replies: 15
Views: 28356

Re: Matrices

I have also added the compacted form of MAT PRINT a; - is there any accepted way to suppress the line feed between PRINT ed matrices? Not in standard BASIC. Maybe you can eliminate the check for parens when MAT is used. That might free up some space. When I tried this: 10 DIM A(2,2) 20 MAT A=IDN 30...
by toml_12953
Mon 27 Jul, 2009 10:33 pm
Forum: BBC BASIC
Topic: Matrices
Replies: 15
Views: 28356

Re: Matrices

I'm sure there will be bugs in the features I've implemented above, so please let me know when you find them! I don't know if you're planning on implementing this or not but MAT PRINT A; should print matrix A in a packed format while MAT PRINT A (or A,) should print them in the usual format (just l...
by toml_12953
Fri 24 Jul, 2009 2:43 pm
Forum: BBC BASIC
Topic: Matrices
Replies: 15
Views: 28356

Re: Matrices

Point taken. :) I shall use the parameterless DET method, then. What is your view on the different dimensions of arrays? For some operations it wouldn't really matter, I suppose ( ZER or CON ) and with some it would be nonsensical (assigning a one-dimensional array to a two-dimensional array), but ...
by toml_12953
Fri 24 Jul, 2009 2:14 pm
Forum: BBC BASIC
Topic: Matrices
Replies: 15
Views: 28356

Re: Matrices

The following could work: MAT d=DET(a()) however, you would not be able to use DET() as a regular function, eg in a PRINT statement. But DET is a single number, not a matrix. It's used to determine how "good" an inversion is. The larger DET is, the better the inversion; the less loss of p...
by toml_12953
Fri 24 Jul, 2009 12:13 pm
Forum: BBC BASIC
Topic: Matrices
Replies: 15
Views: 28356

Re: Matrices

I'm wondering if people had any requirements or suggestions for the MAT statement. There are some limitations I have to work with; for example, any matrix operation must be prefixed with MAT , and matrices are not efficiently resizeable as BBC BASIC only stores the current size, not the maximum siz...