当前位置:网站首页>python math类
python math类
2020-11-10 10:46:00 【osc_nzvfn3cl】
import math
#弧度、角度的转换
print(math.degrees(math.pi))
print(math.radians(180))
#三角函数(正弦、反正弦、余弦)
print(math.sin(math.pi/3))
print(math.cos(math.pi/2-math.pi/3))
print(math.tan(math.pi/4))
# 反正弦、反余弦、反正切
print(math.asin(math.sin(math.pi/3)))
print(math.acos(math.cos(math.pi/2-math.pi/3)))
print(math.atan(math.tan(math.pi/4)))
print(math.atan2(4,2))
#返回 x 的双曲正切值\双曲正弦值\双曲余弦值
print(math.tanh(3))
print(math.cosh(3))
print(math.sinh(3))
#返回 x 的反双曲正切值\反双正弦函数、反双余弦函数
print(math.atanh(0.3))
print(math.asinh(math.pi/3))
print(math.acosh(math.pi/3))
#向上、向下取整,取绝对值,拷贝后数的符号给前数,取两数相除的余数,取最大公约数
print(math.ceil(5.3))
print(math.floor(5.3))
print(math.fabs(-3.34))
print(math.copysign(3,-4))
print(math.fmod(9,7))
#返回 IEEE 754 风格的 x 相对于 y 的余数
print(math.remainder(9,7))
print(math.gcd(9,6))
#返回的欧几里
版权声明
本文为[osc_nzvfn3cl]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4334340/blog/4710534
边栏推荐
- CCR coin robot: novel coronavirus pneumonia has accelerated the interest of regulators in CBDC.
- delete、truncate、drop 有什么区别,误删数据怎么办
- Call the open source video streaming media platform dawinffc
- 【goang】sync.WaitGroup详解
- OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜
- [paper reading notes] community oriented attributed network embedding
- Three ways to solve coursera video unable to watch
- What can I do if I can't register didi? How to deal with it?
- 吴恩达《Machine Learning》精炼笔记 4:神经网络基础 - 知乎
- gnu汇编语言使用内联汇编 扩展asm
猜你喜欢

If you need a million objects
![[technical course] peerconnection in webrtc self built by visual studio 2017_ The client program reported an external symbol error that LNK2019 could not resolve](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[technical course] peerconnection in webrtc self built by visual studio 2017_ The client program reported an external symbol error that LNK2019 could not resolve

Mongodb index management of distributed document storage database

小度“破圈”提速,IoT迎来新故事
![[Python learning manual notes] 001. Preface to Python](/img/c0/b4d34272d3f845ac717d48c669d974.jpg)
[Python learning manual notes] 001. Preface to Python

Graph undirected graph

Notes on Python cookbook 3rd (2.2): String start or end match
![[论文阅读笔记] Community-oriented attributed network embedding](/img/17/1d1989945d943ca3cd2a2b8a5731de.jpg)
[论文阅读笔记] Community-oriented attributed network embedding

Mongodb index management of distributed document storage database

寻找性能更优秀的不可变小字典
随机推荐
SEO界,值得收藏的10条金玉良言有哪些?
What's the difference between delete, truncate, and drop, and what to do if you delete data by mistake
中央重点布局:未来 5 年,科技自立自强为先,这些行业被点名
想花钱速学互联网行业,大概花两三个月的时间,出来好找工作吗
Coding style: SSM environment in MVC mode, code hierarchical management
Enter C abstract to understand the similarities and differences between abstract classes and interfaces
我手撸了一个划线翻译工具!
JS solves the problem of automatic pagination in browser printing
Graph undirected graph
上线1周,B.Protocal已有7000ETH资产!
Three ways to solve coursera video unable to watch
刷题到底有什么用?你这么刷题还真没用
[technical course] peerconnection in webrtc self built by visual studio 2017_ The client program reported an external symbol error that LNK2019 could not resolve
Call the open source video streaming media platform dawinffc
CSDN bug6: to be added
Overview of the most complete anomaly detection algorithm in history
If you need a million objects
Filezilla server配置FTP服务器中的各种问题与解决方法
Difficulties in heterogeneous middleware implementation of Bifrost site management (1)
Ineuos industrial interconnection platform, web configuration (ineuview) increases the function of importing and exporting engineering views, as well as optimization and repair. Release: v3.2.1