Ответ:
import math as m
x=-12
a=12.03
b= []
b_all = []
for i in range(1,21):
if x>=5:
b_all.append(m.e**(x)+ a**3)
if x<-10:
b_all.append(m.log10(x+a)**2)
if x>-4:
b.append(m.log10(x+a)**2)
if x>=-10 and x<=5:
b_all.append(a+m.sin(2*x))
if x > -4:
b.append(a+m.sin(2*x))
x+=0.45
i+=1
print(sum(b))
print(b_all)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
import math as m
x=-12
a=12.03
b= []
b_all = []
for i in range(1,21):
if x>=5:
b_all.append(m.e**(x)+ a**3)
if x<-10:
b_all.append(m.log10(x+a)**2)
if x>-4:
b.append(m.log10(x+a)**2)
if x>=-10 and x<=5:
b_all.append(a+m.sin(2*x))
if x > -4:
b.append(a+m.sin(2*x))
x+=0.45
i+=1
print(sum(b))
print(b_all)