当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- csdn bug9:待加
- 中小企业为什么要用CRM系统
- python pip命令的使用
- 一不小心画了 24 张图剖析计网应用层协议!
- ASP.NET Core framework revealed [blog Summary - continuous update]
- iOS14新特性-WidgetKit开发与实践
- Android quick shutdown app
- [technical course] peerconnection in webrtc self built by visual studio 2017_ The client program reported an external symbol error that LNK2019 could not resolve
- CSDN bug5: to be added
- Multibank group announced record financial results with gross profit of $94 million in the first three quarters of 2020
猜你喜欢
Farfetch、阿里巴巴集团和历峰集团结成全球合作伙伴关系,将加速奢侈品行业数字化进程
Leetcode 5561. Get the maximum value in the generated array
LeetCode:二叉树(四)
ASP.NET Core framework revealed
Harbor项目高手问答及赠书活动火热进行中
《Python Cookbook 3rd》笔记(2.3):用Shell通配符匹配字符串
CCR炒币机器人:新冠肺炎加速了监管机构对CBDC的兴趣
csdn bug9:待加
GNU assembly language uses inline assembly to extend ASM
One accidentally drew 24 diagrams to analyze the network application layer protocol!
随机推荐
他把闲鱼APP长列表流畅度翻了倍
ElasticSearch 集群基本概念及常用操作汇总(建议收藏)
Graph undirected graph
Swoole v4.5.7 版本发布,新增--enable-swoole-json编译选项
刷题到底有什么用?你这么刷题还真没用
MFC界面开发帮助文档——BCG如何在工具栏上放置控件
GNU assembly basic mathematical equations multiplication
Commodity management - merge purchase demand into purchase order
Call the open source video streaming media platform dawinffc
【操作教程 】国标GB28181协议安防视频平台EasyGBS订阅功能介绍及开启步骤
Understanding of learning to estimate 3D hand pose from single RGB images
What can I do if I can't register didi? How to deal with it?
Collection of blockchain theory [31]
Looking for a small immutable dictionary with better performance
He doubled the fluency of the long list of idle fish app
Why should small and medium sized enterprises use CRM system
C语言使用随机数生成矩阵,实现三元组的快速转置。
New feature of ios14 -- development and practice of widgetkit
【技术教程】C#控制台调用FFMPEG推MP4视频文件至流媒体开源服务平台EasyDarwin过程
csdn bug9:待加