File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,11 @@ Power and logarithmic functions
355
355
of natural logarithms. This is usually more accurate than ``math.e ** x ``
356
356
or ``pow(math.e, x) ``.
357
357
358
+ .. function :: exp2(x)
359
+
360
+ Return *2 * raised to the power *x *.
361
+
362
+ .. versionadded :: 3.11
358
363
359
364
.. function :: expm1(x)
360
365
Original file line number Diff line number Diff line change @@ -203,6 +203,8 @@ fractions
203
203
204
204
math
205
205
----
206
+ * Add :func: `math.exp2 `: return 2 raised to the power of x.
207
+ (Contributed by Gideon Mitchell in :issue: `45917 `.)
206
208
207
209
* Add :func: `math.cbrt `: return the cube root of x.
208
210
(Contributed by Ajith Ramachandran in :issue: `44357 `.)
Original file line number Diff line number Diff line change @@ -1191,6 +1191,7 @@ Julien Miotte
1191
1191
Andrii V. Mishkovskyi
1192
1192
Dom Mitchell
1193
1193
Dustin J. Mitchell
1194
+ Gideon Mitchell
1194
1195
Tim Mitchell
1195
1196
Zubin Mithra
1196
1197
Florian Mladitsch
You can’t perform that action at this time.
0 commit comments