diff options
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');
|