8

有没有现成的代码分析出数组的通项公式?

 2 years ago
source link: https://www.v2ex.com/t/814951
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

有没有现成的代码分析出数组的通项公式?

  tuding · 20 小时 41 分钟前 · 750 次点击
假设我有一个有序的、含有 n 个数的数组,有没有现成的代码或者程序可以分析出这个数组的数字规律(即通项公式),以此来估计第 n+1 个数大概是多少?

如果没有现成的话,应该怎么设计算法,才能让通项公式尽可能的精确呢?

(假设这个数组是有规律的)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK