0% found this document useful (0 votes)
676 views

Tugas Metode Komputasi Numerik

This document summarizes solutions to problems in a numerical computation methods class. It shows: 1) Converting numbers to floating point form rounded to 5 significant digits. 2) Illustrating how rounding errors are affected by computing a division of small differences of large numbers, rounding stepwise to fewer significant digits. 3) Solving a quadratic equation using two methods and comparing the results rounded to 6 significant digits. 4) Repeating the quadratic solution with fewer significant digits to further illustrate rounding errors. 5) Computing the difference of logarithms with and without first taking the logarithm of a ratio to reduce rounding error.

Uploaded by

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

Tugas Metode Komputasi Numerik

This document summarizes solutions to problems in a numerical computation methods class. It shows: 1) Converting numbers to floating point form rounded to 5 significant digits. 2) Illustrating how rounding errors are affected by computing a division of small differences of large numbers, rounding stepwise to fewer significant digits. 3) Solving a quadratic equation using two methods and comparing the results rounded to 6 significant digits. 4) Repeating the quadratic solution with fewer significant digits to further illustrate rounding errors. 5) Computing the difference of logarithms with and without first taking the logarithm of a ratio to reduce rounding error.

Uploaded by

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

Muhammad Arfani Asra / D121190171

Metode Komputasi Numerik Kelas C 2020/2021


PROBLEM SET 19.1
1. (Nomor 1) Floating point. Write 84.175, –528.685, 0.000924138, and –362005
in floating-point form, rounded to 5S (5 Significant digits).
Solution:
 84.175=0.84175× 102
 −528.685=−0.52868× 103
 0.000924138=0.92414 ×10−3
 −362005=−0.36201× 106
2. (Nomor 3) Small differences of large numbers may be particularly strongly
affected by rounding errors. Illustrate this by computing 0.81534/(35.724 –
35.596) as given with 5S, then rounding stepwise to 4S, 3S, and 2S, where
“stepwise” means round the rounded numbers, not the given ones.
Solution:
0.81534 0.81534
 5S: = =6.3698
35 .724−35.596 0.128
0.8153 0.815 3
 4S: = =6.794
35 .72−35. 60 0.12
0.815 0.815
 3S: = =8.15
35 .7−35. 6 0.1
0.81 0.81
 2S: = =¿ Tak terdefinisi (impossible)
35−35 0
3. (Nomor 7) Quadratic equation. Solve x 2−30 x+ 1=0 by (4) and by (5), using 6S
in the computation. Compare and comment.
Solution:
1 ( 1
(4)… x 1= −b + √ b2−4 ac ) x 2= (−b− √b 2−4 ac).
2a 2a
c
(5)… x 1= , x 2 as in (4)
a x2

x 2−30 x+ 1=0 (a=1 ,b=−30 , c=1)


1
 x 1= (− (−30 ) + √ (−30 )2−4 ( 1 )( 1 ) )= 1 ( 30+ √ 900−4 )= 1 ( 30+ √ 896 )
2∙ 1 2 2
x 1=15+ 4 √ 14 (¿ 15+14.9666295471 ≈29.9667)
1
 x 2= (−(−30 )−√ (−30 )2−4 ( 1 ) ( 1 ))= 1 ( 30−√ 900−4 ) = 1 (30−√ 896)
2∙ 1 2 2
x 2=15−4 √ 14 ( ¿ 15−14.9666295471 ) ≈ 0.0335 ¿

Nilai x 1 dan x 2 di atas juga memenuhi persamaan (5)


1 1 1
x 1= = = ≈ 29. 85
1∙ x2 x 2 0.033 5

6S-exact:
 x 1=29.9667
 x 2=0.0333704
Muhammad Arfani Asra / D121190171
Metode Komputasi Numerik Kelas C 2020/2021
4. (Nomor 9) Do the computations in Prob. 7 with 4S and 2S.
Solution:
a) 4S
30+8 √ 14 30+29.93 30−8 √ 14 30−29.93
x 1= = =29.97 ; x 2= = =0.035
2 2 2 2
(29.97,0 .035)

2S
30+8 √14 30+30 30−8 √ 14 30−30
x 1= = =30 x 2= = =0.0
2 2 2 2
(30,0.0)
b) 4S
1 1
x 2= = =0.03337 (29.97,0 .03337)
1∙ x1 29.97
2S
1 1
x 2= = =0.033 (30,0.033)
1∙ x1 30
5. (Nomor 15) Logarithm. Compute ln a−ln b with 6S aritmethic for a=4.00000 and
a
b=3.99900 (a) as given and (b) from ln ( ).
b
Solution:
(a) ln a−ln b=ln 4.00000−ln 3.99900
¿ 1.38629−1.38604=0.00025
a 4.00000
(b) ln =ln =ln 1.00025=0.000249969
b 3.99900

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy