当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- python math类
- He doubled the fluency of the long list of idle fish app
- ASP.NET Core framework revealed
- C语言使用随机数生成矩阵,实现三元组的快速转置。
- 中小企业为什么要用CRM系统
- 用例子理解递归
- 一不小心画了 24 张图剖析计网应用层协议!
- 2020-11-07
- Version 4.5.7 of swoole was released, and the -- enable swote JSON compilation option was added
- 《Python Cookbook 3rd》笔记(2.3):用Shell通配符匹配字符串
猜你喜欢

ElasticSearch 集群基本概念及常用操作汇总(建议收藏)

Swoole 如何使用 Xdebug 进行单步调试

如何看待阿里云成立新零售事业部?

用例子理解递归

CSDN BUG1: to be added

The unscrupulous merchants increase the price of mate40, and Xiaomi is expected to capture more market in the high-end mobile phone market

ASP.NET Core framework revealed

CSDN bug9: to be added

【CCPC】2020CCPC长春 F - Strange Memory | 树上启发式合并(dsu on a tree)、主席树

微服务授权应该怎么做?
随机推荐
C语言使用随机数生成矩阵,实现三元组的快速转置。
One of the 10 Greatest formulas in the world is well known
ASP.NET Core框架揭秘[博文汇总-持续更新]
File初相识
Centos7 local source Yum configuration
ASP.NET Core框架揭秘[博文汇总
gnu汇编-基本数学方程-乘法
C++ STL容器篇
csdn bug11:待加
gnu汇编语言使用内联汇编 扩展asm
TCP性能分析与调优策略
刷题到底有什么用?你这么刷题还真没用
计算机专业的学生要怎样做才能避免成为低级的码农?
[paper reading notes] rosane, robust and scalable attributed network embedding for sparse networks
SEO industry, what are the 10 pieces of good advice worth collecting?
csdn bug1:待加
CSDN bug4: to be added
[paper reading notes] large scale heterogeneous feature embedding
一不小心画了 24 张图剖析计网应用层协议!
js 基础算法题(一)