sicp-solutions/ex-2.13.txt
Petar Kapriš 1b2b2dfec1 Add solutions to exercises from section 2.1
To be noted: the last two exercises, 2.15 and 2.16 were left unfinished,
and will be left for another time.
2025-02-05 15:17:47 +01:00

10 lines
328 B
Text

Let's limit our argument for positive numbers:
a+-wa * b+-wb = [(a-wa)*(b-wb), (a+wa)*(b+wb)]
[a*b - a*wb - b*wb + wa*wb, a*b + a*wb + b*wa + wa*wb]
if we assume wa*wb is insignificantly small, we get:
a*b+-(a*wb+b*wa)
tolerances are the following:
ta = wa/a
tb = wb/b
tab = (a*wb+b*wa)/(a*b) = (a*b*tb + a*b*ta)/(a*b) = ta+tb