函数求解
syms qx;f1x=2148.8*((x^2+3145.46)/(2*x+398.16)-7.9)^2;f2x=0.83*(x-15.8)^3;f3x=(10*x-158)*(x/2+7.9-(x^2+3145.46)/(2*x+398.16))^2;f4x=(x^2+398.16*x-3145.46)/(2*x+398.16);fx=(f1x+f2x+f3x)/f4x;y=(q*6000/2*(3000-(720-2*x-(x^2+3145.46)/(x+199.08))*(10*x+1990.8)*90/(4*(fx)))-q/2*(3000-(720-2*x-(x^2+3145.46)/(x+199.08))*(10*x+1990.8)*90/(4*(fx)))^2)/((10*x+1990.8)*(720-2*x-(x^2+3145.46)/(x+199.08)))+(q*6000/2-q*(3000-(720-2*x-(x^2+3145.46)/(x+199.08))*(10*x+1990.8)*90/(4*(fx))))*90/(4*(fx));y1=diff(y);y1solve(y1,x)
我想用此函数求解出x 关于q 的关系式,可是求解出来ans =
1.4615934447506653473584209909627
7.7491961433720772077559248639294
118.83475499710998194887041303272
10.890139893696289988653188421550+5.5191519510864222529163947092972*i
70.859800340305231606193036253586+95.528898026877660422656581225542*i
-47.804855854592730766505790604944+74.253347365834351951222528577434*i
-867.15008940258502104447817072034+148.56497749128598052249486198541*i
-70.148087196894408019059597359382
-707.07928869469278439945010515816
-867.15008940258502104447817072034-148.56497749128598052249486198541*i
-47.804855854592730766505790604944-74.253347365834351951222528577434*i
70.859800340305231606193036253586-95.528898026877660422656581225542*i
10.890139893696289988653188421550-5.5191519510864222529163947092972*i这里面怎么没有q 了呢?出来的这一堆数据含有i 是什么意思?
请各位大侠帮忙看看,就是一个函数的求解问题,令y1=0,求解出x 关于q 的关系式,难道用solve不对?
回复 楼主 helili0910 的帖子
i是虚数回复 楼主 helili0910 的帖子
help solve或doc solve看看solve的用法
回复 楼主 helili0910 的帖子
看看这个帖子有没有帮助?http://forum.vibunion.com/forum/viewthread.php?tid=66201&page=1#pid351470
页:
[1]