当前位置:网站首页>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
边栏推荐
- 我手撸了一个划线翻译工具!
- [Python learning manual notes] 001. Preface to Python
- Problems and solutions in configuring FTP server with FileZilla server
- [paper reading notes] network embedding with attribute refinement
- SEO界,值得收藏的10条金玉良言有哪些?
- 世界上最伟大的10个公式,其中一个人尽皆知
- 刷题到底有什么用?你这么刷题还真没用
- csdn bug8:待加
- csdn bug4:待加
- The length of the last word in leetcode
猜你喜欢

CSDN bug5: to be added

想花钱速学互联网行业,大概花两三个月的时间,出来好找工作吗

工厂方法模式

JMeter interface test -- a solution with token

Use call, apply and bind to solve the annoying this in JS, this in event binding and parameter passing
![竞争性编程的思考:那些神话和令人震惊的事实[图]](/img/3b/00bc81122d330c9d59909994e61027.jpg)
竞争性编程的思考:那些神话和令人震惊的事实[图]

jmeter接口测试--带有token的解决方法

csdn bug5:待加

selenium webdriver使用click一直失效问题的几种解决方法

CSDN bug9: to be added
随机推荐
寻找性能更优秀的不可变小字典
[论文阅读笔记] Network Embedding with Attribute Refinement
刷题到底有什么用?你这么刷题还真没用
Python cookbook 3rd note (2.1): using multiple qualifiers to split strings
Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu
ASP.NET Core框架揭秘[博文汇总-持续更新]
世界上最伟大的10个公式,其中一个人尽皆知
Oschina: my green plants are potatoes, ginger and garlic
监控系统选型,这篇不可不读!
If you need a million objects
Problems and solutions in configuring FTP server with FileZilla server
The solution of polar experience insensitive verification
Filezilla server配置FTP服务器中的各种问题与解决方法
Coding style: SSM environment in MVC mode, code hierarchical management
On fedlearner, the latest open source federated machine learning platform of byte
LeetCode 5561. 获取生成数组中的最大值
selenium webdriver使用click一直失效问题的几种解决方法
Several solutions to the problem that selenium webdriver always fails to use click
浅谈字节最新开源联邦机器学习平台Fedlearner
Network security engineer Demo: original * * controls your server like this! (2)