极限猜测算法

编程入门 行业动态 更新时间:2024-10-11 03:24:40
本文介绍了极限猜测算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好,你好, 我正在寻找一段代码,最好是用Python代替,以下代码将是b / b 。它将接受函数的一些数据点(x,f(x)),当x收敛到无穷大时,它会收敛到某个有限值。我需要算法来猜测这个限制是什么,无论它的精度是多少......它都可以。 例如,如果输入是: [ [1,8], [2,7.5], [3,7.25], [4,7.125] ] 然后输出为7.或者至少接近一些。 有没有人知道这样的事情?

Hello hello, I''m looking for a piece of code, preferably in Python, that will do the following. It will accept a few data points (x,f(x)) of a function that converges to some finite value when x converges to infinity. I need the algorithm to guess what that limit is, to whatever precision it can. For example, if the input is: [ [1,8], [2,7.5], [3,7.25], [4,7.125] ] Then the output will be 7. Or at least something close. Does anyone know anything like that?

推荐答案

在文章 < 65 ********************************** @ b40g2000prf。 googlegroups>, " ra ******** @ gmail" < ra ******** @ gmailwrote: In article <65**********************************@b40g2000prf. googlegroups>, "ra********@gmail" <ra********@gmailwrote: 你好你好, 我''我正在寻找一段代码,最好是在Python中,这将代码如下所示。它将接受函数的一些数据点(x,f(x)),当x收敛到无穷大时,它会收敛到某个有限值。我需要算法来猜测这个限制是什么,无论它的精度是多少......它都可以。 例如,如果输入是: [ [1,8], [2,7.5], [3,7.25], [4,7.125] ] 然后输出为7.或者至少接近一些。 有谁知道这样的事情? Hello hello, I''m looking for a piece of code, preferably in Python, that will do the following. It will accept a few data points (x,f(x)) of a function that converges to some finite value when x converges to infinity. I need the algorithm to guess what that limit is, to whatever precision it can. For example, if the input is: [ [1,8], [2,7.5], [3,7.25], [4,7.125] ] Then the output will be 7. Or at least something close. Does anyone know anything like that?

我建议任何入门微积分或数学分析文本。甚至可能是你教授为你指定的课程:-) 查看限制在目录中。

I suggest any introductory calculus or math analysis text. Perhaps even the one your professor assigned you for the course :-) Look under "limits" in the table of contents.

12月2日晚上10点53分,Roy Smith< r ... @ panixwrote: On Dec 2, 10:53 pm, Roy Smith <r...@panixwrote: 文章 < 6527e349-27ba-4de4-bc29-75ff45117 ... @ b40g2000prf.googlegroups>, " ram.rac ... @ gmail" < ram.rac ... @ gmailwrote: In article <6527e349-27ba-4de4-bc29-75ff45117...@b40g2000prf.googlegroups>, "ram.rac...@gmail" <ram.rac...@gmailwrote: Hello hello, Hello hello,

我正在寻找一段代码,最好是在Python中,它将会执行以下操作。它将接受函数的一些数据点(x,f(x)),当x收敛到无穷大时,它会收敛到某个有限值。我需要算法来猜测这个限制是什么,无论它的精确度是多少。 I''m looking for a piece of code, preferably in Python, that will do the following. It will accept a few data points (x,f(x)) of a function that converges to some finite value when x converges to infinity. I need the algorithm to guess what that limit is, to whatever precision it can.

例如,如果输入为: For example, if the input is:

[ [1,8], [2,7.5], [3,7.25], [ 4,7.125] ] [ [1,8], [2,7.5], [3,7.25], [4,7.125] ]

然后输出将为7.或者至少接近一些。 Then the output will be 7. Or at least something close.

有谁知道这样的事情? Does anyone know anything like that?

我建议任何入门微积分或数学分析文本。甚至可能是你教授为你指定的课程:-) 查看限制在目录中。

I suggest any introductory calculus or math analysis text. Perhaps even the one your professor assigned you for the course :-) Look under "limits" in the table of contents.

我是第三年的数学本科生。你可能不明白我的问题。

I''m a third year math undergrad. You probably did not understand my question.

" ra ******** @ gmail" < ra ******** @ gmailwrites: "ra********@gmail" <ra********@gmailwrites: 查看限制下的内容在目录中。 Look under "limits" in the table of contents.

我是第三年的数学本科生。你可能不明白我的 问题。

I''m a third year math undergrad. You probably did not understand my question.

我想我理解这个问题。这听起来像一个数值方法 作业问题。基本上你有f(x0),f(x1)等,你想要 来推断x =无穷大。提示:想想a0 = 1 / x0,a1 = 1 / x1等等。 所以你的初始数据是f(1 / a0),f(1 / a1)等等它应该是非常好 明显该做什么。

I think I understood the question. It sounds like a numerical methods homework problem. Basically you have f(x0), f(x1), etc. and you want to extrapolate to x=infinity. Hint: think of a0=1/x0, a1=1/x1, etc. so your initial data is f(1/a0), f(1/a1), etc. and it should be pretty obvious what to do next.

更多推荐

极限猜测算法

本文发布于:2023-11-30 13:18:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1650121.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:算法   极限

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!