单自由度机械的系统动力学.pptVIP

  • 7
  • 0
  • 约5.32千字
  • 约 83页
  • 2019-11-20 发布于广东
  • 举报
* 老子曰:胜人者有力,自胜者强。 * * 例2-6的C/C++程序实现 // dynamics.cpp : Defines the entry point for the console application. #include stdafx.h #include math.h #include stdio.h #define pi 3.1416 #define h 10*pi/180 double l1,l2,ls2,e,J01,J2,m2,m3; double phi1,Je,dJe,omega1,omega10,Vc; int i; * void main() { //void Euler(double phi1); void Runge_Kutta(double phi1); l1=0.2;l2=0.5;ls2=0.2;e=0.05;J01=3;J2=0.15; m2=5;m3=10; omega10=62; for(i=0;i37;i++) { phi1=i*h; //Euler(double phi1); Runge_Kutta(phi1); printf(%3.0f %8.3f\n,phi1*180/pi,omega10); omega10=omega1; } } 《易》曰:天道亏盈而益谦,地道变盈而流谦

文档评论(0)

1亿VIP精品文档

相关文档