当前位置:网站首页>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)边栏推荐
- Com3529 test analysis
- 【Redis】Set类型
- 大三下期末考試
- e.target与e.currentTarget的区别
- What is stock online account opening? Is it safe to open an account online?
- 瀑布型项目管理最常用的10个小工具,可以自由搭建使用
- Crawler exercise (IV) -- IP address problem
- 110. simple chat room 13: chat room server
- 如何成为一名高级数字 IC 设计工程师(6-5)数字 IC 验证篇:覆盖率收集
- Learning Tai Chi Maker - mqtt Chapter II (IX) test of this chapter
猜你喜欢

What is the Valentine's Day gift given by the operator to the product?

学习太极创客 — MQTT 第二章(九)本章测试
![[redis] hash type](/img/8b/2585908318f5fe88b455323d3f392e.png)
[redis] hash type
![[redis] set type](/img/97/0a83016e89316849c01072044f2124.png)
[redis] set type

Koa 快速入門

Use code binding DataGridView control to display tables in program interface

SAP ui5 beginner tutorial 22 - development and use of filter

项目研发,有哪些好用的免费脑图工具软件
Fundamentals of scala (3): operators and process control

【Redis】List类型
随机推荐
为什么要在网站上安装SSL证书?
【网络通信学习笔记】Socket.IO的搭建和部署
东方财富股票开户是会有什么风险吗?东方财富开户安全吗
Project R & D, what are the free brain mapping tools that are easy to use
[learn FPGA programming from scratch -49]: Vision - how is the chip designed?
Google Borg论文
HashSet storing objects and how to not store the same objects
如何成为一名高级数字 IC 设计工程师(6-7)数字 IC 验证篇:DEBUG 技巧
瀑布型项目管理最常用的10个小工具,可以自由搭建使用
如何成为一名高级数字 IC 设计工程师(4-2)脚本篇:Verilog HDL 代码实现的文件读写操作
利用kubernetes資源鎖完成自己的HA應用
RISC CPU design based on FPGA (4) 36 questions about the project and their answers
Blog publishing test 2
How to become a senior digital IC Design Engineer (6-7) digital IC Verification: debug skills
Use code binding DataGridView control to display tables in program interface
芯片原厂必学技术(1)引言
How to become a senior digital IC Design Engineer (5-1) theory: clock technology, reset Technology
[network communication learning notes] socket IO setup and deployment
Why install an SSL certificate on a web site?
大智慧手机股票开户哪个券商更安全更方便?