2# karl_wang 4 O# x. o6 l* K, ?! i5 \7 `$ O谢谢哦~~ 是不是用solve也可以解决呢?如果在二次方程的等式右边再加个随机数,那个随机数怎么实现呢?& s! \% Z5 Q1 p# ]& v. f5 S0 u, I) K
wwwaiting 发表于 2009-3-26 15:42
2 b, w* H& e( R( U2 b8 r5 N+ ~你可以给一个数赋一个随机值,然后加在等式的右边,这样应该可以的。作者: baiyh2008 时间: 2009-3-26 22:00
sorry! there is an error in orignal code, you have to define independent variables (x and y) in 'solve' command, 9 ^" @/ {5 ]+ g* n( J2 j, [& l . m, d5 h9 W, _' _ S1 x# e/ k[X,Y]=solve(f(1), f(2), 'x','y') - u0 W% }" [+ p& u4 i1 ]Xx = simplify(X) 7 E% X% l4 c y8 FYy = simplify(Y)( A& T7 o! n' D2 T8 K6 e3 U3 }1 y
5 {. K: Y# y9 a+ E0 ?2 M; aIn addition, describe more details for your second question. It will be good for solving.作者: jingyiloveyou 时间: 2010-8-2 17:37
为啥solve的结果中含有复数,并且结果明显不对??