Simulating 15C RAN # on 35s
|
02-15-2015, 07:28 AM
Post: #5
|
|||
|
|||
RE: Simulating 15C RAN # on 35s
(02-15-2015 05:24 AM)Paul Dale Wrote: Shouldn't there be a FRAC surround the entire expression? Correct: RND(n+1) = Frac(1574352261*RND(n) + 0.1017980433) Or then we could use: RND(n+1) = Frac(15743.52261*(\(10^5\)*RND(n)) + 0.1017980433) This allows to split the factors into an integer and fraction part and use: \((a+b)(c+d)=ac+ad+bc+bd\) The good thing is that \(ac\) is an integer. Thus we can omit it. Here's a program for the HP-42S: Code: 00 { 56-Byte Prgm } It should be straightforward to translate that to the HP-35S. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)