擅长:python、mysql、java
<p>我不知道python的解决方案,但解决这个问题的一种方法是根据作为<code>LinearModelFit</code>参数提供的函数形式转换x数据:</p>
<pre><code> n=1290
LinearModelFit[ydata, 1/(2 n - x)^100, x]["BestFit"]
</code></pre>
<blockquote>
<p>16.1504 + 1.471945513739138*10^315/(2580 - x)^100</p>
</blockquote>
<p>相当于:</p>
^{pr2}$
<blockquote>
<p>16.1504 + 1.471945513739138*10^315 x</p>
</blockquote>
<p>您应该能够很容易地进行这种转换,并在python中使用标准线性回归。但是,由于指数较大,您可能会遇到精度问题。在</p>