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 --- 3836/CH2/EX2.1/Ex2_1.sce | 13 +++++++++++++ 3836/CH2/EX2.2/Ex2_2.sce | 12 ++++++++++++ 3836/CH2/EX2.3/Ex2_3.sce | 12 ++++++++++++ 3836/CH2/EX2.4/Ex2_4.sce | 12 ++++++++++++ 3836/CH2/EX2.5/Ex2_5.sce | 14 ++++++++++++++ 3836/CH2/EX2.6/Ex2_6.sce | 13 +++++++++++++ 3836/CH2/EX2.7/Ex2_7.sce | 12 ++++++++++++ 3836/CH2/EX2.8/Ex2_8.sce | 13 +++++++++++++ 3836/CH2/EX2.9/Ex2_9.sce | 12 ++++++++++++ 9 files changed, 113 insertions(+) create mode 100644 3836/CH2/EX2.1/Ex2_1.sce create mode 100644 3836/CH2/EX2.2/Ex2_2.sce create mode 100644 3836/CH2/EX2.3/Ex2_3.sce create mode 100644 3836/CH2/EX2.4/Ex2_4.sce create mode 100644 3836/CH2/EX2.5/Ex2_5.sce create mode 100644 3836/CH2/EX2.6/Ex2_6.sce create mode 100644 3836/CH2/EX2.7/Ex2_7.sce create mode 100644 3836/CH2/EX2.8/Ex2_8.sce create mode 100644 3836/CH2/EX2.9/Ex2_9.sce (limited to '3836/CH2') diff --git a/3836/CH2/EX2.1/Ex2_1.sce b/3836/CH2/EX2.1/Ex2_1.sce new file mode 100644 index 000000000..d1c5cfc73 --- /dev/null +++ b/3836/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,13 @@ +clear +//Initialisation +v1=15.8 //voltage across r1 +v2=12.3 //voltage across r2 +r2=220 //resistance R2 in ohm + +//Calculation +v=v1-v2 //voltage difference across the resistor +i=v/r2 //current in ampere + +//Result +printf("\n Current, I = %.1f mA",i*1000) + diff --git a/3836/CH2/EX2.2/Ex2_2.sce b/3836/CH2/EX2.2/Ex2_2.sce new file mode 100644 index 000000000..15fbafb42 --- /dev/null +++ b/3836/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,12 @@ +clear +//Initialisation +i1=10 //current in amp +i3=3 //current in amp + + +//Calculation +i2=i1-i3 //current in amp + +//Result +printf("\n I2 = %d A",i2) + diff --git a/3836/CH2/EX2.3/Ex2_3.sce b/3836/CH2/EX2.3/Ex2_3.sce new file mode 100644 index 000000000..bc823b216 --- /dev/null +++ b/3836/CH2/EX2.3/Ex2_3.sce @@ -0,0 +1,12 @@ +clear +//Initialisation +E=12 //EMF in volt +v2=7 //volt + + +//Calculation +v1=E-v2 //volt + +//Result +printf("\n V1 = %d V",v1) + diff --git a/3836/CH2/EX2.4/Ex2_4.sce b/3836/CH2/EX2.4/Ex2_4.sce new file mode 100644 index 000000000..46d4a95e3 --- /dev/null +++ b/3836/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,12 @@ +clear +//Initialisation +i=3 //current in amp +r=50 //resistance in ohm + + +//Calculation +p=(i**2)*r //power in watt + +//Result +printf("\n P = %d W",p) + diff --git a/3836/CH2/EX2.5/Ex2_5.sce b/3836/CH2/EX2.5/Ex2_5.sce new file mode 100644 index 000000000..1720908dc --- /dev/null +++ b/3836/CH2/EX2.5/Ex2_5.sce @@ -0,0 +1,14 @@ +clear +//Initialisation +r1=10 //resistance in ohm +r2=20 //resistance in ohm +r3=15 //resistance in ohm +r4=25 //resistance in ohm + + +//Calculation +r=r1+r2+r3+r4 //series resistance in ohm + +//Result +printf("\n R = %d ohm",r) + diff --git a/3836/CH2/EX2.6/Ex2_6.sce b/3836/CH2/EX2.6/Ex2_6.sce new file mode 100644 index 000000000..7d7d5033d --- /dev/null +++ b/3836/CH2/EX2.6/Ex2_6.sce @@ -0,0 +1,13 @@ +clear +//Initialisation +r1=10 //resistance in ohm +r2=20 //resistance in ohm + + + +//Calculation +r=(r1*r2)*(r1+r2)**-1 //parallel resistance in ohm + +//Result +printf("\n R = %.2f ohm",r) + diff --git a/3836/CH2/EX2.7/Ex2_7.sce b/3836/CH2/EX2.7/Ex2_7.sce new file mode 100644 index 000000000..30573a8b9 --- /dev/null +++ b/3836/CH2/EX2.7/Ex2_7.sce @@ -0,0 +1,12 @@ +clear +//Initialisation +r1=200 //resistance in ohm +r2=300 //resistance in ohm + + +//Calculation +v=(10*r2)/(r1+r2) //resistance in ohm + +//Result +printf("\n V = %d V",v) + diff --git a/3836/CH2/EX2.8/Ex2_8.sce b/3836/CH2/EX2.8/Ex2_8.sce new file mode 100644 index 000000000..24da405b0 --- /dev/null +++ b/3836/CH2/EX2.8/Ex2_8.sce @@ -0,0 +1,13 @@ +clear +//Initialisation +r1=1*10**3 //resistance in ohm +r2=500 //resistance in ohm +v1=15 //voltage +v2=3 //voltage + +//Calculation +v=v2+((v1-v2)*((r2)*(r1+r2)**-1)) //resistance in ohm + +//Result +printf("\n V = %d V",v) + diff --git a/3836/CH2/EX2.9/Ex2_9.sce b/3836/CH2/EX2.9/Ex2_9.sce new file mode 100644 index 000000000..1e0fbcb11 --- /dev/null +++ b/3836/CH2/EX2.9/Ex2_9.sce @@ -0,0 +1,12 @@ +clear +//Initialisation +f=50 //frequency in herts + + +//Calculation +t=(1*f**-1) //time period + + +//Result +printf("\n T = %d ms",t*10**3) + -- cgit