当前位置:网站首页>三角函数计算
三角函数计算
2022-06-29 02:12:00 【长街395】
描述
根据下面公式计算并输出x的值,a和b的值由用户输入,括号里的数字是角度值, 要求圆周率的值使用数学常数math.pi,三角函数的值用math库中对应的函数进行计算 。

输入格式
输入包括两行, 每行一个数字。
输出格式
表达式的值
输入输出示例
输入:2 5
输出:-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)边栏推荐
- Dialogue with opensea co creation Alex: we still only touch the tip of the iceberg of NFT capability | chain catcher
- okcc呼叫中心的计费方式哪个最好
- A full screen gesture adaptation scheme
- Koa 快速入門
- Eliminate the hover effect when the button is disabled
- Kubernetes: container resource requirements and constraints (constraints)
- 大三下期末考试
- Introduction to super dongle scheme
- I have summarized some experiences from the whole process of R & D platform splitting
- Live broadcast preview | can SQL also play industrial machine learning? Mlops meetup V3 takes you to the bottom!
猜你喜欢
![[redis] get to know redis for the first time](/img/02/3c6a7f6ea8c563386a4cd458024728.png)
[redis] get to know redis for the first time

Zhongyi technology resumed the review status of the gem IPO, and xuxiaofei no longer acted as a practicing lawyer
Scala 基础 (三):运算符和流程控制
![[understanding of opportunity -33]: seeing is not necessarily true. Most of the time,](/img/60/703a5bc3038d28bcf812415032f240.jpg)
[understanding of opportunity -33]: seeing is not necessarily true. Most of the time, "seeing is false"

基于 RISC-V SoC 的可配置 FFT 系统设计(1)引言

Business system anti-virus

Koa 快速入門

【Redis】List类型

SAP ui5 beginner tutorial 22 - development and use of filter

瀑布型项目管理最常用的10个小工具,可以自由搭建使用
随机推荐
Wechat campaign auto like
[redis] key hierarchy
Fundamentals of scala (3): operators and process control
In simple terms, server intrusion prevention
【Redis】Hash类型
RISC CPU design based on FPGA (4) 36 questions about the project and their answers
Qt基础教程:数据类型与容器
【Redis】SortedSet类型
Analysis of advantages and disadvantages of environment encryption and transparent encryption
C language course design - food warehouse management system
[MySQL practice of high concurrency, high performance and high availability of massive data -9] - transaction concurrency control solutions lbcc and mvcc
Studies of relative costs for development in different languages
如何成为一名高级数字 IC 设计工程师(1-1)Verilog 编码语法篇:引言
Koa quick start
我把整个研发中台拆分过程的一些心得总结
为什么要在网站上安装SSL证书?
2022.02.15
[redis] list type
瀑布型项目管理最常用的10个小工具,可以自由搭建使用
Scala 基础 (三):运算符和流程控制