A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3schools.com/python/ref_math_exp.asp below:

Website Navigation


Python math.exp() Method

Python math.exp() Method

❮ Math Methods

Example

Return 'E' raised to the power of different numbers:

#Import math Library

import math

#find the exponential of the specified value

print(math.exp(65))

print(math.exp(-6.89))

Try it Yourself » Definition and Usage

The math.exp() method returns E raised to the power of x (Ex).

'E' is the base of the natural system of logarithms (approximately 2.718282) and x is the number passed to it.

Syntax Parameter Values Parameter Description x Required. Specifies the exponent Technical Details Return Value: A float value, representing 'E' raised to the power of x Python Version: 1.6.1

❮ Math Methods

Track your progress - it's free!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4