1.表达式求解 - 垂直上抛小球位置计算
# 本程序计算小球上抛在不同时间点的高度
v0 = 25 # 小球上抛的初速度
g = 9.8 # 地球重力加速度
t = int(input())
# 请在此添加实现代码 #
# ********** Begin *********#
h = 25*t-0.5*g*(t**2)
print(h)
# ********** End **********#
2.输出格式控制 - 摄氏-华氏温度换算
# 本程序进行华氏温度和摄氏温度之间的转换
# 请通过换算公式来计算相应的摄氏温度值,需给出Python表达式
# 最终输出格式为:华氏**度=摄氏**度
F = float(input()) # 华氏温度
# 请在此添加实现代码 #
# ********** Begin *********#
c = (F-32)*5/9
print("华氏"'%0.2f'%F+"度=摄氏"'%0.2f'%c+"度")
# ********** End **********#
3.库函数的使用 - 小球阻力落体运动
# 计算小球在空气中向下作阻力落体运动中随时间的速度变化情况
# 1.导入需要的函数
# 2.根据落体运动速度方程计算某时刻小球的速度
# 3.根据落体运动位置方程计算某时刻小球的位置
# 4.格式化输出计算结果
g = 9.8 # 单位:米/秒平方,重力加速度
m = 0.25 # 单位:千克
u = 0.5
t = int(input()) # 单位:秒
# 请在此添加实现代码 #
# ********** Begin *********#
from math import *
f = pow((u*g)/m,1/2)*t
e = pow((m*g)/u,1/2)
v = e*tanh(f)
x = (m/u)*log(cosh(f))
print("当t=%d秒时,速度v=%.2f米/秒"%(t,v))
print("%d秒后,小球位置为向下%.2f米"%(t,x))
# ********** End **********
4.综合应用 - 小球斜上抛运动
# 本程序计算小球向上斜抛在不同时间点的高度
theta = int(input()) # 单位:角度
# 请在此添加实现代码 #
# ********** Begin *********#
from math import *
v0 = 25/3.6
g = 9.8
y0 = 1
x = 0.5
theta = theta/180*pi
y = x*tan(theta)-1/(2*v0)*g*x**2/(cos(theta)**2)++y0
print("y值计算结果为:%.5f米"%y)
# ********** End **********#