SICP Exercises (2.15) A summary of solving problems: an in-depth consideration of interval errors

Source: Internet
Author: User

SICP Exercise 2.15 is the next topic 2.14 , the topic 2.14 mentioned Alyssa The design of the interval calculation module in the parallel resistance calculation will occur problems, this problem is found by Lem. Then, a person called Eva also found this problem, and she also has more in-depth thinking.


Eva feels that if a formula can be written in a form, where non-accurate variables do not recur, then the Alyssa system will produce a tighter bounds.

Therefore, she felt that in calculating the shunt resistor, the formula"1/(1/r1 + 1/r2)" than the formula "(R1*R2)/(R1 + R2)" is better.


The topic asks us to see if Eva says it right.



To understand the meaning of the topic is a bit difficult, mainly do not know the "with non-accurate variables" what meaning.

However, we can make an intuitive inference based on the phenomena we observed in exercise 2.14.

In Exercise 2.14, we found that the interval division of Alyssa is problematic, and that dividing the two intervals will enlarge the error.

However, it is worth noting that the implementation of the formula "1/(1/R1 + 1/r2)" When the Lem defines an interval called one, the value is (1 1), this is a definite interval, there is no error, in the interval division of the use of it will not cause error widening problem.

such as one/(100 200), is


(1 1)/(100 200)

+ (1 1) * (1/100 1/200)


+ (1/100 1/200)


The further calculation of one/(one/(100 200)) is

(1 1)/(1/100 1/200)

(1 1) * (100 200)

(100 200)


That is, if we have defined interval one as (1 1), then one/(one/a) or a, will not cause the problem of the interval error to become larger.


Therefore, as mentioned in topic 2.15, the use of one's program Part2 is a better program.



SICP Exercises (2.15) A summary of solving problems: an in-depth thinking of interval errors

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.