From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 24/CH29/EX29.4/Example29_4.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 24/CH29/EX29.4/Example29_4.sce (limited to '24/CH29/EX29.4/Example29_4.sce') diff --git a/24/CH29/EX29.4/Example29_4.sce b/24/CH29/EX29.4/Example29_4.sce new file mode 100755 index 000000000..3bea29a04 --- /dev/null +++ b/24/CH29/EX29.4/Example29_4.sce @@ -0,0 +1,17 @@ +exec('degree_rad.sci', -1) + +//Given that +e = 1.6*10^-19 +K = 22.5*e //in J +B = 4.55*10^-4 //in T +theta = dtor(65.5) +m = 9.11*10^-31 //in kg + +//Sample Problem 29-4 +printf("**Sample Problem 29-4**\n") +q = e +v = sqrt(2*K/m) +r = m*v*sin(theta)/(q*B) +T = 2*%pi*r/(v*sin(theta)) +p = v*cos(theta)*T +printf("The pitch of the electron is equal to %fm", p) \ No newline at end of file -- cgit