日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python cmath模块_cmath模块-PYTHON

發布時間:2023/12/20 python 46 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python cmath模块_cmath模块-PYTHON 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

這是一個float型的常數

>>> cmath.e

2.718281828459045

>>> type(cmath.e)

文檔

>>> import cmath

>>> help(cmath)

Help on module cmath:

NAME

cmath

FILE

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cmath.so

MODULE DOCS

http://docs.python.org/library/cmath Go

DESCRIPTION

This module is always available. It provides access to mathematical

functions for complex numbers.

FUNCTIONS

acos(...)

acos(x)

Return the arc cosine of x.

acosh(...)

acosh(x)

Return the inverse hyperbolic cosine of x.

asin(...)

asin(x)

Return the arc sine of x.

asinh(...)

asinh(x)

Return the inverse hyperbolic sine of x.

atan(...)

atan(x)

Return the arc tangent of x.

atanh(...)

atanh(x)

Return the inverse hyperbolic tangent of x.

cos(...)

cos(x)

Return the cosine of x.

cosh(...)

cosh(x)

Return the hyperbolic cosine of x.

exp(...)

exp(x)

Return the exponential value e**x.

isinf(...)

isinf(z) -> bool

Checks if the real or imaginary part of z is infinite.

isnan(...)

isnan(z) -> bool

Checks if the real or imaginary part of z not a number (NaN)

log(...)

log(x[, base]) -> the logarithm of x to the given base.

If the base not specified, returns the natural logarithm (base e) of x.

log10(...)

log10(x)

Return the base-10 logarithm of x.

phase(...)

phase(z) -> float

Return argument, also known as the phase angle, of a complex.

polar(...)

polar(z) -> r: float, phi: float

Convert a complex from rectangular coordinates to polar coordinates. r is

the distance from 0 and phi the phase angle.

rect(...)

rect(r, phi) -> z: complex

Convert from polar coordinates to rectangular coordinates.

sin(...)

sin(x)

Return the sine of x.

sinh(...)

sinh(x)

Return the hyperbolic sine of x.

sqrt(...)

sqrt(x)

Return the square root of x.

tan(...)

tan(x)

Return the tangent of x.

tanh(...)

tanh(x)

Return the hyperbolic tangent of x.

DATA

e = 2.718281828459045

pi = 3.141592653589793

>>>

總結

以上是生活随笔為你收集整理的python cmath模块_cmath模块-PYTHON的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。