First impressions on Casio FX-5800P
|
05-13-2014, 02:47 PM
(This post was last modified: 05-15-2014 01:09 PM by Eddie W. Shore.)
Post: #15
|
|||
|
|||
RE: First impressions on Casio FX-5800P
Due to the lack of modulo (MOD) and signum (SIGN) functions on the fx-5800P, here are several subroutines to help compensate for it:
SIGN(x): // x is any calculation stored in a variable ... x > 0 ⇒ 1 → x : -x > 0 ⇒ -1 → x: .... n MOD d : ... numerator → N denominator → D Frac(Abs(N ÷ D)) × D ... Alternative (better way for MOD): N - D Intg(N ÷ D) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)