当前位置:网站首页>Python math class
Python math class
2020-11-10 10:46:00 【osc_nzvfn3cl】
import math
# radian 、 Angle conversion
print(math.degrees(math.pi))
print(math.radians(180))
# Trigonometric functions ( sine 、 Anti sine 、 cosine )
print(math.sin(math.pi/3))
print(math.cos(math.pi/2-math.pi/3))
print(math.tan(math.pi/4))
# Anti sine 、 Arccosine 、 Anyway
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))
# return x The hyperbolic tangent of \ Hyperbolic sine \ Hyperbolic cosine value
print(math.tanh(3))
print(math.cosh(3))
print(math.sinh(3))
# return x The inverse hyperbolic tangent of \ Anti bisinusoidal function 、 Anti double cosine function
print(math.atanh(0.3))
print(math.asinh(math.pi/3))
print(math.acosh(math.pi/3))
# Up 、 Rounding down , Take the absolute value , Copy the sign of the last number to the first number , Take the remainder of the division of two numbers , Take the greatest common divisor
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))
# return IEEE 754 Style x be relative to y The remainder of
print(math.remainder(9,7))
print(math.gcd(9,6))
# Back in Europe
版权声明
本文为[osc_nzvfn3cl]所创,转载请带上原文链接,感谢
边栏推荐
- 腾讯云TBase在分布式HTAP领域的探索与实践
- LeetCode:二叉树(四)
- GNU assembly language uses inline assembly to extend ASM
- 图-无向图
- Multibank group announced record financial results with gross profit of $94 million in the first three quarters of 2020
- 一个 Task 不够,又来一个 ValueTask ,真的学懵了!
- csdn bug8:待加
- 用python猜测一个数字是集合里面哪些数字相加求和而来的
- learning to Estimate 3D Hand Pose from Single RGB Images论文理解
- 奸商加价销售mate40,小米可望在高端手机市场夺取更多市场
猜你喜欢
随机推荐
What does the mremote variable in servicemanagerproxy refer to?
Only options request is sent, no post solution is sent
CSDN bug11: to be added
csdn bug11:待加
寻找性能更优秀的不可变小字典
[paper reading notes] a multilayered informational random walk for attributed social network embedding
CSDN bug9: to be added
[operation tutorial] introduction and opening steps of easygbs subscription function of national standard gb28181 protocol security video platform
图-无向图
Centos7 rsync+crontab 定时备份
子线程调用invalidate()产生“Only the original thread that created a view hierarchy can touch its views.”原因分析
高通骁龙875夺安卓处理器桂冠,但外挂5G基带成为它的弊病
Leetcode 5561. Get the maximum value in the generated array
Centos7 Rsync + crontab scheduled backup
【高级测试工程师】新鲜出炉的三套价值18K的自动化测试面试(网易、字节跳动、美团)
CSDN bug6: to be added
ASP.NET Core framework revealed [blog Summary - continuous update]
Farfetch、阿里巴巴集团和历峰集团结成全球合作伙伴关系,将加速奢侈品行业数字化进程
设计 API 时通过 POST 获取数据需要注意哪些问题
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




