Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个函数 f(x) = a + bx + cx^2 其中 x 是一个整数并且只取正值。对于 x = 0、1、2,我还有一个 f(x) 的值列表......我如何使用 python 中的某个模块(例如 Dsolve)估计 a、b 和 c 的值
在这里,我想要一个通用模块,我可以在其中定义任何函数 (f(x)) 和数据集并获取系数的值。例如。该函数可以是 f(x) = a + bx + ce^x 或其他任何东西。