diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3682/CH4/EX4.9 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3682/CH4/EX4.9')
-rw-r--r-- | 3682/CH4/EX4.9/Ex4_9.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3682/CH4/EX4.9/Ex4_9.sce b/3682/CH4/EX4.9/Ex4_9.sce new file mode 100644 index 000000000..f7d26fe77 --- /dev/null +++ b/3682/CH4/EX4.9/Ex4_9.sce @@ -0,0 +1,19 @@ +// Exa 4.9
+
+clc;
+clear;
+
+// Given data
+
+// To generate a sinusoidal signal 10 sin 3t.
+
+// Solution
+
+printf('Let us first obtain a differential equation whose solution is 10 sin 3t.\n');
+printf(' Let x(t) = 10 sin 3t ------eq(1)\n');
+printf(' The first derivative of this i.e. dx(t) = 30 cos 3t ----eq(2)\n');
+printf(' The second derivative of this i.e. d2x(t) = -90 sin 3t = -9*x(t) \n');
+printf('\n Therefore, required differential equation is d2x(t)+9*x(t)=0. \n\n');
+
+printf(' The initial condition is obtained by putting t=0 in eq(1&2), \n x(0)=0 and dx(0) = 30. \n' );
+printf(' Assuming that d2x(t) is available, x(t) can be obtained by integrating x twice.\n The complete setup is shown in Fig. 4.31-Simulation of 10 sin 3t.\n');
|