f(x) = e x x By Secant (i = 1) التعويض (i)x f(x) xn+1 xn │ϵα│% by Excel Solver Opation Use: Goal Seek
1  Value ®xi - 1 = x1 0 1.000000 X2 - X1 x 0.56714329 Preision 0.5671 8E-06
2 Value ® xi = x2 1 -0.632121 1.0000 1.00000 f(x)=e x x 0.00000000 0.000000007
 
3 Secant law®x3 = 0.6127 -0.070814 -0.3873 -0.63212 Secant law
4  ®x4 = 0.56383839 0.005182 -0.0489 -0.08666
 
5  ®x5 = 0.56717036 -0.000042 0.0033 0.00587 See Example8
6  ®x6 = 0.56714331 0.000000 0.0000 -0.00005
ßß
 
7 ®x7 = 0.56714329 0.000000 0.0000 0.00000  
8 ®x8 = 0.56714329 0.000000 0.0000 0.00000 ßß  
use excel                      stop because the last two answers has been  Equaled Newton law
نظير المصفوفة
 
   
f(x)=e x x By Newton f /(x) = e x 1 القسمة قانون حساب (i+1)x Newton law      
x(i) f x(i) f /x(i) fx(i)/f/x(i) x(i) fx(i)/f/x(i)
 
   
0.2 0.618730753 -1.818731 -0.340199 0.54019920
0.5401992032 0.042432975 -1.582632 -0.026812 0.56701085
0.5670108503 0.000207558 -1.567218 -0.000132 0.56714329
See Picture
0.5671432872 4.97416E-09 -1.567143 0.000000 0.56714329 Secant law
0.5671432904 0 -1.567143 0.000000 0.56714329
Program in Mthlab (Secant) Secant for ® f(x) = e– x – x قيم نقاط رسم المنحنى f(x) = e x x
clc     ans = x f(x)
 
   disp('Secant for e^(x)x')     0.00000000 -2 9.4
x=[0 1]; لاحظ الرسم جهة اليسار     1.00000000 -1 3.7
format long ثماية ارقام عشرية Resault ® 0.61269984 0 1.0
for i=2:8; بدء من 2 حتى 8     0.56383839 1 -0.6
    fx=exp(-x(i-1))-x(i-1); قيمة الدالة عند i-1 0.56717036 2 -1.9
    fxx=exp(-x(i))-x(i); قيمة الدالة عند i 0.56714331 3 -3.0
    x(i+1)=x(i)-((x(i)-x(i-1))*fxx)/(fxx-fx); القيمة الجديدة 0.56714329 4 -4.0
end نهاية اللوب 0.56714329   الرسم في Excel
    x' حتى تتساوي آخر قيمتين القيم التي حُسبت 0.56714329    ¾®
 disp(' stop because the last two answers has been  Equaled')    stop because the last two answers has been  Equaled Inteval [0 , 1] 0 0  
-----------------------------------------------------------------------   0 1 ®
Program in Mthlab (Newton-Raphson )     Newton for exx  
لرسم الفترة ¬ اللون الأحمر في الشكل من صفر للواحد
%e^(–x)–x')   التوضيح أعلاه   ans =    
   disp('Newton for e^(-x)-x')     0.00000000    
x=[0];tol=0.0000000007;format long     0.50000000    
for i=1:6; Resault ®   0.56631100    
     fx=exp(-x(i))- x(i);       0.56714317    
     fxx=-exp(-x(i))-1;      0.56714329    
     fxxx=exp(-x(i));     0.56714329    
     x(i+1)=x(i)-(fx/fxx);     0.56714329    
end      
if abs(x(i+1)-x(i))<tol      
    x'           الرسم من Derive
disp(' stop because the last two answers has been  Equaled')    stop because the last two answers has been  Equaled
end            
             
By: Mathematica 9   By: Derive 6   By: MathCad 15     By: Maple 18   MthLab 11
NSolve[E^-x - x, {x}] NSOLVE(e-x-x, x, Real) Ctrl+Shift+. Before solve, Ctrl + = To have = f(x) := exp(-x)-x = 0:  See up B20:B46
{{x -> 0.567143}} -> Mean ® 0.5671432904    e-x -x = 0 solve ®  LambertW(1)   fsolve(f(x))   Excel 2007
{{x ® 0.567143}} أو نحصل مباشرة على     LambertW(1) float, 9®0.5671432904   0.5671432904 See up B1:F18
By: Mathematica 10   clc MthLab 11, 15 (Also)   MthLab 11 (Also)
NSolve[E^(-x) - x == 0, x, Reals] syms x real   syms x real  
{{x -> 0.567143}}   f1=input('please type the equation ','S'); vpa(solve(exp(-x)-x))
By: Maple 18   [x]=solve(f1);   ans 0.56714329
Examples   x = vpa(x(1),8) % for real number(first answer) حل معادلة تحوي exp ¬
with(Student[NumericalAnalysis]); %exp(-x)-x=0 ® 0.5671432904 وتوجد هنا ثلاث منها ¬
f := exp(-x)-x;   %exp(-2*x)-exp(-x)-1=0 ® -0.4812118246
                          exp(-x) - x %exp(-x)-exp(2*x)+1=0 ® 0.2811995743
Newton(f, x = 2.0, tolerance = 10^(-2));
0.5671432904