Ответ:
1)
from random import uniform
from math import sqrt
a = int(input("a="))
b = int(input("b="))
c = int(input("c="))
x = uniform(0.5, 2.5)
print(f'y={"{:.4f}".format(1 / sqrt(a*(x**2)+b*x+c))} при x={"{:.4f}".format(x)}')
2)
from math import trunc
a = int(input())
b = int(input())
sred = (a+b)/2
print(f'{sred}\n{trunc(sred-a)}\n{trunc(sred-b)}')
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
1)
from random import uniform
from math import sqrt
a = int(input("a="))
b = int(input("b="))
c = int(input("c="))
x = uniform(0.5, 2.5)
print(f'y={"{:.4f}".format(1 / sqrt(a*(x**2)+b*x+c))} при x={"{:.4f}".format(x)}')
2)
from math import trunc
a = int(input())
b = int(input())
sred = (a+b)/2
print(f'{sred}\n{trunc(sred-a)}\n{trunc(sred-b)}')
Объяснение: