summaryrefslogtreecommitdiff
path: root/3754/CH6/EX6.1/6_1.sce
blob: 129018ad1ac0f3217df3281aa653840417e1defb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear//

//Variables

t = 1.0          //time (in milliseconds)
n = 10.0         //number of cycles

//Calculation

T = t/n          //Time period (in milliseconds)

//Result

printf("\n Time period by one cycle is  %0.3f  ms.",T)