blob: 1276604bca290dc56b5a3c9f97336478f10da1cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Initilization of variables
m=5 //kg
s=12 //m
v=4 //m/s
vo=0 //m/s
g=9.8 //m/s^2
mu=0.25
//Calculations
//Using the kinematic equations of motion
a=(v^2-vo^2)/(2*s) //m/s^2
//Using Newtons Principle
N1=g*m //N
P=m*a+mu*N1 //N
//Result
clc
printf('The value of P is %fN',P)
|