Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
f5b1392b
Commit
f5b1392b
authored
Dec 04, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'math' of
https://github.com/certik/cython
parents
7f21402d
63045fd0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
Cython/Includes/libc/math.pxd
Cython/Includes/libc/math.pxd
+37
-0
tests/compile/libc_math.pyx
tests/compile/libc_math.pyx
+4
-0
No files found.
Cython/Includes/libc/math.pxd
0 → 100644
View file @
f5b1392b
cdef
extern
from
"math.h"
:
enum
:
M_E
enum
:
M_LOG2E
enum
:
M_LOG10E
enum
:
M_LN2
enum
:
M_LN10
enum
:
M_PI
enum
:
M_PI_2
enum
:
M_PI_4
enum
:
M_1_PI
enum
:
M_2_PI
enum
:
M_2_SQRTPI
enum
:
M_SQRT2
enum
:
M_SQRT1_2
double
acos
(
double
x
)
double
asin
(
double
x
)
double
atan
(
double
x
)
double
atan2
(
double
y
,
double
x
)
double
cos
(
double
x
)
double
sin
(
double
x
)
double
tan
(
double
x
)
double
cosh
(
double
x
)
double
sinh
(
double
x
)
double
tanh
(
double
x
)
double
acosh
(
double
x
)
double
asinh
(
double
x
)
double
atanh
(
double
x
)
double
exp
(
double
x
)
double
log
(
double
x
)
double
log10
(
double
x
)
double
pow
(
double
x
,
double
y
)
double
sqrt
(
double
x
)
tests/compile/libc_math.pyx
0 → 100644
View file @
f5b1392b
from
libc.math
cimport
(
M_E
,
M_LOG2E
,
M_LOG10E
,
M_LN2
,
M_LN10
,
M_PI
,
M_PI_2
,
M_PI_4
,
M_1_PI
,
M_2_PI
,
M_2_SQRTPI
,
M_SQRT2
,
M_SQRT1_2
)
from
libc.math
cimport
(
acos
,
asin
,
atan
,
atan2
,
cos
,
sin
,
tan
,
cosh
,
sinh
,
tanh
,
acosh
,
asinh
,
atanh
,
exp
,
log
,
log10
,
pow
,
sqrt
)
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