当前位置:网站首页>三角函数计算
三角函数计算
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)边栏推荐
- How to become a senior digital IC Design Engineer (1-1) Verilog coding Grammar: Introduction
- Is there any risk in opening an account for Dongfang fortune stock? Is it safe for Dongfang fortune to open an account
- Analysis of advantages and disadvantages of environment encryption and transparent encryption
- [redis] sortedset type
- How to choose source code encryption software
- SAP ui5 beginner tutorial 22 - development and use of filter
- [redis] key hierarchy
- Google Borg论文
- Scala 基础 (三):运算符和流程控制
- A full screen gesture adaptation scheme
猜你喜欢

chrome浏览器关闭更新弹窗
![[redis] set type](/img/97/0a83016e89316849c01072044f2124.png)
[redis] set type

SystemVerilog-结构体(一)

直播预告|SQL也能玩转工业级机器学习?MLOps meetup V3带你一探究竟!
Scala 基礎 (三):運算符和流程控制

OpenResty 使用介绍

How to become a senior digital IC Design Engineer (4-2) script: file read / write operation realized by Verilog HDL code

OculusRiftS与Unity.UI的交互(1)-总览
![[机缘参悟-33]:眼见不一定为实,大多数时候“眼见为虚”](/img/60/703a5bc3038d28bcf812415032f240.jpg)
[机缘参悟-33]:眼见不一定为实,大多数时候“眼见为虚”

I have summarized some experiences from the whole process of R & D platform splitting
随机推荐
Configurable FFT system design based on risc-v SOC (1) Introduction
项目研发,有哪些好用的免费脑图工具软件
Is the ETF fund reliable and safe
Differences between web testing and app testing
Which brokerage is safer and more convenient to open an account for compass mobile stock?
如何成为一名高级数字 IC 设计工程师(4-2)脚本篇:Verilog HDL 代码实现的文件读写操作
OpenResty 使用介绍
Scala 基礎 (三):運算符和流程控制
Large scale visual relationship understanding
Written examination questions, answers and analysis of Digital IC design and FPGA design (2) 2021 Huawei Hisilicon (Part 1)
e.target与e.currentTarget的区别
How does flush open an account? Is it safe to open an account online now?
[learn FPGA programming from scratch -50]: Vision - how are chips made? The thirteen steps of chip manufacturing.
[redis] list type
11 go Foundation: Interface
[understanding of opportunity -33]: seeing is not necessarily true. Most of the time, "seeing is false"
11-Go基础:接口
基于 RISC-V SoC 的可配置 FFT 系统设计(1)引言
How to choose source code encryption software
网上联系客户经理办理炒股开户安全吗?