m0_69442357 2022-10-29 11:37 采纳率: 100%
浏览 32
已结题

python 二分法求解函数

Similar to the Bisection algorithm, the False Position Algorithm, also known as Regula Falsi, utilizes a bracketing approach. But unlike the Bisection Algorithm, it does not utilize a brute-force approach of dividing the problem space into half for every iteration. Instead, this algorithm iteratively draws a straight line from f(start) to f(end) and compares the intercept with the target value.

Write a function for Regula Falsi algorithm to find a rood for a given function 𝑓.

f = lambda x: x3 + x2 + 1
start = -2
end = 2

  • 写回答

2条回答 默认 最新

  • 请叫我问哥 Python领域新星创作者 2022-10-29 11:56
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 11月13日
  • 已采纳回答 11月5日
  • 创建了问题 10月29日