blob: 2a3f1d2e2bbe447b419f7c5a9cf9c54973cc12b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
// Given That
A = 200 // magnitude of electric field in V/m^2
epsilon_0 = 8.85e-12 // permittivity of free space
a = 20 // radius of sphere in cm
//Sample Problem 10Page No. 84
printf("\n # Problem 10 # \n ")
q = 4*%pi * epsilon_0*A*(a*1e-2)^3 //calculation of Charge contained in sphere
printf("Charge contained in sphere is %e C. \n", q)
|