当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- SEO industry, what are the 10 pieces of good advice worth collecting?
- Custom annotation! Absolutely is the sharp weapon that programmer installs force!!
- ElasticSearch 集群基本概念及常用操作汇总(建议收藏)
- Q & A and book donation activities of harbor project are in hot progress
- To speed up the process of forming a global partnership between lifech and Alibaba Group
- express -- 学习笔记(慕课)
- ASP.NET Core框架揭秘[博文汇总-持续更新]
- 世界上最伟大的10个公式,其中一个人尽皆知
- 刷题到底有什么用?你这么刷题还真没用
- Hystrix 如何解决 ThreadLocal 信息丢失
猜你喜欢
[论文阅读笔记] A Multilayered Informative Random Walk for Attributed Social Network Embedding
CentOS7本地源yum配置
一不小心画了 24 张图剖析计网应用层协议!
Call the open source video streaming media platform dawinffc
CSDN bug10: to be added
leetcode1-两数之和
Taulia推出国际支付条款数据库
LeetCode 5561. 获取生成数组中的最大值
[operation tutorial] introduction and opening steps of easygbs subscription function of national standard gb28181 protocol security video platform
What can I do if I can't register didi? How to deal with it?
随机推荐
What does the mremote variable in servicemanagerproxy refer to?
Graph undirected graph
Sign in with apple
【高级测试工程师】新鲜出炉的三套价值18K的自动化测试面试(网易、字节跳动、美团)
CCR coin robot: novel coronavirus pneumonia has accelerated the interest of regulators in CBDC.
layer.prompt(options, yes) - 输入层
C++ 标准库头文件
gnu汇编语言使用内联汇编 扩展asm
计算机专业的学生要怎样做才能避免成为低级的码农?
Why use it cautiously Arrays.asList , sublist of ArrayList?
一个 Task 不够,又来一个 ValueTask ,真的学懵了!
File初相识
Use Python to guess which numbers in the set are added to get the sum of a number
《Python Cookbook 3rd》笔记(2.3):用Shell通配符匹配字符串
jsliang 求职系列 - 09 - 手写浅拷贝和深拷贝
Call the open source video streaming media platform dawinffc
Centos7 Rsync + crontab scheduled backup
安卓快速关机APP
Exploration and practice of Tencent cloud tbase in the field of distributed HTAP
网络时间服务器(医院时钟系统)相关问题汇总