当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Call the open source video streaming media platform dawinffc
- CCR炒币机器人:新冠肺炎加速了监管机构对CBDC的兴趣
- Understanding of learning to estimate 3D hand pose from single RGB images
- Commodity management - merge purchase demand into purchase order
- 我手撸了一个划线翻译工具!
- C++ STL容器篇
- 不用懂代码,会打字就可以建站?1111 元礼包帮你一站配齐!
- 从大专生到蚂蚁金服CTO,他写下“支付宝”第一行代码:逆风的方向,更适合飞翔!...
- csdn bug9:待加
- Centos7 rsync+crontab 定时备份
猜你喜欢
安卓快速关机APP
[C#.NET 拾遗补漏]11:最基础的线程知识
python math类
Version 4.5.7 of swoole was released, and the -- enable swote JSON compilation option was added
Multibank group announced record financial results with gross profit of $94 million in the first three quarters of 2020
Summary of basic concepts and common operations of elasticsearch cluster (recommended Collection)
What does the mremote variable in servicemanagerproxy refer to?
CSDN BUG1: to be added
MFC界面开发帮助文档——BCG如何在工具栏上放置控件
Taulia launches international payment terms database
随机推荐
【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误
Centos7 rsync+crontab 定时备份
CSDN bug5: to be added
ASP.NET Core framework revealed [blog Summary - continuous update]
Getiservicemanager () source code analysis
C + + standard library header file
[paper reading notes] a multilayered informational random walk for attributed social network embedding
Hong Kong listed companies transfer cards to acquire 42.5% equity of chuangxinzhong and plan to speed up the distribution of marketing services
腾讯云TBase在分布式HTAP领域的探索与实践
Leetcode: binary tree (4)
书城项目:第1阶段
MFC界面开发帮助文档——BCG如何在工具栏上放置控件
计算机专业的学生要怎样做才能避免成为低级的码农?
CSDN bug4: to be added
Looking for a small immutable dictionary with better performance
How can computer major students avoid becoming low-level code farmers?
[technical course] peerconnection in webrtc self built by visual studio 2017_ The client program reported an external symbol error that LNK2019 could not resolve
Bartender2021实现安全远程标签打印,年终全新发布
《Python Cookbook 3rd》笔记(2.3):用Shell通配符匹配字符串
【goang】sync.WaitGroup详解