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 --- 854/CH1/EX1.3/Example1_3.sce | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 854/CH1/EX1.3/Example1_3.sce (limited to '854/CH1/EX1.3') diff --git a/854/CH1/EX1.3/Example1_3.sce b/854/CH1/EX1.3/Example1_3.sce new file mode 100755 index 000000000..46a410b19 --- /dev/null +++ b/854/CH1/EX1.3/Example1_3.sce @@ -0,0 +1,34 @@ +//clear// +//Caption:Transform the vector of Rectangular coordinates into cylindrical coordinates +//Example1.3 +//page 18 +clc; +y = sym('y'); +x = sym('x'); +z = sym('z'); +ax = sym('ax'); +ay = sym('ay'); +az = sym('az'); +ar = sym('ar'); +aphi = sym('aphi'); +phi = sym('phi'); +B = y*ax-x*ay+z*az; +disp(B,'Given vector in cartesian co-ordiante system B=') +Br = B*ar; +Bphi = B*aphi; +Bz = B*az; +disp('Components of cylindrical vector B') +disp(Br,'Br=') +disp(Bphi,'Bphi=') +disp(Bz,'Bz=') +//Result +//Given vector in cartesian co-ordiante system B= +// az*z+ax*y-ay*x +// Components of cylindrical vector B +// Br= +// ar*(az*z+ax*y-ay*x) +// Bphi= +// aphi*(az*z+ax*y-ay*x) +// Bz= +// az*(az*z+ax*y-ay*x) +// -- cgit