summaryrefslogtreecommitdiff
path: root/3137/CH17/EX17.21/Ex17_21.sce
blob: 54ec019877fd73a4f360b02026f7437b4e74079f (plain)
1
2
3
4
5
6
7
8
9
10
//Initilization of variables
vo=9 //m/s
theta=30 //degrees
g=9.8 //m/s^2
//Calculations
x=((7/10)*vo^2)/(g*sind(theta)) //m
//Result
clc
printf('The ball will roll %f m up the plane',x)
//The textbook wrongly mentions the unit of displacement as in