@ problems.
1)
%Main Function
%This Main Function reads Integral, Lower and Upper Limits of Integration
%Outputs of Main Function are approximation of the integral, error estimate
%and Actual Error
ipstring=input('Function String: ','s'); %Read Integral string
display('Enter Limits of Integration');
a=input('Lower Limit: '); %Read Lower Limit
b=input('Upper Limit: '); %Read Upper Limit
%passing Integral String and Limits to user defined function.
format('long');
[Approximation,Error_Estimate,Actual_error]=Gauss_rout_new(ipstring,a,b)
works well for the function '4/(x^2+1)'
with limits 0
and 1
warning explicit integral could not be found for exp(x^-1*exp(x^-2*a^-2- x*c))
even if I put values of a
and c
. c is combination of other consts.