当前位置:网站首页>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
边栏推荐
- 从大专生到蚂蚁金服CTO,他写下“支付宝”第一行代码:逆风的方向,更适合飞翔!...
- [论文阅读笔记] A Multilayered Informative Random Walk for Attributed Social Network Embedding
- .MD语法入门
- 计算机专业的学生要怎样做才能避免成为低级的码农?
- JMeter interface test -- a solution with token
- Call the open source video streaming media platform dawinffc
- Yixian e-commerce prospectus of perfect diary parent company: focusing on marketing and ignoring R & D, with a loss of 1.1 billion in the first three quarters
- csdn bug10:待加
- [paper reading notes] community oriented attributed network embedding
- 自定义注解!绝对是程序员装逼的利器!!
猜你喜欢
Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu
[论文阅读笔记] RoSANE, Robust and scalable attributed network embedding for sparse networks
LeetCode:二叉树(四)
gnu汇编语言使用内联汇编 扩展asm
中央重点布局:未来 5 年,科技自立自强为先,这些行业被点名
On fedlearner, the latest open source federated machine learning platform of byte
CSDN bug11: to be added
Leetcode 1-sum of two numbers
[Python learning manual notes] 001. Preface to Python
gnu汇编-基本数学方程-乘法
随机推荐
[C#.NET 拾遗补漏]11:最基础的线程知识
The unscrupulous merchants increase the price of mate40, and Xiaomi is expected to capture more market in the high-end mobile phone market
[paper reading notes] rosane, robust and scalable attributed network embedding for sparse networks
[论文阅读笔记] Network Embedding with Attribute Refinement
Seam engraving algorithm: a seemingly impossible image size adjustment method
Connection to XXX could not be established. Broker may not be available
selenium webdriver使用click一直失效问题的几种解决方法
图-无向图
Oschina: my green plants are potatoes, ginger and garlic
寻找性能更优秀的不可变小字典
Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu
Mongodb index management of distributed document storage database
Mongodb index management of distributed document storage database
CSDN bug11: to be added
一不小心画了 24 张图剖析计网应用层协议!
GNU assembly language uses inline assembly to extend ASM
推动中国制造升级,汽车装配车间生产流水线 3D 可视化
Android quick shutdown app
Use call, apply and bind to solve the annoying this in JS, this in event binding and parameter passing
csdn bug4:待加