summaryrefslogtreecommitdiff
path: root/3648/CH4/EX4.9/Ex4_9.sce
blob: 619beafb01e58eecad59cf0383ac33e2a2840577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 4_9
clc();
clear;
//To calculate how large a force must push on car to accelerate
m=1200  //units in Kg
g=9.8   //units in meters/sec^2
d1=4   //units in meters
d2=40   //units in meters
a=0.5   //units in meters/sec^2
P=((m*g)*(d1/d2))+(m*a)   //units in Newtons
printf("The force required is P=%d N",P)
//In text book the answer is printed wrong as P=1780 N but the correct answer is P=1776 N