Найти - Пользователи
Полная версия: Python
Начало » Python для новичков » Python
1
ssidok
from math import*
x=float(input(“Введіть x”))
if tan*x-2!=0:
y3 = 8 * cos(radians(x))-2,15*x/(abs(tan(radians(x))-2*x))
print(“y3”, y3)
else:
print(“x не входить в ОДЗ”)
print(“y3 не можимо обчислити”)

if tan*x-2!=0:
TypeError: unsupported operand type(s) for *: ‘builtin_function_or_method’ and ‘float’

Помогите!!!
PEHDOM
Ну так tan*x нельзя, tan это встроеная функция, а вы ее на х умножить хотите.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB