So, in my endeavors to finish up TIGHT (shameless plug is shameless), I've come across some interesting quirks involving the binomcdf( command most famously used in BASIC to generate certain lists (e.g., the integers in ascending order). This entire investigation began and is still ongoing in the #ti-basic channel on the Discord server.
Basically, binomcdf( is broken, at least since 1.03 and until 5.6.0. Most testing so far has been undertaken on 5.3.0 or 5.4.0/1. Now, we expect binomcdf( to be unable to generate lists of size 256 or greater, returning an ERR:DATATYPE (or ERR:UNDEFINED pre-5.0.0), and this is indeed what we see most of the time.
However, there are some oddities. The following snippets have produced their specified outputs at different times, and, more strikingly, differently on the same OS, seemingly dependent on which commands have been run before it:
5.3.0.0037
Code:
5.3.0.0037
Code:
5.3.0.0037
Code:
5.3.0037
Code:
5.4.0.0034
Code:
5.4.1.0052
Code:
5.4.0.0034
Code:
5.4.0.0034
Code:
I am absolutely dumbfounded by this instability, and myself and LogicalJoe have yet to identify any kind of root cause or vague explanation. In the mean time, you can contribute to this investigation by spamming lots of different binomcdf( commands and seeing what you get. I'm sure it won't make sense either.
Basically, binomcdf( is broken, at least since 1.03 and until 5.6.0. Most testing so far has been undertaken on 5.3.0 or 5.4.0/1. Now, we expect binomcdf( to be unable to generate lists of size 256 or greater, returning an ERR:DATATYPE (or ERR:UNDEFINED pre-5.0.0), and this is indeed what we see most of the time.
However, there are some oddities. The following snippets have produced their specified outputs at different times, and, more strikingly, differently on the same OS, seemingly dependent on which commands have been run before it:
5.3.0.0037
Code:
:binomcdf(300,0
ERR:UNDEFINED
:binomcdf(301,0
ERR:UNDEFINED
5.3.0.0037
Code:
:binompdf(300,0
Returns
:binomcdf(300,0
Hangs, then RAM Reset
5.3.0.0037
Code:
:binomcdf(298,0
ERR:DATATYPE
:binomcdf(299,0
ERR:DATATYPE
:binomcdf(300,0
ERR:DATATYPE
:binomcdf(301,0
ERR:DATATYPE
5.3.0037
Code:
:binomcdf(998,0
Returns
5.4.0.0034
Code:
:binomcdf(998,0
Returns
5.4.1.0052
Code:
:binomcdf(998,0
Returns
5.4.0.0034
Code:
:binomcdf(998,0
ERR:DATATYPE
5.4.0.0034
Code:
:binomcdf(998,0.5
Returns
:binomcdf(998,0
ERR:DATATYPE
:binomcdf(998,0.75
Returns
:binomcdf(998,0
ERR:DATATYPE
:binomcdf(998,|E~7
Returns
:binomcdf(998,0
Returns
I am absolutely dumbfounded by this instability, and myself and LogicalJoe have yet to identify any kind of root cause or vague explanation. In the mean time, you can contribute to this investigation by spamming lots of different binomcdf( commands and seeing what you get. I'm sure it won't make sense either.