当前位置:网站首页>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炒币机器人:新冠肺炎加速了监管机构对CBDC的兴趣

csdn bug4:待加

Leetcode 1-sum of two numbers

csdn bug3:待加

【操作教程 】国标GB28181协议安防视频平台EasyGBS订阅功能介绍及开启步骤

Harbor项目高手问答及赠书活动火热进行中

One of the 10 Greatest formulas in the world is well known

中央重点布局:未来 5 年,科技自立自强为先,这些行业被点名

JS solves the problem of automatic pagination in browser printing

python pip命令的使用
随机推荐
csdn bug8:待加
Call the open source video streaming media platform dawinffc
C++ STL容器篇
2020-11-07
[technical course] peerconnection in webrtc self built by visual studio 2017_ The client program reported an external symbol error that LNK2019 could not resolve
SEO界,值得收藏的10条金玉良言有哪些?
港股上市公司移卡收购创信众42.5%股权 谋划加快营销服务布局
Mongodb index management of distributed document storage database
吴恩达《Machine Learning》精炼笔记 4:神经网络基础 - 知乎
Taulia推出国际支付条款数据库
[elixir! #0073] beam 内置的内存数据库 —— ETS
Key layout of the Central Government: in the next five years, self-reliance and self-improvement of science and technology will be the priority, and these industries will be named
区块链论文集【三十一】
Factory approach model
[paper reading notes] rosane, robust and scalable attributed network embedding for sparse networks
Graph undirected graph
Filezilla server配置FTP服务器中的各种问题与解决方法
【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误
ElasticSearch 集群基本概念及常用操作汇总(建议收藏)
jmeter接口测试--带有token的解决方法