0% found this document useful (0 votes)
30 views2 pages

Numerical Met123

The document describes the output of running two numerical methods programs to approximate the real solution to two different equations. For both programs, the initial guess, error tolerance, and maximum iterations are input, then an iterative process runs to converge on the approximate real solution.

Uploaded by

mycodebeg4e1205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

Numerical Met123

The document describes the output of running two numerical methods programs to approximate the real solution to two different equations. For both programs, the initial guess, error tolerance, and maximum iterations are input, then an iterative process runs to converge on the approximate real solution.

Uploaded by

mycodebeg4e1205
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

PS C:\Users\sunco\OneDrive\NUMERICAL METHODS> cd 'c:\Users\sunco\OneDrive\NUMERICAL

METHODS\output'
PS C:\Users\sunco\OneDrive\NUMERICAL METHODS\output> & .\'lab1.exe'

Enter the value of initial guess x0: 17

Enter the value of pre defined error e: 0.000001

Enter the maximum number of iteration: 15

___________________________________________________________________________________
_________________

Iteration x0 f(x0) x1 f(x1)

___________________________________________________________________________________
_________________

1 17.000000 240.000000 9.258064


0.000000
2 9.258064 59.937561 5.395144
59.937561
3 5.395144 14.922151 3.479663
14.922151
4 3.479663 3.669067 2.552974
3.669067
5 2.552974 0.858754 2.145198
0.858754
6 2.145198 0.166281 2.016338
0.166281
7 2.016338 0.016605 2.000258
0.016605
8 2.000258 0.000259 2.000000
0.000259
___________________________________________________________________________________
_________________

The approximate real solution is : 2.000000000

PS C:\Users\sunco\OneDrive\NUMERICAL METHODS> cd 'c:\Users\sunco\OneDrive\NUMERICAL


METHODS\output'
PS C:\Users\sunco\OneDrive\NUMERICAL METHODS\output> & .\'lab12.exe'

Enter the value of initial guess x0: 15

Enter the value of pre defined error e: 0.000001

Enter the maximum number of iteration: 20

___________________________________________________________________________________
____________________________________

Iteration x0 f(x0) x1
f(x1)

___________________________________________________________________________________
____________________________________
1 15.000000 3269015.250000 14.000001
0.000000
2 14.000001 1202602.250000 13.000005
1202602.250000
3 13.000005 442411.593750 12.000014
442411.593750
4 12.000014 162753.281250 11.000034
162753.281250
5 11.000034 59873.191406 10.000068
59873.191406
6 10.000068 22025.796875 9.000141
22025.796875
7 9.000141 8102.138672 8.000450
8102.138672
8 8.000450 2979.446045 7.001739
2979.446045
9 7.001739 1094.788574 6.005752
1094.788574
10 6.005752 401.794098 5.014847
401.794098
11 5.014847 147.335190 4.030502
147.335190
12 4.030502 53.919437 3.059205
53.919437
13 3.059205 19.307213 2.156699
19.307213
14 2.156699 6.195515 1.502873
6.195515
15 1.502873 1.426710 1.243106
1.426710
16 1.243106 0.144506 1.210362
0.144506
17 1.210362 0.002016 1.209892
0.002016
___________________________________________________________________________________
____________________________________

The approximate real solution is : 1.209891677

You might also like