Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5ace1ab4
Commit
5ace1ab4
authored
Feb 22, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asin micro-optimization suggested in email.
parent
1b6ab795
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Modules/cmathmodule.c
Modules/cmathmodule.c
+3
-2
No files found.
Modules/cmathmodule.c
View file @
5ace1ab4
...
...
@@ -70,8 +70,9 @@ c_asin(Py_complex x)
/* -i * log[(sqrt(1-x**2) + i*x] */
const
Py_complex
squared
=
c_prod
(
x
,
x
);
const
Py_complex
sqrt_1_minus_x_sq
=
c_sqrt
(
c_diff
(
c_one
,
squared
));
const
Py_complex
sum
=
c_sum
(
sqrt_1_minus_x_sq
,
c_prod
(
c_i
,
x
));
return
c_neg
(
c_prodi
(
c_log
(
sum
)));
return
c_neg
(
c_prodi
(
c_log
(
c_sum
(
sqrt_1_minus_x_sq
,
c_prodi
(
x
))
)
)
);
}
static
char
c_asin_doc
[]
=
...
...
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