Question: iteration,newton,initial value,cycle.

f(x) = 4*cos(x)-exp(x)

g := proc (x) options operator, arrow; x-(4*cos(x)-exp(x))/(-4*sin(x)-exp(x)) end proc

tot := 1.3

for i while i < 10 do tot := subs(x = tot, g(x)), print(%) end do:tot

                                0.9047882178
                                0.9047882180
                                0.9047882178
                                0.9047882180
                                0.9047882178
                                0.9047882180
                                0.9047882178
                                0.9047882180
                                0.9047882178
                                0.9047882180
for the initial value tot=1.3,the results come in to a cycle,

the same to tot=1.4

question1:which kind of initial value will like this?

question2:how to make tolerance = 10^(n),n>10,in Student NumericAnalysis,

Error, (in Student:-NumericalAnalysis:-Roots) maximum number of iterations (10) exceeded
 

 

 


 

 

Please Wait...