当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 【goang】 sync.WaitGroup Detailed explanation
- First acquaintance of file
- Leetcode 1-sum of two numbers
- express -- 学习笔记(慕课)
- 用python猜测一个数字是集合里面哪些数字相加求和而来的
- 【goang】sync.WaitGroup详解
- Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu
- 【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误
- learning to Estimate 3D Hand Pose from Single RGB Images论文理解
- 他把闲鱼APP长列表流畅度翻了倍
猜你喜欢
Multibank group announced record financial results with gross profit of $94 million in the first three quarters of 2020
Swoole 如何使用 Xdebug 进行单步调试
csdn bug1:待加
Q & A and book donation activities of harbor project are in hot progress
中央重点布局:未来 5 年,科技自立自强为先,这些行业被点名
【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误
On fedlearner, the latest open source federated machine learning platform of byte
《Python Cookbook 3rd》笔记(2.3):用Shell通配符匹配字符串
csdn bug11:待加
区块链论文集【三十一】
随机推荐
Multibank group announced record financial results with gross profit of $94 million in the first three quarters of 2020
[paper reading notes] community oriented attributed network embedding
自定义注解!绝对是程序员装逼的利器!!
ASP.NET Core框架揭秘[博文汇总
What does the mremote variable in servicemanagerproxy refer to?
layer.prompt(options, yes) - 输入层
SEO界,值得收藏的10条金玉良言有哪些?
Jsliang job series - 09 - hand written shallow copy and deep copy
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
gnu汇编-基本数学方程-乘法
MFC界面开发帮助文档——BCG如何在工具栏上放置控件
C++ STL容器篇
Hong Kong listed companies transfer cards to acquire 42.5% equity of chuangxinzhong and plan to speed up the distribution of marketing services
gnu汇编语言使用内联汇编 扩展asm
Android quick shutdown app
Why use it cautiously Arrays.asList , sublist of ArrayList?
TCP性能分析与调优策略
GNU assembly language uses inline assembly to extend ASM
安卓快速关机APP
[C#.NET 拾遗补漏]11:最基础的线程知识