当一个数学公式已知好几组数据,如何用mathematica求未知量

m=a*x^2+b*y^2+c*z^3,告诉你几组关于m,x,y,z的数据,如何求解a,b,c
大致一个类型

data = {{0, 0, 0, 0}, {1, 0, 1, 1}, {0, 1, 2, 2}, {1, 1, 0, 3}, {1/2, 1/2, 1, 1/2}};
nlm = NonlinearModelFit[data, a*x^2+b*y^2+c*z^3, {a, b, c}, {x, y, z}]
Normal[nlm]
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答