求一份机械原理课程设计说明书,要颚式破碎机的.
- 提问者网友:浪荡绅士
- 2021-03-02 02:49
- 五星知识达人网友:走死在岁月里
- 2021-03-02 03:27
- 1楼网友:野味小生
- 2021-03-02 03:42
我已改正如下:
#include "stdio.h" #include "conio.h" #include "math.h" #define pi 3.1415926 main() { double c0,c1,c2,c3,c4,c5,c8,c9,l1,l2,l3,l4,l5,l8,l9,w1,w2,w3,w4,w5,a2,a3,a4,a5,a,b,c,d,e,f; scanf("c1=%lf\n",&c1);//输入类型也必须格式化为double型,所以用%lf l1=0.1; l2=0.4; l3=0.3; l4=0.26; l5=0.6; l8=0.48; l9=0.58; c8=2*pi/3; c9=2.7053; w1=3*pi; a=2*l1*l3*sin(c1)-2*l3*l9*sin(c9); b=2*l1*l3*cos(c1)-2*l3*l9*cos(c9); c=l2*l2-l3*l3-l9*l9-l1*l1+2*l1*l9*cos(c1-c9); c3=2*atan((a-sqrt(a*a+b*b-c*c))/(b-c)); c2=acos((l3*cos(c3)+l9*cos(c9)-l1*cos(c1))/l2); c0=c2-pi/6; d=(-2)*l5*l8*sin(c8)+2*l1*l5*sin(c1)+2*l5*l2*sin(c0); e=(-2)*l5*l8*cos(c8)+2*l1*l5*cos(c1)+2*l5*l2*cos(c0); f=l4*l4-l5*l5-l8*l8-l1*l1-l2*l2+2*l2*l8*cos(c0-c8)-2*l1*l2*cos(c1-c0)+2*l1*l8*cos(c1-c8); c5=2*atan((d+sqrt(d*d+e*e-f*f))/(e-f)); c4=acos((l5*cos(c5)+l8*cos(c8)-l1*cos(c1)-l2*cos(c0))/l4);//少个分号,我已加上~
w2=((-w1)*w1*l1*sin(c1-c3))/(l2*sin(c2-c3)); w3=(w1*l1*sin(c1-c2))/(l3*sin(c3-c2)); w4=(l1*w1*sin(c5-c1)+l2*w2*sin(c5-c0))/(l4*sin(c4-c5)); w5=(l1*w1*sin(c1-c4)+l2*w2*sin(c0-c4))/(l5*sin(c5-c4)); a2=((-w1)*w1*l1*cos(c1-c3)-w2*w2*l2*cos(c2-c3)+w3*w3*l3)/(l3*sin(c2-c3)); a3=(w1*w1*l1*cos(c1-c2)+w2*w2*l2-w3*w3*l3*cos(c3-c2))/(l3*sin(c3-c2)); a4=(l5*w5*w5*cos(2*c5)-l1*w1*w1*cos(c5-c0)-l4*w4*w4*cos(c4-c5))/(l4*sin(c4-c5)); a5=(l1*w1*w1*cos(c1-c4)+l2*w2*w2*cos(c4-c0)+l4*w4*w4*cos(2*c4)-l5*w5*w5*cos(c5-c4))/(l5*sin(c5-c4)); printf("c2=%f\n,c3=%f\n,c4=%f\n,c5=%f\n,w2=%f\n,w3=%f\n,w4=%f\n,w5=%f\n,a2=%f\n,a3=%f\n,a4=%f\n,a5=%f\n,a=%f\n,b=%f\n,c=%f\n,d=%f\n,e=%f\n,f=%f\n",c2,c3,c4,c5,w2,w3,w4,w5,a2,a3,a4,a5,a,b,c,d,e,f); getch(); }
你看看还有什么问题?