blob: 6c49ca1995a018d8e5e24ddc8e74c9f2a72f0937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Example number 10.8, Page number 226
clc;clear;
close;
//Variable declaration
e=1.6*10**-19; //charge(c)
h=6.626*10**-36; //plank constant
V=8.5*10**-6; //voltage(V)
//Calculation
new=2*e*V/h; //frequency(Hz)
//Result
printf("frequency is %.3e Hz",new)
|