diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2297/CH2/EX2.13/Ex2_13.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2297/CH2/EX2.13/Ex2_13.sce')
-rwxr-xr-x | 2297/CH2/EX2.13/Ex2_13.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/2297/CH2/EX2.13/Ex2_13.sce b/2297/CH2/EX2.13/Ex2_13.sce new file mode 100755 index 000000000..2c16a6b17 --- /dev/null +++ b/2297/CH2/EX2.13/Ex2_13.sce @@ -0,0 +1,12 @@ +// Example 2.13 :reading +clc; +close; +format('v',8) +clear; +// given : +v1=230;//voltage in volts +v2=100;//voltage in volts +v2=sqrt(v1^2-v2^2);//voltage in volts +v3=300;//voltage in volts +disp(v2,"reading V2 is,(V)") +disp("reading V4 is "+string(v3+v2)+" V or "+string(v3-v2)+" V") |