I am writing a Matlab program for
simpson's rule I keep getting an error about to many outputs when the program gets to left_simpson = Simpson(a,c,(e1)/2,level, level_max); What is wrong with settinf left_simpson to Simpson(a,c,(e1)/2,level, level_max);?
function Simpson(a,b,e1,level, level_max)
level = level + 1;
h = b - a;
c =
…