This code is written for the accleration of a reciprocating
     %This code is written for the accleration of a reciprocating engine piston n-input ( \"Enter your n value: \'); theta-input (\'Enter your theta value: ; w-input (\'Enter your w value: r=1/n %where r is crank arm length, and 1 is lenth of connecting rod. a-r*w 2((cos (theta)(n 2*cos (2*theta)+sin 4*(theta)/ (n 2-sin 2* (theta) (3/2))  
  
  Solution
you have to terminate line4 and line 6 with (;) and line 5 have some invalid expression.
correct code-
n=(\'enter your n value : \');
 theta=(\'enter your theta value : \');
 w=(\'enter your w value of : \');
 r=1/n;
 a=r*w^2*((cos(theta)+((n^2*cos(2*theta)+sin^4*(theta)/(n^2-sin^2*(theta)^(3/2))))));
  k=a/(r*w^2);

