Page 12 of 12

Re: [TI BASIC] Optimizing

Posted: Sat 20 Dec, 2008 12:45 am
by tribal
Instead of using:

Code: Select all

if ans != 0 and ans !=21
use:

Code: Select all

if prod(Ans != {0, 21
and if you are ever checking if Ans is holding 0 I would suggest using:

Code: Select all

if not(Ans
instead of:

Code: Select all

if Ans = 0
both are equivalent but the first is smaller.

Re: [TI BASIC] Optimizing

Posted: Sat 20 Dec, 2008 3:13 am
by waeV
if not(ans you say? Hmm... I guess I would find that in the catalog? I don't see not( anywhere else.

Re: [TI BASIC] Optimizing

Posted: Sat 20 Dec, 2008 1:15 pm
by King Harold
[2ND] [TEST] LOGIC [4]

Of course it's also in the Catalog