Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0c0ed057
Kaydet (Commit)
0c0ed057
authored
Şub 06, 2014
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mark as static & const
Change-Id: Icd8b1b65c6cb4834832290e88709380aeceab1c9
üst
18a16b6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
interpre.hxx
sc/source/core/inc/interpre.hxx
+1
-1
interpr2.cxx
sc/source/core/tool/interpr2.cxx
+2
-2
interpr3.cxx
sc/source/core/tool/interpr3.cxx
+7
-7
No files found.
sc/source/core/inc/interpre.hxx
Dosyayı görüntüle @
0c0ed057
...
...
@@ -706,7 +706,7 @@ void ScBadName();
// Statistics:
double
phi
(
double
x
);
double
integralPhi
(
double
x
);
double
taylor
(
double
*
pPolynom
,
sal_uInt16
nMax
,
double
x
);
double
taylor
(
const
double
*
pPolynom
,
sal_uInt16
nMax
,
double
x
);
double
gauss
(
double
x
);
double
gaussinv
(
double
x
);
double
GetBetaDist
(
double
x
,
double
alpha
,
double
beta
);
//cumulative distribution function
...
...
sc/source/core/tool/interpr2.cxx
Dosyayı görüntüle @
0c0ed057
...
...
@@ -2544,7 +2544,7 @@ static bool lclConvertMoney( const OUString& aSearchUnit, double& rfRate, int& r
double
fRate
;
int
nDec
;
};
ConvertInfo
aConvertTable
[]
=
{
static
const
ConvertInfo
aConvertTable
[]
=
{
{
"EUR"
,
1.0
,
2
},
{
"ATS"
,
13.7603
,
2
},
{
"BEF"
,
40.3399
,
0
},
...
...
@@ -2566,7 +2566,7 @@ static bool lclConvertMoney( const OUString& aSearchUnit, double& rfRate, int& r
{
"LVL"
,
0.702804
,
2
}
};
const
size_t
nConversionCount
=
sizeof
(
aConvertTable
)
/
sizeof
(
aConvertTable
[
0
]
);
static
const
size_t
nConversionCount
=
sizeof
(
aConvertTable
)
/
sizeof
(
aConvertTable
[
0
]
);
for
(
size_t
i
=
0
;
i
<
nConversionCount
;
++
i
)
if
(
aSearchUnit
.
equalsIgnoreAsciiCaseAscii
(
aConvertTable
[
i
].
pCurrText
)
)
{
...
...
sc/source/core/tool/interpr3.cxx
Dosyayı görüntüle @
0c0ed057
...
...
@@ -188,7 +188,7 @@ double ScInterpreter::integralPhi(double x)
return
0.5
*
::
rtl
::
math
::
erfc
(
-
x
*
0.7071067811865475
);
// * 1/sqrt(2)
}
double
ScInterpreter
::
taylor
(
double
*
pPolynom
,
sal_uInt16
nMax
,
double
x
)
double
ScInterpreter
::
taylor
(
const
double
*
pPolynom
,
sal_uInt16
nMax
,
double
x
)
{
double
nVal
=
pPolynom
[
nMax
];
for
(
short
i
=
nMax
-
1
;
i
>=
0
;
i
--
)
...
...
@@ -206,7 +206,7 @@ double ScInterpreter::gauss(double x)
double
nVal
=
0.0
;
if
(
xShort
==
0
)
{
double
t0
[]
=
static
const
double
t0
[]
=
{
0.39894228040143268
,
-
0.06649038006690545
,
0.00997355701003582
,
-
0.00118732821548045
,
0.00011543468761616
,
-
0.00000944465625950
,
0.00000066596935163
,
-
0.00000004122667415
,
0.00000000227352982
,
...
...
@@ -215,7 +215,7 @@ double ScInterpreter::gauss(double x)
}
else
if
((
xShort
>=
1
)
&&
(
xShort
<=
2
))
{
double
t2
[]
=
static
const
double
t2
[]
=
{
0.47724986805182079
,
0.05399096651318805
,
-
0.05399096651318805
,
0.02699548325659403
,
-
0.00449924720943234
,
-
0.00224962360471617
,
0.00134977416282970
,
-
0.00011783742691370
,
-
0.00011515930357476
,
...
...
@@ -228,7 +228,7 @@ double ScInterpreter::gauss(double x)
}
else
if
((
xShort
>=
3
)
&&
(
xShort
<=
4
))
{
double
t4
[]
=
static
const
double
t4
[]
=
{
0.49996832875816688
,
0.00013383022576489
,
-
0.00026766045152977
,
0.00033457556441221
,
-
0.00028996548915725
,
0.00018178605666397
,
-
0.00008252863922168
,
0.00002551802519049
,
-
0.00000391665839292
,
...
...
@@ -240,7 +240,7 @@ double ScInterpreter::gauss(double x)
}
else
{
double
asympt
[]
=
{
-
1.0
,
1.0
,
-
3.0
,
15.0
,
-
105.0
};
static
const
double
asympt
[]
=
{
-
1.0
,
1.0
,
-
3.0
,
15.0
,
-
105.0
};
nVal
=
0.5
+
phi
(
xAbs
)
*
taylor
(
asympt
,
4
,
1.0
/
(
xAbs
*
xAbs
))
/
xAbs
;
}
if
(
x
<
0.0
)
...
...
@@ -478,7 +478,7 @@ double ScInterpreter::BinomKoeff(double n, double k)
Uses a variant of the Lanczos sum with a rational function. */
static
double
lcl_getLanczosSum
(
double
fZ
)
{
const
double
fNum
[
13
]
=
{
static
const
double
fNum
[
13
]
=
{
23531376880.41075968857200767445163675473
,
42919803642.64909876895789904700198885093
,
35711959237.35566804944018545154716670596
,
...
...
@@ -493,7 +493,7 @@ static double lcl_getLanczosSum(double fZ)
210.8242777515793458725097339207133627117
,
2.506628274631000270164908177133837338626
};
const
double
fDenom
[
13
]
=
{
static
const
double
fDenom
[
13
]
=
{
0
,
39916800
,
120543840
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment