CAS vs. HOME
|
06-03-2014, 03:18 AM
Post: #2
|
|||
|
|||
RE: CAS vs. HOME
(06-03-2014 02:03 AM)lrdheat Wrote: I was making some lotto programs and was surprised to find that RANDOM behaves differently in HOME vs. CAS. Didn't find reference to this in the onboard help. Many functions in CAS work differently depending on whether you type them in uppercase or lowercase letters. This is an example of that. random(a,b,c) is different from uppercase RANDOM(a,b,c) in CAS. CAS: random(a,b,c) --> reals with possible duplicates RANDOM(a,b,c) --> integers without duplicates Home: random(a,b,c) --> reals with possible duplicates RANDOM(a,b,c) --> reals with possible duplicates Please note that CAS.random(a,b,c) fails to work as expected if the CAS setting "Change apparent integers into exact integers" is unchecked (Shift CAS Settings, page 1, end of 3rd line). So if you use CAS.random(a,b,c) in Home programs, be sure that setting is checked first. Unfortunately there is no way to programmatically change that setting. <0|ΙΈ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
CAS vs. HOME - lrdheat - 06-03-2014, 02:03 AM
RE: CAS vs. HOME - Joe Horn - 06-03-2014 03:18 AM
|
User(s) browsing this thread: 2 Guest(s)