HP Forums
MIRR Program for 17bii+ - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: MIRR Program for 17bii+ (/thread-68205.html)



MIRR Program for 17bii+ - Walter - 01-26-2005

Is any one got a program for calculating Modified Internal Rate of Return (MIRR) with 17bii+?




Re: MIRR Program for 17bii+ - Bob Wang - 01-26-2005

How about this?

http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv014.cgi?read=62730

Bob


Re: MIRR Program for 17bii+ - Frank - 01-26-2005

Bob, I believe you once made a reference of the Black-Sholes computation for the HP 200lx. Is it possible for you to refer me to it or to send me as an e-mail.

Thanks for your help.

~frank


Black-Scholes on the 200lx - Bob Wang - 01-26-2005

Frank:

The shortest, most accurate implementation of Black-Scholes not using UTPN is courtesy of Tizedes Czaba's suggestion of using a Taylor series. However, it is also the SLOWEST, taking well over a minute on my 17Bs and 19Bs. I would appreciate it if you would try it on your 200lx, and time the execution. IF the speed is acceptable, I would recommend using that instead of the different polynomial methods I have posted on my shabby home page.

Bob

Bob Wang Home Page

Taylor Series Approximation:
Using L() and G()
Execution time > 1 minute
Character Count = 363
BLK.SCHLS:
IF(S(CALLV):
IF(L(A:ABS(L(C:LN(PS/PE)/S/SQRT(T)+(RF%/100+S^2/2)*T/S/SQRT(T))))>3:0:
0*L(B:ABS(L(D:G(C)-S*SQRT(T))))
+PS*ABS(IF(G(C)<0:-.5:.5)
+SIGMA(N:0:25:1:(-1)^N*G(A)^(2*N+1)/FACT(N)/2^N/(2*N+1))/SQRT(2*PI))
-PE*EXP(-RF%*T/100)*ABS(IF(G(D)<0:-.5:.5)
+SIGMA(N:0:25:1:(-1)^N*G(B)^(2*N+1)/FACT(N)/2^N/(2*N+1))/SQRT(2*PI)))
-CALLV:
-PS+PE*EXP(-RF%*T/100)+0*S+CALLV-PUTV)



Re: Black-Scholes on the 200lx - Bob Wang - 01-26-2005

Frank:

In case it's not evident, please replace "SIGMA" with the summation operator.

Bob


SIGMA=SIGMA on the 200lx - Bob Wang - 01-26-2005

Frank:

Oops, I guess SIGMA *IS* just SIGMA on the 200lx.

Bob


Re: SIGMA=SIGMA on the 200lx - Frank - 01-26-2005

Thanks Bob, I'll keep you posted.


Re: MIRR Program for 17bii+ - Walter - 01-28-2005

Thanks!! Bob! I will try it!!