枫树,12个方程组

时间:2015-02-01 20:03:05

标签: maple equations

我是Maple的绝对新手,对不起......请帮助。 当解决简单的方程组时,如手册中描述的那样: solve({x+2*y = 3, y+1/x = 1}, [x, y]), 一切都很好。但是当试图解决我的12个方程组时,会抛出错误Error, (in solve) invalid arguments。有什么问题?

我的系统:

solve( {
y0 = a0+b0*x0+c0*x0^2+d0*x0^3,
y1 = a0+b0*x1+c0*x1^2+d0*x1^3,
y1 = a1+b1*x1+c1*x1^2+d1*x1^3,
y2 = a1+b1*x2+c1*x2^2+d1*x2^3,
y2 = a2+b2*x2+c2*x2^2+d2*x2^3,
y3 = a2+b2*x3+c3*x3^2+d2*x3^2, 

2/((x2-x1)/(y2-y1)+(x1-x0)/(y1-y0)) = b0+2*c0*x1+3*d0*x1^2,
2/((x3-x2)/(y3-y2)+(x2-x1)/(y2-y1)) = b1+2*c1*x1+3*d1*x1^2,
2/((x2-x1)/(y2-y1)+(x1-x0)/(y1-y0)) = b1+2*c1*x2+3*d1*x2^2,
2/((x3-x2)/(y3-y2)+(x2-x1)/(y2-y1)) = b2+2*c2*x2+3*d2*x2^2,

diff(2/((x2-x1)/(y2-y1)+(x1-x0)/(y1-y0)), x1) = 0,
diff(2/((x3-x2)/(y3-y2)+(x2-x1)/(y2-y1)), x2) = 0
}, [a0,b0,c0,d0,a1,b1,c1,d1,a2,b2,c2,d2])

2 个答案:

答案 0 :(得分:0)

x_i是否设置为固定数字?或者你应该修改你的a / b / c / d来修正数字吗?

现在,该命令以[x1,x2,x3]为单位求解[a0,b0,c0,d0,a1,b1,c1,d1,a2,b2,c2,d2]。

顺便说一下,y3里面有一个c3变量,这是一个错字吗?

在Maple 12中,我发现枫树无法找到解决方案,或者没有解决方案:

> solve( {
> y0 = a0+b0*x0+c0*x0^2+d0*x0^3,
> y1 = a0+b0*x1+c0*x1^2+d0*x1^3,
> y1 = a1+b1*x1+c1*x1^2+d1*x1^3,
> y2 = a1+b1*x2+c1*x2^2+d1*x2^3,
> y2 = a2+b2*x2+c2*x2^2+d2*x2^3,
> y3 = a2+b2*x3+c3*x3^2+d2*x3^2, 
> 
> 2/((x2-x1)/(y2-y1)+(x1-x0)/(y1-y0)) = b0+2*c0*x1+3*d0*x1^2,
> 2/((x3-x2)/(y3-y2)+(x2-x1)/(y2-y1)) = b1+2*c1*x1+3*d1*x1^2,
> 2/((x2-x1)/(y2-y1)+(x1-x0)/(y1-y0)) = b1+2*c1*x2+3*d1*x2^2,
> 2/((x3-x2)/(y3-y2)+(x2-x1)/(y2-y1)) = b2+2*c2*x2+3*d2*x2^2,
> 
> diff(2/((x2-x1)/(y2-y1)+(x1-x0)/(y1-y0)), x1) = 0,
> diff(2/((x3-x2)/(y3-y2)+(x2-x1)/(y2-y1)), x2) = 0
> }, [a0,b0,c0,d0,a1,b1,c1,d1,a2,b2,c2,d2,c3]);
                                      []

您是否尝试为a / b / c / d设置一些数字并解决x的问题:

a0:= some number
...
d2:=some number;
y0 := a0+b0*x0+c0*x0^2+d0*x0^3;
y1 := a0+b0*x1+c0*x1^2+d0*x1^3;
y1 := a1+b1*x1+c1*x1^2+d1*x1^3;
y2 := a1+b1*x2+c1*x2^2+d1*x2^3;
y2 := a2+b2*x2+c2*x2^2+d2*x2^3;
y3 := a2+b2*x3+c2*x3^2+d2*x3^2; 
solve( {
2/((x2-x1)/(y2-y1)+(x1-x0)/(y1-y0)) = b0+2*c0*x1+3*d0*x1^2,
2/((x3-x2)/(y3-y2)+(x2-x1)/(y2-y1)) = b1+2*c1*x1+3*d1*x1^2,
2/((x2-x1)/(y2-y1)+(x1-x0)/(y1-y0)) = b1+2*c1*x2+3*d1*x2^2,
2/((x3-x2)/(y3-y2)+(x2-x1)/(y2-y1)) = b2+2*c2*x2+3*d2*x2^2,
diff(2/((x2-x1)/(y2-y1)+(x1-x0)/(y1-y0)), x1) = 0,
diff(2/((x3-x2)/(y3-y2)+(x2-x1)/(y2-y1)), x2) = 0
}, [x1,x2,x3]);

答案 1 :(得分:0)

DeButra: 谢谢你的帮助! 1)是的,c3是一个错字 - 应该是c2 2)我需要一个符号,而不是数字解决方案。我需要用[x1,x2,x3]来表达a0,a1,... d2。 3)你有一个聪明的主意尝试设置一些数字。我试图这样做,我发送反馈。 再次感谢。