diff options
Diffstat (limited to '3588/CH10/EX10.1/EX10_1.sce')
-rw-r--r-- | 3588/CH10/EX10.1/EX10_1.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/3588/CH10/EX10.1/EX10_1.sce b/3588/CH10/EX10.1/EX10_1.sce new file mode 100644 index 000000000..aa12a0a1d --- /dev/null +++ b/3588/CH10/EX10.1/EX10_1.sce @@ -0,0 +1,21 @@ +//Clearing console +clc +clear + +//Intializing variables +mg = 20 +k = 25 +g = 386.4 + +//Calculating circular frequency +w = sqrt(k*g/mg) + +//Solving for constants in equation of motion +fi = acosd(0/w) +C = (2.3-0.8)/sind(fi) + +//Circular frequency in Hz +f = w/(2*%pi) + +printf('\nResults\n') +printf('\nCircular Frequency =%fHz\n Amplitude =%fin\n Phase Angle =%fdegree',f,C,fi) |