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
7024ccc235d0221694c643d512ef0ec79c3efbb8
449d555969bfd7befe906877abab098c6e63a0e8
/2858/CH11/EX11.3/Ex11_3.sce
4daf3f2cb368d755bcb63cbb76427ebe870e0892
[]
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
230
sce
Ex11_3.sce
//example 11.3 clc; funcprot(0); K=0.25; Ap=16*16/12/12; phi=30*%pi/180; Nq=25; q=110*50/1000; sigmao=q/2; p=4*16/12; L=50; FS=4; Qu=q*Nq*Ap+K*sigmao*tan(0.8*phi)*p*L; Qall=Qu/FS; disp(Qall,"allowed load in kip");
9ece042dc3622f9d7a05427e466f846be38c1762
e46eeada1bd3e461d9e4c2913bb12e406391f603
/Labdig/P12019-2.sce
63d25ec2afef266cbf9f75fa316aa11a9d507731
[]
no_license
JoseColombini/Poli
fcc73dcf863256055ff0eb5202617ebb3434fcf3
c913de4597496164646b262fe2a66f1fdebc05b7
refs/heads/master
2023-03-11T21:49:04.619768
2023-03-04T20:41:46
2023-03-04T20:41:46
203,501,300
0
0
null
null
null
null
UTF-8
Scilab
false
false
348
sce
P12019-2.sce
Vl = 220 Vf = Vl/(sqrt(3))*expm(-30*%pi/180*%i) Snom = 820+%i*500 Zcd = -%i*400 Zcy = Zcd/3 Zl = 3.5 + (8 - 6)*%i Zcarga = (3*abs(Vf)^2/(Snom))' Zto = Zl + (Zcy*Zcarga/(Zcy + Zcarga)) I = Vf/Zto Vcarga = Vf - I*Zl Scarga = 3*abs(Vcarga^2)/(Zcarga)' Vcarga = 220/sqrt(3)*expm(-30*%pi/180*%i) Vcarga = Vf - Zl*(Vcarga/Zcy + (Snom/(3*Vcarga))')
2f46038ad65f28e34ba2813575ff47eedc201562
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH13/EX13.26/Ex13_26.sce
5d13cb4df577a6fccbb4eea8f5fb5d47aafbea3a
[]
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
Ex13_26.sce
clear //Given Ev=200 //V Iv=10.0 f=50 //Hz //Calculation z=Ev/Iv R=z*cos(30*3.14/180.0) Xc=z*sin(30*3.14/180.0) C=1/(2.0*%pi*f*Xc) //Result printf("\n (i) Value of resistance is %0.2f ohm",R) printf("\n (ii) Capacitive reactance is %0.0f ohm",Xc) printf("\n (iii) Capacitance of the circuit is %0.0f micro F",C*10**6)
2c097ab9a0b951239146f5f34e2d1b7d26e288a4
449d555969bfd7befe906877abab098c6e63a0e8
/2492/CH3/EX3.4/ex3_4.sce
a3ba64bae195ff737266fd8649a3b779fda8bdb7
[]
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
648
sce
ex3_4.sce
// Exa 3.4 format('v',6) clc; clear; close; // Given data R_L = 18;// in ohm Vz = 18;// in V V1 = 22;// in V V2 = 28;// in V // Minimum voltage across R, V = V1-Vz;// in V Izmin = 200;// in mA I_Lmax = Vz/R_L;// in A I = I_Lmax+Izmin*10^-3;// in A R =V/I;// in ohm disp(R,"The value of R in ohm is : ") I1 = (V2-Vz)/R;;// in A // The maximum current through R Izmax = I1 - 1;// in A Izmax= Izmax*10^3;// in mA disp(Izmax,"The maximum current through R in mA is"); disp("Which is within the limit of Iz (max) provided.") pd = Vz*Izmax*10^-3;// maximum power dissipated in W disp(pd,"The maximum power dissipated in W is");
9754e650119cc68d02fea129d77e4bf63ef4ac90
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/Programming/testoverloaddisplay.sce
6dc8c87069b718af854bcb4644610395c8b8c28b
[]
no_license
markusmorawitz77/Scilab
902ef1b9f356dd38ea2dbadc892fe50d32b44bd0
7c98963a7d80915f66a3231a2235010e879049aa
refs/heads/master
2021-01-19T23:53:52.068010
2017-04-22T12:39:21
2017-04-22T12:39:21
89,051,705
0
0
null
null
null
null
UTF-8
Scilab
false
false
284
sce
testoverloaddisplay.sce
exec('scilab-base-program-make_point.sce',-1) //to delete exec('scilab-base-program-check_point.sce',-1) //to delete M=make_point(0,1) // creates point M function %point_p(P) check_point(P) printf('(x=%f,y=%f)\n',P.x,P.y) endfunction M // point M's display is modified
e5709ca8c8f85f51593c22d792c67d1fe14bd118
573df9bfca39973c9bf2fa36f6e5af2643d7771e
/scilab/lib/fat.sci
26178d7af25e4258c354700f7f8303c4b82aff24
[]
no_license
DCC-CN/152cn
ef92c691edabe211b1a552dbb963f9fd9ceec94a
4fe0b02f961f37935a1335b5eac22d81400fa609
refs/heads/master
2016-08-13T01:34:17.966430
2015-04-07T07:31:58
2015-04-07T07:31:58
44,502,526
1
0
null
null
null
null
UTF-8
Scilab
false
false
98
sci
fat.sci
function resp = fat(n) resp = 1; for i = 2:n resp = resp * i; end endfunction
3cc86dbf45853bad3f163b5f2fc6505f5989db6f
449d555969bfd7befe906877abab098c6e63a0e8
/69/CH8/EX8.17/8_17.sce
e349e3ac463f9bc20e64e76bddd42d8f55f5b890
[]
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
462
sce
8_17.sce
clear; clc; close; Ri_stage2 = 15*(10^(3))*4.7*(10^(3))*1300/(15*(10^(3))*4.7*(10^(3))+4.7*(10^(3))*1300+15*(10^(3))*1300); Rd1 = 2.4*10^(3); Rd2 = 2.2*10^(3); gm = 2.6*10^(-3); Vi1 = 20*10^(-3); Vi2 = 1*10^(-3); Av1 = -gm*(Rd1*Ri_stage2/(Rd1+Ri_stage2)); Av2 = -338.46; Av = Av1*Av2; Vo1 = Av*Vi1; Vo2 = Av*Vi2; Zi = 3.3*10^(6); Zo = Rd2; disp(Vo2,'Output voltage is '); disp(Zi,'Input impedance is '); disp(Zo,'Output impedance is ');
c33320ec58423b0a90a9fe1771d6253de71f7fe0
449d555969bfd7befe906877abab098c6e63a0e8
/62/CH6/EX6.22/ex_6_22.sce
726ed7db6ed55a62d68e19fb0d275c2d37ad77a3
[]
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
717
sce
ex_6_22.sce
clear; close; clc; n=-10:10; N=2; for i=1:length(n) if n(i)>=-N & n(i)<=N then x(i)=1; else x(i)=0; end end x=x'; figure subplot(2,1,1) plot2d3(n,x); title("x[n]") plot(n,x,'r.') w=-10:0.1:10; Xw=x*exp(-%i*n'*w); subplot(2,1,2) plot2d(w,Xw); title("X[w] fourier transform") //time scaled sequence x2[n] n2=-20:2:20; figure subplot(2,1,1) plot2d3(n2,x); title("x2[n]") plot(n2,x,'r.') w2=-5:0.05:5; subplot(2,1,2) plot2d(w2,Xw); title("X2[w] fourier transform") //time scaled sequence x3[n] n3=-30:3:30; figure subplot(2,1,1) plot2d3(n3,x); title("x3[n]") plot(n3,x,'r.') w3=w/3; subplot(2,1,2) plot2d(w3,Xw); title("X3[w] fourier transform")
34ca17bde00e352d8a6caa734a0ff8274b0bf3b1
a5de878687ee2e72db865481785dafbeda373e2a
/trunck/OpenPR-0.0.2/macros/kpca.sci
cf63d2600c19199240f6bee268aa1e795c1c03f9
[ "BSD-3-Clause" ]
permissive
Augertron/OpenPR
8f43102fd5811d26301ef75e0a1f2b6ba9cbdb73
e2b1ce89f020c1b25df8ac5d93f6a0014ed4f714
refs/heads/master
2020-05-15T09:31:08.385577
2011-03-21T02:51:40
2011-03-21T02:51:40
182,178,910
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,883
sci
kpca.sci
/////////////////////////////////////////////////////////////////////////////// // Author: Jia Wu // Version: 0.1 // Date: Nov 2009 // Description: Kernel Principal Component Analysis // // Copyright (C) 2009 OpenPR // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // * Neither the name of OpenPR nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL HOLDER AND CONTRIBUTORS BE LIABLE FOR ANY // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Input: // patterns - Data matrix. Each column is a data point. // ker - The kernel matrix. // dimension - Number of dimension for the new patterns. // // Output: // new_patterns - New patterns. // eig_val - The sorted eigenvalue. // eig_vec - Sorted eigenvector // Each column is an eigenvector. eig_vec'*eig_vec=I. /////////////////////////////////////////////////////////////////////////////// function [eig_vec, eig_val, new_patterns] = kpca(patterns, ker, dimension) K = createkernel(patterns, [], ker); [r, c] = size(K); num = size(patterns, 2); ln = 1/num*ones(r, c); Kn = K-ln*K-K*ln+ln*K*ln; [eig_vec, eig_val] = spec(Kn); [eig_val, idx] = sort(diag(eig_val)); eig_vec = eig_vec(:, idx); eig_vec = eig_vec(:, 1:dimension); new_patterns = eig_vec'*K; endfunction
4bb2abac7b01427ab79ba5fd7d40587f23e24217
449d555969bfd7befe906877abab098c6e63a0e8
/1427/CH34/EX34.23/34_23.sce
da8e8e1457dcdbf75083359d40eb75815f19115b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
327
sce
34_23.sce
//ques-34.23 //Calculating quantum yield of a reaction clc c1=0.0506; c2=0.0394;//initial and final concentration of oxalic acid (in M) q=8.81*10^8;//(in ergs) w=245;//wavelength (in nm) n=(c1-c2)/100;//moles of oxalic acid decomposed QY=(n*1.196*10^15)/(q*w); printf("The quantum yield of the reaction is %.3f.",QY);
84687d807b9a75702b434b651f33bcfa64a5b4f5
449d555969bfd7befe906877abab098c6e63a0e8
/1544/CH8/EX8.1/Ch08Ex1.sce
00b0dc1c86eaf98a7efb21764b7bdb3c88dac52f
[]
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,149
sce
Ch08Ex1.sce
// Scilab code Ex8.1: Pg 253 (2008) clc; clear; C = 8e-06; // Value of capacitance of capacitor, farad R = 0.5e+06; // Value of series resistor, ohm E = 200; // Value of d.c. voltage supply, volt // Part (a) tau = C*R; // Time constant of the R-C circuit while charging, s printf("\nThe circuit time constant while charging = %1d s", tau); // Part (b) I_0 = E/R; // Initial charging current through capacitor, A printf("\nThe initial charging current through capacitor = %3d micro-ampere", I_0/1e-06); // Part (c) t = 4; // Time after the supply is connected, s v_C = 0.632*E; // p.d. across the capacitor 4s after the supply is connected, V v_R = E - v_C; // p.d. across the resistor 4s after the supply is connected, V printf("\nThe p.d. across resistor and capacitor %d s after the supply is connected = %5.1f V and %4.1f V respectively", t, v_C, v_R); // Result // The circuit time constant while charging = 4 s // The initial charging current through capacitor = 400 micro-ampere // The p.d. across resistor and capacitor 4 s after the supply is connected = 126.4 V and 73.6 V respectively //
34832e2423d82a4b974f86b97a326e9588da05d8
449d555969bfd7befe906877abab098c6e63a0e8
/1931/CH11/EX11.3/3.sce
7b5020f298ead90f109c4dfc4f8a33a6f75f71cf
[]
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
493
sce
3.sce
clc clear //INPUT DATA ni=2*10^16//intrinsic charge carriers in m^-3 Na=5*10^23//density of acceptor concentration of silicon with arsenic in atoms Nd=3*10^23//density of donor concentration of silicon with arsenic in atoms //CALCULATION nh=(Na-Nd)//density of hole in m^-3 ne=(ni^2/(nh))/10^9//The electron concentration that is density of electrons in electrons /m^3*10^9 //OUTPUT printf('The electron concentration that is density of electrons is %i*10^9 electrons /m^3',ne)
014b3fcf58017acaedc06edaa7d377e0a6a61bec
da5b40d917ec2982828bd9bdf06b18b7bf189f26
/sim/cmd/test/expanderwcurve.tst
76a107726f3cbecd386f007cd024c8cce1b1dd26
[]
no_license
psy007/NNPC-CHEMICAL-SIM-
4bddfc1012e0bc60c5ec6307149174bcd04398f9
8fb4c90180dc96be66f7ca05a30e59a8735fc072
refs/heads/master
2020-04-12T15:37:04.174834
2019-02-06T10:10:20
2019-02-06T10:10:20
162,587,144
1
0
null
null
null
null
UTF-8
Scilab
false
false
1,372
tst
expanderwcurve.tst
optimizecode 1 maxversions 0 units Field /LiquidPhases = 2 /StdLiqVolRefT = 288.15 /StdLiqVolRefT = 60 F /RecycleDetails = 1 displayproperties displayproperties VapFrac T P MoleFlow MassFlow VolumeFlow StdLiqVolumeFlow StdGasVolumeFlow Energy H S MolecularWeight MassDensity Cp ThermalConductivity Viscosity molarV ZFactor commonproperties commonproperties + ZFactor P T MolecularWeight MassDensity StdLiqMolarVolVapFrac T P MoleFlow MassFlow VolumeFlow StdLiqVolumeFlow StdGasVolumeFlow Energy H S MolecularWeight MassDensity Cp ThermalConductivity Viscosity molarV ZFactor units SI $thermo = VirtualMaterials.Peng-Robinson / -> $thermo thermo + METHANE ETHANE PROPANE n-BUTANE realExpander = Compressor.ExpanderWithCurve() cd realExpander NumberTables = 1 ExpanderSpeed0 = 1800.0 FlowCurve0 = 0.0 1000.0 2000.0 3000.0 4000.0 5000.0 6000.0 7000.0 HeadCurve0 = 0.0 5637.0 11273.0 16910.0 22546.0 28184.0 33821.0 39457.0 EfficiencyCurve0 = 0.0 0.5 0.7 0.78 0.8 0.7 0.6 0.55 ExpanderSpeed = 1800 In.Fraction = .4 .3 .2 .1 In.P = 206 In.T = 30 In.MassFlow = 1000 In Out OutQ '/realExpander.In.MassFlow' = '/realExpander.In.VolumeFlow' = 1000 AdiabaticEff PolytropicEff /realExpander.EfficiencyCurveType = Polytropic AdiabaticEff PolytropicEff /realExpander.EfficiencyCurveType = Adiabatic AdiabaticEff PolytropicEff copy / paste / /RootClone.realExpander.Out
be06af289ee2b4243a0457871205cf74c06d6f37
e9d5f5cf984c905c31f197577d633705e835780a
/data_reconciliation/linear/scilab/P13/P13.sce
650b474c4acd6b90627d19b2d419f72c0cdd71c0
[]
no_license
faiz-hub/dr-ged-benchmarks
1ad57a69ed90fe7595c006efdc262d703e22d6c0
98b250db9e9f09d42b3413551ce7a346dd99400c
refs/heads/master
2021-05-18T23:12:18.631904
2020-03-30T21:12:16
2020-03-30T21:12:16
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,920
sce
P13.sce
// Data Reconciliation Benchmark Problems From Lietrature Review // Author: Edson Cordeiro do Valle // Contact - edsoncv@{gmail.com}{vrtech.com.br} // Skype: edson.cv // Fictitious but realistic mineral processing plant //Alhaj-Dibo, Moustapha, Didier Maquin, and José Ragot. 2008. //Data reconciliation: A robust approach using a contaminated distribution. //Control Engineering Practice 16, no. 2 (February): 159-170. // http://www.sciencedirect.com/science/article/B6V2H-4N4406D-1/2/50cac92b050f160a20a795faec990dc7. //Bibtex Citation //@article{Alhaj-Dibo2008, //author = {Alhaj-Dibo, Moustapha and Maquin, Didier and Ragot, Jos\'{e}}, //isbn = {0967-0661}, //journal = {Control Engineering Practice}, //keywords = {Data reconciliation,Gross error detection,Linear and bilinear mass balances,Robust estimation}, //month = feb, //number = {2}, //pages = {159--170}, //title = {{Data reconciliation: A robust approach using a contaminated distribution}}, //url = {http://www.sciencedirect.com/science/article/B6V2H-4N4406D-1/2/50cac92b050f160a20a795faec990dc7}, //volume = {16}, //year = {2008} //} // 16 Streams // 9 Equipments // the measures clear xm var jac nc nv i1 i2 nnzeros sparse_dg sparse_dh lower upper var_lin_type constr_lin_type constr_lhs constr_rhs xm =[24.7 26.5 29.2 1.8 18.32 22.02 20.8 9.43 8.01 4.14 6 6.56 1.04 7.38 4.99 7.69] // in original paper the standard deviation is given. so it must be squared. var=[1 1.325 1.46 0.20 0.916 1.101 1.04 0.472 0.401 0.207 0.3 0.328 0.052 0.369 0.25 0.385 ].^2; // gross error gerror = zeros(length(xm),1); // to setup gross errors, select the stream and magnitude as the line bellow //gerror(2) = 9*sqrt(var(2)); xm = xm + gerror; //The jacobian of the constraints // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 jac = [ 1 -1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 -1 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0 1 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 -1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 -1 -1 0 0 0 0 0 0 0 0 // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 0 0 0 0 0 0 1 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 -1 -1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 -1 -1]; // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 //observability/redundancy tests umeas_P13 = []; [red_P13, just_measured_P13, observ_P13, non_obs_P13, spec_cand_P13] = qrlinclass(jac,umeas_P13) // reconcile with all measured. To reconcile with only redundant variables, uncomment the "red" assignments measured_P13 = setdiff([1:length(xm)], umeas_P13); red = measured_P13;// // to reconcile with all variables, comment the line above and uncomment bellow //red = [1:length(xm)]; // to run robust reconciliation,, one must choose between the folowing objective functions to set up the functions path and function parameters: //WLS = 0 // Absolute sum of squares = 1 //Cauchy = 2 //Contamined Normal = 3 //Fair = 4 //Hampel = 5 //Logistic = 6 //Lorenztian = 7 //Quasi Weighted = 8 // run the configuration functions with the desired objective function type obj_function_type = 0; exec ../functions/setup_DR.sce // to run robust reconciliation, it is also necessary to choose the function to return the problem structure if obj_function_type > 0 then [nc_eq, n_non_lin_eq, nv, nnzjac_ineq, nnzjac_eq, nnz_hess, sparse_dg, sparse_dh, lower, upper, var_lin_type, constr_lin_type, constr_lhs, constr_rhs] = robust_structure(jac, 0, xm, objfun, res_eq, res_ineq); else // for WLS, only the line bellow must be choosen and comment the 3 lines above [nc, nv, i1, i2, nnzeros, sparse_dg, sparse_dh, lower, upper, var_lin_type, constr_lin_type, constr_lhs, constr_rhs] = wls_structure(jac); end params = init_param(); // We use the given Hessian params = add_param(params,"hessian_approximation","exact"); params = add_param(params,"derivative_test","second-order"); params = add_param(params,"tol",1e-8); params = add_param(params,"acceptable_tol",1e-8); params = add_param(params,"mu_strategy","adaptive"); params = add_param(params,"journal_level",5); [x_sol, f_sol, extra] = ipopt(xm, objfun, gradf, confun, dg, sparse_dg, dh, sparse_dh, var_lin_type, constr_lin_type, constr_rhs, constr_lhs, lower, upper, params); mprintf("\n\nSolution: , x\n"); for i = 1 : nv mprintf("x[%d] = %e\n", i, x_sol(i)); end mprintf("\n\nObjective value at optimal point\n"); mprintf("f(x*) = %e\n", f_sol);
37b92008a400448f75e6546090b904570da6926f
449d555969bfd7befe906877abab098c6e63a0e8
/1475/CH2/EX2.10/Example_2_10.sce
104de24ed000afb87d389d56148420892b89a969
[]
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
439
sce
Example_2_10.sce
//Example 2.10 the overall percentage of failure clc; clear; function value = binomial(n, k, p) value = factorial(n)*(p^k)*((1-p)^(n-k))/(factorial(k)*factorial(n-k)); endfunction q=40/100; n=6; p=1-q; disp(n,"No. of candidates =",p,"Proabab. of(success) in a single trial",q,"Probab. of failure of a candidate"); P_4=binomial(n,4,p); P_5=binomial(n,5,p); P_6=binomial(n,6,p); disp(P_4+P_5+P_6,"Required Probability =");
a6a547a8ac28886e647fb63baff3a8adcb0775ef
449d555969bfd7befe906877abab098c6e63a0e8
/284/CH9/EX9.8/ex_8.sce
34afa8581d02c2d5d498821ec72f5e21b7c005b9
[]
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
390
sce
ex_8.sce
// Chapter 9_The bipolar transistor //Caption_Breakdown voltage //Ex_8//page 387 Wb=0.5*10^-4 //metallurgical base width NB=10^16 eps=11.7*8.85*10^-14 e=1.6*10^-19 Vpt=25 //punch through voltage x=Vpt*2*eps/(e*Wb^2*NB) y=x-1 NC=NB/y xn=(2*eps*(Vpt)*NB/(e*NC*(NB+NC)))^0.5*10000 printf('The collector doping is %1.2f per cm^3 and collector widt is %1.2f micrometer',NC,xn)
885ec559887d7103718b98bb3258a69119064888
449d555969bfd7befe906877abab098c6e63a0e8
/1478/CH2/EX2.18.21/2_18_21.sce
8d238b60f248b7a5920eec0620ed85db080c0408
[]
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,340
sce
2_18_21.sce
//water and its treatment// //example 2.18.21// clc Purity_Lime=.85 Purity_soda=.95 W1=55.5;//amount of CaCl2 in ppm// W2=20;//amount of SiO2 in ppm// W3=12.6;//amount of NaHCO3 in ppm// W4=250;//amount of KCl in ppm// W5=48;//amount of MgSO4 in ppm// W6=2.2;//amount of CO2 in ppm// W7=43.8;//amount of Mg(HCO3)2 in ppm// W8=2;//amount of Fe++ in ppm// W9=10;//amount of AlCl3 in ppm// M1=100/111;//multiplication factor of CaCl2// M3=100/(84*2);//multiplication factor of NaHCO3// M5=100/120;//multiplication factor of MgSO4// M6=100/44;//multiplication factor of CO2// M7=100/146;//multiplication factor of Mg(HCO3)2// M8=100/55.8;//multiplication factor of Fe++// M9=100/133.42;//multiplication factor of AlCl3// P1=W1*M1;//in terms of CaCO3//L P3=W3*M3;//in terms of CaCO3//+L and -S P5=W5*M5;//in terms of CaCO3//L+S P6=W6*M6;//in terms of CaCO3//L P7=W7*M7;//in terms of CaCO3//L P8=W8*M8;//in terms of CaCO3//L+S P9=W9*M9;//in terms of CaCO3//L+S printf ("We do not take SiO2 and KCl since they do not react with lime/soda"); V=50000;//volume of water in litres// L=0.74*(P3+P5+P6+P7*2+P8+P9)*V/Purity_Lime;//lime required in mg// L=L/10^6; printf("\nLime required is %.3fkg",L); S=1.06*(P1-P3+P5+P8+P9)*V/Purity_soda;//soda required in mg// S=S/10^6; printf("\nSoda required is %.4fkg",S)
8a4d184d1c2fd49565bea29ab8661d288a7e4042
449d555969bfd7befe906877abab098c6e63a0e8
/1322/CH19/EX19.13/169ex5.sce
35027a79d9a861cff1c1517c3d6fbae3f30b9bd8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
167
sce
169ex5.sce
//divide -5.3716 by 3 clear; clc; close; //characteristic=-5=-6+1 or the log as -6+1.3716 characteristic=-6/3; mantissa=1.3716/3; characteristic-mantissa
d49bddd5524491197a411ba1ed159bb9e98ea3f9
449d555969bfd7befe906877abab098c6e63a0e8
/2354/CH5/EX5.3/5_3.sce
6f5e2bffe84d19739569f7f405b92318d7ca4006
[]
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
269
sce
5_3.sce
//example 5.3 clc; funcprot(0); // Initialization of Variable h1=3213.6;//kJ/kg V1=10.0; V2=665.0; mdot=2.0; h2=h1+(V1^2/2-V2^2/2)/1000; //using table with given h2 values v2=0.1627;//specific volume V2=665; A2=mdot*v2/V2; disp(A2,"Area in m^2"); clear()
4e2e1821a99599867c3661141c3b1c43363ceb51
449d555969bfd7befe906877abab098c6e63a0e8
/3673/CH8/EX8.a.15/Example_a_8_15.sce
4bcef3437e136200504ed452e7ab67f4cae45380
[]
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
260
sce
Example_a_8_15.sce
//Example_a_8_15 page no:335 clc; V=220; f=50; Vr=550; Ir=1; R=V/Ir; C=1/(Vr*2*%pi*f); C=C*10^6; L=1/((C*10^-6)*(100*%pi)^2); disp(R,"the resistance is (in ohm)"); disp(L,"the inducatance is (in H)"); disp(C,"the capacitance is (in microFarad)");
372b34f03f03a0a19b9787fd3e97c426646fd361
449d555969bfd7befe906877abab098c6e63a0e8
/1529/CH10/EX10.21/10_21.sce
f638a941cd3eb481e4b6a5a7f9f08d0fb4cba1e1
[]
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
10_21.sce
//Chapter 10, Problem 20, figure 10.35 clc; fr=400e3; //resonant frequency Qf=100; //Q factor C=400e-12; //capacitance L=((2*%pi*fr)^2*C)^-1; //calculating inductance R=2*%pi*fr*L/Qf; //calculating resistance printf("(a) Inductance = %f mH\n\n\n",L*1000); printf("(b) Resistance of inductor = %f ohm",R);
058146336afee1f9a698eadae4c89d92aec30641
449d555969bfd7befe906877abab098c6e63a0e8
/659/CH6/EX6.7/exm6_7.sce
cc86b6bca1c33de0b7671c6c1692e3f1d7b56733
[]
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
696
sce
exm6_7.sce
// Example 6.7 //The program illustrate the use of continue statement disp("Enter 9999 to STOP"); count=0; negative=0; while(count<=100) number=input("Enter a number:"); if(number==9999) then break; //EXIT FROM THE LOOP end if(number<0), disp("Number is negative"); negative =negative+1; continue; //SKIP REST OF LOOP end sqrot=sqrt(number); //COMPUTE SQUARE ROOT printf("Number = %f\n",number); printf("Square root = %f",sqrot); count=count+1; end //PRINT RESULTS printf("Number of items done = %d\n",count); printf("Negative items = %d\n",negative); disp("END OF DATA");
322682218a9d28467c598b7ed7cfa386f4b5c525
089894a36ef33cb3d0f697541716c9b6cd8dcc43
/NLP_Project/test/tweet/bow/bow.8_3.tst
66a654764f0f7a2dda0f475125de144c03688ddd
[]
no_license
mandar15/NLP_Project
3142cda82d49ba0ea30b580c46bdd0e0348fe3ec
1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2
refs/heads/master
2020-05-20T13:36:05.842840
2013-07-31T06:53:59
2013-07-31T06:53:59
6,534,406
0
1
null
null
null
null
UTF-8
Scilab
false
false
26,548
tst
bow.8_3.tst
8 5:4.0 6:0.17391304347826086 34:0.1111111111111111 42:0.4 54:1.0 56:0.25 82:0.25 143:0.16666666666666666 150:0.017543859649122806 180:1.0 251:0.14285714285714285 273:0.3333333333333333 286:1.0 327:0.16666666666666666 345:1.0 407:1.0 473:0.5 494:1.0 583:1.0 644:1.0 664:1.0 672:1.0 768:0.5 1037:0.5 1067:1.0 1183:0.5 1568:0.5 1580:2.0 2119:1.0 2133:1.0 2270:1.0 2350:0.3333333333333333 3054:1.0 4209:1.0 5013:1.0 5120:1.0 6414:1.0 6763:1.0 7254:1.0 7458:1.0 8 5:1.0 42:0.6 56:0.5 64:0.2 150:0.017543859649122806 219:0.3333333333333333 251:0.14285714285714285 282:1.0 287:1.0 336:0.5 438:0.25 654:0.14285714285714285 711:1.0 717:0.3333333333333333 849:1.0 2441:1.0 2577:1.0 2841:1.0 3656:1.0 4617:1.0 5013:1.0 5274:1.0 5647:1.0 5657:1.0 5766:1.0 5788:1.0 5793:1.0 6536:1.0 7829:1.0 8 5:1.0 15:0.0625 34:0.1111111111111111 54:1.0 82:0.25 147:0.5 150:0.017543859649122806 155:0.08333333333333333 191:0.14285714285714285 327:0.16666666666666666 737:0.3333333333333333 892:1.0 938:0.5 1036:0.5 1384:1.0 1490:0.5 2675:1.0 4028:1.0 5183:1.0 5953:1.0 6358:1.0 6598:1.0 8288:1.0 8 6:0.08695652173913043 23:0.07692307692307693 42:0.2 56:0.25 63:2.0 64:0.2 97:0.3333333333333333 128:0.14285714285714285 143:0.16666666666666666 146:0.3333333333333333 150:0.017543859649122806 155:0.16666666666666666 215:0.08333333333333333 245:0.5 327:0.16666666666666666 443:1.0 505:1.0 1259:1.0 1448:1.0 1661:1.0 2235:1.0 2683:1.0 3379:1.0 5127:1.0 5190:1.0 5377:0.5 5457:1.0 5553:1.0 5939:1.0 6152:1.0 6672:1.0 8 5:1.0 6:0.08695652173913043 15:0.0625 63:1.0 75:0.25 82:0.125 97:0.6666666666666666 109:0.5 147:0.5 150:0.017543859649122806 185:0.3333333333333333 191:0.14285714285714285 216:1.0 219:0.3333333333333333 445:1.0 473:0.5 527:1.0 768:0.5 1037:0.5 1219:1.0 1432:1.0 1448:1.0 1709:1.0 1975:1.0 3084:1.0 5212:1.0 6225:0.5 8 5:1.0 15:0.0625 23:0.07692307692307693 34:0.1111111111111111 42:0.4 54:1.0 56:0.25 75:0.25 97:0.3333333333333333 123:1.0 169:1.0 191:0.14285714285714285 308:1.0 359:0.5 373:0.125 443:1.0 488:0.5 644:1.0 791:0.5 1389:1.0 1407:1.0 2004:1.0 2270:1.0 2331:1.0 5183:1.0 5235:1.0 5405:1.0 5474:1.0 5567:1.0 7288:1.0 7498:1.0 8184:1.0 8 6:0.043478260869565216 34:0.2222222222222222 42:0.2 98:0.5 105:0.3333333333333333 108:0.25 175:1.0 191:0.5714285714285714 386:0.5 423:0.5 473:1.5 542:0.5 583:1.0 587:1.0 892:1.0 1265:1.0 1432:1.0 1433:1.0 1521:1.0 1602:1.0 1847:1.0 2457:1.0 2567:1.0 2585:1.0 3344:1.0 5826:1.0 8 5:2.0 6:0.043478260869565216 23:0.07692307692307693 42:0.4 82:0.125 97:0.3333333333333333 155:0.08333333333333333 169:1.0 181:0.25 549:1.0 587:1.0 711:1.0 798:1.0 874:1.0 1098:1.0 1161:1.0 1407:1.0 1445:0.3333333333333333 1790:0.16666666666666666 1934:1.0 2807:1.0 3567:1.0 5127:1.0 5213:1.0 5239:1.0 5950:1.0 6040:1.0 6763:1.0 7787:1.0 8 5:2.0 6:0.043478260869565216 97:0.3333333333333333 128:0.14285714285714285 138:0.1111111111111111 147:0.5 191:0.2857142857142857 1040:1.0 1159:1.0 1181:1.0 1345:1.0 1409:1.0 3101:0.5 4259:1.0 5378:1.0 5699:1.0 5989:1.0 8 5:2.0 6:0.043478260869565216 23:0.07692307692307693 34:0.1111111111111111 42:0.2 54:1.0 56:0.5 62:1.0 63:1.0 64:0.2 82:0.125 97:0.3333333333333333 102:0.3333333333333333 115:1.0 135:0.25 150:0.017543859649122806 155:0.08333333333333333 191:0.14285714285714285 238:0.1111111111111111 327:0.16666666666666666 373:0.125 531:0.3333333333333333 549:1.0 878:1.0 1036:0.5 1661:1.0 1928:1.0 3042:1.0 3152:1.0 3155:1.0 3705:1.0 3740:1.0 3844:1.0 7476:1.0 8 1:0.09090909090909091 5:1.0 6:0.043478260869565216 15:0.0625 42:0.4 82:0.125 116:1.0 128:0.14285714285714285 147:1.0 155:0.08333333333333333 165:0.0625 339:1.0 517:0.5 615:1.0 1109:1.0 1747:0.5 2263:0.5 3567:1.0 5093:1.0 6293:1.0 6754:1.0 8 5:1.0 6:0.08695652173913043 15:0.0625 60:1.0 64:0.2 147:1.0 165:0.0625 180:1.0 240:1.0 305:1.0 336:0.5 473:0.5 1104:0.5 2299:1.0 2686:1.0 3644:1.0 4101:1.0 4220:1.0 5887:0.5 7254:1.0 8 5:1.0 6:0.043478260869565216 17:0.3333333333333333 23:0.07692307692307693 42:0.2 54:1.0 64:0.2 82:0.125 98:0.5 150:0.05263157894736842 180:1.0 201:1.0 367:0.5 373:0.125 409:1.0 488:0.5 583:1.0 1675:1.0 2078:1.0 2350:0.3333333333333333 2422:1.0 3332:1.0 5183:1.0 5461:1.0 7004:1.0 7635:1.0 8 5:1.0 6:0.043478260869565216 17:0.3333333333333333 34:0.1111111111111111 37:0.25 42:0.2 108:0.25 128:0.14285714285714285 132:1.0 147:0.5 150:0.017543859649122806 165:0.0625 185:0.3333333333333333 233:1.0 325:1.0 1109:1.0 1219:1.0 1432:1.0 2018:1.0 2752:1.0 3060:1.0 6553:1.0 7364:1.0 8 5:1.0 6:0.13043478260869565 15:0.0625 37:0.25 75:0.25 101:1.0 128:0.14285714285714285 147:0.5 150:0.017543859649122806 238:0.1111111111111111 240:1.0 251:0.14285714285714285 318:1.0 327:0.3333333333333333 336:0.5 367:0.5 458:1.0 473:1.0 543:0.3333333333333333 717:0.3333333333333333 778:0.5 798:1.0 1053:1.0 1378:1.0 1586:1.0 2183:1.0 2603:0.2 2870:1.0 3499:1.0 3839:1.0 8106:1.0 8 42:0.4 56:0.25 64:0.2 82:0.25 96:0.125 105:0.3333333333333333 138:0.1111111111111111 155:0.08333333333333333 191:0.14285714285714285 561:0.3333333333333333 912:1.0 995:0.5 1568:0.5 1596:1.0 2320:1.0 2436:1.0 2591:0.3333333333333333 2892:2.0 3133:1.0 5842:1.0 6865:1.0 7000:1.0 8 14:0.07142857142857142 56:0.25 215:0.08333333333333333 393:0.5 517:0.5 568:1.0 1091:1.0 1389:1.0 1998:1.0 7975:1.0 8 23:0.07692307692307693 51:0.25 82:0.125 169:1.0 175:1.0 473:0.5 534:0.5 560:1.0 878:1.0 1202:1.0 1992:1.0 2263:0.5 3223:1.0 4169:1.0 5463:0.5 6302:1.0 6393:1.0 6799:1.0 7764:1.0 8277:1.0 8 42:0.2 82:0.125 97:0.3333333333333333 143:0.16666666666666666 150:0.03508771929824561 191:0.14285714285714285 215:0.16666666666666666 245:0.5 273:0.3333333333333333 275:1.0 318:1.0 397:0.3333333333333333 545:1.0 695:1.0 1161:1.0 1389:1.0 5186:1.0 6495:1.0 6799:1.0 7140:1.0 8 5:1.0 6:0.043478260869565216 23:0.07692307692307693 42:0.2 150:0.017543859649122806 165:0.0625 515:1.0 966:1.0 2538:0.5 2717:1.0 3084:1.0 4295:1.0 4878:1.0 5183:1.0 5754:0.3333333333333333 7170:1.0 8 34:0.2222222222222222 56:0.25 150:0.017543859649122806 191:0.14285714285714285 192:0.5 219:0.3333333333333333 350:0.125 359:0.5 373:0.125 505:1.0 768:0.5 1344:1.0 3801:1.0 4326:1.0 5183:1.0 5599:1.0 5920:1.0 6111:1.0 6758:1.0 6764:1.0 8 17:0.3333333333333333 34:0.1111111111111111 42:0.2 128:0.14285714285714285 135:0.25 146:0.3333333333333333 177:0.5 679:1.0 1747:0.5 1956:1.0 4054:1.0 4237:1.0 5256:1.0 5491:1.0 5986:1.0 6230:1.0 7124:1.0 8 5:4.0 6:0.13043478260869565 15:0.125 25:0.5 56:0.25 75:0.25 97:0.3333333333333333 128:0.14285714285714285 147:0.5 150:0.017543859649122806 251:0.14285714285714285 359:0.5 517:0.5 587:1.0 1280:1.0 1669:1.0 2325:1.0 5256:1.0 6152:1.0 6998:1.0 8 5:1.0 6:0.043478260869565216 15:0.0625 97:0.3333333333333333 128:0.14285714285714285 145:1.0 155:0.08333333333333333 191:0.14285714285714285 423:0.5 1349:1.0 1445:0.3333333333333333 1667:1.0 1700:1.0 2261:1.0 3792:1.0 5099:1.0 5163:1.0 5344:1.0 5491:1.0 6804:1.0 8 5:1.0 6:0.043478260869565216 42:0.2 97:0.3333333333333333 143:0.16666666666666666 165:0.0625 189:1.0 191:0.14285714285714285 215:0.08333333333333333 423:0.5 462:0.5 560:1.0 1003:1.0 1087:2.0 1384:1.0 1700:1.0 1717:1.0 1790:0.16666666666666666 2261:1.0 2299:1.0 2403:1.0 2591:0.6666666666666666 5368:1.0 8 17:0.6666666666666666 23:0.07692307692307693 34:0.1111111111111111 42:0.2 97:0.3333333333333333 138:0.1111111111111111 150:0.03508771929824561 204:0.5 215:0.08333333333333333 251:0.14285714285714285 327:0.16666666666666666 473:0.5 1109:1.0 1151:1.0 1448:1.0 2475:1.0 2591:0.3333333333333333 2744:1.0 3402:1.0 3780:1.0 4547:1.0 7538:1.0 7802:1.0 8 1:0.09090909090909091 5:1.0 6:0.043478260869565216 23:0.15384615384615385 34:0.1111111111111111 96:0.125 97:0.3333333333333333 128:0.14285714285714285 146:0.3333333333333333 150:0.017543859649122806 191:0.14285714285714285 197:0.3333333333333333 215:0.08333333333333333 268:1.0 281:1.0 287:1.0 399:0.5 505:1.0 561:0.3333333333333333 695:1.0 750:1.0 1161:1.0 1719:1.0 1953:1.0 3683:1.0 6799:1.0 8 5:1.0 6:0.043478260869565216 82:0.125 128:0.2857142857142857 146:0.3333333333333333 150:0.05263157894736842 281:1.0 373:0.125 409:1.0 411:0.5 473:0.5 892:1.0 1161:1.0 1162:0.5 2579:1.0 2807:1.0 4054:1.0 4523:1.0 4883:1.0 5395:1.0 8 5:2.0 6:0.08695652173913043 15:0.0625 34:0.1111111111111111 42:0.2 56:0.25 94:1.0 97:0.3333333333333333 146:0.3333333333333333 150:0.03508771929824561 155:0.08333333333333333 185:0.3333333333333333 190:1.0 223:1.0 226:0.3333333333333333 409:1.0 438:0.25 517:0.5 624:1.0 735:0.3333333333333333 811:1.0 1003:1.0 1349:1.0 1452:1.0 1649:1.0 2554:1.0 2564:1.0 2651:1.0 3002:1.0 5344:1.0 8 6:0.08695652173913043 64:0.2 143:0.16666666666666666 150:0.017543859649122806 191:0.14285714285714285 215:0.08333333333333333 272:0.5 305:1.0 380:0.5 399:0.5 517:0.5 553:1.0 561:0.3333333333333333 1040:1.0 1075:1.0 2849:1.0 5183:1.0 8 5:2.0 6:0.08695652173913043 15:0.125 34:0.1111111111111111 42:0.2 96:0.125 97:0.6666666666666666 98:0.5 138:0.1111111111111111 150:0.017543859649122806 169:1.0 191:0.14285714285714285 215:0.08333333333333333 272:0.5 327:0.16666666666666666 373:0.125 394:0.5 443:1.0 462:0.5 561:0.3333333333333333 583:1.0 681:0.3333333333333333 794:1.0 995:0.5 1003:1.0 1384:1.0 1671:1.0 1992:1.0 6218:1.0 6500:1.0 6847:1.0 8022:1.0 8 5:1.0 6:0.13043478260869565 23:0.07692307692307693 64:0.2 68:1.0 82:0.125 97:0.6666666666666666 143:0.16666666666666666 150:0.017543859649122806 191:0.14285714285714285 220:1.0 245:0.5 261:0.05555555555555555 587:1.0 930:1.0 1003:1.0 1661:1.0 3398:1.0 4625:1.0 6395:1.0 8 42:0.2 82:0.125 95:1.0 97:0.3333333333333333 150:0.03508771929824561 190:1.0 409:1.0 427:1.0 511:0.3333333333333333 570:1.0 773:1.0 1441:1.0 1992:1.0 2325:1.0 3100:0.5 3486:1.0 4185:1.0 4333:1.0 4908:1.0 4930:1.0 5183:1.0 5274:1.0 5411:0.5 6148:1.0 6282:1.0 6536:1.0 7730:1.0 8 5:3.0 6:0.08695652173913043 23:0.07692307692307693 42:0.4 82:0.125 146:0.3333333333333333 147:0.5 169:1.0 238:0.1111111111111111 386:0.5 561:0.3333333333333333 644:1.0 761:1.0 1094:1.0 1103:0.25 1344:1.0 1433:1.0 1661:1.0 1671:1.0 1890:1.0 2052:1.0 2266:1.0 2444:1.0 3271:1.0 3767:1.0 4256:1.0 4498:1.0 5528:1.0 6461:1.0 7006:2.0 7633:1.0 8 5:2.0 15:0.0625 42:0.4 56:0.25 63:1.0 82:0.125 97:0.6666666666666666 135:0.25 287:1.0 367:0.5 534:0.5 583:1.0 745:0.5 938:0.5 1081:0.5 1790:0.5 1885:0.3333333333333333 1992:1.0 2258:0.5 3126:0.5 3428:1.0 4741:1.0 5744:1.0 6358:1.0 7918:1.0 8 5:2.0 15:0.125 42:0.2 367:0.5 1992:1.0 2258:0.5 3295:1.0 4087:1.0 5165:1.0 6084:1.0 6411:1.0 8268:1.0 8 14:0.07142857142857142 23:0.07692307692307693 37:0.25 350:0.125 359:0.5 7840:1.0 8 6:0.043478260869565216 15:0.125 34:0.1111111111111111 42:0.2 108:0.25 185:0.3333333333333333 191:0.14285714285714285 305:1.0 796:1.0 1095:1.0 2305:1.0 2683:1.0 2845:1.0 4039:1.0 5486:1.0 8224:1.0 8 1:0.09090909090909091 2:1.0 3:1.0 4:2.0 5:3.0 6:0.13043478260869565 15:0.0625 23:0.07692307692307693 34:0.1111111111111111 37:0.25 56:0.25 75:0.25 135:0.25 155:0.08333333333333333 246:1.0 251:0.14285714285714285 359:0.5 373:0.125 1349:1.0 3084:1.0 4221:1.0 4800:1.0 5235:1.0 5344:1.0 6033:1.0 6111:1.0 7005:1.0 7049:1.0 7066:1.0 8 6:0.043478260869565216 15:0.0625 17:0.6666666666666666 23:0.07692307692307693 35:1.0 42:0.6 56:0.25 64:0.4 98:0.5 146:0.3333333333333333 147:0.5 169:1.0 359:1.0 399:0.5 407:1.0 443:1.0 511:0.3333333333333333 761:1.0 995:0.5 2033:1.0 2966:1.0 3344:1.0 3433:1.0 4723:1.0 4743:1.0 5466:1.0 5784:1.0 7350:1.0 7626:1.0 8016:1.0 8 6:0.13043478260869565 15:0.0625 34:0.1111111111111111 42:0.4 82:0.125 610:2.0 829:1.0 2966:1.0 4221:1.0 5491:1.0 5605:1.0 8 5:1.0 15:0.0625 75:0.25 135:0.25 146:0.3333333333333333 150:0.03508771929824561 353:1.0 473:0.5 534:0.5 560:1.0 966:1.0 1423:1.0 2237:1.0 3671:1.0 4990:1.0 7972:1.0 8 1:0.09090909090909091 5:2.0 6:0.043478260869565216 51:0.25 54:1.0 63:1.0 73:1.0 98:0.5 109:0.5 128:0.14285714285714285 191:0.14285714285714285 308:1.0 494:1.0 561:0.3333333333333333 955:1.0 1492:0.5 2380:0.5 3683:1.0 3800:1.0 3819:1.0 5519:1.0 7662:1.0 8 6:0.043478260869565216 45:1.0 64:0.2 73:1.0 150:0.017543859649122806 215:0.08333333333333333 241:1.0 359:0.5 433:1.0 893:0.5 908:1.0 3035:1.0 3198:1.0 3767:1.0 3794:1.0 4849:1.0 7329:1.0 7364:1.0 8 5:1.0 23:0.07692307692307693 82:0.125 135:0.25 146:0.3333333333333333 147:0.5 505:1.0 534:0.5 1345:1.0 1487:0.5 1492:0.5 1885:0.3333333333333333 2989:1.0 8 5:2.0 23:0.07692307692307693 37:0.25 94:1.0 97:1.0 147:0.5 150:0.03508771929824561 165:0.0625 190:1.0 191:0.14285714285714285 201:1.0 215:0.08333333333333333 281:1.0 353:1.0 366:1.0 441:1.0 454:1.0 488:0.5 497:1.0 668:1.0 767:1.0 966:1.0 1820:1.0 3259:1.0 3669:1.0 4861:1.0 5431:1.0 6847:1.0 8 5:1.0 15:0.0625 23:0.07692307692307693 34:0.1111111111111111 42:0.2 56:0.25 82:0.125 97:0.3333333333333333 128:0.14285714285714285 135:0.5 146:0.3333333333333333 147:1.0 319:0.08333333333333333 488:0.5 768:0.5 1063:1.0 1428:1.0 1564:1.0 1818:1.0 1956:1.0 2804:1.0 2805:1.0 3603:1.0 4145:1.0 4908:1.0 4972:1.0 5198:1.0 6225:0.5 8 5:1.0 26:1.0 587:1.0 1094:1.0 2541:1.0 5185:1.0 7789:1.0 8 5:1.0 6:0.043478260869565216 42:0.2 97:0.3333333333333333 155:0.08333333333333333 215:0.08333333333333333 774:1.0 850:1.0 923:1.0 988:0.5 1994:1.0 4919:0.5 4982:2.0 5196:0.16666666666666666 5494:0.6 6147:1.0 6225:0.5 6536:1.0 7086:1.0 8 6:0.043478260869565216 41:1.0 42:0.2 138:0.1111111111111111 143:0.16666666666666666 150:0.05263157894736842 181:0.25 215:0.08333333333333333 219:0.3333333333333333 1275:1.0 2378:0.2 2599:1.0 3098:1.0 3248:1.0 5182:1.0 8027:1.0 8 5:1.0 15:0.125 17:0.6666666666666666 26:1.0 34:0.1111111111111111 42:0.2 63:1.0 150:0.017543859649122806 191:0.14285714285714285 231:1.0 235:1.0 260:1.0 261:0.05555555555555555 327:0.16666666666666666 534:0.5 587:1.0 683:1.0 1040:1.0 1346:1.0 1790:0.16666666666666666 2694:1.0 3174:1.0 5211:1.0 5446:1.0 6358:1.0 7604:1.0 8 6:0.08695652173913043 30:0.5 45:2.0 56:0.25 97:0.6666666666666666 145:1.0 167:1.0 312:1.0 747:0.5 1142:1.0 1162:0.5 1661:1.0 1790:0.16666666666666666 1861:2.0 1864:1.0 2154:1.0 2175:0.5 2547:1.0 2901:1.0 3730:1.0 4913:1.0 6148:1.0 6549:1.0 6748:1.0 8 5:1.0 15:0.125 42:0.6 138:0.1111111111111111 140:0.5 146:0.3333333333333333 169:1.0 406:1.0 587:3.0 791:0.5 992:1.0 1445:0.3333333333333333 1492:0.5 1580:1.0 1930:1.0 1992:2.0 2070:1.0 2148:1.0 2183:1.0 2329:1.0 2725:1.0 4221:1.0 4684:1.0 5602:1.0 7136:1.0 7649:1.0 7671:1.0 8 1:0.09090909090909091 5:3.0 34:0.2222222222222222 96:0.125 97:0.6666666666666666 147:1.0 266:0.5 350:0.125 488:0.5 531:0.3333333333333333 644:1.0 790:1.0 988:0.5 1109:1.0 1162:0.5 1448:1.0 1563:1.0 2301:1.0 2403:1.0 4669:1.0 5196:0.16666666666666666 6064:1.0 8 6:0.043478260869565216 56:0.25 97:0.3333333333333333 150:0.017543859649122806 327:0.16666666666666666 1448:1.0 1661:1.0 2403:1.0 5496:1.0 8 4:1.0 6:0.043478260869565216 42:0.4 45:1.0 56:0.5 64:0.2 82:0.125 97:0.6666666666666666 150:0.017543859649122806 191:0.14285714285714285 215:0.08333333333333333 350:0.125 373:0.125 405:1.0 440:1.0 443:1.0 488:0.5 644:1.0 1154:1.0 1344:1.0 1644:0.3333333333333333 1661:1.0 2113:1.0 2974:1.0 5950:1.0 6274:1.0 8 5:3.0 6:0.08695652173913043 77:1.0 82:0.125 215:0.08333333333333333 260:1.0 367:0.5 531:0.3333333333333333 1165:1.0 1405:1.0 2539:1.0 2675:1.0 4185:1.0 5639:1.0 5870:1.0 6225:0.5 7565:1.0 8077:1.0 8 1:0.09090909090909091 5:1.0 15:0.125 17:0.3333333333333333 42:0.2 97:0.6666666666666666 150:0.017543859649122806 185:0.3333333333333333 339:1.0 380:0.5 397:0.3333333333333333 911:1.0 1036:0.5 1052:1.0 1154:1.0 1790:0.16666666666666666 1844:1.0 2325:1.0 2797:1.0 4918:0.5 5197:1.0 5435:1.0 5479:1.0 5633:1.0 5770:1.0 5884:1.0 6228:1.0 7759:1.0 8 5:2.0 26:1.0 34:0.1111111111111111 42:0.4 146:0.3333333333333333 150:0.03508771929824561 155:0.08333333333333333 409:1.0 1618:1.0 3659:1.0 5633:1.0 5759:1.0 8 5:1.0 6:0.08695652173913043 15:0.0625 56:0.25 63:1.0 82:0.125 97:0.3333333333333333 117:0.0625 155:0.08333333333333333 169:1.0 350:0.125 367:0.5 379:1.0 417:1.0 517:0.5 531:0.3333333333333333 717:0.3333333333333333 993:1.0 995:0.5 1349:1.0 1432:1.0 2743:1.0 4162:1.0 5344:1.0 5560:1.0 8 6:0.043478260869565216 34:0.1111111111111111 97:0.3333333333333333 169:1.0 215:0.08333333333333333 383:1.0 517:0.5 531:0.3333333333333333 679:1.0 1213:1.0 1432:1.0 1637:1.0 2545:1.0 2743:1.0 4774:1.0 5560:1.0 6760:1.0 7868:1.0 8 1:0.09090909090909091 5:1.0 42:0.4 82:0.125 97:0.3333333333333333 150:0.017543859649122806 562:1.0 2652:1.0 2942:1.0 6084:1.0 6256:1.0 6752:1.0 8 6:0.08695652173913043 26:1.0 42:0.2 64:0.2 96:0.125 97:0.3333333333333333 101:1.0 128:0.2857142857142857 157:1.0 182:0.09090909090909091 191:0.14285714285714285 245:1.0 488:0.5 587:1.0 635:1.0 644:1.0 1912:1.0 2780:1.0 8 6:0.043478260869565216 17:0.3333333333333333 97:0.3333333333333333 128:0.14285714285714285 150:0.017543859649122806 155:0.08333333333333333 169:1.0 215:0.08333333333333333 327:0.16666666666666666 1072:1.0 2325:1.0 3350:1.0 5207:1.0 5727:1.0 8 6:0.043478260869565216 51:0.25 82:0.25 150:0.017543859649122806 191:0.14285714285714285 215:0.08333333333333333 473:0.5 531:0.3333333333333333 938:0.5 1081:0.5 1769:1.0 2651:1.0 5868:1.0 6338:0.5 8 5:2.0 34:0.1111111111111111 49:0.5 51:0.25 111:1.0 155:0.08333333333333333 191:0.14285714285714285 226:0.3333333333333333 240:1.0 339:1.0 399:0.5 473:0.5 488:0.5 534:0.5 1389:1.0 1671:1.0 3700:1.0 4295:1.0 7832:1.0 8 5:1.0 6:0.043478260869565216 26:1.0 37:0.25 51:0.25 56:0.25 63:1.0 82:0.25 98:0.5 116:1.0 146:0.3333333333333333 150:0.017543859649122806 155:0.08333333333333333 176:1.0 281:1.0 286:1.0 482:1.0 488:0.5 517:0.5 717:0.3333333333333333 809:1.0 1097:0.5 1917:1.0 4966:1.0 5186:1.0 5657:1.0 8 6:0.043478260869565216 97:0.3333333333333333 147:0.5 251:0.14285714285714285 359:0.5 379:1.0 561:0.3333333333333333 693:1.0 1990:1.0 2394:1.0 2538:0.5 5320:1.0 6349:1.0 7178:1.0 8 34:0.2222222222222222 42:0.4 56:0.5 73:1.0 97:0.6666666666666666 105:0.3333333333333333 106:0.5 150:0.03508771929824561 153:0.5 191:0.42857142857142855 197:0.3333333333333333 201:1.0 226:0.3333333333333333 231:1.0 327:0.16666666666666666 441:1.0 488:0.5 717:0.3333333333333333 911:1.0 1058:1.0 1109:1.0 1278:1.0 1928:1.0 2297:1.0 5118:1.0 5936:1.0 7759:1.0 7834:1.0 8057:1.0 8 34:0.1111111111111111 42:0.2 54:1.0 73:1.0 97:0.3333333333333333 135:0.25 169:1.0 180:2.0 350:0.125 473:1.0 695:1.0 1081:0.5 1215:1.0 1982:0.25 2263:1.0 3126:0.5 3718:1.0 3909:1.0 4692:1.0 5762:1.0 6118:1.0 7753:1.0 7754:1.0 8 15:0.0625 30:0.5 42:0.2 69:0.5 150:0.017543859649122806 190:1.0 367:0.5 373:0.25 409:1.0 695:1.0 763:1.0 1005:1.0 1109:1.0 1796:1.0 2585:1.0 2617:1.0 4045:1.0 4743:1.0 4908:1.0 4980:0.3333333333333333 5523:1.0 6838:1.0 8 5:1.0 6:0.043478260869565216 34:0.1111111111111111 96:0.25 150:0.017543859649122806 191:0.2857142857142857 373:0.125 427:1.0 438:0.25 488:0.5 561:0.3333333333333333 768:0.5 932:1.0 1373:1.0 3401:1.0 3767:1.0 4879:1.0 6859:1.0 8 6:0.13043478260869565 15:0.0625 17:0.3333333333333333 82:0.125 97:0.3333333333333333 138:0.1111111111111111 150:0.017543859649122806 246:1.0 350:0.125 438:0.25 543:0.3333333333333333 560:1.0 654:0.14285714285714285 816:0.5 1028:1.0 1058:1.0 1452:1.0 2919:1.0 5034:1.0 5274:1.0 5303:0.5 5453:0.5 5788:1.0 6223:1.0 8 5:1.0 6:0.08695652173913043 17:0.3333333333333333 34:0.1111111111111111 42:0.2 64:0.2 108:0.25 180:1.0 473:1.0 1154:1.0 1345:1.0 1433:1.0 1492:0.5 1535:1.0 1661:1.0 2015:1.0 2018:1.0 2457:1.0 2892:1.0 5141:1.0 5437:1.0 6185:1.0 6636:1.0 8 6:0.043478260869565216 23:0.07692307692307693 63:1.0 73:1.0 97:0.3333333333333333 105:0.3333333333333333 281:1.0 314:1.0 373:0.125 693:1.0 1447:1.0 3082:1.0 3174:1.0 5433:1.0 5658:1.0 5660:1.0 7147:1.0 7221:1.0 8 6:0.17391304347826086 15:0.0625 23:0.07692307692307693 34:0.1111111111111111 42:0.6 44:1.0 56:0.25 73:1.0 82:0.125 97:0.3333333333333333 153:0.5 169:1.0 177:0.5 383:1.0 390:1.0 423:0.5 438:0.25 473:0.5 477:1.0 530:1.0 644:1.0 988:0.5 1075:1.0 1179:1.0 1313:1.0 1345:1.0 2018:1.0 2102:1.0 2688:1.0 2722:1.0 3581:1.0 4237:1.0 4256:1.0 4262:1.0 4785:1.0 4908:1.0 5435:1.0 6078:1.0 7147:1.0 8 5:1.0 6:0.043478260869565216 34:0.1111111111111111 42:0.2 45:1.0 49:0.5 56:0.25 75:0.25 82:0.375 135:0.25 146:0.6666666666666666 147:0.5 184:1.0 287:1.0 350:0.125 373:0.125 477:1.0 671:1.0 717:0.3333333333333333 1008:1.0 1132:1.0 1162:0.5 1241:0.5 1499:1.0 1521:1.0 1568:0.5 1765:1.0 2517:1.0 2626:1.0 3247:1.0 5190:1.0 5333:2.0 5423:1.0 5666:1.0 6384:1.0 8 5:1.0 34:0.2222222222222222 37:0.5 42:0.8 44:1.0 56:0.5 64:0.2 75:0.25 97:0.3333333333333333 107:0.5 108:0.25 128:0.14285714285714285 180:1.0 191:0.14285714285714285 329:0.5 336:0.5 350:0.125 488:0.5 613:1.0 659:1.0 768:0.5 829:1.0 1124:1.0 1241:0.5 1389:1.0 1490:0.5 1992:1.0 2539:1.0 2777:1.0 3660:1.0 4324:1.0 5271:1.0 6004:1.0 6993:1.0 8 5:1.0 42:0.2 54:1.0 82:0.125 97:0.3333333333333333 219:0.3333333333333333 235:1.0 251:0.14285714285714285 384:1.0 389:1.0 441:1.0 531:0.3333333333333333 695:1.0 1154:1.0 1383:1.0 1492:0.5 1790:0.16666666666666666 5965:1.0 6989:1.0 8 1:0.09090909090909091 34:0.1111111111111111 51:0.25 96:0.125 97:0.3333333333333333 128:0.14285714285714285 146:0.3333333333333333 147:0.5 155:0.08333333333333333 373:0.125 482:1.0 542:0.5 717:0.3333333333333333 1349:1.0 1434:1.0 1814:1.0 2579:1.0 3669:1.0 6651:1.0 6763:1.0 7411:1.0 8 5:1.0 26:1.0 34:0.1111111111111111 82:0.125 150:0.017543859649122806 155:0.08333333333333333 180:1.0 191:0.42857142857142855 215:0.08333333333333333 222:1.0 325:1.0 367:0.5 473:0.5 488:1.0 517:0.5 1275:1.0 1318:1.0 1491:1.0 2263:0.5 3808:1.0 4696:1.0 5281:0.5 6936:1.0 8 23:0.07692307692307693 64:0.2 82:0.125 97:0.3333333333333333 146:0.3333333333333333 147:0.5 171:0.5 228:0.5 238:0.1111111111111111 266:0.5 275:1.0 561:0.3333333333333333 573:1.0 717:0.3333333333333333 857:1.0 1258:1.0 2197:0.5 2305:1.0 5198:1.0 6042:1.0 6577:1.0 6672:1.0 7445:1.0 8 6:0.08695652173913043 15:0.0625 24:1.0 34:0.1111111111111111 82:0.125 97:0.6666666666666666 106:0.5 128:0.14285714285714285 169:1.0 175:1.0 270:1.0 272:0.5 367:0.5 427:1.0 795:1.0 1040:1.0 1241:0.5 1345:1.0 1668:1.0 1917:1.0 2175:0.5 2266:1.0 2591:0.3333333333333333 2955:1.0 3780:1.0 4930:1.0 5233:1.0 5338:1.0 6681:1.0 6694:1.0 6695:1.0 8 5:1.0 6:0.043478260869565216 15:0.0625 17:0.3333333333333333 37:0.25 42:0.4 139:1.0 146:0.3333333333333333 150:0.017543859649122806 222:1.0 226:0.3333333333333333 511:0.3333333333333333 892:1.0 2325:1.0 4155:0.5 4377:1.0 5128:1.0 5129:1.0 5953:1.0 6241:1.0 6560:1.0 8 34:0.2222222222222222 42:0.2 51:0.25 98:0.5 108:0.25 128:0.14285714285714285 147:0.5 150:0.017543859649122806 169:1.0 191:0.14285714285714285 261:0.05555555555555555 327:0.16666666666666666 373:0.125 1280:2.0 1389:1.0 1719:1.0 3002:1.0 5835:1.0 6111:1.0 7266:1.0 8 5:1.0 23:0.07692307692307693 37:0.25 94:1.0 128:0.14285714285714285 146:0.3333333333333333 150:0.017543859649122806 169:1.0 275:1.0 373:0.125 563:1.0 952:1.0 1446:1.0 1846:1.0 1910:1.0 2384:0.5 2429:0.5 3203:1.0 4835:1.0 5196:0.16666666666666666 5432:1.0 5831:1.0 7445:1.0 7473:1.0 8 1:0.09090909090909091 5:1.0 6:0.043478260869565216 15:0.0625 44:1.0 82:0.125 427:1.0 737:0.3333333333333333 1177:1.0 1522:1.0 1621:1.0 1751:1.0 1961:1.0 2216:1.0 2254:1.0 3705:1.0 3715:1.0 6797:1.0 8 5:1.0 17:0.3333333333333333 23:0.23076923076923078 56:0.25 97:0.3333333333333333 98:0.5 128:0.14285714285714285 150:0.017543859649122806 189:1.0 201:1.0 318:1.0 367:0.5 488:0.5 494:1.0 798:1.0 1757:1.0 2441:1.0 2683:1.0 4207:1.0 5377:0.5 6977:1.0 7147:1.0 7662:1.0 8 5:1.0 6:0.043478260869565216 17:0.3333333333333333 42:0.2 63:1.0 82:0.125 108:0.25 147:0.5 150:0.017543859649122806 191:0.14285714285714285 219:0.3333333333333333 327:0.16666666666666666 517:0.5 613:1.0 671:1.0 892:1.0 992:1.0 1109:1.0 1433:1.0 1466:1.0 2187:1.0 2927:1.0 3133:1.0 4987:1.0 5284:1.0 5285:1.0 5389:0.3333333333333333 6516:1.0 8 5:1.0 6:0.17391304347826086 17:0.3333333333333333 73:1.0 97:0.3333333333333333 150:0.017543859649122806 165:0.0625 215:0.08333333333333333 438:0.25 473:0.5 532:1.0 1280:1.0 1345:1.0 1432:1.0 1586:1.0 1661:2.0 5625:1.0 6393:1.0 8 6:0.043478260869565216 25:0.5 34:0.1111111111111111 42:0.2 64:0.2 82:0.25 94:1.0 95:2.0 97:0.3333333333333333 143:0.3333333333333333 150:0.05263157894736842 165:0.0625 206:1.0 254:0.5 327:0.16666666666666666 359:0.5 367:0.5 1281:1.0 1896:1.0 3398:1.0 3500:1.0 5787:0.5 8214:1.0 8 5:2.0 15:0.0625 17:0.3333333333333333 23:0.07692307692307693 51:0.25 97:0.6666666666666666 147:0.5 150:0.017543859649122806 165:0.0625 169:1.0 185:0.3333333333333333 191:0.14285714285714285 561:0.3333333333333333 750:1.0 768:0.5 988:0.5 1058:1.0 1123:1.0 1161:1.0 3175:1.0 3581:1.0 5213:1.0 5257:1.0 5350:1.0 8 98:0.5 138:0.1111111111111111 511:0.3333333333333333 4333:1.0 8 1:0.09090909090909091 6:0.043478260869565216 56:0.5 135:0.25 169:1.0 191:0.14285714285714285 275:1.0 488:0.5 791:0.5 1275:1.0 2926:1.0 3780:1.0 4480:1.0 5185:1.0 5211:1.0 5539:1.0 6847:1.0 7182:1.0 8 6:0.13043478260869565 23:0.07692307692307693 37:0.25 56:0.5 73:1.0 82:0.25 97:0.3333333333333333 145:1.0 155:0.08333333333333333 201:1.0 233:1.0 488:0.5 583:1.0 1485:1.0 2158:1.0 2544:1.0 2685:1.0 3880:1.0 5292:1.0 6396:1.0 6498:1.0 7832:1.0 8 5:3.0 6:0.21739130434782608 25:0.5 30:0.5 34:0.1111111111111111 45:1.0 51:0.25 54:1.0 97:0.3333333333333333 147:0.5 165:0.0625 176:1.0 275:1.0 350:0.125 384:1.0 443:1.0 534:0.5 587:1.0 927:1.0 1005:1.0 1058:2.0 1448:2.0 1647:1.0 1810:1.0 1861:1.0 2676:1.0 4297:0.25 5801:1.0 6364:1.0 7256:1.0 7288:1.0 8 1:0.18181818181818182 34:0.1111111111111111 37:0.25 97:0.6666666666666666 150:0.017543859649122806 181:0.25 222:1.0 228:0.5 292:1.0 350:0.125 394:0.5 462:0.5 473:0.5 587:1.0 768:0.5 1423:1.0 2332:1.0 2437:1.0 3780:1.0 3805:2.0 5208:1.0 5415:1.0 5432:1.0 5639:2.0 5762:1.0 6091:1.0 6225:0.5 7237:1.0 8067:2.0 8 5:1.0 6:0.043478260869565216 15:0.0625 23:0.15384615384615385 42:0.4 56:0.25 64:0.2 97:1.0 108:0.25 138:0.1111111111111111 147:0.5 185:0.3333333333333333 191:0.14285714285714285 201:1.0 272:0.5 287:1.0 319:0.08333333333333333 573:1.0 791:0.5 798:1.0 816:0.5 927:1.0 1281:1.0 1637:1.0 1674:1.0 1719:1.0 1790:0.16666666666666666 2082:1.0 2680:1.0 3718:1.0 4297:0.25 5433:1.0 7182:1.0 7367:1.0 8 5:2.0 6:0.08695652173913043 15:0.0625 73:1.0 82:0.125 147:1.0 190:1.0 215:0.16666666666666666 251:0.14285714285714285 261:0.05555555555555555 384:1.0 394:0.5 528:1.0 693:1.0 735:0.3333333333333333 745:0.5 798:1.0 984:1.0 1155:0.3333333333333333 1162:0.5 1296:1.0 1637:1.0 1790:0.16666666666666666 1847:1.0 2263:0.5 2299:1.0 2584:1.0 3805:1.0 4498:1.0 5333:1.0 6076:1.0 6455:1.0 7239:1.0 7240:1.0 8 6:0.17391304347826086 34:0.1111111111111111 63:2.0 146:0.3333333333333333 147:0.5 169:1.0 185:0.3333333333333333 191:0.2857142857142857 336:0.5 487:1.0 711:1.0 1058:1.0 2759:0.5 4901:1.0 5100:1.0 5212:1.0 5494:0.2 6194:1.0 7334:1.0
de47e96cb34e36d7ff310142d3e2e4ca710bccde
449d555969bfd7befe906877abab098c6e63a0e8
/2330/CH10/EX10.6/ex10_6.sce
e1aec98fc10902163c60d2a5472c5019defcd2ce
[]
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
269
sce
ex10_6.sce
// Example 10.6 format('v',6) clc; clear; close; // given data V_CC= 30;// in V PP= V_CC;// in V R_L= 100;// in Ω // The value of P_Lmax P_Lmax= PP^2/(8*R_L);// in W disp(PP,"The value of PP in volts is : ") disp(P_Lmax,"The value of P_Lmax in W is : ")
8e415c133f01091399ca64a13269a6734a6954d9
527c41bcbfe7e4743e0e8897b058eaaf206558c7
/Positive_Negative_test/Netezza-Base-StatisticalFunctions/FLShuffleCorrelWinStr-NZ-01.tst
a50ea826a8153f8817139ab93be5d40b5530375d
[]
no_license
kamleshm/intern_fuzzy
c2dd079bf08bede6bca79af898036d7a538ab4e2
aaef3c9dc9edf3759ef0b981597746d411d05d34
refs/heads/master
2021-01-23T06:25:46.162332
2017-07-12T07:12:25
2017-07-12T07:12:25
93,021,923
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,014
tst
FLShuffleCorrelWinStr-NZ-01.tst
-- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Teradata -- -- Copyright (c): 2014 Fuzzy Logix, LLC -- -- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC. -- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC. -- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade -- secret or copyright law. Dissemination of this information or reproduction of this material is -- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC. -- Functional Test Specifications: -- -- Test Category: Basic Statistics -- -- Test Unit Number: FLShuffleCorrelWinStr-Netezza-01 -- -- Name(s): FLShuffleCorrelWinStr -- -- Description: Aggregate function which calculates the mode of a data series -- -- Applications: -- -- Parameters: See Documentation -- -- Last Updated: 04-21-2017 -- -- Author: <Diptesh.Nath@fuzzylogix.com> -- -- BEGIN: TEST SCRIPT -- .run file=../PulsarLogOn.sql -- .set width 2500 -- SELECT COUNT(*) AS CNT, -- CASE WHEN CNT = 0 THEN ' Please Load Test Data!!! ' ELSE ' Test Data Loaded ' END AS TestOutcome -- FROM fzzlSerial a; -- BEGIN: POSITIVE TEST(s) ---- Positive Test 1: Find ShuffleCorrelStr --- Returns expected result SELECT p.* FROM ( SELECT a.TickerSymbol, FLShuffleCorrelWinStr(a.ClosePrice, a.Volume, 100) OVER(PARTITION BY a.TickerSymbol) AS ShuffleCorrelStr FROM finstockprice a) AS p WHERE p.ShuffleCorrelStr IS NOT NULL ORDER BY 1 LIMIT 20; ---- Positive Test 2: Find ShuffleCorrelStrWin --- Return expected result SELECT p.TickerSymbol, q.SerialVal, SUBSTR(p.ShuffleCorrel, (q.SerialVal -1) * 21 + 1, 20)::DOUBLE AS Correl FROM( SELECT a.TickerSymbol, FLShuffleCorrelWinStr(a.ClosePrice, a.Volume, 100) OVER(PARTITION BY a.TickerSymbol) AS ShuffleCorrel FROM finstockprice a ) AS p, fzzlSerial q WHERE q.SerialVal <= 100 AND p.ShuffleCorrel IS NOT NULL ORDER BY 1,2 LIMIT 20; -- BEGIN: NEGATIVE TEST(s) ---- Negative Test 1: Less Argument --- Returns error SELECT p.* FROM ( SELECT a.TickerSymbol, FLShuffleCorrelWinStr(a.ClosePrice,100) OVER(PARTITION BY a.TickerSymbol) AS ShuffleCorrelStr FROM finstockprice a) AS p WHERE p.ShuffleCorrelStr IS NOT NULL ORDER BY 1 LIMIT 20; ---- Negative Test 2: Less argument to find ShuffleCorrelWin --- Return expected result SELECT p.TickerSymbol, q.SerialVal, SUBSTR(p.ShuffleCorrel, (q.SerialVal -1) * 21 + 1, 20)::DOUBLE AS Correl FROM( SELECT a.TickerSymbol, FLShuffleCorrelWinStr(a.ClosePrice, 100) OVER(PARTITION BY a.TickerSymbol) AS ShuffleCorrel FROM finstockprice a ) AS p, fzzlSerial q WHERE q.SerialVal <= 100 AND p.ShuffleCorrel IS NOT NULL ORDER BY 1,2 LIMIT 20; -- END: NEGATIVE TEST(s) -- END: TEST SCRIPT
4237b961c09ced8076c13b6ca2ae153a1feb6008
449d555969bfd7befe906877abab098c6e63a0e8
/587/CH13/EX13.10/example13_10.sce
755f9330708d435be28904f4e9bac355392ac8f5
[]
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,829
sce
example13_10.sce
clear; clc; //Example13.10[Heat Transfer through a Tubular Solar Collector] k=0.02588;//[W/m.degree Celcius] Pr1=0.7282,Pr2=0.7255;//Prandtl no nu1=1.608*(10^(-5)),nu2=1.702*10^(-5);//[m^2/s] T1=20,T2=40;//[degree Celcius] Tavg=((T1+T2)/2)+273;//[K] Do=0.1,L=1;//Dimensions of glass tube[m] Di=0.05;//Inner diameter of tube[m] Q_glass=30;//Rate of heat transfer from the outer surface of the glass cover[W] g=9.81;//[m^2/s] eo=0.9,ei=0.95;//Emissivity //Solution:- Ao=%pi*Do*L;//Heat transfer surface area of the glass cover[m^2] disp(Ao,Tavg) Ra_Do=g*Tavg*(T2-T1)*(Do^3)*Pr1/(nu1); disp(Ra_Do,"The Rayleigh number is") Nu=((0.6+((0.387*(Ra_Do^(1/6)))/((1+((0.559/Pr1)^(9/16)))^(8/27))))^2); disp(Nu,"The nusselt number is") ho=k*Nu/Do;//[W/m^2.degree Celcius] Qo_conv=ho*Ao*(T2-T1);//[W] Qo_rad=eo*5.67*10^(-8)*Ao*(((T2+273)^4)-((T1+273)^4));//[W] Qo_total=Qo_conv+Qo_rad;//[W] disp("W",Qo_total,"The total rate of heat loss from the glass cover %.2f") Lc=(Do-Di)/2;//The characteristic length Ai=%pi*Di*L;//[m^2] //Assuming T_tube=54,T_cover=26;//Temperature of tube and glass cover[degree Celcius] T_avg=((T_tube+T_cover)/2)+273;//[K] Ra_L=g*T_avg*(T_tube-T_cover)*(Lc^3)*Pr2/(nu2); disp(Ra_L,"The Rayleigh number in this case is") F_cyl=((log(Do/Di))^4)/((Lc^3)*(((Di^(-3/5))+(Do^(-3/5)))^5)); k_eff=0.386*k*((Pr2/(0.861+Pr2))^(1/4))*((F_cyl*Ra_L)^(1/4)); disp("W/m.degree Celcius",k_eff,"The effective thermal conductivity is") QL_conv=2*%pi*k_eff*(T_tube-T_cover)/(log(Do/Di)); disp("W",QL_conv,"The rate of heat transfer between the cylinders by convection is") QL_rad=((5.67*10^(-8))*Ai*(((T_tube+273)^4)-((T_cover+273)^4)))/((1/ei)+(((1-eo)/eo)*(Di/Do))); disp("W",QL_rad,"The radiation rate of heat transfer is") QL_total=QL_conv+QL_rad;//[W] disp("W",QL_total,"The total rate of heat loss from the glass cover is")
bc6123efe24ed3bb4d4522608a07546ae16baa05
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH22/EX22.13/Ex22_13.sce
711db9fe1ebf7236ac2f35b40b3b570d9c29134d
[]
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
153
sce
Ex22_13.sce
clear //Given l=6000*10**-8 D=254.0 //Calculation a=(1.22*l)/D //Result printf("\n Limt of resolution of a telescope is %0.1f *10**-7 Radian",a*10**7)
e09b80bc7278b14cfcb5e238542322c72b9d2f7f
a76fc4b155b155bb59a14a82b5939a30a9f74eca
/ProjetTomEval/tomeval/carat8.tst
9374bf5b045b634380fb0f3ad9b480a92118dcbc
[]
no_license
isliulin/JFC-Tools
aade33337153d7cc1b5cfcd33744d89fe2d56b79
98b715b78ae5c01472ef595b1faa5531f356e794
refs/heads/master
2023-06-01T12:10:51.383944
2021-06-17T14:41:07
2021-06-17T14:41:07
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
712
tst
carat8.tst
Plan Carat 8 16,Ensemble 15-24 ans 101 -1 1 1 0 1,B198,101 f:\source\SFR01 7070000 1 1 1,1410,1,1,0,1.9, 02/02/98,1 1,2140,1,1,0,5.5, 02/02/98,1 2,0810,1,1,0,0.5, 02/02/98,1 3,2057,1,1,0,3.3, 02/02/98,1 16,1830,1,1,0,1.6, 02/02/98,1 2,0930,2,1,0,0.4, 03/02/98,1 16,1340,2,1,0,3.5, 03/02/98,1 16,2005,2,1,0,5.5, 03/02/98,1 1,1410,4,1,0,4.8, 04/02/98,1 2,1255,4,1,0,2.4, 04/02/98,1 2,1901,4,1,0,4.5, 04/02/98,1 2,2045,4,1,0,6.1, 04/02/98,1 1,1500,8,1,0,1.6, 05/02/98,1 1,2030,8,1,0,6.7, 05/02/98,1 2,1901,8,1,0,3.6, 05/02/98,1 3,2000,8,1,0,2.4, 05/02/98,1 2,1901,16,1,0,4.9, 06/02/98,1 16,1410,16,1,0,1.6, 06/02/98,1 3,2150,32,1,0,0.3, 07/02/98,1 1,1540,64,1,0,6.0, 08/02/98,1 3,2055,64,1,0,1.1, 08/02/98,1 EOJ
3d7b60d5f9c1653bdc1bbdd55ba24bbd2c006cc3
f98e6eb45cba97e51f3e190748f75d277fc4c38d
/Lab/Lab4/Lab4.sce
cd8cb6c2d0ae7208350769bc267c17974ffc1693
[]
no_license
sctpimming/SC422401
68359adab92095e4c60121ff17ac43efc9c46fb4
5c43c58c9bf0e923b640c115b4ef618ad72d15a6
refs/heads/master
2020-11-25T18:37:53.377582
2020-02-26T07:56:39
2020-02-26T07:56:39
228,796,306
0
0
null
null
null
null
UTF-8
Scilab
false
false
942
sce
Lab4.sce
clear function [grade] = get_grade(x) if(x > = 76) then grade = "H" elseif (x >= 60) then grade = "S" else grade = "U" end endfunction printf("-----------------------------------------------------\n") printf("Score\t\tGrade\n") printf("-----------------------------------------------------\n") for x = [74 62 87 51 38 57 77 49] grade = get_grade(x) printf("%d\t\t%s\n", x, grade) if(x < 50) then break end end printf("-----------------------------------------------------\n\n") printf("-----------------------------------------------------\n") printf("Score\t\tGrade\n") printf("-----------------------------------------------------\n") x = 86 while x >= 50 if(x >= 60 && x <= 70) then x = x-2 continue end grade = get_grade(x) printf("%d\t\t%s\n", x, grade) x = x-2 end printf("-----------------------------------------------------\n")
625a28d174ae6578e7099eac7d52519d745aa967
417f69e36190edf7e19a030d2bb6aa4f15bb390c
/SMTTests/tests/err_defineSort3.tst
25829102347d1871e63bbf3244bcab7086bbcad1
[]
no_license
IETS3/jSMTLIB
aeaa7ad19be88117c7454d807a944e8581184a66
c724ac63056101bfeeb39cc3f366c8719aa23f7b
refs/heads/master
2020-12-24T12:41:17.664907
2019-01-04T10:47:43
2019-01-04T10:47:43
76,446,229
1
0
null
2016-12-14T09:46:41
2016-12-14T09:46:41
null
UTF-8
Scilab
false
false
85
tst
err_defineSort3.tst
; define-sort with duplicate parameters (set-logic QF_UF) (define-sort A (X X) Bool)
76c3450928f17b852913c97c8ffea3d98c3a2ce2
449d555969bfd7befe906877abab098c6e63a0e8
/1586/CH7/EX7.9/EXP7_9.sce
7b64a20f418cdb8eff8ba82ae722901a2906a162
[]
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
478
sce
EXP7_9.sce
clc;funcprot(0);//EXAMPLE 7.9 // Initialisation of Variables n=7;.............//The total number of specimens F=n+1;...........//The probability of failure of ceramic sigma1=52;........//the maximum allowed stress level on ceramic at one point in MP. sigma2=23.5;.......//the maximum allowed stress level on ceramic at another point in MP. //CALCULATIONS m=(Ln1-(Ln2))/(log(sigma1)-log(sigma2));.......//Weibull modulus of ceramic disp(m,"Weibull modulus of ceramic:")
7c0210e2880f19b57c0e7786b323026fb65f5044
53bdf5ec3d505c23a6dbff1555c838c03e7ce670
/Assignment 2/q2.sce
ac0196ee90e31e9147bd20734bd80c29779e1c3d
[]
no_license
dishvyas/AI
6e7fb662a04b99d5fca4380f97ac94eb5b18debe
a0903084fe210faee4b571b4cade5e5d410ad504
refs/heads/master
2020-05-22T00:50:06.362841
2019-05-12T20:29:20
2019-05-12T20:29:20
186,180,759
0
1
null
null
null
null
UTF-8
Scilab
false
false
473
sce
q2.sce
function k=Map_Matrix(A) k=zeros(A); N=unique(A); disp("The Total Unique are : ") disp(length(N)) for i =1:1:length(N) indexes = find(A==N(i)); for j = 1:1:length(indexes) k(indexes(j))=i; end end endfunction A=imread('D:\example.png'); //disp("The image contents of the image are as follows : ") disp(A) Ans=Map_Matrix(A); //disp("The Equivalent content of the image are as follows : ") disp(Ans); figure(1); imshow(int8(Ans)); figure(2) imshow(A)
5c636dbbc9e2749ed762f3fdbe1439657d082a46
449d555969bfd7befe906877abab098c6e63a0e8
/2135/CH1/EX1.22/Exa_1_22.sce
fe3b78b6b521fe77c93037331994c3f0ca747a0c
[]
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
Exa_1_22.sce
//Exa 1.22 clc; clear; close; format('v',6); //Given Data : Rdegree=8314.3;//Universal Gas Constant M=32;//Molecular weight of gas p1=3*10^6;//N/m^2 V1=250*10^-3;//m^3 T1=20+273;//K p2=1.8*10^6;//N/m^2 V2=V1;//m^3 T2=16+273;//K R=Rdegree/M;//Nm/KgK m1=p1*V1/R/T1;//Kg m2=p2*V2/R/T2;//Kg mass_used=m1-m2;//Kg disp(mass_used,"Mass of oxygen used in Kg : ");
e0ac3729b5987b6a0e742d118e1fa0e0a5fd1797
449d555969bfd7befe906877abab098c6e63a0e8
/1223/CH11/EX11.3/Ex11_3.sce
c1738101004b5d342058a8800e82ca5e4b309719
[]
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
248
sce
Ex11_3.sce
clear; clc; //Example 11.3 V1=10; V2=-10; Iq=0.8*10^-3; Rc=12000; Ro=25000; b=100; Vt=0.026; Ad=Iq*Rc/(4*Vt); printf('\ndifferential gain=%.3f\n',Ad) Acm=-(Iq*Rc/(2*Vt))/(1+(1+b)*Iq*Ro/(Vt*b)); printf('\ncommon mode gain=%.3f\n',Acm)
e2ec1b496d7f388f897f0f379edfb7b2d910821e
449d555969bfd7befe906877abab098c6e63a0e8
/851/CH6/EX6.2/Example6_2.sce
b8d13946d7d4e2a0d14bfe74010fd8eb78572f0f
[]
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,204
sce
Example6_2.sce
//clear// //Caption:Duobinary Encoding //Example6.2: Precoded Duobinary coder and decoder //Page 256 clc; b = [0,0,1,0,1,1,0];//input binary sequence:precoder input a(1) = bitxor(1,b(1)); if(a(1)==1) a_volts(1) = 1; end for k =2:length(b) a(k) = bitxor(a(k-1),b(k)); if(a(k)==1) a_volts(k)=1; else a_volts(k)=-1; end end a = a'; a_volts = a_volts'; disp(a,'Precoder output in binary form:') disp(a_volts,'Precoder output in volts:') //Duobinary coder output in volts c(1) = 1+ a_volts(1); for k =2:length(a) c(k) = a_volts(k-1)+a_volts(k); end c = c'; disp(c,'Duobinary coder output in volts:') //Duobinary decoder output by applying decision rule for k =1:length(c) if(abs(c(k))>1) b_r(k) = 0; else b_r(k) = 1; end end b_r = b_r'; disp(b_r,'Recovered original sequence at detector oupupt:') //Result //Precoder output in binary form: // // 1. 1. 0. 0. 1. 0. 0. // // Precoder output in volts: // // 1. 1. - 1. - 1. 1. - 1. - 1. // // Duobinary coder output in volts: // // 2. 2. 0. - 2. 0. 0. - 2. // // Recovered original sequence at detector oupupt: // // 0. 0. 1. 0. 1. 1. 0.
d44f2300fdcf43544ed09f93ddba026d9c0e7d16
449d555969bfd7befe906877abab098c6e63a0e8
/291/CH2/EX2.3a/eg2_3a.sce
636998c8a85b87ec9d19afdfbb6c96c35a66fa7a
[]
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
141
sce
eg2_3a.sce
scores=[284, 280, 277, 282, 279, 285, 281, 283, 278, 277]; new_scores = scores - 280; final_mean = mean(new_scores)+ 280; disp(final_mean)
f8b22d38c853ecf9ffba0edbe48054a8be4eb70c
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH7/EX7.15/Ex7_15.sce
0381b48af9d560bb82a179b15eff243dcf8c7520
[]
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
Ex7_15.sce
clear //Given m=900 w=100.0 c=1 a=80 b=4.2 V=210 //V x=12 y=60 //Calculation Hout=(m+w)*c*a Hin=(V*x*y)/b Hin1=90/w*Hin I=Hout/Hin1 //Result printf("\n Strength of the current is %0.3f A",I)
dd7aecf84114ac46ebddcf6846ecfffadec0cee7
449d555969bfd7befe906877abab098c6e63a0e8
/3537/CH2/EX2.17/Ex2_17.sce
051a69b8002a098fc494bbb1bd4236b1a3886ea0
[]
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
260
sce
Ex2_17.sce
//Example 2_17 clc(); clear; //To find the slit width theta=15 //units in degrees lemda=6500 //units in angstrom lemda=6500*10^-8 n=1 a=(n*lemda)/sin(theta*%pi/180) printf("slit width of white light is %f",a)
f652956ca910bec5f0012d2f7f3f06dcd7b247ae
449d555969bfd7befe906877abab098c6e63a0e8
/1862/CH6/EX6.7/C6P7.sce
11a6a24d42e9477d34000443fccdebc6b5d355ed
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
833
sce
C6P7.sce
clc //to find final speed of larger craft // GIVEN:: //refer to diagram 6-14 from page no. 127 //we consider +ve x direction as original motion of spaceship(and also that of final velocity of smaller craft) //total mass of spaceship //M = m//in kg //let us consider m = 1 M = 1//in kg //mass of smaller crafy //m1 = m/4//in kg m1 = 1/4//in kg //mass of larger craft //m2 =3* m/4//in kg m2 =3* 1/4//in kg //initial velocity of spaceship in +ve x direction vix = 8.45//in km/s //final speed of smaller craft in +ve x direction v1fx = 11.63//in km/s // SOLUTION: //applying conservation of momentum //final velocity of larger craft in +ve x direction v2fx = (((m1 + m2)*vix)-(m1*v1fx))/m2//in m/s printf ("\n\n Final velocity of larger craft in +ve x direction v2fx = \n\n %.2f km/s",v2fx);
f6bc343dca549e45d1e48cd647f48c514627c6f6
449d555969bfd7befe906877abab098c6e63a0e8
/1928/CH1/EX1.3.6/ex1_3_6.sce
a003c8508ce2d9f134b30e1277c6b32385ebe350
[]
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
459
sce
ex1_3_6.sce
//Chapter-1,Example1_3_6,pg 1-18 A=132.91 //atomic weight of chromium N=6.023*10^26 //Avogadro's number p=1900 //Density a=6.14*10^-10 //lattice constant //step 1 : type of structure n=(p*N*a^3)/A printf("n =") disp(round(n)) printf("BCC structure") //step 2: no of atoms/m^3 x=n/a^3 printf(" no of atoms/m^3=") disp(x)
8be7a45dc7605c4e4f3fd9b838979d27639127c4
1c0a381442e787465dcbfc8eb1ae5192c322ab86
/scilab/examples/adc.sci
415ad5404323bbc94df3e013d1342fb9e5dcf69b
[ "MIT" ]
permissive
sfuxy/stDAQ
1ea87f0dd2ee49812e52208b6bb26cba78b90b1a
bdef5de7c806612feae0b2669b9abfb9f90b7955
refs/heads/main
2023-08-11T13:54:01.531127
2021-09-01T14:59:14
2021-09-01T14:59:14
382,806,217
1
1
null
null
null
null
UTF-8
Scilab
false
false
539
sci
adc.sci
// Example for stdaq_get_adc() as from the Reference Manual in docs/refman stdaq_open("COM0"); chseq = [0]; // [ch0] clkdiv = 0; // 1 MHz stdaq_set_adc(chseq,clkdiv); stdaq_set_dac(0); stdaq_enable_dac(); tapsperperiod = 20; periods = 10; out = []; value = floor(2047.5*(1 + sin(2*%pi*(1:tapsperperiod*periods)/tapsperperiod))); for i=1:(tapsperperiod*periods) stdaq_set_dac(value(i)); sleep(1); samples = stdaq_get_adc(chseq,1); out = [out, samples]; end figure; plot(1:length(out),out); stdaq_close();
00d5838669065f23752b65e6ee6e0603c55b3cdf
449d555969bfd7befe906877abab098c6e63a0e8
/181/CH3/EX3.16/example3_16.sce
7c52f81f053e2edc635316297221c2deb4d21022
[]
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
524
sce
example3_16.sce
// Estimate value of capacitance needed // Basic Electronics // By Debashis De // First Edition, 2010 // Dorling Kindersley Pvt. Ltd. India // Example 3-16 in page 161 clear; clc; close; // Given data Vrms=230; // RMS voltage in V f=50; // Frequency in Hz gamma_hwr=0.003; // Ripple factor assumed I=0.5; // Load current in A // Calculation Vm=sqrt(2)*Vrms; Vdc=(Vm/%pi); Rl=Vdc/I; C=1/(2*sqrt(3)*f*gamma_hwr*Rl); printf("Capacitance needed = %0.2e F",C); // Result // Capacitance needed = 9.29 mF
f6b12429231cdcd7404b884107427571e586e035
449d555969bfd7befe906877abab098c6e63a0e8
/2045/CH11/EX11.9/Ex11_9.sce
af2e4c5cd9f4a8d748c9c5a25a3e97f1a1c68973
[]
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
489
sce
Ex11_9.sce
//pagenumber 520 example 9 clear induct=0.33;//henry c=0.065*10^-12;//farad c1=1*10^-12;//farad r=5.5*10^3;//ohm //(1) series resonant frequency freque=(1/(2*(3.14)))*sqrt(1/((induct)*c)); disp("frequency = "+string((freque))+"hertz"); //(2)exceed of frequency ratio1=sqrt((1+(c/c1))) disp("ratio parallel series = "+string((ratio1)));//correction in the book //(3) quality factor qualit=(1/r)*sqrt(induct/c); disp("quality factor = "+string((qualit)));
a8f83aaf0e1e2d4e485f3dbb443b2f94e2195fc3
449d555969bfd7befe906877abab098c6e63a0e8
/2825/CH12/EX12.3/Ex12_3.sce
7fbe3a486371dc8fdb270c5a6a81b4bb6061d7d3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
431
sce
Ex12_3.sce
//Ex12_3 Pg-588 clc L=0.33 //inductance in henry C=0.065*10^(-12) //capacitance in farad Cm=10^(-12) //capacitance in farad R=0.55*10^(3) //resistor R in ohm disp("Series resonant frequency, fs = 1/2*pi*sqrt(L*C)") fs=1/(2*%pi*sqrt(L*C)) printf(" = %.2f MHz \n",fs*1e-6) disp("Q of the crystal = 2*pi*fs*L/R") Q=(2*%pi*fs*L)/R //quality factor (textbook answer wrong) printf(" = %.0f \n",Q)
ee0321b76f27645829aad1a6bf3aae1a6ecec6f5
3657fc1930eafc01513d51a4940a60f85cfc6522
/Bacchus/ClientApp/models/Model.tst
7d3d76a2c1cc56ea9ff084ffe2da9da9004c9f3a
[]
no_license
mchaelml/Auctiony
3abc8a0458bb198a3fa5211258bb1e7cee914210
97bf7958d233135d9f9c15fdd55d61f472ff7033
refs/heads/master
2020-04-24T04:12:25.079946
2019-02-20T15:16:31
2019-02-20T15:16:31
171,695,225
0
0
null
null
null
null
UTF-8
Scilab
false
false
104
tst
Model.tst
module App { $Classes(Bacchus.Models*)[ export class $Name { $Properties[ public $name: $Type;] }] }
38d921f6730acd4877da747142686d4e6c4acefb
449d555969bfd7befe906877abab098c6e63a0e8
/3269/CH3/EX3.12/Ex3_12.sce
f1d86caf6f6514935ff6e43eacc23c858c1031fb
[]
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
554
sce
Ex3_12.sce
// Example 3.12 clear all; clc; // Given data N = 120; // Number of fuel rods P = 100; // Reactor power in MW t = 1; // Estimation time of fuel rod after removal in days T = 365; // Time of reactor operation // Estimation Activity_total = 1.4*10^6*P*[t^(-0.2)-(t+T)^(-0.2)]; Activity_one = Activity_total/N; // For one fuel rod // Result printf('\n The activity of a fuel rod = %2.1E Ci \n',Activity_one);
52c457177084e773980ae0910cb2e003ddb6fa61
449d555969bfd7befe906877abab098c6e63a0e8
/3850/CH39/EX39.5/Ex39_5.sce
67e2193d3734127e3c894f7663897bbe223f5e5a
[]
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
364
sce
Ex39_5.sce
//To Calculate the Number of Turns in the Primary Coil //Example 39.5 clear; clc; E1=220;//Input Voltage to the Transformer in Volts E2=6;//Output Voltage by the Transformer in Volts N2=18;//Number of Turns in the Secondary Coil N1=(E1/E2)*N2;//Number of Turns in the Primary Coil printf("Number of turns in the primary coil = %.0f",N1);
da8726491b54f8ef46f1cd2b27c7f248854b026b
449d555969bfd7befe906877abab098c6e63a0e8
/51/CH3/EX3.6/3_6.sce
7fcef1d6b79407f4f3dd145b688056ab0da40e31
[]
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
770
sce
3_6.sce
clc; clear; v1=100;//mi/hr ht=10000;//ft //from standard table for static pressure at an altitude p1=1456//lb/ft^2(abs) P1=1456*0.006947;//psi d=0.001756;//slugs/ft^3 //1 mi/hr = 1.467 ft/s p2=p1+(d*(v1*1.467)^2/2);//lb/ft^3 //in terms of gage pressure p2g p2g=p2-p1;//lb/ft^2 //1lb/ft^2 = 0.006947 psi P2=p2*0.006947;//psi P2g=p2g*0.006947;//psi //pressure difference indicated by the pitot tube = pdiff pdiff=P2-P1;//psi disp("psi",P1,"Pressure at point 1 =") disp("psi",P2g,"Pressure at point 2 in terms of gage pressure=") disp("psi",pdiff,"pressure difference indicated by the pitot static tube=") v1=0:1:600; for i=0:600 prat(i+1)=p1/(p1+(d*(i*1.467)^2/2)); end plot2d(v1,prat,rect=[0,0,600,1]); xtitle("v1 vs p1/p2","v1, mph","p1/p2")
6c503979d0cf5a5c06ad66e768da8ec5d6a75032
449d555969bfd7befe906877abab098c6e63a0e8
/3886/CH2/EX2.16/Ex2_16.sce
36811d549c4ece3ed811224daa9b64470b96ed0d
[]
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
421
sce
Ex2_16.sce
//Forces in various segments of cable //Refer fig. 2.21 (a) and (b) //Apply Lami's theorem at point D T1=250*sind(180-60)/sind(60+45) //N T2=250*sind(90+45)/sind(60+45) //N //Now consider system of forces acting at B //Resolving the forces we get T3=(T2*cosd(60)+200)/cosd(30) //N T4=T3*sind(30)+T2*sind(60) //N printf("\nthe various forces are:-\nT1=%.1f N\nT2=%.1f N\nT3=%.1f N\nT4=%.1f N",T1,T2,T3,T4)
ccc44ac9ed621cf223d2d49208067477a39315b4
449d555969bfd7befe906877abab098c6e63a0e8
/1055/CH13/EX13.10/ch13_10.sce
a77a96176654fac12ef42a70df5b805b9c393b8e
[]
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
364
sce
ch13_10.sce
// To determine the short circuit capacity of each station clear clc; X=1200*100/800;// percent reactance of other generating station Xc=.5*1200/(11*11); Sc=1200*100/86.59;// short circuit MVA of the bus Xf=119.84;// equivalent fault impedence between F and neutral bus MVA=1200*100/Xf; mprintf("short circuit capacity of each station=%.0f MVA\n",MVA);
9d70941c1dba4dd07950989fc444f498ebd0c7b2
449d555969bfd7befe906877abab098c6e63a0e8
/2129/CH5/EX5.13.12/ex5_13_12.sce
505a7e3e9cb69c35b91f112e9585ae3179351f4a
[]
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
983
sce
ex5_13_12.sce
// Exa 5.13.12 clc; clear; close; // Given data V_CC = 9;// in V V_BE = 0.8;// in V V_CE = 0.2;// in V R_B = 50;// in kΩ R_C=2;// in kΩ R_E = 1;// in kΩ bita=70; // Applying KVL to input loop, V_CC= I_B*R_B +V_BE +I_E*R_E // V_CC- V_BE= (R_B+R_E)*I_B + R_E*I_C (i) // Applying KVL to output loop, V_CC= R_C*I_C +V_CE +I_C*R_E +I_B*R_E //I_B = ((V_CC- V_CE)-(R_C+R_E)*I_C)/R_E (ii) // From eq (i) and (ii) I_C= ( (V_CC- V_BE)-(R_B+R_E)* (V_CC- V_CE)/R_E)/(1-(R_B+R_E)*(R_C+R_E));// in mA I_B = ((V_CC- V_CE)-(R_C+R_E)*I_C)/R_E// in mA I_Bmin= I_C/bita;// in mA if I_B>I_Bmin then disp("Since the value of I_B ("+string(I_B)+" mA) is greater than the value of I_Bmin ("+string(I_Bmin)+" mA)") disp("So the transistor is in saturation ") end V_C= V_CC-I_C*R_C;// in V disp(V_C,"The value of collector voltage in volts is : ") bita= I_C/I_B; disp(bita,"The minimum value of bita that will change the state of the trasistor is : ")
6163468d7af2cf1ad8f1dda380cbcaae4d885cdf
449d555969bfd7befe906877abab098c6e63a0e8
/2072/CH19/EX19.8/ex19_8.sce
ff481221a0aea5c110c257ca86e7364a503184e1
[]
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
114
sce
ex19_8.sce
//Example 19.8 clc mo=4*%pi*10^-7//Tm/A d=0.1//in m x=1*10^-4//F/l I=sqrt((x*2*%pi*d)/mo) disp(I,"Current in A=")
67f85fde24ebee3f1a504611a003eb3cb962fcd9
91a882547e393d4c4946a6c2c99186b5f72122dd
/Source/XPSP1/NT/net/dhcp/server/dhcpds/test/listsrvr.tst
2f9b4bce47ba7131682b71fa74dbd08b5ef1214f
[]
no_license
IAmAnubhavSaini/cryptoAlgorithm-nt5src
94f9b46f101b983954ac6e453d0cf8d02aa76fc7
d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2
refs/heads/master
2023-09-02T10:14:14.795579
2021-11-20T13:47:06
2021-11-20T13:47:06
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
50
tst
listsrvr.tst
DsServer=VK-TEST Object=CN=DhcpRoot EnumServers=
1cb328b39fff36e40a3ebc3db17936ac0ee69fc8
449d555969bfd7befe906877abab098c6e63a0e8
/2409/CH4/EX4.1/Ex4_1.sce
672f934385d4644cc4fd0e9f17b279d700ef1589
[]
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
853
sce
Ex4_1.sce
//Variable Declaration El=50 //Elevation Angle(degrees) h0=0.6 //Earth station altitude(km) hr=3 //Rain height(km) R01=10 //Point Rain Rate(mm/hr) f=12 //frequency(GHz) ah=0.0188 bh=1.217 av=0.0168 bv=1.2 //Calculation Ls=(hr-h0)/sin(El*3.142/180) //Slant path length(km) LG=Ls*cos(El*3.142/180) //Horizontal projection(km) r01=90/(90+4*LG) //Reduction factor L=Ls*r01 //Effective path length(km) alphah=ah*R01**bh //Specific Attenuation AdBh=alphah*L //Rain Attenuation for horizontal polarization alphav=av*R01**bv //Specific Attenuation AdBv= alphav*L //Rain Attenuation for vertical polarization //Results printf("Rain Attenuation for given conditions and horizontal polarization is %.2f dB",AdBh) printf("Rain Attenuation for given conditions and vertical polarization is %.2f dB",AdBv)
79e848ee7326c4624e5edb1c83cee6a1668933ab
449d555969bfd7befe906877abab098c6e63a0e8
/2825/CH10/EX10.3/Ex10_3.sce
157c8f1068ce4899ef7768935441e9fc061beb4d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
695
sce
Ex10_3.sce
//Ex10_3 Pg-517 clc R1=10*10^(3) //resistor R1 in ohm Rf=50*10^(3) //feedback resistor in ohm Vin=10*10^(-3) //input voltage in V Ro=5000 //load resistor in ohm disp("A'' = Vo/Vi = (-1)*Rf/R1*(1+1/A*(1+Rf/R1))^-1 ") A=5000 Vo=Vin*(Rf/R1)/(1+1/A*(1+Rf/R1)) //output voltage printf("\n When gain A=%.0f",A) printf(" \n Amplified output voltage = %.1f mV \n",Vo*1e3) A=10000 Vo=Vin*(Rf/R1)/(1+1/A*(1+Rf/R1)) printf("\n When gain A=%.0f",A) printf(" \n Amplified output voltage = %.2f mV \n",Vo*1e3) A=5000 Rout=Ro/(1+A*R1/Rf) //load resistance printf(" \n Ro'' = %.3f ohm \n",Rout) A=10000 Rout=Ro/(1+A*R1/Rf) //load resistance printf(" \n Ro'' = %.3f ohm \n",Rout)
37e3be22d1b7b8dd466ad6de618cd327a1ade6a1
449d555969bfd7befe906877abab098c6e63a0e8
/3834/CH8/EX8.1.1/Ex8_1_1.sce
2708bc69fb751f5a646666e0737bfdfe45002c4f
[]
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
968
sce
Ex8_1_1.sce
//Fiber-optics communication technology, by Djafer K. Mynbaev and Lowell L. Scheiner //Example 8.1.1 //windows 8 //Scilab version-6.0.0 clc; clear ; //given //case 1 d1=65.5E-6;//diameter of the core considering 62.5+3 in m d2=59.5E-6;//diameter of the core considering 62.5-3 in m Losscore=-10*log10((d2/d1)^2);//Intrinsic loss due to diameter mismatch in dB mprintf("Intrinsic loss due to diameter mismatch = %.2fdB",Losscore); //case 2 NA1=0.290;//numerical aperture of fiber considering 0.275+0.015 NA2=0.260;//numerical aperture of fiber considering 0.275-0.015 LossNA=-10*log10((NA2/NA1)^2);//Intrinsic loss due to NA mismatch in dB mprintf("\nIntrinsic loss due to NA mismatch = %.2fdB",LossNA); //case 3 w1=9.8;//MFD considering 9.3+0.5 um w2=8.8;//MFD considering 9.3-0.5 um LossMFD=-10*log10(4/((w1/w2)+(w2/w1))^2);//Intrinsic loss due to NA mismatch in dB mprintf("\nIntrinsic loss due to MFD mismatch = %.2fdB",LossMFD);
b4c6e48118fe0035af1fdc2a84b8298879c891dd
449d555969bfd7befe906877abab098c6e63a0e8
/1919/CH8/EX8.5/Ex8_5.sce
887bd08619ba1e27442fe2303d04ecb57cc402eb
[]
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,189
sce
Ex8_5.sce
// Theory and Problems of Thermodynamics // Chapter 8 // Power and Refrigeration Cycles // Example 5 clear ;clc; //Given data P = 10 // condenser pressure in kPa P1 = 2.5 // leaving pressure of steam in MPa P2 = 3.5 // leaving pressure of steam in MPa T1 = 523.15 // entering temperature of superheated steam in K // Steam at 2.5 MPa and 523.15 K. thermal efficiency, n_T = 0.316 // Thermal efficeincy of turbine //X5 =0.7678 // from example 8.3 // Superheated steam: 3.5 MPa and 523.15 K h4 = 2829.2 // in kJ/kg s4 = 6.1749 // in kJ/kg K // Steam at 10 kPa vf = 0.001010 // in m^3/kg hf = 191.83 // in kJ/kg sf = 0.6493 // in kJ/kg K hfg = 2392.8 // in kJ/kg sfg = 7.5009 // in kJ/kg K //s4=s5 => s4 = sf+X5*sfg X5 = (s4-sf)/sfg h5 = hf + X5*hfg // in kJ/kg h2_h1 = vf*(P2*1e3-P) // h2_h1 = h2-h1 in kJ/kg h2 = hf + h2_h1 // in kJ/kg n = ((h4 - h5)-(h2_h1))/(h4-h2) // Output Results mprintf('Thermal efficiency of power plant = %4.4f' ,n);
43bbbaed64cbd2df04d4095591f77015d1b68433
449d555969bfd7befe906877abab098c6e63a0e8
/1385/CH9/EX9.1/9_1.sce
04ed30db557f5611e43a813aebba7c3bbf132131
[]
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
200
sce
9_1.sce
clc //initialisation of variables c= 0.1 //M p= 1.34 //per cent T= 25 //C //CALCULATIONS C1= c*p/100 C2= c*p/100 C3= c-C1 Ka= C1*C2/C3 //RESULTS printf (' ionization constant = %.2e ',Ka)
42268859996902e1fb947227bbb1931e3ef5634c
449d555969bfd7befe906877abab098c6e63a0e8
/1514/CH14/EX14.4/14_4.sce
66c3a0852565c58973d871dd69958aefb683c42e
[]
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
142
sce
14_4.sce
//chapter 14 //example 14.4 //page 441 clear all; clc ; //given Av=1;//voltage follower printf("\nc1=500 pF\nc2=2000 pF\nc3=1000 pF")
7af133a61a924a8edb6de605c0e30c74bc1525bf
449d555969bfd7befe906877abab098c6e63a0e8
/3683/CH16/EX16.3/Ex16_3.sce
f87b75a2e99a8bbc91559e6d226309deca4e52df
[]
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
Ex16_3.sce
Df=100//in mm bf=1500//in mm bw=300//in mm d=700//in mm Ast=4510//in sq mm fy=250//in MPa fck=15//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=round((0.87*fy*Ast-0.446*fck*(bf-bw)*Df)/0.36/fck/bw)//in mm Xc=0.531*d//Xc>Xu; hence OK a=0.43*Xu//as Df>0.43 Xu, stress in flange is not uniform yf=0.15*Xu+0.65*Df//in mm Mu=(0.36*fck*bw*Xu*(d-0.416*Xu)+0.446*fck*(bf-bw)*yf*(d-yf/2))/10^6//in kN-m mprintf("Moment of resistance of T-beam=%f kN-m",Mu)
6d1c48542b3a065b5a3520371504ef12f047bc75
449d555969bfd7befe906877abab098c6e63a0e8
/2642/CH4/EX4.10/Ex4_10.sce
66839a9731198edeaec03086aeacb63b12fd43c2
[]
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
930
sce
Ex4_10.sce
// FUNDAMENTALS OF ELECTICAL MACHINES // M.A.SALAM // NAROSA PUBLISHING HOUSE // SECOND EDITION // Chapter 4 : DIRECT CURRENT GENERATORS // Example : 4.10 clc;clear; // clears the console and command history // Given data Pw = 12 // power in kW P = 4 // number of poles Z = 500 // number of conductors V_t = 250 // generator voltage in V N = 1000 // speed in rpm P_cu = 600 // full load copper loss in W brush_drop = 2 // brush drop in V // caclulations A = 4 // for lab wound A=P I_a = Pw*10^3/V_t // armature current in A R_a = P_cu/I_a^2 // from copper loss equestion R_a in ohm E_g = V_t+I_a*R_a+brush_drop // generated voltage in V phi = E_g*60*A/(P*Z*N) // flux per pole in Wb // display the result disp("Example 4.10 solution"); printf(" \n Flux per pole \n phi = %.3f Wb \n", phi );
5c7f1252ebfe2dbba84cbec4c22def6fb42f5c98
f78a758dc17a311b355e12366d1315f7a9c2b763
/Ford/ES-XW7T-1A278-AC 2003/16.0 Immunity to Voltage Offset CI 250 0.tst
a5959243e9966d4f21b1ae4966081cac9b4a93ac
[]
no_license
CZPFOX/Standards
9dbf036f7e3e5767c23872c884ae7da83e66f81c
af34157e6e447d1a2b39136b9f3734feb663d9bb
refs/heads/master
2020-06-18T12:58:06.033918
2019-07-11T02:55:42
2019-07-11T02:55:42
196,309,147
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,850
tst
16.0 Immunity to Voltage Offset CI 250 0.tst
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <AutoTestC version="2.0.0"> <Pulse>CUSTOM WAVE</Pulse> <Title>Waveform</Title> <Organization>Ford</Organization> <Standard>ES-XW7T-1A278-AC 2003</Standard> <Item>16.0 Immunity to Voltage Offset CI 250</Item> <voltage>13.5</voltage> <count>5</count> <wave id="0"> <type>2</type> <dspin id="0">0</dspin> <dspin id="1">0.2</dspin> <dspin id="2">50</dspin> <spin id="0">0</spin> <comboindex id="0">0</comboindex> <time>1</time> <timeUnit>2</timeUnit> </wave> <wave id="1"> <type>2</type> <dspin id="0">0</dspin> <dspin id="1">0.2</dspin> <dspin id="2">60</dspin> <spin id="0">0</spin> <comboindex id="0">0</comboindex> <time>1</time> <timeUnit>2</timeUnit> </wave> <wave id="2"> <type>2</type> <dspin id="0">0</dspin> <dspin id="1">0.2</dspin> <dspin id="2">70</dspin> <spin id="0">0</spin> <comboindex id="0">0</comboindex> <time>1</time> <timeUnit>2</timeUnit> </wave> <wave id="3"> <type>2</type> <dspin id="0">0</dspin> <dspin id="1">0.2</dspin> <dspin id="2">80</dspin> <spin id="0">0</spin> <comboindex id="0">0</comboindex> <time>1</time> <timeUnit>2</timeUnit> </wave> <wave id="4"> <type>2</type> <dspin id="0">0</dspin> <dspin id="1">0.2</dspin> <dspin id="2">90</dspin> <spin id="0">0</spin> <comboindex id="0">0</comboindex> <time>1</time> <timeUnit>2</timeUnit> </wave> <wave id="5"> <type>2</type> <dspin id="0">0</dspin> <dspin id="1">0.2</dspin> <dspin id="2">100</dspin> <spin id="0">0</spin> <comboindex id="0">0</comboindex> <time>1</time> <timeUnit>2</timeUnit> </wave> <wave id="6"> <type>2</type> <dspin id="0">0</dspin> <dspin id="1">0.2</dspin> <dspin id="2">0.4</dspin> <spin id="0">0</spin> <comboindex id="0">1</comboindex> <time>1</time> <timeUnit>2</timeUnit> </wave> <wave id="7"> <type>2</type> <dspin id="0">0</dspin> <dspin id="1">0.2</dspin> <dspin id="2">0.7</dspin> <spin id="0">0</spin> <comboindex id="0">1</comboindex> <time>1</time> <timeUnit>2</timeUnit> </wave> <wave id="8"> <type>2</type> <dspin id="0">0</dspin> <dspin id="1">0.2</dspin> <dspin id="2">1</dspin> <spin id="0">0</spin> <comboindex id="0">1</comboindex> <time>1</time> <timeUnit>2</timeUnit> </wave> </AutoTestC>
5e0e319eb29d888b0226eac011bda4909633ef93
717ddeb7e700373742c617a95e25a2376565112c
/1766/CH5/EX5.24/EX5_24.sce
e0b4faa01b8e165608a714ba70d16c8521ec0626
[]
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
848
sce
EX5_24.sce
clc;funcprot(0);//Example 5.24 //Initilisation of Variables Tm=45;.....//Inlet Temperature of water in degrees celcius a=0.02;......//Length of the tube in m b=0.03;.......//width of the tube in m Tw=85;........//Temperatube of tube wall in degrees celcius //Properties of water at 55 d c rho=985.5;......//Density in kg/m^3 mu=0.517*10^-6;......//Viscocity in m^2/s Pr=3.26;........//Prandtl no K=0.654;........//Thermal conductivity in W/mK Cp=4.18;.....//Specific heat capacity in kJ/kgK Um=2;.......//Velocity of water in m/s //calculation De=(4*a*b)/(2*(a+b));..........//Equivalent diameter of duct in m Re=(Um*De)/mu;.........//Reynolds number Nu=0.023*Re^0.8*Pr^0.4;..........//Nusselt number h=(Nu*K)/De;.........//Convection heat transfer coefficient in W/m^2K disp(h,"Convection heat transfer coefficient in W/m^2K:")
43942ecdcd3fc9c8a8deeddc2594310c8b30b6cb
449d555969bfd7befe906877abab098c6e63a0e8
/659/CH4/EX4.3/exm4_3.sce
52d44fbcd06a565c756403fd86badb1628174c6c
[]
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
462
sce
exm4_3.sce
// Example 4.3 // A program that reads a character from the keyboard and then print in reverse //case ,that is,if input is in upper case,the output will be lower case and vice-versa disp("Enter an alphabet"); alphabet=scanf("%c"); //Reading character if((ascii(alphabet))>=97) then disp(convstr(alphabet,"u")); //Reverse and display else disp(convstr(alphabet,"l")); //Reverse and display end
28fa5254773f0577a12ac4ac267847de482f093f
417f69e36190edf7e19a030d2bb6aa4f15bb390c
/SMTTests/tests/ok_setLogic_QF_RDL.tst
a0400748b7c100f9c471afaf1d9c98940fdee6eb
[]
no_license
IETS3/jSMTLIB
aeaa7ad19be88117c7454d807a944e8581184a66
c724ac63056101bfeeb39cc3f366c8719aa23f7b
refs/heads/master
2020-12-24T12:41:17.664907
2019-01-04T10:47:43
2019-01-04T10:47:43
76,446,229
1
0
null
2016-12-14T09:46:41
2016-12-14T09:46:41
null
UTF-8
Scilab
false
false
46
tst
ok_setLogic_QF_RDL.tst
; testing loading QF_RDL (set-logic QF_RDL )
a6c9d82de1d8e21d718a603dbc9ffebb918cf822
449d555969bfd7befe906877abab098c6e63a0e8
/1991/CH8/EX8.11/11.sce
8cd57ca86c89125c2d9d12df5134912baa383dff
[]
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
210
sce
11.sce
clc clear //input ep=150*10^3 //electric energy to primary e=0.69 //efficieny t=70 //time //calculation es=e*ep//transformer equation ps=es/t//power //output printf("the power output is %3.3e W",ps)
5dbef9faff74d6e954ad2e5cfc73f579b5b805f7
60fd7045bbb867eac717f3a5d1970bff2f95f267
/examples/wn3.tst
32da6c0afccd26b2344448baa7d9dc5ad67e6a03
[]
no_license
ltzone/hipsleek
a045275a223a88b509287855fa4095ca4f6c4326
596f7fa7f67444c8309da2ca86ba4c47d376618c
refs/heads/master
2023-06-26T16:38:20.062207
2020-12-11T15:48:52
2020-12-11T15:48:52
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
636
tst
wn3.tst
data node { int val; node next; }. pred ll<n,u,sm,lg> == self=null & n=0 & sm<=lg & u=1 or self::node<v, null> & n=1 & sm<=v<=lg & u=2 //or self::node<v, null> & n=1 & sm<=v<=lg & u=1 or self::node<v, q> * q::ll<n-1,_,sm,lg> & q!=null & sm<=v<=lg & u=2 inv n>=0 & sm<=lg. pred ll2<n,u,sm,lg> == self=null & n=0 & u=1 & sm<=lg or self::node<v, q> * q::ll2<n-1,_,sm,lg> & u=3 & sm<=v<=lg inv n>=0 & sm<=lg. checkentail x::node<w,q> * q::ll<a,b,sm,lg> & sm<=w<=lg & q!=null //& q=null // |- (exists d: x::ll<c,d,s2,l2>). |- x::ll<c,d,s2,l2>. // |- x::ll<n,u,sm,lg>. print residue.
2a57d2dcabb009904c5802c5a7d7afc1feeeaae2
449d555969bfd7befe906877abab098c6e63a0e8
/1658/CH8/EX8.3/Ex8_3.sce
8066cd27624b18ee6789f094fee72911f00b4b89
[]
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
127
sce
Ex8_3.sce
clc; //e.g8.3 a=0.967; Ie=10*10**-3; Ic=Ie*a;//a=Ic/Ie disp('mA',Ic*10**3,"Ic="); Ib=Ie-Ic; disp('mA',Ib*10**3,"Ib=");
8bd41c796879f0bd6e067bd79974730003510bc7
c7ca7c2793552f5f73495c73ad14a36f10d92e80
/TI/TP3/tp3.sce
12bab62769d48e6b67027d57290aeeb27cd916cf
[]
no_license
UchihaMadamiaow/Lille1-Master-Info
f402fb69497b1dd100236ed634590deae983bbcc
353b05ede296d729bc66b0cec8fa146a3552448b
refs/heads/master
2021-09-07T19:14:09.730841
2018-02-27T19:13:57
2018-02-27T19:13:57
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,980
sce
tp3.sce
clear(); stacksize(100000000); function im = quantification(img,n) quantificateur = 2^n im = img ./(256/quantificateur) im = im.*(256/quantificateur) endfunction function im = surEch(img,n) img = im2double(img); colonne = size(img,1)*n ligne = size(img,2)*n im = zeros(colonne,ligne) for i = 1 : colonne/n for j = 1 : ligne/n for n1 = 1 : n for n2 = 1 : n x = i*n + n1-n y = j*n + n2-n im(x,y) = img(i,j); end end end end endfunction function im = sousEch(img,n) img = im2double(img); colonne = size(img,1)/n ligne = size(img,2)/n im = zeros(colonne,ligne) for i = 1 : colonne for j = 1 : ligne for n1 = 1 : n for n2 = 1 : n x = i*n + n1-n y = j*n + n2-n im(i,j) = im(i,j) + img(x,y); end end im(i,j) = im(i,j) / (n*n); end end endfunction image = imread('ti-semaine-3-lena.png'); //imshow(image); //////////// gris //grisRouge = image(:,:,1); //grisVert = image(:,:,2); //grisBleu = image(:,:,3); //imshow([grisRouge, grisVert, grisBleu]); //////////// couleurs //imageRouge = image; //imageRouge(:,:,2) = image(:,:,1)*0; //imageRouge(:,:,3) = image(:,:,1)*0; //imageBleu = image; //imageBleu(:,:,1) = image(:,:,2)*0; //imageBleu(:,:,3) = image(:,:,2)*0; //imageVert = image; //imageVert(:,:,1) = image(:,:,3)*0; //imageVert(:,:,2) = image(:,:,3)*0; //imshow(imageRouge + imageVert + imageBleu); //////////// sous echantillonage imR = sousEch(image(:,:,1),2); imR = quantification(imR, 5); imV = im2double(image(:,:,2)); imB = sousEch(image(:,:,3),4); imB = quantification(imB, 3); im = zeros(size(image,1),size(image,2),size(image,3)); im (:,:,1) = surEch(imR,2); im (:,:,2) = imV; im (:,:,3) = surEch(imB,4); imshow(im);
f57af64ccd8e9a5d8d11f9697255bcd1b3a82131
449d555969bfd7befe906877abab098c6e63a0e8
/2141/CH8/EX8.5/Ex8_5.sce
432fffce5e31d66e9d39028d22f298c1d28b2774
[]
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
581
sce
Ex8_5.sce
clc //initialisation of variables T=2000 //F T1=1000//F T2=300//F T3=500//F s1=0.4369 s2=1.7085 p1=100 //lbf/in^2 T0=537 //F M=1009.5 h=0.26 Me=M/(h*(T-T1)) h1=269.6//lbf/in^2 h2=1279.1//lbf/in^2 p=2460/1460//lbf/in^2 //CALCULATIONS We=(h1-h2)-T0*(0.4369-1.7085)//Btu/lbm Wre=Me*(h*(T-T1)-T0*(h*log(p)))//Btu/lbm H2O Wrev=Wre+We//Btu/lbm H20 W=Wrev //Btu/lbm H2O S=(s2-s1)//Btu/lbm H2O-R S4=-Me*h*log(p)//Btu/lbm H2O-R I=T0*S+T0*S4//Btu/lbm H2O //RESULTS printf('The work and the irreversibility for this process per pound of water =% fBtu/lbm H2O ',I)
bbc2cd903276d72464d98527057a4660e1b34bf7
449d555969bfd7befe906877abab098c6e63a0e8
/2513/CH7/EX7.8/7_8.sce
7154aedb1f43ad3390e8726d57e8dae81dd61907
[]
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
7_8.sce
clc //initialisation of variables d=163*48.5//cfs a=48.5//ft q=100//cfs Q=45.5*a//cfs c=0.57//cfs v=1.8//cfs p=0.45//ft //CALCULATIONS P=d/(q*sqrt(a))//percent C=Q/(a^0.8*(1+2*a^-0.3))//cfs d1=2.6//cfs T=(1-p*c+v*c*2)//cfs //RESULTS printf('the meyers rating =% f percent',P) printf('the magnitude of the maximum peak flood =% f cfs',T)
d423bee5a3e24075c576b360331c784b24223187
449d555969bfd7befe906877abab098c6e63a0e8
/680/CH5/EX5.09/5_09.sce
49e7ee86ee79f691d81c67b67248164b9c151360
[]
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,046
sce
5_09.sce
//Problem 5.09: //initializing the variables: nCO2 = 7.5 nCO = 1.3 nO2 = 8.1 nN2 = 83.1 //calculation: //Determine the amount of oxygen fed for combustion. Since nitrogen does not react (key component), using the ratio of oxygen to nitrogen in air will provide the amount of oxygen fed: O2f = (21/79)*83.1 //A balanced equation for the combustion of the hydrocarbon in terms of N moles of the hydrocarbon and n hydrogen atoms in the hydrocarbon yields //NC3Hn + 22.1O2 ---> 7.5CO2 + 1.3CO + 8.1O2 + N(n/2)H2O //The moles of hydrocarbon, N, is obtained by performing an elemental carbon balance: //3N = 7.5 + 1.3 N = 8.8/3 //Similarly, the moles of water formed is obtained by performing an elemental oxygen balance: //2(22.1) = 2(7.5) + 1.3 + 2(8.1) + N(n/2) //A = N(n/2) A = 44.2 - 15 - 1.3 - 16.2 //The number of hydrogen atoms, n, in the hydrocarbon is then n = 2*A/N //Since n = 8, the hydrocarbon is C3H8, propane. printf("\n\nResult\n\n") printf("\n n= %.0f\n",n) printf("\n the hydrocarbon is C3H8, propane")
fec743ab801bfadeb3608069cc8cf03e63a75706
449d555969bfd7befe906877abab098c6e63a0e8
/3683/CH18/EX18.9/Ex18_9.sce
c8521f0e3fa18f3e5ea07535ad732e9f42867f8c
[]
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
628
sce
Ex18_9.sce
b=250//column width, in mm D=500//column depth, in mm lex=4//in m ley=4//in m Pu=300//in kN Asc=1472//in sq mm Ast=1472//in sq mm fck=15//in MPa fy=250//in MPa c=50//cover, in mm Max=Pu*10^3*D/2000*(lex/(D/10^3))^2/10^6//in kN-m May=Pu*10^3*b/2000*(ley/(b/10^3))^2/10^6//in kN-m Puz=(0.45*fck*(b*D-(Asc+Ast))+0.75*fy*(Asc+Ast))/10^3//in kN //to find Pb xu=(D-c)/(1+0.002/0.0035)//in mm fsc=217.5//in MPa fst=217.5//in MPa Pb=(0.36*fck*b*xu+fsc*Asc-fst*Ast)/10^3//in kN k=(Puz-Pu)/(Puz-Pb)//>1 k=1 Max=k*Max//in kN-m May=k*May//in kN-m mprintf("Additional Moments are:\nMax=%f kN/m\nMay=%f kN-m", Max,May)
8651a0672b5ac98a36c97584b2fbc557555f6d2f
c2c094e5792a8d99eec660157b9b22bf111f175b
/Hardware/MRAM8.tst
05cc6e429d6dfb9d1cba8b6959fa9d6360f36ba1
[]
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
1,569
tst
MRAM8.tst
load MRAM8.hdl, output-file MRAM8.out, output-list time%S1.4.1 in%B1.16.1 address%B1.3.1 load%B2.3.2 out%B1.16.1; set in %B1101101010101101, set address %B100, set load 1, tick, output; tock, output; set in %B0110000100001001, set address %B010, set load 0, tick, output; tock, output; set in %B0000010101110101, set address %B001, set load 0, tick, output; tock, output; set in %B1010011011000100, set address %B100, set load 0, tick, output; tock, output; set in %B1110101010011011, set address %B001, set load 1, tick, output; tock, output; set in %B1100111110001010, set address %B000, set load 0, tick, output; tock, output; set in %B0010010001000110, set address %B100, set load 0, tick, output; tock, output; set in %B0110011010000100, set address %B000, set load 0, tick, output; tock, output; set in %B1101001000111010, set address %B011, set load 0, tick, output; tock, output; set in %B1000110001001010, set address %B001, set load 0, tick, output; tock, output; set in %B0001001111010110, set address %B011, set load 0, tick, output; tock, output; set in %B0010100000110111, set address %B000, set load 0, tick, output; tock, output; set in %B0000100100100000, set address %B111, set load 1, tick, output; tock, output; set in %B0011001000001000, set address %B011, set load 1, tick, output; tock, output; set in %B0011011111101001, set address %B000, set load 1, tick, output; tock, output; set in %B0100001010101000, set address %B101, set load 1, tick, output; tock, output;
3f02bf210d1f4f4174255f8ca47f1c2615d54fb7
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/examples/addinter-examples/ex15c.sce
a903632c2575465f45e3a70a167b991435b5698a
[ "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
78
sce
ex15c.sce
// Accessing a Scilab string inside an interface Mystr='My string'; ex15c()
7da9549421426a60ed4c0eec6c128d6d3aaee976
449d555969bfd7befe906877abab098c6e63a0e8
/1445/CH8/EX8.7/ch8_ex_7.sce
510984fa89f7b2f738031dd4aee38f1cbad5d4b9
[]
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,055
sce
ch8_ex_7.sce
//CHAPTER 8- DIRECT CURRENT MACHINES //Example 7 disp("CHAPTER 8"); disp("EXAMPLE 7"); //VARIABLE INITIALIZATION p_o=20*746; //output power from H.P. to Watts (1 H.P.=745.699 or 746 W) v_t=230; //in Volts N1=1150; //speed in rpm P=4; //number of poles Z=882; //number of armature conductors r_a=0.188; //armature resistance in Ohms I_a1=73; //armature current in Amperes I_f=1.6; //field current in Amperes ratio=0.8; //phi2:phi1=0.8 (here phi=flux) //SOLUTION E_b1=v_t-(I_a1*r_a); I_a2=I_a1/ratio; //(phi2*I_a2)=(phi1*I_a1) E_b2=v_t-(I_a2*r_a); N2=(E_b2/E_b1)*(1/ratio)*N1; //N2:N1=(E_b2/E_b1)*(phi1/phi2) N2=round(N2); //to round off the value of N2 (before rounding off N2=1414.695516 rpm) disp(sprintf("The new operating speed is %d rpm",N2)); //The answer is slightly different due to the precision of floating point numbers //END
21c3d13e4b8f2ac88bdcef3b6125cc84a017b249
449d555969bfd7befe906877abab098c6e63a0e8
/37/CH4/EX4.5/s5.sci
b252b75b89a4e15c60efb4438e3f7e862c78e41c
[]
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
4,971
sci
s5.sci
//STACK USING CIRCULAR LINKED LIST funcprot(0) function[link2]=append(ele,link1) link2=list(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0); if(link1(1)(1).add==0) link1(1)(1).data=ele; link1(1)(1).add=1; link1(1)(1).nexadd=1; link2(1)=link1(1)(1); else if(link1(1)(1).nexadd==link1(1)(1).add) lin2=link1(1)(1); lin2.data=ele; lin2.add=link1(1)(1).add+1; link1(1)(1).nexadd=lin2.add; lin2.nexadd=link1(1)(1).add; link2(1)=link1(1)(1); link2(2)=lin2; else lin2=link1(1)(1); i=1; while(link1(i)(1).nexadd~=link1(1)(1).add) i=i+1; end j=i; lin2.data=ele; lin2.add=link1(i).add+1; lin2.nexadd=link1(1)(1).add; link1(i).nexadd=lin2.add; link2(1)=link1(1)(1); i=2; while(link1(i).nexadd~=lin2.add) link2(i)=(link1(i)); i=i+1; end link2(i)=link1(i); link2(i+1)=lin2; end end endfunction function[link2]=add(ele,pos,link1); link2=list(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0); i=1; while(i<=pos) if(link1(i).nexadd==link1(1)(1).add) break; else i=i+1; end end if(link1(i).nexadd~=link1(1)(1).add) i=i-1; lin2.data=ele; lin2.add=i; j=i; while(link1(j).nexadd~=link1(1)(1).add) link1(j).add=link1(j).add+1; link1(j).nexadd=link1(j).nexadd+1; j=j+1; end link1(j).add=link1(j).add+1; lin2.nexadd=link1(i).add; link1(i-1).nexadd=lin2.add; k=1; while(k<i) link2(k)=link1(k); k=k+1; end link2(k)=lin2; k=k+1; link2(k)=link1(k-1); k=k+1 l=k-1; while(k~=j) link2(k)=link1(l); k=k+1; l=l+1; end link2(j)=link1(j-1);; link2(j+1)=link1(j); else if(i==pos) k=1; lin2.data=ele; lin2.add=link1(i-1).add+1; link1(i).add=link1.add+1; lin2.nexadd=link1(i).add; link1(i).nexadd=link1(1)(1).add; k=1; while(k<pos) link2(k)=link1(k); k=k+1; end link2(k)=lin2; link2(k+1)=link1(k) end end endfunction function[link2]=delete1(pos,link1) link2=list(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0); i=1; if(link1(1)(1).add==0) disp("Invalid"); else if(link1(1)(1).nexadd==link1(1)(1).add) link1(1)(1).add=0; link1(1)(1).nexadd=0; link1(1)(1).data=0; link2(1)=link1(1)(1); else while(i<=pos) if((link1(i).nexadd==link1(1)(1).add)) break; else i=i+1; end end if(link1(i).nexadd~=link1(1)(1).add) i=i-1; j=1; if(i==1) j=1; while(link1(j).nexadd~=link1(1)(1).add) link2(j)=link1(j); j=j+1; end link2(j)=link1(j); else link1(i-1).nexadd=link1(i+1).add; while(link1(j).nexadd~=link1(i+1).add) link2(j)=link1(j); j=j+1; end if(j~=i-1) link2(j)=link1(j); link2(j+1)=link1(j+1); k=i+1; l=2; else link2(j)=link1(j); k=i+1; l=1; end while(link1(k).nexadd~=link1(1)(1).add) link2(j+l)=link1(k); k=k+1; l=l+1; end link2(j+l)=link1(k); end else if(i==pos) j=1; link1(i-1).nexadd=link1(1)(1).add; while(j<=i-1) link2(j)=link1(j); j=j+1; end end end end end endfunction function[sta]=push(ele,stack) if(stack.top==0) stack.a=ele; stack.top=stack.top+1; sta=stack; else i=1; link1=struct('data',0,'add',0,'nexadd',0); while(i<=stack.top) link1=append(stack.a(i),link1); i=i+1; end link1=append(ele,link1); stack.top=stack.top+1; a=[stack.a(:,:) link1(stack.top).data]; stack.a=a; sta=stack; end endfunction function[ele,sta]=pop(stack) ele=-1; sta=0; if(stack.top==0) disp("Stack Underflow"); return; else i=1; link1=struct('data',0,'add',0,'nexadd',0); while(i<=stack.top) link1=append(stack.a(i),link1); i=i+1; end ele=link1(stack.top).data; link1=delete1(stack.top,link1); stack.top=stack.top-1; i=2; a=link1(1)(1).data while(i<=stack.top) a=[a(:,:) link1(i).data]; i=i+1; end stack.a=a; sta=stack; end endfunction function[stack]=empty() stack=struct('a',0,'top',0); endfunction //Calling Routine: stack=empty()//Create an empty stack stack=push(4,stack); stack=push(55,stack); stack=push(199,stack); stack=push(363,stack); [ele,stack]=pop(stack); disp(stack,"After the above operations stack is:");
3a08ee1e5608f530be28fa298704e3d9b22801ba
bdbafbcce90eb6b9aa54964c32057b8117961b58
/Verification.sci
1528dcd446e64be7195228cae01cb0572e329241
[]
no_license
Rachine/Tp_Optim
617191c586b46d8d44fc1bd24b24e3d3b760c851
68cabcb55cd4f343796d6f0f3823e4aa03edbe25
refs/heads/master
2016-09-05T09:23:21.650931
2015-05-10T20:37:58
2015-05-10T20:37:58
34,060,544
2
0
null
null
null
null
UTF-8
Scilab
false
false
2,378
sci
Verification.sci
function []=Verification(q,z,f,p) /////////////////////////////////////////////////////////////////////////////// // // // VERIFICATION DES EQUATIONS D'EQUILIBRE D'UN RESEAU DE DISTRIBUTION D'EAU // // // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // // On suppose determinee la solution du probleme d'equilibre du reseau, et on // calcule le plus grand ecart sur les 2 series d'equations qui caracterisent // l'equilibre. // // Variables en entree // ------------------- // // - q : vecteur des debits des arcs // - z : vecteur des pertes de charge des arcs // - f : vecteur des flux aux noeuds // - p : vecteur des pressions aux noeuds // // // On suppose que l'environnement Scilab contient : // // - A : matrice d'incidence noeuds-arcs du reseau // // // Remarque // // Pour la deuxieme loi de Kirchhoff, on peut utiliser le fait que la // matrice B contient les cycles du reseau, calculer la perte de charge // le long de chacun de ces cycles (= B'*z), et lui oter le cas echeant // les pressions des reservoirs aux extremites du cycle. Ce calcul est // plus precis que le precedent (on utilise les pertes de charge et non // les pressions, qui sont d'un ordre de grandeur bien superieur et qui // de plus n'interviennent que par leur difference : la pression est de // l'ordre de 100 metres,alors que la perte de charge est de l'ordre du // metre), mais necessite de determiner les cycles avec reservoirs aux // extremites et d'oter la difference de leurs pressions a la perte de // charge du cycle pour connaitre l'ecart. // /////////////////////////////////////////////////////////////////////////////// // ------------------------------------------ // Ecarts maximaux dur les lois de Kirschhoff // ------------------------------------------ tol1 = max(abs(A*q-f)); tol2 = max(abs(A'*p+z)); // ------------------------ // Affichage alphanumerique // ------------------------ tols = ['sur les debits : ';'sur les pressions : ']; tols = [tols,[string(tol1);string(tol2)]]; disp('Verification des equations d''equilibre du reseau') disp(tols) endfunction
e8f2a115b96bc3d6951b16263facfa264e797f46
449d555969bfd7befe906877abab098c6e63a0e8
/431/CH4/EX4.33/EX4_33.sce
c6334beb56d30631d19cd1990ccfe4874edb2ab7
[]
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
777
sce
EX4_33.sce
//Calculating the rotor current at slip 3 precent and when the rotor develops maximum torque //Chapter 4 //Example 4.33 //page 351 clear; clc; disp("Example 4.33") E20=100;...............................//induced emf between slip terminals in volts E20p=E20/sqrt(3);.......................//induced emf per phase in volts printf("induced emf per phase=%fV",E20p) S=3/100;...........................//slip R2=0.2;.................................//resistance in ohms X20=1;................................//standstill resistance in ohms I2=(S*E20p)/sqrt((R2)^2+(S*X20)^2) printf("\nrotor current at slip 0.03 =%fA per phase",I2) Sm=R2/X20; I2m=(Sm*E20p)/sqrt((R2)^2+(Sm*X20)^2) printf("\nrotor current when the rotor develops maximum torque=%fA per phase",I2m)
32e0b00c99ca6bdc4779ec1f223e812a21fdc3a8
449d555969bfd7befe906877abab098c6e63a0e8
/1394/CH10/EX10.2.1/Ex10_2_1.sce
933f296c73a6759a9bb46dcce9a1eec7cd6a1a30
[]
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
315
sce
Ex10_2_1.sce
clc //initialization of variables c = 0.92 F = 93 // ft^-1 nu = 2 // cs dl = 63 // lb/ft^3 dg = 2.8 // lb/ft^3 G = 23 //lb/sex //Calculations G11 = c*((dl-dg)^0.5)/(((F)^0.5)*(nu^0.05))// lb/ft^2-sec A = G/G11// ft^2 d = sqrt(4*A/%pi)//ft //Results printf("The diameter of the tower is %.1f ft",d)
486b3e9e169b1cd89e92ddc5933291f9bbb5ca95
449d555969bfd7befe906877abab098c6e63a0e8
/3648/CH27/EX27.12/Ex27_12.sce
dd42f1eda8bcc16a1c45ff62768139a043b818cd
[]
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
297
sce
Ex27_12.sce
//Example 27_12 clc(); clear; //To estimate the age of the axe handle n_no=0.034 t1=5730 //Units in Years t=-(log(n_no)*t1)/0.693 //Units in Years printf("The age of the axe handle is t=%d years",t) //In textbook answer is printed wrong as t=28000 years correct answer is t=27958 years
4cc1dbefa939d331f7bb9f9afb0d2f9c3756ee73
15ff2aaf59d00ffdc078f735955c5c41dd8f31eb
/LogicCircuit.tst
ea5caa92d0ab0f5d30f1a82f30ccc632957f0423
[]
no_license
davidsmithmke/nand2tetris-project2
bcce2c15a2752a7bfd09ee8b1660b6ed65b5d3f2
c50b0517b373bdb81d75e1428619d0d3d5189d24
refs/heads/master
2020-05-01T08:20:51.117514
2014-02-03T17:24:10
2014-02-03T17:24:10
16,486,939
3
1
null
null
null
null
UTF-8
Scilab
false
false
634
tst
LogicCircuit.tst
load LogicCircuit.hdl, output-file LogicCircuit.out, compare-to LogicCircuit.cmp, output-list in%B1.16.1 zin%B2.1.2 nin%B2.1.2 out%B1.16.1; set in %B0000000000000000, set zin %B0, set nin %B0, eval, output; set nin %B1, eval, output; set nin %B0, set zin %B1, eval, output; set nin %B1, eval, output; set in %B1111111111111111, set zin %B0, set nin %B0, eval, output; set nin %B1, eval, output; set nin %B0, set zin %B1, eval, output; set nin %B1, eval, output; set in %B1010101010101010, set zin %B0, set nin %B0, eval, output; set nin %B1, eval, output; set nin %B0, set zin %B1, eval, output; set nin %B1, eval, output;
e35f98ca9322ca27c92866c002eca63a7fe8c7c7
9b046504c3b7683d3bfa294fe100408058e75aa3
/Metodos/Clase3/ScriptsClase/biccecion.sce
1f6ab6e9a9226d2a855ebeed03ab43cadce839f8
[]
no_license
DavidAlex99/Cursos
f15cb4f4fbb35a6eb62cbae0a9b51ea671f3ea8f
aee547ab09db7e535bea5a6d41ed6e455f8a9a89
refs/heads/master
2023-01-08T02:46:07.502656
2020-11-14T00:45:57
2020-11-14T00:45:57
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
119
sce
biccecion.sce
function y = f(m) g = 9.8 cD = 0.25 t = 4 v = 36 y=sqrt(g*m/cD)*tanh(sqrt(g*cD/m)*t)-v endfunction
d865d6d045e85a84329c4b6dcbf5a5292dcc180d
449d555969bfd7befe906877abab098c6e63a0e8
/1627/CH9/EX9.3/Ex9_3.sce
ddac9747108e166b4621254598bf89f062b614f4
[]
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
304
sce
Ex9_3.sce
clc //initialisation of variables c=0.005//cm v=2*10^-1/2//N.s/m^2 l=7.5//cm mu=2*10^-2//N.s/m^2 d=5*10^-2//m N=1500*(1/60)//rev/s L=7.5*10^-2//m //CALCULATIONS F=(2*(mu)*(%pi)^2*(d)^2*N*L)/(c*10^-2)//N HP=(F*(%pi)*d*N)/746//hp //RESULTS printf('The friction horsepower loss is=% f hp',HP)
9ace42398f69fbb94bda7e70779f062c36dc15c2
449d555969bfd7befe906877abab098c6e63a0e8
/671/CH2/EX2.30/2_30.sce
40580acc5f6feb2f7d1f32c4ba85c7ad8ad65e27
[]
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
188
sce
2_30.sce
function p=parallel(r1,r2) p=r1*r2/(r1+r2) endfunction R=parallel(60,120) //Mesh Analysis A=[6,-4;-4,12] I=inv(A)*[2.4;-3.6] I3=I(1)-I(2) I60=I3*120/(120+60) disp(I60)
7f9a0ba8e3c55ad8947aec2c40eca8726651840b
449d555969bfd7befe906877abab098c6e63a0e8
/3311/CH8/EX8.27/Ex8_27.sce
0e84cc791a602ad26b8732e654ac7982629af771
[]
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,292
sce
Ex8_27.sce
// chapter 8 // example 8.27 // Determine range of duty cycle, peak-to-peak choke ripple current and average supply current // page-523-524 clear; clc; // given Edc=24; // in V (dc source) f=50; // in KHz (switching frequency) L=500; // in uH E0=15; // in V (average output voltage) Edc_max=26; // in V (maximum voltage of dc source) Edc_min=21; // in V (maximum voltage of dc source) I0=2; // in A (average load current) // calculate f=f*1E3; // changing unit from KHz to Hz L=L*1E-6; // changing unit from uH to H // since E0=Edc*alpha/(1-alpha), therefore we get alpha_max=1/((Edc_min/E0)+1); // calculation of upper limit of duty cycle alpha_min=1/((Edc_max/E0)+1); // calculation of lower limit of duty cycle alpha_normal=1/((Edc/E0)+1); // calculation of normal duty cycle del_I=Edc*alpha_normal/(f*L); // calculation of peak-to-peak choke ripple current // since Edc*Is=E0*I0, therefore we get Is=E0*I0/Edc; // calculation of average supply current printf("\nThe duty cycle varies from \t\t\t\t\t\t %.3f to %.3f",alpha_min,alpha_max); printf("\nThe peak-to-peak choke ripple current for normal supply voltage is \t del_I=%.1f mA",del_I*1E3); printf("\nThe average supply current drawn from battery is \t\t\t Is=%.2f A",Is); // Note: the answers vary slightly due to precise calculation
e502eb32f1d90f4d92997accb2a942604abde9a3
449d555969bfd7befe906877abab098c6e63a0e8
/1046/CH7/EX7.10/7_10.sce
901012573d4164bff968b6084981bc594803329d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
511
sce
7_10.sce
//Example 7.10 //Calculate the view factors of the surfaces. //Given ds=0.3 //m, diameter of shell r1=0.1 //m, distance from the centre //Calculation //by the defination of view factor F12=1 printf("The view factor from surface 1 to 2 is %f\n",F12) //F21 R=ds/2 //m, radius of sphere r2=sqrt(R^2-r1^2) A1=%pi*r2^2 //m^2 area A2=2*%pi*R^2+2*%pi*R*sqrt(R^2-r2^2) //from reciprocity relation F21=(A1/A2)*F12 printf("The view factor from surface 2 to 1 is %f\n",F21)
668e14108631b96dbc29ac4b9d24e4ee1e6ca11d
c8c6673c602ed995c0af8bf1320fb7e2b20973b3
/A1/results/c4.5/result1.tst
19b7d2d8745c4c061b8646c7ed494984662eaab8
[]
no_license
minminmail/PrepareData
f27d8c7d92d789238572cba918283fe32abf5590
c49d83f50fa79074cd7e8554888a42b99f85bc99
refs/heads/master
2023-07-05T03:49:03.428530
2021-08-30T22:08:57
2021-08-30T22:08:57
396,642,286
0
0
null
null
null
null
UTF-8
Scilab
false
false
301
tst
result1.tst
@relation distaa1828a1828 @attribute 5.3 real[0.19,16.0] @attribute 5.5 real[0.0,12.0] @attribute green{green,red} @inputs 5.3,5.5 @outputs green @data red red green green green green green green red red green green green green green green green green green green green green green green green green
475e3384351d00c5032c490f5d64c62e830edcb2
449d555969bfd7befe906877abab098c6e63a0e8
/2183/CH2/EX2.2.b/EX_2_2_b.sce
9ae2e8bbb7ac1dc79fbb11c0d0942b1c1f5635f0
[]
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
210
sce
EX_2_2_b.sce
// Example 2.2.b:Numerical Aperture clc; clear; close; n1=1.50;//Waveguide Refractive Index n2=1.47;//Cladding Refractive Index NA=sqrt(n1^2-n2^2);// Numerical Aperture disp(NA,"Numerical Aperture is")
b554d73928f854b78118bdaf64f80b35c8778e69
e9d5f5cf984c905c31f197577d633705e835780a
/GED/linear/scilab/functions/ged_generate_data.sci
3d52f4d4ad600d43857a44f956e1e46c93353cb6
[]
no_license
faiz-hub/dr-ged-benchmarks
1ad57a69ed90fe7595c006efdc262d703e22d6c0
98b250db9e9f09d42b3413551ce7a346dd99400c
refs/heads/master
2021-05-18T23:12:18.631904
2020-03-30T21:12:16
2020-03-30T21:12:16
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
12,742
sci
ged_generate_data.sci
// Data Reconciliation Benchmark and GED Problems From Lietrature Review // Author: Edson Cordeiro do Valle // Contact - edsoncv@{gmail.com}{vrtech.com.br} // Skype: edson.cv // we have 4 functions in this file: // -generate_data // -generate_data_multiple // -generate_data_random_err // -generate_data_errors function [xfinal, resRand, resGrossErrorNodalRand, varargout]=generate_data(xr, sd, jac, runsize, lbm, ubm, lbres, ubres) // Data Reconciliation Benchmark Problems From Literature Review // Author: Edson Cordeiro do Valle // Contact - edsoncv@{gmail.com}{vrtech.com.br} // Skype: edson.cv // generate single gross error vector according to user input //*************************************************************** //This function receives the users argument and generate a single gross error for measurement bias and leakings. //Outputs: // xfinal: a vector with [xrs; gross errors in measurements] // resRand: residuals when pure random error was added // resGrossErrorNodalRand: residuals with pure random error - leaking // varargout(1) = grerrornodal = only the leaking // //Inputs: // xrs: measurements with pure random error // sd: standard deviations of measurements // jac Jacobian matrix // lbm lower bound of measurement error // ubm upper bound of measurement error // lbres lower bound residuals leaking // ubres upper bound residuals leaking jac_row = size(jac,1); xrs = zeros(szx,runsize); rerror1 = zeros(runsize,szx); grerror = zeros(szx*runsize,szx); grerrors = zeros(szx*runsize,szx); grerrornodal = zeros(runsize*jac_row, jac_row); //leaks = zeros(runsize*jac_row); resGrossErrorNodalRand = zeros(runsize*jac_row, jac_row); //rerror=grand(runsize,szx,'nor',0,1); // random number generators: rerror1 prefered as rerror for i=1:szx rerror1(:,i)=grand(runsize,1,'nor',0,sd(i)); //the above line must be commeted and the beelow line uncommented if the user wants to test just one measurement // rerror1(:,i)=0; end // adding random error to exact x for i=1:runsize // xrs(:,i) = xr + sd.*rerror(i,:)'; xrs(:,i) = xr + rerror1(i,:)'; end // gross errors for measurements (Measurement Test) // random sign generator to add to gross error // for some tests, like the MT it doesn't matter because the absolute value of the adjustments are considered mySign=sign(grand(runsize,szx,'unf',-1,1)); k=0; for i=1:szx for j=1:runsize // grerror(j+k*runsize,i) = grand(1,1,'unf',xrs(i,j)*0.05,xrs(i,j)*0.1)*mySign(j,i); grerror(j+k*runsize,i) = grand(1,1,'unf',lbm*sd(i),ubm*sd(i))*mySign(j,i); end k=k+1; end //Adding gross error plus random error for i=0:(size(grerror,1)-1) grerrors(i+1,1:szx) = grerror(i+1,1:szx) + xrs(:,modulo(i,runsize)+1)'; end // xfinal concatenates pure random measurement in sensors with gross errors in sensors xfinal =[xrs';grerrors]; // gross errors for leakings (Nodal Test) // the total flow that passes through the node (streams entering or leaving the node) totalNodeFlow = abs(jac)*xr; // the total flow that passes through the node divided by the total number of streams // entering or leaving it meanNodeFlow = totalNodeFlow./sum(abs(jac),2); //gross error to nodes (leaking) k = 0; for i=1:jac_row for j=1:runsize grerrornodal(j+k*runsize,i) = grand(1,1,'unf',totalNodeFlow(i)*lbres,totalNodeFlow(i)*ubres); // leaks(j+k*runsize) = grerrornodal(j+k*runsize,i); end k=k+1; end // residuals when pure random noise is added to measurements resRand = zeros(runsize,jac_row); for i = 1: runsize resRand(i,:) = (jac*(xrs(:,i)))'; end //sum of leaking plus randon error residuals //Adding gross error plus random error for i=0:(size(grerrornodal,1)-1) resGrossErrorNodalRand(i+1,1:jac_row) = (resRand(modulo(i,runsize)+1,:) -grerrornodal(i+1,1:jac_row) ); end resGrossErrorNodalRandFi = [ resRand;resGrossErrorNodalRand]; varargout(1) = grerrornodal; varargout(2) = mySign; //disp('before leave generate data'); //pause endfunction function [xfinal, resRand, varargout]=generate_data_multiple(xrs, sd, jac, lbm, ubm, lbres, ubres,vec_bias_error,vec_nodal_error, flag_sum) // Data Reconciliation Benchmark Problems From Literature Review // Author: Edson Cordeiro do Valle // Contact - edsoncv@{gmail.com}{vrtech.com.br} // Skype: edson.cv // generate multiple gross error vector according to user input //*************************************************************** //This function receives the users argument and generate MULTIPLE gross error for measurement bias and leakings. //User have the option to sum these errors at the end for the residuals //Outputs: // xfinal: a vector with [xrs; gross errors in measurements] // resRand: residuals when pure random error was added // varargout(1) = resGrossErrorNodalRand = residuals with pure random error - leaking // varargout(2) = grerrornodal = only the leaking // varargout(3) = residuals calculated based on the measurement bias (with gross error) - grerrornodal // only calculated if "flag_sum" = 1 // //Inputs: // xrs: measurements with pure random error // sd: standard deviations of measurements // jac Jacobian matrix // lbm lower bound of measurement error // ubm upper bound of measurement error // lbres lower bound residuals leaking // ubres upper bound residuals leaking // vec_bias_error a gross error signature vector for measurement bias. A vector os size of xrs with one on streas // that a gross error must be added and zero elsewere. // ex: if we have 6 streams and want a gross error in streams 2 and 5: // vec_bias_error = [0 1 0 0 1 0] // vec_nodal_error a gross error signature vector for leakings. A vector os size of jac_row (number of residuals) // with one on residuals that an error will be added and zero elsewere. // ex: if we have 4 balances (equipments) and want a gross error in equipment 2: // vec_bias_error = [0 1 0 0] // flag_sum sum residuals of measurement bias and leakings [lhs ,rhs]=argn(); runsize = size(xrs,1); // finding the sizes length_merrorbias = length(find(vec_bias_error <> 0)); ind_merrorbias = find(vec_bias_error <> 0); length_merrornode = length(find(vec_nodal_error > 0)); ind_merrornode = find(vec_nodal_error > 0); jac_row = size(jac,1); grerror = zeros(runsize,szx); grerrors = zeros(runsize,szx); grerrornodal = zeros(runsize, jac_row); mySign = zeros(runsize,1); resGrossErrorNodalRand = zeros(runsize*jac_row, jac_row); // gross errors for measurements (Measurement Test) k=0; // pure gross error //pause for i=1:length_merrorbias // random sign generator to add to gross error // for some tests, like the MT it doesn't matter because the absolute value of the adjustments are considered mySign=sign(grand(runsize,1,'unf',-1,1)); for j=1:runsize // disp([i,j]); // grerror(j,ind_merrorbias(i)) = grand(1,1,'unf',lbm*sd(ind_merrorbias(i)),ubm*sd(ind_merrorbias(i)))*mySign(j,1); grerror(j,ind_merrorbias(i)) = grand(1,1,'unf',mult_bias_low*sd(ind_merrorbias(i)),mult_bias_up*sd(ind_merrorbias(i))).*vec_bias_error(ind_merrorbias(i)).*mySign(j,ind_merrorbias(i)); // grerror(j,ind_merrorbias(i)) = grand(1,1,'unf',lbm*sd(ind_merrorbias(i)),ubm*sd(ind_merrorbias(i))).*vec_bias_error(ind_merrorbias(i)); end end //Adding gross error plus random error grerrors = grerror + xrs; // xfinal concatenates pure random measurement in sensors with gross errors in sensors xfinal =[xrs;grerrors]; // gross errors for leakings (Nodal Test) // the total flow that passes through the node (streams entering or leaving the node) totalNodeFlow = abs(jac)*xr; // the total flow that passes through the node divided by the total number of streams // entering or leaving it meanNodeFlow = totalNodeFlow./sum(abs(jac),2); //gross error to nodes (leaking) k = 0; for i=1:length_merrornode for j=1:runsize grerrornodal(j,ind_merrornode(i)) = grand(1,1,'unf',totalNodeFlow(ind_merrornode(i))*mult_leak_low ,totalNodeFlow(ind_merrornode(i))*mult_leak_up); // leaks(j+k*runsize) = grerrornodal(j+k*runsize,i); end end // residuals when pure random noise is added to measurements resRand = zeros(runsize,jac_row); //sum of leaking plus randon error residuals //Adding gross error plus random error for i = 1: runsize resRand(i,:) = (jac*(xrs(i,:)'))'; end if length_merrornode == 0 varargout(1) = (resGrossErrorNodalRand); varargout(2) = grerror; varargout(3) = mySign; varargout(4) = grerrornodal; [xfinal, resRand,resGrossErrorNodalRand,grerror,mySign,grerrornodal] = return(xfinal, resRand,resGrossErrorNodalRand,grerror,mySign,grerrornodal); end //sum of leaking plus randon error residuals //Adding gross error plus random error resGrossErrorNodalRand = resRand - grerrornodal; resGrossErrorNodalRandFi = [ resRand;resGrossErrorNodalRand]; varargout(1) = (resGrossErrorNodalRand); varargout(2) = (grerror); // sum the residuals varargout(3) = mySign; varargout(4) = grerrornodal; if flag_sum == 1 & lhs > 5 then sumres = zeros(runsize,jac_row); for i = 1: runsize sumres(i,:) = (jac*(grerrors(i,:)'))' - grerrornodal(i,:) ; end varargout(5) = sumres; end //disp('before leave generate data'); //pause endfunction // the function was divided to make a better implementation of OP curves generation function [xrs] = generate_data_random_err(xr, sd, jac, runsize) jac_row = size(jac,1); xrs = zeros(szx,runsize); rerror1 = zeros(runsize,szx); grerror = zeros(szx*runsize,szx); grerrors = zeros(szx*runsize,szx); grerrornodal = zeros(runsize*jac_row, jac_row); resGrossErrorNodalRand = zeros(runsize*jac_row, jac_row); //rerror=grand(runsize,szx,'nor',0,1); // random number generators: rerror1 prefered as rerror for i=1:szx rerror1(:,i)=grand(runsize,1,'nor',0,sd(i)); //the above line must be commeted and the beelow line uncommented if the user wants to test just one measurement // rerror1(:,i)=0; end // adding random error to exact x for i=1:runsize // xrs(:,i) = xr + sd.*rerror(i,:)'; xrs(:,i) = xr + rerror1(i,:)'; end endfunction function [xfinal, resRand, resGrossErrorNodalRand,varargout]=generate_data_errors(xr, xrandom, sd, jac, runsize, lbm, ubm, lbres, ubres) jac_row = size(jac,1); rerror1 = zeros(runsize,szx); grerror = zeros(szx*runsize,szx); grerrors = zeros(szx*runsize,szx); grerrornodal = zeros(runsize*jac_row, jac_row); resGrossErrorNodalRand = zeros(runsize*jac_row, jac_row); // gross errors for measurements (Measurement Test) // random sign generator to add to gross error // for some tests, like the MT it doesn't matter because the absolute value of the adjustments are considered mySign=sign(grand(runsize,szx,'unf',-1,1)); k=0; for i=1:szx for j=1:runsize // grerror(j+k*runsize,i) = grand(1,1,'unf',xrandom(i,j)*0.05,xrandom(i,j)*0.1)*mySign(j,i); grerror(j+k*runsize,i) = grand(1,1,'unf',lbm*sd(i),ubm*sd(i))*mySign(j,i); end k=k+1; end //Adding gross error plus random error for i=0:(size(grerror,1)-1) grerrors(i+1,1:szx) = grerror(i+1,1:szx) + xrandom(:,modulo(i,runsize)+1)'; end // xfinal concatenates pure random measurement in sensors with gross errors in sensors xfinal =[xrandom';grerrors]; // gross errors for leakings (Nodal Test) // the total flow that passes through the node (streams entering or leaving the node) totalNodeFlow = abs(jac)*xr; // the total flow that passes through the node divided by the total number of streams // entering or leaving it meanNodeFlow = totalNodeFlow./sum(abs(jac),2); //gross error to nodes (leaking) k = 0; for i=1:jac_row for j=1:runsize grerrornodal(j+k*runsize,i) = grand(1,1,'unf',totalNodeFlow(i)*lbres,totalNodeFlow(i)*ubres); end k=k+1; end // residuals when pure random noise is added to measurements resRand = zeros(runsize,jac_row); for i = 1: runsize resRand(i,:) = (jac*(xrandom(:,i)))'; end //sum of leaking plus randon error residuals //Adding gross error plus random error for i=0:(size(grerrornodal,1)-1) resGrossErrorNodalRand(i+1,1:jac_row) = (resRand(modulo(i,runsize)+1,:) -grerrornodal(i+1,1:jac_row) ); end resGrossErrorNodalRandFi = [ resRand;resGrossErrorNodalRand]; varargout(1) = grerrornodal; varargout(2) = mySign; endfunction
aeb052799794cfc587010285d8e093afa86fe635
449d555969bfd7befe906877abab098c6e63a0e8
/3204/CH14/EX14.10/Ex14_10.sce
b8dd45d23b292e7e36cbe747e9212d0355f8458b
[]
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
809
sce
Ex14_10.sce
// Initilization of variables a=10 // m/s^2 // acceleration of the particle S_5th=50 // m // distance travelled by the particle during the 5th second t=5 // seconds // Calculations // The distance travelled by the particle in time t is given by, S=(u*t)+(1/2)*a*t^2.....(consider this as eq'n 1) // Here, The distance travelled by the particle in the 5th second=The distance travelled in 5 seconds - The distance travelled in 4 seconds..... (consider eq'n 2) // Using eq'n 1: S_(0-5)=(5*u)+(1/2)*10*5^2 = 5*u+125.....(consider eq'n 3) // again, S_(0-4)=(4*u)+(1/2)*10*4^2 = 4*u+80....(consider eq'n 4) // Now,put eq'n 3&4 in eq'n 2 and solve for u. We get, 50=[(5*u+125)-(4*u+80)] i.e 50=u+45 u=(S_5th)-45 // m/s // Calculations clc printf('The initial velocity of the particle is %f m/s \n',u)
8de04c771d264c2f2ea28c520af3728a875d96d1
449d555969bfd7befe906877abab098c6e63a0e8
/3802/CH10/EX10.9/Ex10_9.sce
a604c24a4557fcfee8d1d3cf6a17765c9ac04b49
[]
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
441
sce
Ex10_9.sce
//Book Name:Fundamentals of Electrical Engineering //Author:Rajendra Prasad //Publisher: PHI Learning Private Limited //Edition:Third ,2014 //Ex10_9.sce clc; clear; P_in_HP=10; eta=0.9; pf=0.8; Vl=400; Vsc=160; Isc=7.2; P_in_watt=P_in_HP*735.5; If=P_in_watt/(sqrt(3)*Vl*pf*eta); Isc_400=Isc*Vl/Vsc; Ist=Isc_400/3; Ist_by_If=Ist/If; printf("\n The ratio value of starting current to full load current=%1.3f",Ist_by_If)
2d7d464e4bec7a23ae78a42a9805f1f520ed7db5
449d555969bfd7befe906877abab098c6e63a0e8
/3673/CH1/EX1.3/Ex1_3.sce
56fe9e9dc592a6abc4f04da71369a86c5aeaf6c6
[]
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
122
sce
Ex1_3.sce
//Example 1_3 page no:3 clc clear E=50;//Energy in joules t=2.5;//Time in second P=E/t; disp(P,"Power(in watts):")
162dfe0476cc3c3564e75c80ee31c7bb532f5658
9733f939913e963ec556f5f89248dacb75801a8d
/scilab/arcadefield1.sci
d9b7277d8d9a176e904c798a30fa60d7405c234b
[]
no_license
mikeg64/solar
4546c0182bb7f7cde21bc7f102e659ff7a488ad8
46ab043441a4f2523daa7cfaf5008c959f61d7d6
refs/heads/master
2023-08-22T04:29:33.974673
2023-08-19T09:19:40
2023-08-19T09:19:40
17,345,330
1
0
null
null
null
null
UTF-8
Scilab
false
false
443
sci
arcadefield1.sci
b0=1; //m=pi.*a.^2.*I/c ring current I radius a l=1; x=-1.0:0.1:1.0; y=0.1:0.1:2.0; [X,Y]=meshgrid(x,y); bx=b0.*cos(%pi*X./l).*exp(-%pi.*Y./l); by=-b0.*sin(%pi*X./l).*exp(-%pi.*Y./l); bmag=sqrt(bx.^2+by.^2); contour(x,y,bmag',[0.005 0.006 0.007 0.008 0.009 0.01 0.05 0.1 0.15 0.2 0.25 0.3 .35 .4 .45 2]); //contour(x,y,bmag',5); //hold on //quiver(X(8:20,:),Y(8:20,:),bx(8:20,:),by(8:20,:),3); //hold off
cc0792854ccbd32e8743257ac71c040cb2ab9b26
449d555969bfd7befe906877abab098c6e63a0e8
/1733/CH1/EX1.20/1_20.sce
526b00b2d0c286946329c515c16996136144ed76
[]
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
251
sce
1_20.sce
//1.20 clc; T=.5*10^-3; V=10; Vp=0.6*V+0.5; Ip=5*10^-3; Rmax=(V-Vp)/Ip; printf("Rmax=%.0f ohm", Rmax) C=1*10^-6; R=T/(C*log(1/(1-0.6))); printf("\nR=%.1f ohm", R) disp('since the value of R is less than Rmax so the value is suitable')
570ad6db077b9d46c2d553482e18a12e28508ae6
449d555969bfd7befe906877abab098c6e63a0e8
/2417/CH10/EX10.3/Ex10_3.sce
ca20b861d752eba7e8fc460ed6a16f724028a46a
[]
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
875
sce
Ex10_3.sce
//scilab 5.4.1 clear; clc; printf("\t\t\tProblem Number 10.3\n\n\n"); // Chapter 10 : Refrigeration // Problem 10.3 (page no. 505) // Solution T1=70+460; //70F=70+460 R //Energy flows into the system at reservoir at constant temperature T1(unit:R) T2=20+460; //20F=20+460 R //Heat is rejected to the constant temperature T2(Unit:R) printf("Solution for (a),\n"); COP=T2/(T1-T2); //Coefficient of performance printf("Coefficient of performance(COP) of the cycle is %f\n\n",COP); printf("Solution for (b),\n"); HPperTOR=4.717/COP; //Horsepower per ton of refrigeration //Unit:hp/ton COPactual=2; //Actual Coefficient of performance(COP) is stated to be 2 HPperTORactual=4.717/COPactual; //Horsepower per ton of refrigeration(actual) //Unit:hp/ton printf("The horsepower required by the actual cycle over the minimum is %f hp/ton",HPperTORactual-HPperTOR);
23fa41dcc41388e9163d835c9b79079d3cf9c0cf
e00d793a546a9e3deb32b7ca5e23bb1f99f29b0a
/Livre_ECE_ecrits/Figures/ESSEC-I_2018/Figure_Essec-I_2018.sce
bb647ef28e9bd72d1fd5e515ecdf90f50dc632f6
[]
no_license
RoxaneDuroux/ECE2
295459a2f2d26fdecd4df25027e6f2abf96b869a
e2ca87258179cde20cd104835d2f04e7377eed3c
refs/heads/Roxane-branch
2020-07-07T20:18:17.558174
2019-08-20T22:44:11
2019-08-20T22:44:11
203,446,061
0
0
null
null
null
null
UTF-8
Scilab
false
false
295
sce
Figure_Essec-I_2018.sce
n=6; lambda = 0.2; alpha = 50; x=0.5:.1:50; l = length(x); s=zeros(1,l); //for i = 1:l // s(i) = (n-1)*lambda*x(i)/((n-1)*lambda +1); //end for i = 1:l s(i) = sigma(x(i),n,alpha,lambda); end clf() plot(x,s,color='black', 'Linewidth', 2) //plot(x,0.5*x, color = 'blue', 'Linewidth', 2)
02ed7d31b337ae49cbfd866f23949a4c696d26f4
449d555969bfd7befe906877abab098c6e63a0e8
/2175/CH2/EX2.7/2_7.sce
e473badcce7d229be9376b34d63bf49038955dd7
[]
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
325
sce
2_7.sce
clc; //for part (i) hf=89.8;//kJ/kg x=0.95; h_fg=(1420-89.8);//kJ/kg hi=hf+x*h_fg;//kJ/kg disp("enthalpy of part (i)"); disp("kJ/kg",hi); //for part (ii) //ammonia heated by (60-20) K x=40/50; hf=1462.6;//kJ/kg h_fg=(1597.2-1462.6);//kJ/kg hii=hf+x*h_fg; disp("enthalpy of part (ii)"); disp("kJ/kg",hii);
4e39182d610a544587ba31b6369d7e5ea8f2dc72
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH9/EX9.18/Ex9_18.sce
c6c105ad4ae80c5c47a0a4b449733a7f9f558f2b
[]
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
272
sce
Ex9_18.sce
clear //Given q=1.6*10**-19 //C r=0.6 //m m=1.67*10**-27 //Kg f=10**7 //Calculation // B=(2*%pi*m*f)/q K=((B**2*q**2*r**2)/(2.0*m))/1.6*10**-13 //Result printf("\n Kinetic energy of the protons is %0.1f Mev",K*10**26)
a8524db6bf0022bfecf3e05d05e8e126b89ae32f
449d555969bfd7befe906877abab098c6e63a0e8
/2006/CH6/EX6.21/ex6_21.sce
a0470798e2015ed59d9dc930e2d7eef90800d7f0
[]
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,515
sce
ex6_21.sce
clc; // (a).Restoring to initial state by throttling process T1=303; //Temperature of air at state 1 in kelvin p1=1; //Pressure of air at state 1 in bar p2=5; //Pressure of air at state 2 in bar p3=1;//Pressure of air at state 3 in bar T3=303; //Temperature of air at state 3 in kelvin Cpo=1.0035; // Specific heat at constant pressure in kJ/kg K R=0.287; // characteristic gas constant of air in kJ/kg K k=1.4; // Index of reversible adiabatic compression T2=T1*(p2/p1)^((k-1)/k); // Temperature after reversible adiabatic compression w12=Cpo*(T2-T1); // Work of reversible adiabatic compression s21=0; // Entropy change of air s32=-R*log (p3/p2); // Entropy change s31=s32; // Net entropy change of air d_Ssurr=0; // Entropy change of surroundings because There is no heat transfer d_Suniv=s31+d_Ssurr; // Net Entropy change of universe disp ("kJ/kg K",d_Suniv,"Net Entropy change of universe = ","kJ/kg",w12,"Work of reversible adiabatic compression = ","(a).Restoring to initial state by throttling process"); // (b).Restoring to initial state by by completing cycle T0=298; // Temperature of surroundings in kelvin d_Ssystem=0; // Entropy change of systrem is zero because it is cyclic process q31=Cpo*(T2-T3); // Heat rejected to the surroundings d_Ssurr=q31/T0; // Entropy change of surroundings d_Suniv=d_Ssystem+d_Ssurr; // Increase in entropy of the universe disp ("kJ/kg K",d_Suniv,"Net Entropy change of universe = ","(b).Restoring to initial state by by completing cycle");