June 2023 1 53 Report
Найти ошибки в коде питона:
import math
from math import tan
def ctg(x):
return 1 / math.tan(x)
def y(w):
if w >= 0:
return math.tan(2 * w)**2 -math.ctg(2 * w)
else:
return math.tan(3*w) - math.ctg(w)**2
a = float(input('a = '))
b = float(input('b = '))
h = float(input('b = '))
w = a
print(' w y')
while w < b:
print('%5.1f %10.3f' % (w, y(w)))
w += h
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.