当前位置:网站首页>Trigonometric function calculation
Trigonometric function calculation
2022-06-29 02:18:00 【Long street 395】
describe
Output according to the following formula x Value ,a and b The value of is entered by the user , The number in parentheses is the angle value , The value of PI is required to use the mathematical constant math.pi, The value of trigonometric function is expressed in math Calculate the corresponding function in the library .

Input format
The input consists of two lines , One number per line .
Output format
Value of expression
I / O example
Input :2 5
Output :-0.9209814967618768
import math
a = eval(input())
b = eval(input())
x = (-b+math.sqrt(2 * a * math.sin(math.pi / 3)*math.cos(math.pi / 3)))/(2 * a)
print(x)边栏推荐
- 计算矩形面积
- I have summarized some experiences from the whole process of R & D platform splitting
- [network communication learning notes] socket IO setup and deployment
- I'd like to ask you, where can I open an account in Zhongshan? Is it safe to open an account online?
- The 10 most commonly used gadgets for waterfall project management can be built and used freely
- 学习太极创客 — MQTT 第二章(九)本章测试
- 字符串分段组合
- [high concurrency, high performance and high availability of massive data MySQL practice-10] - Implementation of mvcc in InnoDB
- HashSet storing objects and how to not store the same objects
- Query any field of any table in JPA to the util method of entity class dto
猜你喜欢
![[redis] set type](/img/97/0a83016e89316849c01072044f2124.png)
[redis] set type
Fundamentals of scala (3): operators and process control

学习太极创客 — MQTT 第二章(九)本章测试

【Redis】Hash类型

“内窥镜第一股”二闯IPO,去年亏损5个亿,核心产品商业化仍存疑 | IPO速递
![[redis] get to know redis for the first time](/img/02/3c6a7f6ea8c563386a4cd458024728.png)
[redis] get to know redis for the first time

Dialogue with opensea co creation Alex: we still only touch the tip of the iceberg of NFT capability | chain catcher

OpenResty 使用介绍

Chrome browser close update Popup

What is the Valentine's Day gift given by the operator to the product?
随机推荐
chrome浏览器关闭更新弹窗
OpenResty 使用介绍
CTFHub-Web-密码口令-默认口令
Studies of relative costs for development in different languages
[redis] list type
【Redis】List类型
Which brokerage is safer and more convenient to open a stock account for big smart phones?
Configurable FFT system design based on risc-v SOC (1) Introduction
利用kubernetes資源鎖完成自己的HA應用
Scala Foundation (3): Operators and Process Control
How to use project Gantt chart to make project report
Koa 快速入門
QT basics tutorial: qstringlist
大三下期末考试
B1006 output integer in another format
Talk about the copyonwritearraylist of JUC
【Redis】数据介绍 & 通用命令 & String类型
Is it safe to contact the account manager online to open an account for stock speculation?
Fundamentals of scala (3): operators and process control
[apprendre la programmation FPGA - 49 à partir de zéro]: vision - Comment la puce a - t - elle été conçue?