Reinventing the TVM wheel
|
05-19-2014, 05:39 AM
(This post was last modified: 05-19-2014 11:16 AM by Ángel Martin.)
Post: #16
|
|||
|
|||
RE: Reinventing the TVM wheel
(05-19-2014 12:37 AM)Sylvain Cote Wrote: Hello Angel, Sorry for the trouble Sylvain - the customary glitches in the most visible part: the FAT! (I was totally exhausted last night, but it's pretty embarrassing). Here's the 1D version with hopefully all solved. Still a few areas for improvement, like perhaps using an optimized initial guess for the interest solver. BTW the format for the date functions (JDAY and DAYS) is MM,DDYYYY - regardless of the time module settings if you have one. The function DAYS is taken from the HP Securities Pac (labeled JDAY there, very confusing I know). It isn't documented in the manual but it calculates the number of days between two dates in X and Y, also in the same MM,DDYYYY format. Or I should say it gets close to it, since the value returned isn't correct! (maybe that's why it wasn't documented :-). On the other hand function CJ keeps the compatibility with the PPC ROM for data input, i.e. uses Year, Month, and Day in stack registers {Z,Y,X}. To clarify: CDAY = JC, Julian to Calendar Date JDAY = CJ, Calendar to Julian day NUMBER Thanks for taking the time to try it and sorry about the stupid glitch. Cheers, 'AM "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)