blob: 995f82922e0163b6a3894cb41f71e39567dea3af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clear
//Given
a=0.1 //m
A=800
e=8.854*10**-12
//Calculation
b=A*a**2.5*(sqrt(2)-1)
q=e*b
//Result
printf("\n (a) The flux through the cube is %0.2f Nm**2C-1",b)
printf("\n The charge within the cube is %0.2f *10**-12 C",q*10**12)
|