当前位置:网站首页>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
边栏推荐
- 【goang】sync.WaitGroup详解
- 奸商加价销售mate40,小米可望在高端手机市场夺取更多市场
- .MD语法入门
- The unscrupulous merchants increase the price of mate40, and Xiaomi is expected to capture more market in the high-end mobile phone market
- 仅发送options请求,没有发送post解决方案
- 使用call、apply和bind解决js中烦人的this,事件绑定时的this和传参问题
- Learning from scratch YoMo series: Opening
- CSDN BUG1: to be added
- delete、truncate、drop 有什么区别,误删数据怎么办
- LeetCode:二叉树(四)
猜你喜欢
Coding style: SSM environment in MVC mode, code hierarchical management
编码风格:Mvc模式下SSM环境,代码分层管理
What's the difference between delete, truncate, and drop, and what to do if you delete data by mistake
从零开始学习 YoMo 系列教程:开篇
csdn bug1:待加
The unscrupulous merchants increase the price of mate40, and Xiaomi is expected to capture more market in the high-end mobile phone market
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
Graph undirected graph
Three ways to solve coursera video unable to watch
OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜
随机推荐
learning to Estimate 3D Hand Pose from Single RGB Images论文理解
浅谈字节最新开源联邦机器学习平台Fedlearner
C + + STL container
Use call, apply and bind to solve the annoying this in JS, this in event binding and parameter passing
[论文阅读笔记] Community-oriented attributed network embedding
LeetCode:数组(一)
[leetcode] 93 balanced binary tree
用python猜测一个数字是集合里面哪些数字相加求和而来的
Centos7 rsync+crontab 定时备份
[论文阅读笔记] Large-Scale Heterogeneous Feature Embedding
推动中国制造升级,汽车装配车间生产流水线 3D 可视化
Understanding of learning to estimate 3D hand pose from single RGB images
Several solutions to the problem that selenium webdriver always fails to use click
MultiBank Group宣布创纪录的财务业绩,2020年前三季度毛利达到9,400万美元
分布式文档存储数据库之MongoDB索引管理
For programmers, those unfamiliar and familiar computer hardware
[论文阅读笔记] A Multilayered Informative Random Walk for Attributed Social Network Embedding
Mongodb index management of distributed document storage database
仅发送options请求,没有发送post解决方案
OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜