ImageVerifierCode 换一换
格式:DOCX , 页数:15 ,大小:37.88KB ,
资源ID:17752887      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/17752887.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(用C语言编程求解的凸轮运动规律Word文件下载.docx)为本站会员(b****3)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

用C语言编程求解的凸轮运动规律Word文件下载.docx

1、 return d*pi/180;double f_s0(double r0,double e) return pow(pow(r0,2)-pow(e,2),0.5);double f_s(double a) double s; if(a=0&a=45) s=0; else if(a=112.5) s=2*h*pow(a-45,2)/pow(135,2);=180)s=h-2*h*pow(180-a,2)/pow(135,2);=270)s=h; else s=h*(4-a/90+sin(change_angel(4*a-3*360)/2/pi); return s;double f_x(do

2、uble s,double s0,double a) double x; x=(s0+s)*sin(change_angel(a)+e*cos(change_angel(a); return x;double f_y(double s,double s0,double a) double y; y=(s0+s)*cos(change_angel(a)-e*sin(change_angel(a); return y;double f_s1(double a) double s1;=45) s1=0;=112.5) s1=64*h*(change_angel(a)-(pi/4)/9/pow(pi,

3、2);=180) s1=64*h*(pi-change_angel(a)/9/pow(pi,2);=270) s1=0; else s1=h*(-2/pi+2*cos(change_angel(4*a-3*360)/pi); return s1;double f_x1(double s0,double a,double s,double s1) double x1; x1=(s0+s)*cos(change_angel(a)+s1*sin(change_angel(a)-e*sin(change_angel(a); return x1;double f_y1(double s0,double

4、a,double s,double s1) double y1; y1=-(s0+s)*sin(change_angel(a)+s1*cos(change_angel(a)-e*cos(change_angel(a); return y1;double f_xx(double x,double x1,double y1) double xx; xx=x+rt*y1/pow(pow(x1,2)+pow(y1,2),0.5); return xx;double f_yy(double y,double x1,double y1) double yy; yy=y-rt*x1/pow(pow(x1,2

5、)+pow(y1,2),0.5); return yy;double f_aa(double r0,double s,double s1) double aa; aa=atan(fabs(s1/(r0+s); return aa;double f_s2(double a) double s2;=45) s2=0;=112.5) s2=64*h/9/pow(pi,2);=180) s2=-64*h/9/pow(pi,2);=270) s2=0; else s2=-8*h*sin(change_angel(4*a-3*360)/pi; return s2;double f_x2(double s,

6、double s1,double a,double s2,double s0) double x2; x2=s2*sin(change_angel(a)+2*s1*cos(change_angel(a)-(s0+s)*sin(change_angel(a)-e*cos(change_angel(a); return x2;double f_y2(double s,double s1,double a,double s2,double s0) double y2; y2=s2*cos(change_angel(a)-2*s1*sin(change_angel(a)-(s0+s)*cos(chan

7、ge_angel(a)-e*cos(change_angel(a); return y2;double f_p(double x1,double y1,double x2,double y2) double p; p=pow(pow(x1,2)+pow(y1,2),1.5)/(x1*y2-x2*y1); return p;void main() double y1,x2,r0=30,s0,a,s,s1,x1,s2,y2,xN,yN,xxN,yyN,aa,p,pa,temp_aa1=0,temp_aa2=0,temp_a1=0,temp_a2=0,temp_p=0,temp_ap=0; s0=f

8、_s0(r0,e); FILE*fp=fopen(d:/he.txt,w); for(int i=0;iN;i+) a=3*i; s=f_s(a); xi=f_x(s,s0,a); yi=f_y(s,s0,a); s1=f_s1(a); x1=f_x1(s0,a,s,s1); y1=f_y1(s0,a,s,s1); xxi=f_xx(xi,x1,y1); yyi=f_yy(yi,x1,y1); aa=f_aa(r0,s,s1); /*couts0是:s0endl; couta是: couts是:sx是:xiy是:yis是:s1x1是:x1y1是:y1xx是:xxiyy是:yyiaa是:aa=2

9、70&=360) if(aaa_max2) r0+=oro; s0=f_s0(r0,e); i=0; continue; else if(temp_aa2aa) temp_aa2=aa;temp_a2=a; =45&=180)a_max1) r0+=oro; s0=f_s0(r0+oro,e); if(temp_aa1aa) temp_aa1=aa;temp_a1=a; / s2=f_s2(a); x2=f_x2(s,s1,a,s2,s0); y2=f_y2(s,s1,a,s2,s0); p=f_p(x1, y1, x2, y2);/ if(p=p_min) pa=fabs(p)-rt; if

10、(temp_ppa) temp_p=pa;temp_ap=a; else s0=f_s0(r0,e); i=0; continue; /end if /end for/输出amin=temp_p;amin=temp_ap;1max=temp_a1;1max=temp_aa12amax=temp_a2;2max=temp_aa2;r0=r0;=a;s= fprintf(fp,%lf,temp_p); fprintf(fp,%c, ,temp_ap);,temp_a1);,temp_aa1);,temp_a2);,temp_aa2);,r0);,a);,s);n for(i=0;x=;yxy,xi

11、);,yi);,xxi);,yyi); 理论轮廓线和实际轮廓线坐标值理论轮廓线实际轮廓线x yx529.5803993.33333319.7202666.54126629.278184.36084419.5187878.06460328.8957125.37640219.2638089.56583628.4340436.37722418.95602911.04084927.8944387.36056618.59629212.485627.2783768.32373318.18558413.89612826.5875469.26408617.72503115.26856925.82384210.

12、17904617.21589516.59915924.98935611.06610616.65957117.88425324.08637611.92283516.05758419.12032623.11737712.74688415.41158520.30399322.08501513.53599514.72334321.43200720.99211914.28800513.99474622.50127819.84168615.00085213.22779123.50887418.63686815.67258312.42457824.45203417.38096716.30135611.587

13、31125.34872416.09593117.09887910.44437826.22085514.79943317.8767629.2879827.07132713.48813118.6362268.11699727.90249112.15827419.378086.9300428.7161110.80575220.1027395.72541429.5133279.42616120.8102414.50109330.2946338.01485921.5002673.25469731.0598436.56703222.1721441.98349531.8080835.07776222.824

14、8470.68441832.5377693.54208923.456984-0.64591133.2466061.95508224.066781-2.01112733.9315820.3119124.652052-3.41506334.588975-1.39209325.21017-4.8616835.214359-3.16135425.738035-6.35498835.802621-4.99999926.232042-7.89896736.347984-6.91177826.688059-9.49747836.84403-8.90000427.101408-11.15418437.2837

15、31-10.96748727.466854-12.87246337.659491-13.11647427.778604-14.65532737.963186-15.34858528.030316-16.50534738.186209-17.66476128.215117-18.42457638.319528-20.06521228.325629-20.4144838.341105-22.5437428.344882-22.26893638.16824-25.05931928.227931-23.9683337.786351-27.58946127.966118-25.70186437.1951

16、67-30.11663927.555669-27.45579736.395804-32.62343726.994206-29.21609935.390747-35.09265726.280745-30.96859734.183826-37.50741625.415683-32.69912332.780183-39.85124824.400767-34.39364831.186232-42.10819923.239056-36.03840529.409612-44.26292121.934874-37.62000827.459135-46.30076120.493751-39.12556525.

17、344726-48.20784318.922367-40.54277323.077359-49.97115317.228474-41.86001520.668985-51.57860815.42083-43.06644818.13246-53.01913213.509113-44.15207715.481459-54.28271311.503841-45.10782612.730398-55.3604689.416284-45.9256059.894341-56.2446897.258371-46.5983596.988908-56.9288875.042597-47.1201224.0301

18、85-57.4078362.781924-47.486051.034621-57.6775980.489686-47.692457-1.981067-57.73555-1.820513-47.736839-4.999997-57.580399-4.134902-47.617889-8.00667-57.239808-6.621363-47.336226-10.991397-56.742326-9.089675-46.924818-13.945997-56.089317-11.533073-46.384793-16.862373-55.282572-13.94486-45.717629-19.7

19、3253-54.3243-16.318425-44.925157-22.548601-53.21713-18.647262-44.009549-25.302869-51.964095-20.924988-42.973313-27.987782-50.56863-23.145361-41.81929-30.595984-49.03456-25.302293-40.550644-33.120324-47.36609-27.389874-39.170851-35.553883-45.567793-29.402381-37.683693-37.889991-43.644597-31.334298-36

20、.093247-40.122246-41.601775-33.18033-34.403872-42.244529-39.444925-34.935417-32.620199-44.251022-37.17996-36.594749-30.747116-46.136226-34.813086-38.153777-28.789757-47.894974-32.350793-39.608228-26.753487-49.522445-29.799828-40.954115-24.643888-51.014179-27.167184-42.187751-22.466741-52.366086-24.4

21、60076-43.305752-20.228015-53.574462-21.685925-44.305056-17.933846-54.635994-18.852335-45.182922-15.59052-55.547772-15.967071-45.936945-13.204463-56.307298-13.038043-46.565058-10.782213-56.912489-10.073279-47.06554-8.330409-57.361687-7.080904-47.437018-5.855773-57.653661-4.069122-47.678475-3.365086-57.78761-1.046186-47.789248-0.865176-57.7631671.979618-47.7690341.6371064.9999954.134901-57.2330098.006312-47.3389626.554473-56.68851210.985739-46.9250618.823557-55.91091113.917739-46.36485810.939005-54.87015716.77471-45.

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1