laskov

10 Reputation

2 Badges

13 years, 210 days

MaplePrimes Activity


These are answers submitted by laskov

interpol(0.15);

 

 1, " ", 0., " ", -0.14943813247359922150
         2, " ", 0.14975012497024222846, " ", 0.00031199249664300696
Error, (in interpol) cannot determine if this expression is true or false: 1/100000000 < 1.50*sin(1/10)

 

> fixe := proc (p, g)

local n, nmax, e;

e := 1/100000000; nmax := 500;

n := 1;

while (evalb(n < nmax) and e < abs(g(p)-p) do

 

p := g(p); print(n, "             ", evalf(p, 10), "               ", evalf(g(p), 10));

n := n+1

end do;

if evalb(nmax < n) then

print("la methode a échouée après", nmax, "itérations")

else 

end if

end proc;

g := x-> x^2-2*x-3 ;

fixe(4, g);



   







  2          
x -> x  - 2 x - 3
Error, (in fixe) illegal use of a formal parameter

Page 1 of 1