It is not mentioned in this article that you can make lists without using L.
Date: 30 Mar 2007 02:22
Number of posts: 6
RSS: New posts
That is actually already mentioned, it's just on the Tips & Tricks page instead: http://tibasicdev.wikidot.com/tipstricks#toc29 I suppose we could add it to the optimization too, because it is an optimization trick after all.
:If A=2 and B=7 is slower than :If (A=2)(B=7)
I'm not sure how that was found to be true; the following shows otherwise:
:startTmr->T :For(A,0,\EE\3 :If (A=2)(B=7 : :End :checkTmr(T
:startTmr->T :For(A,0,\EE\3 :If A=2 and B=7 : :End :checkTmr(T
edit: My post ended up in the wrong section somehow.
I meant to reply to: http://tibasicdev.wikidot.com/tipstricks
Thanks for your careful observation! I corrected it now. I unfortunately only have a TI-83+SE calculator, so I don't have the time commands to test the speed. If you notice anything else that is incorrect, please point it out because accuracy is paramount. If you feel like writing any tutorials, you can do that too :D
:5→dim(L1 :For(X,1,5 :2A→L1(X :End can be :seq(2A,X,1,5→L1
according to Better than Seq() this can be further optimized to
The binomcdf( and binompdf( optimizations are listed on their respective pages (which the seq( page links to). I'm fairly sure that's not the right place for them either, and when I get around to it will write a page on the optimization specifically that will be linked to from all the commands it relates to.
By the way, the code is actually