summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2017-05-18 16:27:05 +0200
committerEike Rathke <erack@redhat.com>2017-05-18 18:55:17 +0200
commit26a67002fcb9381b54de6cae1aaa37120d49066a (patch)
treee631d9a79a249f1eb3e5c80f5158eece7b4ad040 /scaddins
parent700e262a4943a6d279cc4800bb9bd173aff0c3e1 (diff)
Fix typos
Only replaced "iff" with "if" Change-Id: Ib9dfa5c12b05500043147fe3b65f923b1b12a581 Reviewed-on: https://gerrit.libreoffice.org/37782 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysishelper.cxx2
-rw-r--r--scaddins/source/pricing/black_scholes.cxx2
-rw-r--r--scaddins/source/pricing/black_scholes.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 45b96b5c4464..9416618d85f2 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -565,7 +565,7 @@ double GetYearFrac( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDat
// is to be understood as "inclusive the lower bound, exclusive in upper bound".
assert(nYear1 == nYear2 || nYear1 + 1 == nYear2);
- // as a consequence, nYearDifferent iff nYear2 == nYear + 1, and
+ // as a consequence, nYearDifferent if nYear2 == nYear + 1, and
// there are only two possible 29 Februaries to consider:
// "29 February nYear1" and "29 February nYear2"
diff --git a/scaddins/source/pricing/black_scholes.cxx b/scaddins/source/pricing/black_scholes.cxx
index 8a8cd1eb88da..9380da5c64fd 100644
--- a/scaddins/source/pricing/black_scholes.cxx
+++ b/scaddins/source/pricing/black_scholes.cxx
@@ -888,7 +888,7 @@ double prob_hit(double S, double vol, double mu,
}
// probability of being in-the-money, ie payoff is greater zero,
-// assuming payoff(S_T) > 0 iff S_T in [B1, B2]
+// assuming payoff(S_T) > 0 if S_T in [B1, B2]
// this the same as the price of a cash or nothing option
// with no discounting
double prob_in_money(double S, double vol, double mu,
diff --git a/scaddins/source/pricing/black_scholes.hxx b/scaddins/source/pricing/black_scholes.hxx
index cdcb20b84182..c42ba182a757 100644
--- a/scaddins/source/pricing/black_scholes.hxx
+++ b/scaddins/source/pricing/black_scholes.hxx
@@ -130,7 +130,7 @@ double prob_hit(double S, double vol, double mu,
// probability of being in-the-money, ie payoff is greater zero,
-// assuming payoff(S_T) > 0 iff S_T in [B1, B2]
+// assuming payoff(S_T) > 0 if S_T in [B1, B2]
double prob_in_money(double S, double vol, double mu,
double tau, double B1, double B2);
double prob_in_money(double S, double vol, double mu,