mirror of https://github.com/Askill/AP-SCE.git
11 lines
253 B
Mathematica
11 lines
253 B
Mathematica
|
|
%function accepts 1 string, 2 doubles and the number of iterations
|
||
|
|
% a31("func_name", start, end, limit)
|
||
|
|
% function must be in appropriate form for bisection
|
||
|
|
%
|
||
|
|
%exp.:
|
||
|
|
% function y=func(x)
|
||
|
|
% y=(x^4-x-10);
|
||
|
|
% end
|
||
|
|
%
|
||
|
|
% a32("func",2,3,100)
|
||
|
|
% ans=1.8556
|