summaryrefslogtreecommitdiff
path: root/3648/CH16/EX16.1/Ex16_1.sce
blob: bf1cfa810daab48168a459d61d325d388a720138 (plain)
1
2
3
4
5
6
7
8
//Example 16_1
clc();
clear;
//To find the magnitude of the electric field
v=12      //Units in V
d=5*10^-3      //units in Meters
e=v/d         //Units in V/meter
printf("The magnitude of electric field is E=%d V/meters",e)