summaryrefslogtreecommitdiff
path: root/3648/CH5/EX5.1/Ex5_1.sce
blob: 3d6958cbd228ed1211afa1ba8bf36bf6b6cb57fb (plain)
1
2
3
4
5
6
7
//Example 5_1
clc();
clear;
//To calculate the work done
Fs=8   //units in meters
W=Fs*round(cos(%pi/2))   //units in Joules
printf("The work done is W=%d Joules",W)