blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50 values | src_encoding stringclasses 23 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 29 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cae3dde338dce2ee2b01cd43dbdf6d4720a44fe1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /626/CH8/EX8.3/8_3.sce | 506b5d64de8dca5e0ce8522faba08af63d59cfc6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 407 | sce | 8_3.sce | clear;
clc;
close;
disp("Example 8.3")
M1=1.2 //Mach no at impeller tip
gm=1.4 //gamma
p31=(1+(gm-1)*M1^2)^(gm/(gm-1)) //p=p3/p1
p32=p31^(1/2) //p31=p3/p2
Cp=(2/(gm*M1^2))*(2.2-1) //static pressure rise in radial diffuser
disp(p31,"(a)The static pressure the rotor and diffuser p3/p1 :")
disp(p32,"The static pressure ratio across the diffuser p3/p2")
disp(Cp,"Diffuser static pressure rise :")
|
9dd5f57ee8f2f4c671842ac0a840647486bd46e1 | 717ddeb7e700373742c617a95e25a2376565112c | /2474/CH1/EX1.9/Ch01Ex09.sce | 220129e74079f228315f689d852c50f73d1effa6 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 495 | sce | Ch01Ex09.sce | // Scilab code Ex1.9: Pg.34 (2008)
clc; clear;
// For simplicity assume velocity of light be unity
c = 1; // Velocity of light, m/s
L_p = 1; // Proper length of stick, m
L = 0.914; // Measured length of stick in S', m
// From length contraction, L = L_p/gama, solving for gama
gama = L_p/L; // Relativistic factor = 1/sqrt(1-(v/c)^2)
v = sqrt(1-(L)^2)*c; // Speed of the stick, m/s
printf("\nSpeed of the stick = %5.3fc", v);
// Result
// Speed of the stick = 0.406c |
476b9b84f29848692a9c6d9f3d0bad765e2fcb6f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH10/EX10.9/Ex10_9.sce | 3358fd04d3b4a487db651a542b5d746306f09545 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 833 | sce | Ex10_9.sce | // Example 10_9
clc;funcprot(0);
// Given data
m=18.0;// kg/s
T_b=350.0;// °C
W=20*10^3;// kW
// Station 1
T_1=500.0;// °C
p_1=3.00;// MPa
h_1=3456.5;// kJ/kg
s_1=7.2346;// kJ/kg.K
// Station 2
p_2=0.0100;// MPa
x_2=0.960;// The quality of steam
h_2f=191.8;// kJ/kg
h_2fg=2392.8;// kJ/kg
h_2=h_2f+(x_2*h_2fg);// kJ/kg
s_2f=0.6491;// kJ/kg.K
s_2fg=7.5019;// kJ/kg.K
s_2=s_2f+(x_2*s_2fg);// kJ/kg.K
// Ground state
x_0=0.00;// The quality of steam
T_0=20.0;// °C
h_0=83.9;// kJ/kg
s_0=0.2965;// kJ/kg.K
// Calculation
a_f1=(h_1-h_0)-((T_0+273.15)*(s_1-s_0));// kJ/kg
a_f2=(h_2-h_0)-((T_0+273.15)*(s_2-s_0));// kJ/kg
Q=(W+(m*(a_f2-a_f1)))/(1-((T_0+273.15)/(T_b+273.15)));// kW
printf("\nThe rate of heat loss from the surface of the turbine,Q=%4.0f kW",Q);
// The answer vary due to round off error
|
6193ea5678ef60c1db38e73e47f4c086b7a57027 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2789/CH3/EX3.5/Ex3_5.sce | 3699f3137d041b173cefcdabaca5a84a41b5f419 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 393 | sce | Ex3_5.sce | clear;
clc;
//page no.89
l = 12;// inches
W = 6;// pounds
w = 0.0624// lb/cuft
l1 = 8;// inches
rho = 0.050;// lb/cuft
Q_12 = W/w ;
Q_8 = W/rho ;
V_12 = Q_12/(0.25*%pi*(l/12)^2);
V_8 = Q_8/(0.25*%pi*(l1/12)^2);
printf('Q_12 = %.1f cfs, Q_8 = %d cfs',Q_12,Q_8);
printf('\n V_12 = %.1f fps, V_8 = %d fps',V_12,V_8);
//there is a minute error in the answer given in textbook
|
4f39586b967dc0970cffc99b700fe6fa5cfbf1b0 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/LIR5.prev.tst | ec74924a25ef03276e2acdeab6f3cb879a916b69 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 12,179 | tst | LIR5.prev.tst | ---- j = 2
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1]]
q = [[0], [0]]
s = [[1], [0]]
[8,9,152,161,2728,2889,48952,51841,878408,930249] / [0,0,0,0,0,0,0,0,0,0,1] =
[0] rest [8,9,152,161,2728,2889,48952,51841,878408,930249]
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1], [8,9,152,161,2728,2889,48952,51841,878408,930249]]
q = [[0], [0], [0]]
s = [[1], [0], [1]]
-----------------------------
---- j = 3
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1], [8,9,152,161,2728,2889,48952,51841,878408,930249]]
q = [[0], [0], [0]]
s = [[1], [0], [1]]
[0,0,0,0,0,0,0,0,0,0,1] / [8,9,152,161,2728,2889,48952,51841,878408,930249] =
[-878408/865363202001,1/930249] rest [7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001]
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1], [8,9,152,161,2728,2889,48952,51841,878408,930249], [7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001]]
q = [[0], [0], [0], [-878408/865363202001,1/930249]]
s = [[1], [0], [1], [878408/865363202001,-1/930249]]
-----------------------------
---- j = 4
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1], [8,9,152,161,2728,2889,48952,51841,878408,930249], [7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001]]
q = [[0], [0], [0], [-878408/865363202001,1/930249]]
s = [[1], [0], [1], [878408/865363202001,-1/930249]]
[8,9,152,161,2728,2889,48952,51841,878408,930249] / [7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001] =
[109973625560761367367120388104/104654444806580617872605,805003253298228249/723375576055] rest [-55815703798422116174616/104654444806580617872605,-62792666883991370552571/104654444806580617872605,-11785240940759236501632/20930888961316123574521,695529498376494270864/20930888961316123574521,-656762653045406368512/20930888961316123574521,38760157804262838624/20930888961316123574521,-36486814058078131584/20930888961316123574521,2153342100236824368/20930888961316123574521]
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1], [8,9,152,161,2728,2889,48952,51841,878408,930249], [7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001], [-55815703798422116174616/104654444806580617872605,-62792666883991370552571/104654444806580617872605,-11785240940759236501632/20930888961316123574521,695529498376494270864/20930888961316123574521,-656762653045406368512/20930888961316123574521,38760157804262838624/20930888961316123574521,-36486814058078131584/20930888961316123574521,2153342100236824368/20930888961316123574521]]
q = [[0], [0], [0], [-878408/865363202001,1/930249], [109973625560761367367120388104/104654444806580617872605,805003253298228249/723375576055]]
s = [[1], [0], [1], [878408/865363202001,-1/930249], [-6976962974802764521827/104654444806580617872605,-13845811232016/104654444806580617872605,865363202001/723375576055]]
-----------------------------
---- j = 5
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1], [8,9,152,161,2728,2889,48952,51841,878408,930249], [7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001], [-55815703798422116174616/104654444806580617872605,-62792666883991370552571/104654444806580617872605,-11785240940759236501632/20930888961316123574521,695529498376494270864/20930888961316123574521,-656762653045406368512/20930888961316123574521,38760157804262838624/20930888961316123574521,-36486814058078131584/20930888961316123574521,2153342100236824368/20930888961316123574521]]
q = [[0], [0], [0], [-878408/865363202001,1/930249], [109973625560761367367120388104/104654444806580617872605,805003253298228249/723375576055]]
s = [[1], [0], [1], [878408/865363202001,-1/930249], [-6976962974802764521827/104654444806580617872605,-13845811232016/104654444806580617872605,865363202001/723375576055]]
[7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001] / [-55815703798422116174616/104654444806580617872605,-62792666883991370552571/104654444806580617872605,-11785240940759236501632/20930888961316123574521,695529498376494270864/20930888961316123574521,-656762653045406368512/20930888961316123574521,38760157804262838624/20930888961316123574521,-36486814058078131584/20930888961316123574521,2153342100236824368/20930888961316123574521] =
[1662485286703645524322258182023636245265/12075214064198796260147581722079686,15140893859735291501678694095694655/1863423014864496635504343160368] rest [512304438217173440609975996/6976962988648575753843,67397462455437917909957620/775218109849841750427,9197890776049718659711082761/111631407818377212061488,0,1046544448065806178726050/258406036616613916809,0,523272224032903089363025/2325654329549525251281]
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1], [8,9,152,161,2728,2889,48952,51841,878408,930249], [7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001], [-55815703798422116174616/104654444806580617872605,-62792666883991370552571/104654444806580617872605,-11785240940759236501632/20930888961316123574521,695529498376494270864/20930888961316123574521,-656762653045406368512/20930888961316123574521,38760157804262838624/20930888961316123574521,-36486814058078131584/20930888961316123574521,2153342100236824368/20930888961316123574521], [512304438217173440609975996/6976962988648575753843,67397462455437917909957620/775218109849841750427,9197890776049718659711082761/111631407818377212061488,0,1046544448065806178726050/258406036616613916809,0,523272224032903089363025/2325654329549525251281]]
q = [[0], [0], [0], [-878408/865363202001,1/930249], [109973625560761367367120388104/104654444806580617872605,805003253298228249/723375576055], [1662485286703645524322258182023636245265/12075214064198796260147581722079686,15140893859735291501678694095694655/1863423014864496635504343160368]]
s = [[1], [0], [1], [878408/865363202001,-1/930249], [-6976962974802764521827/104654444806580617872605,-13845811232016/104654444806580617872605,865363202001/723375576055], [128076109554293360152493999/13953925977297151507686,2239605118860825222473747/4134496585865822668944,-2298232538841471684605980321/13953925977297151507686,-20930888961316123574521/2153342100236824368]]
-----------------------------
---- j = 6
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1], [8,9,152,161,2728,2889,48952,51841,878408,930249], [7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001], [-55815703798422116174616/104654444806580617872605,-62792666883991370552571/104654444806580617872605,-11785240940759236501632/20930888961316123574521,695529498376494270864/20930888961316123574521,-656762653045406368512/20930888961316123574521,38760157804262838624/20930888961316123574521,-36486814058078131584/20930888961316123574521,2153342100236824368/20930888961316123574521], [512304438217173440609975996/6976962988648575753843,67397462455437917909957620/775218109849841750427,9197890776049718659711082761/111631407818377212061488,0,1046544448065806178726050/258406036616613916809,0,523272224032903089363025/2325654329549525251281]]
q = [[0], [0], [0], [-878408/865363202001,1/930249], [109973625560761367367120388104/104654444806580617872605,805003253298228249/723375576055], [1662485286703645524322258182023636245265/12075214064198796260147581722079686,15140893859735291501678694095694655/1863423014864496635504343160368]]
s = [[1], [0], [1], [878408/865363202001,-1/930249], [-6976962974802764521827/104654444806580617872605,-13845811232016/104654444806580617872605,865363202001/723375576055], [128076109554293360152493999/13953925977297151507686,2239605118860825222473747/4134496585865822668944,-2298232538841471684605980321/13953925977297151507686,-20930888961316123574521/2153342100236824368]]
[-55815703798422116174616/104654444806580617872605,-62792666883991370552571/104654444806580617872605,-11785240940759236501632/20930888961316123574521,695529498376494270864/20930888961316123574521,-656762653045406368512/20930888961316123574521,38760157804262838624/20930888961316123574521,-36486814058078131584/20930888961316123574521,2153342100236824368/20930888961316123574521] / [512304438217173440609975996/6976962988648575753843,67397462455437917909957620/775218109849841750427,9197890776049718659711082761/111631407818377212061488,0,1046544448065806178726050/258406036616613916809,0,523272224032903089363025/2325654329549525251281] =
[-84855717085637889802269735722628582559104/10952552817773628859840171340993248356009486025,5007929378417038375378486272434664015408/10952552817773628859840171340993248356009486025] rest [18605234636396202010248/523272224032903089363025,20930888965945727261529/523272224032903089363025,18605234636396202010248/523272224032903089363025,-2325654329549525251281/523272224032903089363025]
f = [[8,9,152,161,2728,2889,48952,51841,878408,930249], [0,0,0,0,0,0,0,0,0,0,1], [8,9,152,161,2728,2889,48952,51841,878408,930249], [7027264/865363202001,51520/96151466889,125145775/865363202001,25840/865363202001,2246526935/865363202001,160/96151466889,40312339055/865363202001,80/865363202001,723375576055/865363202001], [-55815703798422116174616/104654444806580617872605,-62792666883991370552571/104654444806580617872605,-11785240940759236501632/20930888961316123574521,695529498376494270864/20930888961316123574521,-656762653045406368512/20930888961316123574521,38760157804262838624/20930888961316123574521,-36486814058078131584/20930888961316123574521,2153342100236824368/20930888961316123574521], [512304438217173440609975996/6976962988648575753843,67397462455437917909957620/775218109849841750427,9197890776049718659711082761/111631407818377212061488,0,1046544448065806178726050/258406036616613916809,0,523272224032903089363025/2325654329549525251281], [18605234636396202010248/523272224032903089363025,20930888965945727261529/523272224032903089363025,18605234636396202010248/523272224032903089363025,-2325654329549525251281/523272224032903089363025]]
q = [[0], [0], [0], [-878408/865363202001,1/930249], [109973625560761367367120388104/104654444806580617872605,805003253298228249/723375576055], [1662485286703645524322258182023636245265/12075214064198796260147581722079686,15140893859735291501678694095694655/1863423014864496635504343160368], [-84855717085637889802269735722628582559104/10952552817773628859840171340993248356009486025,5007929378417038375378486272434664015408/10952552817773628859840171340993248356009486025]]
s = [[1], [0], [1], [878408/865363202001,-1/930249], [-6976962974802764521827/104654444806580617872605,-13845811232016/104654444806580617872605,865363202001/723375576055], [128076109554293360152493999/13953925977297151507686,2239605118860825222473747/4134496585865822668944,-2298232538841471684605980321/13953925977297151507686,-20930888961316123574521/2153342100236824368], [2325654329549525251281/523272224032903089363025,0,-41861777931891454523058/523272224032903089363025,0,2325654329549525251281/523272224032903089363025]]
-----------------------------
found: [1,0,-18,0,1]
|
889f3624f665968228f3d662e2223852180f0173 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH6/EX6.8/Exa_6_8.sce | 7656f86faa1e9d01ee516f381867bee863c0cee2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 372 | sce | Exa_6_8.sce | //Exa 6.8
clc;
clear;
close;
format('v',8);
//Given Data :
m=10;//Kg
p=10;//bar
x=0.9;
t1=20;//degree C
hf=762.6;//KJ/Kg
hfg=2013.6;//KJ/Kg
H=m*(hf+x*hfg);//KJ;
disp(H,"Enthalpy of wet steam in KJ : ");
hf1=83.9;//KJ/Kg(at 20 degree C)
Hf1=m*hf1;//KJ
HeatAdded=H-Hf1;//KJ
disp(HeatAdded,"Heat added in KJ : ");
//Steam table is used to get some data.
|
d730c5a96c35baa2a355b9bfe4393d8041a47a72 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1538/CH2/EX2.4/Ex2_4.sce | 09a49c9ab64974b4be4728726a89c7e1bdf0c503 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 458 | sce | Ex2_4.sce | //example-2.4
//page no-32
//given
//mass of electron
m=9.11*10^(-31) //kg
//charge on an electron
e=1.6*10^(-19) //C
//plank's constant
h=6.62*10^(-34)
E0=8.85*10^(-12)
//NO OF ELECTRONS SHELLS IN HYDROZEN ATOm
n=1
//atomic number of hydrogen
Z=1
//ionization potential energy of hydrogen atom is given by
E=m*Z^2*e^4/(8*(E0)^2*h^2*n^2) //J
//energy in eV
EV=E/e //eV
printf ("the ionization potential for hydrogen atom is %f V",EV)
|
a83d4b51ff6a137fed6845687603bcd84223d637 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1118/CH9/EX9.1/eg9_1.sce | c5686ac72f7803c8819a6427f9e41f15ab17d953 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 753 | sce | eg9_1.sce | clear;
//clc();
//a).unity power factor
s=200;
vr=2500;
r=1.4;
x=0.8;
i=s*1000/vr;
z=r+(%i)*x;
vs=vr+z*i;
qs=atand(imag(vs)/real(vs));
pf=cosd(qs);
printf("the power factor of the sending end is:%.4f\n ",pf);
//b).load power factor =0.8
pfl=acosd(0.8);
vs=vr+z*i*(cosd(-pfl)+(%i)*sind(-pfl));
qs=atand(imag(vs)/real(vs));
pf1=qs-(-pfl); //negative sign is due to the loadis lagging
pf=cosd(pf1);
printf(" the power factor of the sending end is:%.3f\n",pf);
//c).load factor is 0.8 leading
pfl=acosd(0.8);
vs=vr+z*i*(cosd(pfl)+(%i)*sind(pfl));
qs=atand(imag(vs)/real(vs));
pf1=qs-(pfl); //negative sign is due to the loadis lagging
pf=cosd(pf1);
printf(" the power factor of the sending end is:%.3f\n",pf);
|
860062e9cfdf3d7deac7bae8cefee63c48a37547 | 0812f3bb6f3cc038b570df68ccee4275da04b11f | /models/complexity_1000/Applied_Thermodynamics_and_Engineering/CH4/EX4.8/4_8.sce | 860d3844460057064951283112a50b051827e442 | [] | no_license | apelttom/20-semester_PhD_thesis | edc0b55580bae9d364599932cd73cf32509f4b7a | ff28b115fcf5e121525e08021fa0c02b54a8e143 | refs/heads/master | 2018-12-26T22:03:38.510422 | 2018-12-14T20:04:11 | 2018-12-14T20:04:11 | 106,552,276 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 209 | sce | 4_8.sce | clc;
p1=6.3;//bar
p2=1.05;//bar
n=1.3;
T1=823;//K
T2=T1/([p1/p2]^([n-1]/n))
R=0.287;
sA_s1=R*log(p1/p2);//sA_s1=sA-s1
cp=1.005;
sA_s2=cp*log(T1/T2);
disp("increase in entropy is:");
disp("kJ/kg",sA_s1-sA_s2)
|
f17b88fd14db25233d636d5f0a047a36eacb88cc | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH4/EX4.1/exa_4_1.sce | 2748c44c789f023bbfb98b6c1bea19931e732985 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 521 | sce | exa_4_1.sce | // Example 4.1
clc;
clear;
close;
// Given data
Q= 1000;// in kJ
T1= 1000;// in K
T2= 400;// in K
delta_Qsource= -Q/T1;// in kJ/K
delta_Qsystem= Q/T2;// in kJ/K
delta_Qnet=delta_Qsystem+delta_Qsource;// in kJ/K
disp(delta_Qnet,"The entropy production accompanying the heat transfer in kJ/K is : ")
T0= 300;// in K
Q1= Q-T0*abs(delta_Qsource);// in kJ
Q2= Q-T0*abs(delta_Qsystem);// in kJ
LossOfEnergy= Q1-Q2;// in kJ
disp(LossOfEnergy,"The decrease in available energy after heat transfer in kJ is : ")
|
6d0f9f099b4cc1820206e3e1ed4f257f4d1a7a95 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1299/CH15/EX15.49/example15_49.sce | f855833fdbd389c5006be4b9470aaee06d9d3390 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 235 | sce | example15_49.sce | //Example 15.49
// Plotting root loci of the transfer function k/s*(s+4)*(s^2+4*s+20)
clear; clc;
xdel(winsid());
s=%s;
num=(1);
den=s*(s+3)*(s^2+2*s+2);
G=syslin('c',num/den);
clf;
evans(G);
mtlb_axis([-5 5 -5 5]);
|
3553c5c4eb59b9ca0acc741208ee5c09dbe10f66 | 13b0f479f56e4c3f226e08a77671d750c2a59e47 | /qr-decomp/decomp_modified_gram_schmidt.sce | b6d218eafd1428f7c062380a0c5f2f779bc05fd5 | [
"MIT"
] | permissive | lsDantas/Numerical-Linear-Algebra | cd73df6761e9dcac5bfe8f51317c907672d41b47 | daeec474c6647ba8578e200814565e987711d7d7 | refs/heads/master | 2022-11-19T17:46:53.534130 | 2020-07-21T16:20:11 | 2020-07-21T16:20:11 | 281,447,235 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,206 | sce | decomp_modified_gram_schmidt.sce | ///////////////////////////////////////////////////////////
// Modified Gram-Schmidt Process
//
// Description: Orthonormalizes a set of vectors
// corresponding to the columns of a matrix A.
// Yields QR decomposition of A when applied to
// full column rank matrix. Modified implementation
// for greater numerical stability.
///////////////////////////////////////////////////////////
// Input:
// Q: a m x n full column rank matrix
///////////////////////////////////////////////////////////
// Output:
// Q: an orthogonal matrix
// R: an upper triangular matrix
///////////////////////////////////////////////////////////
function [Q,R] = decomp_modified_gram_schmidt(Q)
// Determine matrix dimensions
[m n]=size(Q);
// Initialize R
R = zeros(m,m);
// Find Orthonormal Vectors
for i=1:n
// Identify vector projections
for j=1:(i-1)
// Fill i-th column of R
R(j,i) = Q(:,j)'*Q(:,j);
// Subtract projection from vector
Q(:,i) = Q(:,i) - R(j,i)*Q(:,j);
end
// Find vector norm
R(i,i) = norm(Q(:,i));
// Update Q
Q(:,i) = Q(:,i)/R(i,i);
end
endfunction |
a30339a27c3abac771e3bbce45674c5a5843b465 | e6d5f1d801a3fe887b5dc04b8cc0a9eabc1fd432 | /Semana_0/verificapar.sce | a95d2ff67180ece4b7970e1fd219bfadec2e1a25 | [] | no_license | lordjuacs/MateIII | 70def332063e56eb10fb47678a7e6130dc0dca63 | 164c53b61c9e35e565121f77ba2c578680a3ab56 | refs/heads/master | 2021-05-24T15:56:01.078904 | 2020-07-27T19:57:34 | 2020-07-27T19:57:34 | 253,643,962 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 115 | sce | verificapar.sce | function op = verificapar(n)
if modulo(n,2)==0 then
op = 1
else
op = 0
end
endfunction
|
a502060f05a56282d18bc24f6a51896de59cfbf7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3411/CH7/EX7.2/Ex7_2.sce | 35c08b0ce6a0a2f42be9978bcd632375f99a0a43 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 376 | sce | Ex7_2.sce | //Example 7_2
clc();
clear;
//To find the fraction of initial intensity
alpha=-2.2
l=2 //units in KM
//Case (a) when L=2
It_I0=10^(alpha*l/10)
printf("The fraction of initial intensity left when L=2 It/I0=%.3f\n",It_I0)
//Case (b) when L=6
l=6 //units in KM
It_I0=10^(alpha*l/10)
printf("The fraction of initial intensity left when L=6 It/I0=%.3f\n",It_I0)
|
9522acc16b2048bf68149e5c9f5ff9e187ebdba2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2444/CH7/EX7.6/ex7_6.sce | 08f6b275d2d4d59c2a7eaf7ccc5db879d85c4a40 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 334 | sce | ex7_6.sce | // Exa 7.6
clc;
clear;
close;
format('v',5)
// Given data
L1 = 30;// in mH
L1 = L1 * 10^-3;// in H
L2 = 1*10^-8;// in H
M = 0;// in H
L = L1+L2+(2*M);// in H
C = 100;// in pF
C = C * 10^-12;// in F
f_o = 1/(2*%pi*(sqrt( L*C )));// in Hz
f_o = f_o * 10^-3;// in kHz
disp(f_o,"The frequency of oscillation in kHz is");
|
1a111bf26d0cb6e6c94ec6fb2f480927eb13893b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1733/CH1/EX1.15/1_15.sce | e6aef6d74ea6fe766513651a849fa8ae61c35384 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 278 | sce | 1_15.sce | //1.15
clc;
P=0.3;
Vs=12;
disp('Since load line has a slope of -100V/A, the source resistance for the gate is 100 ohm')
Rs=100;
// since Vs=Vg+Ig*Rs
// on solving Ig=35.5 mA
Ig=35.5*10^-3;
printf("\nGate current=%.4f A",Ig)
Vg=P/Ig;
printf("\nGate voltage=%.2f V",Vg) |
d9082123e8848b899a0a7cbcd419eaee9f056751 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2411/CH2/EX2.32/Ex2_32.sce | 879f66b01e364dab4f6467e2232c29f71947f30d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 420 | sce | Ex2_32.sce | // Scilab Code Ex2.32: Page-93 (2008)
clc; clear;
E = [8 4 3]; // Coefficients of i, j and k in the electric field, N/C
S = [0; 0; 100]; // Coefficients of i, j and k in the area vector, Sq. m
phi_E = E*S; // Electric flux through the surface, N-Sq.m/C
printf("\nThe electric flux through the area in XY plane = %d N-Sq.m/C", phi_E);
// Result
// The electric flux through the area in XY plane = 300 N-Sq.m/C |
a1d6be2733e9a2a8aff40f83fa3e02ab4c147056 | 0845790d81f9fd3b8393b14fc9c2bdde0ffe46cf | /7_FFT/7fft_of_seq.sce | 1d0d30ba37475beab3c4962ffdaccd252e16caae | [] | no_license | NARAYAN1201/Scilab | 1a3fb62895b157f87b0d9e024ecd2f1c000eb6df | 48980c28ab2def9939e7519867da572660c8ac97 | refs/heads/main | 2023-02-26T02:09:05.762483 | 2021-02-01T07:24:54 | 2021-02-01T07:24:54 | 335,216,077 | 0 | 0 | null | 2021-02-02T08:17:23 | 2021-02-02T08:17:23 | null | UTF-8 | Scilab | false | false | 222 | sce | 7fft_of_seq.sce | //FFT of a Sequence
clc ;
clear all;
close ;
x = input("Enter the sequence = ")
X = fft(x)
subplot(2,1,1)
plot(real(X),'r')
xtitle("Real Part")
subplot(2,1,2)
plot(imag(X),'b')
xtitle("Imag Part")
disp("The FFT is = ", X)
|
76a751fcefeebaca4e1bb6ecb003429233dd2340 | da61229fdeb9703e2f3d8a7ff11c4cb8fe3c38bd | /POO-Tema3/tst1_pt.tst | 8ae4035266cea149625131164a4a5873e65a557b | [] | no_license | andreianghel/ACS | 152eb64c14064ff7c88a1afd64ea370445764996 | 837c2ec0265b8d0d9ab4008385fc25cf29e65e98 | refs/heads/master | 2021-05-27T18:25:12.818905 | 2013-03-19T17:12:30 | 2013-03-19T17:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 55 | tst | tst1_pt.tst | a = 3
b = true
c = 4
d = false
e = a + c
f = b * d |
8af4dc8c3ca450652fa76703325b9296df3412a9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1184/CH10/EX10.2/Ex10_2.sce | b4ca426e093cdeae09c8bbb06a4fa87f6c6c9929 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 328 | sce | Ex10_2.sce | //Example 10-2, Page No -380
clear
clc
channels =16
sampling_rate= 3.5*10^3
w_len=6
available_ch =channels-1
bpf =channels*w_len
data_rate = sampling_rate * bpf
printf('Available channels are %d',available_ch)
printf('\n Bits Per Frame =%d',bpf)
printf('\n The serial data rate %.1f Khz',data_rate/10^3)
|
8856bdd1b0b114edefa0ef6c8f5b9d832cc3f211 | 38012281b6334f56780d83d57af821a009c37ebe | /out/20_02_2019/Final_LrFijo_Repeticiones/Madrid_TEST.tst | a100ffdb27ae78a7185c35421394f3a932b1b605 | [] | no_license | uo232368/TripAdvisor | 2140422daa42fbae57b2eeb17d8829ff2378a822 | 74fa0131da52162d2f0bbcf6ceff91caa47ae220 | refs/heads/master | 2020-03-29T09:23:12.984191 | 2019-04-24T09:26:40 | 2019-04-24T09:26:40 | 149,755,513 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,459 | tst | Madrid_TEST.tst | Using TensorFlow backend.
[94mObteniendo datos...[0m
[93m[AVISO] Usuarios: 43628[0m
[93m[AVISO] Restaurantes: 6810[0m
[93m[AVISO] Cargando datos generados previamente...[0m
[94mCreando modelo...[0m
##################################################
MODELV4
##################################################
modelv4d2
##################################################
0/144
1/144
2/144
3/144
4/144
5/144
6/144
7/144
8/144
9/144
10/144
11/144
12/144
13/144
14/144
15/144
16/144
17/144
18/144
19/144
20/144
21/144
22/144
23/144
24/144
25/144
26/144
27/144
28/144
29/144
30/144
31/144
32/144
33/144
34/144
35/144
36/144
37/144
38/144
39/144
40/144
41/144
42/144
43/144
44/144
45/144
46/144
47/144
48/144
49/144
50/144
51/144
52/144
53/144
54/144
55/144
56/144
57/144
58/144
59/144
60/144
61/144
62/144
63/144
64/144
65/144
66/144
67/144
68/144
69/144
70/144
71/144
72/144
73/144
74/144
75/144
76/144
77/144
78/144
79/144
80/144
81/144
82/144
83/144
84/144
85/144
86/144
87/144
88/144
89/144
90/144
91/144
92/144
93/144
94/144
95/144
96/144
97/144
98/144
99/144
100/144
101/144
102/144
103/144
104/144
105/144
106/144
107/144
108/144
109/144
110/144
111/144
112/144
113/144
114/144
115/144
116/144
117/144
118/144
119/144
120/144
121/144
122/144
123/144
124/144
125/144
126/144
127/144
128/144
129/144
130/144
131/144
132/144
133/144
134/144
135/144
136/144
137/144
138/144
139/144
140/144
141/144
142/144
143/144
144 0.0317 27.894 0.2833 0.2261
|
72e76b419567ea20ebfae71e9fb2c39db7ebfdd6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2912/CH5/EX5.1/Ex5_1.sce | 482b5780aebc16ccad304721581f9cc87d4d3928 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 695 | sce | Ex5_1.sce | //chapter 5
//example 5.1
//Find velocity and kinetic energy
//page 102-103
clear;
clc;
//given
lambda=1; //in Angstrom (wavelength)
m=1.67E-27; // in Kg (mass of neutron)
h=6.625E-34; // in J-s (Planck's constant)
e=1.6E-19; // in C (charge of electron)
//calculate
lambda=lambda*1E-10; //since lambda is in Angstrom
// Since lambda=h/(m*v)
// Therefore we have
v=h/(m*lambda); //calculation of velocity
printf('\nThe velocity is \t v=%1.2E m/s',v);
K=m*v^2/2; //calculation of kinetic energy
printf('\nThe kinetic energy is\tK=%1.2E J',K);
K=K/e; //changing unit fro J to eV
printf('\n\t\t\t=%.4f eV',K);
//Note: Due to round off, there is slight variation in the answer
|
1e3c7f33dff10717d5b701b7d53f48024abefa81 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2213/CH8/EX8.3/ex_8_3.sce | 50a902d008540541b8a8c7a6aad348f2934a93c8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 229 | sce | ex_8_3.sce | //Example 8.3: Motor speed and current drawn
clc;
clear;
close;
//given data :
N1=640;// in rpm
I1=15;// in A
I2=sqrt((2)*sqrt(2)*I1^2);
N2=round((2*I1*N1)/I2);
disp(I2,"Current drawn,I2(A) = ")
disp(N2,"Motor speed,N2(rpm) = ")
|
c948baf2e442af0d58b46fe335cc1be16e011f7e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2021/CH12/EX12.5/EX12_5.sce | d6fe9289d1440bcbba76a8b3ebec0a2141325e21 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 504 | sce | EX12_5.sce | //Finding of Friction Factor
//Given
D=0.1;
ks=0.0025;
v=2;
v1=10^-6;
//To Find
//case-1
R=(v*D)/v1;
fa=(1.785*log10(R))-1.424;
a=(fa)^2;
f1=1/a;
//case-2
fb=2*log10((3.71*D)/ks);
b=(fb)^2;
f2=1/b;
//Case-3
fc=-(2*log10((ks/3.71*D)+(5.186/R^(0.89))));
c=(fc)^2;
f3=1/c;
disp(" Friction Factor for");
disp("Smooth Turbulent flow ="+string(f1)+" no units ");
disp("Rough Turbulent flow ="+string(f2)+" no units ");
disp("Smooth and Rough Turbulent flow ="+string(f3)+" no units ");
|
2fd4b40aa959bf5221dfc192a031e92d46848e3d | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH4/EX4.10/Example4_10.sce | 12e854c72678c5eacdfafbc354e4ff63324a2793 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 681 | sce | Example4_10.sce | //To convert velocity m/s from km/h
conv = 5/18
//Given that
v_BA = 52 //in km/hr
v_PA = -78 //in km/hr
//Sample Problem 4-10a
printf("**Sample Problem 4-10a**\n")
//using concept of relative velocity
v_PB = v_PA - v_BA
printf("The velocity of P as measured by Barbara is %d km/hr\n",v_PB)
//Sample Problem 4-10b
printf("\n**Sample Problem 4-10b**\n")
//In frame of Alex
delta_t = 10 //in sec
a_PA = (0 - v_PA)* conv/delta_t
printf("The accleration of P in frame of Alex is %f m/s^2\n", a_PA)
//Sample Problem 4-10c
printf("\n**Sample Problem 4-10c**\n")
a_BA = 0
a_PB = a_PA - a_BA
printf("The acceleration of P as measured by B is %f m/s^2", a_PB) |
43a09d5d889ccd517e40ee738845a84c4a250f81 | 449d555969bfd7befe906877abab098c6e63a0e8 | /887/CH2/EX2.16/2_16.sce | b3e778b1973f4f2b950138437170f945e5e7b08c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 636 | sce | 2_16.sce | clc
//ex2.16
V_s=15; //source voltage
R_1=100;
R_2=50;
//Analysis with an open circuit to find V_t
i_1=V_s/(R_1+R_2); //closed circuit with R_1 and R_2 in series
V_oc=R_2*i_1; //open-circuit voltage across R_2
V_t=V_oc; //thevenin voltage
//Analysis with a short-circuit to find i_sc
i_sc=V_s/R_1; //R_2 is short-circuited
R_t=V_oc/i_sc; //thevenin resistance
printf(" All the values in the textbook are approximated, hence the values in this code differ from those of textbook")
disp(V_t,'Thevenin voltage for given circuit in volts')
disp(R_t,'Thevenin voltage for given circuit in ohms')
|
862807a0f7c172715c77177a89e11f8588d18b7c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1049/CH8/EX8.4/ch8_4.sce | c9f7b9b4678fce36631e6fe4ed6a1ea2bdcda4f4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 237 | sce | ch8_4.sce | clear;
clc;
V_s=230;
V_01=2*V_s/(sqrt(2)*%pi);
R=2;
I_01=V_01/R;
P_d=I_01^2*R; printf("power delivered to load=%.1f W",P_d);
V=V_s/2;
I_s=sqrt(2)*I_01/%pi;
P_s=V*I_s;
printf("\npower delivered by both sources=%.1f W",2*P_s); |
836241b7f32efe526b1c94839b9353582bb6f73b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2510/CH5/EX5.9/Ex5_9.sce | 316e78f4366cbaa1070e09abfbe0595d38111924 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 585 | sce | Ex5_9.sce | //Variable declaration:
qs = 1000 //Volumetric flow rate at standard conditions (scfm)
Ta = 300+460 //Actual absolute temperature in Rankine scale (°R)
Ts = 70+460 //Standard absolute temperature in Rankine scale (°R)
A = 2.0 //Inlet area of stack (ft^2)
//Calculations:
qa = qs*Ta/Ts //Volumetric flow rate at actual conditions (acfm)
v = qa/A/60 //Velocity of gas (ft/s)
//Result:
printf("The velocity of the gas through the stack inlet is : %.0f ft/s",v)
|
d6a2741e906b6305983b3d44c40786404fd77e0c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2078/CH7/EX7.5/Example7_5.sce | b9696e56118a9b0e10e5cf6a6ba35de1d7512207 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 411 | sce | Example7_5.sce | //Exa 7.5
clc;
clear;
close;
format('v',7);
//Given data :
r=2.5/2;//cm
epsilon_r=4;//constant
r1=3/2;//cm
r2=9/2;//cm
V=20;//kV(rms)
//Formula : gmax=q/(2*epsilon*r)
g2maxBYg1max=r/epsilon_r/r1;//unitless
//Formula : V=g1max*r*log(r1/r)+g2max*r1*log(r2/r1)
g1max=V/(r*log(r1/r)+g2maxBYg1max*r1*log(r2/r1));//in kV/cm
disp(g1max,"g1max(kV/cm) = ");
disp("g1max > go, Corona will be present.");
|
ef91cb0da5150c52832688e6dd3ead58a3efc895 | fdc5047b7bf8122bad1e621df236b0481226c36e | /virtualProcessComm_V4/macros/hrtTypeFunc.sci | bbe4c7481484545b7df14c612855d09def46dd19 | [] | no_license | jpbevila/virtualHartSci | aea3c6ba23d054670eb193f441ea7de982b531cc | a3f5be6041d230bd9f0fd67e5d7efa71f41cfca5 | refs/heads/main | 2023-07-26T23:05:28.044194 | 2021-09-09T11:50:59 | 2021-09-09T11:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 513 | sci | hrtTypeFunc.sci | function ret = hrtTypeFunc(trmsData)
if part(trmsData,1:2) == '$\' then
ret = trmsData;
else
trmsData = part(trmsData,2:$);
[start, final, match, _] = regexp(trmsData,'/([a-zA-Z]+(_[a-zA-Z]+)+)/i');
for i=1:size(match,1)
trmsData = part(trmsData,1:(start(i)-1)+23*(i-1))+'vpcBDReadTranslated('''+match(i)+''')'+part(trmsData,final(i)+1+23*(i-1):$);
end
try
ret = evstr(trmsData);
catch
pause;
end
end
endfunction
|
f0fdbbb7702083d94b938836d0d6ae5b05314cd9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH17/EX17.2/17_2.sce | 855aabf7227e27a312085a19188f97638e3629cb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 517 | sce | 17_2.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 17.2
//calculation of the separation between successive bright fringes
//given data
d=0.10*10^-3//separation(in m) between the slits
lambda=600*10^-9//wavelength(in m) of the light used
D=1//separation(in m) between the slits and the screen
//calculation
w=D*lambda/d//separation between successive bright fringes
printf('the separation between successive bright fringes is %3.1e m or %3.1f mm',w,w*10^3)
|
4690c1c4be84bcd0ab80226d9b8b39b113659a49 | 4da581946b1d34d19dde6701f7b0cb7a6b4f04cc | /moea_d_update.sci | 5d17f33b226803659dcbbff626b78c7e8195b375 | [] | no_license | acdcsg66/my_master_research | 3d94069b54aa9edacd79511722c07b8b02d531b3 | f7d36bad83b6284ae50fe8efcbc92180652d3b78 | refs/heads/master | 2016-08-12T08:11:49.121756 | 2016-05-05T05:14:04 | 2016-05-05T05:14:04 | 51,115,104 | 0 | 0 | null | null | null | null | SHIFT_JIS | Scilab | false | false | 4,142 | sci | moea_d_update.sci | function moea_d_update
global objectives individuals generations rooms subproblem_neighbors subproblem_neighbor rooms records subproblem_fitness generation_num sample_num Geno
distance=zeros(individuals,individuals); //多目的空間の個体間距離
// Genoの処理(fitnessが改善しなかった個体を元に戻す)
for individual_num=1:individuals
for room_num=1:rooms
if records(individual_num,1,3) > subproblem_fitness(1,individual_num)
Geno(room_num,1:2,individual_num)=records(individual_num,room_num,1:2);
end
end
end
// recordsの更新
for individual_num=1:individuals
if records(individual_num,1,3) <= subproblem_fitness(1,individual_num) // fitnessが高くなっているならrecordsの座標更新
for room_num=1:rooms
records(individual_num,room_num,1:2)=Geno(room_num,1:2,individual_num);
end
records(individual_num,:,3)=subproblem_fitness(1,individual_num);
end
end
distance=zeros(individuals,individuals);
// 多目的空間の個体どうしの距離を求める
for individual_num=1:individuals
for comparison_num=1:individuals
for objective_num=1:objectives
distance(individual_num,comparison_num)=distance(individual_num,comparison_num)..
+(Objective(individual_num,objective_num,generation_num,sample_num)-Objective(comparison_num,objective_num,generation_num,sample_num))^2;
end
distance(individual_num,comparison_num)=sqrt(distance(individual_num,comparison_num));
end
end
// 近隣個体
subproblem_neighbor(:,:,1)=0;
subproblem_neighbor(:,:,2)=BIG_NUM;
for individual_num=1:individuals
for comparison_num=1:individuals
for neighbor_num=subproblem_neighbors:(-1):1 // 要素: subproblem_neighbors+1は実際の処理時には使われない
if subproblem_neighbor(individual_num,neighbor_num,2) > distance(individual_num,comparison_num) .. // より距離の近い個体を発見したら
& individual_num ~= comparison_num // 比較対象が自分自身のとき除外
subproblem_neighbor(individual_num,neighbor_num+1,1)=subproblem_neighbor(individual_num,neighbor_num,1); // 現在個体から見て比較個体より距離が遠い個体をずらしてから代入
subproblem_neighbor(individual_num,neighbor_num+1,2)=subproblem_neighbor(individual_num,neighbor_num,2);
subproblem_neighbor(individual_num,neighbor_num,1)=comparison_num; //個体番号代入
subproblem_neighbor(individual_num,neighbor_num,2)=distance(individual_num,comparison_num); //距離代入
//elseif subproblem_neighbor(individual_num,neighbor_num,2) == 0 .. //まだ代入されていないならそのまま代入
//& individual_num ~= comparison_num // 比較対象が自分自身のとき除外
// subproblem_neighbor(individual_num,neighbor_num,1)=comparison_num; //個体番号代入
// subproblem_neighbor(individual_num,neighbor_num,2)=distance(individual_num,comparison_num); //距離代入
// pause
end
end
end
end
// 近隣個体のfitnessを代入
for individual_num=1:individuals
for neighbor_num=1:subproblem_neighbors
subproblem_neighbor(individual_num,neighbor_num,3)=subproblem_fitness(1,subproblem_neighbor(individual_num,neighbor_num,1));
end
end
//for individual_num=1:individuals
// for neighbor_num=1:subproblem_neighbors // 要素: subproblem_neighbors+1は実際の処理時には使われない
// if subproblem_neighbor(individual_num,neighbor_num,3) < subproblem_fitness(1,subproblem_neighbor(individual_num,neighbor_num,1))
// //if subproblem_neighbor(individual_num,neighbor_num,3) < records(subproblem_neighbor(individual_num,neighbor_num,1),1,3) // fitnessが高くなったら更新
// //& individual_num ~= subproblem_neighbor(individual_num,neighbor_num,1) // 比較対象が自分自身のとき除外
// subproblem_neighbor(individual_num,neighbor_num,3)=subproblem_fitness(1,subproblem_neighbor(individual_num,neighbor_num,1)); //更新
// //subproblem_neighbor(individual_num,neighbor_num,3)=records(subproblem_neighbor(individual_num,neighbor_num,1),1,3);
// end
// end
//end
endfunction
|
dc5e44521eeab2a16f5ca48b8ae803554b8acd5e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH2/EX2.6/Ex2_6.sce | 5eedf8154ad89d7639ea585c852529ce17365ac5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 345 | sce | Ex2_6.sce | //Example 2_6
clc();
clear;
//To calculate the dispersive power of the granting in the third order spectrum
k=3
e=1/4000 //units in cm
lemda=5000*10^-8 //units in cm
theta=asin((k*lemda)/e)
dt_dl=k/(e*cos(theta))
printf("Disperssive power of the granting in the third order spectrum is %.0f",dt_dl)
|
c56c7f8e0589069d5beb3600e861ea733fc33ecd | 449d555969bfd7befe906877abab098c6e63a0e8 | /557/CH22/EX22.2/2.sce | 2aa1ec0629c99634f31107649d42efaa8e4f321b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 425 | sce | 2.sce | clc; funcprot(0); //Example 22.2
//Initializing the variables
D = 0.1;
t = 15*10^-3;
Q = 8.5/3600;
N = 750/60;
B2 = 25; // Beta 2 ind degrees
g = 9.81;
z = 16;
//Calculations
A = %pi*D*t;
V_f2 = Q/A;
U2 = %pi*N*D;
V_w2 = U2 - V_f2*cotd(B2);
Hth = U2*V_w2/g;
Sf = 1 - %pi*sind(B2)/(z*(1-(V_f2/U2)*cotd(B2)));
H = Sf*Hth;
disp(H, "Part (b) - Head developed (m): ",Hth, "Part (a) - Head developed (m): "); |
d4a4b4afae1e53707f16046c86aa576db9404cd6 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.2_19.tst | 8ce6902b359f985d28a1c9d760f5211e75601555 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,930 | tst | bow.2_19.tst | 2 14:0.08333333333333333 21:1.0 41:0.5 81:0.3333333333333333 110:0.25 141:0.5 269:1.0 289:1.0 343:0.3333333333333333 544:1.0 794:1.0 985:1.0
2 6:1.0 141:0.5 424:1.0
2 6:3.0 9:0.16666666666666666 14:0.25 16:0.017241379310344827 21:1.0 27:0.3333333333333333 50:0.6 52:1.0 81:0.3333333333333333 84:0.16666666666666666 90:1.0 91:1.0 126:0.3333333333333333 268:1.0 286:0.5 289:1.0 357:1.0 390:1.0 673:1.0
2 1:0.0625 14:0.16666666666666666 31:1.0 81:0.6666666666666666 87:1.0 154:0.5 288:1.0 618:1.0 1046:1.0
2 9:0.16666666666666666 23:0.1111111111111111 32:1.0 50:0.2 81:0.3333333333333333 152:0.5 356:1.0 392:1.0 553:1.0 704:1.0
2 4:1.0 9:0.6666666666666666 12:0.10526315789473684 14:0.25 27:0.3333333333333333 41:0.5 103:1.0 106:1.25 114:0.16666666666666666 154:0.5 175:1.0 212:1.0 281:1.0 289:1.0 370:1.0 376:1.0 468:1.0 673:4.0
2 14:0.08333333333333333 21:1.0 50:0.2 64:1.0 129:1.0 437:0.3333333333333333 667:1.0 668:1.0 669:1.0 670:1.0 671:1.0
2 4:1.0 9:0.3333333333333333 64:1.0 81:0.3333333333333333 89:1.0 126:0.3333333333333333 272:1.0 287:1.0 289:1.0 294:1.0 343:0.3333333333333333 407:0.25 577:1.0 672:1.0 673:1.0 674:1.0
2 9:0.16666666666666666 12:0.05263157894736842 14:0.08333333333333333 31:1.0 50:0.2 64:1.0 84:0.16666666666666666 343:0.3333333333333333 393:0.3333333333333333 394:1.0 669:1.0 675:0.2 676:1.0 677:1.0 678:1.0 679:1.0 680:1.0
2 9:0.16666666666666666 52:0.5 212:1.0
2 9:0.16666666666666666 52:0.5 394:1.0
2 126:0.3333333333333333 273:0.6666666666666666 286:0.5 353:0.5 467:1.0 532:1.0
2 468:1.0 523:1.0 679:1.0
2 14:0.08333333333333333 125:1.0
2 27:0.3333333333333333 28:1.0 49:1.0 81:0.3333333333333333 132:0.3333333333333333 273:0.3333333333333333 619:1.0
2 3:1.0 6:2.0 12:0.05263157894736842 50:0.4 61:1.0 564:1.0
2 5:0.5 6:1.0 11:1.0 13:1.0 14:0.16666666666666666 81:0.3333333333333333 141:0.5 154:0.5 200:1.0 286:0.5 381:1.0
2 9:0.16666666666666666 12:0.05263157894736842 101:1.0 291:1.0 343:0.3333333333333333 437:0.3333333333333333 470:1.0 619:1.0
2 16:0.017241379310344827 20:1.0 31:1.0 151:0.3333333333333333 269:1.0 272:1.0
2 152:0.5 273:0.3333333333333333 274:1.0 275:1.0 276:1.0 277:1.0 278:1.0 279:1.0
2 280:1.0
2 16:0.017241379310344827 31:1.0 32:1.0 269:1.0
2 3:1.0 14:0.08333333333333333 16:0.017241379310344827 40:1.0 41:0.5 287:1.0 289:1.0 301:1.0
2 9:0.16666666666666666 15:0.3333333333333333 16:0.06896551724137931 31:1.0 119:0.5 198:1.0 269:1.0 281:2.0 282:1.0 283:1.0 284:1.0 285:1.0 286:0.5 287:1.0 288:1.0
2 9:0.16666666666666666 16:0.017241379310344827 31:1.0 67:1.0 106:0.25 269:1.0 289:1.0 290:1.0
2 16:0.017241379310344827 61:0.5 129:1.0 175:1.0 212:1.0 291:1.0 292:1.0 293:1.0
2 3:2.0 9:0.6666666666666666 12:0.10526315789473684 16:0.017241379310344827 50:0.2 55:1.0 269:1.0 294:1.0 295:1.0 296:2.0 297:1.0 298:1.0 299:1.0 300:1.0 301:1.0
2 9:0.3333333333333333 14:0.08333333333333333 39:0.3333333333333333 269:1.0 273:0.6666666666666666 294:1.0
2 9:0.16666666666666666 32:1.0 88:1.0 114:0.16666666666666666 381:1.0 583:1.0 1042:1.0
2 16:0.017241379310344827 39:0.3333333333333333 50:0.2 120:0.1 175:1.0 199:1.0 343:0.3333333333333333
2 3:1.0 11:1.0 12:0.05263157894736842 35:1.0 39:0.3333333333333333 690:1.0
2 1:0.0625 6:1.0 13:2.0 52:0.5 81:0.6666666666666666 89:2.0 122:1.0 148:2.0 198:1.0 394:1.0 458:2.0 541:1.0
2 1:0.0625 9:0.3333333333333333 20:1.0 50:0.2 52:0.5 132:0.3333333333333333 343:0.3333333333333333 394:1.0 544:1.0 673:1.0 712:1.0
2 14:0.08333333333333333 88:1.0 108:0.5 120:0.1 168:1.0 181:1.0 562:1.0 735:0.3333333333333333 764:1.0
2 3:1.0 6:1.0 11:2.0 12:0.05263157894736842 14:0.16666666666666666 41:0.5 50:0.2 262:0.25 291:1.0 381:2.0 393:0.3333333333333333 394:1.0 502:1.0 507:1.0 807:1.0
2 61:1.0 95:0.25 281:1.0 291:2.0 387:1.0 525:1.0 1086:1.0
2 1:0.0625 9:0.5 16:0.034482758620689655 20:1.0 129:1.0 212:1.0 270:1.0 291:1.0 292:1.0
2 4:1.0 9:0.16666666666666666 14:0.08333333333333333 16:0.017241379310344827 31:1.0 105:1.0 106:0.25 154:0.5 212:1.0
|
ae3db7d4755999e15b13fee2fda291462bf5e09a | e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4 | /New LSTMAttn Model/.data/form-split/SURPRISE-LANGUAGES/Germanic/gsw.tst | c7d614e338d3a680cb03922bc51e68c3d4e80d3e | [] | no_license | davidgu13/Lemma-vs-Form-Splits | c154f1c0c7b84ba5b325b17507012d41b9ad5cfe | 3cce087f756420523f5a14234d02482452a7bfa5 | refs/heads/master | 2023-08-01T16:15:52.417307 | 2021-09-14T20:19:28 | 2021-09-14T20:19:28 | 395,023,433 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,696 | tst | gsw.tst | grosche V;SBJV;SG;1;PRS
ässe V;SBJV;PL;3;PRS
ligge V;SBJV;PL;1;PST
lüüte V;SBJV;PL;2;PRS
tue V;SBJV;SG;2;PRS
schnöre V;IND;PL;2;PRS
lauffe V;IND;SG;2;PRS
leere V;SBJV;SG;3;PRS
verlüüre V;SBJV;SG;2;PRS
trääge V;SBJV;SG;1;PST
zünde V;SBJV;PL;3;PRS
bruuche V;IND;SG;3;PRS
schlaaffe V;IND;SG;1;PRS
bruuche V;IND;SG;2;PRS
tuusche V;IND;PL;2;PRS
fèèle V;SBJV;PL;3;PRS
faare V;SBJV;SG;2;PRS
schiisse V;SBJV;SG;1;PRS
gsee V;SBJV;SG;3;PST
lose V;SBJV;SG;2;PRS
sitze V;IND;PL;2;PRS
räise V;SBJV;PL;2;PRS
gsee V;SBJV;SG;2;PRS
lauffe V;IND;PL;1;PRS
boue V;SBJV;SG;2;PRS
schnüüze V;SBJV;SG;1;PRS
wöische V;IND;SG;3;PRS
gèè V;IND;SG;2;PRS
winke V;IND;PL;2;PRS
möge V;IND;PL;3;PRS
prichte V;SBJV;SG;3;PRS
rede V;IND;PL;2;PRS
verrate V;SBJV;SG;3;PRS
chöne V;SBJV;PL;1;PRS
bhalte V;IND;PL;1;PRS
verlüüre V;IND;PL;1;PRS
sii V;SBJV;SG;3;PST
sele V;SBJV;SG;3;PRS
uufpasse V;IND;PL;1;PRS
zöisle V;IND;PL;2;PRS
fiire V;IND;PL;2;PRS
lauffe V;SBJV;SG;1;PRS
müese V;SBJV;PL;2;PRS
chöne V;IND;SG;2;PRS
lauffe V;SBJV;PL;3;PRS
gaume V;IND;SG;1;PRS
legge V;IND;SG;3;PRS
rede V;IND;SG;2;PRS
lauffe V;IND;PL;2;PRS
schaffe V;SBJV;SG;1;PRS
gèè V;IND;SG;1;PRS
bruuche V;SBJV;SG;1;PRS
rüere V;IND;PL;3;PRS
danke V;SBJV;PL;1;PRS
güne V;SBJV;PL;1;PRS
zöisle V;SBJV;PL;2;PRS
staa V;SBJV;PL;2;PRS
trääge V;SBJV;PL;2;PRS
butze V;IND;PL;2;PRS
enttüüsche V;SBJV;PL;3;PRS
hälffe V;SBJV;PL;3;PST
zeere V;SBJV;PL;1;PRS
hebe V;IND;PL;3;PRS
ruusche V;SBJV;SG;3;PRS
schwüme V;SBJV;PL;1;PRS
möge V;IND;PL;1;PRS
bruume V;IND;SG;3;PRS
hange V;SBJV;SG;1;PRS
säge V;SBJV;SG;1;PRS
poschte V;IND;PL;1;PRS
bhalte V;IND;PL;3;PRS
zie V;SBJV;PL;2;PRS
chratze V;SBJV;SG;2;PRS
danke V;SBJV;PL;2;PRS
zünde V;IND;SG;1;PRS
faare V;IND;SG;3;PRS
passe V;SBJV;PL;2;PRS
finde V;IND;PL;2;PRS
faare V;SBJV;PL;2;PRS
trööschte V;IND;SG;2;PRS
chöne V;SBJV;SG;3;PST
biige V;SBJV;SG;3;PRS
schnöre V;SBJV;SG;2;PRS
staa V;SBJV;SG;2;PRS
haa V;IND;SG;3;PRS
nütze V;IND;PL;2;PRS
hänke V;SBJV;PL;2;PRS
hebe V;SBJV;PL;1;PRS
gnüüsse V;SBJV;PL;1;PRS
lüüte V;SBJV;PL;3;PRS
zaale V;SBJV;SG;2;PRS
möge V;SBJV;PL;1;PRS
enttüüsche V;IND;SG;3;PRS
lüüte V;IND;PL;3;PRS
gaa V;SBJV;PL;1;PST
ghööre V;SBJV;SG;1;PRS
hange V;IND;PL;3;PRS
staa V;SBJV;SG;1;PST
flueche V;SBJV;PL;3;PRS
fale V;SBJV;SG;3;PRS
folge V;IND;PL;2;PRS
mäine V;SBJV;SG;1;PRS
träffe V;SBJV;PL;2;PST
schreie V;SBJV;PL;1;PRS
bhalte V;IND;PL;2;PRS
hänke V;IND;SG;3;PRS
lose V;IND;SG;2;PRS
flueche V;IND;SG;2;PRS
trucke V;SBJV;SG;3;PRS
staa V;SBJV;PL;2;PST
lupfe V;SBJV;SG;1;PRS
bruuche V;SBJV;SG;2;PRS
schüürge V;IND;PL;1;PRS
zaale V;SBJV;SG;1;PRS
lösche V;SBJV;PL;2;PRS
schwitze V;SBJV;PL;1;PRS
wone V;SBJV;PL;3;PRS
leere V;SBJV;PL;1;PRS
zünde V;IND;SG;3;PRS
rö̀ö̀tle V;IND;SG;1;PRS
schaffe V;SBJV;SG;3;PRS
hüete V;IND;PL;2;PRS
choche V;SBJV;SG;1;PRS
waarte V;SBJV;SG;2;PRS
tue V;SBJV;SG;3;PST
lösche V;SBJV;SG;3;PRS
zügle V;SBJV;PL;2;PRS
häize V;IND;PL;1;PRS
schiisse V;IND;SG;1;PRS
wüsse V;SBJV;PL;1;PRS
gèè V;SBJV;SG;1;PST
chöne V;IND;PL;2;PRS
möge V;IMP;SG;2
pfuuse V;SBJV;PL;1;PRS
gnüüsse V;SBJV;PL;2;PRS
bruuche V;SBJV;SG;3;PRS
binde V;SBJV;SG;2;PRS
troue V;SBJV;PL;2;PRS
haa V;SBJV;SG;2;PST
lange V;SBJV;SG;1;PRS
bschiisse V;IND;SG;1;PRS
gaume V;SBJV;PL;2;PRS
läbe V;SBJV;SG;3;PRS
haa V;IMP;SG;2
tusche V;IND;SG;1;PRS
zäige V;SBJV;SG;1;PRS
troue V;SBJV;SG;1;PRS
finde V;IND;PL;3;PRS
frö̀ö̀ge V;SBJV;SG;3;PRS
sii V;SBJV;PL;3;PRS
gspüüre V;IND;SG;2;PRS
läse V;SBJV;SG;3;PST
trucke V;IND;PL;3;PRS
gaa V;SBJV;PL;2;PRS
bschiisse V;SBJV;SG;1;PRS
hole V;SBJV;PL;1;PRS
laa V;IMP;SG;2
hüete V;SBJV;SG;2;PRS
wäsche V;IND;PL;1;PRS
fange V;IND;PL;2;PRS
räise V;SBJV;SG;1;PRS
schläike V;IND;SG;3;PRS
laa V;IND;PL;3;PRS
wüsse V;SBJV;SG;2;PST
hange V;SBJV;PL;3;PRS
trääge V;IND;PL;2;PRS
ruusche V;IND;SG;1;PRS
finde V;SBJV;PL;2;PRS
zügle V;IND;SG;1;PRS
choo V;SBJV;PL;3;PRS
wüsse V;SBJV;PL;3;PRS
uufpasse V;SBJV;SG;3;PRS
tue V;SBJV;PL;2;PRS
uufpasse V;IND;PL;2;PRS
chöie V;SBJV;SG;2;PRS
winke V;SBJV;SG;1;PRS
chützle V;SBJV;SG;2;PRS
gèè V;SBJV;PL;2;PRS
staa V;SBJV;PL;1;PRS
rächne V;IND;PL;1;PRS
chratze V;SBJV;PL;1;PRS
lose V;SBJV;SG;1;PRS
lupfe V;SBJV;SG;2;PRS
sueche V;IND;SG;3;PRS
zäige V;SBJV;PL;2;PRS
chauffe V;SBJV;SG;3;PRS
grüesse V;IND;SG;2;PRS
hälffe V;SBJV;SG;3;PRS
passe V;SBJV;PL;3;PRS
hebe V;SBJV;PL;2;PRS
luege V;SBJV;SG;3;PRS
rö̀ö̀tle V;SBJV;PL;2;PRS
gèè V;SBJV;PL;1;PRS
flueche V;SBJV;SG;2;PRS
legge V;IND;SG;1;PRS
schwüme V;SBJV;SG;1;PRS
lange V;IND;PL;1;PRS
rüere V;SBJV;PL;1;PRS
legge V;SBJV;PL;1;PST
gnüüsse V;IND;SG;3;PRS
soorge V;IND;SG;1;PRS
hange V;IND;SG;3;PRS
ruusche V;SBJV;PL;1;PRS
staa V;IND;PL;2;PRS
bschiisse V;SBJV;PL;3;PRS
läse V;SBJV;SG;1;PST
danke V;IND;SG;3;PRS
höre V;SBJV;PL;2;PRS
choche V;IND;SG;3;PRS
säge V;SBJV;SG;3;PRS
schwüme V;SBJV;PL;3;PRS
hänke V;SBJV;PL;3;PRS
chauffe V;SBJV;SG;2;PRS
bruume V;IND;SG;1;PRS
wüsse V;IND;PL;2;PRS
zünde V;SBJV;PL;1;PRS
rö̀ö̀tle V;SBJV;PL;3;PRS
springe V;SBJV;SG;3;PRS
gaa V;IND;PL;1;PRS
danke V;IND;PL;1;PRS
wone V;SBJV;SG;2;PRS
hüete V;SBJV;SG;1;PRS
schäle V;IND;PL;3;PRS
soorge V;IND;SG;2;PRS
chratze V;IND;PL;1;PRS
räne V;SBJV;SG;3;PRS
bhalte V;IND;SG;1;PRS
verrate V;SBJV;PL;1;PRS
gsee V;SBJV;PL;2;PRS
biige V;IND;PL;2;PRS
tue V;SBJV;SG;3;PRS
nütze V;SBJV;SG;3;PRS
faare V;SBJV;SG;1;PRS
choo V;SBJV;PL;2;PST
nütze V;IND;PL;1;PRS
räne V;IND;SG;1;PRS
ässe V;SBJV;PL;2;PRS
tue V;IND;SG;3;PRS
schwitze V;IND;PL;1;PRS
fiire V;IND;SG;2;PRS
schlaaffe V;SBJV;SG;1;PRS
hälffe V;SBJV;SG;1;PRS
gspüüre V;SBJV;PL;3;PRS
bruuche V;SBJV;PL;2;PRS
hüete V;SBJV;PL;1;PRS
rede V;SBJV;PL;1;PRS
danke V;IND;SG;1;PRS
häisse V;IND;SG;3;PRS
schreie V;SBJV;PL;2;PRS
troue V;SBJV;SG;3;PRS
güne V;IND;SG;2;PRS
zäige V;IND;PL;3;PRS
bliibe V;IND;PL;2;PRS
trääge V;IND;SG;3;PRS
sii V;IND;PL;3;PRS
schniide V;IND;PL;3;PRS
läbe V;SBJV;SG;1;PRS
rüere V;SBJV;SG;3;PRS
zie V;SBJV;SG;1;PST
bliibe V;IND;SG;3;PRS
bruuche V;IND;PL;3;PRS
hälffe V;SBJV;PL;3;PRS
frö̀ö̀ge V;SBJV;SG;1;PRS
lache V;SBJV;SG;3;PRS
trööschte V;IND;PL;3;PRS
bschiisse V;IND;SG;2;PRS
grüesse V;IND;PL;3;PRS
boue V;IND;SG;1;PRS
riisse V;IND;PL;3;PRS
rächne V;IND;PL;3;PRS
läse V;SBJV;SG;2;PRS
trööschte V;SBJV;SG;1;PRS
chauffe V;SBJV;PL;1;PRS
schletze V;IND;PL;1;PRS
lupfe V;IND;SG;2;PRS
güne V;IND;SG;3;PRS
gaa V;SBJV;SG;2;PST
biige V;IND;PL;1;PRS
wèèrde V;IND;PL;2;PRS
schriibe V;IND;PL;2;PRS
käne V;SBJV;SG;3;PRS
sprütze V;SBJV;PL;2;PRS
springe V;SBJV;PL;2;PRS
wele V;SBJV;SG;3;PST
grüesse V;SBJV;SG;3;PRS
grosche V;SBJV;PL;2;PRS
butze V;IND;SG;2;PRS
legge V;IND;PL;1;PRS
haa V;IND;SG;1;PRS
trääge V;IMP;SG;2
gsee V;SBJV;SG;1;PST
passe V;SBJV;SG;2;PRS
chräble V;SBJV;SG;3;PRS
waarte V;IND;PL;3;PRS
träffe V;SBJV;SG;1;PRS
zügle V;IND;SG;2;PRS
läse V;IND;PL;1;PRS
müese V;SBJV;PL;1;PST
tue V;IND;PL;2;PRS
verlüüre V;IND;SG;3;PRS
schwitze V;IND;SG;1;PRS
luege V;SBJV;PL;3;PRS
saage V;SBJV;PL;2;PRS
choo V;IND;PL;2;PRS
läse V;SBJV;PL;2;PST
müese V;SBJV;PL;1;PRS
choo V;SBJV;SG;2;PRS
nèè V;SBJV;PL;3;PST
wäsche V;SBJV;SG;1;PRS
ghööre V;SBJV;PL;1;PRS
grosche V;IND;PL;2;PRS
räise V;IND;SG;3;PRS
gnüüsse V;IND;PL;3;PRS
schaffe V;SBJV;PL;1;PRS
schlaaffe V;IND;SG;3;PRS
winke V;SBJV;PL;1;PRS
waarte V;SBJV;PL;3;PRS
luege V;IND;PL;3;PRS
büeze V;IND;SG;3;PRS
chräble V;SBJV;PL;2;PRS
zügle V;SBJV;PL;3;PRS
butze V;IND;PL;3;PRS
sele V;IND;SG;3;PRS
schäle V;SBJV;PL;1;PRS
gèè V;SBJV;PL;3;PRS
schnöre V;SBJV;PL;3;PRS
sitze V;SBJV;PL;1;PRS
schüürge V;SBJV;SG;3;PRS
hole V;SBJV;PL;3;PRS
träffe V;SBJV;SG;3;PRS
prichte V;IND;SG;1;PRS
bruume V;SBJV;PL;2;PRS
früüre V;SBJV;SG;1;PRS
chratze V;SBJV;PL;2;PRS
tue V;SBJV;PL;3;PST
gsee V;IND;PL;1;PRS
sueche V;IND;PL;1;PRS
waarte V;SBJV;SG;3;PRS
schlaaffe V;SBJV;PL;2;PRS
ässe V;SBJV;SG;3;PST
biige V;SBJV;PL;2;PRS
troue V;IND;SG;3;PRS
ässe V;SBJV;SG;1;PST
pfuuse V;IND;PL;2;PRS
fange V;IND;SG;3;PRS
schiisse V;SBJV;PL;2;PRS
müese V;SBJV;PL;3;PRS
versoorge V;SBJV;SG;2;PRS
tüüsche V;IND;SG;2;PRS
binde V;IND;SG;3;PRS
trööschte V;IND;PL;1;PRS
gèè V;SBJV;PL;1;PST
höre V;IND;SG;1;PRS
ässe V;SBJV;PL;3;PST
lose V;IND;SG;3;PRS
staa V;IND;SG;2;PRS
zie V;SBJV;PL;1;PST
häisse V;IND;PL;3;PRS
chräble V;SBJV;SG;2;PRS
güne V;SBJV;PL;3;PRS
hüete V;SBJV;SG;3;PRS
schwitze V;IND;SG;3;PRS
choo V;SBJV;SG;1;PST
uufpasse V;SBJV;SG;2;PRS
bruume V;IND;SG;2;PRS
zie V;IND;SG;3;PRS
müese V;IMP;SG;2
legge V;SBJV;SG;1;PRS
träffe V;IND;SG;1;PRS
trucke V;SBJV;PL;1;PRS
lösche V;IND;PL;1;PRS
sii V;SBJV;SG;2;PST
winke V;SBJV;PL;2;PRS
rächne V;IND;PL;2;PRS
träffe V;IND;PL;1;PRS
butze V;IND;SG;1;PRS
luure V;IND;SG;1;PRS
lange V;IND;PL;2;PRS
tue V;SBJV;PL;1;PST
lüüte V;SBJV;SG;3;PRS
rö̀ö̀tle V;SBJV;SG;3;PRS
höre V;IND;PL;2;PRS
chotze V;IND;PL;1;PRS
haa V;SBJV;SG;3;PRS
ässe V;IND;PL;1;PRS
|
dc316ab8ae0ed863d547a77a5d0d830dd7f45a3d | 0c1b318ef2ea5479e6a4df395006c510efb03896 | /Question3_3.sci | 7d5902288d027c2cc9cc4949775e2da411107f1e | [] | no_license | Sylfid/ProjetAF | aa731877261eb4a53c0017c70b236e1b685b59cb | d80fef4e15ec611d905f3762666bee103e568625 | refs/heads/master | 2020-04-08T08:11:03.848479 | 2018-11-27T13:46:45 | 2018-11-27T13:46:45 | 159,168,672 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 435 | sci | Question3_3.sci | function [] = Question3_3()
t = [0:39];
a=1/20;
f = sin(2 * %pi * t * a);
d = zeros(t);
d(1,1)=1/4;
d(1,2)=1/4;
d(1,3)=1/4;
d(1,4)=1/4;
resultat = ifft(fft(f) .* fft(d));
dfft=fft(d);
fonctionDebut = resultat ./ fft(d);
epsilon=0.94;
for i=1:40
if abs(dfft(1,i))<epsilon then
dfft(1,i)=epsilon;
else
end
end
fonctionDebut = ifft(fft(resultat)./dfft);
plot(fonctionDebut);
plot(f,'r');
endfunction
Question3_3();
|
995d7ee1a215739ce4abf7991adfad85bc98dbf4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3574/CH5/EX5.7/EX5_7.sce | 81ebcf6cc18bb029e6cebec3a8a7607e7480c7b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 547 | sce | EX5_7.sce | // Example 5.7
// Determine expected locked-rotor line current
// Page No. 192
clc;
clear;
close;
// Given data
Ir1=151; // Rated current
V1=230; // Rated voltage
V2=220; // Motor starting voltage
F1=60; // Rated frequency
F2=50; // Motor starting frequency
// Expected locked-rotor line current
Ir2=Ir1*((V2/F2)/(V1/F1));
// Display result on command window
printf("\n Expected locked-rotor line current = %0.0f A ",Ir2);
|
8dd0315435afdd339f13f69bf67ff534e5d35b4c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1475/CH6/EX6.24/Example_6_24.sce | 4c3ac3a8b2fc46a4953a5a18369654db9316a2ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 242 | sce | Example_6_24.sce | // Example 6.24 Trend equation for certain production
clc;
clear;
x1=20;
y1=(240)/12+(36*(x1+0.5))/(12*12);
disp(y1,"Trend values for the month of March,1982 =","Considering Unit = 1 month",x1,"Time with origin at year July,1980= ");
|
d15ff150096a624f884a1a1fb93331932d5f0742 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH22/EX14.22.6/Ex14_22_6.sce | 862f94a046b139c292ea4511fd89566de2028c0d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 336 | sce | Ex14_22_6.sce | //Section-14,Example-2,Page no.-PC.54
//To calculate force necessary to lift a ring of 1.0 cm radius from liquid water.
clc;
y=72.8 //dynes/cm
r=1 //cm
F=2*(2*%pi*r)*y //dynes
disp(F,'Force necessary to lift a ring of radius r from a liquid of surface tension y(dynes)')
|
0a1455f61b343123fda1fea269f044585a151a0b | 449d555969bfd7befe906877abab098c6e63a0e8 | /38/CH11/EX11.6/6.sce | 0622a31668e0371f1bba4e19f5e5f47459f7dccb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 309 | sce | 6.sce | // Caption: Finding speed voltage constant
clear;
close;
clc;
V_t=50;
I_a=1.25;
R_a=1.03;
E_a=V_t-I_a*R_a;
W=220;//rad/s
K_m=E_a/W;// V/rad/s
//At 1700 r/min
W_m=1700*2*%pi/60;//rad/s
E_anew=K_m*W_m;
I_anew=(48-E_anew)/1.03;
P_shaft=E_anew*I_anew;
P=P_shaft-61;
disp(P,'output power=') |
522f2aa14b8ba29a0d3021ec6968d7103f2e6199 | 4a1effb7ec08302914dbd9c5e560c61936c1bb99 | /Project 2/Experiments/GFS-GCCL-C/results/GFS-GCCL-C.led7digit-10-1tra/result5s0.tst | 7bcf1a6805512263bb9e7ccf59adbd9fae155aa7 | [] | no_license | nickgreenquist/Intro_To_Intelligent_Systems | 964cad20de7099b8e5808ddee199e3e3343cf7d5 | 7ad43577b3cbbc0b620740205a14c406d96a2517 | refs/heads/master | 2021-01-20T13:23:23.931062 | 2017-05-04T20:08:05 | 2017-05-04T20:08:05 | 90,484,366 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 535 | tst | result5s0.tst | @relation led7digit
@attribute Led1 real[0.0,1.0]
@attribute Led2 real[0.0,1.0]
@attribute Led3 real[0.0,1.0]
@attribute Led4 real[0.0,1.0]
@attribute Led5 real[0.0,1.0]
@attribute Led6 real[0.0,1.0]
@attribute Led7 real[0.0,1.0]
@attribute number{0,1,2,3,4,5,6,7,8,9}
@inputs Led1,Led2,Led3,Led4,Led5,Led6,Led7
@outputs number
@data
1 1
2 2
3 2
3 3
3 8
5 5
0 0
1 1
3 3
4 4
7 7
0 0
4 4
0 0
1 1
4 4
5 6
7 7
9 3
9 9
5 5
6 6
2 2
3 9
5 5
5 5
6 6
9 9
0 2
4 4
5 5
6 6
0 1
1 1
2 2
6 6
7 7
7 4
8 0
8 8
9 9
2 2
7 7
9 0
9 9
3 7
4 4
6 6
8 8
9 9
|
b4e686df6df127da57dfc1e7dddb2dc6abcf10ae | 449d555969bfd7befe906877abab098c6e63a0e8 | /443/CH1/EX1.1/1_1.sce | d726220bfbc7a9c97cbf82587d217d8ee5e207da | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 329 | sce | 1_1.sce | pathname=get_absolute_file_path('1.1.sce')
filename=pathname+filesep()+'1.1-data.sci'
exec(filename)
//bore diameter(in cm):
d=(4*Vs*Ro/%pi)^(1/3)
//length(in cm):
l=d/Ro
//compression ratio:
R=(Vs+Vc)/Vc
printf("\n\nRESULTS\n\n")
printf("\nbore:%f\n",d)
printf("\nstroke:%f\n",l)
printf("\ncompression ratio:%f\n",R) |
54b5e02df4e219ee38e39e5f1385d4a18c13d4fd | 449d555969bfd7befe906877abab098c6e63a0e8 | /29/CH11/EX11.16/exa11_16.sce | d4fdcb6363040265cf227730e2a1b4bfac171b98 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 483 | sce | exa11_16.sce | //caption:determine_Kp_Kv_Ka
//example 11_16
//page 485
s=%s;
syms t;
num=10
den=sym('s^2+6*s+10');
GH=num/den;
GH=simple(GH);
disp(GH,"G(s)H(s)=");
Kp=limit(GH,s,0);//static positional error coefficient
disp(Kp,"static positional error coefficient=");
Kv=limit(s*GH,s,0);//static velocity error coefficient
disp(Kv,"static velocity error coefficient=");
Ka=limit(s^2*GH,s,0);//static acceleration error coefficient
disp(Ka,"static acceleration error coefficient=");
|
243ae2c57dcedac352c4ab1b1ce466b7a5a5d8c9 | 717ddeb7e700373742c617a95e25a2376565112c | /278/CH12/EX12.5/ex_12_6.sce | 971065b53a1c150dad215c8a6326919a60abb66d | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 740 | sce | ex_12_6.sce | //design cottered foundation bolts
clc
//solution
//given
P=50*10^3//N
ft=80//N/mm^2
t=50//N/mm^2
fc=100//N/mm^2
pi=3.14
//P=(pi/4)*d^2*ft=62.84*d^2
//d=sqrt(P/62.84)//mm
printf("the diameter of bolt is,%f mm\n",sqrt(P/62.84))
printf("the diameter of bolt is,say 30mm\n")
d=30//mm
//let d1 be dia of enlarged end of bolt
//t1 be thickness of cotter
//t1=d1/4
//P=[((pi/4)*d1^2)-(d1*t1)]*ft
//P=42.84*d1^2
//d1=sqrt(P/42.84)//mm
printf("the dia of enlarged end of bolt is,%f mm\n ",sqrt(P/42.84))
printf("the dia of enlarged end of bolt is,say 36mm\n")
d1=36//mm
t1=d1/4//mm
printf("the thickness is,%f mm\n",t1)
//let b width of cotter
//P=2*b*t1*t==900*b
b=P/(900)//mm
printf("the width of cotter is,%f mm\n",b) |
1bcbb9f972e65e852165111df21628bce9e1cad1 | d145a801b8f64afaf9dd0330b93936ca3343cbdb | /test_suite/layers.tst | 60fb40e31d414de144e37d7ab3c88159ec1f36e7 | [] | no_license | ChemCryst/crystals | 0fff27ff8576b7c7199e1eaa671407d50132b98e | 8087c68d7f05b903473cee1cb131c06f819dc660 | refs/heads/master | 2023-08-17T16:36:03.675124 | 2023-06-26T10:54:29 | 2023-06-26T10:54:29 | 152,602,292 | 2 | 0 | null | 2023-06-26T10:54:30 | 2018-10-11T14:09:45 | Roff | UTF-8 | Scilab | false | false | 1,166 | tst | layers.tst | # Test of layer refinement.
#
# This test takes a non-centro structure (cyclo) and tests all the
# following features of SFLS in all combinations:
#
# Refinement, Scale, Calc } These options are worked
# Mixed ISO/ANISO refinement } through in the instruction file
# Extinction } layer.ref
#
# F and F squared refinement FSQ or NOFSQ
# Anomalous scattering ANOM or NOANOM
#
#
\set time slow
\rele print CROUTPUT:
\use layer.in
# NOFSQ, NOANOM
\LIST 23
MODIFY EXTINCTION=YES ANOM=NO
MINIMISE F-SQ=NO
END
\USE layer.ref
# NOFSQ, ANOM
\use layer.in
\LIST 23
MODIFY EXTINCTION=YES ANOM=YES
MINIMISE F-SQ=NO
END
\USE layer.ref
# FSQ, NOANOM
\use layer.in
\LIST 23
MODIFY EXTINCTION=YES ANOM=NO
MINIMISE F-SQ=YES
END
\USE layer.ref
# FSQ, ANOM
\use layer.in
\LIST 23
MODIFY EXTINCTION=YES ANOM=YES
MINIMISE F-SQ=YES
END
\USE layer.ref
# And close the program.
\FINISH
|
efc2f3ef2526631ff837bfa1f6f9f5d44958645d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH3/EX3.15/Ex3_15.sce | 56ea082a9de32240a93ed5164a39ae01cab321ac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 596 | sce | Ex3_15.sce | clc;
B=1; // peak flux density in Tesla
l=0.8; // length of armature conductor
v=20; // velocity of coil
// for 0< theta <30 coil aa' is moving in zero B-wave, emf for this range is zero
// for 30< theta < 60 coil side a is cutting through B-wave and coil side a' is cutting zero B-wave, therefore
e1=B*l*v; // emf at given position of coil
// for 60< theta < 150 both coil sides are cutting through B-wave
e2=2*B*l*v; // net emf at given position of coil
rms=sqrt((1/%pi)*(((e1^2*%pi*2)/6)+((e2^2*%pi)/2)));
printf('RMS value of generated emf in one single turn coil is %f V',rms);
|
a0750dd11c15a353c00929542400645a5c08a4dd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2153/CH7/EX7.5.a/ex_7_5_A.sce | 1f848680d0ed82e33dfb18b26dd299cbc65d4068 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 431 | sce | ex_7_5_A.sce | // Example 7.5.a: yield point stress
clc;
clear;
close;
format('v',10)
yl=34;//yeild load in kN
ul=61;//ultimate load in kN
fl=78;//final length in mm
glf=60;//gauge length of fratture in mm
fd=7;//final diamtere in mm
d=12;//specimen diamtere in mm
sl=62.5;//specimen length in mm
A=(%pi*(d)^2)/4;// in meter square
ylp=((yl*10^3)/(A));//yeild point stress in N/mm^2
disp(floor(ylp),"yeild point stress in N/mm^2")
|
addea018558f455a4a36b7f779b1bda0da7ed90c | 449d555969bfd7befe906877abab098c6e63a0e8 | /135/CH2/EX2.19/EX19.sce | 97d0a5988a55826ad1f6e81515bfa5284265d5a8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 675 | sce | EX19.sce | // Example 2.19 (a) Vd1 and Vd2
// (b) Current in the circuit
clc, clear
eta_VT=0.026; // Product of η and VT
disp("Part (a)");
// From the Fig. 2.19(a)
Is=5e-6; // Reverse saturation current through diode D2 in amperes
Id1=Is; // Forward current through diode D1 in amperes
Vd1=eta_VT*log(1+(Id1/Is)); // in volts
Vd2=5-Vd1; // in volts
disp(Vd1,"Vd1 (V) =");
disp(Vd2,"Vd2 (V) =");
disp("Part (b)");
// From the Fig. 2.19(b)
Vz=4.9; // Zener voltage in volts
Vd1=5-Vz; // in volts
I=Is*(%e^(Vd1/eta_VT)-1); // Current in the circuit in amperes
I=I*1e6; // Current in the circuit in micro-amperes
disp(I,"Current in the circuit (μA) ="); |
d88b09e7991d4c6c7ab472554fe349bc5263a55d | 3ca7d40067d619bd7859f89de1882e22ef3a9fda | /testcases/public/test028.txt | 9c4952a7ee9a45e277942493d646ad5bef44ce9c | [] | no_license | caojoshua/CS241-Advanced-Compiler-Construction-Project | 2b76c042ea6505c4a565ae5299efb5d983e0b4f3 | 1b25c9dd283b77555ccc3951924ac2882c1d92c2 | refs/heads/master | 2020-12-15T02:54:38.405198 | 2020-03-25T20:52:37 | 2020-03-25T20:52:56 | 234,971,962 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 191 | txt | test028.txt | main
var a, b,c,d,e;
{
let e <- b;
if c < 3 then
let b <- a+4;
let d <- b
else
let c <- a+4
fi;
let a <- b+e;
let d <- c+d
}. |
4262f8528fe6ea0b96d90ca7b1c6790b87f0c797 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1373/CH6/EX6.6/Chapter6_Example6.sce | 71a5cb5153b5dde47caebdb82cbab20511678355 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 942 | sce | Chapter6_Example6.sce | //Chapter-6, Example 6.6, Page 247
//=============================================================================
clc
clear
//INPUT DATA
p=0.8;//Dynamic viscosity in N.s/m^2
k=0.15;//Thermal conductivity in W/m.K
Tb=10;//Temperature of bearing in degree C
Ts=30;//Temperature of the shaft in degree C
C=0.002;//Clearance between bearig and shaft in m
U=6;//Velocity in m/s
//CALCULATIONS
qb=(((-p*U^2)/(2*C))-((k/C)*(Ts-Tb)))/1000;//Surface heat flux at the bearing in kW/m^2
qs=(((p*U^2)/(2*C))-((k/C)*(Ts-Tb)))/1000;//Surface heat flux at the shaft in kW/m^2
Tmax=Tb+(((p*U^2)/(2*k))*(0.604-0.604^2))+((Ts-Tb)*0.604);//Maximum temperature in degree C occurs when ymax=0.604L
//OUTPUT
mprintf('Maximum temperature rise is %3.3f degree C \n Heat fux to the bearing is %3.1f kW/m^2 \n Heat fux to the shaft is %3.1f kW/m^2',Tmax,qb,qs)
//=================================END OF PROGRAM==============================
|
b3452f5ee4d7a9fa114babdf28f2db3106ae8250 | 449d555969bfd7befe906877abab098c6e63a0e8 | /854/CH11/EX11.11/Example11_11.sce | b99ec2f133c2294dc12c795f900a8303f9c1c103 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,031 | sce | Example11_11.sce | //clear//
//Caption:
//Example11.11
//page381
clc;
clear
close;
Rg = 50; //series resistance with battery in ohms
Zo = Rg; //characteristic impedance
RL = 25; //load resistance
Vo = 10; //battery voltage in volts
V1_S = (Rg/(Zo+Rg))*Vo;
T = (RL-Zo)/(RL+Zo);
V1_R = T*V1_S;
I1_S = V1_S/Zo;
I1_R = -V1_R/Zo;
IB = Vo/(Zo+RL);
VL = Vo*(RL/(Rg+RL));
disp(V1_S,'Voltage at source in volts V1plus =')
disp(V1_R,'Voltage returns to battery in volts V1minus=')
disp(I1_S,'Current at battery in amps I1plus=')
disp(I1_R,'Current at battery in amps I1minus=')
disp(IB,'Steady state current through battery in amps IB=')
disp(VL,'Steady state load voltage in volts VL=')
//Result
//Voltage at source in volts V1plus =
// 5.
//Voltage returns to battery in volts V1minus=
// - 1.6666667
//Current at battery in amps I1plus=
// 0.1
//Current at battery in amps I1minus=
// 0.0333333
//Steady state current through battery in amps IB=
// 0.1333333
//Steady state load voltage in volts VL=
// 3.3333333 |
08aa342d4271ce7181e8bb3b893f0c14a159ecfd | 669f52463d792f1d4933d95acd31792e2e47b056 | /old/test.sce | c685fbef4dd6955fa34ebb817f6433168642756c | [] | no_license | larrybolt/wisk2hitori | ce39473d7a49fa32bdfea46f0fc8c8a8acc71163 | 5f01b9c13fa50cf7d4d865c5a34c95b20d195d4c | refs/heads/master | 2021-01-22T15:01:16.856691 | 2016-05-17T10:28:17 | 2016-05-17T10:28:17 | 33,406,015 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 214 | sce | test.sce | // script die de testen uitvoert,
// eerst de controleSudoku() functie,
// daarna de solveSudoku
mode(-1);
warning('off')
exec('solver.sce')
exec('testcases/controleSudoku2.sce')
exec('testcases/solveSudoku2.sce')
|
019e49b056a0531e73d887d99dfdccdd3d5d810d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3281/CH9/EX9.20/ex9_20.sce | 9504a81316861de8766c2e388361a0c3a672a924 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 327 | sce | ex9_20.sce | //Page Number: 498
//Example 9.20
clc;
//Given
Cj=0.5D-12; //F
Lp=0.5D-9; //H
Irf=0.65; //A
Rl=2; //ohms
Vbd=80; //V
Idc=0.08; //A
//Resonant frequency
f=1/(2*%pi*sqrt(Cj*Lp));
disp('Hz',f,'Resonant frequency:');
//Efficiency
Pout=(Irf*Irf*Rl)/2;
Pin=Vbd*Idc;
n=(Pout*100)/Pin;
disp('%',n,'Efficiency:');
|
985b811d118af28b77758d4bd301e092ee4e1ac8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /659/CH5/EX5.2cs/casestudy2.sce | 2d0135d10538ba96444e99d30b854da949d39f2c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,210 | sce | casestudy2.sce | // Case Study:-Chapter 5
// 2.Pay-Bill Calculations
CA1=1000;
CA2=750;
CA3=500;
CA4=250;
EA1=500;
EA2=200;
EA3=100;
EA4=0;
level=1;
while(level)
printf("Enter 0[zero] for level to end");
//Read data
level=input("Enter level:");
if(level==0)
break;
end
printf("Enter job number, and basic pay\n");
//Read data
[jobnumber,basic]=scanf("%d %f");
//Decide level number and calculate perks
select level
case 1 then perks=CA1+EA1;
case 2 then perks=CA2+EA2;
case 3 then perks=CA3+EA3;
case 4 then perks=CA4+EA4;
else
printf("Error in level code");
return;
end
house_rent=0.25*basic;
//Calculate gross salary
gross=basic+house_rent+perks;
//Calculate income tax
if (gross<=2000) then
incometax=0;
elseif(gross<=4000)
incometax=0.03*gross;
elseif(gross<=5000)
incometax=0.05*gross;
else
incometax=0.08*gross;
end
//Compute the net salary
net=gross-incometax;
//Print the results
printf("%d %d %.2f\n",level,jobnumber,net);
end
printf("END OF THE PROGRAM");
|
7d1df157512722458c9f98337cd79070acb2bea2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1319/CH7/EX7.2/7_2.sce | 8f65ab20c141fab34ae4a6110d3369826cb87680 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,165 | sce | 7_2.sce | //New plant pf and percent decrease in line current
clc;
clear;
Pmp=5000*(10^3); // Electrical load
pfmp=0.8; // Lag
Pim=500*735;// One horse power is 735W
Effim=96/100; // Efficiency of the motor
pfim=0.9; // Lag
pfsm=0.8; // Lead
Pime=Pim/Effim;// Effective power delivered by the induction motor
deff('x=com(y,z)','x=y+(%i*y*tand(acosd(z)))')// Function to find the complex powers
//Complex Powers
Pcmp=com(Pmp,pfmp); // Manufacturing Plant Load
Pcim=com(Pime,pfim);// Induction Motor
Pcsm=com(Pime,-pfsm);// Synchronous Machine, Minus Sign indicates Lead
Pr=Pcmp-Pcim+Pcsm; // Plant Requirement after replacement
pfar=real(Pr)/abs(Pr); // New Power Factor of the plant
Pnp=abs(Pr);
Vl=poly([0 1],'Vl','c');
Io=Pmp/(pfmp*sqrt(3)*Vl);
In=Pnp/(sqrt(3)*Vl); // Improved Factor Value =1;
red=(Io-In)*100/Io; // Reduction percent in fractions
redeq=Vl-red;// Reduction percent in decimal characteristic equation
redper=roots(redeq(2));
printf('The New Power Factor of the plant = %g lag \n',pfar )
printf('The Percentage decrease in line current that will result in improved p.f = %g percent \n',redper)
|
98f16c2ceb9e13478c76d34ffd6af425a690003f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3574/CH12/EX12.4/EX12_4.sce | 4639df2323bbc78d95d27fa2af55e09fa973b6ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,016 | sce | EX12_4.sce | // Example 12.4
// Computation of (a) Required resistance of a noninductive diverter that will
// bypass 27 percent of the total armature current(b) Power rating of the
// diverter
// Page No. 494
clc;
clear;
close;
// Given data
Rs=0.00306; // Shunt generator resistance rating
Is=0.73; // Shunt generator current rating
Id1=0.27; // Armature winding resistance
Pload=170000; // Load of power
VT=250; // Shunt generator voltage rating
Id2=680; // No load voltage
Rd=0.27; // Resistance drop
// (a) Required resistance of a noninductive diverter that will bypass
// 27 percent of the total armature current
Rd=Rs*Is/Id1;
// (b) Power rating of the diverter
Ia=Pload/VT;
Pd=((Id1*Id2)^2)*Rd;
//Display result on command window
printf("\n Required resistance of a noninductive diverter = %0.5f Ohm ",Rd);
printf("\n Power rating of the diverter = %0.0f W ",Pd);
|
df8746981446274a893edb922f82328a0e3d094c | 449d555969bfd7befe906877abab098c6e63a0e8 | /491/CH11/EX11.3/11_3.sce | e5b0490d47564a7f4e85d54a60f16de82770ff3b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 511 | sce | 11_3.sce | P = 1500 ; // Load in lb
e = 0.45 ; // ecentricity in inch
h = 1.2 ; // Height of cross section in inch
b = 0.6 ; // Width of cross section in inch
E = 16e06 ; // Modulus of elasticity
del = 0.12 ; // Allowable deflection in inch
L = asec(1.2667)/0.06588 ; // Maximum allowable length possible
// Above formula comes from solving following equation
// Pcr = (%pi^2*E*I)/(4*(L)^2); I = (h*b^3)/12; del = e*(sec((%pi/2)*sqrt(P/Pcr))-1)
disp("inch",L,"The longest permissible length of the bar is")
|
7bc5e76987d882a4a3eb39f379e088c2b59e9f80 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH10/EX10.1/Ex10_1.sce | 7eaf231bc0c6084a4097c129b1b7bd8e5fd3443b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 396 | sce | Ex10_1.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 10 Feedback in Amplifiers Pg no. 330
clear;
clc;
//Given
Vi=2D-3;//input voltage in volts
Vo_dash=10;//output voltage with feedback in volts
BVo_dash=200D-3;//feedback voltage in volts
//Solution
A=Vo_dash/Vi;//open loop gain
Afb=Vo_dash/(Vi+BVo_dash);//closed loop gain
B=1/Afb-1/A;//feedback gain beta
printf("β = %.2f",B);
|
14a461df4fa0b7e39a1bbdcf75a0a0cd983ff277 | 449d555969bfd7befe906877abab098c6e63a0e8 | /48/CH12/EX12.14/eg_12_14.sce | 2b2bcac7726b76a2a0d90fe214f89db8dc630ee6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 533 | sce | eg_12_14.sce | clc;
clear;
//assume the first cloumn values are of machine M1 and 2nd column are of M2
p=[1,1;1 3;2 2;2 4;3 3;3 1;4 4;4 2];
z=1;
for i=1:length(p(:,1))
for j=i:length(p(:,1))
if(p(i,1)==p(j,1) & i~=j)
q(z,:)=[p(i,:) p(j,:)];
z=z+1;
end
end
end
disp("pi(R)");
disp(q);
z=1;
for i=1:length(p(:,1))
for j=i:length(p(:,1))
if(p(i,2)==p(j,2) & i~=j)
q(z,:)=[p(i,:) p(j,:)];
z=z+1;
end
end
end
disp("pi(S)");
disp(q); |
b3476d00e20507227b89fa2c6c34e10e6ebcd6be | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3.1/Unix-Windows/scilab-2.3/macros/scicos/do_block.sci | 7567526da23d4a6d81c91c09c952c1cc69cfd9bb | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 773 | sci | do_block.sci | function scs_m=do_block(scs_m)
// do_block - edit a block icon
while %t
[btn,xc,yc]=xclick(0);
pt=[xc,yc]
[n,pt]=getmenu(datam,pt);
if n>0 then n=resume(n),end
K=getblock(scs_m,[xc;yc])
if K<>[] then break,end
end
gr_i=scs_m(K)(2)(9)
if type(gr_i)==15 then
[gr_i,coli]=gr_i(1:2)
else
coli=[]
end
while %t do
gr_i=dialog(['Give scilab instructions to draw block';
'shape.';
'orig(1) : block down left corner x coordinate';
'orig(2) : block down left corner y coordinate';
'sz(1) : block width';
'sz(2) : block height'],gr_i)
if gr_i==[] then return,end
mac=null();deff('[]=mac()',gr_i,'n')
if check_mac(mac) then
o=scs_m(K)
drawblock(o)
o(2)(9)=list(gr_i,coli)
drawblock(o)
scs_m(K)=o
break
end
end
|
964ce42c6d0cc4e93f260d38ee3a5384a13d76f9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /978/CH5/EX5.4/Example5_4.sce | 1387536a65e40e69c847f417edb79216fb3c4c88 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 198 | sce | Example5_4.sce | //chapter-5,Example5_4,pg 492
Vref=5//ref. voltage
t=1*10^-3//sawtooth wave time
f=100*10^3//clock frequency
Vi=1//input voltage
N=((t*f*Vi)/Vref)//count
printf("count=%.2f \n",N) |
6b1042669a9156a3136eb7ee22630139823a5b8c | 449d555969bfd7befe906877abab098c6e63a0e8 | /125/CH2/EX2.12/Fig2_12.sce | b94b462b3541360b50ba5a848fb881219c1503bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 147 | sce | Fig2_12.sce | //Caption: Frequency Response
//Fig2.12
//page 60
clc;
close;
[X, Y] = meshgrid(-%pi:.09:%pi);
Z = 2*cos(X)+2*cos(Y);
surf(X,Y,Z);
xgrid(1) |
f4abf878e1f719a59dd4de5a5193b4706747c8d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3574/CH5/EX5.19/EX5_19.sce | 47f9361b65b2aa21d2a07f58a92c074468ce5d4b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,312 | sce | EX5_19.sce | // Example 5.19
// Computation of (a) Locked rotor current per phase and minimum locked rotor
// torque when starting (b) Locked rotor current per phase when motor is delta
// connected (c) Code letter
// Page No.233
clc;
clear all;
close;
// Given data
V=460; // Rated Voltage
Z=0.547; // Locked rotor impedance
n=1750; // Speed of machine
hp=60; // Horsepower rating of device
f=60; // Frequency of motor
// (a) Locked rotor current per phase and minimum locked rotor torque
Vphase=V/sqrt(3); // Voltage/phase
Ilr1=Vphase/Z; // Locked rotor current/phase
Trated=hp*5252/(n); // Rated torque
Tlr=1.4*Trated; // Locked rotor torque
T2=Tlr*(Vphase/V)^2;
// (b) Locked rotor current per phase when motor is delta connected
Ilr=V/Z; // Locked rotor current/phase
Il=Ilr*sqrt(3); // Line current
// (c) Code letter
Slr=sqrt(3)*V*Il/1000; // Code letter at rated voltage
kVA=Slr/f;
// Display result on command window
printf("\n Locked rotor current per phase = %0.1f A",Ilr1);
printf("\n Minimum locked rotor torque = %0.0f lb-ft",T2);
printf("\n Locked rotor current per phase when motor is delta connected = %0.0f A ",Il);
printf("\n Code letter = %0.1f",kVA);
|
d5869d53105f5ba78c394418b79021f05f80912f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2705/CH4/EX4.5/Ex4_5.sce | c2c03004667d4e2a30e54fdf347045c572ab7f38 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 505 | sce | Ex4_5.sce | clear;
clc;
disp('Example 4.5');
// aim : To determine
// the specific enthalpy
// Given values
P = 70; // pressure, [kn/m^2]
x = .85; // Dryness fraction
// solution
// from steam table, at given pressure
hf = 376.8;// [kJ/kg]
hfg = 2283.3;// [kJ/kg]
// now using equation [2]
h = hf+x*hfg;// specific enthalpy of wet steam,[kJ/kg]
mprintf('\n The specific enthalpy of wet steam is = %f kJ/kg \n',h);
// There is minor variation in the book's answer
// End
|
b3b95d34df3e71b483a61c4bcfc8b34e0082c797 | 262ac6443426f24d5d9b13945d080affb0bd6d9b | /opgaves/veelvouden/edit-me.sce | ab9bec0adad8c0a12c6ce36e34af7c112609b849 | [] | no_license | slegers/Scilab | 9ebd1d486f28cf66e04b1552ad6e94ea4bc98a0b | 1b5dc3434def66355dafeb97c01916736a936301 | refs/heads/master | 2021-01-12T01:42:01.493578 | 2017-01-09T10:54:09 | 2017-01-09T10:54:09 | 78,420,343 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 331 | sce | edit-me.sce | function [r] = solve(n)
// Tel het aantal getallen tussen 0 en N die veelvoud zijn van 2 of 5.
count = 0
for i = 0:n
if(modulo(i,2) == 0) then
count = count + 1
else if (modulo(i,5) == 0) then
count = count + 1
end
end
end
r = count
endfunction
|
22baf2ab2852934f176142e50e752e9780a82115 | e806e966b06a53388fb300d89534354b222c2cad | /macros/blobAnalysis.sci | 216ab7e9ad48d910eaac287445a38955d17aec3c | [] | no_license | gursimarsingh/FOSSEE_Image_Processing_Toolbox | 76c9d524193ade302c48efe11936fe640f4de200 | a6df67e8bcd5159cde27556f4f6a315f8dc2215f | refs/heads/master | 2021-01-22T02:08:45.870957 | 2017-01-15T21:26:17 | 2017-01-15T21:26:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,671 | sci | blobAnalysis.sci | function [blob] = blobAnalysis(srcImg, varargin)
// Detects blob in the source image
//
// Calling Sequence
// [blob] = blobAnalysis(srcImg)
// [blob] = blobAnalysis(srcImg, Name, Value)
//
// Parameters
// srcImg: The input image Matrix
// Name: filteration method
// Value: filteration method constraints, [1X2] vector
// blob: stores different parameters of the blob
//
// Description
// The function uses SimpleBlobDetector function to detect the blobs then it checks for different Name Value pair arguments and accordingly returns the parameters of the blob such as 2D coordinates of the blob, size of the blob.
//
// The Name-Value pair may be any of following types :-
// <itemizedlist>
// <listitem><para>bool filterByArea, vector [minArea maxArea]</para></listitem>
// <listitem><para>bool filterByCircularity, vector [minCircularity maxCircularity]</para></listitem>
// <listitem><para>bool filterByConvexity, vector [minConvexity maxConvexity]</para></listitem>
// <listitem><para>bool filterByThreshold, vector [minThreshold maxThreshold]</para></listitem>
// </itemizedlist>
//
// Examples
// [srcImg] = imread('blobdetection.jpg');
// [blob] = blobAnalysis(srcImg);
// [blob] = blobAnalysis(srcImg, "filterByArea", [0.01 1]);
//
// Authors
// Deepshikha
[lhs,rhs] = argn(0)
// To check the number of input and output arguments
if rhs<1 then
error(msprintf(" Not enough input arguments"))
elseif rhs>10 then
error(msprintf(" Too many input arguments to the function"))
elseif lhs<1 then
error(msprintf(" Not enough output arguments"))
elseif lhs>1 then
error(msprintf(" Too many output arguments"))
end
srcMat = mattolist(srcImg)
if modulo(rhs,2) == 0 then
error(msprintf("Number of input arguments must be odd"))
end
select rhs
case 1 then
output = opencv_blobAnalysis(srcMat)
case 3 then
if typeof(varargin(1))<> "string"
error(msprintf("argument at position 2 must be string"))
end
output = opencv_blobAnalysis(srcMat, varargin(1), varargin(2))
case 5 then
if typeof(varargin(1))<> "string"
error(msprintf("argument at position 2 must be string"))
end
if typeof(varargin(3))<> "string"
error(msprintf("argument at position 4 must be string"))
end
output = opencv_blobAnalysis(srcMat, varargin(1), varargin(2), varargin(3), varargin(4))
case 7 then
if typeof(varargin(1))<> "string"
error(msprintf("argument at position 2 must be string"))
end
if typeof(varargin(3))<> "string"
error(msprintf("argument at position 4 must be string"))
end
if typeof(varargin(5))<> "string"
error(msprintf("argument at position 6 must be string"))
end
output = opencv_blobAnalysis(srcMat, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6))
case 9 then
if typeof(varargin(1))<> "string"
error(msprintf("argument at position 2 must be string"))
end
if typeof(varargin(3))<> "string"
error(msprintf("argument at position 4 must be string"))
end
if typeof(varargin(5))<> "string"
error(msprintf("argument at position 6 must be string"))
end
if typeof(varargin(7))<> "string"
error(msprintf("argument at position 8 must be string"))
end
output = opencv_blobAnalysis(srcMat, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6), varargin(7), varargin(8))
end
blob = struct("Points", output(1), "Size", output(2))
endfunction
|
d6e49e55bca5a583595819b3c47cfb4a7d175e51 | 31cfd6fac62ce1e0f8bb81f96db3978b301d4fd2 | /Raízes (zero de funções reais)/Muller/muller.sce | 532d9c495104b5d3c668328a82645985d6c772b8 | [] | no_license | PierreVieira/Scilab_Programs | 2205084b7356cf9ab68e8b04525e55fd7e29636c | 63d717f04db929c81dc1ff7fa9eb886f3c6b6a8c | refs/heads/master | 2020-09-09T00:59:34.924700 | 2020-03-17T18:46:50 | 2020-03-17T18:46:50 | 221,296,397 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 190 | sce | muller.sce | exec('muller.sci');
a = -1;
c = 2;
Toler = 0.01;
IterMax = 100;
[Raiz, Iter, CondErro] = Muller(a, c, Toler, IterMax);
printf("\nRaiz = %f\nIter = %d\nCondErro = %d", Raiz, Iter, CondErro);
|
d9b1c59d8671625ea233470564cb3339e3205115 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2789/CH4/EX4.11/Ex4_11.sce | 45b6a0f19be910e68524a8cf9244dfdb5c7a4979 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 467 | sce | Ex4_11.sce | clear;
clc;
//page no. 126
D = 6;//in
v = 100;//fps
p = 0;//psi
gam = 0.08;//specific weight in lb/cuft
R = 6;//in
theta = 60;//degrees
v_r = v*(1-(0.5*D/R)^2)*cos(theta*%pi/180);
v_t = -v*(1+(0.5*D/R)^2)*sin(theta*%pi/180);
V = sqrt(v_r^2 + v_t^2);
p = ((v^2 /(2*32.2)) - (V^2 /(2*32.2)) - (cos(theta*%pi/180)*sin(theta*%pi/180)))*gam;
printf('Velocity = %.1f fps\n Pressure = %.2f psf',V,p);
//there is an error in the answer given in textbook
|
0f56581e3cadb507cf51a4c6394335ec49b9fc38 | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH3/EX3.6/c3_6.sce | 074496fa113a160dae4258d1cfee7b4e3a931250 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,554 | sce | c3_6.sce | // (3.6) A closed, rigid tank filled with water vapor, initially at 20 MPa, 520C, is cooled until its temperature reaches 400C. Using the compressibility chart, determine. (a) the specific volume of the water vapor in m3/kg at the initial state.(b) the pressure in MPa at the final state.Compare the results of parts (a) and (b) with the values obtained from the superheated vapor table, Table A-4.
//solution
//variable initialization
p1 = 20 //initial pressure in MPa
T1 = 520 // initial temperature in degree celcius
T2 = 400 // final temperature in degree celcius
//part(a)
//from table A-1
Tc = 647.3 //critical temperature in kelvin
pc = 22.09 //critical pressure in MPa
Tr = (T1+273)/Tc //reduced temperature
Pr = p1/pc //reduced pressure
Z1 = .83 //compressibility factor
R = 8.314 //universal gas constant in SI unit
n = 1000/18.02 //number of moles in a kg of water
v1 = (Z1*n*R*(T1+273))/(p1*10^6)
printf('the specific volume in state1 in m3/Kg is:\n\t v1 = %f',v1)
printf('\n and the corresponding value obtained from table A-4 is .01551 m^3/Kg')
//part(b)
vr = v1*(pc*10^6)/(n*R*Tc)
Tr2 = (T2+273)/Tc
//at above vr and Tr2
PR = .69
P2 = pc*PR
printf('\n\n the pressure in MPa in the final state is: \n\t P2 = %f',P2)
printf('\n and the corresponding value from the table is 15.16Mpa')
|
9dcc4bd774310a90896fec7dc321175092f4dfb8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH1/EX1.15/Ex1_15.sce | 1b1bc836b6c8f849dd0d8e2447b92ac2e78bafe9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 326 | sce | Ex1_15.sce | //Example 1_15
clc();
clear;
//To find the diameter of the 5th bright ring
n=5
lemda=5460 //units in angstroam
lemda=5460*10^-8 //units in cm
u=1.50
f=400 //units in cm
R=(u-1)*2*f
D=sqrt(2*(2*n-1)*lemda*R)
printf("The diameter of the 5th fringe %.2f mts",D)
|
f5d3ff63d685914096c4d3973c930ae1135a263b | a8592d34f144b71794ebf30f1c2a1b5faf0b053c | /PDE/scilab/test_heat_1d_ex01.sce | 81e277df0badcd9da2acd62f5815558b675dad8e | [] | no_license | f-fathurrahman/ffr-MetodeNumerik | ee9a6a7153b174b1ba3d714fe61ccbd1cb1dd327 | e3a9da224c0fd5b32e671708e890018a3c4104c4 | refs/heads/master | 2023-07-19T22:29:38.810143 | 2023-07-07T10:02:34 | 2023-07-07T10:02:34 | 107,272,110 | 2 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 1,466 | sce | test_heat_1d_ex01.sce | exec("to_string.sce",-1)
exec("heat_1d_euler_exp.sce",-1)
exec("heat_1d_euler_imp.sce",-1)
exec("heat_1d_CN.sce",-1)
// initial condition (function of x)
function T = it0(x)
T = sin(%pi*x)
endfunction
// boundary condition (function of t)
function T = bx0(t)
T = 0.0
endfunction
function T = bxf(t)
T = 0.0
endfunction
function T = analytic_solution(x,t)
T = sin(%pi*x)*exp(-%pi*%pi*t)
endfunction
function plot_to_png(u,x,t,prefix)
Nt = length(t)-1
for it = 1:Nt+1
clf()
plot(x,u(:,it))
set(gca(), "data_bounds", [0,1,0,1])
strt = "t = " + string(t(it))
xstring(0.8,0.9,strt)
xs2png(gcf(), prefix + to_string(it) + ".png")
printf("Done output solution for t = %f\n", t(it))
end
endfunction
a = 1
xf = 1
Nx = 25
T = 0.1
Nt = 100
// Explicit Euler
[u1,x,t] = heat_1d_euler_exp( a, xf, T, it0, bx0, bxf, Nx, Nt )
plot_to_png(u1,x,t,"TEMP_exp_")
// Using implicit Euler method
[u2,x,t] = heat_1d_euler_imp( a, xf, T, it0, bx0, bxf, Nx, Nt )
plot_to_png(u2,x,t,"TEMP_imp_")
// Using Crank-Nicholson method
[u3,x,t] = heat_1d_CN( a, xf, T, it0, bx0, bxf, Nx, Nt )
plot_to_png(u3,x,t,"TEMP_CN_")
NxNt = Nx*Nt
u_analytic = analytic_solution(x,t)
//How far from the analytical solution?
err1 = norm((u1-u_analytic))/NxNt
err2 = norm((u2-u_analytic))/NxNt
err3 = norm((u3-u_analytic))/NxNt
printf("err1 = %f\n", err1)
printf("err2 = %f\n", err2)
printf("err3 = %f\n", err3)
if getscilabmode() ~= "STD"
quit()
end
|
97e30cd43c2ec3322b945827c1a40437b6bb33f9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1808/CH4/EX4.7/Chapter4_Example7.sce | 05967e0af30ab9bfd913a6c1970b096ee7cb6e3f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,336 | sce | Chapter4_Example7.sce | clc
clear
//INPUT DATA
pb=25;//Saturated vapour in bar
pc=0.2;//Saturated liquid in bar
T111=300;//Temperature in degree C
h1=2800.9;//Enthalpy in kJ/kg
hb=962;//Enthalpy in kJ/kg
h5=2609.9;//Enthalpy in kJ/kg
h3=251.5;//Enthalpy in kJ/kg
S5=7.9094;//Entropy in kJ/kg.K
S3=0.8321;//Entropy in kJ/kg.K
Sb=2.5543;//Entropy in kJ/kg.K
S1=6.2536;//Entropy in kJ/kg.K
x1=0.8;////Quality of steam
h111=3008.9;//Enthalpy in kJ/kg
S111=6.644;////Entropy in kJ/kg.K
//CALCULATIONS
h11=(hb+x1*(h1-hb));//Enthalpy in kJ/kg
S11=(Sb+x1*(S1-Sb));//Enthalpy in kJ/kg
x21=((S11-S3)/(S5-S3));//quality of steam
h21=(h3+(x21*(h5-h3)));//Enthalpy in kJ/kg
nRi=(((h11-h21)/(h11-h3))*100);//Rankine cycle efficiency in percentage
x2=((S1-S3)/(S5-S3));//quality of steam
h2=h3+x2*(h5-h3);//Enthalpy in kJ/kg
nRi2=(((h1-h2)/(h1-h3))*100);//Rankine cycle efficiency in percentage
x211=((S111-S3)/(S5-S3));//quality of steam
h211=(h3+(x211*(h5-h3)));//Enthalpy in kJ/kg
nRi1=(((h111-h211)/(h111-h3))*100);//Rankine cycle efficiency in percentage
//OUTPUT
printf('(i) The Rankine cycle efficiency when steam is dry at turbine inlet is %3.2f percent \n(ii) The Rankine cycle efficiency when steam is saturated is %3.2f percentage \n(iii)The Rankine cycle efficiency when steam is superheated is %3.2f percent ',nRi,nRi2,nRi1)
|
baa6701cf498328234ed3fdbe9b19976c6f96a8a | 4bbc2bd7e905b75d38d36d8eefdf3e34ba805727 | /ee/contrib/dspic/macros/flex_blocks/AMAZING/AMAZING_tuner.sci | 09582fd545fca249eccc8df6dc61740a2340eac9 | [] | no_license | mannychang/erika2_Scicos-FLEX | 397be88001bdef59c0515652a365dbd645d60240 | 12bb5aa162fa6b6fd6601e0dacc972d7b5f508ba | refs/heads/master | 2021-02-08T17:01:20.857172 | 2012-07-10T12:18:28 | 2012-07-10T12:18:28 | 244,174,890 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,953 | sci | AMAZING_tuner.sci | function [x,y,typ] = AMAZING_tuner(job,arg1,arg2)
x=[];y=[];typ=[];
select job
case 'plot' then
exprs=arg1.graphics.exprs;
res_x = exprs(1)
res_y = exprs(2)
standard_draw(arg1)
case 'getinputs' then
[x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then
[x,y,typ]=standard_outputs(arg1)
case 'getorigin' then
[x,y]=standard_origin(arg1)
case 'set' then
x=arg1
model=arg1.model;graphics=arg1.graphics;
exprs=graphics.exprs;
while %t do
[ok,res_x,res_y,exprs] = getvalue('Amazing touch panel tuner',..
['X Resolution [100..4096]';..
'Y Resolution [100..4096]:'],..
list('vec',-1,'vec',-1),exprs)
if ~ok then break,end
if(res_x<100 | res_x>4096) then
warning('Accepted resolution values in [100..4096]. Keeping previous values.');
break;
end
if(res_y<100 | res_y>4096) then
warning('Accepted resolution values in [100..4096]. Keeping previous values.');
break;
end
in=[],
out = [],
[model,graphics,ok]=check_io(model,graphics,in,out,1,[])
if ok then
graphics.exprs=exprs;
model.rpar=[];
model.ipar=[res_x;
res_y];
model.dstate=[];
x.graphics=graphics;x.model=model
break
end
end
case 'define' then
res_x = 240
res_y = 180
model = scicos_model()
model.sim = list('amazing_tuner',4)
model.in=[],
model.out=[],
model.evtin=1
model.rpar=[]
model.ipar=[res_x;res_y]
model.dstate=[1];
model.blocktype='d'
model.dep_ut=[%t %f]
exprs=[sci2exp(res_x);sci2exp(res_y)]
gr_i=['xstringb(orig(1),orig(2),..
[''AMAZING'';..
''tuner'' ;..
string(res_x) + ''x'' + string(res_y)],..
sz(1),sz(2),''fill'');']
x=standard_define([3 2],model,exprs,gr_i)
end
endfunction
|
0bd3a6d63cd90cd2abdd430b56a303cac4b3afc9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH19/EX19.4/19_4.sce | fa473586bf7c682a095fa614974fcfa848f4c1fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 611 | sce | 19_4.sce | //chapter 19
//example 19.4
//page 600
clear all;
clc ;
//given
Es=0.5;//supply voltage V
R1=200;//series resistance ohm
VD1=-Es;//when Id=0
//when VD=0
VR1=Es;
ID1=1000*VR1/R1;
VD=[VD1 0];
ID=[0 ID1];
plot(VD,ID,'-.*');
xtitle('dc load line with points (-0.5,0)and (0,2.5)','VD in V','ID in mA')
a=gca();
a.data_bounds=[-1,-0.5;1 3];
//from intersection of load line and illumination characteristics
printf('\nApproximate values:')
printf("\nAt 1500 lm/m^2,Id=-0.2 mA,Vd=-0.45 V");
printf("\nAt 10000 lm/m^2,Id=-1.9 mA,Vd=-0.12 V");
printf("\nAt 20000 lm/m^2,Id=-3.7 mA,Vd=0.22 V");
|
a5870ad48d48db0e44f6ee5a3d99ddbdb1459f13 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH4/EX4.11/Chapter4_Example11.sce | 7ba02eb0c588647719f15830fcb197ddc943ffd8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 785 | sce | Chapter4_Example11.sce | //Chapter-4, Illustration 11, Page 174
//Title: Steam Nozzles and Steam Turbines
//=============================================================================
clc
clear
//INPUT DATA
P1=10;//Pressure at point 1 in bar
T1=452.9;//Temperature at point 1 in K
P2=4;//Pressure at point 2 in bar
n=1.3;//Adiabatic gas constant
Ps=0.803;//Saturation pressure at T2 in bar
Ts=143.6;//Saturation temperature at P2 in oC
//CALCULATIONS
x=(n-1)/n;//Ratio
T2=((P2/P1)^x)*T1;//Temperature at point 2 in K
Ds=P2/Ps;//Degree of supersaturation
Du=Ts-(T2-273);//Degree of undercooling
//OUTPUT
mprintf('Degree of supersaturation is %3.2f \n Degree of undercooling %3.0f oC',Ds,Du)
//==============================END OF PROGRAM=================================
|
3f32491349b481616903bd171db8bf99505b31b0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH13/EX13.12/example13_12.sce | 1060da8aa00b12929f85da8ed8b65f86074c7fe5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,190 | sce | example13_12.sce | //Chapter 13
//Example 13_12
//Page 323
clear;clc;
Va=440;
Ic=100;
Id=200;
Ie=250;
If=300;
Vb=430;
Lac=150;
Lcd=150;
Lde=50;
Lef=100;
Lfb=150;
r=0.01;
l=600;
//resistance for 100 m length of conductor
R=2*r;
Rac=R*Lac/100;
Rcd=R*Lcd/100;
Rde=R*Lde/100;
Ref=R*Lef/100;
Rfb=R*Lfb/100;
//considering drop across various sections of the distributor and adding them to calculate Ia
Ia=(Va-Vb+(Ic*Rcd)+(Ic+Id)*Rde+(Ic+Id+Ie)*Ref+(Ic+Id+Ie+If)*Rfb)/(Rac+Rcd+Rde+Ref+Rfb);
Iac=Ia;
Icd=Ia-Ic;
Ide=Ia-Ic-Id;
Ief=Ia-Ic-Id-Ie;
Ifb=Ia-Ic-Id-Ie-If;
Ib=abs(Ifb);
P=Iac^2*Rac+Icd^2*Rcd+Ide^2*Rde+Ief^2*Ref+Ifb^2*Rfb;
printf("Resistance per 100 m of distributor = %.2f ohm \n\n", R);
printf("Resistance of section AC = %.3f ohm \n", Rac);
printf("Resistance of section CD = %.3f ohm \n", Rcd);
printf("Resistance of section DE = %.3f ohm \n", Rde);
printf("Resistance of section EF = %.3f ohm \n", Ref);
printf("Resistance of section FB = %.3f ohm \n\n", Rfb);
printf("Ia = %.1f A \n\n", Ia);
printf("(i) Current supplied from end A = Ia = %.2f A \n", Ia);
printf(" Current supplied from end B = Ib = %.2f A \n\n", Ib);
printf("(ii) Power loss in the distributor = %.3f kW \n\n", P/1000);
|
5e4bfbfa55ef8b804b9c02526a2c9d8ad2312b85 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1847/CH2/EX2.39/Ch02Ex39.sce | f74275481f3f11c016ef23996d25023fa6c1e408 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 719 | sce | Ch02Ex39.sce | // Scilab Code Ex2.39:: Page-2.29 (2009)
clc; clear;
t = 0.75e-06; // Thickness of the glass plate, m
mu = 1.5; // Refractive index of the glass plate
lambda1 = 4000e-010; // First wavelength of visible range, cm
lambda2 = 7000e-010; // Last wavelength of visible range, cm
r = 0; // Angle of refraction for normal incidence, degrees
n = zeros(2);
// For bright fringe in reflected pattern,
// 2*mu*t*cosd(r) = (2*n+1)*lambda/2, solving for n
// For lambda1
n(1) = (4*mu*t*cosd(r)/lambda1-1)/2;
// For lambda2
n(2) = (4*mu*t*cosd(r)/lambda2-1)/2;
printf("\nFor n = %d and n = %d the light is strongly reflected.", n(1), ceil(n(2)));
// Result
// For n = 5 and n = 3 the light is strongly reflected.
|
235ae9f1b7ea012e93368a906d3b451e9e9abb4c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH17/EX17.9/Ex17_9.sce | d74c7d23a11fc30885d3370663812443f64cc9c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 916 | sce | Ex17_9.sce | //Exa 17.9
// To calculate Radio link budget for uplink and downlink
// Refering Table 17.1 on page no 613
clc;
clear all;
Rc=3.84;//Chip rate in Mcps
Ri=16;//Data rate in kbps
UL=0.5;//UL loading factor
DL=0.9;//DL loading factor
Eb_NtU=4;//in dB
Eb_NtD=6;// in dB
Gm=0;//Mobile antenna gain in dBi
Gb=18;//Base station gain in dBi
//solution
disp("The Okumara-Hata model for an urban macro-cell with a base station antenna height of 25m, a mobile station height of 1.5m, and a carrier frequency of 1950MHz gives Lp =138.5+35.7*log10(R) where R is radius of hexagonal cell");
disp("From table 17.1, Lp(Allowable path loss) for uplink is 139.65 dB");
R=10^((139.65-138.5)/35.7);
printf(' Cell Radius is %.3f km \n ',R);
Area=round(2.6*R^2);
printf('Area covered by hexagonal cell is %d km^2 \n ',Area);
printf('Number of BTSs required to cover an area of 2400 Km^2 are %d \n ',2400/Area);
|
581e567598f39b0670c4e9f35f1cb355929f1483 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1076/CH12/EX12.4/12_4.sce | 24c5288f02ef5cee47d2300d3f0dc08547a59658 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 144 | sce | 12_4.sce | clear
clc
E=100
Zc=400
L=4000
mprintf("et= %d exp( - %.1f t) KV\n", 2*E, Zc/L)
mprintf("er= %d (2*exp( - %.1f t) -1) KV\n", E, Zc/L)
|
90670d6eedf58f9c1dfaec6d8666b474caffbd78 | 117d2e73730351cc15ef378cd319a907c507e476 | /ajuste de curvas/difencasDiv.sce | bb8b6bda0ab9f39c01730e46def415af47b1e787 | [
"Apache-2.0"
] | permissive | Trindad/algoritmos-calculo-numerico | b900768350277a46da636a3d0da9b8c83c4da780 | 1dcafd39d2281cb3065ba9742c693e5e49e2a08c | refs/heads/master | 2021-01-22T21:28:09.251265 | 2014-07-23T14:08:55 | 2014-07-23T14:08:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 277 | sce | difencasDiv.sce | function dd=newtondd(x,y)
disp("")
disp ("Output for the divided diferences")
disp("")
for i=1:length(x)
dd(i,1)=y(i);
endfor
for i=2:length(x)
for j=2:i
dd(i,j)=(dd(i,j-1)-dd(i-1,j-1))/(x(i)-x(i-j+1));
endfor
endfor
dd=[x' dd];
endfunction |
74a85c026baefdbf0a494e4381b781e7d8c0fffb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2219/CH6/EX6.4/Ex6_4.sce | 1da566a6daa0585a97b540847c58cae8681fd2d8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 448 | sce | Ex6_4.sce | // Chapter 6 example 4
//------------------------------------------------------------------------------
clc;
clear;
// Given data
L = 10^-6; // gate length
Vs = 10^5; // saturation velocity in m/s
// calculations
fT = Vs/(2*%pi*L); // cut-off freq.
// Output
mprintf('Unity gain cut-off frequency = %3.0f Ghz',fT/10^9);
//------------------------------------------------------------------------------
|
5b09239ac7184ffcf39709df42b81559508468e8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH4/EX4.55/55.sce | a6e182780755c6eb98088c30a2b11e6cd835ae73 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 373 | sce | 55.sce | clc
p1=5.5*10^5; //Pa
x1=1;
p2=0.75*10^5; //Pa
v1=0.3427; //m^3/kg
v2=p1*v1/p2;
// Since v2 > vg (at 0.75 bar), therefore, the steam is superheated at state 2.
u2=2567.25; //kJ/kg
u1=2565; //kJ/kg
du=u2-u1; //kJ/kg
C=p1*v1;
disp("Work done = ")
W=integrate('C/v', 'v', v1,v2)
disp("N-m/kg")
disp("Heat supplied = ")
Q=du+W/10^3;
disp(Q)
disp("kJ/kg") |
4a4e55fce9b68c67aac180a2d6a1be102b9675a0 | 8016059350f017142cd5cdf2df5cabf94cf3c477 | /Digital Communication/ramp expo.sce | bdb391ae0ef750c6ced8db4a328163d48982e74e | [] | no_license | aftalam/5th-sem-labworks | 07062dc9824af810a7d7970c7907ab999fda7c52 | d3c858587369757ccbed96bc9b29e8a1fa709824 | refs/heads/master | 2022-11-11T23:58:51.147782 | 2020-07-05T18:13:59 | 2020-07-05T18:13:59 | 275,115,844 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 612 | sce | ramp expo.sce | //Implementation of Ramp & Exponential Signals
clc
clear all
t = 0:1:50;
for n = 0:50;
x(n+1) = n;
end
subplot(3,2,1)
plot(t,x)
xtitle('Ramp Continuous','Time','Amplitude')
subplot(3,2,2)
plot2d3(t,x)
xtitle('Ramp Discrete','Time','Amplitude')
x = [0:0.1:2*%pi];
e = exp(x);
subplot(3,2,3)
plot(x,e)
xtitle('exp(x) Continuous','Time','Amplitude')
subplot(3,2,4)
plot2d3(x,e)
xtitle('exp(x) Discrete','Time','Amplitude')
e = exp(-x);
subplot(3,2,5)
plot(x,e)
xtitle('exp(-x) Continuous','Time','Amplitude')
subplot(3,2,6)
plot2d3(x,e)
xtitle('exp(-x) Discrete','Time','Amplitude') |
39fb549914ef6a5d20cb084bb9a58e79119bb291 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3834/CH5/EX5.3.4/Ex5_3_4.sce | cc153d0ffdb0179c8114c3e3f750064ef4eb6481 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 404 | sce | Ex5_3_4.sce | //Fiber Optics Communication Technology, by Djafer K. Mynbaev and Lovell L.scheiner
//Windows 8
//Scilab version- 6.0.0
//Example 5.3.4
clc;
clear;
//given
Dpmd=0.5;//polarization mode dispersion coefficient in ps/sqrt(km)
L=100;//fiber length in km
deltatpmd=Dpmd*sqrt(L);//Pulse spreading due to PMD in ps
mprintf("Pulse spread caused by PMD for single mode fiber= %.0f ps",deltatpmd);
|
d9c07f1f3322c0d73e5be4b0ff8763208f9c0e62 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3718/CH2/EX2.1/Ex2_1.sce | f0381c946d03aaad5ab5ce09402d7e5273914f08 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 631 | sce | Ex2_1.sce | //Chapter 2: Spectroscopy and Photochemistry
//Problem: 1
clc;
//Declaration of Constants
m_br79 = 78.9183 // Mass of 79Br,in amu
m_br81 = 80.9163 // Mass of 91Br,in amu
Na = 6.022 * 10 ** 23 // Mole constant,per mol
pi = 3.141 // Pi
c = 3 * 10 ** 10 // Speed of light,in cm/s
//Declaration of Variable
wave_no = 323.2 // Wave no. of fund. vibration of 79Br - 81Br, /cm
// Solution
mu = (m_br79 * m_br81) / ((m_br79 + m_br81) * Na)
k = 4 * (pi * c * wave_no) ** 2 * mu * 10 ** -3
mprintf("The force constant of the bond is %.2e N/m\n",k)
|
c0e1a3a68518f734e91391347721e43ff2c7fba9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /698/CH14/EX14.10/P10_Determination_of_axial_thrust_and_pressure_intensity.sce | ed55773e3dd13c9ca618d7b41d98ad149c8eca28 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,896 | sce | P10_Determination_of_axial_thrust_and_pressure_intensity.sce | clc
//Example 14.10
//Determination of axial thrust and pressure intensity
//------------------------------------------------------------------------------
//Given Data:
//Power to be transmitted
P=10000 //Watt
//Speed
N=1000 //rpm
//Outer and Inner diameters
Do=0.15 //m
Di=0.1 //m
Ro=0.15/2 //m
Ri=0.1/2 //m
// number of surfaces
n=6
//coefficient of friction
f=0.3
//------------------------------------------------------------------------------
// Using uniform wear theory
// Mean radius
Rm=(Ro+Ri)/2
// Torque(T)=power/angular velocity
T=(P*60)/(2*%pi*N)
// T=F*f*Rm*n
// Axial thrust F
F=T/(f*Rm*n)
//contact pressure at radius r:
//p=F/(2*%pi*(Ro-Ri)*r)
//maximum contact pressure(pmax) is at inner radius
pmax=F/(2*%pi*(Ro-Ri)*Ri)
//minimum contact pressure(pmin) is at outer radius
pmin=F/(2*%pi*(Ro-Ri)*Ro)
// average contact pressure
pavg=F/(2*%pi*(Ro-Ri)*Rm)
//------------------------------------------------------------------------------
//Printing result file to .txt
res10=mopen(TMPDIR+'10_determination_of_axial_thrust_and_pressure_intensity.txt','wt')
mfprintf(res10,"(a)Axial thrust required to transmit the power is %0.2f N\n",F)
mfprintf(res10,"(b)The pressure equation is:\n\tp=F/(2*pi*(Ro-Ri)*r)\n\n")
mfprintf(res10,"(c)\tMaximum contact pressure occurs at inner radius, and is equal to %0.3f MPa\n",pmax*(10^-6))
mfprintf(res10," \tMinimum contact pressure occurs at outer radius, and is equal to %0.3f MPa\n",pmin*(10^-6))
mfprintf(res10," \tAverage contact pressure is %0.3f MPa\n",pavg*(10^-6))
mclose(res10)
if (isdef('editor') | (funptr('editor')<>0)) then
editor(TMPDIR+'10_determination_of_axial_thrust_and_pressure_intensity.txt')
end
//------------------------------------------------------------------------------
//---------------------------------End of program------------------------------- |
47608c4de001b37b81af8e3bcada11ca851a5005 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH4/EX4.7/4_7.sce | f88178218a9bfedf00addf640276dba278426909 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 706 | sce | 4_7.sce | clc,clear
printf('Example 4.7\n\n')
Ns=250 //Synchronous speed in rpm
f=50
Slots=288
E_line=6600
Pole=120*f/Ns
n=Slots/Pole //slots per pole
m=n/3 //slots per pole per phase
beeta=180/n //slot angle
conductors_per_slot=32 //16 conductors per coil-side *2 coil-sides per slot
K_d=sind(m*beeta/2) /(m*sind(beeta/2)) //distribution factor
alpha=2*beeta// angle of short pitch
K_c=cosd(alpha/2) //coil span factor
Z = Slots*conductors_per_slot //total conductors
Z_ph=Z/3 //Conductors per phase
T_ph=Z_ph/2 //turns per phase
E_ph=E_line/sqrt(3)
phi=E_ph/(4.44*K_c*K_d*f*T_ph) //Because E_ph=4.44 *K_c *K_d *phi *f *T_ph
printf('Flux per pole is %.0f mWb ',phi*1000)
|
987aee83df80b801a6d81346efa7e3bcd329b72a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH8/EX8.2/Ch08Ex2.sce | 243b4456eac4c8a1857039e14097f2af710025d1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 519 | sce | Ch08Ex2.sce | // Scilab Code Ex8.2: Page-430 (2011)
clc;clear;
d = 2e-003;....// Thickness of the piece of quarts crystal, m
rho = 2650;....// Density of the crystal, kg/meter-cube
Y = 7.9e+010;....// Value of Youngs Modulus, N/metre-square
n = 1/(2*d)*sqrt(Y/rho); //The frequency of the fundamental mode of vibration, Hz
printf("\nThe frequency of the fundamental mode of vibration in quatrz crystal = %5.3f Hz", n/1e+006);
// Result
// The frequency of the fundamental mode of vibration in quatrz crystal = 1.365 Hz |
6dbfda57fcca61a17eab14b20f7644e5d7778def | e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4 | /New LSTMAttn Model/.data/form-split/GOLD-TEST/vro.tst | 465663c2423e905df0b03055f37c5e31a53ec89f | [] | no_license | davidgu13/Lemma-vs-Form-Splits | c154f1c0c7b84ba5b325b17507012d41b9ad5cfe | 3cce087f756420523f5a14234d02482452a7bfa5 | refs/heads/master | 2023-08-01T16:15:52.417307 | 2021-09-14T20:19:28 | 2021-09-14T20:19:28 | 395,023,433 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,480 | tst | vro.tst | alonõ alotsõhe N;IN+ALL;SG
silm .silmä N;IN+ALL;SG
täi .täihe N;IN+ALL;SG
herneh herneh N;NOM;SG
tarõ tarri N;PRT;PL
kerge kerget N;PRT;SG
vari .varjo N;IN+ALL;SG
tükk tükke N;IN+ALL;PL
kuu kuu N;NOM;SG
talo tallõ N;GEN;PL
täüs' täüt N;PRT;SG
kannõl' kandlidõ N;GEN;PL
kogõr kogrõ N;GEN;SG
tarõ tarõ N;GEN;SG
tükk tükkü N;IN+ALL;SG
aig ao N;GEN;SG
silm silmä N;GEN;SG
ehitüs ehitüisi N;PRT;PL
sõda sõto N;PRT;PL
rits'kas rits'kilõ N;ALL;PL
kubõl kubla N;GEN;SG
väits .väitsi N;PRT;PL
kanarik kanarikkõ N;GEN;PL
aig .aigõ N;GEN;PL
üü: öid N;PRT;PL
tükk tükke N;PRT;PL
jalg .jalga N;PRT;SG
kerge kergile N;ALL;PL
laiõh laiõh N;NOM;SG
kana kana N;NOM;SG
pini pinne N;PRT;PL
alomanõ alomast N;PRT;SG
alomanõ alomastõ N;IN+ALL;SG
kotus kotus N;NOM;SG
tarõ tarilõ N;ALL;PL
asõq asõmõhe N;IN+ALL;SG
pini pini N;GEN;SG
kommõq kombihe N;IN+ALL;PL
kask kask N;NOM;SG
pini pinne N;IN+ALL;PL
vari var'o N;GEN;SG
kannõl' kandlõhe N;IN+ALL;SG
kuu:l' kuu:l' N;NOM;SG
kannõl' kandlilõ N;ALL;PL
kuld kuld N;NOM;SG
tarõ tarrõ N;PRT;SG
üü: .öihe N;IN+ALL;PL
asi .asja N;PRT;SG
kask .kaskihe N;IN+ALL;PL
hõrak hõrakat N;PRT;SG
kerge kergit N;PRT;PL
herneh hernihe N;IN+ALL;PL
kuu:l' kuu:li N;IN+ALL;SG
nagõl naglolõ N;ALL;PL
võrokõnõ võrokõisihe N;IN+ALL;PL
igä ikile N;ALL;PL
kuldnõ kuldsõ N;GEN;SG
kii:l' kii:li N;IN+ALL;PL
üü: üü:he N;IN+ALL;SG
ehitüs ehitüst N;PRT;SG
kii:l' keelile N;ALL;PL
hammas hammas N;NOM;SG
.suhvli .suhvli N;NOM;SG
puhm puhmõ N;GEN;PL
kanarik kanarikkõ N;IN+ALL;PL
läteq lättit N;PRT;PL
särg' .särgi N;IN+ALL;PL
.suhvli .suhvlihe N;IN+ALL;PL
igä ikki N;IN+ALL;PL
kanarik kanarigu N;GEN;SG
tervüs tervüid N;PRT;PL
käsi käsi N;NOM;SG
tütär' tütrit N;PRT;PL
kask .kaskat N;PRT;SG
nagõl nagla N;GEN;SG
sõda sõda N;NOM;SG
laiõh laidõhe N;IN+ALL;SG
elläi eläjä N;GEN;SG
tütär' tütrihe N;IN+ALL;PL
jalg .jalgo N;IN+ALL;PL
nagõl nagõl N;NOM;SG
kand .kandõ N;IN+ALL;PL
makõ makõ N;NOM;SG
nagõl .naklo N;GEN;PL
kii:l' kii:l' N;NOM;SG
kuu .kuihõ N;IN+ALL;PL
kogõr .kokrõ N;IN+ALL;SG
tervüs tervüide N;GEN;PL
hain haina N;IN+ALL;SG
tükk tükü N;GEN;SG
repän' rebäside N;GEN;PL
tarõ tarri N;GEN;PL
kogõr kogrilõ N;ALL;PL
kana kanno N;PRT;PL
kannõl' kannõl' N;NOM;SG
makõ makõ N;GEN;SG
väits .väitsi N;GEN;PL
herneh hernit N;PRT;PL
igä ikkä N;IN+ALL;SG
kotus kotussõhe N;IN+ALL;SG
laiõh laidihe N;IN+ALL;PL
kanarik kanarikku N;IN+ALL;SG
vari vari N;NOM;SG
|
6319285504d23f87ef099722940ee040f58401e9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2837/CH18/EX18.1/Ex18_1.sce | 7fc4c1a4ec4d0ac9f0f8e07fc3b07c8333ae3c02 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 311 | sce | Ex18_1.sce | clc
clear
//Initalization of variables
q=200 //cfm
p2=90 //psia
p1=14.5 //psia
n=1.36
//calculations
hpp=n/(n-1) *144*p1*q/33000 *(1- (p2/p1))^((n-1)/n)
//results
printf("Theoretical horse power required = %.1f hp",hpp)
disp("The answer given in textbook is wrong. Please verify with a calculator")
|
33633c07463ea2b37c9eaf953a1cc4c7e2821939 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH2/EX2.12/ex2_12.sce | 8611cd6652b22d5ec2a111d57587275356f62cd7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 138 | sce | ex2_12.sce | clc;
v=50; //velocity in m/sec
s=500; //distance in m
disp((v*v)/(2*s),"Acc. in m/sec square = "); //displaying result |
5cc7652d193240eaf4ce246083a3da574e7bba06 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH9/EX9.56/EX9_56.sce | 0ee719de85294a08ae6c2e68c01abdad418de600 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 385 | sce | EX9_56.sce | //example 9-56 pg no-636
Z1=8.05+%i*2.156; //IMPEDANCE
XL=2.155;
W=5000;
L=XL/W;
disp('i)INDUCTANCE (L) = '+string (L)+' H')
Z2=4.166-%i*7.216; //IMPEDANCE
Xc=7.216;
C=1/[W*Xc];
disp('ii)CAPACITOR (C) = '+string (C)+' F')
D=11.708; //DIAMETER
XL1=12.81;
L1=XL1/W;
disp('i) INDUCTANCE (L1) = '+string (L1)+' H')
|
b8421cb31393c8ac94669d73258902f5a9ef15ca | 676ffceabdfe022b6381807def2ea401302430ac | /library/Demos/MultiRegions/Tests/Helmholtz2D_CG_P7_PreconDiagonal.tst | 2f8b6246cc373db5a18d1089f917e0af1dc62d85 | [
"MIT"
] | permissive | mathLab/ITHACA-SEM | 3adf7a49567040398d758f4ee258276fee80065e | 065a269e3f18f2fc9d9f4abd9d47abba14d0933b | refs/heads/master | 2022-07-06T23:42:51.869689 | 2022-06-21T13:27:18 | 2022-06-21T13:27:18 | 136,485,665 | 10 | 5 | MIT | 2019-05-15T08:31:40 | 2018-06-07T14:01:54 | Makefile | UTF-8 | Scilab | false | false | 712 | tst | Helmholtz2D_CG_P7_PreconDiagonal.tst | <?xml version="1.0" encoding="utf-8" ?>
<test>
<description>Helmholtz 2D CG with P=7 and block preconditioner</description>
<executable>Helmholtz2D</executable>
<parameters>-v -I Preconditioner=Diagonal Helmholtz2D_P7_Periodic.xml</parameters>
<files>
<file description="Session File">Helmholtz2D_P7_Periodic.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value tolerance="1e-8">6.82374e-07</value>
</metric>
<metric type="Linf" id="2">
<value tolerance="1e-8">9.43919e-07</value>
</metric>
<metric type="Precon" id="3">
<value tolerance="2">17</value>
</metric>
</metrics>
</test>
|
15cbd4df3c872e321c50d62bce4cf7d93eddd9df | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH14/EX14.4/ex_14_4.sce | 1099a8e1a831867bd3911d032ce5fdc7fe5a5e3d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 192 | sce | ex_14_4.sce |
clc
//solution
//given
//ref fig 14.1
W=50*10^3//N
L=100//mm
x=1.4//m
fb=100//N/mm^2
M=W*L//N-mm
//let d eb dia
//M=(%pi/32)*fb*d^3
d=(M/9.82)^(1/3)//mm
printf("the dia of axle is,%f mm\n",d) |
fb73bec27b526b2b855cf629c38fd5d91b6af698 | 449d555969bfd7befe906877abab098c6e63a0e8 | /409/CH15/EX15.2/Example15_2.sce | 597fd0bfb9021e75c603a1b90be9e071efd08e4a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 627 | sce | Example15_2.sce | clear ;
clc;
// Example 15.2
printf('Example 15.2\n\n');
//Page No. 465
// Solution
// Given
R = 10.73 ;// gas constant-[(cubic feet *psia)/(lb mol *R)]
a = 3.49 * 10^4 ;//(psia) *(cubic feet/lb mol)^2
b = 1.45 ;// (cubic feet)/(lb mol)
p = 679.7 ;// Pressure -[ psia]
n = 1.136 ;// Amount of mole -[lb mol]
T = 683 ;// Temperature - [degree R]
// Get V using Van der Waal's eqn.
deff('[y]=g(V)','y=(V^3) -(((p*n*b) + (n*R*T))/p)*V^2 + ((n^2)*a*V/p) - ((n^3)*a*b)/p');
V=fsolve(b,g) ;// Volume of final solution (volume of vessel) [cubic feet]
printf('\nVolume of final solution (volume of vessel) is %.0f cubic feet.',V); |
fa00cc447bce704374a0994b45a4c9f80155a2a0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH4/EX4.7/7.sce | 0a9620e1e45159b3d19b0211f233bc6c8fa728b6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 167 | sce | 7.sce | clc
W_12=-82; //kJ
Q_12=-45; //kJ
dU_12=Q_12 - W_12;
W_21=100; //kJ
dU_21=-dU_12;
Q_21=dU_21 + W_21;
disp("Heat added to the system = ")
disp(Q_21)
disp("kJ") |
43eb32b4486e56d87ea34fa4b975193a5c56fb5e | e785db8227eb2cce41f518c275b656aec1ccceb7 | /issue1.tst | cdf78626229c2bfbc84865a83795a19752773524 | [] | no_license | vid083/hello-world | 0b02607beba30f176ff1eb61f84bc2baf94c4540 | 46c7829fbdfb02d6d8ce45c04c36ecb5d6e0ef91 | refs/heads/master | 2022-01-23T09:26:51.692967 | 2019-08-01T15:20:22 | 2019-08-01T15:20:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,016 | tst | issue1.tst | 1.dir --> To view the contents of a directory, type dir. this command will list all the files and directories within the current directory. It is analogous to clicking on a windows folder to see whats inside.
c:\ dir
volume in drive C has no label.
volume Serial Number is C8C7-BDCD
Directory of C:\
01/30/2019 10:36 AM 0 AUTOEXEC.BAT
03/15/2019 10:40 AM 0 CONFIG.SYS
04/21/2019 10:50 AM 216 HelloWorld.java
07/03/2019 11:00 AM DIR Documents and settings
05/05/2019 11:14 AM DIR introcs
03/09/2019 11:18 AM DIR j2sdk1.4.2_06
04/10/2019 12:17 AM DIR Program files
o1/13/2019 01:18 AM DIR windows
3 Files(s) 126 bytes
5 Dir(s) 32,551,940,096 bytes free
There are 7 item in this directory. Some of them are files, like HelloWorld.java. Others are directories, like introcs.
2.cd -->It is used to know the currently working directory. In order to find out, type cd at the command prompt.
C:\> cd
C:\
To change directories, use the cd command with name of a directory.
C:\> cd introcs
Then the command prompt will be:
C:\introcs>
3.mkdir --> to create a new directory.The following command creates a directory named hello, which can be used to store all of your files associated with Hello World assignmen.
C:\introcs> mkdir hello
To see how it works, use the dir command
4.move --> We can move the two files Helloworld.java and redme.txt into hello directory using the move command.
C:\introcs> move HelloWorld.java hello
C:\introcs> move redme.txt hello
C:\introcs> dir
volume in drive C has no label.
volume Serial Number is C8C7-BDCD
Dirctory of C:\introcs
02/10/2019 08:59 AM DIR .
02/10/2019 08:59 AM DIR ..
02/03/2019 11:53 AM 126 HelloWorld.java
01/17/2019 01:16 AM 256 readme.txt
2 files(s) 382 bytes
2 Dir(s)
move also used to rename a file. Simply specify a new filename instead of adrectory name.
5.copy --> To make a copy of a files. This especially useful when you modify a working program, but might want to revert back to the original version if your modifications dont succeed.
C:\introcs\hello> copy HelloWorld.java HelloWorld.back
To check type dir
C:\inrtrocs\hello> dir
6.del --> To clean up useless files.
C:\introcs\hello> del HelloWorld.back
To check type dir
C:\introcs\hello> dir
7.wildcards --> used for applying copy, del, and move commands to several files at once. To create a new directory called loops, and copy all of the files in the hello directory.
C:\introcs> mkdir loops
C:\introcs> copy c:\introcs\hello\* loops
Here the * mates all files in the C:\introcs\hello directory. It copies them to your newly created loops directory. |
b7fdf0790f968ceede1a69a8d10ef4a87f12bffd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH4/EX4.49/example4_49.sce | 36a20c4037e3e12a35e217a614287f2b581f47f2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 607 | sce | example4_49.sce |
//example4.49
//calculate fi index and time of rainfall excess
clc;funcprot(0);
//given
T=[1:1:12]; //time from start
r=[1.8 2.6 7.8 3.9 10.6 5.4 7.8 9.2 6.5 4.4 1.8 1.6]; //increamental rainfall
R=24.4; //total run-off
s=0;
for i=1:12
s=s+r(i);
end
ti=s-R;
//first trial
tr=7; //assumed
ti=s-R-r(1)-r(2)-r(4)-r(11)-r(12);
fi=ti/tr;
for i=1:12
P(i)=r(i)-fi;
if (P(i)<0) then
P(i)=0;
end
end
mprintf("Time(h) rainfall excess.");
for i=1:12
mprintf("\n%f %f",T(i),P(i));
end
mprintf("\n\nfi index=%f cm/hr.",fi);
|
3de31833e30a2edc90eb1b15fd6a1571418c9730 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH7/EX7.a.11/Example_a_7_11.sce | 48ed2268c7277a8a71ae6d90095ff8db90b48611 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 391 | sce | Example_a_7_11.sce | //Example_a_7_11 page no:278
clc;
Zab=((%i*3)*(%i*-2))/((%i*3)-(%i*2));
In=((10/3*%i)+(5*%i/-2*%i));
Il=-(In*Zab)/(5-6*%i);
Ilmag=sqrt(real(Il)^2+imag(Il)^2);
Ilang=atand(imag(Il)/real(Il));
Ilang=Ilang-180;//converting the angle to negative hence value does not change
disp(Ilmag,"the magnitude of load current is (in A)");
disp(Ilang,"the angle of load current is (in degree)");
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.