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
48b4bf7b
Commit
48b4bf7b
authored
Mar 21, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a note about pow(x,y) equalling x**y (the "**" operator
was used unmotivated in the pow() docs)
parent
59b96c10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+5
-2
No files found.
Doc/lib/libfuncs.tex
View file @
48b4bf7b
...
...
@@ -735,8 +735,11 @@ class C:
\begin{funcdesc}
{
pow
}{
x, y
\optional
{
, z
}}
Return
\var
{
x
}
to the power
\var
{
y
}
; if
\var
{
z
}
is present, return
\var
{
x
}
to the power
\var
{
y
}
, modulo
\var
{
z
}
(computed more
efficiently than
\code
{
pow(
\var
{
x
}
,
\var
{
y
}
)
\%\ \var
{
z
}}
). The
arguments must have numeric types. With mixed operand types, the
efficiently than
\code
{
pow(
\var
{
x
}
,
\var
{
y
}
)
\%\ \var
{
z
}}
).
The two-argument form
\code
{
pow(
\var
{
x
}
,
\var
{
y
}
)
}
is equivalent to using
the power operator:
\code
{
\var
{
x
}
**
\var
{
y
}}
.
The arguments must have numeric types. With mixed operand types, the
coercion rules for binary arithmetic operators apply. For int and
long int operands, the result has the same type as the operands
(after coercion) unless the second argument is negative; in that
...
...
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