From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3682/CH4/EX4.9/Ex4_9.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 3682/CH4/EX4.9/Ex4_9.sce (limited to '3682/CH4/EX4.9') 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'); -- cgit