diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /1964/CH4/EX4.9 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '1964/CH4/EX4.9')
-rwxr-xr-x | 1964/CH4/EX4.9/ex4_9.sce | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/1964/CH4/EX4.9/ex4_9.sce b/1964/CH4/EX4.9/ex4_9.sce index efc93d898..bac1c9cc0 100755 --- a/1964/CH4/EX4.9/ex4_9.sce +++ b/1964/CH4/EX4.9/ex4_9.sce @@ -1,19 +1,19 @@ -//Chapter-4, Example 4.9, Page 137
-//=============================================================================
-clc
-clear
-//CALCULATIONS
-//for subdivision a
-funcprot(0);
-max=40;
-rms=max/sqrt(2);
-mprintf("max and rms values are %d units and %2.2f units respectively\n",max,rms);
-//for subdivision b
-//max=A+B
-//rms=(A+B)/sqrt(2)
-//for subdivision c
-max1=sqrt(((10)^2)+((17.3)^2));
-rms1=max1/sqrt(2);
-mprintf("max and rms values are %2.2f units and %2.2f units respectively",max1,rms1);
-//note:in textbook for sub div (c) square root has not taken for maximum value computed
-//=================================END OF PROGRAM==============================
+//Chapter-4, Example 4.9, Page 137 +//============================================================================= +clc +clear +//CALCULATIONS +//for subdivision a +funcprot(0); +Max=40; +rms=max/sqrt(2); +mprintf("max and rms values are %d units and %2.2f units respectively\n",Max,rms); +//for subdivision b +//max=A+B +//rms=(A+B)/sqrt(2) +//for subdivision c +max1=sqrt(((10)^2)+((17.3)^2)); +rms1=Max1/sqrt(2); +mprintf("max and rms values are %2.2f units and %2.2f units respectively",max1,rms1); +//note:in textbook for sub div (c) square root has not taken for maximum value computed +//=================================END OF PROGRAM==============================
\ No newline at end of file |