Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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ç
Batuhan Osman TASKAYA
cpython
Commits
10e1bf2f
Kaydet (Commit)
10e1bf2f
authored
Agu 10, 2000
tarafından
Peter Schneider-Kamp
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove all occurence of math.rint() from the sources
(and yes, "Currintly" also counts <0.5 wink>)
üst
0707fea5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1 addition
and
36 deletions
+1
-36
libmath.tex
Doc/lib/libmath.tex
+0
-5
mymath.h
Include/mymath.h
+0
-2
pyport.h
Include/pyport.h
+0
-2
profile.py
Lib/profile.py
+1
-1
test_math
Lib/test/output/test_math
+0
-1
test_math.py
Lib/test/test_math.py
+0
-12
mathmodule.c
Modules/mathmodule.c
+0
-7
configure
configure
+0
-0
configure.in
configure.in
+0
-6
No files found.
Doc/lib/libmath.tex
Dosyayı görüntüle @
10e1bf2f
...
@@ -97,11 +97,6 @@ carry the sign of \var{x}. The integer part is returned as a real.
...
@@ -97,11 +97,6 @@ carry the sign of \var{x}. The integer part is returned as a real.
Return
\code
{
\var
{
x
}
**
\var
{
y
}}
.
Return
\code
{
\var
{
x
}
**
\var
{
y
}}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
rint
}{
x, y
}
Return the integer nearest to
\var
{
x
}
as a real.
(Only available on platforms where this is in the standard C math library.)
\end{funcdesc}
\begin{funcdesc}
{
sin
}{
x
}
\begin{funcdesc}
{
sin
}{
x
}
Return the sine of
\var
{
x
}
.
Return the sine of
\var
{
x
}
.
\end{funcdesc}
\end{funcdesc}
...
...
Include/mymath.h
Dosyayı görüntüle @
10e1bf2f
...
@@ -55,7 +55,6 @@ extern double hypot(double, double);
...
@@ -55,7 +55,6 @@ extern double hypot(double, double);
#undef log
#undef log
#undef log10
#undef log10
#undef pow
#undef pow
#undef rint
#undef sin
#undef sin
#undef sinh
#undef sinh
#undef sqrt
#undef sqrt
...
@@ -75,7 +74,6 @@ extern double hypot(double, double);
...
@@ -75,7 +74,6 @@ extern double hypot(double, double);
#define log logd
#define log logd
#define log10 log10d
#define log10 log10d
#define pow powd
#define pow powd
#define rint rintd
#define sin sind
#define sin sind
#define sinh sinhd
#define sinh sinhd
#define sqrt sqrtd
#define sqrt sqrtd
...
...
Include/pyport.h
Dosyayı görüntüle @
10e1bf2f
...
@@ -193,7 +193,6 @@ extern double hypot(double, double);
...
@@ -193,7 +193,6 @@ extern double hypot(double, double);
#undef log
#undef log
#undef log10
#undef log10
#undef pow
#undef pow
#undef rint
#undef sin
#undef sin
#undef sinh
#undef sinh
#undef sqrt
#undef sqrt
...
@@ -213,7 +212,6 @@ extern double hypot(double, double);
...
@@ -213,7 +212,6 @@ extern double hypot(double, double);
#define log logd
#define log logd
#define log10 log10d
#define log10 log10d
#define pow powd
#define pow powd
#define rint rintd
#define sin sind
#define sin sind
#define sinh sinhd
#define sinh sinhd
#define sqrt sqrtd
#define sqrt sqrtd
...
...
Lib/profile.py
Dosyayı görüntüle @
10e1bf2f
...
@@ -390,7 +390,7 @@ class Profile:
...
@@ -390,7 +390,7 @@ class Profile:
# more carefully the number of events (and cumulatively, the number
# more carefully the number of events (and cumulatively, the number
# of events during sub functions) that are seen. If this were
# of events during sub functions) that are seen. If this were
# done, then the arithmetic could be done after the fact (i.e., at
# done, then the arithmetic could be done after the fact (i.e., at
# display time). Curr
i
ntly, we track only call/return events.
# display time). Curr
e
ntly, we track only call/return events.
# These values can be deduced by examining the callees and callers
# These values can be deduced by examining the callees and callers
# vectors for each functions. Hence we *can* almost correct the
# vectors for each functions. Hence we *can* almost correct the
# internal time figure at print time (note that we currently don't
# internal time figure at print time (note that we currently don't
...
...
Lib/test/output/test_math
Dosyayı görüntüle @
10e1bf2f
...
@@ -19,7 +19,6 @@ log
...
@@ -19,7 +19,6 @@ log
log10
log10
modf
modf
pow
pow
rint
sin
sin
sinh
sinh
sqrt
sqrt
...
...
Lib/test/test_math.py
Dosyayı görüntüle @
10e1bf2f
...
@@ -129,18 +129,6 @@ testit('pow(1,0)', math.pow(1,0), 1)
...
@@ -129,18 +129,6 @@ testit('pow(1,0)', math.pow(1,0), 1)
testit
(
'pow(2,1)'
,
math
.
pow
(
2
,
1
),
2
)
testit
(
'pow(2,1)'
,
math
.
pow
(
2
,
1
),
2
)
testit
(
'pow(2,-1)'
,
math
.
pow
(
2
,
-
1
),
0.5
)
testit
(
'pow(2,-1)'
,
math
.
pow
(
2
,
-
1
),
0.5
)
print
'rint'
try
:
math
.
rint
except
AttributeError
:
# this platform does not have rint, that is fine, skip the test
pass
else
:
testit
(
'rint(0.7)'
,
math
.
rint
(
0.7
),
1
)
testit
(
'rint(-0.3)'
,
math
.
rint
(
-
0.3
),
0
)
testit
(
'rint(2.5)'
,
math
.
rint
(
2.5
),
2
)
testit
(
'rint(3.5)'
,
math
.
rint
(
3.5
),
4
)
print
'sin'
print
'sin'
testit
(
'sin(0)'
,
math
.
sin
(
0
),
0
)
testit
(
'sin(0)'
,
math
.
sin
(
0
),
0
)
testit
(
'sin(pi/2)'
,
math
.
sin
(
math
.
pi
/
2
),
1
)
testit
(
'sin(pi/2)'
,
math
.
sin
(
math
.
pi
/
2
),
1
)
...
...
Modules/mathmodule.c
Dosyayı görüntüle @
10e1bf2f
...
@@ -129,10 +129,6 @@ FUNC2(pow, power,
...
@@ -129,10 +129,6 @@ FUNC2(pow, power,
FUNC2
(
pow
,
pow
,
FUNC2
(
pow
,
pow
,
"pow(x,y)
\n\n
Return x**y."
)
"pow(x,y)
\n\n
Return x**y."
)
#endif
#endif
#ifdef HAVE_RINT
FUNC1
(
rint
,
rint
,
"rint(x)
\n\n
Return the integer nearest to x as a real."
)
#endif
FUNC1
(
sin
,
sin
,
FUNC1
(
sin
,
sin
,
"sin(x)
\n\n
Return the sine of x."
)
"sin(x)
\n\n
Return the sine of x."
)
FUNC1
(
sinh
,
sinh
,
FUNC1
(
sinh
,
sinh
,
...
@@ -240,9 +236,6 @@ static PyMethodDef math_methods[] = {
...
@@ -240,9 +236,6 @@ static PyMethodDef math_methods[] = {
{
"log10"
,
math_log10
,
METH_VARARGS
,
math_log10_doc
},
{
"log10"
,
math_log10
,
METH_VARARGS
,
math_log10_doc
},
{
"modf"
,
math_modf
,
METH_VARARGS
,
math_modf_doc
},
{
"modf"
,
math_modf
,
METH_VARARGS
,
math_modf_doc
},
{
"pow"
,
math_pow
,
METH_VARARGS
,
math_pow_doc
},
{
"pow"
,
math_pow
,
METH_VARARGS
,
math_pow_doc
},
#ifdef HAVE_RINT
{
"rint"
,
math_rint
,
METH_VARARGS
,
math_rint_doc
},
#endif
{
"sin"
,
math_sin
,
METH_VARARGS
,
math_sin_doc
},
{
"sin"
,
math_sin
,
METH_VARARGS
,
math_sin_doc
},
{
"sinh"
,
math_sinh
,
METH_VARARGS
,
math_sinh_doc
},
{
"sinh"
,
math_sinh
,
METH_VARARGS
,
math_sinh_doc
},
{
"sqrt"
,
math_sqrt
,
METH_VARARGS
,
math_sqrt_doc
},
{
"sqrt"
,
math_sqrt
,
METH_VARARGS
,
math_sqrt_doc
},
...
...
configure
Dosyayı görüntüle @
10e1bf2f
This diff is collapsed.
Click to expand it.
configure.in
Dosyayı görüntüle @
10e1bf2f
...
@@ -1075,12 +1075,6 @@ LIBS="$LIBS $LIBM"
...
@@ -1075,12 +1075,6 @@ LIBS="$LIBS $LIBM"
AC_REPLACE_FUNCS(hypot)
AC_REPLACE_FUNCS(hypot)
LIBS=$LIBS_SAVE
LIBS=$LIBS_SAVE
# check for rint() in math library
LIBS_SAVE=$LIBS
LIBS="$LIBS $LIBM"
AC_CHECK_FUNCS(rint)
LIBS=$LIBS_SAVE
# check for getopt
# check for getopt
AC_MSG_CHECKING(for genuine getopt)
AC_MSG_CHECKING(for genuine getopt)
AC_CACHE_VAL(ac_cv_func_getopt,
AC_CACHE_VAL(ac_cv_func_getopt,
...
...
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