✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Consider the following function:
There are 22 roots of this equation (where y = 0) for x = [0, 40].
Write a script that will calculate and store all roots of the equation within this domain, and then calculate the sum of all of these values. Your final answer is this sum of all the roots, given to at least 4 decimal places (i.e. if your roots were at x = [1, 2, 3, 4], your answer should be 1 + 2 + 3 + 4 = 10.0000).
Hint: you may wish to use a modified version of your false-position method function
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!