极限猜测算法 [英] Limit Guessing Algorithm
问题描述
你好,你好,
我正在寻找一段代码,最好是用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.com>,
" ra ******** @ gmail.com" < ra ******** @ gmail.comwrote:
In article
<65**********************************@b40g2000prf. googlegroups.com>,
"ra********@gmail.com" <ra********@gmail.comwrote:
你好你好,
我''我正在寻找一段代码,最好是在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 ... @ panix.comwrote:
On Dec 2, 10:53 pm, Roy Smith <r...@panix.comwrote:
文章
< 6527e349-27ba-4de4-bc29-75ff45117 ... @ b40g2000prf.googlegroups.com>,
" ram.rac ... @ gmail.com" < ram.rac ... @ gmail.comwrote:
In article
<6527e349-27ba-4de4-bc29-75ff45117...@b40g2000prf.googlegroups.com>,
"ram.rac...@gmail.com" <ram.rac...@gmail.comwrote:
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.com" < ra ******** @ gmail.comwrites:
"ra********@gmail.com" <ra********@gmail.comwrites:
查看限制下的内容在目录中。
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.
这篇关于极限猜测算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!