blob: 1eae37876e230c45dbb906ff5640d06f58580d01 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
clear
//input
t1=34
u=0//starts from rest
x=3//distance to move
//calculation
t=(3*3/(10*sind(t1)))^0.5//from law of conservation of energy
//output
printf("the time taken is %3.3f s",t)
|