Can anyone tell me the answer,please ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone tell me the answer,please ?

f(x) = sin(x)-1 -&<x<0 = sin(x/3) 0<=x<& Draw a flow chart and write a C++ program to numerically integrate function f(x) from -pi to pi Hint : integrate f(x) = sigma (i=0 to i=199) f(a+(i.dx)).dx such that dx = (pi_(-pi))/200

30th May 2017, 2:04 PM
Samuel George
Samuel George - avatar
1 Answer
0
Integrate sin(x)-1 from -& to 0 and sin(x/3) from 0 inclusive to &. Then add the results to get the answer.
30th May 2017, 2:49 PM
Madera Oxidada
Madera Oxidada - avatar