blob: 5984cab5e9d96840ad44a5f5d24dfb0ead1f4351 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Example 15_7
clc();
clear;
//To find out how much charge occurs
e=3*10^6 //Units in N/C
r=0.050 //Units in meters
k=9*10^9 //Units in N meter^2/C^2
q=(e*r^2)/k //Units in C
printf("The charge Occurred is q=%.9f C",q)
|