Python 中的 atan(x)函数

首页 / Python2入门教程 / Python 中的 atan(x)函数

Python atan()返回x的弧正切(以弧度表示)。

atan(x) - 语法

atan(x)
  • x  -  必须是数值。 

atan(x) - 返回值

此方法返回x的弧正切(以弧度表示)。

atan(x) - 示例

以下示例显示atan()方法的用法。

无涯教程网

链接:https://www.learnfk.comhttps://www.learnfk.com/python/number-atan.html

来源:LearnFk无涯教程网

#!/usr/bin/python
import math

print "atan(0.64) : ",  math.atan(0.64)
print "atan(0) : ",  math.atan(0)
print "atan(10) : ",  math.atan(10)
print "atan(-1) : ",  math.atan(-1)
print "atan(1) : ",  math.atan(1)

当无涯教程运行上面的程序时,它产生以下结果-

atan(0.64) :  0.569313191101
atan(0) :  0.0
atan(10) :  1.4711276743
atan(-1) :  -0.785398163397
atan(1) :  0.785398163397

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

趣谈网络协议 -〔刘超〕

TensorFlow快速入门与实战 -〔彭靖田〕

iOS开发高手课 -〔戴铭〕

软件设计之美 -〔郑晔〕

OAuth 2.0实战课 -〔王新栋〕

小马哥讲Spring AOP编程思想 -〔小马哥〕

React Hooks 核心原理与实战 -〔王沛〕

Web 3.0入局攻略 -〔郭大治〕

AI大模型系统实战 -〔Tyler〕

好记忆不如烂笔头。留下您的足迹吧 :)