blob: 4eb4e5a07dcf6b3e468dbfb17061316e24799341 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
clear
//INPUT DATA
f=55 //frequency
a=7*10^-3 //amplitude
//calculation
a=(-2*%pi*f)^2*a
//output
printf("the acceleration of the body when it is at its maximum displacement from its zero position is -%3.1f ms^-2",a)
|