当前位置:网站首页>三角函数计算
三角函数计算
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)边栏推荐
- 为什么要在网站上安装SSL证书?
- Koa 快速入门
- Necessary technologies for chip manufacturers (1) Introduction
- Business system anti-virus
- Blog publishing test 1
- Use code binding DataGridView control to display tables in program interface
- Scala 基础 (三):运算符和流程控制
- In simple terms, server intrusion prevention
- Finally got the byte offer. The 25-year-old inexperienced experience in software testing is written to you who are still confused
- 想请教股票开户要认识谁?现在网上开户安全么?
猜你喜欢

干货丨微服务架构是什么?有哪些优点和不足?
![[redis] data introduction & General Command & string type](/img/86/3abc5047f9c0a051f432e82ccc816c.png)
[redis] data introduction & General Command & string type

HBuilder左侧工具栏不见了

【Redis】Set类型

SAP ui5 beginner tutorial 22 - development and use of filter

我把整个研发中台拆分过程的一些心得总结

【Redis】SortedSet类型

【Redis】初识 Redis

To apply for a test engineer after years, the resume with high scores should be written like this
Scala 基础 (三):运算符和流程控制
随机推荐
[redis] key hierarchy
Is the ETF fund reliable and safe
项目研发,有哪些好用的免费脑图工具软件
SQL splits strings into tables
C language course design - food warehouse management system
Dialogue with opensea co creation Alex: we still only touch the tip of the iceberg of NFT capability | chain catcher
[C language] Fibonacci sequence and frog jumping steps (the most detailed elementary frog jumping steps)
[从零开始学习FPGA编程-50]:视野篇 - 芯片是如何被制造出来的?芯片制造的十三大步骤。
SystemVerilog-结构体(一)
B1006 output integer in another format
Google Borg paper
如何用项目甘特图,做好项目汇报
为什么要在网站上安装SSL证书?
基于 RISC-V SoC 的可配置 FFT 系统设计(1)引言
[learn FPGA programming from scratch -49]: Vision - how is the chip designed?
什么叫股票线上开户?网上开户安全么?
e. Difference between target and e.currenttarget
How to choose source code encryption software
Configurable FFT system design based on risc-v SOC (1) Introduction
[从零开始学习FPGA编程-49]:视野篇 - 芯片是如何被设计出来的?