
(require (quote calc-ext))

(defun calc-Need-calc-fin nil (byte-code "À‡" [nil] 1))

(defun calc-fin-pv nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "À ƒ ÁÂÃÄÅÂ!B#‚+ Æ ƒ\" ÁÂÇÈÅÂ!B#‚+ ÁÂÉÊÅÂ!B#‡" [calc-is-hyperbolic calc-enter-result 3 "pvl" calcFunc-pvl calc-top-list-n calc-is-inverse "pvb" calcFunc-pvb "pv" calcFunc-pv] 12)) 115] 3))

(defun calc-fin-npv (arg) (interactive "p") (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "Á ƒ ÂÃÄT#‚ ÂÅÆT#‡" [arg calc-is-inverse calc-vector-op "npvb" calcFunc-npvb "npv" calcFunc-npv] 6)) 401] 3))

(defun calc-fin-fv nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "À ƒ ÁÂÃÄÅÂ!B#‚+ Æ ƒ\" ÁÂÇÈÅÂ!B#‚+ ÁÂÉÊÅÂ!B#‡" [calc-is-hyperbolic calc-enter-result 3 "fvl" calcFunc-fvl calc-top-list-n calc-is-inverse "fvb" calcFunc-fvb "fv" calcFunc-fv] 12)) 618] 3))

(defun calc-fin-pmt nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "À ƒ ÁÂÃÄÅÂ!B#‚+ Æ ƒ\" ÁÂÇÈÅÂ!B#‚+ ÁÂÉÊÅÂ!B#‡" [calc-is-hyperbolic calc-enter-result 3 "fvl" calcFunc-fvl calc-top-list-n calc-is-inverse "pmtb" calcFunc-pmtb "pmt" calcFunc-pmt] 12)) 904] 3))

(defun calc-fin-nper nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "À ƒ ÁÂÃÄÅÂ!B#‚+ Æ ƒ\" ÁÂÇÈÅÂ!B#‚+ ÁÂÉÊÅÂ!B#‡" [calc-is-hyperbolic calc-enter-result 3 "nprl" calcFunc-nperl calc-top-list-n calc-is-inverse "nprb" calcFunc-nperb "nper" calcFunc-nper] 12)) 1195] 3))

(defun calc-fin-rate nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "ÀÁÂ ƒ Ã‚ Ä ƒ Å‚ ÆÇÈÂ ƒ  É‚* Â ƒ) Ê‚* ËÌÁ!B!!#‡" [calc-pop-push-record 3 calc-is-hyperbolic "ratl" calc-is-inverse "ratb" "rate" calc-to-percentage calc-normalize calcFunc-ratel calcFunc-rateb calcFunc-rate calc-top-list-n] 12)) 1494] 3))

(defun calc-fin-irr (arg) (interactive "P") (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "Á ƒ ÂÃÄ#‚ ÂÅÆ#‡" [arg calc-is-inverse calc-vector-op "irrb" calcFunc-irrb "irr" calcFunc-irr] 6)) 1835] 3))

(defun calc-fin-sln nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "ÀÁÂÃÄÁ!B#‡" [calc-enter-result 3 "sln" calcFunc-sln calc-top-list-n] 6)) 2051] 3))

(defun calc-fin-syd nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "ÀÁÂÃÄÁ!B#‡" [calc-enter-result 4 "syd" calcFunc-syd calc-top-list-n] 6)) 2232] 3))

(defun calc-fin-ddb nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "ÀÁÂÃÄÁ!B#‡" [calc-enter-result 4 "ddb" calcFunc-ddb calc-top-list-n] 6)) 2413] 3))

(defun calc-to-percentage (x) (byte-code ":?†
 @Â>ƒ< ÃÄ\"‰ˆ:?†- @Å>†- @Æ=…- Ç8ÈY…5 É!‰ˆÊD‚S :…E @Ë=ƒR ËÌÍA\"B‚S ‡" [x t (bigpos bigneg frac float cplx polar hms date sdev intv mod) math-mul 100 (bigpos bigneg) float 2 0 math-trunc calcFunc-percent vec mapcar calc-to-percentage] 6))

(defun calc-convert-percent nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "ÀÁÂÃÄÁ!!#‡" [calc-pop-push-record 1 "c%" calc-to-percentage calc-top-n] 6)) 2893] 3))

(defun calc-percent-change nil (interactive) (byte-code "ÀˆÁÂÃ\"‡" [nil calc-do (lambda nil (byte-code "ÁÂÃÄ!B!ÅÄÆÇ!#)‡" [res calc-normalize calcFunc-relch calc-top-list 2 calc-pop-push-record "%ch" calc-to-percentage] 7)) 3085] 3))

(defun calcFunc-pv (rate num amount &optional lump) (byte-code "Æ	\"ˆÇ
È\\ÉÊË\"	\"ÊÌÍÎËÍË\"\"\"\"Í†& Ï\"\"))!‡" [rate num calc-internal-prec p amount lump math-check-financial math-normalize 2 math-pow math-add 1 math-mul math-div math-sub 0] 13))

(put (quote calcFunc-pv) (quote math-expandable) t)

(defun calcFunc-pvl (rate num amount) (byte-code "Ã	Ä
$‡" [rate num amount calcFunc-pv 0] 5))

(put (quote calcFunc-pvl) (quote math-expandable) t)

(defun calcFunc-pvb (rate num amount &optional lump) (byte-code "Æ	\"ˆÇ
È\\ÉÊË\"	\"ÊÌÍÌÎËÍË\"\"ÊË\"\"\"\"Í†, Ï\"\"))!‡" [rate num calc-internal-prec p amount lump math-check-financial math-normalize 2 math-pow math-add 1 math-mul math-div math-sub 0] 15))

(put (quote calcFunc-pvb) (quote math-expandable) t)

(defun calcFunc-npv (rate &rest flows) (byte-code "ÇÈ\"ˆÉ	Ê\\Ë!ÌÈ\"Í
A‰…4 ÌÎ
@\"\"Ï\"‰ˆ‚ ˆ,)!‡" [rate calc-internal-prec flat flows pp p accum math-check-financial 1 math-normalize 2 math-flatten-many-vecs math-add 0 math-div math-mul] 10))

(put (quote calcFunc-npv) (quote math-expandable) t)

(defun calcFunc-npvb (rate &rest flows) (byte-code "ÇÈ\"ˆÉ	Ê\\Ë!ÌÈ\"ÈÍ
A‰…4 ÌÎ
@\"\"Ï\"‰ˆ‚ ˆ,)!‡" [rate calc-internal-prec flat flows pp p accum math-check-financial 1 math-normalize 2 math-flatten-many-vecs math-add 0 math-div math-mul] 10))

(put (quote calcFunc-npvb) (quote math-expandable) t)

(defun calcFunc-fv (rate num amount &optional initial) (byte-code "Æ	\"ˆÇ
È\\ÉÊË\"	\"ÊÌÍÎË\"\"\"Ì†# Ï\"\"))!‡" [rate num calc-internal-prec p amount initial math-check-financial math-normalize 2 math-pow math-add 1 math-mul math-div math-sub 0] 12))

(put (quote calcFunc-fv) (quote math-expandable) t)

(defun calcFunc-fvl (rate num amount) (byte-code "Ã	Ä
$‡" [rate num amount calcFunc-fv 0] 5))

(put (quote calcFunc-fvl) (quote math-expandable) t)

(defun calcFunc-fvb (rate num amount &optional initial) (byte-code "Æ	\"ˆÇ
È\\ÉÊË\"	\"ÊÌÍÌÎË\"ÊË\"\"\"\"Ì†) Ï\"\"))!‡" [rate num calc-internal-prec p amount initial math-check-financial math-normalize 2 math-pow math-add 1 math-mul math-div math-sub 0] 14))

(put (quote calcFunc-fvb) (quote math-expandable) t)

(defun calcFunc-pmt (rate num amount &optional lump) (byte-code "Æ	\"ˆÇ
È\\ÉÊË\"	\"ÌÍÎÌ† Ï\"\"\"ÎËÌË\"\"\"))!‡" [rate num calc-internal-prec p amount lump math-check-financial math-normalize 2 math-pow math-add 1 math-div math-mul math-sub 0] 14))

(put (quote calcFunc-pmt) (quote math-expandable) t)

(defun calcFunc-pmtb (rate num amount &optional lump) (byte-code "Æ	\"ˆÇ
È\\ÉÊË\"	\"ÌÍÎÌ† Ï\"\"\"ÍÎËÌË\"\"ÊË\"\"\"))!‡" [rate num calc-internal-prec p amount lump math-check-financial math-normalize 2 math-pow math-add 1 math-div math-mul math-sub 0] 16))

(put (quote calcFunc-pmtb) (quote math-expandable) t)

(defun calcFunc-nper (rate pmt amount &optional lump) (byte-code "Å	
Ä%‡" [rate pmt amount lump nil math-compute-nper] 6))

(put (quote calcFunc-nper) (quote math-expandable) t)

(defun calcFunc-nperb (rate pmt amount &optional lump) (byte-code "Ä	
Å%‡" [rate pmt amount lump math-compute-nper b] 6))

(put (quote calcFunc-nperb) (quote math-expandable) t)

(defun calcFunc-nperl (rate pmt amount) (byte-code "Ä	
ÃÅ%‡" [rate pmt amount nil math-compute-nper l] 6))

(put (quote calcFunc-nperl) (quote math-expandable) t)

(defun math-compute-nper (rate pmt amount lump bflag) (byte-code "… Ë!… Á‰ˆ… Ë
!… ÁÌ‰ˆÍ!†4 …- ?†4 ÎÏ\"ˆË!…? ÎÐ\"ˆÍ
!†T …M ?†T Î
Ï\"ˆÍ!†i …b ?†i ÎÏ\"ˆƒ¦ Í!†x ÎÏ\"ˆÑÒÓƒ„ Ô‚… ÕÖ
%E×ØÈ$Ù!ƒ  Ú8‚¢ )‚ô Û	Ü\\	Ì=ƒº Ý
\"‚Ò ÞÚÝß\"ƒÏ ß
àÚ\"\"‚Ð 
\"\"
á
!†Ý ƒí âã
àÚ\"\"!‚ñ Î
ä\"))!‡" [lump nil pmt amount bflag rate math-expand-formulas root t calc-internal-prec temp math-zerop l math-objectp math-reject-arg numberp nonzerop math-find-root calcFunc-eq list calcFunc-pvb calcFunc-pv (var DUMMY var-DUMMY) (var DUMMY var-DUMMY) (intv 3 0 100) math-vectorp 1 math-normalize 2 math-div math-sub math-mul math-add math-posp math-neg calcFunc-log "*Payment too small to cover interest rate"] 29))

(defun calcFunc-rate (num pmt amount &optional lump) (byte-code "Ä	
Å%‡" [num pmt amount lump math-compute-rate calcFunc-pv] 6))

(defun calcFunc-rateb (num pmt amount &optional lump) (byte-code "Ä	
Å%‡" [num pmt amount lump math-compute-rate calcFunc-pvb] 6))

(defun math-compute-rate (num pmt amount lump func) (byte-code "Ç!†
 ÈÉ\"ˆÇ	!† È	É\"ˆÇ
!†  È
É\"ˆ?†0 Ç!†0 ÈÉ\"ˆÊËÌÍ	†= Î%
EÏÐÆ$Ñ!ƒQ Ò8‚R )‡" [num pmt amount lump root func t math-objectp math-reject-arg numberp math-find-root calcFunc-eq list (var DUMMY var-DUMMY) 0 (var DUMMY var-DUMMY) (intv 3 (float 1 -4) 1) math-vectorp 1] 16))

(defun calcFunc-ratel (num pmt amount) (byte-code "Å!† 	† ÆÇ\"ˆÅ
!† 	† Æ
Ç\"ˆÅ!†, 	†, ÆÇ\"ˆÈÉ\\ÊËÌ
\"ÌÍ\"\"Í\")!‡" [num math-expand-formulas pmt amount calc-internal-prec math-objectp math-reject-arg numberp math-normalize 2 math-sub math-pow math-div 1] 14))

(defun calcFunc-irr (&rest vecs) (byte-code "ÁÂ\"‡" [vecs math-compute-irr calcFunc-npv] 3))

(defun calcFunc-irrb (&rest vecs) (byte-code "ÁÂ\"‡" [vecs math-compute-irr calcFunc-npvb] 3))

(defun math-compute-irr (vecs func) (byte-code "Å	!ÆÇEÈÉÄ$Ê
!ƒ Ë
8‚ 
*‡" [flat vecs root func t math-flatten-many-vecs math-find-root (var DUMMY var-DUMMY) (var DUMMY var-DUMMY) (intv 3 (float 1 -4) 1) math-vectorp 1] 6))

(defun math-check-financial (rate num) (byte-code "Ã!† 	† ÄÅ\"ˆÆ!… ÄÇ\"ˆÃ
!†( 	†( Ä
Å\"‡" [rate math-expand-formulas num math-objectp math-reject-arg numberp math-zerop nonzerop] 8))

(defun calcFunc-sln (cost salvage life &optional period) (byte-code "Å!† 	† ÆÇ\"ˆÅ
!† 	† Æ
Ç\"ˆÅ!†, 	†, ÆÇ\"ˆÈ!…7 ÆÉ\"ˆ…V Ê!ƒR Ë\"ÌU†O Í!?‚V ÆÎ\"ƒ] Ï‚d ÐÑ
\"\"‡" [cost math-expand-formulas salvage life period math-realp math-reject-arg realp math-zerop nonzerop math-num-integerp math-compare -1 math-posp integerp 0 math-div math-sub] 16))

(put (quote calcFunc-sln) (quote math-expandable) t)

(defun calcFunc-syd (cost salvage life period) (byte-code "Å!† 	† ÆÇ\"ˆÅ
!† 	† Æ
Ç\"ˆÅ!†, 	†, ÆÇ\"ˆÈ!…7 ÆÉ\"ˆÅ!†F 	†F ÆÇ\"ˆÊ\"ËU†T Ì!?ƒ[ Í‚t ÎÏÐ
\"ÑÐ\"Ò\"\"ÎÏÑÒ\"\"Ó\"\"‡" [cost math-expand-formulas salvage life period math-realp math-reject-arg realp math-zerop nonzerop math-compare -1 math-posp 0 math-div math-mul math-sub math-add 1 2] 24))

(put (quote calcFunc-syd) (quote math-expandable) t)

(defun calcFunc-ddb (cost salvage life period) (byte-code "Æ!… Ç!‰ˆÈ!† ÉÊ\"ˆË	!†! É	Ì\"ˆË
!†, É
Ì\"ˆË!†7 ÉÌ\"ˆÍ!…B ÉÎ\"ˆÏ\"ÐU†O ÑXƒV Ñ‚� 	ÑS‰ÑY…Š ÒÓÔ\"\"Õ\"‰ˆÏ
\"ÐU…† ÖÕ
\"\"
‰ˆ‚Z ˆ*‡" [period cost salvage life book res math-messy-integerp math-trunc integerp math-reject-arg fixnump math-realp realp math-zerop nonzerop math-compare -1 0 math-div math-mul 2 math-sub math-add] 23))
