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
f4fbb9674fc2d980601fddf336d781034237e987
449d555969bfd7befe906877abab098c6e63a0e8
/2420/CH12/EX12.2/12_2.sce
140916875c2b7694efbc53f8af1e17a9bbf08a72
[]
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
472
sce
12_2.sce
clc clear //Initialization of variables T1=80 //F T2=460 //F T=700 //F T3=1300 //F T4=780 //F //calculations disp("from mollier charts,") h1=129.1 //Btu/lb h2 = 221.2 //Btu/lb h3= 438.8 //Btu/lb h4 = 301.5 //Btu/lb wcom=h2-h1 wcob=h3-h2 wtur=h3-h4 output=-wcom+wtur h=281.1 //Btu/lb Q=h3-h eff=output/Q *100 //results printf("\n Heat supplied in the combustor = %.1f Btu supplied per lb of air ",Q) printf("\n Cycle efficiency = %.1f percent",eff)
fcbc5b4f8ca1c66ee11d4db7a261328aa795b8fa
4be0defdbe24271cce8f61cece32e7a4b15c65af
/signal_s1/td3/ylcq.sce
8a7ff2ed3d6e6bbd53d19f3577c3fa5f6fbcfaba
[]
no_license
imac2018/tds
2c41830e26435bb2b8c4a40b3700c9f166bba4dc
8712438b81088d2f2d9c691b3c689e0926c597f5
refs/heads/master
2020-05-30T07:19:34.709677
2017-05-24T09:42:23
2017-05-24T09:42:23
69,675,399
2
2
null
null
null
null
UTF-8
Scilab
false
false
2,060
sce
ylcq.sce
funcprot(0) clf() // Ex.1 cd("/home/6im2/ylecoq/prog/tds/signal_s1/td3"); load("flute.dat"); x=flute; N=length(x); disp("N = " + string(N)); // plot(x) // Ex.2 function ret = petit_gamma(x) ret = convol(x,x(length(x):-1:1)); endfunction function ret = GAMMA_L(x, L) gamma_x = petit_gamma(x); for i=1:L for j=1:L ret(i,j) = gamma_x(abs(i-j)+length(x)); end end endfunction for L=1:3 disp("L = " + string(L)); petit_gamma_x = petit_gamma(x); cL = petit_gamma_x((length(x)+1):(length(x)+L)); disp("cL = "); disp(string(cL)); GAMMA_L_x = GAMMA_L(x, L); disp("GAMMA_L = "); disp(string(GAMMA_L_x)); hL_ = inv(GAMMA_L_x)*cL'; disp("hL = "); disp(string(hL_)); end // Ex.3 function ret = hL(L) // Repris du code précédent petit_gamma_x = petit_gamma(x); cL = petit_gamma_x((length(x)+1):(length(x)+L)); GAMMA_L_x = GAMMA_L(x, L); ret = inv(GAMMA_L_x)*cL'; endfunction function ret = x_chapeau_n(n,L,hL_) ret = 0; for i=1:L ret = ret + hL_(i)*x(n-i); end endfunction function ret = x_chapeau(L) N = length(x); hL_ = hL(L); ret(1:L) = x(1:L); for n=(L+1):N ret(n) = x_chapeau_n(n,L,hL_); end endfunction function ret = EQM(x, L) N = length(x); somme = 0; xchapeau = x_chapeau(L); for n=1:N somme = somme + (x(n)-xchapeau(n))^2; end ret = somme/N; endfunction for L=1:3 disp("EQM avec L=" + string(L) + " : " + string(EQM(x,L))); end // L décrôit proportionnellement à L. // Ex. 4 //L'énoncé reformulé : //dx vérifie dx > abs(95% des échantillons). x_trie = gsort(abs(x)); //décroissant dx = x_trie((1-0.095)*N); z = x-x_chapeau(1); //plot(z); z_trie = gsort(abs(z)); //décroissant dz = z_trie((1-0.095)*N); disp("dx : " + string(dx)); disp("dz : " + string(dz)); // Ex. 5 //.... //Ex. 6 getd(".") L=3; Q=5; xchap = x_chapeau(L); z_tilde = x-xchap; z_barre = quantu(z_tilde, Q, [-dz;dz]); compresse = xchap + z_barre;
5a2ee405280a933e364356d12127ecfba43d7aa8
449d555969bfd7befe906877abab098c6e63a0e8
/278/CH22/EX22.3/ex_22_3.sce
92ccc4ca46ff06a0a9365c8fd98d20f0794486f3
[]
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
412
sce
ex_22_3.sce
clc //solution //given P=150*1000//W N=80//rpm Ce=0.1 //(w1-w2)=0.02 D=2//m R=1//m rho=7200//kg/m^3 w=2*%pi*N/60//rad/s //Cs=(w1-w2)/w Cs=0.04 Wdpc=P*60/N//N-m dE=Ce*Wdpc//N-m dEm=0.95*dE //let m eb the mass of fly wheel //dE=m*R^2*w^2*Cs m=dEm/(R^2*w^2*Cs)//kg printf("the mass of flywheel is,%f kg\n",m) //let A be the area of rim //m=A*2*%pi*R*rho A=m/(2*%pi*R*rho)//m^2 printf("the area of rim is,%f m^2",A)
130b763e617c25b3c51c0f3c56a6fcb5c8262718
449d555969bfd7befe906877abab098c6e63a0e8
/2243/CH10/EX10.8/Ex10_8.sce
26c62276f9668ad7d8920d2868c80164e0eeeeb0
[]
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
331
sce
Ex10_8.sce
clc(); clear; //Given : mu_d = 9.27*10^-24; // Bhor magneton in Am^2 mu_0 = 4*%pi*10^-7; // Magnetic permiability in H/m r = 2; // dipoles distance in A //U = mu_d*B = -( mu_0*mu_d^2)/(2*pi*r) //r = 2*10^-10 m , 1 A = 1.0*10^-10 m U = ( mu_0*mu_d^2)/(2*%pi*(r*10^-10)^3); // Energy printf("U = %.1f x 10^-25 ",U*10^25);
62f7d7d2eb842623652747b029df0b6b257c06de
449d555969bfd7befe906877abab098c6e63a0e8
/2741/CH5/EX5.15/Chapter5_Example15.sce
21fd2ead4d0c4dd8dec79e9cd8b9bc215126faf3
[]
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
457
sce
Chapter5_Example15.sce
clc clear //Input data T=300;//The given temperature in K M=28;//Molecular weight of nitrogen in g R=8.3*10^7;//The Universal gas constant in ergs/g mol-K //Calculations E=(3/2)*R*T;//The total random kinetic energy of nitrogen in ergs E1=E/(M*10^7);//The total random kinetic energy of one gram of nitrogen at 300 K in joule //Output printf('The total random kinetic energy of one gram of nitrogen at 300 K is K.E = %3.1f joule ',E1)
449bc552658d4a6925bcc8809aa5095990cbad0f
449d555969bfd7befe906877abab098c6e63a0e8
/2294/CH12/EX12.9/EX12_9.sce
fede892df2031de9a06937a829f1a7bf025a07f9
[]
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
561
sce
EX12_9.sce
//Example 12.9 //Find the required probabilities. disp('Let H be the event that Husband is alive') disp('Let W be the event that wife is alive') disp('P(H)=0.85 P(W)=0.9') disp(0.85*0.9,'P(both alive)=P(H)P(W)=') disp(0.15*0.1,'P(neither alive)=(1-P(H))(1-P(W))=') disp(0.85+0.9-0.765,'P(Atleast one is alive)=P(H)+P(W)-P(both are alive)=') disp('P(only one is alive)=P(Husband is alive and wife is dead)OR P(Husband is dead and wife is alive)') disp('P(H)(1-P(W))+(1-P(H))P(W)=') disp((0.85)*(1-0.9)+(1-0.85)*(0.9),'(0.85)(1-0.9)+(1-0.85)(0.9)=')
ce9da0bc7cd9e7dc072a4594249c0a2643ce7925
6e2615cbb7b4cf3fcb878eda19ad6feef2630da0
/projects/02/ShiftRight.tst
5ef557bed47588a164b4c18011068372de42633b
[]
no_license
shahamran/nand2tetris
77259aae184fc7930a46670e6654f4748b35d505
91e3e3c6734c30456965a8a7c030a8d39a9adb85
refs/heads/master
2020-12-13T23:49:46.283340
2016-08-09T10:58:41
2016-08-09T10:58:41
53,402,249
2
1
null
null
null
null
UTF-8
Scilab
false
false
369
tst
ShiftRight.tst
load ShiftRight.hdl, output-file ShiftRight.out, compare-to ShiftRight.cmp, output-list in%D1.16.1 out%D1.16.1; set in %B0000000000000000, eval, output; set in %B0110100000011010, eval, output; set in %B1101111111111110, eval, output; set in %B1100101010101011, eval, output; set in %D250, eval, output; set in %D-365, eval, output;
466fc8a0adb9714b23ac9844234e9fd3012c3b91
449d555969bfd7befe906877abab098c6e63a0e8
/3683/CH16/EX16.2/Ex16_2.sce
6da5a663e23e2de19b1f8c692e27237b6b7184d4
[]
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
487
sce
Ex16_2.sce
Df=100//in mm bf=1500//in mm bw=300//in mm d=600//in mm Ast=4500//in sq mm fy=415//in MPa fck=20//in MPa Asf=round(0.36*fck*bf*Df/0.87/fy)//area of steel required for flange, in sq mm //as Ast>Asf, Xu>Df Xu=(0.87*fy*Ast-0.446*fck*(bf-bw)*Df)/0.36/fck/bw//in mm Xc=0.479*d//Xc>Xu; hence OK a=0.43*Xu//as Df<0.43 Xu, stress in flange is uniform Mu=(0.36*fck*bw*Xu*(d-0.416*Xu)+0.446*fck*(bf-bw)*Df*(d-Df/2))/10^6//in kN-m mprintf("Moment of resistance of T-beam=%f kN-m",Mu)
bc34fcfcbcc3a9f90e9f8db6d15b411b7c799df1
449d555969bfd7befe906877abab098c6e63a0e8
/104/CH6/EX6.9/6_9.sce
9c57e763a37896170670f81135fb49afab7a73ac
[]
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
362
sce
6_9.sce
//bilinear transformation method r=%s //p=z^3+5.94*z^2+7.7*z-0.368 //substituting z=(1+r)/(1-r) we get m=3.128*r^3-11.47*r^2+2.344*r+14.27 x=coeff(m) n=length(x) routh=routh_t(m) disp(routh,"rouths tabulations") c=0; for i=1:n if (routh(i,1)<0) then c=c+1 end end if (c>=1) then printf("system is unstable") else printf("system is stable") end
690836e24413c7a48ef7420382d4aca45c9bf3f3
449d555969bfd7befe906877abab098c6e63a0e8
/3401/CH10/EX10.12/Ex10_12.sce
8629a6fa0cafdf75725de033cc838bf8fd9a7323
[]
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
600
sce
Ex10_12.sce
clc T=300 //K k=8.617*10**-5//eV/K e=1.6*10**-19 //C IE=1*10^-3//A Cje=1*10^-12//F xB=0.5*10^-4//cm Dn=25// cm2/s xdc=2.4*10^-4//cm vs=10^7 rc=20//ohm Cu=0.1*10^-12//F Cs=0.1*10^-12//F beta=100 re1=(k*T)/IE disp(re1,"re1 in ohm is=") taue=re1*Cje disp(taue,"taue in sec is=") taub=xB^2/(2*Dn) disp(taub,"taub in sec is=") taub1=xdc/vs disp(taub1,"taub in sec is=") tauc=rc*(Cu+Cs) disp(tauc,"tauc in sec is=") tauec=taue+taub+taub1+tauc disp(tauec,"tauec in sec is=") ftau=1/(2*%pi*tauec) disp(ftau,"ftau in GHz is=") fbeta=ftau/beta disp(fbeta,"fbeta in Hz is=")
8c59bbd54cdf91e41e093265b872ad440c75a3a3
b29e9715ab76b6f89609c32edd36f81a0dcf6a39
/ketpicscifiles6/Setversion.sci
92883d5aa4d687190e7a715342083ec51587eba8
[]
no_license
ketpic/ketcindy-scilab-support
e1646488aa840f86c198818ea518c24a66b71f81
3df21192d25809ce980cd036a5ef9f97b53aa918
refs/heads/master
2021-05-11T11:40:49.725978
2018-01-16T14:02:21
2018-01-16T14:02:21
117,643,554
1
0
null
null
null
null
UTF-8
Scilab
false
false
7,055
sci
Setversion.sci
// // 08.11.12 V3.0.2b // 08.11.26 V3.0.2c // 08.12.08 V3.0.2d // 08.12.11 v3.0.2e // 08.12.17 v3.0.3a // 08.12.21 v3.0.3b // 08.12.30 v3.0.3c // 09.01.15 v3.0.3d // 09.02.20 v3.0.3e // 09.02.27 v3.0.4a // 09.02.27 v3.0.4b // 09.03.06 v3.0.4c // 09.03.09 v3.0.4d // 09.03.10 v3.0.4e // 09.03.12 v3.0.5a // 09.05.12 v3.0.5b // 09.05.18 v3.0.5c // 09.05.27 v3.0.6a // 09.06.01 v3.0.6b // 09.06.05 v3.0.6c // 09.06.13 v3.0.6d // 09.06.24 v3.0.6e // 09.08.12 v3.0.7a // 09.08.13 v3.0.7b // 09.08.23 v3.0.8a // 09.09.10 v3.0.9a // 09.09.18 v3.1.0a // 09.09.21 v3.1.0b // 09.09.25 v3.1.1a // 09.09.25 v3.1.1b // 09.10.01 v3.1.1c // 09.10.03 v3.1.2a // 09.10.04 v3.1.3a // 09.10.05 v3.1.3b // 09.10.08 v3.1.3c // 09.10.09 v3.1.4a // 09.10.11 v3.1.5a // Structure changed // 09.10.11 v3.2.0beta // 09.10.31 v3.2.0beta1031 // 09.11.01 v3.2.0a // 09.11.04 v3.2.1a // 09.11.12 v3.2.1b // 09.11.14 v3.2.1c // 09.11.14 v3.2.1d // 09.11.21 v3.2.1e // 09.11.26 v3.2.2a // 09.12.05 v3.2.2b // 09.12.06 v3.2.3a // 09.12.17 v3.2.3b // 09.12.24 v3.2.3c // 09.12.25 v3.3.1a // 09.12.26 v3.3.1b // 09.12.28 v3.3.1c // 09.12.31 v3.3.1d ( for v5.2.0) // 10.01.01 v3.4.0alpha // 10.01.05 v3.4.0beta // 10.01.10 v3.4.1a // 10.01.12 v3.4.1b // 10.01.16 v3.4.1c // 10.01.21 v3.4.2a // 10.02.01 v3.4.2b // 10.02.07 v3.4.2c // 10.02.12 v3.4.2d // 10.02.14 v3.4.2e // 10.02.16 v3.4.3a // 10.02.20 v3.4.3b Windisp // 10.02.24 v3.4.3c Execmd // 10.03.07 v3.4.3d // 10.03.28 v3.4.4a // 10.03.28 v3.4.4b // 10.04.03 v3.4.5a // 10.04.10 v3.4.5b // 10.04.16 v3.4.6a // 10.04.24 v3.4.6b // 10.04.24 v3.4.6b1 // 10.04.27 v3.4.7a // 10.05.03 v3.4.7b // 10.05.09 v3.4.7c Makeskeletondata, Makeskeletonpersdata // 10.05.12 v3.4.7d Texfor // 10.05.15 v3.4.8a Texctr // 10.08.15 v3.5.0a Phcutoffdata // 10.09.02 Dropnumlistcrv // 10.10.20 Texfor // 10.11.04 Hatchdata, Roundstr // 10.11.13 v3.5.0b Flattenlist added. Dashline, Invdashline changed // 10.12.02 v3.5.0c Lineplot changed // Makecurves debugged // Enclosing changed (Output ) // 11.01.07 v3.5.1a Readtextdata is changed // Dividegraphiics, Splinedata are changed // Facesdata is debugged (HiddenL) // Rmmember added // 11.04.13 Nohiddenpers2, Htickmark, Vtickmark are debugged // 11.05.29 v4.0.0a ketpict2e released, too // Setcolor, Ratiocmyk // 11.11.02 v4.0.0b Joingraphics changed // 11.12.12 v4.0.0c Skeletonparadata... changed (for various list ) // 11.12.18 Framedata (compliant for list ) // 12.01.07 v4.0.1a Arrowline, Arrowhead ( kirikomi ) // 12.04.16 v4.0.1b Arrowhead debugged // 12.08.26 v4.0.1c Arrowline debugged // 13.05.03 v4.2a Tabledata, Pointdata changed // Dividetable, Partframe added // 13.05.17 v4.2_1a Arrowhead debugged // Openfile, Closefile, Ketinit() changed // 13.08.13 v4.2_2 Cancoordpara added // 13.10.06 v4.2_2a Readtextdata debugged and changed (Format) // 13.11.02 v4.3_0 __ added to local variables // Openfile, Closefile changed // 13.11.02 v4.3_0a Closefile debugged // 13.11.13 v4.3_0b Arrowhead, Arrowheaddata debugged // 13.12.03 v4.3_1 Bowname changed, Meetpoint debugged // 14.01.10 v4.3_1a Readtextdata debugged (Big data) // 14.03.05 v4.3_1b MARKLEN separated from MEMORI // 14.03.23 Rotate3data debugged // 14.03.30 v43_1c Facesdata debugged // 14.06.09 v43_2a Phcutdata debugged (cause unknown ) // 14.06.22 v5_0_1a Obj macros added // 14.06.28 v5_0_1b debug cuspsplit (para, pers) // 14.07.05 v5_0_1c debug (warning ) Makeskeletondata, Makeskeletonpersdata // debug Makexybdy (by Kitahara) // 14.07.18 v5_0_1d Objsurf, Objthicksurf changed ( input argument ) // 14.08.26 V5_1_0a Symbdata, Symb3data, Objsymb added // Objcurve debugged // 14.09.07 v5_1_0b Objjoin added // 14.09,08 v5_1_1a ReadfromCindy added // 14.09.16 v5_1_1b WritetoCindy added // 14.09.26 v5_1_1c Derivative changed ( to numderivative) // 14.09.30 v5_1_1d Assignrep changed // 14.10.08 v5_1_1e ReadfromCindy debugged // 14.10.08 v5_1_1f ReadfromCindy supported CF|LF // 14.10.10 v5_1_2a ReadOutdata, WritOutData added // 14.10.24 v5_1_2b Derivative changed ( derivative or numderivative used a.t scilab version) // Plotdata,Paramplot,Circledata changed ( N,D,E,R => N__, ... ) // 14.12.11 v5_1_3a Assign changed (replaced only variable name ) // Plotdata changed (and debugged ), Paramplot changed // 12.14 WriteOutData,ReadOutData changed ( for 3d ) // 14.12.28 v5_1_3b Assign debugged // 15.01.01 v5_1_4a Bezierpt,Bezier added // 15.01.03 v5_1_4b ReadOutData changed ("start","end") // 15.02.08 v5_1_5a Bezier pt changed (available for 3d) // 15.02.18 v5_1_5b Assign debugged // 15.02.19 v5_1_5c Assign again debugged // 15.04.10 v5_1_5d EnclosingS debugged // Translatedata, Rotatedata, Reflectdata, Scaledate changed (Flattenlist) // 15.04.18 v5_1_5e Assign debugged // 15.05.03 v5_1_6a Setcolor,Ratiocmyk changed ( for cmyk, rgb, mycolor ) // 15.05.04 Definecolor added // 15.06.11 v5_1_6b Arrowline, Arrowhead debugged // 15.06.14 v5_1_6c Skeletonpara3data debugged // Arrowhead changed (0.2 -> 0.1 ) // 15.10.19 v5_1_6d Skeletonpara3data debugged // 15.10.23 v5_1_6e ReadOutData changed ( for the lenth of PD is 1 ) // 15.10.23 Meetwindow changed ( horner non used ) // 15.10.24 Arrowline debugged // 15.10.23 v5_1_6f WriteOutData changed ( endmark //// ) // 15.11.05 v5_1_6g WriteOutData changed // 15.11.16 v5_2_1 Ovaldata changed ( Rc ) // Plotdata, Paramplot, Deqplot // number of points changed to number of intervals // 15.12.08 v5_2_2 Deqplot debugged ( option __) // 16.08.20 v5_2_3 Spacecurve debugged ( N ) // 16.10.09 v5_2_3a Objcurve changed ( N of Sapcecurve) // 16.10.09 v5_2_3b Kyoukai changed ( Eps =>10^(-4)) // 16.10.09 v5_2_3c Enclosing, Kyoukai changed ( to make it a closed curve)) // 16.12.13 v5_2_3d Plotdata,Paramplot,Spacecurve changed ( for only one point) // 16.12.24 v5_2_3e Makeskeletondata debugged ( for nul interval) // 16.12.29 v5_2_3f Anglemark, MeetWindow debugged ( for nul interval) // 16.12.29 v5_2_3g Shade changed (for colorname or colorcode) // 17.03.19 v5_2_3h Openpicture,Setunitlen debugged ( for 6 ) // 17.05.21 v5_2_3i Evlptablepara changed (division number) function Setversion() global THISVERSION; THISVERSION='v5_2_3i'; endfunction;
7b01cb596b76686136c9c2a4ab998cacae96bb1e
84e4405f182c8a71ed4737063cc0474c432149f1
/Labovi/LV2/zad8.sce
2873b5d5b4cb5d7152b52106e1cd414988fd6dab
[]
no_license
Leon-Zhaohw/NA
0f8080fcc4958af4ebf5daced11a6d01c27e3ece
0f1d30cfe13d5447b775698a93cf01cc1c8d15ac
refs/heads/master
2021-06-15T11:20:41.484070
2017-01-29T01:10:43
2017-01-29T01:10:43
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
129
sce
zad8.sce
M = [1, 0, 1; -1, -2, 0; 0, 1, -1]; disp(spec(M)); MM = M; for i = 1:1000 [Q, R] = qr(MM); MM = R * Q; end disp(MM);
6771e06c5c7c7fbaecb974fb4fea69f0b258a9f7
449d555969bfd7befe906877abab098c6e63a0e8
/964/CH10/EX10.1/10_1.sce
4b3098a266d2183a5dd026367ac12d4e24a71152
[]
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
403
sce
10_1.sce
//clc() A = [3,-0.1,-0.2;0.1,7,-0.3;0.3,-0.2,10]; U = A; disp(A,"A =") m = det(U(1,1)); n = det(U(2,1)); a = n/m; U(2,:) = U(2,:) - U(1,:) / (m/n); n = det(U(3,1)); b = n/m; U(3,:) = U(3,:) - U(1,:) / (m/n); m = det(U(2,2)); n = det(U(3,2)); c = n/m; U(3,:) = U(3,:) - U(2,:) / (m/n); disp(U,"U = ") L = [1,0,0;a,1,0;b,c,1]; disp(L,"L calculated based on gauss elimination method = ")
a746af46a05111dbd9c427bc41d589403df49586
449d555969bfd7befe906877abab098c6e63a0e8
/1397/CH1/EX1.28/1_28.sce
1e40e1087798e366033019089ad8010706c7ea48
[]
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
401
sce
1_28.sce
//clc(); clear; //To determine the wavelength of light in Fraulhofer double slit diffraction D=150; //distance between slit and screen in centimetres d=0.03; //seperation between slits in centimetres beeta=0.3; //fringe seperation in centimetres lambda=(beeta*d*10^8)/D; printf("wavelength of light if fringe seperation is 0.3 cm is %f Armstrong",lambda);
8ad49e73c43ab96ee95104e8954ef5f856eb3a85
449d555969bfd7befe906877abab098c6e63a0e8
/3311/CH4/EX4.3/Ex4_3.sce
5f065fcffc169ff559f77ca678e29fca435805e6
[]
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,706
sce
Ex4_3.sce
// chapter 4 // example 4.3 // Calculate the number of thyristors and value of resistance and capacitance // page-130-131 clear; clc; // given Es=6; // in kV (string voltage) Im=4; // in kA (string current) E_D=1.2; // in kV (thyristor voltage) I_T=1; // in kA (thyristor current) neta=90; // in percentage (string efficiency) I_B_max=15; // in mA (maximum blockin current) dQ_max=25; // in uC (maximum permissible difference between reverse reovery charge) // calculate neta=neta/100; //changing efficiency from percentage to ratio n_s_float=Es/(E_D*neta); // calculation of number of thyristos in series n_s= int16(n_s_float)+1; // since n_s will be reduced by decimal value it contaisn if type conversion is done because the decimal part would be removed so we need to add 1 to it n_p_float=Im/(I_T*neta); // calculation of number of thyristos in parallel n_p= int16(n_p_float)+1; // since n_p will be reduced by decimal value it contaisn if type conversion is done because the decimal part would be removed so we need to add 1 to it n_s=double(n_s); // converting again to double for various calculatios n_p=double(n_p); // converting again to double for various calculatios printf("\nThe number of thyristors in series is \t n_s=%.f",n_s); printf("\nThe number of thyristors in parallel is n_p=%.f",n_p); E_D=(E_D*1E3); // changing unit from kV to V Es=Es*1E3; // changing unit from kV to V dI_b=(I_B_max); // (assumption as done in the book) R=(n_s*E_D-Es)/((n_s-1)*dI_b); // calculation of resistance in k-ohm C=(n_s-1)*dQ_max/(n_s*E_D-Es); // calculation of capacitance in uF printf("\nThe value of resistance is \t\t R<=%.f k-ohm",R); printf("\nThe value of capacitance is \t\t C>=%.3f uF",C);
353df2fff4827a85fbd61d2bc4f7342630947571
449d555969bfd7befe906877abab098c6e63a0e8
/69/CH15/EX15.7/15_7.sce
10d47b033cf09af8acddba29f8e6ad7dded25d07
[]
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
332
sce
15_7.sce
clear; clc; close; Rl = 5*10^(3); R = 500; Vdc = 150; C = 10*10^(-3); Vr_rms = 15; Vdc_dash = (Rl/(R+Rl))*Vdc; Xc = 1.3/C; Vr_rms_dash = (Xc/R)*Vr_rms; r = (Vr_rms_dash/Vdc_dash)*100; disp(Vdc_dash,'Dc component of output voltage = '); disp(Vr_rms_dash,'Ac component of output voltage = '); disp(r,'Ripple = ');
82e37cbb96e544aeb259c94ffa5761e371c55d8d
cf18e17577a53971d3093809b663bfa64741f20f
/polyfit/polyfit.sce
fd5f03781c67ae5e30a3569b7e74f89451ddf2da
[]
no_license
stepanov17/vniim_unsorted
07757339bc2337540ccf5191ae19964834d09ec0
8c8261507d5cbb8be913bf9ae1a3606fd70cbbaf
refs/heads/master
2022-01-17T15:10:18.109538
2021-12-31T18:03:59
2021-12-31T18:03:59
175,603,636
1
0
null
null
null
null
UTF-8
Scilab
false
false
2,863
sce
polyfit.sce
clear; clc; ///////////////////// // polyfit routine // ///////////////////// // https://stackoverflow.com/questions/30254429/how-to-make-a-polynomial-approximation-in-scilab function [coeffs] = polyfit(x, y, deg) A = ones(length(x), deg + 1) for i = 1 : deg A(:, i + 1) = x(:) .^ i; end coeffs = lsq(A, y(:))'; endfunction function [v] = polyvals(x, coeffs) nc = length(coeffs); o = ones(1, nc); d = 0 : (nc - 1); v = zeros(x); for i = 1 : length(x) a = (x(i) * o) .^ d; v(i) = coeffs * a'; end endfunction function [r] = roundTo(x, m) d1 = 10.^m; d2 = 1. / d1; r = d2 * round(d1 * x); endfunction // example: K_0.95 = K_0.95(n0 / n) - exact coverage factor for AR(1) noise regression bands, // the 1st n0 samples used for the drift prediction for all the n > n0 data // x_{k + 1} = a x_k + sqrt{1 - a^2} eps_k, eps_k in N(0, 1). here: a = 0.9, n = 100 data = [ 0.15 2.420440196990967 0.16 2.421215534210205 0.17 2.421897411346436 0.18 2.422499179840088 0.19 2.423028469085693 0.20 2.423497676849365 0.21 2.423909664154053 0.22 2.424272060394287 0.23 2.424590587615967 0.24 2.424869060516357 0.25 2.425113201141357 0.26 2.425320148468018 0.27 2.425500392913818 0.28 2.425650119781494 0.29 2.425775051116943 0.30 2.425876140594482 0.31 2.425952434539795 0.32 2.426010608673096 0.33 2.426048755645752 0.34 2.426067829132080 0.35 2.426068782806397 0.36 2.426054477691650 0.37 2.426024913787842 0.38 2.425979137420654 0.39 2.425919055938721 0.40 2.425845623016357 0.41 2.425758838653565 0.42 2.425657749176025 0.43 2.425546169281006 0.44 2.425420284271240 0.45 2.425283908843994 0.46 2.425133228302002 0.47 2.424974918365479 0.48 2.424803256988525 0.49 2.424620151519775 0.50 2.424426555633545 0.51 2.424221515655518 0.52 2.424005985260010 0.53 2.423779010772705 0.54 2.423540592193604 0.55 2.423295497894287 0.56 2.423036098480225 0.57 2.422766208648682 0.58 2.422487735748291 0.59 2.422195911407471 0.60 2.421895503997803 0.61 2.421584606170654 0.62 2.421260356903076 0.63 2.420928478240967 0.64 2.420582294464111 0.65 2.420228481292725 0.66 2.419861316680908 0.67 2.419481754302979 0.68 2.419092655181885 0.69 2.418691158294678 0.70 2.418278217315674 0.71 2.417853832244873 0.72 2.417417049407959 0.73 2.416968822479248 0.74 2.416507244110107 0.75 2.416035175323486 ]; x = data(:, 1)'; y = data(:, 2)'; polyDeg = 4; c = polyfit(x, y, polyDeg); c = roundTo(c, 5) // polynomial coefficieints /////////////// plot(x, y, '+') xx = x(1) : 0.01 : x(length(x)); p = polyvals(xx, c); plot(xx, p, 'k') legend("K values", "approximation, polyn. deg. = 4") title("n = 100, alpha = 0.9") xlabel("n0 / n") ylabel("K") p = polyvals(x, c) // error e_abs = max(abs(y - p)) e_rel = 100. * max(abs(y - p) ./ y)
8730e05d081e435c4ebab8af4861d789f3435029
9e81e75d5f9cddfd3c9fe8eb932ce2e9de0fdf39
/main.sce
84f80070fe63979c5f7c72a204d7c53539eb4dab
[]
no_license
pimentafm/TPEAM313_ajustLinearInjuncionado
1c2735218973cac3374cbfc951565675bc538945
2fcba16336844ff38f1e6089cd492c2666f68880
refs/heads/master
2021-08-21T21:03:17.515970
2017-11-29T02:46:29
2017-11-29T02:46:29
112,415,589
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,879
sce
main.sce
// Scilab Versão 6.0.0 // Topografia IV // Allan Turini Speroto 78233 // Fernando Martins Pimenta 80018 // Gabriel Batista Freitas 82718 // Matheus Lopes Vieira 80020 // Programa para fazer o ajustamento por interseção linear clear; clc; diretorio = pwd(); exec(diretorio+"/libs/lib_topografia.sce"); exec(diretorio+"/libs/lib_interLinear.sce"); exec(diretorio+"/libs/lib_arquivos.sce"); exec(diretorio+"/GUI/interface.sce"); eps = strtod(handles.edt_erro.String); // Erro varianciaPriori = strtod(handles.edt_varPriori.String); nc = strtod(handles.edt_nivelConf.String); // Nível de confiança a = strtod(handles.edt_a.String); // Erro linear b = strtod(handles.edt_b.String); // ppm ece = strtod(handles.edt_ece.String); // Erro de centragem da estação ecp = strtod(handles.edt_ecp.String); // Erro de centragem do prisma desv_dir = strtod(handles.edt_desvDir.String); // em seg para PD/PI function calcular_callback(handles) Xp = 0.000; Yp = 0.000; //Adicionar na interface pos = "esquerda"; // Obtem os vetores Lb, Xa e sigma_d_xy [Lb, Xa, sigma_d_xy] = getParams(Xp,Yp); // Obtem os vetores Lb, Xa e sigma_d_xy [CLb, P] = getMVC_P(varianciaPriori, sigma_d_xy); //Modelo funcional [F] = inters_linear_2D_red(Xa); //Obtem vetor X0 [X0] = getX0(Lb, Xa, pos); X = 100; it=0; while(max(abs(X)) > eps & it < 10) it=it+1; //Obtem o vetor L0 L0 = inters_linear_2D_red(X0); //Obtem o valor L L = Lb - L0; //Matriz das derivadas parciais A = numderivative(inters_linear_2D_red, X0); //Correções aos valores aproximados X = inv(A'*P*A)*A'*P*L; //Cálculo dos parâmetros ajustados Xa = X0 + X; //Cálculo dos resíduos das observaçẽos V = A*X-L; if max(abs(X)) > eps then X0 = Xa; end end //Calcular os graus de liberdade GL = length(Lb) - length(Xa); //Calcula a variância a posteriori [varianciaPosteriori] = getVarPost(V, P, GL); // Teste X-Quadrado X_quad(varianciaPriori, varianciaPosteriori, nc, GL,f); //Matriz variância covariância a posteriori [MVCxy] = varianciaPosteriori*inv(A'*P*A); //MVC a posteriori das observações MVCLb = varianciaPosteriori*CLb; //MVC a posteriori dos resíduos Cv = MVCLb - (A*MVCxy*A'); //Avalia a qualidade das observações (Resíduos Padronizados) Vobs = sqrt(diag(MVCLb)); RP = V./Vobs; ////// GRAFICO ------------------------------- geraGrafico(handles, Xa, 1e6*MVCxy); geraRelatorio(Xa, MVCxy); endfunction
75b6eb42daabe58ee9c071b96f92a1792fef81bf
449d555969bfd7befe906877abab098c6e63a0e8
/1844/CH1/EX1.10/1Q10.sce
1bf2645b41a82cc35daa8970794721b5515fe1cf
[]
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
545
sce
1Q10.sce
clc //Intialsing variables S=100 //Scale on map 1cm=100m on ground PMA= 20*30 // Plot area on map in sq cm OPA= PMA * S^2 // Area of plot in sq m printf ('Area of plot =%f sqm\n',OPA) //Top sheet S= 10^-6 // 1 sq km is represented by 1 sq cm TSR= OPA *S printf (' Represented by %f sqcm on Topo sheet\n',TSR) RFV=1/(100*100) // R.F of the sheet of village map RFT=1/(1*1000*100) //R.F of the scale of topo sheet printf (' R.F of the sheet of village map =%f\n',RFV) printf (' R.F of the scale of topo sheet =%f',RFT)
6f82e3f99d6f3d081cb2dcbbbf1829c5b34dbaa5
449d555969bfd7befe906877abab098c6e63a0e8
/2318/CH3/EX3.9/ex_3_9.sce
71b50b233e54e4dbcef88ae16390cf5008828d81
[]
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
383
sce
ex_3_9.sce
//Example 3.9: limiting value of unknown resistance clc; clear; close; //given data : P=1000;// in ohm Q=1000;// in ohm S=3154;// in ohm R=((P/Q)*S); dp=0.05;//percentage error dq=0.05;//percentage error ds=0.1;//percentage error dr=dp+dq+ds;//percentage error x=R+((dr*10)*R)/100;// disp("limiting value of resistance is "+string(R)+"±"+string(dr)+"% to "+string(round(x))+" ohm")
1d5b8b08142cdbc0c30b5bd6e7c7061f6ef15495
449d555969bfd7befe906877abab098c6e63a0e8
/1322/CH24/EX24.6/212ex.sce
c06c2da8af0d70592420399175cb28fe4a13d9af
[]
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
222
sce
212ex.sce
clc; clear; close; //ex(1).1,2,4,8,... commom_ratio=4/2 //ex(2). 1,1/2,1/4,1/8,.... common_ratio=(1/4)/(1/2) //ex(3). 2,-6,18,-54 common_ratio=-6/2 //ex(4). R,R^2,R^3,R^4.... R=poly(0,'R'); common_ratio=R^2/R
bdbbff7b90795c4a7ad70d168fc7496111de99e2
4bbc2bd7e905b75d38d36d8eefdf3e34ba805727
/ee/contrib/dspic/macros/misc/comp_form.sci
7fc3d573ed3dc2bdc44cfb8ee7111973a3a23c64
[]
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
363
sci
comp_form.sci
function [Contr]=comp_form(A,B,C,D,Ts,K) // Create the compact form of the Observer ABCD and the // gain K, // // A,B,C,D: Observer matrices // Ts: sampling time // K: state feedback gains Bu=B(:,1); By=B(:,2:$); Du=D(:,1); Dy=D(:,2:$); X=inv(1+K*Du); Ac=A-Bu*X*K*C; Bc=[Bu*X,By-Bu*X*K*Dy] Cc=-X*K*C; Dc=[X,-X*K*Dy] Contr=syslin('d',Ac,Bc,Cc,Dc) endfunction
2413e577e72dccfb87a9927073b08367f32a307f
449d555969bfd7befe906877abab098c6e63a0e8
/620/CH12/EX12.3/example12_3.sce
5a8c1081c641b8c530c26a708a4c4bf2d36ea938
[]
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
example12_3.sce
im=50*10^(-6); rm=3000; it1=100*10^(-6); it2=10^(-3); it3=10*10^(-3); is2=it2-im; is1=it1-im; is3=it3-im; r1=rm*(is2/im-1)/(1+is2/im); disp("the value of R1 (in Ω) is"); disp(r1); r2=(rm*(is3-im)-(im+is3)*r1)/(im+is3); disp("the value of R2 (in Ω) is");disp(r2); r3=im*(r1+r2+rm)/is3; disp("the value of R3 (in Ω) is"); disp(r3);
08e383b31aa2b4fcd8d17c88b8df8a1223ee8758
449d555969bfd7befe906877abab098c6e63a0e8
/2414/CH12/EX12.13/Ex12_13.sce
6cd9ca6b03522b1f50887c3b7e5e6a81232e5137
[]
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
398
sce
Ex12_13.sce
clc; close(); clear(); //page no 414 //prob no. 12.13 //Data from ex-12 T0=290; //K Fdb=9; F=10^(Fdb/10); F=8; //Approximate Te=(F-1)*T0; Ti=T0; k=1.38*10^-23; //Boltzmann's Constant B=2*10^6; //Hz Ni=k*Ti*B; //W Pi=8*10^-12; //W SNinput=Pi/Ni; SNinputdb=10*log10(SNinput); //Ex13 calculation SNoutputdB=SNinputdb-Fdb; mprintf(' S:Noutput(db)=%.0f dB\n',SNoutputdB);
874dadb85b8f809897d3d5d778682ae45312f6e8
449d555969bfd7befe906877abab098c6e63a0e8
/1223/CH5/EX5.17/Ex5_17.sce
0743c734d0c848d1c3035b92484477a592537201
[]
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
318
sce
Ex5_17.sce
clear; clc; //Example 5.17 Idss=5;//mA Vp=-4; Vdd=10; I_D=2; Vds=6; //I_D=Idss*(1-Vgs/Vp)^2 Vgs=(1-sqrt(I_D/Idss))*Vp; printf('\nVgs=%.2f V\n',Vgs) Rs=-Vgs/I_D; printf('\nRs=%.3f KOhm\n',Rs) Rd=(Vdd-Vds-I_D*Rs)/I_D; printf('\nRd=%.2f KOhm\n',Rd) Vgs-Vp //since Vds>Vgs-Vp JFET is biased in saturation
a06c75535ec161e6a206f0a1de4109625bfce64c
449d555969bfd7befe906877abab098c6e63a0e8
/812/CH6/EX6.02/6_02.sce
bf235e7794e54bc5468120a9b0a1038ebdbcf0e3
[]
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
267
sce
6_02.sce
//Velocity of flow// pathname=get_absolute_file_path('06.02.sce') filename=pathname+filesep()+'06.02-data.sci' exec(filename) //Velocity of flow(in m/sec): V=sqrt(2*dw*g*p/1000*SG/da) printf("\n\nRESULTS\n\n") printf("\n\nVelocity of flow: %.3f m/sec\n\n",V)
923ded18004715c15d7a8efbe9e6cd68181e7050
18ba14e1580491ab88676c6054d4341a55b2c39e
/rsa/tags/rsa_v1.1/trunk/test/timekeys.sci
3ddcc9becd94bf5683083c3163c02bfbc8531450
[]
no_license
BackupGGCode/rsa
43dfe6a2d076c9a1854320936bdf67dce2fc7e2c
aa7ec78a19379414ffd5e75fe9472e31bacb0737
refs/heads/master
2020-05-20T16:44:04.993269
2015-04-29T20:07:42
2015-04-29T20:07:42
34,758,338
0
1
null
null
null
null
UTF-8
Scilab
false
false
807
sci
timekeys.sci
// This code opens and reads data from a file named 'timekeys.dat', // plots the data to a 2d graph and exports it as an image file // with the filename 'timekeys.gif'. // Open 'timekeys.dat', an existing file. // 'timekeys.dat' contains execution data in the following format: // // n1 t(n1) // n2 t(n2) // ... // nx t(nx) // in = file('open', 'timekeys.dat', 'old'); // Read all the rows and two columns from the file. xy = read(in, -1, 2); // x is the first, y the second column. x = xy(:, 1); y = xy(:, 2); // Prepare the graphics and plot a 2d graph. scf(); plot2d2(x, y); xtitle("Key generation duration"); axes = gca(); axes.x_label.text = "Key length (decimal digits)"; axes.y_label.text = "Time (seconds)"; // Export the graph to the 'timekeys.gif' image file. xs2gif(0, 'timekeys.gif');
93c0941b3805bb942efff7bfb3109824f90da3d9
449d555969bfd7befe906877abab098c6e63a0e8
/557/CH22/EX22.1/1.sce
8088f085d6464f6c03dc50a0c587cbea60c94087
[]
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
536
sce
1.sce
clc; funcprot(0); //Example 22.1 //Initializing the variables Q = 5; R1 = 1.5/2; R2 = 2/2; w = 18; rho = 1000; rhoA = 1.2; Hth = 0.017; g=9.81; //Calculations A = %pi*(R2^2-R1^2); Vf = Q/A; Ut = w*R2; Uh = w*R1; B1t = acotd(Ut/Vf); B1h = acotd(Uh/Vf); E = Hth*rho/rhoA; function[y] = Beta(u) y = acotd((u-E*g/u)/Vf); endfunction B2t = Beta(Ut); B2h = Beta(Uh); disp(B2h,"At Hub :",B2t,"At tip :","!----Blade Outlet Angles (Degrees)----!",B1h,"At Hub :",B1t,"At tip :","!----Blade Inlet Angles----!");
9a5467c04e4ce131450f2955f0416a414bd84009
4c8dd88d8a992f4deb2528c89df5bb1913830ed0
/zad1_a.sce
c4b7bd854eacd80b3e544b22695309b32f81e2df
[]
no_license
kerob13/PU
4019bcc4a2ff7814fa383012897a1596bb5b8ce4
01108ebfc87529fe45997553124b6708c8b4b1ed
refs/heads/main
2023-02-18T19:16:58.087805
2021-01-21T11:17:43
2021-01-21T11:17:43
331,592,718
0
0
null
null
null
null
UTF-8
Scilab
false
false
71
sce
zad1_a.sce
x=log10(10) y=log(10) z=log(10)/log(2) v=log(10)/log(7) zad1_A=x+y+z+v
ae659da8a92250d336ac3ba206431c9f23a8b80c
449d555969bfd7befe906877abab098c6e63a0e8
/551/CH14/EX14.22/22.sce
66b87d752c7d6334fd4e505460b53870fa2bfb63
[]
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
464
sce
22.sce
clc h2=183.2; //kJ/kg h3=222.6; //kJ/kg h4=84.9; //kJ/kg v2=0.0767; //m^3/kg v3=0.0164; //m^3/kg v4=0.00083; //m^3/kg V=1.5*1000*10^(-6); //Piston displacement volume m^3/revolution n_vol=0.80; disp("(i) Power rating of the compressor (kW)") discharge=V*1600*n_vol; //Compressor discharge m=discharge/v2; P=m/60*(h3-h2); //kW disp("Power =") disp(P) disp("kW") disp("(ii) Refrigerating effect =") RE=m/60*(h2-h4); disp(RE) disp("kW")
6a668683acc15d76819037b090bcc5098137d29e
449d555969bfd7befe906877abab098c6e63a0e8
/1088/CH24/EX24.13/Example13.sce
c38922d79094be884844e60d8176dafc1a27fff6
[]
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
3,117
sce
Example13.sce
clear flag=1 mode(-1) clc printf("Example 13 : Show the method of running two programs in a pileline \n") disp("****************************************************************") disp("Answer : ") disp("INSTRUCTIONS : ") halt(' ') disp("1.These programs are part of systems programming PURELY in Unix and the commands have NO EQUIVALENT IN SCILAB") halt(' ') disp("2.However the .c files which are displayed here are also made into a seperate file.If you are a unix user then try compiling and running the programme with gcc or cc compiler") halt(' ') disp("3.The outputs displayed here are just MOCK OUTPUTS which are DISPLAYED IN THE TEXTBOOK") halt(' ') disp("4.The inconvenience is regretted.") halt('.............Press [ENTER] to continue.....') halt("") clc printf("\tUNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)\n\n\n") i=0 i=i+1;f(i)='/* Program pipe2.c -- Runs two programs in a pipeline Child runs cat, parent runs tr */' i=i+1;f(i)='#include <stdio.h>' i=i+1;f(i)='#include <unistd.h>' i=i+1;f(i)='' i=i+1;f(i)='void quit(char *message,int exit_status);' i=i+1;f(i)='int main(void) { ' i=i+1;f(i)=' int fd[2]; /* To be fille dup by pipe() */' i=i+1;f(i)=' ' i=i+1;f(i)=' if (pipe(fd) < 0) /* Now have four descriptors for pipe */' i=i+1;f(i)=' quit('+ascii(34)+'pipe'+ascii(34)+', 1);' i=i+1;f(i)=' switch (fork()) {' i=i+1;f(i)=' case -1: quit('+ascii(34)+'fork'+ascii(34)+', 2);' i=i+1;f(i)=' ' i=i+1;f(i)=' case 0: close(fd[0]); /* CHILD - Close read end first */' i=i+1;f(i)=' dup2(fd[1], STDOUT_FILENO); /* Connect stdout to write end */' i=i+1;f(i)=' close(fd[1]); /* and close original descriptor */' i=i+1;f(i)=' execlp('+ascii(34)+'cat'+ascii(34)+', '+ascii(34)+'cat'+ascii(34)+','+ascii(34)+'/etc/hosts.equiv'+ascii(34)+', (char *) 0);' i=i+1;f(i)=' ' i=i+1;f(i)=' default: close(fd[1]); /* PARENT -- Close write end first */' i=i+1;f(i)=' dup2(fd[0], STDIN_FILENO); /* Connect stdin to read end */' i=i+1;f(i)=' close(fd[0]); /* and close original descriptor */' i=i+1;f(i)=' execlp('+ascii(34)+'tr'+ascii(34)+', '+ascii(34)+'tr'+ascii(34)+', '+ascii(34)+''+ascii(39)+'[a-z]'+ascii(39)+''+ascii(34)+','+ascii(34)+''+ascii(39)+'[A-Z]'+ascii(39)+''+ascii(34)+',(char *) 0);' i=i+1;f(i)=' quit('+ascii(34)+'tr'+ascii(34)+', 4);' i=i+1;f(i)='}' i=i+1;f(i)='}' n=i printf("\n\n$ cat pipe2.c # to open the file emp.lst") halt(' ') u=mopen('pipe2.c','wt') for i=1:n mfprintf(u,"%s\n",f(i)) printf("%s\n",f(i)) end mclose(u) halt('') clc halt(' ') printf("$ cc shell.c") halt(' ') printf("$ a.out ") halt(' ') printf("SATURN\nEARTH\nMERCURY\nJUPITER\n") halt(' ') printf("\n\n\n$ exit #To exit the current simulation terminal and return to Scilab console\n\n") halt("........# (hit [ENTER] for result)") //clc() printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment') sleep(1000)
595037a93e5a800e9b21571fecb864803eb0e89c
449d555969bfd7befe906877abab098c6e63a0e8
/3428/CH18/EX12.18.1/Ex12_18_1.sce
cbe9e641b05256b8ec4b8bfb9c4bc8858a609790
[]
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
212
sce
Ex12_18_1.sce
//Section-12,Example-1,Page no.-SS.32 //To calculate Density of copper. clc; r=1.278 a=(4*r)/(sqrt(2)) n=4 M=63.5 N=0.602*10^24 D=(n*M)/(N*a^3) disp(D,'Density of copper having FCC structure(gm/cc)')
eada27c0cc57220bf6c0f64c1c1e208538d90141
449d555969bfd7befe906877abab098c6e63a0e8
/2195/CH8/EX8.6.4/ex_8_6_4.sce
8fcbfed3cf31b72d825038fac2d5d6a976aee99b
[]
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
238
sce
ex_8_6_4.sce
//Example 8.6.4: Lx and Rx clc; clear; close; //given data : R1=600;// in ohm R2=1000;// in ohm R3=100;// in ohm C1=1;// in micro-farad Rx=(R2*R3)/R1; disp(Rx,"resistance,Rx(ohm) = ") Lx=C1*10^-6*R2*R3; disp(Lx,"inductance,Lx(henry) = ")
04bf693b7d8ab20997974f4e233621793e15bda6
449d555969bfd7befe906877abab098c6e63a0e8
/692/CH3/EX3.12/P3_12.sce
35c37dc004c036fd72eacbc6056cde55524d6564
[]
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
525
sce
P3_12.sce
//EXAMPLE 3.12 //x[n]=((-1)^n)*(a^n)*u[n].....given a=0.5; clc; clear; a=0.5; n=0:9; for i = 0:9 x(i+1) = (a*exp(-%i*%pi))^i; end //The DTFT of the sequence K = 4; k = 0:4/1000:4; W = k*6*%pi/K; X = (x')*exp(%i*n'*W); X_mag = abs(X); X_phase = phasemag(X); //PLOTTING GRAPHS FOR THE INTERVAL OF 0 TO 6*%pi clf(); a=gca(); figure(0); plot2d3(mtlb_fliplr(W),X_mag); xtitle('Magnitude response','W','Amplitude'); figure(1); plot2d3(mtlb_fliplr(W),X_phase); xtitle('Phase response','W','X_phase,degrees');
54cade3a6b8f3e7660a0eff014e98cd8ee564bc7
e52f9efaf8fba9ce7f791c79a0c7a6de3ce24a4a
/bersync.sci
4a66263c495c5e5c2d05fbfb78e0862be6d30796
[]
no_license
ashwinimarathe/ScilabComm
dfbc9cc6abb80ad354b1d3b22e7b59d2123a93d6
d833d13b7da6bc562897d4e781afb557838ad6dd
refs/heads/master
2016-08-12T03:21:03.087786
2016-03-28T10:02:47
2016-03-28T10:02:47
54,882,753
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,811
sci
bersync.sci
function ber = bersync(EbNo, sigma, typen) //BERSYNC Bit error rate (BER) for imperfect synchronization. // BER = BERSYNC(EbNo, TIMERR, 'timing') returns the BER of coherent BPSK // modulation over an uncoded AWGN channel with timing error. The // normalized timing error is assumed to be Gaussian distributed. // EbNo -- bit energy to noise power spectral density ratio (in dB) // TIMERR -- standard deviation of the timing error, normalized to the // symbol interval // // BER = BERSYNC(EbNo, PHASERR, 'carrier') returns the BER of BPSK // modulation over an uncoded AWGN channel with a noisy phase reference. // The phase error is assumed to be Gaussian distributed. // PHASERR -- standard deviation of the reference carrier phase error // (in rad) // Author(s): Ashwini // . // References: // [1] https://help.scilab.org [lhs,rhs] = argn(0) if (rhs<3) error("comm:bersync:numArgs") end if ~type(EbNo)==1 then error("comm:bersync:EbNo") end one=ones(1,length(EbNo)) zero=zeros(1,length(EbNo)) EbNoLin = 10.^(EbNo/10) ber = zeros(size(EbNo)) if ~strcmp(typen,"timing") if sigma>0.5 error("comm:bersync:timerr") elseif sigma<%eps ser = 1-cdfnor("PQ",sqrt(2.*EbNoLin),zero,one) ber = ser; else s = warning("MATLAB:quad:MaxFcnCount") tol = 1e-4 ./ EbNoLin.^6 tol(tol>1e-4) = 1e-4 tol(tol<%eps) = %eps for i = 1:length(EbNoLin) ber(i)=sqrt(2) / (8*sqrt(%pi)*sigma)*integrate('erfc(sqrt(EbNoLin(i))*(1-2*abs(x)))*exp(-x^2/(2*(sigma)^2))','x',-10*sigma,10*sigma,tol(i),tol(i)); end ber = ber + erfc(sqrt(EbNoLin)) / 4 end elseif strcmp(typen,"carrier") then if (sigma<0) then error("comm:bersync:phaserr") elseif sigma < %eps then ser = 1-cdfnor("PQ",sqrt(2.*EbNoLin),zero,one) ber = ser else warning("MATLAB:quad:MaxFcnCount") tol = 1e-4 ./ EbNoLin.^6 tol(tol>1e-4) = 1e-4 tol(tol<%eps) = %eps end for i = 1:length(EbNoLin) ber(i)=integrate('erfc(sqrt(EbNoLin(i))*(cos(x))* exp(-x^2/(2*(sigma)^2))','x',0,10*sigma,tol(i),tol(i))/(sqrt(2*(%pi)) * sigma); end else error("comm:bersync:thirdArg") end
ec26958f2c4f6ccb83c733f2db3731413064e829
449d555969bfd7befe906877abab098c6e63a0e8
/1022/CH5/EX5.1/5_1.sce
6b48aee09d9354ad77dddb8c1c3b7b3ab3802c11
[]
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
182
sce
5_1.sce
clc //initialisation of variables St= 0.04 //N/m d1= 5 //cm d2= 15 //cm //CALCULATIONS W= St*10^3*2*4*%pi*((d2/2)^2-(d1/2)^2) //REULTS printf ('Work= %.2e dyn cm or erg',W)
24909173451f59696269fd100ace5b44297c950c
449d555969bfd7befe906877abab098c6e63a0e8
/3773/CH2/EX2.10/Ex2_10.sce
c20129b66c997b5b2f89f43b601110c2661a336b
[]
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
432
sce
Ex2_10.sce
//Chapter 2: Antenna Basics //Example 2-16.1 clc; //Variable Initialization E1 = 3 //Magnitude of electric field in x direction (V/m) E2 = 6 //Magnitude of electric field in y direction (V/m) Z = 377 //Intrinsic impedance of free space (ohm) //Calculation avg_power = 0.5*(E1**2 + E2**2)/Z //Average power per unit area (W/m^2) //Result disp(avg_power,"The average power per unit area in watts/meter square")
5b223fd29837fe1b95c705c3423e943c4671870d
717ddeb7e700373742c617a95e25a2376565112c
/3044/CH3/EX3.6/Ex3_6.sce
a8e6b8e54c06f9faa3c63e96e1f239891600b819
[]
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
515
sce
Ex3_6.sce
//Variable declaration n=20 // Total Assistants r=3 // Assistants to be chosen //Calculation function ans = fact(n) // returns factorial of number n""" if(n==1 | n==0) then ans = 1 else ans = n*fact(n-1) end endfunction function ans = comb(n,r) // returns number of total combination of selecting "r" items out of "n" """ ans = fact(n)/(fact(r)*fact(n-r)) endfunction ways=comb(20,3) // total number of methods //Results printf ( "Total methods : %.f",ways)
ac8915777a240dc0341548c497efc36ba04206cc
449d555969bfd7befe906877abab098c6e63a0e8
/2840/CH9/EX9.12/ex9_12.sce
b821f31bc7ee3b69bb491a880d597b2b61baca01
[]
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
354
sce
ex9_12.sce
clc; clear all; a = 1e-10 // Width of box in meter m = 9.1e-31; // Mass of electron in kg h = 6.62e-34; // Planck's constant in Js c = 3e8; // Velocity of light in vaccum n = 1; // Single electron E = (h^2)/(8*m*a^2);//Energy of in lower level p = h/(2*a);//Momentum disp('J',E,'Energy of in lower level'); disp('(kg.m)/s',p,'Momentum is ');
9d0db7c9a0cb535e65bc76d0c5998f4f6054948c
449d555969bfd7befe906877abab098c6e63a0e8
/2006/CH7/EX7.7/ex7_7.sce
07d749e726eae68933185f8484b2dd01aaf4ca5d
[]
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
683
sce
ex7_7.sce
clc; m=1; // Massflow rate of the steam in kg/s p1=3.5; // Pressure at inlet in bar T1=160; // Temperature at inlet in degree celcius p2=1; // Pressure at outlet in bar Cpo=1.005; // Specific heat at constant pressure in kJ/kg K eff_isen=0.85; // Isentropic efficiency of the turbine k=1.4; // index of isentropic process T2s=(T1+273)*(p2/p1)^((k-1)/k); // Final temperature after isentropic expansion Ws=m*Cpo*((T1+273)-T2s); // Isentropic power developed Wa=eff_isen*Ws; // Actual power developed T2=(T1+273)-(Wa/(m*Cpo)); // Final temperature after expansion disp ("K",T2,"Final temperature after expansion = ","kW",Wa,"Actual power developed (Error in textbook)=");
fb5c227fccfdd5004ace09173cf1c99210447280
449d555969bfd7befe906877abab098c6e63a0e8
/911/CH1/EX1.1.a/ex_1_1_a.sce
cb6b1c771dddbe83498f8bdcab94c37554febfc7
[]
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
121
sce
ex_1_1_a.sce
//example 1.1// //radix of a proposed no// clc clear disp('the radix of the proposed number system is 3') //result//
51fbbd566501205c1c17e3994141a10100941ba2
449d555969bfd7befe906877abab098c6e63a0e8
/34/CH12/EX12.8/Ch12Exa8.sci
47e4fcd5a843cdd60d70c883381c31b2d29fdaee
[]
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,037
sci
Ch12Exa8.sci
CrossSection= 2*(10^4); // capture cross section of Cadmium-113 CrossSection= CrossSection*(10^(-28)); // converting to m^2 Mcadmium= 112; //mean atomic mass of cadmium, u density= 8.64*(10^3); //density of cadmium sheet used, kg/m^3 //Part (a) t= 0.1; //hickness of sheet used, mm t= t*10^(-3); //converting to m p= 12; //percent of Cadmium-113 in natural cadmium u= 1.66*(10^(-27)); //atomic mass unit, kg n= (p/100)*density/(Mcadmium*u); //number of atoms, atoms/m^3 Fabsorbed= 1- ((%e)^((-n)*(CrossSection)*(t))); //absorbed fraction disp(Fabsorbed,"The fraction of incident beam absorbed is: ") //Result // The fraction of incident beam absorbed is: // 0.6721891 //Part (b) t2= (-(log(0.01)))/(n*CrossSection); //required thickness, m t2= t2*10^(3); //converting to mm disp(t2,"The thickness required to absorb 99 percent of incident thermal neutrons, in mm, is: ") //Result // The thickness required to absorb 99 percent of incident thermal neutrons, in mm, is: // 0.4129018
d0e0aaf74d4a4dc9720a1fc38ec95be0ddadd6b3
449d555969bfd7befe906877abab098c6e63a0e8
/1478/CH2/EX2.18.55/2_18_55.sce
0f07f5cfcba9cf1945743a981e317652dd38f821
[]
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
514
sce
2_18_55.sce
//water and its treatment// //example 2.18.55// clc Hardness=450//Hardness of water(mg/lit) or ppm// H=Hardness/1000//Hardness of water(gms/lit)// volume_NaCl=150//Volume of NaCl// Wt_per_Litre=50//gms NaCl consumed by zeolite bed per litre// total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// CaCO3_equivalent=total_wt*50/58.505//in terms of (gms/lit)// volume_hardwater=CaCO3_equivalent/H printf("\nQuantity of water softened using zeolite bed is %.f litres",volume_hardwater);
7fb11c4a15406cc792db46e2f69f6ac0d5404158
449d555969bfd7befe906877abab098c6e63a0e8
/3772/CH12/EX12.3/Ex12_3.sce
4fb5ae11734f03826cd919372bbd3f20852ce60b
[]
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
915
sce
Ex12_3.sce
// Problem no 12.3,Page No.287 clc;clear; close; L=6 //m //span of beam w=30*10**3 //KN/m //u.d.l P=160*10**3 //N //concentrated Load //Calculations //Consider a section at a distance x from the fixed end A and B.M at x //M_x=R_b*(6-x)-30*2**-1*(6-x)**2-160*(3-x) //E*I*d**2y*(dx**2)**-1=-M_x=-R_b*(6-x)+15*(6-x)+160*(3-x) //Now Integrating above term we get //E*I*dy*(dx)**-1=R_b*2**-1*(6-x)**2-5*(6-x)**3-80*(3-x)**2+C_1 (Equation 1) //Now on Integrating we get //E*I*y=-R_b*6**-1*(6-x)**3+5*4**-1*(6-x)**2+80*3**-1*(3-x)**3+C_1*x+C_2 (Equation 2) //At x=0,dy*dx**-1=0 //substituting in equation 1 we get //C_1=1800-R_b //At x=0,y=0 //substituting in equation 2 we get //C_2=36*R_b-2340 //At x=6,y=0 R_b=72**-1*(10800-2340) //At x=0 x=0 M_x=R_b*(6-x)-30*2**-1*(6-x)**2-160*(3-x) //Result printf("Bending Moment at A is %.2f",M_x);printf(" KNm") printf("\n The Reaction at B %.2f",R_b);printf(" KN")
515b8688a683573a5f0f66ec38b635d211027a68
449d555969bfd7befe906877abab098c6e63a0e8
/2507/CH2/EX2.5/Ex2_5.sce
f3ce6602500f0272bfaa2b1bb339ece9e3f8e6ce
[]
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
838
sce
Ex2_5.sce
clc clear printf("Example 2.5 | Page number 40 \n\n"); //Find the work interaction for pure substance. //Given Data p1 = 10 //bar //initial pressure V1 = 0.1 //m^3 //initial volume p2 = 2 //bar //final pressure V2 = 0.35 //m^3 //final volume printf("Initial pressure = %.2f bar\n",p1); printf("inital volume = %.2f m^3\n",V1); printf("Final pressure = %.2f bar\n",p2); printf("Final volume = %.2f m^3\n",V2); //Solution printf("\nLet the expansion process follow the path pV^(n) = constant\n"); printf("Therefore,\n"); n = (log(p1/p2))/(log(V2/V1)); printf("n = (ln(p1/p2))/(ln(V2/V1)) = (ln(%.2f/%.2f))/(ln(%.2f/%.2f)) = %.4f\n",p1,p2,V2,V1,n); W_d = (p1*V1 - p2*V2)*10^5/(n-1) //J //Work interaction for pure substance printf("Work interaction for pure substance = (p1V1 - p2V2)/(n-1) = %.2f kJ",W_d*.001)
90a983bef71e97934e77f1fa9b57e232a83c1abe
449d555969bfd7befe906877abab098c6e63a0e8
/431/CH3/EX3.14/EX3_14.sce
0b42c3afd27d9c5d07364b473044cdff41f65aa5
[]
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
612
sce
EX3_14.sce
//Calculate current and power input //Chapter 3 //Example 3.14 //page 217 clear; clc; disp("Example 3.14") N1=90; //number of primary turns N2=180; //number of secondary turns R1=0.067; //primary resistance in ohms R2=0.233; //secondary resistance in ohms printf("Primary winding resistance referred to secondary side=%fohms",(R1*(N2/N1)^2)) printf("\nsecondary winding resistance referred to primary side=%fohms",(R2*(N1/N2)^2)) printf("\nTotal resistance of the transformer refferred to primary side=%fohms",((R1*(N2/N1)^2)+(R2*(N2/N1)^2)))
ac2a923db0a20785312bc43993c4368d88407bb2
449d555969bfd7befe906877abab098c6e63a0e8
/1484/CH5/EX5.9/5_9.sce
4a6086ac6cc983f62af2153ea8662ad25c3636f8
[]
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
432
sce
5_9.sce
clc //initialisation of variables clear k= 3.33 l= 10 //ft x= 2 //ft A= 30 //ft^2 g= 32.2 //ft/sec^2 //CALCULATIONS Q= k*(l-0.2*x)*x^1.5 V= Q/A h= V^2/(2*g) Q1= k*(l-0.2*(x+h))*((x+h)^1.5-h^1.5) va= Q1/A ha= va^2/(2*g) Q2= k*(l-0.2*(x+ha))*((x+ha)^1.5-ha^1.5) //RESULTS //RESULTS printf ('Discharge in franccis formula= %.2f cusecs',Q1) printf ('\n Discharge in corrected franccis formula= %.2f cusecs',Q2)
e3cf78e265461410d4e66cd4595ba7a17e8ed88b
449d555969bfd7befe906877abab098c6e63a0e8
/3733/CH32/EX32.37/Ex32_37.sce
3a83e9a69898c39e506e1b429e927e9a64384d91
[]
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,635
sce
Ex32_37.sce
// Example 32_37 clc;funcprot(0); //Given data L_cap=80;// MW // n=0.91*(L)^0.49;(given) T_1=[0 10 18 24];// Time in hours L_1=[60 40 20];// Load in MW H=60;// m g=9.81;// m/s^2 // Calculation //(i) E_a=(L_1(1)*(T_1(2)-T_1(1)))+(L_1(2)*(T_1(3)-T_1(2)))+(L_1(3)*(T_1(4)-T_1(3)));// MW-hrs L_a=E_a/24;// Average load on the plant in MW L_max=L_1(1);// Maximum load in MW LF=(L_a/L_max);// Load factor of the plant CF=(L_a/L_cap);// Capacity factor of the plant //(ii) O_1=L_1(1)*(T_1(2)-T_1(1));// Output in MWh n_1=0.91*(L_1(1)/L_cap)^0.49;// Efficiency I_1=O_1/n_1;// Input in MW O_2=L_1(2)*(T_1(3)-T_1(2));// Output in MWh n_2=0.91*(L_1(2)/L_cap)^0.49;// Efficiency I_2=O_2/n_2;// Input in MW O_3=L_1(3)*(T_1(4)-T_1(3));// Output in MWh n_3=0.91*(L_1(3)/L_cap)^0.49;// Efficiency I_3=O_3/n_3;// Input in MW // 1MWh=3.6*10^6 kJ E_1=I_1*3.6*10^6;// kJ E_2=I_2*3.6*10^6;// kJ E_3=I_3*3.6*10^6;// kJ m_w1=(E_1*1000)/(9.81*H*(T_1(2)-T_1(1))*3600);// Water flow in kg/sec M_w1=(m_w1*(T_1(3)-T_1(2))*3600)/1000;// m^3 m_w2=(E_2*1000)/(9.81*H*(T_1(3)-T_1(2))*3600);// Water flow in kg/sec M_w2=(m_w2*(T_1(3)-T_1(2))*3600)/1000;// m^3 m_w3=(E_3*1000)/(9.81*H*(T_1(4)-T_1(3))*3600);// Water flow in kg/sec M_w3=(m_w3*(T_1(4)-T_1(3))*3600)/1000;// m^3 V=M_w1+M_w2+M_w3;// The water supplied during the day in m^3/day n_o=(E_a/(I_1+I_2+I_3))*100;// Over all efficiency of the plant printf('\nThe quantity of water required=%0.4e m^3/day \nThe load factor=%0.3f \nThe capacity factor=%0.2f \nOver all efficiency of the plant=%0.1f percentage',V,LF,CF,n_o); // The answer provided in the textbook is wrong
73ff913364cc6c804c218f3afe3ec8b4c7351fb1
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.1.1/Unix/scilab-2.1.1/macros/arma/exar3.sci
3b9726cc28b78d22ff7031c84f0a01dda359d5f4
[ "MIT", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer" ]
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
1,158
sci
exar3.sci
//<>=exar3(m) //<>=exar3(m) // Estimation de la puissance spectrale d'un processus // ARMA // Exemple tire de Sawaragi et all // ou ils utilisent m=18 // test de mese et de arsimul //! [lhs,rhs]=argn(0) if rhs=0,m=18;end a=[1,-1.3136,1.4401,-1.0919,+0.83527] b=[0.0,0.13137,0.023543,0.10775,0.03516] rand('normal'); u=rand(1,1000); z=arsimul(a,b,[0],0,u); //----En utilisant mese //calcul de la puissance spectrale estimee par la methode //du maximum d'entropie //macro mese de Scilab corrigee [sm,fr]=mese(z,m); //----le resultat theorique deff('[gx]=gxx(z)',['gx=(abs( a* exp(-%i*2*%pi*z*(0:4))'')**2)';... 'gx=abs( b* exp(-%i*2*%pi*z*(0:4))'')**2/gx']); res=[]; for x=fr,res=[ res, gxx(x)];end; //----En utilisant une estimation arma d'ordre (4,4) // ce qui est un peu triche car a priori on ne connait pas l'ordre // [la,lb,sig,resid]=armax(4,4,z,u); a=la(1); b=lb(1); res1=[]; for x=fr,res1=[ res1, gxx(x)];end; // leg="log(p) : estimee macro mese @ valeur theorique@log(p) : arma" plot2d([fr;fr;fr]',[20*log(sm/sm(1))/log(10);... 20*log(res/res(1))/log(10);... 20*log(res1/res1(1))/log(10)]',... [-2,-1,1],"111",leg, [0,-70,0.5,60]); //end
9b2e4cca20bbfdbc521e5f56ea3b63cd7267264a
449d555969bfd7befe906877abab098c6e63a0e8
/548/DEPENDENCIES/4_07data.sci
7d6069dff99499704d66c3cb6c0e4d20160650f9
[]
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
314
sci
4_07data.sci
//An airplane is flying at standard sea level condition. //The flow conditions are assumed to be isentropic in nature. T=250;//temperature at a point on wing in Kelvin P1=1.01*10^5;//pressure at far upstream of wing T1=288.16;//temperature at far upstream of wing y=1.4;//ratio of specific heats for air
a1422ae4aa2f47d3fa7831cca3845e0bec96848a
449d555969bfd7befe906877abab098c6e63a0e8
/494/CH9/EX9.8/9_8.sce
fa3b9f5f56ef1949601cc82ef04c2516fcad0041
[]
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,001
sce
9_8.sce
//All the quantities are expressed in SI units M1 = 1.5; //upstream mach number theta = 15*%pi/180; //deflection angle p1 = 1; //ambient pressure in atm T1 = 288; //ambient temperature //from appendix C, for M1 = 1.5 we have v1 = 11.91*%pi/180; //from eq.(9.43) v2 = v1 + theta; //for this value of v2, from appendix C M2 = 2; //from Appendix A for M1 = 1.5 and M2 = 2.0, we have p2 = 1/7.824*1*3.671*p1; T2 = 1/1.8*1*1.45*T1; p0_1 = 3.671*p1; p0_2 = p0_1; T0_1 = 1.45*T1; T0_2 = T0_1; //from fig. 9.25, we have fml = 41.81; //Angle of forward Mach line rml = 30 - 15; //Angle of rear Mach line printf("\nRESULTS\n---------\n p2 = %1.3f atm\n T2 = %3.0f K\n p0,2 = %1.3f atm\n T0,2 = %3.1f K\n Angle of forward Mach line = %2.2f degrees\n Angle of rear Mach line = %2.0f degrees",p2,T2,p0_2,T0_2,fml,rml)
b1073b1f8e96e8ee1074d357885d3d656ab2dbad
449d555969bfd7befe906877abab098c6e63a0e8
/1913/CH1/EX1.3/ex3.sce
afd5adc3b5bd8f9d7c05968579a835a1bef4f921
[]
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
432
sce
ex3.sce
clc clear //Input data p1=2070;//Initial pressure of gas in kN/m^2 p2=207;//Final pressure of gas in kN/m^2 v1=0.014;//Initial volume of gas in m^3 n=1.35;//constant //Calculations P=p1/p2;//Pressure ratio v2=v1*(P^(1/1.35));//Final volume of gas in m^3 W=(p1*v1-p2*v2)/(n-1);//Work done in kJ //Output printf('(a)Final volume of gas v2= %3.5f m^3 \n (b)Work done by the gas during the expansion W= %3.2f kJ',v2,W)
2a0d71d6de84e3c196681669f86f5cc0fd6d643d
be07c1e346737e6e38bb958d9a66f52f6da2180a
/Regression/MANAGER/MANA_STUB_PROTO.tst
bf7e612144407ae0137381f84718af30fce381b0
[]
no_license
dpreisser/Training
1bc8840d646306d861f4c7610a28bb23667f06e5
97eb58c7963e4725d6a2ad9e8200ca9367c84061
refs/heads/master
2021-01-10T13:03:12.508795
2016-04-11T12:49:06
2016-04-11T12:49:06
54,963,561
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,040
tst
MANA_STUB_PROTO.tst
-- VectorCAST 6.4d (02/29/16) -- Test Case Script -- -- Environment : MANA_STUB_PROTO -- Unit(s) Under Test: manager -- -- Script Features TEST.SCRIPT_FEATURE:C_DIRECT_ARRAY_INDEXING TEST.SCRIPT_FEATURE:CPP_CLASS_OBJECT_REVISION TEST.SCRIPT_FEATURE:MULTIPLE_UUT_SUPPORT TEST.SCRIPT_FEATURE:MIXED_CASE_NAMES TEST.SCRIPT_FEATURE:STANDARD_SPACING_R2 TEST.SCRIPT_FEATURE:OVERLOADED_CONST_SUPPORT TEST.SCRIPT_FEATURE:UNDERSCORE_NULLPTR TEST.SCRIPT_FEATURE:FULL_PARAMETER_TYPES TEST.SCRIPT_FEATURE:STATIC_HEADER_FUNCS_IN_UUTS -- -- Test Case: MyTest TEST.UNIT:manager TEST.SUBPROGRAM:Place_Order TEST.NEW TEST.NAME:MyTest TEST.NOTES: Author: Date: Version: Requirement: TEST.END_NOTES: TEST.VALUE:manager.Place_Order.Table:1 TEST.VALUE:manager.Place_Order.Seat:0 TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Table:1 TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.check_total:10.0 TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Order[0].Entree:CHICKEN TEST.END
32cf28ad8a5d935390e8d5396e01f2f0d27be1c2
449d555969bfd7befe906877abab098c6e63a0e8
/3763/CH4/EX4.1/Ex4_1.sce
3140018cc2f4cdf34369d0ea573c98321d379f64
[]
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
331
sce
Ex4_1.sce
clear // // // //Variable declaration E=10**4*1.6*10**-19 //kinetic energy(J) m=1.675*10**-27 //mass(kg) h=6.625*10**-34 //planck's constant //Calculation v=sqrt(2*E/m) //velocity(m/s) lamda=h/(m*v) //de broglie wavelength(m) //Result printf("\n de broglie wavelength is %0.5f angstrom",lamda*10**10)
3109a55ed184d9d56dc96fce7c7201d8a307c7c8
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH5/EX5.2/Ex5_2.sce
1675233f67dd4446240be35c2856805692d0f26c
[]
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
252
sce
Ex5_2.sce
//Initilization of variables F1=100 //lb R=16 //in //Calculations theta=asind(14/16) //degrees N=100/sind(theta) //lb P=N*cosd(theta) //lb //Result clc printf('The value of normal reaction offered is %flb and the push required is %f lb',N,P)
573bd3833f403be74bcccedda609b72455e8ead3
449d555969bfd7befe906877abab098c6e63a0e8
/770/CH17/EX17.20/17_20.sce
53210696a09d539e7ae7f1dd6a18bad3aab63549
[]
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,618
sce
17_20.sce
clear; clc; //Example - 17.20 //Page number - 622 printf("Example - 17.20 and Page number - 622\n\n"); // Given delta_G_H2O_298 = -237.034;//[kJ/mol] - Standard Gibbs free energy of formation of H2O (l) at 298 K F = 96485;//[C/mol] - Faraday constant //(1) // For the reaction // H2 (g) + (1/2)*O2 (g) - H2O (l) n = 2;// Number of electrons transferred in the reaction // The standard Gibbs free energy change of the reaction is given by // delta_G_rkn = delta_G_for_H2O(l) - delta_G_for_H2(g) - (1/2/)*delta_G_for_O2(g) // Since delta_G_for_H2 = 0 and delta_G_for_O2 = 0 (pure components) delta_G_rkn = delta_G_H2O_298;//[kJ] delta_G_rkn = delta_G_rkn*10^(3);//[J] // delta_G_rkn = -n*F*E_0 // Thus standard equilibrium cell voltage is given by E_0 = - delta_G_rkn/(n*F);///[V] printf(" (1).The standard equilibrium cell voltage is %f V\n\n",E_0); //(2) // For the reaction // 2*H2 (g) + O2 (g) - 2*H2O (l) n_prime = 4;// Number of electrons transferred in the reaction // The standard Gibbs free energy change of the reaction is given by // delta_G_rkn = 2*delta_G_for_H2O(l) - 2*delta_G_for_H2(g) - delta_G_for_O2(g) // Since delta_G_for_H2 = 0 and delta_G_for_O2 = 0 (pure components) delta_G_rkn_prime = 2*delta_G_H2O_298;//[kJ] delta_G_rkn_prime = delta_G_rkn_prime*10^(3);//[J] // delta_G_rkn = -n*F*E_0 // Thus standard equilibrium cell voltage is given by E_0_prime = - delta_G_rkn_prime/(n_prime*F);///[V] printf(" (2).The standard equilibrium cell voltage is %f V\n\n",E_0_prime); // Thus the result obtained is same for both the reactions
0d3cbd94fcf02662e4e4997c1a99dbef9668109e
449d555969bfd7befe906877abab098c6e63a0e8
/2534/CH7/EX7.8/Ex7_8.sce
9f431e8edb33131bde81493b7d392d938a466e96
[]
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
904
sce
Ex7_8.sce
//Ex7_8 clc VCC = 9 RC = 3*10^3 RB = 500*10^3 beta = 100 VBE = 0.7 disp("VCC = "+string(VCC)+"V")//collector supply voltage disp("RC = "+string(RC)+"ohm")//collector resistance disp("RB = "+string(RB)+"ohm")//base resistance disp("beta = "+string(beta))//current gain disp("VBE = "+string(VBE)+"V")//emitter-base voltage //for a Fixed Bais Circuit; IB = (VCC - VBE)/RB disp("IB = (VCC - VBE)/RB = "+string(IB)+"A")//base current IC = beta*IB disp("IC = beta*IB = "+string(IC)+"A")//collector current VCE = VCC - IC*RC disp("VCE = VCC - IC*RC = "+string(VCE)+"V")//collector-emitter voltage disp("operating point is("+string(VCE)+"V, "+string(IC)+"A)") S = 1+beta disp("S = 1 + beta = "+string(S))//stability factor // NOTE : in the textbook author has taken beta = 100 for calculation // but has mention beta = 50 in Question // I am working with beta = 100.
4c0963e35f246e16d5070a704f644fcc3145f073
449d555969bfd7befe906877abab098c6e63a0e8
/3739/CH3/EX3.10/EX3_10.sce
0b458aa5b4806138b0374ec63eea3f7440e562b0
[]
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,233
sce
EX3_10.sce
//Chapter 3, Example 3.10, page 92 clc //Initialisation f=5*10**9 //frequency in Hz c=3*10**8 //speed of light h1=6 //in metre h2=2 //in metre pi=3.14 //Calculation h=c*f**-1 //wavelength w=atan(h1*2250**-1) //grazing angle in radian w1=w*180*pi**-1 //grazing angle in degree a=((2*pi*h1*h2)*(h*300)**-1)*3.14*180**-1 e=sin(a) F=e*2*180*pi**-1 //PGF value (wrong value calculated in textbook) LR=20*log10(F) //Decrease in received signal level //Results printf("(1) Grazing angle = %.2f degree",w1) printf("\n(2) PGF value = %f",F) //The answer provided in the textbook is wrong printf("\n(3) Decrease in received signal level = %.2f dB",LR) //The answer provided in the textbook is wrong
3064de3ef918c3d3fd219806fd55658a62417b80
449d555969bfd7befe906877abab098c6e63a0e8
/1670/CH6/EX6.6/6_6.sce
3f92b9860921f26e188c9314f1a304831bc0fd48
[]
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
463
sce
6_6.sce
//Example 6.6 //Least Square Method //Page no. 221 clc;close;clear; x=[2,3,4,5]; y=[27.8,62.1,110,161]; printf('\t 2\t 4\t\t 2\nx\tx\tx\ty\tyx\n----------------------------------------\n') x1=0;x2=0; for i=1:4 printf(' %g\t%g\t%g\t%g\t%g\n',x(i),x(i)^2,x(i)^4,y(i),y(i)*x(i)^2) x1=x1+x(i)^4; x2=x2+y(i)*x(i)^2; end printf('----------------------------------------\n \t\t%g\t\t%g\n',x1,x2) a=x2/x1; x1=poly(0,'x') disp(a*x1^2,'y = ')
27a8482dd7c3883d786b3bd62194b8376b84a74a
449d555969bfd7befe906877abab098c6e63a0e8
/767/CH5/EX5.2.1/Ch05Exa5_2_1.sci
5e3feaa074d61b9d207eecab0fe54f39ae3de0bd
[]
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
589
sci
Ch05Exa5_2_1.sci
// Scilab code Exa5.2.1: To calculate the energy and no. of collision required to stop collision : P.no. 223 (2011) m = 511; // Mass of electron, KeV M = 938*10^3; // Mass of incident charged particle, KeV E = 10*10^3; // Energy of proton, KeV E_l = 4*m*E/M; // Energy lost during collison, KeV n = E/E_l; // Number of collisions, N = round(n) printf("\n The energy lost during collision = %5.2f KeV \n Number of collision required = %d collisions",E_l, N ) // Result // The energy lost during collision = 21.79 KeV // Number of collision required = 459 collisions
21130ef514c9c8ebec5b10b51d66e33bd6681a54
449d555969bfd7befe906877abab098c6e63a0e8
/401/CH12/EX12.7/Example12_7.sce
0b5f397eeace7de8ca30fe58dc2e6d139fe5dd2e
[]
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
779
sce
Example12_7.sce
//Example 12.7 //Program to estimate the maximum bit rate that may be achieved on //the link when using NRZ format clear; clc ; close ; //Given data L=8; //km - LENGTH OF FIBER LINK Ts=8*10^(-9); //s - SOURCE RISE TIME Dn=5*10^(-9); //s/km - INTERMODAL RISE TIME Dc=1*10^(-9); //s/km - INTRAMODAL RISE TIME Td=6*10^(-9); //s - DETECTOR RISE TIME Tn=Dn*L; Tc=Dc*L; //Total Rise Time Tsyst=1.1*sqrt(Ts^2+Tn^2+Tc^2+Td^2); //Maximum bit rate Bt= 0.7/Tsyst; //Displaying the Result in Command Window printf("\n\n\t Maximum bit rate, Bt(max) is %0.1f Mbit/s which for NRZ is equivalent to a 3 dB optical bandwidth of %0.1f Mbit/s.",Bt/10^6,Bt/10^6/2);
3c77ac0e7a52b10148719a3a35c15fb7d7b15093
181f67b4868e49ca80872d6ac088a51540f90da6
/186A3/circular apperature.sce
b9d196e7724f2075f8b24d489bcd8683ee414c82
[]
no_license
nobody51/AP186
567f25ba1ad7f71ad2983860078eeaccffa46080
cb916fc9b38b508026403a2227ffc76d490fe948
refs/heads/master
2021-08-28T09:35:55.488122
2017-12-11T21:34:46
2017-12-11T21:34:46
104,969,401
0
0
null
null
null
null
UTF-8
Scilab
false
false
249
sce
circular apperature.sce
nx = 500; ny = 500; x = linspace(-1,1,nx); y = linspace(-1,1,ny); [X,Y] = ndgrid(x,y); D = exp(-(X.^2 + Y.^2)); r = sqrt(X.^2 + Y.^2); D (find(r>0.7) ) = 0; f = scf(); grayplot(x,y,A); f.color_map = graycolormap(32); xs2png(gcf(),'apperature.png');
e7deec08e728e7b4047170d2bcaba2a113d460cc
449d555969bfd7befe906877abab098c6e63a0e8
/1271/CH13/EX13.13/example13_13.sce
28781f0a2ad7e5837c868a98489285a8c8669dae
[]
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
example13_13.sce
clc // Given that x1 = 1 // coordinate on x axis of plane y1 = 0 // coordinate on y axis of plane z1 = 0 // coordinate on z axis of plane d = 2.82 // the space between successive plane in angstrom theta = 8.8 // glancing angle in degree // Sample Problem 13 on page no. 13.29 printf("\n # PROBLEM 13 # \n") printf(" Standard formula used \n") printf(" n*lambda = 2 * d * sin(theta) \n") n = 1 lambda = 2 * d * sind(theta) / n printf("\n Wavelength of x-ray is %f angstrom.",lambda)
e47c779cec7960b41bf2829cb8a9eaf80d604007
449d555969bfd7befe906877abab098c6e63a0e8
/1583/CH2/EX2.5/SSA_Ex_2_5.sce
be6e4cfdf6b12e340be796a946c3feb95e9bbf5a
[]
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
377
sce
SSA_Ex_2_5.sce
clc //Chapter 2:Small Signal Amplifiers //example 2.5 page no 32 //given gm=60*10^-3//transconductance Si=50//antenna source impedance rd=2.5*10^3 Zo=rd/(1+gm*rd)//output impedance without load RL=200//load resistance zo1=200*Zo/(200+Zo)//output impedance with load Av=gm*(rd*RL/rd+RL)/(1+gm*(rd*RL/rd+RL))//voltage gain mprintf('the voltage gain is %f ',Av)
f94110053c16e185387380792472348cf37e9812
c2c094e5792a8d99eec660157b9b22bf111f175b
/Hardware/MALU.tst
7e0289a2fc9317dc41538f71b4e1afd62e7d35d2
[]
no_license
z2512690268/nand2teris
087bfbdb56fee154ee76d7d9e8d75a92a246be04
6f190f3d77b7b24fb0f2ae3a56691b2d60a19c33
refs/heads/main
2023-04-19T00:21:49.516211
2021-05-05T12:10:30
2021-05-05T12:10:30
364,537,511
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,258
tst
MALU.tst
load MALU.hdl, output-file MALU.out, output-list x%B1.16.1 y%B1.16.1 zx nx zy ny f no out%B1.16.1; set x %B1100111111011111, set y %B1011101010110011, set zx 1, set zy 1, set nx 1, set ny 0, set f 0, set no 0, eval, output; set x %B0110110111110011, set y %B0110110011101001, set zx 0, set zy 1, set nx 1, set ny 1, set f 0, set no 0, eval, output; set x %B1001110101011001, set y %B0000110100100000, set zx 1, set zy 1, set nx 1, set ny 0, set f 0, set no 1, eval, output; set x %B1101111101110011, set y %B1111111010000000, set zx 0, set zy 0, set nx 1, set ny 0, set f 1, set no 1, eval, output; set x %B0011110100111000, set y %B1010011010111000, set zx 0, set zy 0, set nx 1, set ny 1, set f 0, set no 0, eval, output; set x %B0000000100011011, set y %B1011101011011011, set zx 0, set zy 1, set nx 0, set ny 0, set f 1, set no 0, eval, output; set x %B1101010011000111, set y %B0001101101100100, set zx 1, set zy 0, set nx 0, set ny 0, set f 0, set no 1, eval, output; set x %B0011110001011010, set y %B1100000100010100, set zx 0, set zy 0, set nx 1, set ny 0, set f 0, set no 1, eval, output; set x %B0010111011000110, set y %B1000001111000001, set zx 1, set zy 0, set nx 1, set ny 0, set f 1, set no 1, eval, output; set x %B1111101010110000, set y %B0100100101100010, set zx 1, set zy 0, set nx 1, set ny 0, set f 0, set no 1, eval, output; set x %B1010110000110101, set y %B1010000000111010, set zx 1, set zy 0, set nx 1, set ny 0, set f 0, set no 1, eval, output; set x %B0100100000110110, set y %B0111110111100100, set zx 1, set zy 1, set nx 0, set ny 0, set f 1, set no 1, eval, output; set x %B1001010011000001, set y %B1011000101001000, set zx 0, set zy 0, set nx 0, set ny 0, set f 1, set no 0, eval, output; set x %B1010110101010110, set y %B0001010100001101, set zx 0, set zy 1, set nx 0, set ny 1, set f 1, set no 0, eval, output; set x %B0110110110001111, set y %B1100010101000001, set zx 1, set zy 1, set nx 1, set ny 1, set f 1, set no 1, eval, output; set x %B1110111101111010, set y %B0011000000100001, set zx 1, set zy 1, set nx 0, set ny 1, set f 1, set no 0, eval, output;
f44b6ff31546cb243736b0e64888df9b382e2706
449d555969bfd7befe906877abab098c6e63a0e8
/2855/CH12/EX12.49/Ex12_49.sce
fe07c4cf0627fa75f59e87d7271cb400bc000934
[]
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
Ex12_49.sce
//chapter 12 //page no 541 //exa 12_49 //given clear; clc; Zd=100; //in km Do=0.07; //in ps/nm^2 D1=-0.3; //in ps/nm^2 Ldsf=(Zd*Do)/(Do-D1); //length of dispersion compensation fiber in km printf("\n Length of Dispersion compensation fiber, Ldsf = %0.0f km",Ldsf);//Result
c308ae08bafe917279332b00c4dc67a0e8c03ca2
449d555969bfd7befe906877abab098c6e63a0e8
/3751/CH12/EX12.6/Ex12_6.sce
05840dcb148117e4f8df9606a58428fd87d31f4a
[]
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
3,428
sce
Ex12_6.sce
//Fluid Systems - By- Shiv Kumar //Chapter 12- Reciprocating Pumps //Example 12.6 clc clear //Given Data:- D=200; //Piston Diameter, mm L=300; //Stroke length, mm H_s=4; //Suction Head, m H_d=35; //Delivery Head, m d_s=100; //Diameter of Suction Pipe, mm d_d=d_s; //Diameter of Delivery Head l_d=50; //Length of Delivery Pipe, m l_s=10; //Length of Suction Pipe, m f_s=0.04; //Co-efficient of friction for Suction Pipe f_d=f_s; //Co-efficient of friction for Delivery Pipe N=30; //Speed of Pump, rpm //Data Used:- g=9.81; //Acceleration due to gravity, m/s^2 rho=1000; //Density of water, kg/m^3 //Computations:- D=D/1000; //m L=L/1000; //m d_s=d_s/1000; //m d_d=d_d/1000; //m a_s=(%pi/4)*d_s^2; //m^2 a_d=(%pi/4)*d_d^2; //m^2 A=(%pi/4)*D^2; //m^2 omega=2*%pi*N/60; //rad/s r=L/2; //m // (1) Suction Stroke //At end of Stroke, H_as=(l_s/g)*(A/a_s)*omega^2*r; //m of water //At middle of Stroke, h_fs=f_s*(l_s/d_s)*(1/(2*g))*((A/a_s)*omega*r)^2; //m of water H_sb=H_s+H_as; //Pressure at begining of suction stroke, m of water (vaccum) H_se=H_s-H_as; //Pressure at end of suction stroke, m of water H_se=abs(H_se); //m above atmosphere H_sm=H_s+h_fs; //Pressure at middle of suction stroke, m of water (vaccum) // (1) Delivery Stroke //At end of Stroke, H_ad=(l_d/g)*(A/a_d)*omega^2*r; //m of water //At middle of Stroke, h_fd=f_d*(l_d/d_d)*(1/(2*g))*((A/a_d)*omega*r)^2; //m of water H_db=H_d+H_ad; //Pressure at begining of delivery stroke, m of water (above atmosphere) H_de=H_d-H_ad; //Pressure at end of delivery stroke, m of water (above atm.) H_dm=H_d+h_fd; //Pressure at middle of delivery stroke, m of water (above atm.) m=rho*A*L*N/60; //Mass of Water Discharge, kg/s //Referring to Equation 12.18 in the textbook, Work= m*g*(H_s+H_d+(2/3)*h_fs+(2/3)*h_fd); //Total Work done by Pump, W //Results:- printf("(1)Suction Stroke\n\t") printf("Pressure at Begining of the Stroke=%.2f m of water (vaccum)\n\t",H_sb) //The answer vary due to round off error printf("Pressure at End of the Stroke=%.1f m of water (above atmosphere\n\t",H_se) //The answer vary due to round off error printf("Pressure at Middle of the Stroke=%.3f m of water (vaccum)\n\n",H_sm) //The answer vary due to round off error printf("(2)Delivery Stroke\n\t") printf("Pressure at Begining of the Stroke=%.2f m of water ( above atmosphere )\n\t",H_db) //The answer vary due to round off error printf("Pressure at End of the Stroke=%.2f m of water (above atm.)\n\t",H_de) //The answer vary due to round off error printf("Pressure at Middle of the Stroke=%.2f m of water ( above atm. )\n",H_dm) //The answer vary due to round off error printf(" Power Required to drive the Pump=%.2f W",Work) //The answer vary due to round off error
c2bed1078d787b9311960d073b23a37a938ed67c
717ddeb7e700373742c617a95e25a2376565112c
/3204/CH8/EX8.2/Ex8_2.sce
0829fe80a3a8a1f1613304825d8e2ec7a3561935
[]
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
739
sce
Ex8_2.sce
// Initilization of variables V_r=20 // Velocity ratio // Refer the table given in the textbook for values of W,P,M.A & efficiency (eta) // Calculations // Part (a)- Realtionship between W & P // Here part a cannot be solved as it has variables which cannot be defined in Scilab. Ref.textbook for the solution // Part (b)- Graph between W & efficiency (eta) x=[0;30;40;50;60;70;80;90;100] // values for W // N y=[0;21.4;23.5;25;26.1;25.9;27.6;28.1;28.6] // values for efficiency (eta) subplot(221) xlabel("W (N)") ylabel("efficiency (eta)") plot(x,y) // Results clc printf('The graph is the solution') // The value of m is found by drawing straight line on the graph and by taking its slope. Ref textbook for the solution
0a4cb94b84a003324f29f38ec963810a3e208091
99b4e2e61348ee847a78faf6eee6d345fde36028
/Toolbox Test/enbw/enbw6.sce
9a5f01589ac83623872a9ef43949af2e973ec77d
[]
no_license
deecube/fosseetesting
ce66f691121021fa2f3474497397cded9d57658c
e353f1c03b0c0ef43abf44873e5e477b6adb6c7e
refs/heads/master
2021-01-20T11:34:43.535019
2016-09-27T05:12:48
2016-09-27T05:12:48
59,456,386
0
0
null
null
null
null
UTF-8
Scilab
false
false
250
sce
enbw6.sce
//check o/p when i/p arg fs has a negative value win=[1 2 3 4 6 7]; en=enbw(win,-44.1e3); disp(en); ////output // !--error 10000 //Expected input number 2, Fs, to be positive. //at line 39 of function enbw called by : //en=enbw(win,-44.1e3);
f8c4de4d55559f550614f5767e5b470ef371a6c0
449d555969bfd7befe906877abab098c6e63a0e8
/2657/CH1/EX1.2/Ex1_2.sce
6ed257156395c7d2b72a0341828b56dca63e4d8b
[]
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
374
sce
Ex1_2.sce
//Calculation of brake power and friction power clc,clear //Given: ip=10 //Indicated power in kW eta_m=80 //Mechanical efficiency in percent //Solution: //Since, eta_m = bp/ip bp=(eta_m/100)*ip //Brake power in kW fp=ip-bp //Friction power in kW //Results: printf("\n The brake power delivered, bp = %d kW\n",bp) printf(" The friction power, fp = %d kW\n\n",fp)
c75ec8630b750beacba499f910d8b97945c117c6
449d555969bfd7befe906877abab098c6e63a0e8
/2333/CH4/EX4.10/10.sce
f1d908b885dfc9bf44e1216606af987bafae735a
[]
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
495
sce
10.sce
clc // Given that mu_o = 1.658 // refractive index of material for ordinary ray mu_e = 1.486 // refractive index of material for extra ordinary ray c = 3e8 // speed of light in m/sec // Sample Problem 10 on page no. 216 printf("\n # PROBLEM 10 # \n") v_o = c/mu_o // velocity of ordinary ray v_e = c/mu_e // velocity of extra ordinary ray printf("Standard formula used \n mu=tan(Ip)\n") printf("\n Velocity of ordinary ray is %e m/sec \n Velocity of extra ordinary ray is %e m/sec",v_o,v_e)
c8859cc2d0fb18f6a17a506326949ed37ad32359
f5f41d427e165a46b51c8b06f6c2010b4213033a
/Scilab/lin_inter.sce
32cbfab6aebfc2cb9744633e925d2c3421ef1bfe
[]
no_license
rissuuuu/IT_LAB
a40f6ea5311f5d8012364cfa3d3ad37d83be3afd
8d0f44a2b8b20ed1101c34a5cb263e6229c200cc
refs/heads/master
2021-01-03T05:06:49.877644
2020-02-12T07:42:44
2020-02-12T07:42:44
239,934,733
0
0
null
null
null
null
UTF-8
Scilab
false
false
243
sce
lin_inter.sce
//19MCMI07 //Rohan Yadav x=0:10; y=x.^5+x.^2; //curve //genrating 200 points between 0 and 10 xx=linspace(0,10,200); yy=interp1(x,y,xx,'linear'); yy2=interp1(x,y,xx,'spline'); //plotting x,y as dots plot(x,y,'d'); plot(xx,yy); plot(xx,yy2);
0e04db747f54ee36fac5bb40c275fae899720f74
449d555969bfd7befe906877abab098c6e63a0e8
/764/CH7/EX7.2.a/data7_2.sci
47cd1ed40d598ba126fceee9cdab9ea8ecba9bee
[]
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
203
sci
data7_2.sci
//(Threaded Joints) Example 7.2 //Refer Fig.7.14 on page 232 //Yield tensile strength of 30C8 Syt (N/mm2) Syt = 400 //Factor of safety fs fs = 5 //Shear load acting on the bolts Pt (kN) Pt = 5
942b3ec9df19381cb052311b9a3db01d74fbe667
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH15/EX15.09/15_09.sce
784351a628351fec2968e5773adb6c9b0fdad30b
[]
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
704
sce
15_09.sce
//pathname=get_absolute_file_path('15.09.sce') //filename=pathname+filesep()+'15.09-data.sci' //exec(filename) //Leakage(in kg/min): m=3 //Acceleration due to gravity(in m/s^2): g=9.81 //Gas constant(in kJ/kg.K): R=0.287 //From steam tables: ps=5.628 //kPa ps1=5.075 //kPa ps2=5.352 //kPa //Absolute pressure in condenser(in kPa): pt=ps //Partial pressure of air(in kPa): pa1=pt-ps1 //Volume of air handled by air pump(in m^3/hr): V1=m*R*(273+33)/pa1 //Partial pressure of air(in kPa): pa2=pt-ps2 //Volume of mixture handled(in m^3/hr): V2=m*R*(273+34)/pa2 printf("\nRESULT\n") printf("\nVolume of air handled = %f m^3/hr",V1) printf("\nVolume of mixture handled = %f m^3/hr",V2)
6645ee75e1f1a59475f22db63b16fb0dc75ab1ac
449d555969bfd7befe906877abab098c6e63a0e8
/1199/CH2/EX2.24/2_24.sci
3ec202a3bd9c98df115a6141a027c2167acc3378
[]
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
128
sci
2_24.sci
// 2.24 clc; Rth0=10; ath0=0.00393; dth=150-20; R150=Rth0*[1+ath0*dth]; printf("Resistance at 150 degree C=%.2f ohm",R150)
87b4ec604fdaa31a8935371f097dba35f7d2fecd
449d555969bfd7befe906877abab098c6e63a0e8
/3574/CH5/EX5.13/EX5_13.sce
e2353e0616f84d3e78178340dadccac4f716a128
[]
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
748
sce
EX5_13.sce
// Example 5.13 // Determine the expected in-rush current // Page No. 208 clc; clear; close; // Given data kva1=5.6; // KVA/hp lower limit from table 5.9 hp=150; // Motor horsepower Vline=460; // Line voltage kva2=6.3; // KVA/hp upper limit from table 5.9 // Expected in-rush current // Lower limit of expected range of in-rush current is Ilrss=(kva1*hp*1000)/(sqrt(3)*Vline); // Upper limit of expected range of in-rush current is Iulss=(kva2*hp*1000)/(sqrt(3)*Vline); // Display result on command window printf("\n Lower limit of expected range of in-rush current = %0.0f A",Ilrss); printf("\n Upper limit of expected range of in-rush current = %0.0f A",Iulss);
ad6c05245b832c2dc08d07ef7efcd1b40d1f63c1
449d555969bfd7befe906877abab098c6e63a0e8
/1994/CH7/EX7.10/Example7_10.sce
fff3fdca0791586005970befbde3c1386b5828f3
[]
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
Example7_10.sce
//Chapter-7,Example7_10,pg 7-35 Rm=50 Im=2*10^-3 V1=500 V2=100 V3=50 V4=10 S=1/Im//senstivity R4=S*V4-Rm R3=S*V3-(R4+Rm) R2=S*V2-(R4+Rm+R3) R1=S*V1-(R4+Rm+R3+R2) printf("series string of multipliers\n") printf("R1=%.2f ohm\n",R1) printf("R2=%.2f ohm\n",R2) printf("R3=%.2f ohm\n",R3) printf("R4=%.2f ohm\n",R4)
82455ad67ec586f6311d1af54e0240bede2266b0
449d555969bfd7befe906877abab098c6e63a0e8
/69/CH5/EX5.32/5_32.sce
e48a7cd883fcde6e1c97dbb97f40986e1934ea47
[]
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
337
sce
5_32.sce
clear; clc; close; hfb = -0.99; hib = 14.3; hob = 0.5*(10^(-6)); Re = 2.2*(10^(3)); Rc = 3.3*(10^(3)); Zi = (Re*hib)/(Re+hib); disp(Zi,"Input impedance(Zi) :"); ro=1/hob; Zo = (ro*Rc)/(ro+Rc); disp(Zo,"Output impedance(Zo) :"); Av = -hfb*Rc/hib; disp(Av,"Voltage gain(Av) :"); Ai = hfb; disp(Ai,"Current gain(Ai) :");
cf8f7056abab1baea68764941093d840a826b5e1
449d555969bfd7befe906877abab098c6e63a0e8
/1871/CH4/EX4.35/Ch04Ex35.sce
e433ea0f41bff69d026363756281ca1fa0a30691
[]
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
406
sce
Ch04Ex35.sce
// Scilab code Ex4.35: : Pg:188 (2008) clc;clear; N = 500; // Number of fringes x = 0.01474; // Distance traversed by the mirror when N fringes cross the field of view, cm //Since x = N*Lambda/2, solving for Lambda Lambda = 2*x/(N*1e-08); // wavelngth of light, angstrom printf("\nThe wavelength of light = %4.0f angstrom", Lambda); // Result // The wavelength of light = 5896 angstrom
c4772ee46879cfb8e311dce3dea0985798f89603
449d555969bfd7befe906877abab098c6e63a0e8
/25/CH10/EX10.1/10_1.sce
1a07a151542fb53a0abc21940e648e4a580a9bf9
[]
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
612
sce
10_1.sce
// example:-10.1;page no.-547. // problem to calculate and plot the phase and attenuation constants for RHCP & LHCP plane wave. M=1800;// M=4*pi*Ms; deltaH=75;eo=8.854*10^-12;muo=4*%pi*10^-7;c=3*10^8; Ho=3570;er=14;tandelta=0.001; fo=(2.8*10^9)/Ho; // IN GHZ. wo=2*%pi*fo; fm=(2.8*10^9)/M; // IN GHZ. wm=2*%pi*fm; mue=muo*(1+(wo*wm)/(wo^2-wm^2)); e=eo*er*(1-%i*tandelta); f=0:1000000:20*10^9; w=2*%pi.*f; k=muo*((w.*wm)/(wo^2-w^2)); gama=%i*w*sqrt(e.*(mue-k)); alpha=abs(real(gama)); bta=abs(imag(gama)); plot2d(f,gama,style=3,rect=[0,0,20*10^9,24]) plot2d(f,bta,style=2,rect=[0,0,20*10^9,24])
b020a921be0120d45234156e2da6e5f18b451acb
449d555969bfd7befe906877abab098c6e63a0e8
/615/CH8/EX8.16/8_16.sce
cc6f8bd8dcc4de6f49e5067cfa55e9fea8bcf3e0
[]
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
443
sce
8_16.sce
//Fuels and Combustion// //Example 8.16// C=3;//weight of carbon in 1kg of coal sample in Kilograms// WO2=C*32/12;//weight of oxygen in carbon sample in Kilograms// WA=WO2*100/23;//weight of air in the carbon sample in Kilograms// printf('weight of air required for combustion of carbon=WA=%fKg',WA); MA=WA/28.92;//mol of air in kilograms// VA=MA*22.4;//Volume of air required in m3 air// printf('\nVolume of air required=VA=%fm3',VA);
c51e0aace62f8d6875cf339d341b40759b00ec25
e82d1909ffc4f200b5f6d16cffb9868f3b695f2a
/Lista 9/Lista Baron/Questao_3.sci
efee2fd3d477eaadecfbf8ef6a31b93a02651355
[]
no_license
AugustoCam95/Computational-Linear-Algebra
eb14307dd3b45ccc79617efe74d1faca639c36c5
99b1a1f9499fbc4343bd5c878444e9e281952774
refs/heads/master
2020-03-30T22:26:23.790763
2018-10-05T03:34:06
2018-10-05T03:34:06
151,666,289
0
0
null
null
null
null
UTF-8
Scilab
false
false
282
sci
Questao_3.sci
function A=Questao_3(n) //cria randômicamente os autovalores negativos autovalores=-1*abs(rand(n)) //o resto é parecido com a questão 1... T=floor(abs(10*rand(n,n))) A=zeros(n,n) A=diag(autovalores) T= (T + T')*0.5; A=inv(orth(T)')*A*inv(orth(T)) endfunction
00b6ec6ec0429fb85301bf0d845522946d0b2f51
449d555969bfd7befe906877abab098c6e63a0e8
/1205/CH7/EX7.9/S_7_9.sce
e443b59d1ba689716331e99975ac0862c9d7e355
[]
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
750
sce
S_7_9.sce
clc; yB=0.5;//m, sag of the cable m=0.75;//kg/m, mass per unit length g=9.81;//m/s^2, acceleration due to gravity AB=40;//m, distance AB //a. Load P w=m*g;//N/m , Load per unit length xB=AB/2;//m, distance CB W=w*xB;//N, applied at halfway of CB //Summing moments about B //sum(M_B)=0 To=W*xB/2/yB;//N //from force triangle TB=sqrt(To^2+W^2);//N, =P, as tension on each side is same printf("Magnitude of load P= %.0f N \n",TB); //slope of cable at B theta=atan(W/To);//rad theta=theta*180/%pi;//degree, conversion to degree printf("Slope of cable at B is theta= %.1f degree\n",theta); //length of cable //applying eq. 7.10 sB=xB*(1+2/3*(yB/xB)^2);//m printf("Total length of cable from A to B is Length= %.4f m\n",2*sB);
d512dce1b38de36b861bc6bd04092570d96b45c1
449d555969bfd7befe906877abab098c6e63a0e8
/1325/CH2/EX2.3/ex2_3.sce
091910bcb9a4413bf05481cdca644a8b1fd2adc0
[]
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,492
sce
ex2_3.sce
//to find maximum twist,apeed of flywheels when twist is maximum and when springs regains its shape clc //given m1=500//lb ft^2 m2=1500//lb ft^2 k=150//lb ft^2 w1=150//rpm //angular momentum will be conserved as net external force is zero //let final angular velocity be N then (m1+m2)N=w1*m1 N=(w1*m1)/(m1+m2) printf("Angular velocity at the instant when speeds of the flywheels are equalised is given by %.2f r.p.m\n",N) //kinetic energy at this instance ke1=(1/2)*((m1+m2)/32.2)*((%pi*N)/30)^2 printf("The kinetic energy of the system at this instance is %.2f ft lb\n",ke1) printf("which is almost equal to 480 ft lb \n") //initial kinetic energy ke0=(1/2)*((m1)/32.2)*((%pi*w1)/30)^2 printf("The initial kinetic energy of the system is %.2f ft lb\n",ke0) printf("which is almost equal to 1915 ft lb \n") //strain energy = s s=ke0-ke1 printf("strain energy stored in the spring is %.2f ft lb which is approximately 1435 ft lb\n",s) //if x is the maximum anglular displacement of wheel and the mean torque applied by spring is i/2*k*x then work done or strain energy is given by 1/2 *k*x^2 x=((1435*2)/150)^.5 printf("Maximum angular displacement is %.2f in radians which is equal to 250 degrees\n",x) //na1 and na are initial and final speeds of the flywheel 1 and same nb1 and nb for flywheel 2 na=2*N-w1//w1=na1 nb=2*N-0//nb1=0 printf ("Speed of flywheel a and b when spring regains its unstrained position are %.2f rpm and %.2f rpm respectively\n",na,nb)
4c54498f59500e7eaed6941b87df33a68ed1f26a
449d555969bfd7befe906877abab098c6e63a0e8
/2216/CH9/EX9.2/ex_9_2.sce
542cc876a79a12b98422007d5127a1f77e9d07f7
[]
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
212
sce
ex_9_2.sce
//Example 9.2: The thickness clc; clear; close; //given data : format('v',7) lamda=589.3*10^-9;// in m ne=1.486; no=1.658; x=(lamda/(2*(no-ne)))*10^3; disp(x,"The thickness of the a quarter wave plate,x(mm) = ")
9942cadc5f83867258e6829d4f5b834aaf6f5a0a
449d555969bfd7befe906877abab098c6e63a0e8
/1862/CH13/EX13.7/C13P7.sce
03dd788138a4bfc3ec5ea5aae49c2732c6d2059e
[]
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,001
sce
C13P7.sce
clear clc //to find kinetic energy of radon and alpha partical // GIVEN: //decrease in internal energy delta_E = 4.87//in MeV //mass of alpha partical mHe = 4.00//in u //mass of radon partical mRn = 222.0//in u // SOLUTION: //applying conservation of energy principle //we get two equations //one for ratio of kinetic energies and second for total kinetic energy //solving two equations using matrix A = [1 (-mHe/mRn);1 1] b = [0;4.87] c = A\b //ratio of kinetic energies KRn_by_KHe = mHe/mRn //total kinetic energy of products Kf = delta_E//in MeV //kinetic energy of radon partical K_Rn = c(1)//in MeV //kinetic energy of alpha partical K_He = c(2)//in MeV printf ("\n\n Ratio of kinetic energies KRn_by_KHe = \n\n %.4f",KRn_by_KHe) printf ("\n\n Total kinetic energy of products Kf = \n\n %.2f MeV",Kf) printf ("\n\n Kinetic energy of radon partical K_Rn = \n\n %.3f MeV",K_Rn) printf ("\n\n Kinetic energy of alpha partical K_He = \n\n %.2f MeV",K_He)
2e17e494cb7c6f4c6bc604b1951ecbb5d52e89b5
449d555969bfd7befe906877abab098c6e63a0e8
/1439/CH9/EX9.6/9_6.sce
24ea0dead14af38ae3d70972aa1cd995f53b0a56
[]
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
9_6.sce
clc //initialisation of variables R= 0.08205 //l-atm mole^-1 deg^-1 T= 250 //C n= 0.1 //mole Kp= 1.78 //CALCULATIONS x= n+(n^2*R*(273.1+T)/Kp) //RESULTS printf ('x= %.3f mole ',x)
3b5013d9192501107b31ec89720edf4f7973dbd7
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/macros/percent/%hm_log.sci
a08598a2ac2fae04b31ba11273ff1cee9902a724
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer" ]
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
76
sci
%hm_log.sci
function M=%hm_log(M) // Copyright INRIA M('entries')=log(M('entries'))
8b4b0dba4762ca7031ec0f64a9d0a4e5f5df4e9e
66106821c3fd692db68c20ab2934f0ce400c0890
/test/jintgen/unr_type_06.tst
ec2c28113022e44097df1a63cebcf2d750ea750a
[]
no_license
aurelf/avrora
491023f63005b5b61e0a0d088b2f07e152f3a154
c270f2598c4a340981ac4a53e7bd6813e6384546
refs/heads/master
2021-01-19T05:39:01.927906
2008-01-27T22:03:56
2008-01-27T22:03:56
4,779,104
2
0
null
null
null
null
UTF-8
Scilab
false
false
197
tst
unr_type_06.tst
// @Harness: verifier // @Purpose: "Test for unresolved types" // @Result: "UnresolvedType @ 7:27" architecture unr_type_06 { subroutine foo(): void { local e: int = 0 : duck; } }
bd617ff46bd1875790ed23ec15597417626b9505
449d555969bfd7befe906877abab098c6e63a0e8
/98/CH6/EX6.19/example6_19.sce
1bd384a7d9659f929bcdc5da80ba270cd4d79c3d
[]
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
811
sce
example6_19.sce
//Chapter 6 //Example 6_19 //Page 124 clear;clc; pf1=0.7; pf2=0.866; tc=100; id=0.1; //Referring to phasor diagram of figure 6.16, a1=pf2/pf1; BD=a1-1; ac=BD*10; phi1=(acosd(pf1)); phi2=(acosd(pf2)); lead=a1*sind(phi1)-sind(phi2); pae_cost=lead*id; cost=ac/pae_cost; disp("COST OF INCREASING PLANT CAPACITY: "); printf("The increase in kVA capacity of the plant = %.4f*OB \n\n", BD); printf("Total cost of increasing the plant capacity = Rs. %.2f*OB \n\n", ac); disp("COST OF PHASE ADVANCING EQUIPMENT: "); printf("Leading kVAR taken by p.f correction equipment = %.3f*OB \n\n", lead); printf("Let the cost per kVAR of the equipment be Rs. y \n\n"); printf("Annual cost of phase advancing equipment = Rs. %.3f*y*OB \n\n", pae_cost); printf("Equating the total costs for economy, y = Rs. %.2f \n\n", cost);
222c5f4c7304e5dcf9c5ace3f3b0c0a3d2270845
449d555969bfd7befe906877abab098c6e63a0e8
/2606/CH8/EX8.7/ex8_7.sce
129fa8911f5d463e8919d5c4fe5ffa99beab72e5
[]
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
ex8_7.sce
//Page Number: 8.10 //Example 8.7 clc; //Given Te=127;//Kelvin T=290;//Kelvin G1=100; F2dB=12;//db F2=(10^(F2dB/10)); F1=1+(Te/T); F=F1+((F2-1)/G1); FF=(10*log10(F)); disp('dB',FF,'Overall Noise Figure'); //Equivalent Noise Temperature TE TE=(F-1)*T; disp('K',TE,'Equivalent Noise Temperature');
6cfc830dc4085d0f16557c2615f494dcabf2b3ba
449d555969bfd7befe906877abab098c6e63a0e8
/2510/CH9/EX9.14/Ex9_14.sce
b66fe45a78cd32cc0e232b8c508480daa2e28e39
[]
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,125
sce
Ex9_14.sce
//Variable declaration: k = 60.0 //Thermal conductivity of rod (W/m.K) p = 7850.0 //Density of rod (kg/m^3) Cp = 434.0 //Heat capacity of rod (J/kg.K) h = 140.0 //Convection heat transfer coefficient (W/m^2.K) D = 0.01 //Diameter of rod (m) kf = 0.6 //Thermal conductivity of fluid (W/m.K) L = 2.5 //Length of rod (m) Ts = 250.0 //Surface temperature of rod (°C) Tf = 25.0 //Fluid temperature (°C) //Calculation: //Case 1: a = k/(p*Cp) //Thermal diffusivity of bare rod (m^2/s) //Case 2: Nu = h*D/kf //Nusselt number //Case 3: Bi = h*D/k //Biot number of bare rod //Case 4: Q = h*(%pi*D*L)*(Ts-Tf) //Heat transferred from rod to fluid (W) //Result: printf("1. The thermal diffusivity of the bare rod is : %.2f x 10^-5 m^2/s.",a/10**-5) printf("2. The nusselt number is : %.2f .",Nu) printf("3. The Biot number is : %.4f .",Bi) printf("4. The heat transferred from the rod to the fluid is : %.0f W.",Q)
f97f274573d8e986364ff990aa2ea5692b68f416
449d555969bfd7befe906877abab098c6e63a0e8
/2150/CH2/EX2.22/ex2_22.sce
ceb02ab9ac10539fa337db10cd5cd559e2bf8017
[]
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
488
sce
ex2_22.sce
// Exa 2.22 clc; clear; close; // Given data R_L = 1;// in K ohm R_L = R_L * 10^3;// in ohm r_d = 10;// in ohm V_m = 220;// in V I_m = V_m/(r_d+R_L);// in A disp(I_m,"Peak value of current in A is"); I_dc = (2*I_m)/%pi;// in A disp(I_dc,"DC value of current in A is"); Irms= I_m/sqrt(2);// in A r_f = sqrt((Irms/I_dc)^2-1)*100;// in % disp(r_f,"Ripple factor in % is"); Eta = (I_dc)^2 * R_L/((Irms)^2*(R_L+r_d))*100;// in % disp(Eta,"Rectification efficiency in % is");
8a7d0170e613fd43ef9e99d2fb6cad8bc73fb0fb
449d555969bfd7befe906877abab098c6e63a0e8
/1958/CH5/EX5.2/Chapter5_example2.sce
12c71606db0eddc39c27b731e84f0987687c30d5
[]
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
412
sce
Chapter5_example2.sce
clc clear //Input data l=0.8//Length of the wire in m d=(1.8*10^-3)//Diameter of the wire in m a=1.5//Angle of twist in degrees S=(1.8*10^11)//Modulus of rigidity of the material in N/m^2 //Calculations r=(a*3.14)/180//Angle of twist in radians W=((3.14*S*(d/2)^4*r^2)/(4*l))/10^-5//Work required to twist the wire in J*10^-5 //Output printf('Work required to twist the wire is %3.2f*10^-5 J',W)
4b2711aa9f4e49e959a8e0b2b28e2b3da8ceeea4
e6d5f1d801a3fe887b5dc04b8cc0a9eabc1fd432
/Proyecto_1/dijkstraF.sce
f456b5e495ed016f382d5aceb5c155b3623d8963
[]
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
1,351
sce
dijkstraF.sce
// Función que calcula la distancia mínima function min_index = minDistance(n, dist, sptSet) // Inicializa la distancia mínima en 'infinito', //usando el entero máximo min_ = 1000 min_in = 0 // Busca el nodo con la menor distancia for v = 1:n if (dist(v) < min_) & (sptSet(v) == %f) then min_ = dist(v) min_in = v end end min_index = min_in endfunction function [path, distances] = ddijkstra(self, src) [m, n] = size(self) dist = zeros(n,1) for node = 1:n dist(node,1) = 1000 end nodes = zeros(n,1) for a = 1:n nodes(a,1) = a; end p = src sptSet = zeros(n, 1) dist(src) = 0 sptSet(src) = 1 for node = 1:m u = minDistance(n, dist, sptSet) sptSet(u) = 1 for v = 1:n efe = dist(u,1) + self(u, v); if (sptSet(v,1) == 0) && (dist(v,1) > efe)then dist(v,1) = efe p = nodes(u,1); end end end path = p distances = dist endfunction function vec = dijkstra(matriz, src) matrix_M = floyd_warshall(matriz) vec = matrix_M(src, :) endfunction
acc9c6438e63c7facbba4938e1e4463531b0ed32
449d555969bfd7befe906877abab098c6e63a0e8
/991/CH24/EX24.13/Example24_13.sce
93bb1648d10781bbdb795fd0a42d72029788def8
[]
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,377
sce
Example24_13.sce
//Example 24.13 clc disp("(a) A + AB + AB''C") disp("Step 1: Apply rule 10 of table 24.2,i.e A + AB = A. The expression simplifies to") disp(" A + AB''C") disp("Step 2: Apply distributive property") disp(" (A+A)(A+B''C)") disp(" = A(A+B''C)") disp("Step 3: Taking A as the common term,") disp(" A[1.(1+B''C)]") disp("Step 4: Apply rule 2 of Table 24.2, i.e. 1 + B''C = 1") disp(" A.1 = A") disp("Thus, the simplified expression is A") disp('') disp("(b) (A''+B)C + ABC") disp("Step 1: Apply distributive property") disp(" A''C + BC + ABC") disp("Step 2: Taking BC as common term,") disp(" A''C + BC(1+A)") disp("Step 3: Apply rule 2") disp(" A''C + BC.1") disp("Step 4: Taking C as the common term,") disp(" C(A''+B)") disp("Thus, the simplified expression is C(A''+B)") disp('') disp("(c) AB''C(BD+CDE) + AC''") disp("Step 1: Apply distribtive property") disp(" AB''BCD + AB''CCDE + AC''") disp("Step 2: Apply rules 8 and 7 to the first and second terms, respectivly,") disp(" 0 + AB''CDE + AC''") disp("Step 3: Taking A as the common term,") disp(" A(B''CDE+C'')]") disp("Step 4: Apply rule 11 i.e., B''CDE + C'' = B''DE + C''") disp(" A(B''DE+C'')") disp("Thus, the simplified expression is A(B''DE+C'')")
83801fa7f12d9f0a21a39badbccccb4bc396f341
449d555969bfd7befe906877abab098c6e63a0e8
/443/DEPENDENCIES/17_34_data.sci
78f61430ed5fa16f6e5e7e32bac244780b6f5147
[]
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
707
sci
17_34_data.sci
//Brake power(in kW) bp=27; //Mass of gas used at NTP(in kg/h) Vg=8; //Calorific value of fuel(in kJ/kgK) CV=43000; //Cooling water circulated (in kg/min) Vc=7; //Cooling water temperature rise(in C) dwc=75-15; //Specific heat of cooling water(in kJ/kgK) Cpw=4.18; //Final temperature of exhaust gases in calorimeter(in K) Te2=55; //initial temperature of exhaust gases in calorimeter(in K) Te1=15; //Air fuel ratio AF=20; //Specific heat of exhaust gases(in kJ/kgK) Cpeg=1; //Brake power(in kW) bp=27; //Indicated power(in kW) ip=33; //Mass flowing through the calorimeter(in kg/min) mwc=12; //Final temperature of exhaust gases(in C) Tex=80; //Ambient temperature(in C) Ta=17;
0eff1ef05157505251f33e10440310b4db47bb9b
1b969fbb81566edd3ef2887c98b61d98b380afd4
/Rez/bivariate-lcmsr-post_mi/bfi_n_usi_d/~BivLCM-SR-bfi_n_usi_d-PLin-VLin.tst
ae501ae7fb1db59913726a75bfa67f96318cf72a
[]
no_license
psdlab/life-in-time-values-and-personality
35fbf5bbe4edd54b429a934caf289fbb0edfefee
7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e
refs/heads/master
2020-03-24T22:08:27.964205
2019-03-04T17:03:26
2019-03-04T17:03:26
143,070,821
1
0
null
null
null
null
UTF-8
Scilab
false
false
11,909
tst
~BivLCM-SR-bfi_n_usi_d-PLin-VLin.tst
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 1 2 3 4 5 ________ ________ ________ ________ ________ 1 0.483503D+00 2 -0.683881D-02 0.386662D-02 3 0.146495D-01 0.418058D-03 0.309711D+00 4 0.510411D-03 0.141027D-03 -0.185189D-02 0.282390D-02 5 -0.720215D-03 0.124514D-03 -0.545680D-03 -0.238916D-04 0.225671D-02 6 -0.108066D-02 -0.103381D-03 -0.155082D-03 -0.286439D-04 0.242357D-03 7 -0.189441D-03 0.540282D-04 0.668617D-03 -0.795871D-04 0.210830D-03 8 -0.180139D-02 0.718643D-04 -0.607327D-04 -0.203451D-04 -0.116852D-03 9 -0.747771D+00 0.153451D-02 -0.266880D+00 -0.866618D-02 0.270057D-01 10 0.817038D-04 0.135140D-01 0.223609D+00 -0.177544D-02 0.162139D+00 11 0.317566D+00 -0.666693D-02 0.509110D-01 -0.379379D-02 0.308901D-01 12 -0.363301D+00 0.839904D-02 0.508458D+00 -0.206633D-01 -0.260043D-01 13 -0.148365D+00 0.456633D-02 -0.708317D-01 -0.197059D-02 0.439249D-01 14 -0.725360D-01 -0.820658D-02 0.482782D+00 0.282064D-01 -0.103887D-01 15 -0.432376D+00 0.476234D-01 -0.115052D+01 0.352066D-01 -0.983987D-01 16 0.551315D-01 -0.600649D-03 0.354862D-01 -0.203949D-02 -0.697488D-03 17 0.129405D-02 0.466608D-03 0.258264D-02 0.465591D-03 -0.503182D-03 18 -0.114341D+01 0.546265D-01 0.303432D+00 0.262173D-01 -0.287344D-01 19 0.171977D+00 0.359177D-02 0.756160D-01 0.675098D-02 -0.118161D-02 20 0.434168D+00 0.225559D-01 -0.456251D+00 0.276904D-01 -0.488777D-02 21 -0.886772D-01 -0.637625D-02 -0.163421D-01 -0.671323D-02 0.158047D-02 22 0.195559D-02 0.351117D-03 -0.215533D-02 0.186298D-03 -0.407200D-04 23 0.270798D-01 0.120994D-02 0.234296D-01 0.315476D-02 0.147057D-02 24 -0.101094D-02 0.143389D-03 0.386104D-02 0.278490D-03 -0.932702D-04 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 6 7 8 9 10 ________ ________ ________ ________ ________ 6 0.911489D-03 7 0.587841D-03 0.213632D-02 8 0.101935D-03 0.103810D-04 0.219948D-02 9 -0.168897D-01 -0.125386D+00 -0.898770D-02 0.130449D+03 10 0.423033D-01 0.566235D-01 -0.407011D-03 0.141373D+01 0.324493D+02 11 0.117646D-01 0.696305D-01 -0.587042D-01 -0.111814D+02 0.412522D+01 12 -0.322957D-01 -0.448485D-01 0.184811D+00 0.127106D+02 -0.136021D-01 13 0.681980D-01 0.937947D-01 0.109744D-01 -0.763959D+01 0.468200D+01 14 0.102077D-01 -0.123348D-01 0.178429D+00 0.272574D+01 0.841948D+00 15 -0.229698D-01 0.366185D-01 0.652360D-01 0.208873D+01 -0.198787D+02 16 -0.167518D-02 -0.627004D-03 -0.730910D-03 0.150446D+01 -0.286923D+00 17 0.426070D-04 -0.986057D-04 -0.751415D-03 -0.279037D+00 -0.384844D-01 18 -0.671065D-01 -0.827023D-01 -0.234983D-01 0.123789D+02 -0.117450D+02 19 -0.144255D-01 0.188239D-01 -0.862074D-02 -0.283697D+00 0.110575D+00 20 0.146270D-01 0.437684D-01 -0.230268D+00 -0.191491D+02 0.118406D+02 21 0.108960D-01 -0.182035D-01 0.776241D-02 0.207170D+00 -0.507846D+00 22 -0.596971D-04 -0.175337D-03 -0.181607D-03 0.206847D-01 0.397597D-01 23 -0.942538D-03 -0.871610D-05 -0.951042D-03 -0.709359D-01 0.131526D+00 24 -0.106727D-03 -0.971755D-04 -0.214885D-03 0.400040D-01 -0.574118D-01 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 11 12 13 14 15 ________ ________ ________ ________ ________ 11 0.720764D+02 12 -0.465426D+01 0.165246D+03 13 -0.299500D+01 -0.305533D+01 0.180057D+02 14 -0.105691D+02 0.136227D+02 0.465802D+01 0.644027D+02 15 0.416188D+01 0.112805D+02 -0.257813D+01 -0.686485D+01 0.575415D+03 16 -0.106991D+00 0.460093D+00 -0.135575D+00 -0.233015D+00 0.490377D+01 17 0.146939D-01 -0.858150D-01 0.156816D-01 -0.139819D-01 -0.262783D+01 18 -0.381722D+01 0.582848D+01 -0.976055D+01 -0.712849D+01 0.735088D+02 19 0.603068D+01 -0.601397D+00 -0.618849D+00 -0.132968D+01 -0.354301D+00 20 0.189786D+02 -0.757913D+02 -0.257147D+01 -0.362349D+02 0.389628D+02 21 -0.494669D+01 0.111898D+01 0.364790D+00 0.130871D+01 0.272012D+01 22 -0.111119D+00 -0.705972D-01 -0.110184D-01 0.582977D-02 -0.335669D+00 23 0.284563D-01 0.168567D+00 -0.215289D-01 -0.157633D+00 0.610888D+00 24 -0.291623D-01 0.340859D-01 -0.122500D-01 0.105054D-02 -0.303473D+00 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 16 17 18 19 20 ________ ________ ________ ________ ________ 16 0.754270D+00 17 -0.645542D-01 0.253692D-01 18 0.116562D+01 -0.320236D+00 0.298324D+03 19 0.641422D-03 0.953712D-02 -0.769047D+00 0.713344D+01 20 0.238540D+00 -0.160293D+00 0.212047D+02 -0.244290D+01 0.325031D+03 21 0.121093D+00 -0.203810D-01 0.637980D+01 -0.626247D+01 0.420916D+01 22 -0.481542D-02 0.210862D-02 -0.146398D+01 -0.311769D-01 -0.260264D-01 23 0.386409D-01 -0.323153D-02 0.109681D+01 0.227678D+00 0.307954D+01 24 -0.199565D-02 0.263898D-02 -0.972698D-01 0.139315D-01 -0.143512D+01 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 21 22 23 24 ________ ________ ________ ________ 21 0.697068D+01 22 -0.326204D-01 0.148719D-01 23 -0.490562D-01 -0.854630D-02 0.370577D+00 24 -0.306953D-01 0.137341D-02 -0.351628D-01 0.137845D-01 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 1 2 3 4 5 ________ ________ ________ ________ ________ 1 1.000 2 -0.158 1.000 3 0.038 0.012 1.000 4 0.014 0.043 -0.063 1.000 5 -0.022 0.042 -0.021 -0.009 1.000 6 -0.051 -0.055 -0.009 -0.018 0.169 7 -0.006 0.019 0.026 -0.032 0.096 8 -0.055 0.025 -0.002 -0.008 -0.052 9 -0.094 0.002 -0.042 -0.014 0.050 10 0.000 0.038 0.071 -0.006 0.599 11 0.054 -0.013 0.011 -0.008 0.077 12 -0.041 0.011 0.071 -0.030 -0.043 13 -0.050 0.017 -0.030 -0.009 0.218 14 -0.013 -0.016 0.108 0.066 -0.027 15 -0.026 0.032 -0.086 0.028 -0.086 16 0.091 -0.011 0.073 -0.044 -0.017 17 0.012 0.047 0.029 0.055 -0.067 18 -0.095 0.051 0.032 0.029 -0.035 19 0.093 0.022 0.051 0.048 -0.009 20 0.035 0.020 -0.045 0.029 -0.006 21 -0.048 -0.039 -0.011 -0.048 0.013 22 0.023 0.046 -0.032 0.029 -0.007 23 0.064 0.032 0.069 0.098 0.051 24 -0.012 0.020 0.059 0.045 -0.017 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 6 7 8 9 10 ________ ________ ________ ________ ________ 6 1.000 7 0.421 1.000 8 0.072 0.005 1.000 9 -0.049 -0.238 -0.017 1.000 10 0.246 0.215 -0.002 0.022 1.000 11 0.046 0.177 -0.147 -0.115 0.085 12 -0.083 -0.075 0.307 0.087 0.000 13 0.532 0.478 0.055 -0.158 0.194 14 0.042 -0.033 0.474 0.030 0.018 15 -0.032 0.033 0.058 0.008 -0.145 16 -0.064 -0.016 -0.018 0.152 -0.058 17 0.009 -0.013 -0.101 -0.153 -0.042 18 -0.129 -0.104 -0.029 0.063 -0.119 19 -0.179 0.152 -0.069 -0.009 0.007 20 0.027 0.053 -0.272 -0.093 0.115 21 0.137 -0.149 0.063 0.007 -0.034 22 -0.016 -0.031 -0.032 0.015 0.057 23 -0.051 0.000 -0.033 -0.010 0.038 24 -0.030 -0.018 -0.039 0.030 -0.086 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 11 12 13 14 15 ________ ________ ________ ________ ________ 11 1.000 12 -0.043 1.000 13 -0.083 -0.056 1.000 14 -0.155 0.132 0.137 1.000 15 0.020 0.037 -0.025 -0.036 1.000 16 -0.015 0.041 -0.037 -0.033 0.235 17 0.011 -0.042 0.023 -0.011 -0.688 18 -0.026 0.026 -0.133 -0.051 0.177 19 0.266 -0.018 -0.055 -0.062 -0.006 20 0.124 -0.327 -0.034 -0.250 0.090 21 -0.221 0.033 0.033 0.062 0.043 22 -0.107 -0.045 -0.021 0.006 -0.115 23 0.006 0.022 -0.008 -0.032 0.042 24 -0.029 0.023 -0.025 0.001 -0.108 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 16 17 18 19 20 ________ ________ ________ ________ ________ 16 1.000 17 -0.467 1.000 18 0.078 -0.116 1.000 19 0.000 0.022 -0.017 1.000 20 0.015 -0.056 0.068 -0.051 1.000 21 0.053 -0.048 0.140 -0.888 0.088 22 -0.045 0.109 -0.695 -0.096 -0.012 23 0.073 -0.033 0.104 0.140 0.281 24 -0.020 0.141 -0.048 0.044 -0.678 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 21 22 23 24 ________ ________ ________ ________ 21 1.000 22 -0.101 1.000 23 -0.031 -0.115 1.000 24 -0.099 0.096 -0.492 1.000
850f4141068d2cc57412883d751ddc0673463c03
449d555969bfd7befe906877abab098c6e63a0e8
/2777/CH6/EX6.17/Ex6_17.sce
16e28f5ffc8fb536e2dc0b5131290f252b7b756c
[]
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
2,844
sce
Ex6_17.sce
// ELECTRICAL MACHINES // R.K.Srivastava // First Impression 2011 // CENGAGE LEARNING INDIA PVT. LTD // CHAPTER : 6 : SYNCHRONOUS MACHINES // EXAMPLE : 6.17 clear ; clc ; close ; // Clear the work space and console // GIVEN DATA V = 440; // Operating voltage of the Synchronous Motor in pu E = 200; // Induced voltage in Volts xs = 8.0; // Synchronous reactance in Ohms f = 50; // Frequency in Hertz pa = 36; // Power angle in degree // CALCULATIONS v = V/sqrt(3); // Rated phase voltage in Volts ws = 2*%pi*f; // Synchronous speed in Radians per second // To calculate the power factor angle refer page no 438 n figure 6.50 // Since E*cos(delta) < v so Power factor is lagging, let power factor angle be theta from ohasor diagram figure 6.50:- page no. 438 // v = E*cos(delta) + I*xs*sin(theta), I*sin(theta) = (254-0.809*200)/8 = 11.525 // Similarly, E*sin(delta) = I*xs*cos(theta), I*cos(theta) = (200*0.59)8 = 14.70 // From above two equations, tan(theta) = 0.784 theta = -38.1; // Power factor angle in degree (minus sign because of lagging) pf = cosd(theta); // Power factor lagging I = 14.7/cosd(theta); // Line current in Amphere (I*cos(theta) = 14.7) p = 3 * v * 14.7; // Input to motor in watts ( p = 3*V*I*cos(theta), I*cos(theta) = 14.7) P = (3*E*v*sind(pa))/(xs*1000); // Power in Kilo-watts T = (P*1000)/ws; // Torque in Newton-meter // For Power factor unity // let the current will be I2, thus 3*v*I2 = 3*v*I*cos(theta) , I2 = I*cos(theta) = 14.10 A // let ecitation will be E2, thus v = E2*cos(delta2) and E2*sin(delta2) = I2*xs, E2*cos(delta2) = 254 and E2*sin(delta2) = 117.60, by solving these two equations we get E2 = sqrt(254^2+117.6^2) = 279.90 V and delta2 = atand(117.6/254) = 24.84 degree E2 = 279.90; delta2 = 24.84; P_1 = (3*v*E2*sind(delta2))/(xs*1000); // Power in kilo-watts T_1 = (P_1*1000)/ws; // Torque in Newton-meter // DISPLAY RESULTS disp("EXAMPLE : 6.17: SOLUTION :-"); printf("\n (a) Line current, I = %.2f A \n",I) printf("\n (b) Power factor angle = %.1f degree \n",theta) printf("\n (c) Power , P = %.3f kW \n",P) printf("\n (d) Torque , T = %.2f N-m \n",T) printf("\n (e) Power factor = %.2f lagging \n",pf) printf("\n To make the Power factor to UNITY requirements are:- \n (a) Excitation EMF, E = %.2f V \n",E2) printf("\n (b) Power angle = %.2f degree \n",delta2) printf("\n (c) Power , P = %.3f kW \n",P_1) printf("\n (d) Torque , T = %.2f N-m \n",T_1)
8b462b806ca0206d81d83ab0c5f3d55806f0bf1e
449d555969bfd7befe906877abab098c6e63a0e8
/2534/CH5/EX5.14/Ex5_14.sce
8747bb279c9387420d0cb45922b364eb7e410a4d
[]
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
277
sce
Ex5_14.sce
//Ex5_14 clc C = 10*10^-3 f = 50 Idc = 200*10^-3 Vr = Idc/(2*f*C) disp("C = "+string(C)+"F")//circuit capacitance disp("f = "+string(f)+"Hz")//operating frequency disp("Idc = "+string(Idc)+"A")//D.C. current disp("Vr = Idc/(2*f*C) = "+string(Vr)+"V")//ripple voltage