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
739ec6efcdbfade291be358aa1368704bb72e574
449d555969bfd7befe906877abab098c6e63a0e8
/1928/CH4/EX4.15.25/ex_4_15_25.sce
2b1544e55d8d64d0f3ec99f781c7b443b75133c9
[]
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
672
sce
ex_4_15_25.sce
//Chapter-4,Example4_15_25,pg 4-39 l=20 //length of room b=15 //bredth of room h=10 //height of room V=l*b*h //volume of room S=2*(l*b+b*h+h*l) //surface area of hall T=3 //Reverberation time a=(0.161*V)/(T*S) //using Sabine's formula printf("1) average absorption coefficient =") disp(a) m=a*S //total absorption printf("2) total absorption of surface =") disp(m) printf("m^2/sec")
6b0c37e40d8a8c0a4ced2b0c61509ccce7051a78
449d555969bfd7befe906877abab098c6e63a0e8
/2339/CH4/EX4.3.1/Ex4_3.sce
b1fe4f34a32e1723b5537ae88a4a67a46c4da7d7
[]
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
361
sce
Ex4_3.sce
clc clear //Condition at 10 bar pressure //Steam is wet x=0.95; P=10; //in bars Hf=762.8; //in kJ/kg Hfg=2015.3; //in kJ/kg H=Hf+(x*Hfg); printf('Enthalpy : %3.2f kJ/kg',H); printf('\n'); //Now we calculate Work Done Vg=0.194; //in m^3/kg W=P*100*x*Vg; U=H-W; printf('Internal energy: %3.0f kJ/kg',U); printf('\n');
07094ec7b0a128a23e2e1c15b4a122b87eac1276
449d555969bfd7befe906877abab098c6e63a0e8
/1652/CH12/EX12.1/12_1.sce
5e9b0dde8826b1b52dcfee62974f693968a536f9
[]
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
12_1.sce
clc //Initialization of variables p=3 c=2 //calculations f=2-p+c //results printf("no. of degrees of freedom = %d ",f)
d3966b095f2994015c624092738272108a90cd3b
449d555969bfd7befe906877abab098c6e63a0e8
/3739/CH6/EX6.5/EX6_5.sce
e0a304ea2381876c51ad06aa296845e163c39667
[]
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
576
sce
EX6_5.sce
//Chapter 6, Example 6.5, page 239 clc //Initialisation f=450*10**6 //frequency in Hz q1=1.282 //cumulative distribution value q2=1.645 //cumulative distribution value //Calculation sg=3.8+1.6*log10(450) //standard deviation fm1=q1*sg //fade margin fm2=q2*sg //fade margin fm=fm2-fm1 //gain //Results printf("Antenna gain = %.2f dB",fm)
e809856906931bb2a7f649ede54a6496c8bf6f2d
449d555969bfd7befe906877abab098c6e63a0e8
/494/CH19/EX19.1/19_1.sce
4e05392405108cee5e1dc5f71f332cfedfec741f
[]
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
19_1.sce
//All the quantities are expressed in SI units //(a) Re_c = 1.36e7; //as obtained from ex. 18.1a rho_inf = 1.22; //freestream air denstiy S = 40; //plate planform area //hence, from eq.(19.2) Cf = 0.074/Re_c^0.2; V_inf = 100; //hence, for one side of the plate D_f = 1/2*rho_inf*V_inf^2*S*Cf; //the total drag on both the surfaces is D = 2*D_f; printf("\nRESULTS\n---------\nThe total frictional drag is:\n(a)\n D = %4.0f N\n",D) //(b) Re_c = 1.36e8; //as obtained from ex. 18.1b //hence, from fig 19.1 we have Cf = 1.34e-3; V_inf = 1000; //hence, for one side of the plate D_f = 1/2*rho_inf*V_inf^2*S*Cf; //the total drag on both the surfaces is D = 2*D_f; printf("\n(b)\n D = %5.0f N\n",D)
873c0dcf264f244091b29e078394be0126e08efa
449d555969bfd7befe906877abab098c6e63a0e8
/1076/CH16/EX16.27/16_27.sce
3b1e25e2099016b832ef744d6296980db1c10672
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
406
sce
16_27.sce
clear clc V=400 Im=40 pfm=.75 pfd=.95 Pm=sqrt(3)* V * Im * pfm * 1e-3 phi1=acos(pfm) phi2=acos(pfd) kvar1=Pm * tan ( phi1) kvar2=Pm * tan ( phi2) kvarC=kvar2-kvar1 Ic= abs(kvarC)* 1e3 /(3 * V) Xc=V/Ic C=1/(2*%pi*50 * Xc) Imx=Im * sin (acos(pfm)) Iline= (Im * pfm) - (%i * (Imx - (Ic*sqrt(3)))) dL=(1-(abs(Iline)/Im)^2)*100 mprintf("\npercentage reduction in power loss=%.2f",dL)
3b348dccdde3530e2e9ca2549603c38ba0f9b963
449d555969bfd7befe906877abab098c6e63a0e8
/1733/CH1/EX1.2/1_2.sce
5c8f8384aafc5116f7f285601d58b4aa5aa7bc7d
[]
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
475
sce
1_2.sce
//1.2 clc; disp('When thyristor is not conducting there is no current through it') disp('so Vo=20V') VG=0.75; IG=7*10^-3; RG=2000; Vs=VG+IG*RG; printf("Voltage required to Turn On The thyristor = %.2f V", Vs) R= 200; VR=5*10^-3*R; printf("/nVoltage drop across R = %.0f V", VR) disp('Hence Vcc should be reduced to less than 1V') Vconduct=0.7; Vreq=VR+Vconduct; printf("Voltage required = %.1f V", Vreq) disp('Hence Vcc should be reduced to less than 1.7V')
540037bf8414191460e4283ca9a530b0173f66fe
8293f7c8800a04665e23ea5814feac83786d8b75
/VRD_multi/multi2/met_prop_but/mapa.sce
c7c597c849d6213e67245c8f2db67084f47b6678
[]
no_license
gusplatt/paper_libotte
6deb983260bc62b0645f3c3f4b674162829b6e02
249eae1595b581e350c6479fcdda4446c9f2c54e
refs/heads/master
2021-01-19T19:18:46.392726
2017-10-03T23:21:22
2017-10-03T23:21:22
101,187,042
0
0
null
null
null
null
UTF-8
Scilab
false
false
535
sce
mapa.sce
[p,q]=size(matp) mataux = matp; for linha = 1:p for coluna = 1:q elemento = matp(linha,coluna); if elemento == -1 // ponto não convergido mataux(linha,coluna)=1; elseif abs(elemento - 1583.65)<1 // raiz "1" mataux(linha,coluna)=2; elseif abs(elemento - 3075.16)<1 // raiz "2" mataux(linha,coluna)=3; elseif abs(elemento - 4282.97)<1 // raiz "3" mataux(linha,coluna)=24; elseif elemento == -2 //solução trivial mataux(linha,coluna)=7; end end end Matplot(mataux)
e00e69a2d4fdb0a64eac4238c9080dededf73255
449d555969bfd7befe906877abab098c6e63a0e8
/629/CH5/EX5.5/example5_5.sce
ea79e81fb28f73fd2e8ac1583e3759d7af5a253d
[]
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
386
sce
example5_5.sce
clear clc //Example 5.5 RATE OF WATER RISE IN RESERVOIR A=40; //area[mi^2] Q1=400000; //discharge rate into the reservoir[ft^3/s] Q2=250000; //outflow rate[cfs] //mcv=mi-mo //(rho*Q2)+(rho*Qrise)=rho*Q1 Qrise=Q1-Q2 //[cfs] //1mi=5280ft, 1hr=3600sec Vrise=Qrise*3600/(A*(5280)^2) //rise rate[ft/hr] printf("\nThe rate of rise of water in the reservoir is %.3f ft/hr.\n",Vrise)
eda02cb7e5955dc6ec193577883a77b34490ba11
d973f05b85f02e1b0b45c4ddb9968283290f735a
/generate-scenarios.sce
ec66071b625b60e327788ab706f752730f13b498
[]
no_license
aka863/create_files_for_mike11
eac1b0ff8894e291b1a4ed18abd28e6a45a4fd59
2449ecb59b757dc232d1e46a04618b491fd271ce
refs/heads/master
2020-04-01T16:16:27.945868
2017-01-13T19:18:25
2017-01-13T19:18:25
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
786
sce
generate-scenarios.sce
// new scenarios // cc=0 no climate change // cc=1 moderate climate change // cc=2 high climate change // runoff=0 current // runoff=1 projected 2040 // runoff=2 green development // bndconditions=0 best conditions // bndconditions=1 worst conditions getd() scenario_matrix=[]; number=1; for returnp=[2 5 10 25 50] for loss=[0 10 50 70 100] for cc=[0 1 2] for runoff=[0.4 0.6 0.5] for bndconditions=[0 1] scenario_matrix=[scenario_matrix;[number,returnp,loss,cc,runoff,bndconditions]]; number=number+1; end end end end end scenario_matrix=[['scenario_number' 'return_period' 'wetland_loss' 'climate_change' 'runoff' 'bndconditions'];scenario_matrix]; csvWrite(scenario_matrix,"scenario_matrix.csv")
64f5b7f6aa0196b4bdcac0b886655ab75f468fa7
449d555969bfd7befe906877abab098c6e63a0e8
/2855/CH1/EX1.7/Ex1_7.sce
6130a7d1a9b93faff364ff9897df4e21e426fa3d
[]
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
436
sce
Ex1_7.sce
//Ex1_7 //given //page no 12 clc; clear; disp('Solution (i)'); c=3*10^8; //in m/s speed of light l=640; //in nm u=2.2*10^8; //in m/s lm=u*l/c; //wavelenth in medium printf("\n The wavelength is %0.1f nm\n",lm);// The answer in the book is misprinted disp('Solution (ii)'); n=l/lm; //refractive index printf("\n Refractive Index is %0.3f \n",n);//The answer in the book is misprinted
c171050f6f4d4532289bfb6e22033e4485cbeaec
449d555969bfd7befe906877abab098c6e63a0e8
/3012/CH9/EX9.3/Ex9_3.sce
bcdaa8d8604663eb9abe7b31545e68b8e6c0431f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
2,372
sce
Ex9_3.sce
// Given :- T1 = 300.00 // beginning temperature in kelvin p1 = 0.1 // beginning pressure in MPa r = 18.00 // compression ratio pr = 1.5 // The pressure ratio for the constant volume part of the heating process vr = 1.2 // The volume ratio for the constant pressure part of the heating process // Analysis // States 1 and 2 are the same as in Example 9.2, so u1 = 214.07 // in kj/kg T2 = 898.3 // in kelvin u2 = 673.2 // in kj/kg // Interpolating in Table A-22, we get h3 = 1452.6 // in kj/kg u3 = 1065.8 // in kj/kg // From Table A-22, h4 = 1778.3 // in kj/kg vr4 = 5.609 // Interpolating in Table A-22, we get u5 = 475.96 // in kj/kg // Calculations // Since Process 2–3 occurs at constant volume, the ideal gas equation of state reduces to give T3 = pr*T2 // in kelvin // Since Process 3–4 occurs at constant pressure, the ideal gas equation of state reduces to give T4 = vr*T3 // in kelvin // Process 4–5 is an isentropic expansion, so vr5 = vr4*r/vr // Part(a) eta = 1-(u5-u1)/((u3-u2)+(h4-h3)) // Result printf( ' The thermal efficiency is : %.2f',eta) // Part(b) // The specific volume at state 1 is evaluated in Example 9.2 as v1 = 0.861 // in m^3/kg mep = (((u3-u2)+(h4-h3)-(u5-u1))/(v1*(1-1/r)))*10**3*10**-6 // in MPa // Result printf( ' The mean effective pressure, is : %.2f MPa.',mep)
7811ab30b496537c60333f02f02a4aaec937576f
449d555969bfd7befe906877abab098c6e63a0e8
/1979/CH10/EX10.4/Ex10_4.sce
b53ce2bee6f18fbac90576f7a80115f41d2568e7
[]
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,067
sce
Ex10_4.sce
//chapter-10 page 487 example 10.4 //============================================================================== clc; clear; //For a geostationary communication satellite f=6*10^(9);//uplink frequency in Hz Pt=1000;//Transmitter power in W x=36000*10^3;//vertical distance between surface of earth and satellite in m a=5;//antenna elevation angle in deg GtdB=60;//antenna gain of transmitter in dB GrdB=0;//antenna gain of receiver in dB c=3*10^8;//Velocity of light in m/sec //CALCULATION Gt=10^(GtdB/10);//antenna gain of transmitter Gr=10^(GrdB/10);//antenna gain of receiver w=c/f;//wavelength in m Ar=(w^2)*(Gr/(4*(%pi)));//area in sqm r=x/(sind(a));//distance between transmitter and receiver in m [From Sine formula and diagram] Pr=((Pt*Gt*Ar)/(4*(%pi)*r^2))/10^(-12);//The received power at the input of the satellite receiver in pico watts //OUTPUT mprintf('\nThe received power at the input of the satellite receiver is Pr=%1.2f pico watts(pW)',Pr); //=========================END OF PROGRAM===============================
ce1cf3a091565a59f98b5ec5c0e4c266e9761a51
449d555969bfd7befe906877abab098c6e63a0e8
/764/CH7/EX7.18.a/data7_18.sci
ff13e336950d6438f4028ea5bc022ac7ab89c6fd
[]
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
842
sci
data7_18.sci
//(Threaded Joints) Example 7.18 //Refer Fig.7.35 on page 256 //Maximum force acting on the assembly Pmax (kN) Pmax = 10 //Minimum force acting on the assembly Pmin (kN) Pmin = 0 //Yield tensile strength of 45C8 Syt (N/mm2) Syt = 380 //Ultimate tensile strength of 45C8 Sut (N/mm2) Sut = 630 //Young's modulus of the plain carbon steel E1 (N/mm2) E1 = 207000 //Young's modulus of aluminium E2 (N/mm2) E2 = 71000 //Fatigue stress concentration factor Kf Kf = 2.2 //Expected reliability (%) reliability = 90 //Initial pre-load in the bolt Pi (kN) Pi = 5 //Factor of safety fs fs = 2 //Length of the bolt l (mm) l = 25 + 25 //Assume diameter of the bolt to be less than 7.5mm for Kb to be 1 d = 1 //As Ka is incorporated into Kf, assume the assembly to be ground //This is just to obtain a random value of Ka op = 1
fbdfb9833389b2407c57f0076f1438a0605c31e1
449d555969bfd7befe906877abab098c6e63a0e8
/3845/CH15/EX15.8/Ex15_8.sce
2e597f18e6a2cc716fe7e96c0ce768e18614a175
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
407
sce
Ex15_8.sce
//Example 15.8 m=1;//Mass of ice (kg) L_f=334*10^3;//Latent heat of fusion (J/kg) Q=m*L_f;//Heat required to melt the given mass of ice (J) T=0;//Melting temperature of ice (C) T=T+273;//Melting temperature of ice (K) delta_S=Q/T;//Change in entropy (J/K) printf('Increase in entropy = %0.2e J/K',delta_S) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest
1d773e64de80c1b02b9286f7f7c67b75cc113b7b
449d555969bfd7befe906877abab098c6e63a0e8
/1427/CH6/EX6.12/6_12.sce
6120a7a4339d244517db7410d5e42d62100d238a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
277
sce
6_12.sce
//ques-6.12 //Calculating valency of mercurous ion clc C2=0.01; C1=0.001;//content of mercurous nitrate (in N) E=0.029;//emf of cell (in V) F=96500; T=273+18;//temperature (in K) n=(2.303*8.314*T*log10(C2/C1))/(E*F); printf("The valency of mercurous ion is %.0f.",n);
9a95ca18d0d4e95ce209c35de49d87df48b330a3
006a2b1bdbcab37127ae402052015521febc527b
/main.sce
d28967548b7b899b095572e2f1c4dead34697d4e
[]
no_license
andrerodrig/GeneticAlgorithms
55f3bdfb8e17f05539136861c1c7af17a59d6262
bc4724584788893b4cd0780d0b2f79b0455940cd
refs/heads/main
2023-03-31T20:02:17.147452
2021-04-03T17:55:48
2021-04-03T17:55:48
354,190,959
1
0
null
2021-04-03T17:55:49
2021-04-03T03:35:48
Scilab
UTF-8
Scilab
false
false
1,526
sce
main.sce
clear clc exec("evaluation.sci", -1); exec("selection.sci", -1); exec("crossover.sci", -1); exec("mutation.sci", -1); exec("elitism.sci", -1); disp("-------------Algorítmo Genético-----------") len_population = 6; n_genes = 8; function eval_f = eval_function(x) eval_f = return((x.^2).*cos(2.5*x).*exp(-x)); endfunction function population = init_population(population_size, gen_number) // Generates a random population based on a seed seed = 666; grand("setsd", seed); population = return(grand(population_size, gen_number, "uin", 0, 1)); endfunction population = init_population(len_population, n_genes); disp("População") disp(population); evaluated = evaluation(population, eval_function); selected_matrix = selection(evaluated); disp("Indivíduos Selecionados"); disp(selected_matrix); descendants = crossover(population, selected_matrix, 1); disp("Descendentes"); disp(descendants); new_descnendants = mutation(descendants, 0.2, 0.1); disp("Descendentes apos processo de mutação"); disp(new_descendants); evaluated_parent = evaluated; disp("Avaliação dos pais"); disp(evaluated_parent); evaluated_descend = evaluation(new_descendants,eval_function); disp("Avaliação dos descendentes"); disp(evaluated_descend); integrated_individuals = 0.3; [new_population, new_eval] = elitism(population,new_descendants, evaluated_parent, evaluated_descend, integrated_individuals); disp("Nova geração de pais"); disp(new_population); disp("Avaliação dos novos pais"); disp(new_eval);
fde8cd0594214ffebe8e32bceaf28f7fd79f7076
449d555969bfd7befe906877abab098c6e63a0e8
/2792/CH2/EX2.5/Ex2_5.sce
5359603077642e62e6f514c159314030928873f7
[]
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,639
sce
Ex2_5.sce
clc h=1.05*10^-34 disp("h = "+string(h)+"Js") //initializing value of reduced plancks constant or dirac constant or h-bar mo = 9.1*10^-31 disp("mo = "+string(mo)+"kg") //initializing value of mass of electron ml = 0.98*mo disp("ml* = "+string(ml)+"kg") //initializing value of longitudinal mass mt = 0.19*mo disp("mt*= "+string(mt)+"kg")//initializing value of transverse mass a = 5.43*10^-10 disp("a = "+string(a)+"J") //initializing value of latice constant kx = ((2*%pi*0.95)/a) disp("kx = "+string(kx)+"m^-1") //initializing value of given k-value in x direction ky = ((2*%pi*0.1)/a) disp("ky = "+string(ky)+"m^-1") //initializing value of given k-value in y direction kz = ((2*%pi*0.0)/a) disp("kz = "+string(kz)+"m^-1") //initializing value of given k-value in z direction kxo = ((2*%pi*0.85)/a) disp("kxo = "+string(kxo)+"m^-1") //initializing value of k-value for Si occupies the (100) valley in x direction kyo = ((2*%pi*0.0)/a) disp("kyo = "+string(kyo)+"m^-1") //initializing value of k-value for Si occupies the (100) valley in y direction kzo = ((2*%pi*0.0)/a) disp("kzo = "+string(kzo)+"m^-1") //initializing value of k-value for Si occupies the (100) valley in z direction kl = kx-kxo disp("the change in k vector in x direction is,kl = kx-kxo = "+string(kl)+"m^-1") //calculation kt = ky-kyo disp("the change in k vector in y direction is,kt = ky-kyo = "+string(kt)+"m^-1") //calculation E= (((h^2)*(kl^2))/(2*ml))+(((h^2)*(kt^2))/(2*mt)) disp("The electron energy measured from the conduction bandege is ,E= (((h^2)*(kl^2))/(2*ml))+(((h^2)*(kt^2))/(2*mt))= "+string(E)+"J")//calculation
6ba40d7e4bf95538c44664acf4a9a0b8b8895885
099b4b0f30eafd7a0e9eac539caf7578b0e562fd
/Projets/simulation of the temperature evolution in a material/scilab/AnimationV.sce
3f8aa83d364b506cdca8dbbc2f96f475b0d420f0
[]
no_license
Mehdikossir/Projects
2c60cd6ff0ebbeda17d529d25c10d241a8eaf724
a43366f4aa11f541b70209ba9778d8547cb8b025
refs/heads/master
2021-09-26T13:55:43.208141
2021-09-13T21:53:08
2021-09-13T21:53:08
240,940,996
0
0
null
null
null
null
UTF-8
Scilab
false
false
318
sce
AnimationV.sce
tab= read("verre",100,101) for i=1:100 clf a=string(double(i*16/100)) plot2d(tab(i,:),rect=[0,285,101,304]) xtitle("Température à "+a+" sec, barre de verre","x","T(K)") sleep(100) end plot2d(tab(100,:),rect=[0,285,101,304]) xtitle("Température à "+string(16)+" sec, barre de verre","x","T(K)")
f9fc74cf6c093c86fc5d9425669aac7a86848862
449d555969bfd7befe906877abab098c6e63a0e8
/1514/CH3/EX3.4/3_4.sce
e090689c89f5a8aa0ce255054b7f15a88c270230
[]
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
979
sce
3_4.sce
//chapter 3 //example 3.4 //page 78 //to find Ie and Ic for a transistor connected in common base configuration clear; clc ; //given Veb=0.7; //emitter to base voltage in volts Vcb=6; //collector to base voltage in volts //finding Ie from input characteristics of common base configuration if Vcb==6 & Veb==0.7 then Ie=2; //emitter current end printf('\nIe=%d mA',Ie); //finding Ic from output characteristics of common base configuration if Vcb==6 & Ie==2 then Ic=2; //collector current end printf('\nIc1=%d mA',Ic); //finding Ic from current gain characteristics of common base configuration if Vcb==6 & Ie==2 then Ic=2; end printf('\nIc2=%d mA',Ic);
800a1bfb2667fc53d3d4963c775f10a5617d89a9
449d555969bfd7befe906877abab098c6e63a0e8
/2417/CH3/EX3.11/Ex3_11.sce
4f1e008501e8e7445d0a3ba193de81fc77bad870
[]
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,726
sce
Ex3_11.sce
clear; clc; printf("\t\t\tProblem Number 3.11\n\n\n"); // Chapter 3 : The First Law Of Thermodynamics // Problem 3.11 (page no. 111) // Solution //Given data // Inlet Outlet //Pressure(psia) 1000 1 //Temperature(F) 1000 101.74 //Velocity(ft/s) 125 430 //Inlet position(ft) +10 0 //Enthalpy(Btu/LBm) 1505.4 940.0 //Steam flow rate of 150000 LBm/hr //From the table, Z1=10; V1=125; h1=1505.4; Z2=0; V2=430; h2=940.0; //Energy equation is given by //((Z1/J)*(g/gc)) + (V1^2/(2*gc*J)) + h1 + q = ((Z2/J)*(g/gc)) + (V2^2/(2*gc*J)) + h2 + w/J printf("Solution for (a) \n"); q=0; //net heat J=778; //Conversion factor gc=32.174; //Unit: (LBm*ft)/(LBf*s^2) //gc is constant of proportionality g=gc; //Unit:ft/s^2 //g=The local gravity //W1=w/J; //Energy equation is given by W1=((Z1/J)*(g/gc)) + (V1^2/(2*gc*J)) + h1 + q - ((Z2/J)*(g/gc)) - (V2^2/(2*gc*J)) - h2; //Unit:Btu/LBm printf("If heat losses are negligible,\n"); printf("Total work of the turbine is %f Btu/LBm\n",W1); printf("Total work of the turbine is %f Btu/hr\n",W1*150000); //(W*150000*778)/(60*33000) //in terms of horsepower //1 hr=60 min //1 hp=33000 (ft*LBf) printf("Total work of the turbine is %f hp \n",(W1*150000*778)/(60*33000)); //1 hp =0.746 kW printf("Total work of the turbine is %f kW \n\n",((W1*150000*778)/(60*33000))*0.746); printf("\nSolution for (b) \n"); //Heat losses equal 50,000 Btu/hr q=50000/150000; //Unit:Btu/LBm //Heat loss W2=((Z1/J)*(g/gc)) + (V1^2/(2*gc*J)) + h1 - q - ((Z2/J)*(g/gc)) - (V2^2/(2*gc*J)) - h2; //Unit:Btu/LBm printf("If heat losses equal 50,000 Btu/hr , Total work of the turbine is %f Btu/LBm\n",W2);
e2440e197dfa9bfc8b494120c98b56a39328386f
449d555969bfd7befe906877abab098c6e63a0e8
/1673/CH7/EX7.3/7_3.sce
47cd371b391f48431f37ffa679f10e927dfff65d
[]
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
428
sce
7_3.sce
//example 7.3 //Vector Norms //page 262 clc;clear;close; A=[1,2,3;4,5,6;7,8,9]; s=0; for i=1:3 for j=1:3 s=s+A(j,i); end C(i)=s; s=0; end printf('||A||1=%d\n',max(C)); for i=1:3 for j=1:3 s=s+(A(i,j)*A(i,j)) end end printf('||A||e=%.3f\n',sqrt(s)); s=0; for i=1:3 for j=1:3 s=s+A(i,j); end C(i)=s; s=0; end printf('||A||~=%d\n',max(C));
db49b9f8fb321c82e9048531064e926746298a4b
449d555969bfd7befe906877abab098c6e63a0e8
/2795/CH4/EX4.1/Ex4_01.sce
f1fd85e105e728b017d492eadeb887f24b1ca8d1
[]
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
465
sce
Ex4_01.sce
// Scilab Code Ex4.1: Page-129 (2013) clc; clear m_e = 0.000549; // Rest mass of an electron, u m_He = 4.002603; // Rest mass of a helium, u M_alpha = m_He - 2*m_e; // Mass of alpha particle, u theta_max = 2*m_e/M_alpha; // Maximum scttering angle for aplha particle, rad printf("\nThe maximum scttering angle for aplha particle = %5.3f degrees", theta_max*180/%pi); // Result // The maximum scttering angle for aplha particle = 0.016 degrees
2a283d54d7fa5b71abb0d1e2f25920ffa977bae8
449d555969bfd7befe906877abab098c6e63a0e8
/2657/CH3/EX3.4/Ex3_4.sce
6ad3afa39c9d681dc6ab018f7f43814dcb62472d
[]
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,894
sce
Ex3_4.sce
//Calculations on dual combustion cycle clc,clear //Given: P1=1 //Pressure at 1 in bar T1=90+273 //Temperature at 1 in K r=13 //Compression ratio Q1=1675 //Heat supplied per kg of air in kJ/kg Q1_v=Q1/2,Q1_p=Q1/2 //Heat supplied at constant volume and pressure per kg of air in kJ/kg g=1.4 //Specific heat ratio(gamma) R='0.287' //Specific gas constant in kJ/kgK cv='0.71+20D-5*T' //Specific heat at constant volume as a function of temperature(T) in kJ/kgK //Solution: //Refer fig 3.21 P2=P1*r^g //Pressure at 2 in bar T2=T1*r^(g-1) //Temperature at 2 in K //Since, heat transfer at constant volume, Q1_v = integration(cv*dt) from T2 to T3 //Thus, Q1_v is the function of T3. Defining the function Q1_v of T3 function [Q1_vtoQ1]=Volume(T3) Q1_v=integrate(cv,'T',T2,T3) Q1_vtoQ1=Q1_v-Q1/2 endfunction //Since, heat transfer at constant volume must be equal to half of total heat added //Thus, their difference must be zero, function Q1_vtoQ1 is solve for zero T3=fsolve(1,Volume) //Temperature at 3 in K P3=P2*T3/T2 //Pressure at 3 in bar cp=addf(cv,R) //Specific heat at constant pressure as a function of temperature(T) in kJ/kgK //Since, heat transfer at constant pressure, Q1_p = integration(cp*dt) from T3 to T4 //Thus, Q1_p is the function of T4. Defining the function Q1_p of T4 function [Q1_ptoQ1]=Pressure(T4) Q1_p=integrate(cp,'T',T3,T4) Q1_ptoQ1=Q1_p-Q1/2 endfunction //Since, heat transfer at constant pressure must be equal to half of total heat added //Thus, their difference must be zero, function Q1_ptoQ1 is solve for zero T4=fsolve(1,Pressure) //Temperature at 4 in K rho=T4/T3 //Cut off ratio p=(rho-1)*100/(r-1) //Percentage of stroke at which cut off occurs //Results: printf("\n The maximum pressure in the cycle, P3 = %.1f bar",P3) printf("\n The percentage of stroke at which cut off occurs = %.2f percent\n\n",p)
1b0da29e6b8bc50e4c6cedf5a7a489951d7dfa01
ad618ca6b5ed579648f418556d871a22f9a21aaf
/sci_scripts/hitormiss.sci
86d40ffc818761251913867f2ed0dcb8a4e29b30
[]
no_license
manojgudi/sci_ocr
6de17d33475b7f2429a3dbe39fd0711138e3e14a
d18e7bc7a244d73f59830dd914f7aa9059726696
refs/heads/master
2020-05-20T10:05:31.612844
2013-03-15T05:16:45
2013-03-15T05:16:45
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
571
sci
hitormiss.sci
exec preprocessing.sci function [output_image] = hitormiss(structure, image) // structure and image are RGBImages // b = rgb2inv_bin(structure); // Structuring elements b1 = CreateStructureElement('custom', structure); // replace structure with 'b' in appropriate case b2 = b1; // Image elements // img1 = rgb2inv_bin((image)); img1 = image; //image is binary img2 = ((1-img1)); eroded_img1 = ErodeImage(img1,b1); eroded_img2 = ErodeImage(img2,b2); output_image = (eroded_img1)-(eroded_img2); //WriteImage(output_image, 'output_image.jpg') endfunction
ea2bdde0f5a5db3ee403e6b0958eb5f84b69a02f
cd6b2a575ffc101f992948fd3c735c6a14d485c1
/numeros_aleatorios.sci
71cc698e0db39c89378f7ba3ae6dd5544e7e9491
[]
no_license
jaflors/Practica-2-software-para-ingenieria-
273901badb8b9ae6f0d6190aac8f99949c571aee
83d04d805a7a9eb16d26c6523a3317b10944753e
refs/heads/master
2021-05-25T20:33:51.178652
2020-04-07T20:57:42
2020-04-07T20:57:42
253,909,769
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,431
sci
numeros_aleatorios.sci
clc; m= input('Ingrese la dimension de matriz '); raninf = input('Ingrese el rango inferior '); ransup = input('Ingrese el rango superior '); matriz= raninf+fix(rand(m,m)*(ransup-raninf+1)); disp ('matriz es =',matriz); num=input('Digite el numero que desea buscar ='); cont=0; for i=1:m for j=1:m if(matriz(i,j)==num)then cont=cont+1; end end end printf("el numero %d esta repetido %d veces\n\n ",num,cont); for i=1:m for j=1:m if(matriz(i,j)==num)then fila= i; columna =j; printf (" En la posición (%d ,%d)\n\n",fila,columna); end end end op=input("¿desea modificar los datos (s/n)? :","string"); if(op=='s') then for i=1:m for j=1:m if(matriz(i,j)==num)then fila= i; columna =j; printf (" ¿desea modificar la posición (%d ,%d) (s/n)? = \n",fila,columna); op2=input("","string"); if (op2=='s')then numero=input('ingrese el nuevo numero = '); matriz(fila,columna)=numero; else end end end end disp ('matriz con nuevos numeros =',matriz); else disp ('matriz es =',matriz); end
45b72b9bc4bf2c70116ddff826164809493d8736
9224090b07cb3f466fe72819cf90ca0c4dedc901
/Exercise 3/Exercise 3b.sce
736f25b62bb142cca4ebcbc6b835a9bd01a87704
[]
no_license
MGYBY/advanced_ocean_modelling
8c383b09f4077174559bd7964062625012026fa0
848f0f4d616d472021c31582b64557f04067ce74
refs/heads/main
2023-07-14T14:37:57.714203
2021-08-20T20:13:49
2021-08-20T20:13:49
398,386,684
4
1
null
null
null
null
UTF-8
Scilab
false
false
1,854
sce
Exercise 3b.sce
//========================================== // Exercise 3: Short Surface Gravity Waves //========================================== // Animation of dynamic pressure anomalies //Author: Jochen Kaempf, 2015 (update) f = gcf(); f.color_map = jetcolormap(64); f.figure_size = [800, 300]; // read input data eta1=read("eta.dat",-1,101); dp1=read("dp.dat",-1,101); [ntot nx] = size(eta1); x = (0:5:500)'; z = (0:2:100)'; for n = 1:100 // animation loop time = n; // time in seconds //grab data blocks itop = (n-1)*51+1; ibot = itop+50; dp = dp1(itop:ibot,1:101)'; eta = eta1(n,1:101)'; drawlater; clf(); // 2d color plot of pressure field Sgrayplot(x,-z,dp,zminmax=[-1 1]); a = gca(); a.data_bounds = [0,-50;500,0]; colorbar(-1,1); bc = gce(); bc.parent.font_size = 3; // contour plot of pressure field xset("fpf"," "); col(1:10) = 80; xset("thickness",2); contour2d(x,-z,dp,10,col); // specify graph & axis properties a = gca(); a.font_size = 3; a.data_bounds = [0,-50;500,0]; a.auto_ticks = ["off","off","on"]; a.sub_ticks = [4,3]; a.x_ticks = tlist(["ticks", "locations","labels"],.. [0 100 200 300 400 500], ["0" "100" "200" "300" "400" "500"]); a.y_ticks = tlist(["ticks", "locations","labels"],.. [-50 -40 -30 -20 -10 0], ["-50" "-40" "-30" "-20" "-10" "0"]); title("Time = "+string(int(time))+" secs","fontsize",4,'position',[150 0]); // draw title xstring(234,-48,"x (m)"); // draw x label txt=gce(); txt.font_size = 4; xstring(1,-35,"z (m)"); // draw z label txt=gce(); txt.font_size = 4; drawnow; // save frames as sequential GIF files //if n < 10 then // xs2gif(0,'ex100'+string(n)+'.gif') //else // if n < 100 then // xs2gif(0,'ex10'+string(n)+'.gif') // else // xs2gif(0,'ex1'+string(n)+'.gif') // end //end end // end reference for animation loop
61eefb55ac196cc24f95268d9e438b578e000cf7
449d555969bfd7befe906877abab098c6e63a0e8
/1691/CH6/EX6.12/Exmp6_12.sce
1dfbb10c31987f832ba0785c3e4830f14e122aa6
[]
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
652
sce
Exmp6_12.sce
//Example 6.12 clc disp("R_L = 8 ohm, V_CC = +-12 V hence dual supply version") pac=0.5*(12^2/8) format(2) disp(pac,"(1) (P_ac)_max(in W) = 1/2 * V_CC^2/R_L =") disp("(2) P_DC = V_CC*I_DC but I_DC = 2*I_m / pi") disp(" = V_CC * (2*I_m/pi)") disp("Now R_L = V_m/I_m i.e. I_m = V_m/R_L and V_m = V_CC") pdc=(12^2*2)/(8*%pi) format(8) disp(pdc,"Therefore, P_DC(in W) = V_CC * 2 * V_CC/R_L * 1/pi =") pdt=11.4591-9 disp(pdt,"Therefore, Total P_D(in W) = P_DC - P_ac =") pd=2.4591/2 format(7) disp(pd,"Therefore, P_D per transistor(in W) =") n=900/11.4591 format(5) disp(n,"(3) %eta(in percentage) = P_ac/P_DC * 100 =")
e08fae72842a0f1822c3fd9cc39a0f48207b1766
63c8bbe209f7a437f8bcc25dc1b7b1e9a100defa
/test/0040.tst
0c34028acb30023ce5a43031994be393b94d2742
[]
no_license
fmeci/nfql-testing
e9e7edb03a7222cd4c5f17b9b4d2a8dd58ea547c
6b7d465b32fa50468e3694f63c803e3630c5187d
refs/heads/master
2021-01-11T04:09:48.579127
2013-05-02T13:30:17
2013-05-02T13:30:17
71,239,280
0
0
null
2016-10-18T11:01:57
2016-10-18T11:01:55
Python
UTF-8
Scilab
false
false
334
tst
0040.tst
SpLITTER J {} fIlteR qP { } FILteR U {sRQQL Or not f } o bRAnCh mA groUPer A {AGGReGATe hE ,oM.HQo ,bitOR(M) As c } unGRoUpEr HB { } gRoUpfIlTer BT {} mERger s { moDUlE JHF { bRaNCHEs h, i Sk FI LN OR d di aP or Z = t DElta 47M <= aT.N } mODulE UJ { BrANCHES n m d V deLTA 76M oR KV sI G dELTa 32m } eXPoRT mKkgtjQ }
efa687b2b2b850df9e1a5030967ac49b8a8f767a
449d555969bfd7befe906877abab098c6e63a0e8
/1850/CH6/EX6.9/exa_6_9.sce
67d2158a2e9ee58fcd71f30721bc87a43e6a81a4
[]
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
exa_6_9.sce
// Exa 6.9 clc; clear; close; // Given Data fL= 200;// in Hz fH= 1;// in kHz fH=fH*10^3;// in Hz //Let the capacitor C_desh be of 0.01 micro F C_desh= 0.01*10^-6;// in F R_desh= 1/(2*%pi*fH*C_desh);// in ohm R_desh=R_desh*10^-3;// in kohm R_desh= 18;// in kohm // Let C=0.05*10^-6;// in F R= 1/(2*%pi*fL*C);// in ohm R=R*10^-3;// in kohm R= 18;// in k ohm Rf= 10;// in kohm disp(Rf,"Value of Rf, Rf_desh, R1 and R1_desh in kohm"); disp(R,"Value of R and R_desh in kohm"); disp(C_desh*10^6,"Value of C_desh in micro F") disp(C*10^6,"Value of C in micro F")
22502714cc048759c1452739854690be89ea035d
449d555969bfd7befe906877abab098c6e63a0e8
/2321/CH6/EX6.10.1/EX6_10_1.sce
3fa2ab27ed1d38f041a78d325605545d254fdc99
[]
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
444
sce
EX6_10_1.sce
//Example No. 6.10.1 clc; clear; close; format('v',6); n=10;//no. of elements //d=lambda/4;(spacing) dBYlambda=1/4;///(Spacing/wavelength) //Broadside array D=2*n*dBYlambda;//unitless(Directivity) D=10*log10(D);//dB(Directivity) disp(D,"Directivity for broadside array in dB : "); //Endfire array D=4*n*dBYlambda;//unitless(Directivity) D=10*log10(D);//dB(Directivity) disp(D,"Directivity for Ordinary endfire array in dB : ");
abcbcacf4a82ff19e97bebe171dc7b636e22dc4d
717ddeb7e700373742c617a95e25a2376565112c
/3165/CH5/EX5.1/Ex5_1.sce
fffa0e545cc0acde4a7693b59bbadba8af0dbc8b
[]
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
400
sce
Ex5_1.sce
//Example 5 . 1 //To Compare the Va r i enc e o f Output due to A/D Conve r s i on p r o c e s s // y ( n ) =0.8 y ( n􀀀1)+x ( n ) clc ; n =8; // Bi t s r =100; //Range Q =2* r /(2^ n); // Qu a n t i z a t i o n St ep S i z e Ve =(Q ^2) /12; Vo=Ve *(1/(1 -0.8^2) ); disp (Q, 'QUANTIZATION STEP SIZE =' ); disp (Ve , 'VARIANCE OF ERROR SIGNAL =' ); disp (Vo , 'VARIANCE OF OUTPUT =' );
b6c54287b76d12ff9460c14197046c95c9f2b706
449d555969bfd7befe906877abab098c6e63a0e8
/542/CH11/EX11.10/Example_11_10.sce
5a1984ebd5a713c95739530e76e93704fc3a1f68
[]
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
630
sce
Example_11_10.sce
//Example 11.10 clear; clc; printf("\tExample 11.10\n"); //From material balance // D+W=1 // 0.995D+0.1W=1*3 A=[1 1;0.995 0.1]; B=[1;3]; Rm = (1952-1547)/(1547-295); printf("\n Rm = %.3f",Rm); NA = 1.08*405; printf("\n Since the actual reflux is 8 pre cent above the minimum NA = 1.08*NmA = %.3f",NA); N = 5/0.6; printf("\n Number of plates to be required are %.3f",5/0.6); Qb_W = 582 - (-209); printf("\n Heat input to the boiler per unit mass of bottom product is %.3f",Qb_W); printf("\n Heat input to the boiler = %.3f kW",791*0.78); printf("\n Condenser duty = %d kW",(1984-296)*0.22);
eb33b73a6fd6f4c1937b3e6789f3f3747bb22cc9
449d555969bfd7befe906877abab098c6e63a0e8
/3760/CH1/EX1.61/Ex1_61.sce
52820d1542d2317c16053f5a3ffb0c28162bb845
[]
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,491
sce
Ex1_61.sce
clc; // subscript 1 and 2 indicates h v and l v winding P=10000; // rated VA of transformer E1=2300; // rated voltage E2=230; // rated voltage r1=10; // total resistance r2=0.10; // total resistance l1=40*10^-3 ; l2=4*10^-4; // self-inductances m=10; // mutual inductance k=E2/E1; // turns ratio f=50; // frequency of supply; disp('case 1'); L1=(m/k)+l1; printf('Primary self inductance is %f H\n',L1); L2=(m*k)+l2; printf('Secondary self inductance is %f H\n',L2); disp('case b'); r21=r2/k^2; // l v side resistance referred to h v side l21=l2/k^2; // l v side self inductance referred to h v side M1=m/k; // mutual inductance referred to h v side printf('circuit parameters referred to primary winding are R1=%f ohm,R2=%f ohm,L1=%f H,L2=%f H and Lm1=%f H\n',r1,r21,l1,l21,M1); r12=r1*k^2; // h v side resistance referred to l v side l12=l1*k^2; // h v side self inductance referred to l v side M2=m*k; // mutual inductance referred to l v side printf('circuit parameters referred to secondary winding are R1=%f ohm,R2=%f ohm,L1=%f H,L2=%f H and Lm2=%f H\n',r12,r2,l12,l2,M2); disp('case c'); lo=5+5*%i; // load connected to secondary x1=2*%pi*f*l12; // leakage reactance x2=2*%pi*f*l2; // leakage reactance re2=real(lo)+r2+r12; // total resistance after referring to l v side xe2=imag(lo)+x1+x2; // total reactance after referring to l v side Z=re2+%i*xe2; // total impedance vt=(E2/abs(Z))*abs(lo); printf('Secondary terminal voltage is %f v',vt);
f144f451e739e363d86c3f27d26045da2af48028
b4772b59ca8801667968f8ca6f2674c26816c199
/Hello World.sce
eee11757c0a29c5ea3c279a29d4e8950a74128ac
[]
no_license
thestics/scilab
6ef2534475e9cfb6fc0302a805bdbf70f188567e
85284b17a1bdf5a824e90e55ab3a803a2df69c66
refs/heads/master
2021-08-23T21:49:14.071755
2017-09-21T06:26:32
2017-09-21T06:26:32
103,492,879
0
0
null
2017-12-06T19:07:10
2017-09-14T06:09:53
Scilab
UTF-8
Scilab
false
false
27
sce
Hello World.sce
a='Hello world'; disp(a)
137960805b2090f786ee6a2b60a1794738945da0
449d555969bfd7befe906877abab098c6e63a0e8
/1850/CH3/EX3.6/exa_3_6.sce
f19443028261eeb5f7bac5ccb4fc1a0fdbd0373d
[]
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
471
sce
exa_3_6.sce
// Exa 3.6 clc; clear; close; //given data R1=330;// in ohm R_f=3.3;// in k ohm R_f=R_f*10^3;// in ohm R_in= 2;// in M ohm R_in=R_in*10^6;// in ohm R_out=75;// in ohm A=2*10^5; f_o=5;// in Hz B= R1/(R1+R_f); AB= A*B; A_f = -R_f/R1; disp(A_f,"Voltage gain") R_inf= R1; disp(R_inf,"Input Resistance in ohm") R_outf= R_out/(1+A*B);// in ohm disp(R_outf,"Output Resistance in ohm"); f_f= f_o*(1+A*B);// in Hz disp(f_f*10^-3,"Bandwidth in kHz");
a846bdc45966cbac17f2910b2abd814e31a6edd9
449d555969bfd7befe906877abab098c6e63a0e8
/671/CH1/EX1.7/1_7.sce
eb60016c5549f0494d0a4fe3707bef52c788b42c
[]
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
206
sce
1_7.sce
R1=1 R2=6 R3=12 R4=4 I4=3/4 V6=6 V4=3/4*4 I12=3/12 IR=3/4+I12 R=-12*I12+V6 //KVL disp(R,"R(Ohm)=") I6=V6/6 I1=I6+IR Vs=1*I1+V6 //KVL disp(Vs, "Vs(V)=") disp(Vs*I1,"Power(W)=")
882fd0f30dc1cd8f779c449036934b9ee73ffc41
449d555969bfd7befe906877abab098c6e63a0e8
/3775/CH3/EX3.14/Ex3_14.sce
5083948a69a0d2783ea0ec5e7ff6c7a464832799
[]
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
470
sce
Ex3_14.sce
//Ex 3.14 page 127 clc; clear; close; n=3;// no. of phase R=60;// ohm Vs=400;// V alpha = 30;// degree Vm=Vs*sqrt(2);// V Vo=3*Vm/%pi*cos(alpha*%pi/180);// V Io=Vo/R;// A Is=Io*sqrt(2/3);// A P=Io**2*R;// W pf=P/sqrt(3)/Vs/Is;// power factor printf('\n Average load voltage = %.3f V',Vo) printf('\n Average load current = %.1f A',Io) printf('\n input power factor = %.4f',pf) // Note : Ans in the textbook is wrong as in calculation for pf Io is used in place of Is
57a6f3c67d8a6568e83967514631183d757f0aea
449d555969bfd7befe906877abab098c6e63a0e8
/1076/CH7/EX7.4/7_4.sce
a4e8b92051686d0becdd951a1a354b4efc62e71d
[]
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
475
sce
7_4.sce
clear; clc; f=50; d=9e-3; l=3.5; h=16; dc=.5; hp=4 ha= round((sqrt(3)*l/2)*100)/100; DaP=ha+hp; DaQ=DaP+dc; DbP=round(sqrt((l/2)^2+hp^2) *100)/100 DcP=DbP DbQ=round(sqrt((l/2)^2+(hp+dc)^2) *100)/100 DcQ=DbQ Ia=200*exp(%i * 0); Ib=200*exp(%i *-2* %pi/3); Ic=200*exp(%i *2* %pi/3); si=2e-7* ((Ia * log(DaQ/DaP))+(Ib * log(DbQ/DbP))+(Ic * log(DcQ/DcP))) V=2*%pi * 50* abs(si); mprintf("voltage induced in telephone line = %.3f e-3V/m", V*1e3)
4249552328b94a7ec3afc09e1f987fa030d286b0
449d555969bfd7befe906877abab098c6e63a0e8
/1529/CH5/EX5.13/5_13.sce
31b1c143513b1a864dc814ade3c86984775db00b
[]
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
613
sce
5_13.sce
//Chapter 5, Problem 13, Figure 5.26 clc; R1=15; //in ohms R2=10; //in ohms R3=38; //in ohms V=250; //in volts Pt=2500; //in watts I=Pt/V; //current in amperes Rt=V/I; r=(R1*R2)/(R1+R2); //equivalent resistance of R1 and R2 V1=I*r; V2=V-V1; i=V2/R3; rx=V2/i; I1=(R2/(R1+R2))*I; I2=(R1/(R1+R2))*I; printf("\n(a) Value of resistor Rx = %d ohm\n\n",rx) printf("\n(b) Current flowing in each of the four resistors \n I1 = %d A\n I2 = %d A\n I3 = I4 = %d A",I1,I2,i);
c8c46494bf470f613675b29ea503f7a9d710abb7
449d555969bfd7befe906877abab098c6e63a0e8
/3754/CH30/EX30.1/30_1.sce
b3fd8996d6701a31a85e895bb6afad06638ac4e0
[]
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
682
sce
30_1.sce
clear// //Variables ID = 5.0 * 10**-3 //Drain current (in Ampere) VDD = 10.0 //Voltage (in volts) RD = 1.0 * 10**3 //Drain resistance (in ohm) RS = 500.0 //Source resistance (in ohm) //Calculation VS = ID * RS //Source voltage (in volts) VD = VDD - ID * RD //Drain voltage (in volts) VDS = VD - VS //Drain-Source voltage (in volts) VGS = -VS //Gate-to-source voltage (in volts) //Result printf("\n Value of drain-to-source voltage is %0.3f V.\nValue of Gate-to-source voltage is %0.3f V.",VDS,VGS)
017f88ef71d7e04a35eb17c33d50e05786c8781f
4483ff664b4d01c53114a7fc535625c197c8f989
/green routing/mutate.sci
93929fb85615e3a2f88a55621ea9ed0784d09a95
[]
no_license
winash1618/myproject
be9b77d4a405edce7e625a999803016b50ab99d0
2132e76e6a996bee19f356a2b68af827fa6c621b
refs/heads/master
2022-12-06T06:09:06.487979
2020-08-20T02:00:54
2020-08-20T02:00:54
288,880,158
0
0
null
null
null
null
UTF-8
Scilab
false
false
288
sci
mutate.sci
function [n] = mutate() for i=1:pop mpro=rand if mpro<o.1 mut1=1+round((z-1)*rand(1,1)) mut2=1+round((z-1)*rand(1,1)) temp=a(i,mut1) a(i,mut1)=a(i,mut2) a(i,mut2)=temp end end n=a endfunction
f7229e9cf16c6f8a1bc06e5c5c8af84fcdeda0d9
449d555969bfd7befe906877abab098c6e63a0e8
/2513/CH6/EX6.2/6_2.sce
7625234f476a4e5251761898060cb0d875c77e14
[]
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
286
sce
6_2.sce
clc //initialisation of variables t=60//f v=0.52//in t1=80//F p=40//percent v1=1.03*0.40//in w=8//mph pa=29.0//in p1=0.497//ft q=1.32*10^-2//ft r=0.268//ft //CALCULATIONS E=p1*(1-q*pa)*(1+r*w)*(v-v1)//in //RESULTS printf('the evaporation for the a day during=% f in',E)
09c6d12799c0f63603cc3c3715e81ae588b3ab98
99b4e2e61348ee847a78faf6eee6d345fde36028
/Toolbox Test/cummin/cummin3.sce
86c2916282edc7d704c3ed6f6c533932aaf7be6b
[]
no_license
deecube/fosseetesting
ce66f691121021fa2f3474497397cded9d57658c
e353f1c03b0c0ef43abf44873e5e477b6adb6c7e
refs/heads/master
2021-01-20T11:34:43.535019
2016-09-27T05:12:48
2016-09-27T05:12:48
59,456,386
0
0
null
null
null
null
UTF-8
Scilab
false
false
231
sce
cummin3.sce
//check o/p when i/p is a matrix and the dimensio along which to find the min value is mentioned A = [3 5 2; 1 6 3; 7 8 1]; m=cummin(A,2); disp(m); //output // 3. 3. 2. // 1. 1. 1. // 7. 7. 1. //
109b8563196e565a7c708a158bf89dc5424301d3
449d555969bfd7befe906877abab098c6e63a0e8
/2855/CH12/EX12.23/Ex12_23.sce
6247171d6ce38002af4c89f3b7c7ed7fe4f65dfd
[]
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
Ex12_23.sce
//Chapter 12 //page no 490 //given clc; clear all; Ipd=0.15; //in mA n=0.75; e=1.6*10^-19; //electron charge hv=1.55*10^-19; Pin=hv*Ipd/n/e; printf("\n Pin = %0.6f mW",Pin); //Result //answer in book is misprint
f3e082703602960f4ee1ba2a69f336909ac8f370
449d555969bfd7befe906877abab098c6e63a0e8
/2087/CH3/EX3.24/example3_24.sce
3fe61892d9bfac88f0b27a044a97fc192d37d1b3
[]
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
625
sce
example3_24.sce
//example 3.24 //calculate daily consumptive //discharge in canal clc; //given Fc=0.26; //Field capacity of soil A=3000; //Area of field OM=0.12; //optimum moisture pwp=0.1; //permanent wilting point d=80; //depth of root zone RD=1.4; //relative density of soil f=10; //frequency of irrigation eita=0.23; //overall efficiency D=RD*d*(Fc-OM); U=D*10/f; Wr=A*D*100; q=Wr/(f*24*3600); q=round(q*100)/100; mprintf("daily consumptive=%f mm.",U); mprintf("\ndischarge in canal=%f q cumecs.",q);
2729057ce85412212c7fd22255391fad9d6f60b7
449d555969bfd7befe906877abab098c6e63a0e8
/2966/CH1/EX1.9.37/1_9_37.sce
67a2678a1e28147ab3e721280ec1d6f0566d07c5
[]
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
818
sce
1_9_37.sce
//water// //page 1.38 example 9// clc Purity_Lime=.9 Purity_soda=.9 W1=19;//amount of MgCl2 in ppm// W2=27.2;//amount of CaSO4 in ppm// W3=4.9;//amount of H2SO4 in ppm// W4=6;//amount of AL3+ in ppm// M1=100/95;//multiplication factor of MgCl2// M2=100/136;//multiplication factor of CaSO4// M3=100/49;//multiplication factor of H2SO4// M4=100/18.0018;//multiplication factor of AL3+// P1=W1*M1;//in terms of CaCO3//L+S P2=W2*M2;//in terms of CaCO3//S P3=W3*M3;//in terms of CaCO3//L+S P4=W4*M4;//in terms of CaCO3//L+S V=500000;//volume of water in litres// L=0.74*(P1+P3+P4)*V/Purity_Lime;//lime required in mg// L=L/10^3; printf("\n Amount of Lime required is %.2f g",L); S=1.06*(P1+P2+P3+P4)*V/Purity_soda;//soda required in mg// S=S/10^3; printf("\n Amount of Soda required is %.f g",S)
bd2240c32b7fc2b100563f777c330d0eddff11f9
449d555969bfd7befe906877abab098c6e63a0e8
/75/CH7/EX7.3/ex_3.sce
43d4a0fe957524be4bd54559dbaed24db1b1b895
[]
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
223
sce
ex_3.sce
// PG (477) A = [2 1 0;1 3 1;0 1 2] lam = spec(A)' lam1 = lam(1,1) lam2 = lam(1,2) lam3 = lam(1,3) // Orthonomal Eigen vectors u1 = (1/sqrt(3))*[1;-1;1] u2 = (1/sqrt(2))*[1;0;-1] u3 = (1/sqrt(6))*[1;2;1]
373694d26d7b6acaaec6dca138f50967ee9ac685
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.1.1/macros/percent/%rrs.sci
e759647dab1ccd4a07b4b86b6ee5c7186f91eafb
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
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
163
sci
%rrs.sci
//<f>=%rrs(f,n) // %rrs(f,m) calcule la division a droite de la matrice de fractions //rationnelles f par la matrice de scalaires m (f/m) //! f=f*inv(n) //end
23abd25d1c9a36c3d43ac9680b067d1993a185fe
449d555969bfd7befe906877abab098c6e63a0e8
/1847/CH2/EX2.62/Ch02Ex62.sce
98ebd9c277e2ab9c68c45caf42557b0cb3eee167
[]
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
542
sce
Ch02Ex62.sce
// Scilab Code Ex2.62:: Page-2.49(2009) clc; clear; R = 80; // Radius of curvature of the convex surface, cm D5 = 0.192; // Diameter of 5th dark ring, cm D25 = 0.555; // Diameter of 25th dark ring, cm n = 5; // Order of interfernce Newton ring P = 25 - n; lambda = (D25^2 - D5^2)/(4*P*R); // Wavelength of light used, cm printf("\nThe wavelength of light used = %5.3e cm", lambda); // Result // The wavelength of light used = 4.237e-005 cm // The expression for lambda is given wrong in the textbook but solved correctly
7ced7a2cb0e69356cd80abdde83b3938edd965ab
20479ef6060920bd3d37ae74ecd2129f8ba8f29e
/Questao7.sce
5668ffad01f3af45bf69daeec55f255354220ad6
[]
no_license
andersonvalentim/Atividade-Denilson-Scilab-UFERSA-
db4b58fc082bd80f076e67908435674f49ce45e4
4d02ddd342681165028ea6b4ebc7ec6d8bb7d9a9
refs/heads/master
2021-09-12T15:30:30.076790
2018-04-18T01:58:47
2018-04-18T01:58:47
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
356
sce
Questao7.sce
//Questao7 idade=input("Digite sua idade"); if idade>=5 & idade<7 then printf("Infantil A"); end if idade>=8 & idade<=10 then printf("Infantil B"); end if idade >=11 & idade<=13 then printf("Juvenil A"); end if idade>=14 & idade<=13 then printf("Juvenil B"); end if idade>=18 then printf("Adulto"); end
d2b0362a4c9ee2474ddf94693a12ec5657e06e07
5d3cb2f1a04d31469ca086781ff36de232bb0c51
/QualiteRepresentationIndividu.sci
03d0ba14f2f47f3cf5635e904f9aeb469dd1f72a
[]
no_license
Tamaube/ACP
2d8f8d43870deb5c62f57ba292fb81a617c0d884
99801e3dae7fbbe5d0f423fdcec04511555ad7dc
refs/heads/master
2021-01-19T07:39:10.679596
2015-02-24T20:09:56
2015-02-24T20:09:56
29,344,508
0
0
null
null
null
null
UTF-8
Scilab
false
false
623
sci
QualiteRepresentationIndividu.sci
function Q2 = QualiteRepresentationIndividu(BON,Z, composanteI, composanteJ) // fonction permettant de trouver les points pour faire la projection des individus // on cherche Pi = (Zi.u1/norme(Zi);Zi.U2/norme(Zi)) nbIndividu = size(Z,"r"); nbAxe = size(BON,"c"); Q2 = zeros(nbIndividu,2); for i = 1 : nbIndividu scal = ((Z(i,:)')'*(BON(:,composanteI))); norme = norm(Z(i,:)); Q2(i,1) = (scal*scal/(norme*norme)); scal = ((Z(i,:)')'*(BON(:,composanteJ))); norme = norm(Z(i,:)); Q2(i,2) = (scal*scal/(norme*norme)); end endfunction
526cd9bf2b616e474d1b694dfef4fac2e9fc29c2
449d555969bfd7befe906877abab098c6e63a0e8
/40/CH8/EX8.2/Exa_8_2.sce
716bed88bd7e840d22c4244c1c17753ce0828818
[]
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
172
sce
Exa_8_2.sce
//The DTFT and conjugate symmetry //8-point DFT x=[1 1 0 0 0 0 0 0]; XDFT=fft(x,-1); disp(XDFT,'The DFT of x is'); disp('from conjugate symmetry we see XDFT[k]=XDFT[8-k]');
8cf6bee6aaf8b9fd4a68b51acb9ea021e01c0998
449d555969bfd7befe906877abab098c6e63a0e8
/1370/CH7/EX7.22/exp7_22.sce
ad5e48d6cca89e7df226f9d5e2bdd6f817fbb246
[]
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
730
sce
exp7_22.sce
//example7.22 clc disp("R_L =5 k-ohm=5*10^3 ohm, N1:N2 is 2:1") disp("E_p = 460V RMS value") disp("Therefore, (E_s)/(E_p)=N2/N1=1/2") disp("Therefore, E_s = (E_p)/2 = 230 V") e=230*sqrt(2) format(8) disp(e,"Therefore, E_sm(in V)=") disp("Now, (I_DC)=(2*I_m)/pi where (I_m)=(E_sm)/(R_L) neglecting R_f") i=(2*325.269)/(%pi*5*10^3) format(8) disp(i,"Therefore, (I_DC)[in A]=(2*E_sm)/(pi*R_L)=") d=41.41*5 format(8) disp(d,"DC load voltage E_DC(in V) = (I_DC)*(R_L) = ") disp("Ripple voltage = ripple factor*(V_DC)") disp("Ripple factor of bridge rectifier is 0.482") r=0.482*207.072 format(5) disp(r,"Therefore, Ripple factor = ") disp("PIV rating of each diode = (E_sm) for bridge rectifier = 325.27 V")
77f10f65c4fff53e3dbdd8d363eb2f57ec60c231
449d555969bfd7befe906877abab098c6e63a0e8
/3886/CH15/EX15.6/15_6.sce
8cdc101008430f55e976a40d603e3e3423108ce1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
472
sce
15_6.sce
//Body on an inclined plane //Refer fig. 15.8 (a),(b) and (c) //Consider 1200 N block //applying equilibrium condition N=1200*cosd(12) //N mu=0.2 //From Law of friction F=mu*N //applying equilibrium condition a=(800-484.25)/(122.32+((800)/(9.81))) //m/sec^2 //solving for T T=800-((800*1.549)/(9.81)) //N //initial velocity=0 t=3 //sec //distance moved in 3 sec s=0*3+((1.549*3^2)/(2)) //m printf("\na=%.3f m/sec^2\nT=%.2f N\ns=%.3f m",a,T,s)
fa6850eb329cb6cfa734f3f23806056c6ce8235d
449d555969bfd7befe906877abab098c6e63a0e8
/620/CH24/EX24.4/example24_4.sce
2b163b0cd1cb6d0552a15f8ff826f79c11d0eb3e
[]
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
555
sce
example24_4.sce
r=2200; f=60; i=0.015; vp=60; disp("Part a"); vr=i*r; disp("the reading of voltmeter (in V) across the resistor is"); disp(vr); disp("Part b"); vc=vp/(2*sqrt(2)); disp("the r.m.s. voltage (in V) across the capacitor is"); disp(vc); disp("Part c"); v=sqrt(vr^2+vc^2); disp("the applied voltage (in V) is"); disp(v); disp("Part d"); deg=-atan(vc/vr)*180/%pi; disp("the phase angle (in deg) between current and applied voltage is"); disp(deg); disp("Part f"); x_c=vc/i; c=1/(2*%pi*f*x_c); disp("the capacitance (in μF) is"); disp(c*10^6);
fd71a014aa044c231ee516e19d933b647c532308
449d555969bfd7befe906877abab098c6e63a0e8
/1088/CH23/EX23.11/Example11.sce
7dc21fa2e3f9e9d59d86fa9074744132314beb90
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
3,217
sce
Example11.sce
clear flag=1 mode(-1) clc printf("Example 11 : Show the method of listing all the permissions in a file \n") disp("****************************************************************") disp("Answer : ") disp("INSTRUCTIONS : ") halt(' ') disp("1.These programs are part of systems programming in Unix and the commands have NO EQUIVALENT IN SCILAB") halt(' ') disp('2.However if possible some selected programmes have been TRIED TO BE IMPLEMENTED') halt("") disp('3.For most of the programmes whose equivalent is NOT THERE IN SCILAB,only the output has been printed as given in the textbook with no interactive input as in the programme below') halt("") disp("4.However the .c files which are displayed here are also made into a seperate file.If you are a unix user then try compiling and running the programme with gcc or cc compiler") disp("5.The inconvenience is regretted.") halt('.............Press [ENTER] to continue.....') halt("") clc printf("\tUNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)\n\n\n") i=0 i=i+1;f(i)='/* Program: check_all_perm.c -- Checks all 12 permission bits of a file */' i=i+1;f(i)='' i=i+1;f(i)='#include <stdio.h>' i=i+1;f(i)='#include <sys/stat.h>' i=i+1;f(i)='#include <fcntl.h>' i=i+1;f(i)='' i=i+1;f(i)='void print_permissions(char *,struct stat *) ;' i=i+1;f(i)='void check_permission(int, int, char *);' i=i+1;f(i)='' i=i+1;f(i)='int main(int argc,char *argv[]) {' i=i+1;f(i)=' int i,fd,perm;' i=i+1;f(i)=' char *filename = argv[1];' i=i+1;f(i)=' struct stat statbuf;' i=i+1;f(i)=' mode_t perm_flag[] = {S_IRUSR,S_IWUSR,S_IXUSR,S_IRGRP,S_IWGRP,S_IXGRP,S_IROTH,S_IWOTH,S_IXOTH,S_ISUID,S_ISGID,S_ISVTX );' i=i+1;f(i)='' i=i+1;f(i)=' char *mesg[] = {'+ascii(34)+'User-readable'+ascii(34)+','+ascii(34)+'User-writable'+ascii(34)+','+ascii(34)+'User-executable'+ascii(34)+','+ascii(34)+'Group-readable'+ascii(34)+','+ascii(34)+'Group-writable'+ascii(34)+','+ascii(34)+'Group-executable'+ascii(34)+','+ascii(34)+'Others-readable'+ascii(34)+','+ascii(34)+'Others-writable'+ascii(34)+','+ascii(34)+'Others-executable'+ascii(34)+','+ascii(34)+'SUID bit set'+ascii(34)+','+ascii(34)+'SGID bit set'+ascii(34)+','+ascii(34)+'Sticky bit set'+ascii(34)+' );' i=i+1;f(i)='' i=i+1;f(i)=' print_permissions(filename,&statbuf);' i=i+1;f(i)=' ' i=i+1;f(i)=' perm = statbuf.st_mode & -S_IFMT;' i=i+1;f(i)=' for(i = 0; i < 12;i ++)' i=i+1;f(i)=' check_permissions(perm, perm_flag[i], mesg[i]);' i=i+1;f(i)='}' n=i printf("\n\n$ cat check_all_perm.c # to open the file emp.lst") halt(' ') u=mopen('check_all_perm.c','wt') for i=1:n mfprintf(u,"%s\n",f(i)) printf("%s\n",f(i)) end mclose(u) halt('') clc halt(' ') printf("$ cc check_all_perm.c") halt(' ') printf("\n$ a.out /usr/bin/passwd ") halt(' ') printf("\nFile: /usr/bin/passwd Permissions: 4511\nUser-readable\nUser-executable\nGroup-executable\nOthers-executable\nSUID bit set\n") halt(' ') printf("\n\n\n$ exit #To exit the current simulation terminal and return to Scilab console\n\n") halt("........# (hit [ENTER] for result)") //clc() printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment') sleep(1000)
5f8d6ee820889e4319365664ecc0dcdcbc678ac4
02193ece59037456d298d519b38661b5dfd0ab17
/2nd-year/scilab/graphes-vrac.sce
10b6125b8c7630d33ff26f6395de2092a54b024f
[]
no_license
pakpake/licence-informatique
561558d00f012a536ae97f74ee705e6c04dcecda
c9877ad75d3c4ee6e3904fe8b457f8b3242c7c3f
refs/heads/main
2023-05-09T06:33:19.927698
2021-05-26T19:49:03
2021-05-26T19:49:03
368,866,811
3
1
null
null
null
null
UTF-8
Scilab
false
false
384
sce
graphes-vrac.sce
// Construire 2 petits graphes // graphe 1 nbSommet = 5 orien = %F // False car graphe non-orienté aretes = [1 2 ; 1 5 ; 1 4 ; 2 5 ; 2 4 ; 2 3 ; 3 4] graphe6p2 = list(nbSommet,orien,aretes) // graphe 2 sommets = 7 orientation = %F // graphe non-orienté aret = [ 1 2 ; 1 3 ; 2 5 ; 2 6 ; 2 7 ; 4 3 ; 4 5 ; 6 5 ; 7 3 ; 7 4 ; 7 6 ] graphe1p16 = list(sommets,orientation,aret)
33a42ee3f610227d9a56d176f21933c4abd44bfa
449d555969bfd7befe906877abab098c6e63a0e8
/839/CH6/EX6.2/Example_6_2.sce
ed2213d6538d9987fb7df7e5c68de160e845e48f
[]
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,385
sce
Example_6_2.sce
//clear// clear; clc; //Example 6.2 //Given Tr = 1000; //[R] pr = 20; //[atm] Ma_a = 0.05; gama = 1.4; gc = 32.174; //[ft-lb/lbf-s^2] M = 29; R = 1545; //(a) //Using Eq.(6.45) A = 2*(1+((gama-1)/2)*Ma_a^2)/((gama+1)*Ma_a^2); fLmax_rh = (1/Ma_a^2-1-(gama+1)*log(A)/2)/gama //(b) //Using Eq.(6.28), the pressure at the end of the isentropic nozzle pa A = (1+(gama-1)*(Ma_a^2)/2); pa = pr/(A^(gama/(gama-1))) // [atm] //From Example 6.1, the density of air at 20atm and 1000R is 0.795 lb/ft^3 //Using Eq.(6.17), the acoustic velocity Aa = sqrt(gc*gama*Tr*R/M) //[m/s] //The velocity at the entrance of the pipe ua = Ma_a*Aa //[m/s] //When L_b = L_max, the gas leaves the pipe at the asterisk conditions, where Ma_b = 1; // Using Eq.(6.43) A = (gama-1)/2; Tstar = Tr *(1+A*Ma_a^2)/(1+A*Ma_b^2) // [K] // Using Eq.(6.44) rho_star = 0.795*Ma_a/sqrt(2*(1+(gama-1)*Ma_a^2/2)/(2.4)) //[lb/ft^3] //Using Eq.(6.39) pstar = pa*Ma_a/sqrt(1.2) // [atm] //Mass velocity through the entire pipe G = 0.795*ua //[lb/ft^2-s] ustar = G/rho_star //[ft/s] //(c) //Using Eq.(6.45) with f_Lmax_rh = 400 err = 1; eps = 10^-3; Ma_ac = rand(1,1); i =1; while((err > eps)) A = 2*(1+((gama-1)/2)*Ma_ac^2)/((gama+1)*Ma_ac^2); B = gama*400+1+(gama+1)*log(A)/2; Ma_anew = sqrt(1/B); err = Ma_ac-Ma_anew; Ma_ac = Ma_anew; end Ma_ac; uac = Ma_ac*ua/Ma_a //[ft/s] Gc = uac*0.795 //[lb/ft^2-s]
d789e8b7cbf6e3c387bb40c6d7390fe2a63bfe51
449d555969bfd7befe906877abab098c6e63a0e8
/1301/CH25/EX25.2/ex25_2.sce
924ec41fef93ae6825bd8d128a06b64796825dba
[]
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
292
sce
ex25_2.sce
clc; a=238.03; //atomic mass m=75; //no. of moles mass=m*a; //calculating mass of U n=6.023*10^23; //avogadro's no. no=m*n; //calculating no. of atoms disp(mass,"Mass of U in gram = "); //displaying result disp(no,"No. of atoms = "); //displaying result
1db05311c2facc286f4b093a23a872749d685518
449d555969bfd7befe906877abab098c6e63a0e8
/2093/CH4/EX4.8/exa_4_8.sce
42afd444dd87db5857860e23fb47cdf417216a6c
[]
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
exa_4_8.sce
// Exa 4.8 clc; clear; close; // Given data iE1_by_I= 0.99; // as it is given that iE1= 0.99 *I VT= 0.025;// in volt // Formula iE1= I/(1+%e^(-vid/VT)) // %e^(-vid/VT)= 1/iE1_by_I-1 vid= log( 1/iE1_by_I-1)*(-VT);// in volt disp(round(vid*10^3),"Input differential signal in mVis : ")
86a8dac419f3a58f2426fa05be38096eb4a845b9
449d555969bfd7befe906877abab098c6e63a0e8
/611/CH8/EX8.7/Chap8_Ex7_R1.sce
e5d5a8699e6f2b3804b570f766687993f14bc318
[]
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,915
sce
Chap8_Ex7_R1.sce
// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India. //Chapter-8,Example 7,Page 282 //Title: Enthalpy and entropy departure using the Peng-Robinson equation of state //================================================================================================================ clear clc //INPUT T=427.85;//temperature of n-octane vapour in K P=0.215;//pressure of n-octane vapour in MPa S=0.9457;//constant used in the Peng-Robinson equation of state,from Example(3.16) alpha=1.2677;//constant used in the Peng-Robinson equation of state,from Example(3.16) a=5.2024;//constant used in the Peng-Robinson equation of state,from Example(3.16) in (m^6 Pa mol^-2) b=1.4750*10^-4;//constant used in the Peng-Robinson equation of state,from Example(3.16) in m^3/mol B=8.9151*10^-3;//factor used in the Cardan's method for solving the Peng-Robinson equation of state,from Example(3.16) (no unit) Z=0.9151;//compressibility factor taken from Example (3.16) (no unit) R=8.314;//universal gas constant in J/molK Tc=569.4;//critical temperature of n-octane in K //CALCULATION da_dT=(-a*S)/(sqrt (alpha*T*Tc));//calculation of da/dT using Eq.(8.47) //calculation of the enthalpy departure using Eq.(8.45) in J/mol dep_h=(R*T*(Z-1))+(((((T*da_dT)-a)/(2*sqrt(2)*b)))*(log ((Z+(B*(1+sqrt (2))))/(Z+(B*(1-sqrt (2))))))); dep_s=(R*log (Z-B))+((1/(2*sqrt (2)*b))*(da_dT)*(log ((Z+(B*(1+sqrt (2))))/(Z+(B*(1-sqrt (2)))))));//calculation of the entropy departure using Eq.(8.46)in J/molK //OUTPUT mprintf("\n The enthalpy departure for n-octane vapour using the Peng-Robinson equation of state = %0.1f J/mol\n",dep_h); mprintf("\n The entropy departure for n-octane vapour using the Peng-Robinson equation of state = %0.3f J/mol K\n",dep_s); //===============================================END OF PROGRAM===================================================
6696bd3465ae94fb4e714d3d330deea1d2e2e264
2ae858a680a4ccf8a2ec89a45a1e48a0292d8eab
/macros/rgb2ntsc.sci
ff185cc0a31012a275ba16415251b5af26b9bfcd
[]
no_license
shreyneil/FOSSEE-Image-Processing-Toolbox
f315a82c325b2d6cbd0611689f3e30071a38490d
dd1cbd0dcbe0c3dd11d6ce1ab205b4b72011ae56
refs/heads/master
2020-12-02T16:26:13.755637
2017-07-07T19:22:33
2017-07-07T19:22:33
96,552,147
0
0
null
2017-07-07T15:32:15
2017-07-07T15:32:15
null
UTF-8
Scilab
false
false
1,112
sci
rgb2ntsc.sci
// Copyright (C) 2015 - IIT Bombay - FOSSEE // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt // Author: Shreyash Sharma // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in function [output] = rgb2ntsc(img) // This function is used to convert the range of rgb values to the range ntsc values. // // Calling Sequence // image1 = imread(img); // image2 = rgb2ntsc(image1); // // Parameters // image1: image matrix of the source image. // image2: image matrix of the resultant image. // // Description // This function takes an rgb image and transforms the channels of the image in accordance with the ntsc values. // // Examples // i = imread("lena.jpeg"); // rr = rgb2ntsc(i); // imshow(rr(:,:,1)); // imshow(rr(:,:,2)); // imshow(rr(:,:,3)); // image = mattolist(img); a = raw_rgb2ntsc(image); d = size(a); for i=1:d output(:,:,i) = a(i); end endfunction
3d5788bd8c9261b773720930f68f5b1d0dfa9121
449d555969bfd7befe906877abab098c6e63a0e8
/14/CH6/EX6.6/example_6_6.sce
c683e31965988f93345b93df2105753a2f7f33c8
[]
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
924
sce
example_6_6.sce
//Chapter 6 //Example 6.6 //Page 151 //3phasetransformers clear;clc; //Given P = 25e6; V_ht = 38.1e3; V_lt = 3.81e3; R_l = 0.6; P_ht_base = 75e6; V_ht_base = 66e3; //Low-tension side base ratings disp('Low-tension side') P_lt_base = P_ht_base; V_lt_base = (V_lt/(V_ht*sqrt(3)))*V_ht_base; printf("\n Base for low tension side is %.0f MVA,%.2f kV",P_lt_base/1e6,V_lt_base/1e3) Z_lt_base = (V_lt_base)^2/P_lt_base; R_lt_l_base = R_l / Z_lt_base; printf("\n Base impedance for the low-tension side = %.2f ohm",Z_lt_base) printf("\n Per unit impedance of load on the low-tension side = %.2f per unit \n\n",R_lt_l_base) disp('High-tension side') R_l_ht = R_l * ((V_ht*sqrt(3))/V_lt)^2; Z_ht_base = (V_ht_base)^2 / P_ht_base; R_ht_l_base = R_l_ht / Z_ht_base; printf("\n Base impedance for the high-tension side = %.2f ohm",Z_ht_base) printf("\n Per unit impedance of load on the high-tension side = %.2f per unit",R_ht_l_base)
317ee9a911a6181bdde627d9296b4708cdef0a73
fce47a4c482ae622563fc72d7643d824cc572edc
/_scilabTP/tp10/triEchantillons.sce
eba498506a95ed0d1b6cc9ff115b250adad70687
[]
no_license
ece2lr/ece2lr.github.io
a57ff8852ef06b7cef1c734106f1badd668ebcb1
13479dc224e39521c6c387401b889e62a90a8d0b
refs/heads/master
2021-01-12T12:07:37.196408
2017-12-16T19:25:16
2017-12-16T19:25:16
72,310,248
0
0
null
null
null
null
UTF-8
Scilab
false
false
199
sce
triEchantillons.sce
N = 10000 //taille des échantillon // obtention d'échantillons x = grand(1,N,"nor",0,1); y = grand(1,N,"unf",0,1); // on trie les échantillons x = gsort(x) ; y = gsort(y) ; clf() plot(x,y)
def388e85e0641bf3879cdada110da119831ba68
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set8/s_Elements_Of_Power_System_Analysis_W._D._Stevenson_14.zip/Elements_Of_Power_System_Analysis_W._D._Stevenson_14/CH13/EX13.1/example_13_1.sce
24bb21e7108d85b59b296de9db2c10dac73da1a2
[]
no_license
hohiroki/Scilab_TBC
cb11e171e47a6cf15dad6594726c14443b23d512
98e421ab71b2e8be0c70d67cca3ecb53eeef1df6
refs/heads/master
2021-01-18T02:07:29.200029
2016-04-29T07:01:39
2016-04-29T07:01:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
175
sce
example_13_1.sce
errcatch(-1,"stop");mode(2);//Chapter 13 //Example 13.1 //Page 341 //Zones ;; disp('Solution to this problem can be got by theory from Section 13.2 in the textbook') exit();
8bb884a9a51730334f6d9a87339c510f2a8a7976
67be33a2f1b2815769ef612759053f35ea40977a
/Gevorgyan.TodoListApp.RestApi/ClientApp/src/app/core/service-proxies/service-proxies.tst
3672d0b19b164f4928610b9417cbac116bc3dbe4
[]
no_license
WAlbus792/TodoListApp
2fbcb08ebf2b87bd9b018f16a1bdb5475bc15f0e
d925e9e2c8f82860b9851270e192d065f92b6dc8
refs/heads/master
2020-07-01T22:57:39.991393
2019-08-11T16:58:59
2019-08-11T16:58:59
201,331,892
0
0
null
null
null
null
UTF-8
Scilab
false
false
10,607
tst
service-proxies.tst
${ // Enable extension methods by adding using Typewriter.Extensions.* using Typewriter.Extensions.Types; using static System.Diagnostics.Debug; Template(Settings settings) { settings.IncludeProject("Gevorgyan.TodoListApp.RestApi"); settings.OutputFilenameFactory = file => file.Name.Replace("Controller.cs", "ServiceProxy.ts"); settings.OutputExtension = ".ts"; } // generates Import components string Imports(Class c) { IEnumerable<string> resultTypes = c.Methods.Where(m => m.Type.ClassName().EndsWith("Model")) .Select(m => $"import {{ {m.Type.ClassName()} }} from '../models/{m.Type.ClassName()}'"); IEnumerable<string> paramsTypes = c.Methods.SelectMany(m => m.Parameters).Where(p => p.Type.ClassName().EndsWith("Model")) .Select(m => $"import {{ {m.Type.ClassName()} }} from '../models/{m.Type.ClassName()}'"); return string.Join(Environment.NewLine, resultTypes.Union(paramsTypes).Distinct()); } // Class name for service proxy string ServiceProxyName(Class cl) => cl.Name.Replace("Controller", "ServiceProxy"); // Is method for getting the data for kendo-grid? bool IsKendoRequest(Method method) => method.Parameters.Any(p => p.Attributes.Any(a => a.Name == "DataSourceRequest")); // Gets other parameters besides the main request parameter of kendo-grid IEnumerable<Parameter> NonKendoParameters(Method method) => method.Parameters.Where(p => p.Attributes.Any(a => a.Name == "FromQuery")); // Gets a parameter specified in route of the method for kendo-grid Parameter NonKendoParameterSpecifiedInRoute(Method method) => method.Parameters.FirstOrDefault(p => !p.Attributes.Any(a => a.Name == "FromQuery" || a.Name == "DataSourceRequest")); // Method parameter passed in the body of request Parameter BodyParameter(Method method) => method.Parameters.FirstOrDefault(p => p.Attributes.Any(a => a.Name == "FromBody")); // Method for parameters passed through query string of request IEnumerable<Parameter> QueryStringParameters(Method method) => method.Parameters.Where(p => p.Attributes.Any(a => a.Name == "FromQuery")); // Method for checking has the method any query parameter bool AnyQueryParameter(Method method) => method.Parameters.Any(p => p.Attributes.Any(a => a.Name == "FromQuery")); // Method result is void? bool IsVoidResult(Method method) => method.Type.name == "void"; // Method result is Enumerable? bool IsEnumerableResult(Method method) => method.Type.IsEnumerable; // Method result is file? bool IsFileResult(Method method) => method.Type.Name == "FileContentResult"; // Method result Type is Primitive (string, boolean, etc)? bool IsResultTypePrimitive(Method method) => method.Type.IsPrimitive; // Returns Enumerable type name string EnumeratedType(Method method) { if(!method.Type.IsEnumerable) throw new InvalidOperationException("Attempt to get the type of items not of an Enumerable"); string typeName = method.Type.Name; return typeName.Substring(0, typeName.Length - 2); } // All frequently used methods static List<string> httpMethods = new List<string>(){ "HttpGet", "HttpPost", "HttpDelete", "HttpPut"}; // Http method name string HttpMethod(Method method) { string httpMethod = method.Attributes.FirstOrDefault(a => httpMethods.Contains(a.Name))?.Name; if(httpMethod != null) return httpMethod.Remove(0, 4).ToLower(); throw new InvalidOperationException("Method of http request is not determined"); } // Controller Name (without "Controller") for methods string ControllerName(Method method) { Class cl = (Class)method.Parent; return cl.Name.Replace("Controller", string.Empty); } // path to the Api method string Route(Method method) { var route = method.Attributes.FirstOrDefault(a => httpMethods.Contains(a.Name) && a.Value != null && a.Value != "{id}"); return route?.Value ?? string.Empty; } bool IsParameterSpecifiedInRoute(Method method){ return method.Attributes.Any(a => a.Value != null && a.Value.Contains("{") && a.Value.Contains("}")); } string RouteNameWithParameter(Method method) { var methodParameterName = method.Parameters.FirstOrDefault(p => !p.Attributes.Any()).name; var route = method.Attributes.FirstOrDefault(a => httpMethods.Contains(a.Name)).Value; string routeNameWithoutParam = route.Substring(route.IndexOf('}') + 1); var returnValue = methodParameterName; if(!string.IsNullOrWhiteSpace(routeNameWithoutParam)) returnValue += $" + \"{routeNameWithoutParam}\""; return returnValue; } } // for AUTO-GENERATION! import { ServiceProxyBase, API_BASE_URL, FileContentResult } from "./service-proxy-base"; import 'rxjs/add/observable/fromPromise'; import 'rxjs/add/observable/of'; import 'rxjs/add/observable/throw'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/toPromise'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/operator/catch'; import { Observable } from 'rxjs/Observable'; import { Injectable, Inject, Optional, InjectionToken } from '@angular/core'; import { HttpClient, HttpHeaders, HttpResponse, HttpResponseBase } from '@angular/common/http'; import { DataSourceRequestState} from "@progress/kendo-data-query"; import { GridDataResult } from "@progress/kendo-angular-grid"; import { UserSessionProvider } from "../user-session-provider"; import * as moment from 'moment'; $Classes(*Controller)[$Imports export class $ServiceProxyName extends ServiceProxyBase { protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; constructor( private session: UserSessionProvider, @Inject(API_BASE_URL) private baseUrl: string, private http: HttpClient ) { super(session, baseUrl, http); } $Methods[ $IsKendoRequest[ $name($NonKendoParameterSpecifiedInRoute[$name: $Type, ]state: DataSourceRequestState$NonKendoParameters[, $name: $Type]): Observable<GridDataResult> { const relativePath = "/api/$ControllerName/"$IsParameterSpecifiedInRoute[ + $RouteNameWithParameter][ + "$Route"]; let args: [string, any][] = [ $NonKendoParameters[['$name', $name],]]; return this.fetch(relativePath, state, args); }][ $name($Parameters[$name: $Type][, ]): Observable<$IsVoidResult[void][$Type | null]> { let url_ = this.baseUrl + "/api/$ControllerName/$Route"$IsParameterSpecifiedInRoute[ + $RouteNameWithParameter]$AnyQueryParameter[ + "?"]; $QueryStringParameters[ if ($name === undefined || $name === null) throw new Error("The parameter '$name' must be defined and cannot be null."); else url_ += "$name=" + encodeURIComponent("" + $name) + "&"; url_ = url_.replace(/[?&]$/, ""); ] $BodyParameter[ const content_ = JSON.stringify($name); ] let options_: any = { $BodyParameter[body: content_,] observe: "response", responseType: "blob", headers: new HttpHeaders({ "Content-Type": "application/json", "Accept": "application/json" }) }; return Observable.fromPromise(this.transformOptions(options_)).flatMap(transformedOptions_ => { return this.http.request("$HttpMethod", url_, transformedOptions_); }).flatMap((response_: any) => { return this.process$Name(response_); }).catch((response_: any) => { if (response_ instanceof HttpResponseBase) { try { return this.process$Name(<any>response_); } catch (e) { return <Observable<$IsVoidResult[void][$Type | null]>><any>Observable.throw(e); } } else return <Observable<$IsVoidResult[void][$Type | null]>><any>Observable.throw(response_); }); } protected process$Name(response: HttpResponseBase): Observable<$IsVoidResult[void][$Type | null]> { const status = response.status; const responseBlob = response instanceof HttpResponse ? response.body : (<any>response).error instanceof Blob ? (<any>response).error : undefined; let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}; if (status === 200) { $IsVoidResult[ return this.blobToText(responseBlob).flatMap(_responseText => { return Observable.of<void>(<any>null); }); ][ $IsFileResult[ const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined; const fileNameMatch = contentDisposition ? /filename=this.hack?(;|$)/g.exec(contentDisposition) : undefined; const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined; return Observable.of({ fileName: fileName, data: <any>responseBlob, status: status, headers: _headers }); ][ return this.blobToText(responseBlob).flatMap(_responseText => { let result200: any = null; let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver); $IsEnumerableResult[ if (resultData200 && resultData200.constructor === Array) { result200 = []; for (let item of resultData200) result200.push($EnumeratedType.fromJS(item)); } ][ result200 = resultData200 ? $IsResultTypePrimitive[resultData200][$Type.fromJS(resultData200)] : <any>null; ] return Observable.of(result200); }); ]] } else if (status !== 200 && status !== 204) { return this.blobToText(responseBlob).flatMap(_responseText => { return this.throwException("An unexpected server error occurred.", status, _responseText, _headers); }); } return Observable.of<$IsVoidResult[void][$Type | null]>(<any>null); } ]] } ]
c703aca5b33962eeda490a70ca77969cbf9ecb49
449d555969bfd7befe906877abab098c6e63a0e8
/1040/CH10/EX10.2.b/Chapter10_Ex2_b.sce
e6330c42b8a4188889ad40e081c7595c59934e19
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
2,484
sce
Chapter10_Ex2_b.sce
//Harriot P.,2003,Chemical Reactor Design (I-Edition) Marcel Dekker,Inc. USA,pp 436. //Chapter-10 Ex10.2.b Pg No. 414 //Title:Yield as function of No. of Gauzes //=========================================================================================================== clear clc //INPUT M_NH3 = 17;//Molecular weight NH3 M_air = 29;//Molecular weight air f_air = 0.9;//Fraction of air in feed f_NH3 = (1-f_air);//Fraction of NH3 in feed myu_air = 0.0435*(10^-2);//Viscosity of air (Poise) P_atm = (100+14.7)/14.7;//Pressure of the system P_ref = 1;//Reference Pressure T_ref = 273;//Reference temperature T_inlet = 300+T_ref;//Inlet Temperature V_ref = 22400; T_surf = 700+T_ref;//Surface Temperature u0 = 1.8;//Velocity at 300 °C (m/sec) d = 0.076*(10^-1);//Size of wire (cm) D_NH3_N2 = 0.23;//Diffusivity at 298 K 1 atm(cm2/s) N = 32;//Gauzes (wires/cm) frac_N2 = 0.25*(10^(-2));//Fraction of NH3 fed into N2 (Byproduct reaction) n = [1 2 5 10 15 20];//No. of Gauzes //CALCULATION M_ave = f_air*M_air+f_NH3*M_NH3; rho = (M_ave*T_ref*P_atm)/(V_ref*T_surf*P_ref); u0_surf = u0*(T_surf/T_inlet); Re = rho*u0_surf*100*d/myu_air; Gamma = [1-32*(d)]^2;//From equation 10.5 Re_Gamma = Re/Gamma; D_NH3 = 0.23*(T_surf/298)^(1.7)*(1/7.8);// at 7.8 atm 700 °C Sc = (myu_air*P_ref)/(rho*D_NH3); j_D = 0.644*(Re_Gamma)^(-0.57);//Refer equation 10.14 k_c = j_D*(u0_surf*100/Gamma)*(1/(Sc)^(2/3)); a_dash = 2*(%pi)*(d)*N k_c_a_dash_u0 =(k_c*a_dash)/(u0_surf*100); m = length(n) for i = 1:m X(i) = (1-exp(-k_c_a_dash_u0*n(i))); Yield(i) = X(i)-frac_N2*n(i); end //OUTPUT //File Output fid=mopen('.\Chapter10_Ex2_b_Output.txt', 'w'); mfprintf(fid,'\n \tThe Ammonia Yield'); mfprintf(fid,'\n=========================================='); mfprintf(fid,'\n\t Gauzes Yield'); mfprintf(fid,'\n\t (n) (X-%fn)',frac_N2); mfprintf(fid,'\n=========================================='); for i=1:m mfprintf(fid,'\n\t %.0f \t \t %.3f',n(i),Yield(i)); end mclose(fid); //Console Output mprintf('\n \tThe Ammonia Yield'); mprintf('\n=========================================='); mprintf('\n\t Gauzes Yield'); mprintf('\n\t (n) (X-%fn)',frac_N2); mprintf('\n=========================================='); for i=1:m mprintf('\n\t %.0f \t \t %.3f',n(i),Yield(i)); end //====================================================END OF PROGRAM====================================================
28c66e69edce4eecc8ea059ded28815d285a4952
449d555969bfd7befe906877abab098c6e63a0e8
/1301/CH21/EX21.8/ex21_8.sce
8ff3f524ca37e546b8b5d0fce74fe659a4be5222
[]
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
152
sce
ex21_8.sce
clc; E=2.18*10^-18; //energy in Joule h= 6.626 * 10^-34; k=1.38*10^-23; //constant in J/K disp(E/h,"Frequency in Hz = "); //displaying result
7c9f535cafbcf8dd043e5d60f5e6efc262569fec
18bf68cdf766092ccdcba8d231e8140063833a5a
/SumDisSineWaves.sce
f19f38989084dbc3120a20b58a2a839de364a8bc
[]
no_license
goodengineer/Scilab-Exercises
b51cc9a4c938f0289a32875d2d21eb9061d0e68e
3c268211fe48e7e4d0002e44757ea8b50cda10f9
refs/heads/master
2022-12-24T23:30:12.875423
2020-10-05T06:27:20
2020-10-05T06:27:20
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
143
sce
SumDisSineWaves.sce
clear; clc; clf; n = -30:1:30 x = 2*sin(2*%pi*(5/20)*n) + sin(2*%pi*(1/8)*n) + sin(2*%pi*(2/16)*n) // period is LCM of N1,N2,N3 plot2d3(n,x)
716294f746c8be3ceb719a62442f93cd59637c6e
449d555969bfd7befe906877abab098c6e63a0e8
/2939/CH4/EX4.34/Ex4_34.sce
504684b342339d2e7fce08cf1f7cdf7fd6e6fb3e
[]
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
515
sce
Ex4_34.sce
// Ex4_34 clc; //Given: Ax0 = 2000; //dps //Solution: //part a ky = 0.693/10; kx = 0.693/288; // general equation connecting Ax and Ay is Ax12 = (ky * Ax0 * (0.5^(1/24) - 0.5^(1.2)))/ (ky - kx); printf("\n Activity due to La(140) at the end of 12 hrs will be %f dps",Ax12); //part b ky = 0.693/10; kx = 0.693/288; // general equation connecting Ax and Ay is Ax24 = (ky * Ax0 * (0.5^(2) - 0.5^(57.6)))/ (ky - kx); printf("\n Activity due to La(140) at the end of 24 d will be %f dps",Ax24);
8710f2e60a32d1803ff5b74f3bdc647348ae17ca
449d555969bfd7befe906877abab098c6e63a0e8
/182/CH5/EX5.2/Example5_2.sce
8987b11e190eaaaf3512566be60fea0e9d96f1f5
[]
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
727
sce
Example5_2.sce
// To find the collector and base voltages // example 5-2 in page 121 clc; // Given data R1=15e+3; R2=27e+3; Rc1=2.7e+3; R11=R1; R21=R2; //resistance values in Ohm where R11=R1' and R21=R2' Vc2=0.2;// collector voltage of on transistor in volt Vce=Vc2;//collector-emitter saturation voltage in volt Vbb=-5;//dc power supply in volt Vcc=5;//dc power supply in volt //calculations Vr1r2=Vc2-Vbb;//voltage across Ri and R2 in volt Vr1=(R1/(R1+R2))*Vr1r2;// voltage across R1 resistor in volt Vb1=Vc2-Vr1;// base voltage printf("Vb1=%.1f V\n",Vb1); //with Q1 off Vrc1=(Rc1/(Rc1+R11+R21))*(Vcc-Vbb); Vc1=Vcc-Vrc1;// collector voltage in volt printf("Vc1=%.1f V",Vc1); //result //Vb1=-1.657143 V //Vc1=4.395973 V
e7a243f8282b414c0d46ac7c11c27ad9f8a84c1b
449d555969bfd7befe906877abab098c6e63a0e8
/858/CH6/EX6.8/example_8.sce
8d0ce2a7a430e3ccd3e69a7cfc08b2b6a3ffadb4
[]
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
578
sce
example_8.sce
clc clear printf("example 6.8 page number 229\n\n") //to find the mean driving force and mass transfer area Gs=700/22.4 //in kmol of dry air/hr Ls=1500/18 //in kmol of dry air/hr y1=0.05 Y1=y1/(1-y1); Y2=0.02*Y1; X2=0 X1=(Gs/Ls)*(Y1-Y2); m=Gs*(Y1-Y2); //driving force delta_Y1=Y1-1.68*X1; delta_Y2=Y2-1.68*X2; delta_Y=(delta_Y1-delta_Y2)/(log (delta_Y1/delta_Y2)); printf("driving force = %f kmol acetone/kmol dry air",delta_Y) //mass transfer area K_G=0.4 //in kmol acetone/kmol dry air A=m/(K_G*delta_Y); printf("\n\narea = %f sq m",A)
bf98df9297ed8d8bbe547967a2eb2eedef5d2f9b
449d555969bfd7befe906877abab098c6e63a0e8
/803/CH3/EX3.4/ex3_4.sce
7b675a4155da746f8e8ff2c6a2fe0d4b59007e8d
[]
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
433
sce
ex3_4.sce
clc Va=500;..//radar carrying platform velocity lambda=0.3; dutcyc=10^(-6); PRF=10000; kp=1.25;..//radar platform dependent factor Vcomp=kp*Va;..//compression velocity DR=360*dutcyc*(Vcomp/lambda);..//derotation rate Vt=(lambda/2)*PRF;..//target velocity disp("m/s",Vcomp,"The compensation velocity is"); disp("degree/range-cell",DR,"The derotation rate is"); disp("m/s",Vt,"The maximum unambiguous target velocity is");
dc18fec9fcec8a375c941421844dad10d348a32e
449d555969bfd7befe906877abab098c6e63a0e8
/3813/CH4/EX4.6/Ex4_6.sce
ec16a946d4b19e2f0e2574866be080fcdd3535b5
[]
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
Ex4_6.sce
//Electric Drives:concepts and applications by V.subrahmanyam //Publisher:Tata McGraw-Hill //Edition:Second //Ex4_6 clc; clear; V=500;// voltage in V Vs=250;// voltage in V I=181;//Current in A N=1500;//Speed in rpm R=0.1;// Resistance in ohm f=50;//frequency in Hz Eb=Vs-(I*R); Eb1=Eb/3; A1=acos(Vs/(1.35*V)); Alpha1=(A1*180)/%pi; Ia2=I/9; V2=Eb1+(Ia2*R); A2=acos(V2/(1.35*V)); Alpha2=(A2*180)/%pi; Vl=Vs/1.35; A3=acos(V2/(1.35*Vl)); Alpha3=(A3*180)/%pi; disp(Alpha3,"The firing angle in deg is:")
6d1dab4568eae30ce266c59d7c8040b66066830a
9715cbe7e8e57bb70f628b3bd021842f99fbad75
/ejemplos/02_root_finding/scilab/02_export_files/02_open_methods/01_fixed_point/prueba.sce
e1c02d04ed040389456efe17350bc59bcd0a41b9
[]
no_license
UNIVALLE-EISC/numerical-methods
a3e3f432a6dc54a5ba845789ace2bf39db7ac6fe
3ea9401e281523e15be0525bfe36e48560caf646
refs/heads/master
2021-01-10T15:22:36.080955
2018-10-02T21:37:42
2018-10-02T21:37:42
51,824,833
2
2
null
null
null
null
UTF-8
Scilab
false
false
649
sce
prueba.sce
//************** Ejecucion metodo punto fijo ************** clear all; clc; [xrold, xrnew, ea] = puntofijo(niter) x = 0:0.01:2 y1 = x; y2 = exp(-x); y3 = y2 - y1; plot2d(x,[y1',y2',y3']) ,[1,2 3]) xlabel('$x$',"fontsize",5) ylabel('$f(x)$',"fontsize",5) title('$x\ vs\ f(x)$',"fontsize",5) e = gce(); e.children(1).line_style=2; e.children(2).line_style=3; e.children(3).line_style=4; e.children(1).thickness=2; e.children(2).thickness=2; e.children(3).thickness=2; hl=captions(e.children,['$f(x)=x$';'$f(x)=e^{-x}$';'$f(x)=e^{-x}-x$']); hl.font_size = 5; hl.legend_location = 'in_lower_left' set(gca(),"grid",[1 1])
cb7112e9355464a8606b85d0235c3f4e9d8f0eac
126e42e47d2a7c93a771a9dc0b035c46fbe68dcb
/traitement.sce
c55d024edf910e5c0b3ee0031088cf22ee8475dc
[ "MIT" ]
permissive
bk211/Scilab-projet
9ec9e228a7d16d58ed98660d2048afce1dc0ca59
1dfffd97ebdf6eeca14989f82c79ff87c00cedbd
refs/heads/master
2021-05-21T14:06:12.147465
2020-04-08T11:53:50
2020-04-08T11:53:50
252,675,308
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,028
sce
traitement.sce
funcprot(0); img = double(imread('img\lena.png')); co = imread("img\4.2.04.tiff"); test = [ 10, 20, 30; 40,50,60]; function [v] = norme_gradient(img,i,j, sizeX, sizeY, sizeZ,cst) if i < sizeX then a = img(i+1, j, sizeZ); else a = 0; end if i > 1 then b = img(i-1, j, sizeZ); else b = 0; end if j < sizeY then c = img(i, j+1, sizeZ); else c = 0; end if j > 1 then d = img(i, j-1, sizeZ); else d = 0; end //disp(typeof(a)) //disp(typeof(b)) //mprintf("a= %d, b = %d, c =%d, d=%d \n", a,b,c,d); v = cst * sqrt( (a-b)**2 + (c-d)**2); //mprintf("v = %f\n", v); endfunction function [M] = im_contour(img, cst) [sizeX, sizeY, sizeZ] = size(img); M = zeros(sizeY, sizeX,sizeZ); for k = 1 :sizeZ for i = 1 :sizeY for j = 1:sizeX //disp(i,j); M(i,j, k) = norme_gradient(img, i, j, sizeX, sizeY, k, cst); end end end endfunction function [Ub] = bruite(U, s) // Description of bruite(U, s) Ub = rand(size(U,1), size(U,2),size(U,3), 'normal'); Ub = Ub * s + U; endfunction function [Uimp] = bruite_imp(U, p) // Description of bruite(U, s) I = rand(U); //disp(I); Uimp = 255*rand(U).*(I <p/100) + (I>=p/100).*U; endfunction function [A] = im_extract(U,i,j,f, dim) // Description of im_extract(U,i,j,f) [sizeY, sizeX] = size(img); if i - f < 1 then ydebut = 1; ydebutExtra = (i - f); else ydebut = i - f; ydebutExtra = 0; end if i + f > sizeY then yfin = sizeY; yfinExtra = (i + f); else yfin = i +f; yfinExtra = 0 end if j - f < 1 then xdebut = 1 xdebutExtra = (i - f); else xdebut = j - f; xdebutExtra = 0; end if j + f > sizeX then xfin = sizeX; xfinExtra = (i +f ); else xfin = j + f; xfinExtra = 0; end //mprintf("%d %d %d %d \n", ydebut,yfin, xdebut, xfin); //mprintf("%d %d %d %d", ydebutExtra, yfinExtra, xdebutExtra, xfinExtra); A = U(ydebut: yfin, xdebut: xfin, dim); endfunction function [M] = im_moyenne(U,f) // Description of im_moyenne(U, f) nb = (2*f +1)^2; [sizeY, sizeX, sizeZ] = size(U); M = zeros(U); for k = 1:sizeZ for i = 1:sizeY for j = 1:sizeX M(i,j, k) = sum(im_extract(U, i, j , f, k))/nb; end end end endfunction function [M] = im_median(U,f) // Description of im_median(U, f) nb = (2*f +1)^2; [sizeY, sizeX, sizeZ] = size(U); M = zeros(U); for k = 1:sizeZ for i = 1:sizeY for j = 1:sizeX M(i,j,k) = median(im_extract(U, i, j , f, k)); end end end endfunction function [I] = extension_lineaire(U) // Description of extension_lineaire(U) LUT = zeros(256, size(U,3)); for k = 1 : size(U,3) for ng = 1:256 LUT(ng, k) = 255 * (ng - min(U(:,:,k))) / (max(U(:,:,k)) - min(U(:,:,k))); //mprintf("ng = %d , lut(ng) = %d\n", ng, 255 * (ng - min(U(:,:,k))) / (max(U(:,:,k)) - min(U(:,:,k)))); end end I = zeros(U); for k = 1: size(U,3); for i = 1: size(U,1) for j = 1:size(U,2) I(i,j,k) = LUT(U(i,j,k), k); end end end endfunction function [R] = seuillage(U, seuil) // Description of seuillage [sizeY, sizeX, sizeZ] = size(U); R = zeros(U); for k = 1:sizeZ for i = 1:sizeY for j = 1:sizeX if( U(i,j,k) > seuil) then R(i,j,k) = 255; else R(i,j,k) = 0; end end end end endfunction function [R] = changement_echelle(U, Sx, Sy) // Description of changement_echelle H = Sy * size(U,1); W = Sx * size(U,2); R = zeros(H,W,size(U,3)); for k = 1:size(U,3); for i = 1:H for j = 1:W R(i,j,k) = U(ceil(i/Sy), ceil(j/Sx), k); end end end endfunction function [R] = histogramme(U) // Description of histogramme R = zeros(1,256, size(U,3)); for k = 1: size(U,3) for i = 1: size(U,1) for j = 1: size(U,2) R(1, U(j,i,k), k) = R(1, U(j,i,k), k) + 1; end end end endfunction
1c3d77c5f94be5731d43ebdcf6d53bd8aac12bb2
67ba0a56bc27380e6e12782a5fb279adfc456bad
/STAMPER_PROG_7.4/ClearListEmpties.sci
88b0ae3d853cf42dab674d960c4104e68d2cddc9
[]
no_license
2-BiAs/STAMPER_PROG
8c1e773700375cfab0933fc4c2b0f5be0ab8e8f0
4fdc0bcdaef7d6d11a0dcd97bd25a9463b9550d0
refs/heads/master
2021-01-18T19:30:06.506977
2016-11-10T23:32:40
2016-11-10T23:32:40
71,999,971
0
0
null
null
null
null
UTF-8
Scilab
false
false
269
sci
ClearListEmpties.sci
function listOutput = ClearListEmpties(listInput) listTemp = listInput; for i = size(listInput):-1:1 disp(i) if isempty(listInput) then listTemp(i) = null(); //listInput(i); end end listOutput = listTemp; endfunction
2af98100974474a5df67a95a81e0f89ff60a67e2
449d555969bfd7befe906877abab098c6e63a0e8
/1118/CH8/EX8.8/eg8_8.sce
13a909fb54a15e636f2ae2cdbf8a3959f1b6ea99
[]
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
822
sce
eg8_8.sce
clear; clc; sb=50; kvl_hv=132; kvl_lv=11; blv=15; btf2=180; bkvl=180; n=33/76; z1pu=(%i)*.1; z2pu=(%i)*.12; kvlb1=11; kvlb2=15; kvl2b1=33; kvl2b2=45.1; zt=complex(25,75); zm1=(%i)*.15; zm2=(%i)*.15; sm1=30; sm2=20; kvlm=30 bt=blv*kvl_hv/kvl_lv; vm=btf2*n/sqrt(3); putf1=z1pu*(kvlb1/kvlb2)^2; printf("\n The per unit reacance of transformer 1 is: "); disp(putf1); sbtf2=3*20; putf2=z2pu*(sb/sbtf2)*(kvl2b1/kvl2b2)^2; printf("\n The per unit reacance of transformer 2 is: "); disp(putf2); pum1=zm1*(sb/sm1)*(kvlm/kvl2b2)^2; printf("\n The per unit reacance of motor 1 is: "); disp(pum1); pum2=zm2*(sb/sm2)*(kvlm/kvl2b2)^2; printf("\n The per unit reacance of motor 2 is: "); disp(pum2); put=zt*sb/(bkvl)^2; printf("\n The per unit impedance of transmission line is: "); disp(put);
f51b289242976cada0870080d4b0d8cae03f1787
417f69e36190edf7e19a030d2bb6aa4f15bb390c
/SMTTests/tests/ok_setLogic_QF_ABV.tst
c70777541b8d8abc72e33ce529bb29caed2e8751
[]
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_ABV.tst
; testing loading QF_ABV (set-logic QF_ABV )
84d541d6608deeb86fb932a8ecd9c1539085679b
449d555969bfd7befe906877abab098c6e63a0e8
/2702/CH4/EX4.9/Ex_4_9.sce
d36a4a156f13547a83a9ef2be5e0db3e2a72d165
[]
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,137
sce
Ex_4_9.sce
// Exa 4.9 clc; clear; close; // Given data Bita= 100; // Part (a) RE= 150;// in Ω VT= 25;// in mV VT= VT*10^-3;// in V IE= 0.5;// in mA IE=IE*10^-3;// in A re1= VT/IE;//in Ω R_id= 2*(Bita+1)*(re1+RE);// in Ω R_id= round(R_id*10^-3);// in kΩ disp(R_id,"The input differential resistance in kΩ is :") // Part (b) RC=10;//in kΩ RC=RC*10^3;//in Ω Rsig= 5+5;// in kΩ VoltageGain1= R_id/(Rsig+R_id);//voltage gain from the signal source to the base of Q1 and Q2 in V/V VoltageGain2= 2*RC/(2*(re1+RE));// voltage gain from the bases to the output in V/V Ad= VoltageGain1*VoltageGain2;//in V/V disp(Ad,"The overall differential voltage gain in V/V is "); // Part (c) delta_RC= 0.02*RC; R_EE= 200;//in kΩ R_EE=R_EE*10^3;//in Ω Acm= RC/(2*R_EE)*delta_RC/RC;//in V/V disp(Acm,"Common mode gain in V/V is :") // Part (d) CMRRindB= 20*log10(Ad/Acm);// in dB disp(CMRRindB,"CMRR in dB is : ") // Part (e) V_A= 100;// in V r_o= V_A/(IE);// in Ω // Ricm= (Bita+1)*(R_EE || r_o/2) Ricm= (Bita+1)*(R_EE*(r_o/2)/(R_EE+(r_o/2))); disp(Ricm*10^-6,"Input common mode resistance in MΩ is : ")
fd1b44de8ad74763a0a2e3b20b5731502d9146c8
449d555969bfd7befe906877abab098c6e63a0e8
/3428/CH3/EX1.3.6/Ex1_3_6.sce
1e806f9d9ee372c367b799f529a56e8be82dd108
[]
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
480
sce
Ex1_3_6.sce
//Section-1,Example-1,Page no.AC-241 //To calculate Temporary and Permanent hardness of given sample of water. clc; V_1=28 //Volume of EDTA solution reqd. by 100 ml of standard hard water. V_2=100 //Volume of water sample that requires 35 ml EDTA. E_1=28/V_1 //weight of CaCO3 in 1mLof EDTA(mg). Total_H=(35/V_2)*1000 //Total hardness in ppm. P_H=(10/100)*1000 disp(P_H,'Permanent hardness of water(ppm)') T_H=Total_H-P_H disp(T_H,'Temporary hardness of water(ppm)')
c18b327a195e383e2bff1fb602c23c7b796a2382
449d555969bfd7befe906877abab098c6e63a0e8
/23/CH3/EX3.8/Example_3_8.sce
dec29d47d7d32f1969b6cf9360b92aea0f54ee08
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
2,623
sce
Example_3_8.sce
clear; clc; //To find Approx Value function[A]=approx(V,n) A=round(V*10^n)/10^n;//V-Value n-To what place funcprot(0) endfunction //Example 3.8 //Caption : Program to Find Molar Volume of n-Butane //Given Values T=350;//Temp=350K(76.85`C) P=9.4573;//Pressure=9.4573bar R=83.14; Tc=425.1;//App B Pc=37.96;//App B Tr=T/Tc; Pr=P/Pc; //Parameters for RK si=0.42748; omega=0.08664; epsilon=0; sigma=1; a=Tr^-0.5; //Solution //Using Eq(3.51) q=si*a/(omega*Tr); Beta=omega*Pr/Tr; disp('The Following Results given By Redlich/Kwong Equation') //(a) Z=1;//initial a=Z; for i=0:10 b=1+Beta-((q*Beta)*(a-Beta)/(a*(a+Beta))); if((b-a)==0.0001) break; end a=b; i=i+1; end Z=approx(b,4) V=round(Z*R*T/P); disp('cm^3/mol',V,'Molar Volume of saturated Vapor is '); //(b) Z=Beta;//initial a=Z; for i=0:20 b=Beta+(a*(a+Beta)*(1+Beta-a)/(q*Beta)); if((b-a)==0.0001) break; end a=b; i=i+1; end Z=approx(b,5) V=approx(Z*R*T/P,1); disp('cm^3/mol',V,'Molar Volume of Saturated Liquid is '); //Given Values T=350;//Temp=350K(76.85`C) P=9.4573;//Pressure=9.4573bar R=83.14; Tc=425.1;//App B Pc=37.96;//App B Tr=T/Tc; Pr=P/Pc; //Parameters for eqns[vdW,RK,SRK,PR] si=[27/64,0.42748,0.42748,0.45724]; omega=[1/8,0.08664,0.08664,0.07779]; epsilon=[0,0,0,(1-sqrt(2))]; sigma=[0,1,1,(1+sqrt(2))]; w=0.2;//App B aSRK=(1+((0.480+(1.574*w)-(0.1768*w^2))*(1-Tr^0.5)))^2; aPR=(1+((0.37464+(1.54226*w)-(0.26992*w^2))*(1-Tr^0.5)))^2; a=[1,Tr^-0.5,aSRK,aPR]; //Solution disp(' By All Equations') //Using Eq(3.51) q=si.*a./(omega.*Tr); Beta=omega.*Pr./Tr; //disp('The Following Results given By Redlich/Kwong Equation') //(a) for j=1:4 Z=1;//initial A=Z; for i=0:10 b=1+Beta(j)-((q(j)*Beta(j))*(A-Beta(j))/((A+(epsilon(j)*Beta(j)))*(A+(sigma(j)*Beta(j))))); if((b-A)==0.0001) break; end A=b; i=i+1; end z(j)=approx(b,4); end V=round(z.*R*T/P); disp('Molar Volume(Vv) of Saturated Vapor'); disp(V',' vdW RK SRK PR') //(b) for j=1:4 Z=Beta(j);//initial A=Z; for i=0:20 b=Beta(j)+((A+(epsilon(j)*Beta(j)))*(A+(sigma(j)*Beta(j)))*(1+Beta(j)-A)/(q(j)*Beta(j))); if((b-A)==0.0001) break; end A=b; i=i+1; end z(j)=approx(b,5); end V=approx(z*R*T/P,1); disp('Molar Volume(Vl) of Saturated Liquid'); disp(V',' vdW RK SRK PR') disp('Note : Exp Value is Vv = 2482 cm^3/mol and Vl = 115 cm^3/mol') //End
e34eefeb7472808666903dd312730124ecadaa38
449d555969bfd7befe906877abab098c6e63a0e8
/2792/CH8/EX8.8/Ex8_8.sce
8c38ddd29657a4d2f2d79fc2efcc09a8792a407d
[]
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
995
sce
Ex8_8.sce
clc mu_n=1000 disp("mu_n = "+string(mu_n)+"cm^2(Vs)^-1") //initializing value of channel mobility e = 1.6*10^-19 disp("e= "+string(e)+"C")//initializing value of charge of electron h=0.5*10^-4 disp("h = "+string(h)+"cm") //initializing value of channel depth Nd = 10^16 disp("Nd = "+string(Nd)+"cm^-3") //initializing value of channel doping L = 2*10^-4 disp("L = "+string(L)+"cm") //initializing value of channel length apsilen = 11.9*8.85*10^-14 disp("apsilen = "+string(apsilen)) //initializing value of relative permitivity Vs = 10^7 disp("Vs = "+string(Vs)+"cm/s") //initializing value of saturated velocity fT = (e*mu_n*Nd*(h^2))/(2*%pi*apsilen*(L^2)) disp("The maximum cutoff frequency of the device in the constant mobility model is ,fT = (e*mu_n*Nd*(h^2))/(2*%pi*apsilen*(L^2))= "+string(fT)+"Hz")//calculation fT = Vs/(2*%pi*L) disp("The maximum cutoff frequency of the device in the saturation velocity model is fT = Vs/(2*%pi*L)= "+string(fT)+"Hz")//calculation
c874917db8b40353927b695a3c65d10efea37b2f
3e1c135702792a7486fbfd08fa17b25e10e5dcc7
/GTTS/GTTS.Web/ClientApp/src/app/models/INL.UserService.Models/__TypeWriter__.tst
4558346b2922cf68731263d752bde29767a2bbb0
[]
no_license
vazzanag/DOS_INL
7474c872dcad556dcdc26073da51ad703dba6f50
1e67587edc023c1a0580c651c140517c9dd5b43f
refs/heads/master
2022-12-13T16:57:10.981080
2019-10-15T18:41:43
2019-10-15T18:41:43
215,369,862
0
0
null
2022-12-08T02:08:16
2019-10-15T18:32:28
C#
UTF-8
Scilab
false
false
6,814
tst
__TypeWriter__.tst
${ using Typewriter.Extensions.Types; using System.Text.RegularExpressions; using System.Diagnostics; Template(Settings settings) { settings.OutputFilenameFactory = file => { return ToKebabCase(file.Name).Replace(".cs", ".ts"); }; } string ToKebabCase(string value) { return Regex.Replace(value, "([a-z])([A-Z])", "$1-$2").ToLower(); } string ClassImports(Class c) => c.Properties .Where(p => !p.Type.IsPrimitive || p.Type.IsEnum) .Select(p => p.Type.Name) .Where(name => name != c.Name) .Where(name => name != "Stream") .Append("" + ClassInterface(c)) .Where(name => !String.IsNullOrWhiteSpace(name)) .Select(name => $"import {{ {name.Replace("[]", "")} }} from './{ToKebabCase(name.Replace("[]", ""))}';") .Distinct() .Aggregate("", (all, import) => $"{all}{import}\r\n") .TrimStart(); string InterfaceImports(Interface i) => i.Properties .Where(p => !p.Type.IsPrimitive || p.Type.IsEnum) .Select(p => p.Type.Name) .Where(name => name != i.Name) .Where(name => name != "Stream") .Select(name => $"import {{ {name.Replace("[]", "")} }} from './{ToKebabCase(name.Replace("[]", ""))}';") .Distinct() .Aggregate("", (all, import) => $"{all}{import}\r\n") .TrimStart(); string CustomClassProperties(Class c) => "\r\n" + c.Properties .Where(p => !(c.Name.EndsWith("_Param") && p.Name == "ModifiedByAppUserID")) .Select(p => $"{ClassPropertyDeclaration(p)}") .Aggregate("", (all,prop) => $"{all}{prop}\r\n") .TrimEnd(); string CustomInterfaceProperties(Interface i) => "\r\n" + i.Properties .Where(p => !(i.Name.EndsWith("_Param") && p.Name == "ModifiedByAppUserID")) .Select(p => $"{InterfacePropertyDeclaration(p)}") .Aggregate("", (all,prop) => $"{all}{prop}\r\n") .TrimEnd(); string ClassInterface(Class c) => c.Interfaces .Where(i => i.Name == $"I{c.Name}") .Select(i => i.Name) .FirstOrDefault(); string Implements(Class c) { string _interface = ClassInterface(c); if (!String.IsNullOrWhiteSpace(_interface)) return $"implements {_interface}"; else return ""; } string ClassPropertyDeclaration(Property p) { string name = p.Name + (p.Type.IsNullable || !p.Type.IsPrimitive ? "?" : ""); string type = p.Type.Name; switch (p.Type.Name) { case "Boolean": type = "boolean"; break; case "String": case "Char": case "Guid": case "TimeSpan": type = "string"; break; case "Byte": case "SByte": case "Int16": case "Int32": case "Int64": case "UInt16": case "UInt32": case "UInt64": case "Single": case "Double": case "Decimal": type = "number"; break; case "DateTime": case "DateTimeOffset": type = "Date"; break; case "Void": type = "void"; break; case "Object": case "dynamic": type = "any"; break; case "Stream": type = "any"; break; } if (name.EndsWith("?")) return $"\tpublic {name}: {type};"; string value = ""; switch (type) { case "boolean": value = "false"; break; case "string": value = "\"\""; break; case "number": value = "0"; break; case "Date": value = "new Date(0)"; break; case "void": value = "void"; break; case "any": value = "any"; break; default: value = "null"; break; } return $"\tpublic {name}: {type} = {value};"; } string InterfacePropertyDeclaration(Property p) { string name = p.Name + (p.Type.IsNullable || !p.Type.IsPrimitive ? "?" : ""); string type = p.Type.Name; switch (p.Type.Name) { case "Boolean": type = "boolean"; break; case "String": case "Char": case "Guid": case "TimeSpan": type = "string"; break; case "Byte": case "SByte": case "Int16": case "Int32": case "Int64": case "UInt16": case "UInt32": case "UInt64": case "Single": case "Double": case "Decimal": type = "number"; break; case "DateTime": case "DateTimeOffset": type = "Date"; break; case "Void": type = "void"; break; case "Object": case "dynamic": type = "any"; break; case "Stream": type = "any"; break; } return $"\t{name}: {type};"; } string PropertyName(Property p) { return p.Name + (p.Type.IsNullable ? "?" : ""); } } $Classes(INL.UserService.Models.*)[ $ClassImports export class $Name $Implements { $CustomClassProperties $BaseClass[$CustomClassProperties] }] $Interfaces(INL.UserService.Models.*)[ $InterfaceImports export interface $Name { $CustomInterfaceProperties }] $Enums(INL.UserService.Models.*)[ export enum $Name { $Values[ $Name = $Value ][,] }]
266ee4de4ee9a4674d156ceeb39d03209d3b9def
527c41bcbfe7e4743e0e8897b058eaaf206558c7
/NZFunctions/Time-Series/FLGARCHpqUdt-NZ-UM-01.tst
97392f676c9e8b4c644b4675c221adc6bd3a3132
[]
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
1,927
tst
FLGARCHpqUdt-NZ-UM-01.tst
-- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Netezza -- -- Copyright (c): 2016 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: Time Series Functions -- -- Last Updated: 05-29-2017 -- -- Author: <deept.mahendiratta@fuzzylogix.com> -- -- BEGIN: TEST SCRIPT --timing on -- BEGIN: TEST(s) -----******************************************************************************************************************************* ---FLGARCHpqUdt -----******************************************************************************************************************************* --Input Table SELECT * FROM tblbac_return LIMIT 20; --Output Table SELECT a.* FROM(SELECT 1 AS GroupID, a.id, a.stockreturn, 1 AS q, 1 AS p, 'R' AS value_type, NVL(LAG(0) OVER (PARTITION BY GroupID ORDER BY GroupID, id), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY GroupID ORDER BY GroupID, id), 1) AS end_flag FROM tblbac_return a ) AS z, TABLE (FLGARCHpqUdt(z.GroupID, z.q, z.p, z.value_type, z.stockreturn, z.begin_flag, z.end_flag)) AS a; -- END: TEST(s) -- END: TEST SCRIPT --timing off
13c0a5d3f0550ddad2938cc64a1aecf0d7579b58
717ddeb7e700373742c617a95e25a2376565112c
/2474/CH10/EX10.1/Ch10Ex01.sce
1cd7da2bd965986d5d3bb95ac5bbf5a8b249a9ab
[]
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
492
sce
Ch10Ex01.sce
// Scilab code Ex10.1: Pg.417 (2008) clc; clear; N_A = 6.02e+23; // Avogadro's number rho = 2.16; // Density of NaCl, g/cm^3 m = 58.4; // Mass of 1 mol of NaCl, g // Since rho = m/V = m/(2*N_A*r_o^3), solving for r_o, we get r_o = (m/(2*N_A*rho))^(1/3); // Equilibrium spacing in NaCl crystal, cm printf("\nThe equilibrium spacing in NaCl crystal = %4.2e cm or %5.3f nm", r_o, r_o*1e+07); // Result // The equilibrium spacing in NaCl crystal = 2.82e-008 cm or 0.282 nm
b68fbedad11b8dfc72e7a998b53b556f50861a71
449d555969bfd7befe906877abab098c6e63a0e8
/3871/CH11/EX11.3/Ex11_3.sce
9ea91383826157205d2a013742d3cd511c7f1963
[]
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,088
sce
Ex11_3.sce
//=========================================================================== //chapter 11 example 3 clc; clear all; //variable declaration R = 400; //total resistance of slide-wire of 200 cmin Ω L1 = 101.8; //length of slide wire in cm L = 200; //length of wire in cm v1 = 1.018; //voltage drop across 101.8cm length of slide wire in V v = 3; //battery voltage in V a = 0.2; //it is possible to read a of 1 mm //calculations R1 = (R/L)*L1; //resistance of slide wire of 101.8 cm in Ω I1 = v1/R1; //working current in A RT = v/I1; //total resistance of battery circuit in Ω RR = RT-R; //resistance of series rheostat in Ω r = I1*R; //measuring range in V //since 200cm length represents 2 V //1 mm length represents = z z = (r/L)*(1/10); //voltage represented for 1mm length Ri = z*a; //resolution of instrument in mV //result mprintf("working current = %3.1e A",(I1*10^3)); mprintf("\nresistance of series rheostat = %3.2f Ω",RR); mprintf("\nmeasuring range = %3.2f V",r); mprintf("\nresolution of the instrument = %3.2f mV",(Ri*10^3));
2c418d1b531e5b5ee18bfda5cd9113b157b340f1
449d555969bfd7befe906877abab098c6e63a0e8
/2414/CH3/EX3.8/Ex3_8.sce
6858826b3595e66491b5255bee14f5eb1cddb6d5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
309
sce
Ex3_8.sce
clc; clear all; //chapter 3 //page no 90 //example 3.8 mprintf('(a) The RF burst frequency is 500 MHz\n'); mprintf(' (b) The pulse repetition rate is 1 MHz\n'); f0=10*10^6; //Zero crossing frequency in Hz tau=1/f0; //in second mprintf(' (c) The pulse width is %.1f micro second\n',tau*10^6);
bfa114d25bc12eb2ba05f650bb91a9cc2cb9a599
fdc5047b7bf8122bad1e621df236b0481226c36e
/exemplos/xls-link-0.5.0-src/tests/unit_tests/xls_UnProtect.tst
263a11d8b014b9e90d78e64137fd2228000ac7c2
[]
no_license
jpbevila/virtualHartSci
aea3c6ba23d054670eb193f441ea7de982b531cc
a3f5be6041d230bd9f0fd67e5d7efa71f41cfca5
refs/heads/main
2023-07-26T23:05:28.044194
2021-09-09T11:50:59
2021-09-09T11:50:59
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
346
tst
xls_UnProtect.tst
// ==================================================================== // Allan CORNET // DIGITEO 2008 - 2010 // ==================================================================== // <-- CLI SHELL MODE --> // ==================================================================== test_path = fullfile(xls_getRootPath(), "tests", "unit_tests");
342aad21f140e7cd73ac177d6989a6954f008035
449d555969bfd7befe906877abab098c6e63a0e8
/1787/CH7/EX7.10/Exa7_10.sce
101e47f3ab7a6a9c55d79acefbc58e45821fab37
[]
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
236
sce
Exa7_10.sce
//Exa 7.10 clc; clear; close; //given data : ID_on=5;//in mA VGS=6;//in Volt VGS_on=8;//in Volt VGST=4;//in Volt K=ID_on/(VGS_on-VGST)^2;//in mA/V^2 ID=K*(VGS-VGST)^2;//in mA disp(ID,"When VGS=6V the drain current in mA : ");
7c99912bd26c16db672b4d3b24d92b7cbdca702c
449d555969bfd7befe906877abab098c6e63a0e8
/569/CH4/EX4.12/4_12.sci
20ab687891aa28240ed4ffa409d46e4a7633868d
[]
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
330
sci
4_12.sci
// calculate the value of damping constant and frequency of damped oscillations clc; M=8*10^-3; K=1000; wn=(K/M)^0.5; disp('for critically damped system eta=1') B=2*(K*M); disp(B,'Damping constant for critically damped system (N/ms-1)=') eta=0.6; wd=wn*(1-eta^2)^0.5; disp(wd,'frequency of damped oscillations (rad/s)=')
9431a527e99f5281e593c41045d720a98b95fce5
449d555969bfd7befe906877abab098c6e63a0e8
/149/CH34/EX34.3.2/ex3_2.sce
9103dccc7bdd530f8607f74707dd92b6ca0f60d8
[]
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
148
sce
ex3_2.sce
clear clc function [x]=C(a,b) x=factorial(a)/(factorial(b)*factorial(a-b)) endfunction disp('no. of committees=C(4,1)*C(5,2)=') C(4,1)*C(5,2)
351871cf2f1f6a28476205997df97884beb957d6
449d555969bfd7befe906877abab098c6e63a0e8
/2561/CH4/EX4.15/Ex4_15.sce
72e305cd9ceaa4e351f94d6fd71cc7f37b85dcda
[]
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,552
sce
Ex4_15.sce
//Ex4_15 clc RON=100 disp("RON= "+string(RON)+ " ohm") //ON resistance of analog series switch ROFF=10^(10) disp("ROFF= "+string(ROFF)+ " ohm") //OFF resistance analog series switch Vip=1 disp("Vip= "+string(Vip)+" volts")// Peak amplitude of analog voltage Rs=100 disp("Rs= "+string(Rs)+ " ohm") //Voltage source resistance RL=10*10^(3) disp("RL= "+string(RL)+ " ohm") //Load resistance disp("part(i) ")// part(i) of this question Vo=(Vip*RL)/(RL+RON+Rs) disp("Vo=(Vip*RL)/(RL+RON+Rs)= "+string(Vo)+" volts")// ON voltage ErON=[Vip*(RON+Rs)/(RL+RON+Rs)]*100 disp("ErON=[Vip*(RON+Rs)/(RL+RON+Rs)]*100= "+string(ErON)+" percent")// Output voltage error vOFF=(Vip*RL)/ROFF disp("vOFF=(Vip*RL)/ROFF= "+string(vOFF)+" volts")// Output voltage in OFF state OFF_isolation=20*log10(Vip/vOFF) disp("OFF_isolation=20*log10(Vip/vOFF)= "+string(OFF_isolation)+" dB") // OFF_isolation=20*log10(Vip/vOFF) in dB// Thus ON error and OFF isolation decrease with increasing values of RL. disp("part(ii) ")// part(ii) of this question vOFF=(Vip*RON)/(Rs+RON) disp("vOFF=(Vip*RON)/(Rs+RON)= "+string(vOFF)+" volts")// Output voltage in OFF state for analog shunt switch OFF_isolation=20*log10((Rs+RON)/RON)// OFF_isolation of shunt switch disp("OFF_isolation=20*log10((Rs+RON)/RON)= "+string(OFF_isolation)+" dB")// Thus shunt switch is inferior to series switch in its OFF isolation property // ERROR NOTE: in question the author has given RL = 10K but in solution he has used RL = 1 k ... I have done programming using RL = 10 K.
95c482b1d6744ff62ba4e2a3584ff90839074717
676ffceabdfe022b6381807def2ea401302430ac
/library/Demos/LibUtilities/Tests/TimeIntegrationDemoMCNAB.tst
7d9a5d3bce1574a0c79c79d65995f5d010ddaf46
[ "MIT" ]
permissive
mathLab/ITHACA-SEM
3adf7a49567040398d758f4ee258276fee80065e
065a269e3f18f2fc9d9f4abd9d47abba14d0933b
refs/heads/master
2022-07-06T23:42:51.869689
2022-06-21T13:27:18
2022-06-21T13:27:18
136,485,665
10
5
MIT
2019-05-15T08:31:40
2018-06-07T14:01:54
Makefile
UTF-8
Scilab
false
false
375
tst
TimeIntegrationDemoMCNAB.tst
<?xml version="1.0" encoding="utf-8" ?> <test> <description>Test for time integration schemes</description> <executable>TimeIntegrationDemo</executable> <parameters>--dof 100 --timesteps 100 --method MCNAB</parameters> <metrics> <metric type="L2" id="1"> <value tolerance="1e-12">0.0744875</value> </metric> </metrics> </test>
47f9e0318b9d7504942c53cbc648a4d833948d0f
449d555969bfd7befe906877abab098c6e63a0e8
/3838/CH3/EX3.2.b/EX3_2_B.sce
9a1bb0ccb7eaf3399f91542df45561647eda86e4
[]
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
57
sce
EX3_2_B.sce
//EXAMPLE 3.2.B clc; Syms s t w=2; laplace(cos(w*t),t,s)
406991da88ce00f3161b39320dcbe481952c2b89
449d555969bfd7befe906877abab098c6e63a0e8
/1754/CH5/EX5.9/Exa5_9.sce
859a3a7c09a903cfa8a46a9014b6d70aa3d92adc
[]
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
476
sce
Exa5_9.sce
//Exa 5.9 clc; clear; close; //Given data : A=200;//gain without feedback(unitless) Ri=2;//in kOhm Ro=12;//in kOhm Beta=0.02;//feedbak ratio(unitless) //Part (i) : Af=A/(1+A*Beta);//gain with feedback(unitless) disp(Af,"(i) Gain with Negative Feedback :"); //Part (ii) : Rif=Ri*(1+A*Beta);//in kOhm disp(Rif,"(ii) Input resistance with feedback in kOhm :"); //Part (ii) : Rof=Ro/(1+A*Beta);//in kOhm disp(Rof,"(ii) Output resistance with feedback in kOhm :");
2179cea1b6b2f689612ce82d23084d69bb4654c0
8c0ccfbdb651b329b52dd0ab22f1497de9d616a7
/exemplo2_ cinemativa_inversa.sce
703a3d45c6e134f8d83b3c28e69de92ffa08f661
[]
no_license
profcarlos/IntroRobotica
67bdd4850a903041b85458cdd0144d32965ee47e
e1f64a78e8d21d2fe8768614370be7086d10cca4
refs/heads/master
2021-06-14T01:06:53.376792
2021-03-07T20:42:42
2021-03-07T20:42:42
158,818,418
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,741
sce
exemplo2_ cinemativa_inversa.sce
// Usamos mod(7) para simulação passo a passo m = mode(); mode(7); // Exemplo Figura 3.10, livro Introdução a Robótica, Craig // Manipulador Robótico RPR // Define as constantes do manipulador L1 = 0.0 L2 = 0.5 L3 = 0.1 // Cria os links do manipulador a partir da Tabela de Denavic-Hatemberg Link_0 = Link('alpha', 0, 'a', 0, 'd', 0, 'prismatic', 'modified') Link_1 = Link('alpha', 0, 'a', 0, 'd', 0, 'revolute', 'modified') Link_2 = Link('alpha', %pi/2, 'a', 0, 'd', 0, 'prismatic', 'modified') Link_3 = Link('alpha', 0, 'a', 0, 'd', L2, 'revolute', 'modified') Link_4 = Link('alpha', 0, 'a', 0, 'd', L3, 'revolute', 'modified') // Cria uma lista sequencial dos links L = list(Link_0, Link_1,Link_2, Link_3, Link_4) // Define o manipulador como um link serial bot = SerialLink(L, 'name', 'my robot') // Apresenta a quantidade de juntas do manipulador bot.n // Define uma posição inicial do manipulador robótico theta1_s = %pi/2 d2_s = 0 theta3_s = 0 q_start = [L1, theta1_s,d2_s, theta3_s, 0] // Apresenta a Cinemática Direta do manipulador dada a posição angular dos links T_s = fkine(bot,q_start) //Salva valores nas variáveis r_11 = T_s(1,1); r_12 = T_s(1,2); r_13 = T_s(1,3); p_x = T_s(1,4); r_21 = T_s(2,1); r_22 = T_s(2,2); r_23 = T_s(2,3); p_y = T_s(2,4); r_31 = T_s(3,1); r_32 = T_s(3,2); r_33 = T_s(3,3); p_z = T_s(3,4); // Apresenta o modelo do manipulador dada a posição angular dos links plot_robot(bot,q_start); // Usaremosas posições atuais da ponta do manipulador nas equações de Cinemática Inversa p_x p_y p_z // Conforme as equações de Cinemática Inversa obtém-se possibilidades de valores // Calculo de theta1 theta1_p = atan(-p_x+L1, p_y) theta1_n = atan(p_x-L1, -p_y) // Cálculo de d2 d2_p = sin(theta1_p)*p_x - cos(theta1_p)*p_y-sin(theta1_p)*L1 - L3 - L2 d2_n = sin(theta1_n)*p_x - cos(theta1_n)*p_y-sin(theta1_n)*L1 - L3 - L2 //Calculo de theta3 b_p = cos(theta1_p)*r_11+sin(theta1_p)*r_21 b_n = cos(theta1_n)*r_11+sin(theta1_n)*r_21 // Os valores de r_11 e r_21 deverias ser da posição anterior // Como estamos calculando os ângulos a partir da posição atual // pode ser por isso que o resultado de theta3 ficou diferente theta3_p1 = atan(b_p, sqrt(1-b_p*b_p)) theta3_n1 = atan(b_p, -sqrt(1-b_p*b_p)) theta3_p2 = atan(b_n, sqrt(1-b_n*b_n)) theta3_n2 = atan(b_n, -sqrt(1-b_n*b_n)) // Obtem uma posição de teste q_test1 = [L1, theta1_p,d2_p, theta3_p2, 0] // Apresenta o modelo do manipulador dada a posição angular dos links plot_robot(bot,q_test1); // Obtem outra posição de teste q_test2= [L1, theta1_n,d2_n, theta3_n1, 0] // Apresenta o modelo do manipulador dada a posição angular dos links plot_robot(bot,q_test2); mode(m);
06947cb32a344b506ad307a599bbddc008893598
449d555969bfd7befe906877abab098c6e63a0e8
/683/CH3/EX3.19/MS_19.sce
dd46679848eed7aa5ff45dbc37b2d17e77103a54
[]
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
310
sce
MS_19.sce
// sum 3-19 clc; clear; x1=((13*3*1.5)+(2*15*8))/(39+30); x2=13-x1; A=30+39; E=2*10^7; Iyy=995.66; e=54.32; x=x2-3; sigb=e*x/Iyy; sigd=1/69; sigr=sigd+sigb; //Let the strain be E1 E1=800*10^-6; P=E1*E/sigr; P=P*10^-3; // printing data in scilab o/p window printf("P is %0.2f kN ",P);
bb51c6759b8db037a457d986d9c7490e79b24ad9
449d555969bfd7befe906877abab098c6e63a0e8
/1958/CH13/EX13.8/Chapter13_example8.sce
24512ac0f3e7bf3bcbcb4b9538ab663f18bfc707
[]
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
313
sce
Chapter13_example8.sce
clc clear //Input data L=(20*10^-3)//Inductance in H Q=8//Q factor f=1000//Frequency in Hz //Calculations R=(2*3.14*f*L)/Q//Resistance in ohms C=(1/((2*3.14*f)^2*L))/10^-6//Capacitance in microF //Output printf('Capacitance and resistance of coil is %3.2f micro F and %3.1f ohms respectively',C,R)