blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
6
214
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
6
87
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
15 values
visit_date
timestamp[us]date
2016-08-04 09:00:04
2023-09-05 17:18:33
revision_date
timestamp[us]date
1998-12-11 00:15:10
2023-09-02 05:42:40
committer_date
timestamp[us]date
2005-04-26 09:58:02
2023-09-02 05:42:40
github_id
int64
436k
586M
star_events_count
int64
0
12.3k
fork_events_count
int64
0
6.3k
gha_license_id
stringclasses
7 values
gha_event_created_at
timestamp[us]date
2012-11-16 11:45:07
2023-09-14 20:45:37
gha_created_at
timestamp[us]date
2010-03-22 23:34:58
2023-01-07 03:47:44
gha_language
stringclasses
36 values
src_encoding
stringclasses
17 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
5
10.4M
extension
stringclasses
15 values
filename
stringlengths
2
96
content
stringlengths
5
10.4M
7936b23b14fbf9fe6e9a21afc754529a7536197e
f8551f1c22ee634be672d893e6755b100f0d1994
/ICP/decimation.sci
e5a3b9e040b3a19c95485a0445223d0e30ea1886
[]
no_license
yanisdxw/computer-vision
ed605061a632ae0c7536007de6f83e2ff5ee1d51
e9bd0961194f2e4290211296dbe6268ecad8f1c1
refs/heads/master
2021-08-23T05:30:24.864657
2017-12-03T17:05:35
2017-12-03T17:05:35
111,726,798
0
0
null
null
null
null
UTF-8
Scilab
false
false
372
sci
decimation.sci
function X_ech=decimation(X, k_ech) // Fonction downsampling facteur k_ech [n,l]=size(X) n_ech=int(n/k_ech) X_ech=zeros(n_ech,l); for i = 1:n_ech X_ech(i,:)=X(i*k_ech,:); end endfunction // //X=read('bunny.asc',-1,3); //[n,l]=size(X) //X_ech=decimation(X,10) //write('bunny_ech.asc',X_ech); //figure(1); //clf //param3d1(X_ech(:,1), X_ech(:,2), list(X_ech(:,3), -4));
e544ffd0d3737a820ce3bb51751d4e3a5ecd31d6
449d555969bfd7befe906877abab098c6e63a0e8
/1658/CH16/EX16.4/Ex16_4.sce
6ed1bb05d75bf57f7aad251867725dcaebaf49c3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
162
sce
Ex16_4.sce
clc; //e.g 16.4 Vdc=30; RL=600; Rf=25; Idc=(Vdc/RL); disp('A',Idc*1,"Idc="); Im=%pi*Idc; disp('A',Im*1,"Im="); Vin=Im*(Rf+RL); disp('V',Vin*1,"Vin=");
f2a3ad880945b1e3967f5b8e3f97f1f69c6f3085
449d555969bfd7befe906877abab098c6e63a0e8
/858/CH5/EX5.11/example_11.sce
b185c64f961f4563207577a854822512f336b5b5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
234
sce
example_11.sce
clc clear printf("example 5.11 page number 192\n\n") //to find the equilibrium temperature R=6.92*10^5 //in km l=14.97*10^7 //in km Ts=6200; //in K To=(R^2/l^2)^0.25*Ts; printf("Equilibrium temperature = %f K",To)
317c723c63217edce5d087320d5d5832e93afc2e
b33a9177edaaf6bf185ef20bf87d36eada719d4f
/qtdeclarative/tests/auto/quick/qquickborderimage/data/valid2.sci
a0247818bbfcea4d614a09d64090ec22ec45f3a0
[ "Qt-LGPL-exception-1.1", "LGPL-2.1-only", "LGPL-2.0-or-later", "LGPL-3.0-only", "GPL-3.0-only", "LGPL-2.1-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "GFDL-1.3-only", "LicenseRef-scancode-digia-qt-preview", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-generic-exception" ]
permissive
wgnet/wds_qt
ab8c093b8c6eead9adf4057d843e00f04915d987
8db722fd367d2d0744decf99ac7bafaba8b8a3d3
refs/heads/master
2021-04-02T11:07:10.181067
2020-06-02T10:29:03
2020-06-02T10:34:19
248,267,925
1
0
Apache-2.0
2020-04-30T12:16:53
2020-03-18T15:20:38
null
UTF-8
Scilab
false
false
140
sci
valid2.sci
border.left: 10 border.top: 20 border.right: 30 border.bottom: 40 horizontalTileMode: "Round" verticalTileMode: "Repeat" source: colors.png
9a6a5962ff2d45474bf4c6c9e7938db52caef0c5
449d555969bfd7befe906877abab098c6e63a0e8
/2150/CH4/EX4.15/ex4_15.sce
3ff6ac033714d12abc37e8bc3c210f114419988b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
340
sce
ex4_15.sce
// Exa 4.15 clc; clear; close; // Given data V_CC = 18;// in V bita = 90; R_C = 2.2 * 10^3;// in ohm R_E = 1.8*10^3;// in ohm R_B = 510*10^3;// in ohm I_B = V_CC/( (bita*(R_C+R_E))+R_B );// in A I_C = bita*I_B;// in A disp(I_C*10^3,"The value of I_C in mA is"); V_CE = I_B*R_B;// in V disp(V_CE,"The value of V_CE in V is");
ee36ed6e86746d61f63f40b152d6362c28c96602
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set9/s_Engineering_Physics_P._V._Naik_710.zip/Engineering_Physics_P._V._Naik_710/CH13/EX13.6/13_6.sci
9a9d2274d1763d89bd94e999352706a24eae79d4
[]
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
456
sci
13_6.sci
errcatch(-1,"stop");mode(2);; ; //To determine the number of guided modes NA=0.28; //numerical aperture a=30; //core radius lambda=0.8; //wavelength in micro meter f=(2*%pi*a*NA)/lambda; //normalised frequency Ng=f^2/2 //number of guided modes printf("The number of guided modes is %f",Ng); exit();
2c33ac1ca20f9dac6059a5b72559fcf98f04ba0f
449d555969bfd7befe906877abab098c6e63a0e8
/3630/CH12/EX12.16/Ex12_16.sce
d34f867f5471aea6a8a6983953c862db974d73af
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
726
sce
Ex12_16.sce
clc; Vgs1=-0.5 Vgs2=-5; Gm01=0.002; Gm02=0.006; Vgsoff1=-2; Vgsoff2=-8; Gm1=Gm01*(1-(Vgs1/Vgsoff1)); Gm2=Gm02*(1-(Vgs2/Vgsoff2)); Rs=5100; RL=20000; rS=(Rs*RL)/(Rs+RL); Avmin=rS/(rS+(1/Gm1)); Avmax=rS/(rS+(1/Gm2)); disp(' ',Avmax,"Avmax=")//The answers vary due to round off error disp(' ',Avmin,"Avmin=")//The answers vary due to round off error Gm11=1/667; Gm22=1/444; Zoutmax=(Rs/Gm11)/(Rs+(1/Gm11)); Zoutmin=(Rs/Gm22)/(Rs+(1/Gm22)); disp('Ohm',Zoutmax,"Zoutmax=")//The answers vary due to round off error disp('Ohm',Zoutmin,"Zoutmin=")//The answers vary due to round off error R1=1000000; R2=1000000; Zin=(R1*R2)/(R1+R2); disp('KOhm',Zin/1000,"Zin=")//The answers vary due to round off error
eb6eb1f219321056960d83d5e3357420015cd3f4
449d555969bfd7befe906877abab098c6e63a0e8
/3733/CH24/EX24.25/Ex24_25.sce
5582f703d9de5e9dfc76f333f7e793a44c03c419
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,106
sce
Ex24_25.sce
// Example 24_25 clc;funcprot(0); //Given data p_r=4.5;// Pressure ratio m_a=82;// kg/min m_f=1.4;// kg/min W_o=200;// kW W_c=230// kW p_1=1;// bar T_1=15+273;// K T_3=765+273;// K r_c=1.4;// The index of compression r_e=1.34;// The index of expansion C_pa=1;// kJ/kg.K C_pg=1.13;// kJ/kg.K n_m=0.98;// Mechanical efficiency of the compressor //Calculation W_t=(W_o+W_c)/n_m;// kW m_a=(m_a)/60;// kg/sec m_f=(m_f)/60;// kg/sec AF=m_a/m_f;// Air fuel ratio //(a) T_2a=T_1*(p_r)^((r_c-1)/r_c);// K n_c=(m_a*C_pa*((T_2a-T_1)/W_c))*100;// Isentropic efficiency of compressor in % //(b) T_4a=T_3/(p_r)^((r_e-1)/r_e);// K n_t=(W_t/((m_a+m_f)*C_pg*(T_3-T_4a)))*100;// Isentropic efficiency of turbine in % //(c) T_2=T_1+((T_2a-T_1)/(n_c/100));// K n_o=(W_o/((m_a+m_f)*C_pg*(T_3-T_2)))*100;// The over all efficiency of the plant in % printf('\n(a)Isentropic efficiency of compressor=%0.0f percentage \n(b)Isentropic efficiency of turbine=%0.1f percentage \n(c) The over all efficiency of the plant=%0.1f percentage',n_c,n_t,n_o); // The answers provided in the textbook is wrong
3236cc8938a3ba4c5d1c5a9650b2e8e1f77d4247
449d555969bfd7befe906877abab098c6e63a0e8
/2054/CH1/EX1.38/ex1_38.sce
cc204ee3d2accfdf6affc5daebae2fac963f5ced
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
299
sce
ex1_38.sce
//Exa:1.38 clc; clear; close; V=230;//in volts I_a=100;//in amperes R_a=0.05;//in ohms E_b=V-I_a*R_a;//in volts N=870;//in rpm T=E_b*I_a/(2*%pi*N/60);//torque developed (in N-m) T_l=400;//in N-m I_an=I_a*T_l/T;//in amperes E=V+I_an*R_a;//in volts N1=N*E/230; disp(N1,'Speed (in rpm)=')
62df819ba4eeb02ad8b8c26c618f355632b36849
449d555969bfd7befe906877abab098c6e63a0e8
/1760/CH7/EX7.2/EX7_2.sce
466204c7cabed2d598f63847feb966c3455b3184
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
411
sce
EX7_2.sce
//EXAMPLE 7-2 PG NO-437-438 Z11=99+%i*99; Z12=-%i*100; Z21=20-%i*102.26; Z22=90.06-%i*120; Z1=Z11-Z12; disp('i) Impedance (Z1) is in rectangular form = '+string (Z1) +'ohm '); Z2=Z22-Z12; disp('ii) Impedance (Z2) is in rectangular form = '+string (Z2) +'ohm '); Z3=Z21-Z12; disp('iii) Impedance (Z3) is in rectangular form = '+string (Z3) +'ohm ');
f138b9a318e42a78470a7e50de0bb7f47301b81e
449d555969bfd7befe906877abab098c6e63a0e8
/2054/CH3/EX3.17/Exa3_17.sce
d323a6ec06cfcb3424008605954599c2ee48d527
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
270
sce
Exa3_17.sce
//Exa:3.17 clc; clear; close; V=200;//in volts I_a=100;//in amperes R_a=0.02;//in ohms N1=940;//in rpm N2=500;//in rpm E_b1=V-(I_a*R_a);//in volts E_b2=E_b1*N2/N1;//in volts V_a=E_b2+(I_a*R_a);//in volts alpha=V_a/V; disp(alpha,'Duty Cycle Of The Chopper=')
95ff93848da040d1b176e50b3907cdf3ce0dcd5a
17bac8e399d9ac12fc4c3b7b96facb45fdd7cfe4
/gaussjordon.sce
d64317f216c172fa1d0496e3789928e8c2fee0e0
[]
no_license
macabdul9/scilab-programming
1e404c50322e24aac861b6d91d6eb4377ac798ca
b337c0f45a5d3f6f9ef702ce59c90ea018e642ac
refs/heads/master
2020-05-04T19:25:13.903631
2019-04-05T16:22:42
2019-04-05T16:22:42
179,392,441
0
0
null
null
null
null
UTF-8
Scilab
false
false
795
sce
gaussjordon.sce
a = [3 4 -2 2 2 4 9 -3 5 8 -2 -3 7 6 10 1 4 6 7 2]; for j=1:m-1 for z=2:m if a(j,j)==0 t=a(j,:);a(j,:)=a(z,:); a(z,:)=t; end end for i=j+1:m a(i,:)=a(i,:)-a(j,:)*(a(i,j)/a(j,j)); end end x=zeros(1,m); for s=m:-1:1 c=0; for k=2:m c=c+a(s,k)*x(k); end x(s)=(a(s,n)-c)/a(s,s); end disp('Gauss elimination method:'); for j=1:m-1 for z=2:m if a(j,j)==0 t=a(1,:);a(1,:)=a(z,:); a(z,:)=t; end end for i=j+1:m a(i,:)=a(i,:)-a(j,:)*(a(i,j)/a(j,j)); end end for j=m:-1:2 for i=j-1:-1:1 a(i,:)=a(i,:)-a(j,:)*(a(i,j)/a(j,j)); end end for s=1:m a(s,:)=a(s,:)/a(s,s); x(s)=a(s,n); end disp('Gauss-Jordan method:');
538bfa7524bd5aaf7704007ad870f402b2a1402e
449d555969bfd7befe906877abab098c6e63a0e8
/52/CH1/EX1.11/Example1_11.sce
8ddb5dad70010ec701a4d71ba468aea555d45183
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
304
sce
Example1_11.sce
//Example 1.11 //MAXIMA SCILAB TOOLBOX REQUIRED FOR THIS PROGRAM //Testing Stability of Given System clear; clc ; close ; syms n; x =(1/2)^n X= symsum (x,n ,0, %inf ); //Display the result in command window disp (X,"Summation is :"); disp('Hence Summation < infinity. Given System is Stable');
4955a05dcdd2cc06789ade7f78f6de5a8a875357
4a1effb7ec08302914dbd9c5e560c61936c1bb99
/Project 2/Experiments/AdaBoost/results/AdaBoost.NC-C.abalone-10-1tra/result2s0.tst
0d8f483b560204f36161314e088dea708e01bd93
[]
no_license
nickgreenquist/Intro_To_Intelligent_Systems
964cad20de7099b8e5808ddee199e3e3343cf7d5
7ad43577b3cbbc0b620740205a14c406d96a2517
refs/heads/master
2021-01-20T13:23:23.931062
2017-05-04T20:08:05
2017-05-04T20:08:05
90,484,366
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,406
tst
result2s0.tst
@relation abalone @attribute Sex{M,F,I} @attribute Length real[0.075,0.815] @attribute Diameter real[0.055,0.65] @attribute Height real[0.0,1.13] @attribute Whole_weight real[0.002,2.8255] @attribute Shucked_weight real[0.001,1.488] @attribute Viscera_weight real[5.0E-4,0.76] @attribute Shell_weight real[0.0015,1.005] @attribute Rings{15,7,9,10,8,20,16,19,14,11,12,18,13,5,4,6,21,17,22,1,3,26,23,29,2,27,25,24} @inputs Sex,Length,Diameter,Height,Whole_weight,Shucked_weight,Viscera_weight,Shell_weight @outputs Rings @data 12 7 10 7 15 7 5 7 4 7 8 7 20 7 11 7 16 7 12 7 8 7 12 7 11 7 9 7 18 7 7 7 9 7 16 7 13 7 13 7 12 7 8 7 13 7 7 7 11 7 15 7 11 7 9 7 10 7 16 7 8 7 19 7 19 7 10 7 10 7 10 7 12 7 14 7 11 7 11 7 13 7 17 7 11 7 5 7 10 7 14 7 8 7 14 7 11 7 15 7 21 7 9 7 16 7 11 7 11 7 11 7 5 7 12 7 4 7 13 7 13 7 17 7 17 7 15 7 9 7 10 7 12 7 7 7 10 7 9 7 8 7 15 7 12 7 11 7 4 7 8 7 7 7 5 7 7 7 7 7 6 7 7 7 6 7 6 7 8 7 10 7 9 7 7 7 8 7 10 7 12 7 11 7 6 7 6 7 6 7 7 7 6 7 8 7 8 7 7 7 8 7 8 7 8 7 8 7 9 7 9 7 9 7 7 7 8 7 8 7 11 7 8 7 8 7 7 7 9 7 7 7 13 7 10 7 9 7 9 7 11 7 10 7 10 7 11 7 9 7 10 7 11 7 12 7 10 7 15 7 10 7 10 7 11 7 14 7 6 7 6 7 8 7 6 7 9 7 8 7 6 7 8 7 9 7 9 7 8 7 10 7 10 7 11 7 6 7 5 7 8 7 8 7 8 7 9 7 10 7 12 7 10 7 9 7 8 7 9 7 11 7 10 7 12 7 9 7 12 7 12 7 10 7 10 7 10 7 9 7 11 7 9 7 4 7 7 7 11 7 8 7 8 7 10 7 10 7 7 7 9 7 9 7 9 7 10 7 10 7 9 7 11 7 11 7 13 7 11 7 7 7 7 7 7 7 8 7 9 7 9 7 9 7 8 7 8 7 11 7 8 7 10 7 14 7 7 7 8 7 10 7 9 7 16 7 9 7 12 7 9 7 6 7 5 7 11 7 7 7 18 7 13 7 8 7 13 7 13 7 15 7 10 7 10 7 10 7 8 7 10 7 17 7 23 7 12 7 18 7 11 7 3 7 12 7 10 7 5 7 9 7 10 7 9 7 9 7 11 7 7 7 5 7 8 7 12 7 8 7 7 7 7 7 6 7 9 7 8 7 8 7 9 7 9 7 10 7 11 7 4 7 6 7 8 7 8 7 9 7 9 7 10 7 10 7 11 7 10 7 10 7 12 7 9 7 9 7 7 7 9 7 9 7 6 7 7 7 9 7 8 7 8 7 11 7 11 7 12 7 11 7 11 7 9 7 11 7 14 7 6 7 8 7 9 7 7 7 9 7 9 7 11 7 10 7 10 7 14 7 11 7 11 7 7 7 7 7 9 7 13 7 24 7 10 7 15 7 12 7 5 7 9 7 6 7 15 7 16 7 8 7 13 7 14 7 5 7 11 7 18 7 15 7 14 7 12 7 9 7 17 7 16 7 13 7 8 7 19 7 9 7 10 7 5 7 6 7 10 7 13 7 6 7 7 7 13 7 7 7 8 7 9 7 11 7 10 7 10 7 6 7 8 7 8 7 12 7 11 7 3 7 6 7 7 7 7 7 9 7 9 7 10 7 8 7 12 7 10 7 7 7 8 7 9 7 9 7 7 7 10 7 10 7 14 7 10 7 11 7 10 7 11 7 7 7 9 7 9 7 13 7 8 7 10 7 9 7 10 7 9 7 10 7 14 7 6 7 8 7 4 7 7 7 12 7 11 7 5 7 13 7 14 7 17 7 10 7 15 7 12 7 20 7 14 7 13 7 13 7 9 7 12 7 6 7 7 7 6 7 9 7 11 7 10 7 11 7 10 7 11 7 9 7 9 7 8 7 10 7 8 7 9 7 10 7 8 7 10 7 6 7 7 7 7 7
d34e7abb5277f2c92251a86f8bf8425d8fa239d4
449d555969bfd7befe906877abab098c6e63a0e8
/1026/CH6/EX6.4/Example6_4.sce
40621e5cc7a4d983e646942f9292028eafc88aa9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
348
sce
Example6_4.sce
//chapter6,Example6_4,pg 122 sig=3.82*10^7 L=1000*12*2.54*10^-2//converting into m r=0.4*2.54*10^-2 V=1.2 Jc=sig*(V/L) A=3.14*(r^2) Ic=Jc*A P=Ic*V printf("current density\n") printf("Jc=%.f A/m2",Jc) printf("\ntotal current\n") printf("Ic=%.2f A",Ic) printf("\npower dissipation\n") printf("P=%.2f watt",P)
582d42aa860d953cd6c322511a0d849c222c623b
449d555969bfd7befe906877abab098c6e63a0e8
/67/CH1/EX1.8/example18.sce
765ffa26a1b401a55800893c7c7cdaad9cc8cd8c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
230
sce
example18.sce
//Example 1.8 //Find the power of the signal x(t)=Acos(Wot+theeta) clc; A=20; Wo=(2*%pi)/4; for i=1:50 x(i)=A*cos(Wo*i); end p=0; for i=1:4 p=p+(abs(x(i)^2))/4; end disp(p,'The power of the given signal is =');
a9ec2f7a445cad4da4e20337977e7195fba21317
527c41bcbfe7e4743e0e8897b058eaaf206558c7
/Positive_Negative_test/Netezza-Functions/function1/MLE.tst
7882e67877adff67f82ecb0e772ff399d03da0ad
[]
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
7,200
tst
MLE.tst
INFO: Reading startup configuration from file PulsarLogOn.act_ssl_config -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Teradata Aster -- -- 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: Maximum Likelihood Estimation of Distribution Parameters -- -- Last Updated: 05-30-2017 -- -- Author: <kamlesh.meena@fuzzyl.com> -- -- BEGIN: TEST SCRIPT \timing on Timing is on -- BEGIN: TEST(s) -----**************************************************************** ---FLMLEBinomialUdt -----**************************************************************** CREATE VIEW view_binom_1000 AS SELECT 1 AS GroupID, 5 AS NumOfTrials, FLSimBinomial(a.RandVal, 0.77, 5) AS NumVal FROM fzzlSerial a WHERE a.SerialVal <= 1000; SELECT a.* FROM(SELECT vw.GroupID, vw.NumOfTrials , vw.NumVal, NVL(LAG(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS end_flag FROM view_binom_1000 vw) AS z, TABLE(FLMLEBinomialUdt(z.GroupID, z.NumOfTrials, z.NumVal, z.begin_flag, z.end_flag)) AS a; DROP VIEW view_binom_1000; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMLEChiSqUdt -----**************************************************************** CREATE VIEW view_chisq_1000 AS SELECT 1 AS GroupID, FLSimChiSq(a.RandVal, 6) AS NumVal FROM fzzlSerial a WHERE a.SerialVal <= 1000; SELECT a.* FROM(SELECT vw.GroupID, vw.NumVal, NVL(LAG(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS end_flag FROM view_chisq_1000 vw) AS z, TABLE (FLMLEChiSqUdt(z.GroupID, z.NumVal, z.begin_flag, z.end_flag)) AS a; DROP VIEW view_chisq_1000; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMLEExpUdt -----**************************************************************** CREATE VIEW view_exp_1000 AS SELECT 1 AS GroupID, FLSimExp(a.RandVal, 0, 6.08) AS NumVal FROM fzzlSerial a WHERE a.SerialVal <= 1000; SELECT a.* FROM(SELECT vw.GroupID, vw.NumVal, NVL(LAG(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS end_flag FROM view_exp_1000 vw) AS z, TABLE(FLMLEExpUdt(z.GroupID, z.NumVal, z.begin_flag, z.end_flag)) AS a; DROP VIEW view_exp_1000; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMLENormalUdt -----**************************************************************** CREATE VIEW view_normal_1000 AS SELECT 1 AS GroupID, FLSimNormal(a.RandVal, -3.75, 1.5) AS NumVal FROM fzzlSerial a WHERE a.SerialVal <= 1000; SELECT a.* FROM(SELECT vw.GroupID, vw.NumVal, NVL(LAG(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS end_flag FROM view_normal_1000 vw) AS z, TABLE (FLMLENormalUdt(z.GroupID, z.NumVal, z.begin_flag, z.end_flag)) AS a; DROP VIEW view_normal_1000; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMLEPoissonUdt -----**************************************************************** CREATE VIEW view_poisson_1000 AS SELECT 1 AS GroupID, CAST(FLSimPoisson(a.RandVal, 2.1) AS INTEGER) AS NumVal FROM fzzlSerial a WHERE a.SerialVal <= 1000; SELECT a.* FROM(SELECT vw.GroupID, vw.NumVal, NVL(LAG(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS end_flag FROM view_poisson_1000 vw) AS z, TABLE (FLMLEPoissonUdt(z.GroupID, z.NumVal, z.begin_flag, z.end_flag)) AS a; DROP VIEW view_poisson_1000; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMLEWeibullUdt -----**************************************************************** CREATE VIEW view_weibull_1000 AS SELECT 1 AS GroupID, FLSimWeibull(a.RandVal, 0, 1.8, 4.8) AS NumVal FROM fzzlSerial a WHERE a.SerialVal <= 1000; SELECT a.* FROM(SELECT vw.GroupID, vw.NumVal, NVL(LAG(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS end_flag FROM view_weibull_1000 vw) AS z, TABLE(FLMLEWeibullUdt(z.GroupID, z.NumVal, z.begin_flag, z.end_flag)) AS a; DROP VIEW view_weibull_1000; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMLEStudentsTUdt -----**************************************************************** CREATE VIEW view_student_1000 AS SELECT 1 AS GroupID, FLSimStudentsT(a.randval,0,1,35.6895) AS NumVal FROM fzzlSerial a WHERE a.SerialVal <= 1000; SELECT a.* FROM(SELECT vw.GroupID, vw.NumVal, NVL(LAG(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY vw.GroupID ORDER BY vw.GroupID), 1) AS end_flag FROM view_student_1000 vw) AS z, TABLE (FLMLEStudentsTUdt(z.GroupID, z.NumVal, z.begin_flag, z.end_flag)) AS a; DROP VIEW view_student_1000;
2b900d2fbb28372aa4fc2179bbdd3ae75486cec8
a56536320fd14b35e21c2b9997d8aac037da6124
/FOCA/FOCA.sce
878c9038439938fd4d071c38608109e0ea868190
[]
no_license
HigorKolecha/OtimizacaoDeRedes
97869a5d4593b2e765304a23edcb4e825883eacb
f0057b6a4d9c1f00734fecdf9ea5b4a859abf433
refs/heads/master
2023-05-12T12:11:43.074997
2021-06-04T23:44:25
2021-06-04T23:44:25
369,598,892
1
0
null
null
null
null
UTF-8
Scilab
false
false
23,379
sce
FOCA.sce
//---------------------------------------------- // Algorítimo OCF responsável pela otimização na // corrente injetada na rede distribuição. // Projeto de Pesquisa FAPESP // Projeto número: #2019/24128-2 // @date 01/07/2020 // @author Higor de Paula Kolecha // @author Adolfo Blengini Neto // @author Marcius Fabius Henriques de Carvalho. // @version 1.0 //---------------------------------------------- // Responsável pela limpeza toda memória clear; // Responsável pela limpeza de tela clc; // Solicitação ao usuário do endereço para obtenção do arquivo de entrada. entradaDeDados=input("Digite o endereço com localização do arquivo de entrada de dados. Obs: seguir instruções no arquivo Guideline. "); // Arquivo de Entrada com a estrutura da Rede de Distribuição. M = fscanfMat(entradaDeDados, "%lg"); // Importa arquivo que apresenta os dados de entrada da rede. // Inicio de contagem de timer para tempo de resolução da rede. tic(); // Salva o número de ramos. NR=M(1,1); // Salva o número de barras. NB=M(1,2)+M(1,3); // Valor de refencia de tensão inicial Real. vf=1.0; // Valor de refencia de tensão inicial Imaginário. vfi=0; // -------------------------------------------------------------------- // Funcao responsável pela construçao do laço externo. // Entrada : Estrutura do arquivo completo. // Saida : Matriz de lacos externos, informação de quantos laços foram // criados. // ------------------------------------------------------------------- function [LE,quantosLacos,barraLaco,barraLacoImag]=lacosExternos(M) // Ajuste da variável M para retirada de informações gerais. mAux=M(2:NR+1,1:size(M,'c')); // Criação de vetores auxiliares O=mAux(:,1); // Criação do vetor origem. D=mAux(:,2); // Criação do vetor destino. // Criação do caminho que a corrente faz para poder criar um laço para a parte real e imaginária da rede. quaisLacos=[]; // Real. quaisLacosImag=[];// Imaginária. // Quais barras tiveram seus laços criados para a parte real e imaginária da rede. barraLaco=[]; // Real. barraLacoImag=[]; // Imaginária. // Definição de posições das barras geradoras na matriz mAux. geradores=find(mAux(:,7)==1); // Criação uma matriz com todas barras geradoras da rede. geradores=mAux(geradores,1); // Estrutura de repetição para criação de laços da rede. for i=NR:-1:1 // Definição da barra inicial que posteriormente será verificada a existência de laços. buss=mAux(i,2); // Laços para parte real da rede. if (mAux(i,3)~=0) // Verificação da existencia de carga. laco=zeros(NR+M(1,3),1); // Criação da matriz referente ao caminho que a corrente faz para poder criar um laço. barraLaco=cat(1,barraLaco,i); // Faz a concatenação da matriz "barralaco" a fim de serem adicionadas apenas as barras com laços existentes. // Busca amontante até feeder. while (1>0) origem=find(D(:,1)==buss); // Mostra as possíveis posições onde se encontra o próximo ramo para formação de laços. laco(origem(1,1),1)=mAux(origem(1,1),5); // Monta o vetor caminhos, mostrando os laços feitos. buss=O(origem(1,1),1); // Recebe o valor que se encontra na posição acima destacada dentro do vetor origem. parada=find(O(:,1)==buss(1,1)); // Procura onde está a origem do buss, retornando a posição da matriz O. parou=mAux(parada,1); // Atribui o valor referente a posição da matriz O encontrada na linha superior. condicaoDeParada=find(geradores(:,:)==parou); // Procura na matriz geradores, se já chegou em algum deles. if(condicaoDeParada~=[]) // Caso o valor da condicaoDeParada seja diferente de vazio, quer dizer que ainda não estamos em um gerador, desta forma, a função while deverá continuar. Caso contrário, deverá parar. break end end buss=mAux(i,2); // Retorna o valor inicial referente a barra a ser utilizada neste momento, para que possa ser criados outros laços futuramente. quaisLacos=cat(2,quaisLacos,laco); // Concatenação horizontal, inserindo todos laços 'reais' criados em apenas uma matriz. end // Laços para parte imaginária da rede. if (mAux(i,4)~=0) // Verificação da existencia de carga. lacoImag=zeros(NR+M(1,3),1); // Criação do caminho que a corrente faz para poder criar um laço. barraLacoImag=cat(1,barraLacoImag,i); // Faz a concatenação da matriz "barralaco" a fim de serem adicionadas apenas as barras com laços existentes. // Busca amontante até feeder, ou seja, barra de geração. while (1>0) origem=find(D(:,1)==buss); // Mostra a posição onde se encontra o próximo ramo para formação de laços. lacoImag(origem(1,1),1)=mAux(origem(1,1),6); // Monta o vetor caminhos, mostrando os laços feitos. buss=O(origem(1,1),1); // Recebe o valor que se encontra na posição acima destacada dentro do vetor origem. parada=find(O(:,1)==buss(1,1)) // Procura onde está a origem do buss, retornando a posição da matriz O. parou=mAux(parada,1); // Atribui o valor referente a posição da matriz O encontrada na linha superior. condicaoDeParada=find(geradores(:,:)==parou); // Procura na matriz geradores, se já chegou em algum deles. if(condicaoDeParada~=[]) // Caso o valor da condicaoDeParada seja diferente de vazio, quer dizer que ainda não estamos em um gerador, desta forma, a função while deverá continuar. Caso contrário, deverá parar. break end end buss=mAux(i,2); // Retorna o valor inicial referente a barra a ser utilizada neste momento, para que possa ser criados outros laços futuramente. quaisLacosImag=cat(2,quaisLacosImag,lacoImag); // Concatenação horizontal, inserindo todos laços 'imaginários' criados em apenas uma matriz. end end // Criação da matriz auxiliar. quaisLacos2=quaisLacos; // Junção das informações de quais barras geraram laço para parte real e imaginária. // barraLaco=cat(1,barraLaco,barraLacoImag); // Junção de laços reais e imaginários. quaisLacos=cat(2,quaisLacos,quaisLacosImag); // Junção dos laços para calculo de tensão imaginária. quaisLacosImag=cat(2,quaisLacosImag*(-1),quaisLacos2); // Junção de todos laços reais e imaginários para calculo da tensão de barra parte real e imaginária. quaisLacos=cat(1,quaisLacos,quaisLacosImag); // Transposição da matriz para concatenação com a matriz indicencia posteriormente. quaisLacos=quaisLacos'; // Expansão da matriz para resolução da rede. quaisLacos=cat(2,quaisLacos,eye(size(quaisLacos,'r'),size(quaisLacos,'r'))); // Nomeação de nova variável, recebendo a matriz de laços criada. LE=quaisLacos; // Dimensão de quantos laços ao todo foram criados. quantosLacos=size(LE,'r'); endfunction // --------------------------------------------------------------- // Funcao responsavel pela construção da Matriz incidência C. // Entrada : Estrutura do arquivo completo e Matriz laços externos. // Saída : Matriz incidência C, informação de colunas para resolução // de caso real, informação de colunas para resolução de caso completo // de rede. //---------------------------------------------------------------- function [C,qnt_coluna_MC_incidencia,qnt_coluna_MC] = MatrizC(M,LE,quantosLacos) AuxC=1; // Auxiliar para criação da matriz inciência de "carga", endereço da coluna. AuxG=1; // Auxiliar para criação da matriz inciência de "geração", endereço da coluna. MAg=zeros(M(1,2),M(1,3)); // Criação de variáveis novas para descartar restrições de desigualdade. for i=2:(NR+1) // Orientação. origem=M(i,1); destino=M(i,2); // Parte real matriz incidencia (A). C(origem,AuxC)=1; C(destino,AuxC)=-1; AuxC=AuxC+1; // Complemento da matriz incidencia (A) com as barras de geração. if(M(i,7)==1) MAg(origem,AuxG)=1; AuxG=AuxG+1; end end // Concatenação da Matriz indicencia com variáveis de folga. C=cat(2,C,MAg); // Criação da matriz que será responsável por receber quais ramos devem estar normalmente abertas ou fechadas. matrizRestricao=zeros(NB,size(C,"c")); // Estrutura de repetição responsável pela criação da matriz responsável pela identificação das linhas abertas, assim como ligar ou desligar ramos da rede. for i=2:(NR+1) if M(i,8)==1 matrizRestricao(i-1,i-1)=1; end end // Ajuste para inserção da variável de folga. matrizRestricao=cat(1,matrizRestricao,zeros(M(1,3),size(matrizRestricao,"c"))); // Informação do tamanho da matriz incidência A. Definição para a quantidade de valores presentes na matriz Q. qnt_coluna_MC_incidencia=size(C,'c'); // Criação de matriz auxiliar de mesmo tamanho que a matriz incidencia após a concatenação com variáveis de folga. C1=zeros(size(C,'r'),size(C,'c')); // Criação da parte imaginária da matriz incidencia. // A concatenção é feita desta forma para que sejam inseridas novas variáveis, sendo responsáveis pela parte imaginária. C2=cat(2,C1,C); // Junção da matriz incidecia real com seu complemento de zeros. // Esta concatenação é feita para que possam ser feita posteriormente a junção com a parte imaginária da rede. C=cat(2,C,C1); // Junção da matriz incidecia real com a parte imaginária. C=cat(1,C,C2); // Ajuste para desligamento de ramo. C=cat(2,C,zeros(size(C,"r"),size(LE,"c")-size(C,"c"))); // Junção de restrição para desligar ramos para partes Real e Imaginária. matrizRestricaoAux=matrizRestricao; matrizRestricao=cat(2,matrizRestricao,zeros(size(matrizRestricao,"r"),size(matrizRestricao,"c"))); matrizRestricaoAux=cat(2,zeros(size(matrizRestricaoAux,"r"),size(matrizRestricaoAux,"c")),matrizRestricaoAux); matrizRestricao=cat(1,matrizRestricao,matrizRestricaoAux); // matrizRestricao=cat(2,matrizRestricao,zeros(size(matrizRestricao,"r"),size(matrizRestricao,"c"))); matrizRestricao=cat(2,matrizRestricao,zeros(size(matrizRestricao,"r"),size(LE,"c")-size(matrizRestricao,"c"))); // Junção da matriz Indicência com a matriz restrição. C=cat(1,C,matrizRestricao); // Inserção da matriz de laço junto à matriz incidência C. // C=cat(1,C,LE); // Inserção de novas colunas para que as restrições de laço funcionem. C=cat(2,C,zeros(size(C,"r"),size(C,"r")-size(C,"c"))); //Valor responsável para a criação da matriz P futuramente. qnt_coluna_MC=size(C,'c'); endfunction // -------------------------------------------------------------------- // Funcao responsavel pela contrução da Matriz de carga b. // Entrada: Estrutura do arquivo completo, informação de colunas para // resolução de caso real, informação de colunas para resolução de caso // completo de rede. // Saída : Matriz de carga b. //--------------------------------------------------------------------- function [b] = MatrizB(M,quantosLacos,qnt_coluna_MC_incidencia,barraLaco,barraLacoImag) // Criação da matriz B com todos valores negativos. for i=1:NR // Matriz b parte real da carga. b(i)=(-1)*(M(i+1,3))//+M((i+1),9)); // Matriz B parte imaginário da carga. b1(i)=(-1)*M(i+1,4); end // Ajuste para casos onde o número de barras é maior que o número de ramos. if NB>NR then b=cat(1,b,zeros(M(1,3),1)); b1=cat(1,b1,zeros(M(1,3),1)); end // Atualização de sinais da matriz B. // Sendo positivo o que é gerado e negativo o que é consumido. for i=1:NR if(M(i+1,7)==1) // Correção para a parte Real. origem=M(i+1,1); b(origem)=b(origem)*(-1); // Correção para a parte imaginária. b1(origem)=b1(origem)*(-1); end end // Complemento referente a barras inseridas de folga e restrições de abertura/fechamento de ramos. if(NB==NR) // Fora necessário inserir esta comparação pois no caso da rede de 400barras, haviam na verdade 402 barras e 402 ramos, mas como 1 ramo era feeder e é considerado que neste caso seja inserido uma barra nova, a quantidade de barras e ramos era diferente, ou seja 403 barras e 402 ramos no total. // Junção da matriz Solicitação de carga partes Real e Imaginária. b=cat(1,b,b1); // Inserção de restrições de laço pela lei de Kirchoff para a parte Real da rede. b=cat(1,b,zeros(2*(NR+M(1,3)),1)); // Inserção de tensão inicial de barra. // b=cat(1,b,vf*ones(size(barraLaco,"r"),1)); // b=cat(1,b,vfi*ones(size(barraLacoImag,"r"),1)); elseif(NB<NR) // Ajuste de tamanho para matriz referente a Solicitação de Carga parte Real e Imaginária b=b(1:NB);// Real b1=b1(1:NB);// Imaginária // Junção da matriz Solicitação de carga partes Real e Imaginária. b=cat(1,b,b1); // Inserção de restrições de laço pela lei de Kirchoff para a parte Real da rede. b=cat(1,b,zeros(2*(NR+M(1,3)),1)); // Inserção de tensão inicial de barra. // b=cat(1,b,vf*ones(size(barraLaco,"r"),1)); // b=cat(1,b,vfi*ones(size(barraLacoImag,"r"),1)); // pause else // Ajuste de tamanho para matriz referente a Solicitação de Carga parte Real e Imaginária. b=b(1:NB);// Real. b1=b1(1:NB);// Imaginária. // Ajuste caso o número de barras for superior ao número de ramos para parte imaginária b=cat(1,b,zeros(M(1,3),1)); // Inserção das solicitações de carga para parte imaginária da rede. b=cat(1,b,b1); // Ajuste caso o número de barras for superior ao número de ramos para parte imaginária b=cat(1,b,zeros(M(1,3),1)); // Inserção de restrições de laço pela lei de Kirchoff para a parte Real da rede. b=cat(1,b,zeros(2*(NR+M(1,3)),1)); // Inserção de tensão inicial de barra. // b=cat(1,b,vf*ones(size(barraLaco,"r"),1)); // b=cat(1,b,vfi*ones(size(barraLacoImag,"r"),1)); end endfunction //------------------------------------------------------------------- // Função responsável pela criação da matriz Q. // Entrada : Estrutura do arquivo completo, informação de colunas para // resolução de caso real, informação de colunas para resolução de caso // completo de rede. // Saída : Matriz simétrica para resistência e reatância Q. //------------------------------------------------------------------- function [Q]=MatrizQ(M,qnt_coluna_MC_incidencia,quantosLacos) // Dimensionamento de tamanho para matriz Q. Q=zeros(NR,qnt_coluna_MC_incidencia); Q2=zeros(NR,qnt_coluna_MC_incidencia); Q3=zeros(NR,qnt_coluna_MC_incidencia); // Criação da matriz simétrica para resistência e reatância de cada barra. for i=2:(NR+1) // Matriz simétrica para resistência. Q(i-1,i-1)=M(i,5); // Matriz simétrica para reatância. Q2(i-1,i-1)=M(i,6); end // Criação de complemento que será responsável pela resistência e impedância das as barras de geração. AuxQ=0.0000001*eye(M(1,3),M(1,3)); // Responsável pela criação de uma matriz complementar, irá possibilitar a concatenação posteriormente das variáveis de folga da rede. Q1=zeros(M(1,3),NR); // Concatenação de incremento para as variáveis com baixa resistencia referentes às variáveis de folga. Q1=cat(2,Q1,AuxQ); // Incremento da matriz auxiliar Q1 à matriz principal real e imaginária. Q=cat(1,Q,Q1); //Real. Q2=cat(1,Q2,Q1); //Imaginária. // Complemento à matriz Q (dobrando seu tamanho) para que seja possível, posteriormente, fazer a concatenação com a parte referente a reatancias da rede. // Parte real (resistencias) Q=cat(2,Q,zeros(size(Q,'r'),size(Q,'c'))); // Complemento à matriz Q (dobrando seu tamanho) para que seja possível, posteriormente, fazer a concatenação com a parte referente a reatancias da rede. Q2=cat(2,zeros(size(Q2,"r"),size(Q2,"c")),Q2); // Junção da matriz responsáveis pela resistencia dos ramos da rede e dos pesos para religamento da rede com a matriz responsável pela reatância dos ramos da rede. Q=cat(1,Q,Q2); // Expanção de colunas decorrente da inserção das equações de laço. Q=cat(2,Q,zeros(size(Q,"r"),size(C,"c")-size(Q,"c"))); // Expanção de linhas decorrente da inserção das equações de laço. Q=cat(1,Q,zeros(size(C,"c")-size(Q,"r"),size(Q,"c"))); // Correção para que a matriz se torne simétrica, ou seja, diferente de zero diagonal princial. for i=1:size(Q,"c") if Q(i,i)==0 Q(i,i)=0.00000000001; end end endfunction //---------------------------------------------------- // Criação matriz p. // Entrada : Valor de colunas da matriz incidência A. // Saída : Matriz peso p. //---------------------------------------------------- function [p]=MatrizP(qnt_coluna_MC) //Dimensão desta matriz deve ser igual a quantidade de colunas da matriz incidência A. a=0; for i=1:qnt_coluna_MC p(i,1)=0; end endfunction //---------------------------------------------------------------- // Função responável por inserção de restrições para abertura e // fechamento de ramos. // Entrada : Matriz incidência C e Estrutura do arquivo completo. // Saída : Matriz incidência C com restrições. //--------------------------------------------------------------- function [C]=restricao(C,M) while 1>0 do // Comunicação ao usuário. disp("Houve um Defeito Falha em algum ramo?"); algumRamoFalhou=input("Digite 1 (um) para sim ou 0 (zero) para não. "); // Verificação se houve Defeito Falha if algumRamoFalhou==0 break; elseif algumRamoFalhou==1 // Comunicação ao usuário. defeitoFalha=input("Digite o ramo com Defeito Falha: "); // Verificação de possibilidade de existir o Defeito Falha informado. if(defeitoFalha>NB) disp("Você digitou um valor inválido"); elseif(defeitoFalha~=0) // Inserção de valor 1 para iniciar uma restrição capaz de desligar o ramo informado tanto para parte real quanto imaginária. C(2*NB+M(1,3)+defeitoFalha,M(1,3)+defeitoFalha)=1; C(2*NB+NR+M(1,3)+defeitoFalha,NR+defeitoFalha+M(1,3))=1; elseif(defeitoFalha==0) continue; end // Comunicação com o usuário. on_off=input("Deseja ligar alguma linha? 1 para sim, 0 para não. ") // Confirmação do usuário para ligar algum ramo manualmente. if(on_off==1) // Demonstração de opções para religamento. disp("As opções são:"); for i=1:NR if(M(i+1,8)==1) a=M(i+1,1); b=M(i+1,2); c="-"; disp("Origem Destino - Número da linha"); disp(a, b, c, i); end end // Possibiliade de fechamento das opções já fornecidas ao usuário. while 1>0 ligar=input("Quais linhas que deseja ligar? Quando já colocou todas suas opções, digite 0. "); if(ligar==0) // Foram fechadas todas que o usuário quis. break; elseif(ligar>NR) // Usuário digitou informação inválida. disp("Você digitou um valor inválido") else // Usuário digitou informação válida. // Inserção de valor 0 para iniciar uma restrição capaz de ativar o ramo informado tanto para parte real quanto imaginária. C(2*NB+ligar,ligar)=0; C(2*NB+M(1,3)+NR+ligar,NR+ligar+M(1,3))=0; end end break; elseif(on_off==0) break; else disp("Você não digitou um valor válido."); end else disp("Você digitou uma informação inválida"); end end endfunction // ------------------------------------------------ // Estutura principal do Algoritimo para Otimização. // do fluxo de Corrente Alternada com Contingência. // ------------------------------------------------ // Instrução para criação da matriz responsável pela criação dos laços externos da rede. [LE,quantosLacos,barraLaco,barraLacoImag]=lacosExternos(M); // Instrução para criação da matriz incidência A. [C,qnt_coluna_MC_incidencia,qnt_coluna_MC]=MatrizC(M,LE,quantosLacos); // Instrução para criação da matriz incidência Q. [Q]=MatrizQ(M,qnt_coluna_MC_incidencia,quantosLacos); // Instrução para criação da matriz incidência P. [p]=MatrizP(qnt_coluna_MC); // Instrução para inserção de desligamento de barras em casa de Defeito Falha. [C]=restricao(C,M); // Instrução para criação da matriz incidência B. [b]=MatrizB(M,quantosLacos,qnt_coluna_MC_incidencia,barraLaco,barraLacoImag); // Limite inferior. ci=(-5)*ones(size(C,"c"),1); // Limite superior. cs=ci*(-1); // Função de otimização QPSOLVE - objetivo: Minimização de perdas na rede. [xopt,iact,iter,fopt]=qpsolve(Q,p,C,b,ci,cs,qnt_coluna_MC); // Término de contagem de timer para tempo de resolução da rede. toc(); // Informação ao usuário da resolução da rede. if xopt~=[] disp("Solução Ótima Encontrada!"); disp(fopt,"O valor ótimo encontrado para a função objetivo."); disp(iter,"Foram necessárias esta quantidade de iterações para convergir."); disp("O primeiro valor se refere às iterações e o segundo às restrições desativadas para resolução da rede."); disp(ans,"CPU time (s)."); else disp("Solução não encontrada.") end // Variáveis de resolução de rede. xopt=xopt(1:((2*(NR+M(1,3))+(size(LE,'r'))),1));
4fd240305dea884d30076ffd50b4ece07f787826
449d555969bfd7befe906877abab098c6e63a0e8
/1871/CH12/EX12.5/Ch12Ex5.sce
8245a974a2d53d6835f8f36ffa78535c22e2711a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,296
sce
Ch12Ex5.sce
// Scilab code Ex12.5: Pg:468 (2008) clc;clear; // Define function to convert degrees to degree, minute and second function [deg, minute, second] = deg2dms(theta) deg = floor(theta); minute = floor((theta-deg)*60); second = floor(((theta-deg)*60-minute)*60); endfunction n1 = 1.480; // Core refractive index of an optical fibre n2 = 1.47; // Cladding refractive index of an optical fibre lambda_0 = 850e-09; // wavelength of light, m V = 2.405; // Normalized frequency for single mode propagation of the fibre // As V = %pi*d*sqrt(n1^2-n2^2)/lambda_0, solving for d d = V*lambda_0/(%pi*sqrt(n1^2-n2^2)*1e-006); // Core radius, micro-metre NA = sqrt(n1^2-n2^2); // Numerical aperture of the fiber // Since sind(theta_0) = NA, solving for theta_0 theta_0 = asind(NA); // The maximum acceptance angle of fiber, degree [deg, m, s] = deg2dms(theta_0); // Call conversion function printf("\nThe core radius of the fiber = %4.2f micro-meter", d); printf("\nThe numerical aperture of fiber = %6.4f ", NA); printf("\nThe maximum acceptance angle = %d deg %d min %d sec", deg, m, s); // Result // The core radius of the fiber = 3.79 micro-meter // The numerical aperture of fiber = 0.1718 // The maximum acceptance angle = 9 deg 53 min 23 sec
2b4beed5f691e070f0f1917f288930359a429a7c
449d555969bfd7befe906877abab098c6e63a0e8
/2240/CH1/EX0.16/EXI_16.sce
74c8a11e57109ba836c618cd0f19251a6163da53
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
EXI_16.sce
// Grob's Basic Electronics 11e // Chapter No. I // Example No. I_16 clc; clear; // Find the squareroot of 90*10^5. Express the answer in scientific notation. // Given data A = 90*10^5; // Variable 1 B = sqrt(A); disp (B,'The squareroot of 90*10^5 is') disp ('i.e 3.0*10^3')
2d6f9e611c3a37cf7805dddffbc426b021caeded
449d555969bfd7befe906877abab098c6e63a0e8
/3885/CH5/EX5.23/Ex5_23.sci
feea174846599a15fad0203974a3b4c1acb869ca
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
sci
Ex5_23.sci
//control systems by Nagoor Kani A //Edition 3 //Year of publication 2015 //Scilab version 6.0.0 //operating systems windows 10 // Example 5.23 clc; clear; s=poly(0,'s')//defines s as poly nomial variable h=syslin('c',(48/(s*(s+2)*(s+4))))//the given transfer function assigned to variable h assume K=1 scf() evans(h) //calculation of K disp('the characterstic equation is given by : s^3+6*s^2+8*s+K') //put s=jw and equate real and imaginary parts //K=4*w^2 K=6*8 disp(K,'the value of K is ')
3530418478cf9fa7cbd8980c16fc646ae20b4224
449d555969bfd7befe906877abab098c6e63a0e8
/2414/CH8/EX8.7/Ex8_7.sce
c5d296458521b23f2e439063d2afaed3382b8370
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
147
sce
Ex8_7.sce
clc; close(); clear(); //page no 288 //prob no. 8.7 //All frequencies in kHz k=7; W=1; Bt=k*W; printf('Minimum Bandwidth is %i kHz',Bt);
1dbdbf16dd20919b075587e2419943ce2ec944bb
449d555969bfd7befe906877abab098c6e63a0e8
/1847/CH4/EX4.12/Ch04Ex12.sce
ff5f867593e51dd569c925992fc1794e1979960f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ch04Ex12.sce
// Scilab Code Ex4.12:: Page-4.23 (2009) clc; clear; lambda = 5893e-008; // Wavelength of light used, m t = 0.005; // Thickness of the crystal, cm // As for quarter wave plate, mu_diff*t = (mu_o - mu_e)*t = lambda/4, solving for mu_diff mu_diff = lambda/(4*t); // The difference in refractive indices of rays, cm printf("\nThe least thickness of plate for which emergent beam is plane polarised = %4.2e cm", mu_diff); // Result // The least thickness of plate for which emergent beam is plane polarised = 2.95e-003 cm
bd2a4a059022182156643970edea510a4f496992
449d555969bfd7befe906877abab098c6e63a0e8
/213/CH4/EX4.5/4_5.sce
1c4b0d32bf17003f92001bf7f8cb7349afb38e48
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
494
sce
4_5.sce
//To Find the Moment of Inertia clc //Given: m=85 //kg h=0.1 //m //Solution: //Calculating the Frequency of Oscillation n=100/145 //Hz //Calculating the Equivalent Length of Simple Pendulum L=(1/(2*%pi)/.69*sqrt(9.81))^2 //Calculating the Radius of Gyration kG=sqrt((L-h)*h) //Calculating the Moment of Inertia of the Flywheel through the Centre of Gravity I=m*kG^2 //kg-m^2 //Results: printf("\n\n The Moment of Inertia of the Flywheel Through its c.g., I = %.1f kg-m^2.\n\n",I)
0fbbe4f6d4508b8b918c90e73a5eaf8bdcb435c7
449d555969bfd7befe906877abab098c6e63a0e8
/3131/CH1/EX1.1/1_1.sce
f86d5351b39b36f19e1b903ece4cc24ab0bd537d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
890
sce
1_1.sce
//The value mentioned in the part 'c' of the question is 45MN^3 but that assumed in the solved problem is 50MN^3 clear all; clc; disp("Ex 1_1") disp("Part a :-") a=10//magnitude of force 1 in mN a1=10*10^-3//magnitude of force 1 in N b=5//magnitude of force 2 in GN b1=5*10^9//magnitude of force 2 in N k1=a1*b1//answer in N^2 k=k1/10^6//answer in kN^2 printf('The answer is %g kN^2',k) disp("Part b :-") c=100//magnitude of length in mm c1=100*10^-3//magnitude of length in m d=0.5//magnitude of force in MN d1=0.5*10^6//magnitude of force in N l1=c1*d1^2//answer in mN^2 l=l1/10^9//answer in GmN^2 printf('The answer is %g GmN^2',l) disp("Part c :-") e=50//magnitude of force in MN^3 e1=50*10^6//magnitude of force in N^3 f=500//magnitude of weight in Gg f1=500*10^6//magnitude of weight in kg m1=e1/f1//answer in N^3/kg m=m1*10^3//answer in kN^3/kg printf('The answer is %g kN^3/kg',m)
267d430ce91890d1eaf7c79d26af11d40394b4a4
449d555969bfd7befe906877abab098c6e63a0e8
/2360/CH3/EX3.19/ex3_19.sce
d78bfe5d5fccb1a9c9c493d6fc5785dda7c5ddda
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
657
sce
ex3_19.sce
// Exa 3.19 format('v',5);clc;clear;close; // Given data V1 = 100;// in V V2 = 0;// in V e1= 0;// in V e2= 100;// in V T=2;// in sec T1 = 0;// in sec T2 = 2;// in sec // Slope of ramp A= (e2-e1)/(T2-T1);// in V/sec e= 'A*t';// in sec Erms= sqrt(1/T*integrate('(A*t)^2','t',0,T));// in V Eav= 1/T*integrate('(A*t)','t',0,T);// in V Kf= Erms/Eav;// form factor Kf_sine= 1.11;// form factor of sine wave True_reading= 1;// true reading Meas_reading= Kf_sine/Kf;// measured reading PerError= (True_reading-Meas_reading)/True_reading*100;//percentage error in the reading in % disp(PerError,"The percentage error in the reading in % is : ")
b6b23c476023c8f5aa8e13a262e862bc73d1ff7e
449d555969bfd7befe906877abab098c6e63a0e8
/61/CH7/EX7.1/ex7_1.sce
286a86ee0476c9698b8360f291e155339f6a58a9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
263
sce
ex7_1.sce
//ex7.1 V_GS_off=-4; I_DSS=12*10^-3; R_D=560; V_P=-1*V_GS_off; V_DS=V_P; I_D=I_DSS; V_R_D=I_D*R_D; //voltage across resistor V_DD=V_DS+V_R_D; disp(V_DD,'The value of V_DD required to put the device in the constant current area of operation of JFET')
e6210daf31ead10504e9d78cdaacf1228320abe0
449d555969bfd7befe906877abab098c6e63a0e8
/2855/CH12/EX12.10/Ex12_10.sce
d4268d1d31a38637fefa5add0194756638e4bdfa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
364
sce
Ex12_10.sce
//Chapter 12 //page no 444 //given clc; clear all; L=200; //in km dL=1550; //in nm R=10; //in Gb/s Cd=17; //in ps/nm-km w=0.1; //Assused bandwidth Cd200=Cd*L; printf("\n Dispersion by 200km ofc = %0.1f*10^3 ps/nm",Cd200/10^3); TCd=w*Cd200; printf("\n total chromatic dispersion = %0.2f*10^3 ps",TCd/10^3);
a5d3f627edf604bfd35f558e769f023edf643539
449d555969bfd7befe906877abab098c6e63a0e8
/1952/CH1/EX1.13/Ex1_13.sce
6e4d77058a83555926a12dba9edbb99876e0fd02
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex1_13.sce
// chapter 1 , Example1 13 , pg 25 V=15000//volume(in m^3) T1=1.3//initial reverberation time(in sec) aS=(0.165*V)/T1 //total absorption of hall (in Sabine) T2=(0.165*V)/(aS+300)//revrberation time of hall after adding 300 chairs each having absorption of 1 Sabine printf("Reverberation time of hall after adding 300 chairs\n") printf("T2=%.3f sec",T2)
9abc1b456aa94ad8cd6e5643ef1aebf70f18cbbc
bf24e30d6ed9b0d16fe0d59f6caf6ee61aa714cd
/missionA/mission3a.sci
f563db19f95fb959eb2c36cc1ab8b9e21ef9bea3
[ "MIT" ]
permissive
pierre-geeraert/Projet_exolife
c8d3b623f2cbcaaaf5c510c8f438da2c82980be8
cff5ca5cb1602d1b1ef589b847536b9e61e631ee
refs/heads/master
2021-05-03T06:30:23.099197
2018-02-15T14:50:01
2018-02-15T14:50:01
120,595,698
0
0
null
null
null
null
UTF-8
Scilab
false
false
466
sci
mission3a.sci
exec('readpbm.sci') exec('display_gray.sci') img = readpbm('Europa_surface.pbm'); //gray = display_gray(img); max_gray=max(img); disp(max_gray); //216 colonne=512; ligne=384; //si point le plus blanc if img(j,i) > 200 //si point le plus noir if img(j,i) < 50 for i=1:ligne for j=1:colonne if img(j,i) > 253 img(j,i)=255; else img(j,i)=0; end end end
9654311037d874d66fe81d0ea4eaaeb0d43d30b6
449d555969bfd7befe906877abab098c6e63a0e8
/3876/CH10/EX10.3/Ex10_3.sce
81d074e0484bacea237434e9e39127045f7c7952
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex10_3.sce
//Chapter 10 Electmotive Force clc; clear; //Initialisation of Variables E= -0.771 //v R= 8.31 //J/mol K T= 25 //C F= 96500 //coloums M= 0.02 //m M1= 0.1 //m //CALCULATIONS E1= E-(R*(273+T)*2.3*log10(M/M1)/F) //RESULTS mprintf("Oxidation potential of copper electrode = %.2f v",E1)
3a99bd5bdd7413b4b0350ac945506478928f96b2
449d555969bfd7befe906877abab098c6e63a0e8
/1949/CH3/EX3.17/Ex3_17.sce
6d16410a549f1d13712488d484ef9a09cca5b098
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
919
sce
Ex3_17.sce
//Chapter-3,Example 3_17,Page 3-25 clc() //Given Data: n1=1.48 //R.I. of core delta=0.055 //Realtive R.I. lam=1*10^-6 //Wavelength of light a=50*10^-6 //core radius //Calculations: //Delta=(u1-u2)/u1 n2=n1-(n1*delta) //R.I. of cladding NA=n1*sqrt(2*delta) //Formula to find Numerical Aperture printf('Numerical Aperture of Fibre is =%.4f \n \n',NA) theta0=asin(NA)*180/%pi //Acceptance angle of fibre printf(' Acceptance angle of Fibre is =%.2f degrees \n \n',theta0) V=2*%pi*a*NA/lam //V number N=(V^2)/2 //Number of guided modes //In book,instead of NA , value of delta is taken into calculation. //Thus there is calculation mistake in values of V and N. printf(' V number of Fibre is =%.3f \n \n',V) printf(' Number of guided mode of Fibre is =%.3f \n',N) printf('(Calculation mistake in book)')
82c649c9fd37fbce8fb8d1cb5672313c2e6062df
243d90b3740d65509193a3514f7389127bb3aef6
/hopfield.sci
dd8508b38782cc7742d807f573e288f801b046a3
[]
no_license
Dragonis/ZMSI
35f3702b7ff9e9d76d4d11fba5825345531672ac
d5e68b4158382da20c36221b94ae7d98936337a6
refs/heads/master
2021-01-10T17:07:46.084244
2015-11-17T16:49:51
2015-11-17T16:49:51
46,361,213
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,708
sci
hopfield.sci
function [out]=unipolar(in) if in > 0 then out = 1; else out = 0; end endfunction function [out]=bipolar(in) if in > 0 then out = 1; else out = -1; end endfunction function [out]=activate(in, expression, display_messages) [rows, cols] = size(in); if rows * cols <> 1 then out = zeros(rows, cols) for row = 1:rows for col = 1:cols out(row, col) = activate(in(row, col)) end end if display_messages then disp(out.', 'Wygenerowane potencjały wyjściowe') end else out = expression(in); end endfunction function [stop_condition]=verify_finished(last_steps, display_messages) stop_condition = %T [rows_size, cols_size] = size(last_steps) col_results = ones(1, cols_size) if rows_size == cols_size then for col_index = 1:cols_size col_value = sum(last_steps(:, col_index)) / rows_size for row_index = 1:rows_size row_value = last_steps(row_index, col_index) col_results(col_index) = col_results(col_index) & col_value == last_steps(row_index, col_index) end end stop_condition = sum(col_results) <> cols_size end if display_messages then disp(col_results, 'Poprawność potencjałów') disp(last_steps, 'W ostatnich wykonaniach') disp(stop_condition, 'Kontynuuj') end endfunction function [last_steps] = apply_execution(input_steps, new_execution) last_steps = [input_steps; new_execution] [rows_size, cols_size] = size(last_steps) if rows_size > cols_size then last_steps(1, :) = [] end endfunction function hopfield_network(input_network, input_values, expression, display_messages) last_steps = [] output_values = [] [rows, cols] = size(input_values) if display_messages then disp(input_values, 'Punkty wejściowe') disp(input_network, 'Sieć wejściowa') end for row_index = 1:rows input_point = input_values(row_index, :) output_point = input_point.'; if display_messages then disp(input_point, 'Potencjały wejściowe:') end continue_work = %T while continue_work for col_index = 1:cols if display_messages then disp(col_index, 'KROK') disp(output_point.', 'Potencjały wejściowe w kroku') end result = input_network * output_point result_activated = activate(result, expression, display_messages) output_point(col_index, 1) = result_activated(col_index, 1) step = output_point.' last_steps = apply_execution(last_steps, step) if display_messages then disp(step, 'Potencjały wyjściowe w kroku') end end continue_work = verify_finished(last_steps, display_messages) end input_point = output_point.' if display_messages then disp(input_point, 'Potencjały wyjściowe') end output_values(row_index, :) = input_point end convergent_points = [] for row_index = 1:rows if input_values(row_index, :) == output_values(row_index, :) then convergent_points = [convergent_points; output_values(row_index, :)] end end disp(input_network, 'Sieć') disp(input_values, 'Dla punktów wejściowych') disp(output_values, 'Generuje punkty wyjściowe') disp(convergent_points, 'Posiada punkty zbieżne') endfunction
3a2d0a3a105356f9f576cf60fc5f3e42ced8ca35
449d555969bfd7befe906877abab098c6e63a0e8
/3020/CH13/EX13.20/ex13_20.sce
8a18b3c0cde1a4ce0e8b7bac69ddd178da46ed81
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
317
sce
ex13_20.sce
clc; clear all; rho = 7860;//Density of alpha-iron in Kg/m^3 M = 55.85e-3; // Atomic weight of alpha-iron in Kg n = 2;// Number of atoms per unit cell of BCC N = 6.022e26; // Avagadro constant a = ((n*M)/(N*rho))^(1/3);//Lattice constant r = ((a*sqrt(3))/4); disp('m',r,'The atomic radius of alpha-iron is')
71ad4450904d5bf7e21e95dd1f1944e8143df8c0
6e59ec2ae423f07ce75734bdcb98d342101d5e53
/scripts/exercice2.sci
3529b75c40fc47f1f58a651f318ba897297fe40a
[]
no_license
BasileBr/DevoirMaison_Maths
68051a7e6e31b20e742458ad1aca2d565e239c53
3d1bbb16f7f009629678663ba30929d60ddf72e4
refs/heads/master
2020-03-16T08:59:06.274276
2018-05-22T18:29:58
2018-05-22T18:29:58
132,606,254
0
0
null
null
null
null
UTF-8
Scilab
false
false
365
sci
exercice2.sci
function Calcul_Exponentielle(lambda,iteration) esperance_expo = 1/lambda; var_expo = 1/lambda^2; sigma_expo = sqrt(var_expo); Xn = [] for i=1:iteration Xi = grand(i,1,'exp',esperance_expo) // Prend l'esperance de la loi expo, pas lambda. Somme(i) = sum(Xi); Xn(i) = (1/i)*Somme(i); end plot2d(Xn); endfunction
1e944b62997f39370b40152b0a85865e5e4b8ad9
449d555969bfd7befe906877abab098c6e63a0e8
/1226/CH17/EX17.36/EX17_36.sce
e8e33b7703156705de9e150ef0253995e516859a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,477
sce
EX17_36.sce
clc;funcprot(0);//EXAMPLE 17.36 // Initialisation of Variables n=6;....................//No of cylinders D=0.125;................//Engine bore in m L=0.125;...............//Engine stroke in m N=2400;.................//Engine rpm W=490;...............//Load on the dynamometer in N CD=16100;...............//Dynamometer constant d0=0.055;...................//Air orifice diameter in m Cd=0.66;...................//Co efficient of discharge hw=310;.................//Head causing flow through prifice in mm of water br=760;................//Barometer reading in mm of Hg t=298;..................//Ambient temperature in Kelvin fc=22.1;..................//Fuel consumption per hour in kg C=45100;..................//Calorific value of fuel used in kJ/kg perc=85;...................//Percentage of carbon in the fuel perh=15;...................//Percentage of hydrogen in the fuel p1=1.013;....................//Pressure of air at the end of suction stroke in bar t1=298;......................//Temperature of air the the end of suction stroke in Kelvin k=0.5;.......................//Four stroke engine R=287;.......................//Gas constant in J/kgK //calculations BP=W*(N/CD);................//Brake power in kW pmb=(BP*6)/(L*D*D*k*10*N*n*(%pi/4));................//Brake mean effective pressure in bar disp(pmb,"Brake mean effective pressure (in bar):") bsfc=fc/BP;.......................//Brake specific fuel consumption in kg/kWh disp(bsfc,"Brake specific fuel consumption (in kg/kWh):") etathb=BP/((fc/3600)*C);......................//Brake thermal efficiency disp(etathb*100,"Brake thermal efficiency (in %):") Vst=(%pi/4)*D*D*L;..............//Stroke volume in m^3 Val=840*(%pi/4)*d0*d0*Cd*sqrt((hw/10)/((p1*10^5)/(R*t1)));............//Volume of air passing through orifice of air box per min Vac=Val/n;.........................//Actual volume of air per cylinder in m^3/min asps=Vac/(N/2);.......................//Air supplied per stroke per cylinder in m^3 etav=asps/Vst;....................//Volumetric efficiency disp(etav*100,"Volumetric efficiency (in %)") Qa=(100/23)*(((perc/100)*(8/3))+((perh/100)*(8/1)));.....................//Quantity of air required per kg of fuel combustion aqas=(Val*((p1*10^5)/(R*t1))*60)/fc;....................//Actual quantity of air supplied per kg of fuel pe=(aqas-Qa)/Qa;....................//Fraction of excess air supplied to engine disp(pe*100,"Percentage of excess air supplied :")
fd7bba56ac2d0c1d8cbe7b8d5552bc7768ea0a3b
449d555969bfd7befe906877abab098c6e63a0e8
/1871/CH6/EX6.12/Ch06Ex12.sce
df077214410fd9f6d2d70fa082d7b19d2f9a65a1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
411
sce
Ch06Ex12.sce
// Scilab code Ex6.12: Pg:262 (2008) clc;clear; t = 0.003; // Thickness of the crystal slice, cm Lambda = 6e-005; // Wavelength of linearly polarized light, cm d_mu = Lambda/(4*t); // Difference in the refractive indices of two rays printf("\nThe difference in the refractive indices of two rays = %1.0e ", d_mu ); // Result // The difference in the refractive indices of two rays = 5e-003
6665733230ea0fd863bc1c72f0cc29380e304bc9
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.4/Unix-Windows/scilab-2.4/macros/elem/modulo.sci
5570b4876880629a7d6dcdef4e5753c0c23848a5
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
215
sci
modulo.sci
function [i]=modulo(n,m) //i=modulo(n,m) returns n modulo m. //! // Copyright INRIA if size(m,'*')==1 then m=ones(n)*m, elseif size(n,'*')==1 then n=ones(m)*n, end i=n-int(n./m).*m // n - m .* fix (n ./ m)
a35024c24cde82cece5a7f63ff845bcc6949c411
449d555969bfd7befe906877abab098c6e63a0e8
/671/CH14/EX14.1/14_1.sce
384f386dd95a93b7d57f2b8e2127a93ea7433a4f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
125
sce
14_1.sce
Rv1=60/1000*10000 Rv2=120/1000*10000 Rx=(Rv2-Rv1)*(1/(27.5/30*2-1)-1) I=27.5/1000/600*(Rx+600)/Rx Vact=Rx*I disp(Vact)
6b741613b3a3e3012209c78480133cf6deff367b
449d555969bfd7befe906877abab098c6e63a0e8
/1427/CH5/EX5.30/5_30.sce
0b1a1e61c7ff5dba47868bf0405fd5effece24dd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
348
sce
5_30.sce
//ques-5.30 //Calculating hydrolysis constant and dissociation constant of acetic acid clc Kb=1.8*10^-5; Kw=10^-14; h=5.5*10^-3;//degree of hydrolysis Kh=h^2;//hydrolysis constant Ka=Kw/(Kh*Kb);//dissociation constant printf("Hydrolysis constant of acetic acid is %.2f*10^-5 and Dissociation constant is %.2f*10^-5.",Kh*100000,Ka*100000);
d0a1cd9a3413d08407decd358b8e2e6907d6aca4
676ffceabdfe022b6381807def2ea401302430ac
/library/Demos/Python/NekMesh/Tests/load_cad.tst
a1eea6fbfffed5166d33f41cf0fd471ef638c7e4
[ "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
668
tst
load_cad.tst
<?xml version="1.0" encoding="utf-8" ?> <test> <description>Structured grid generation from NekMesh wrapper</description> <executable python="true">LoadCAD.py</executable> <parameters>3d_sphere.stp output.xml</parameters> <files> <file description="STEP file input">../../../../../utilities/NekMesh/Tests/MeshGen/STEP/3d_sphere.stp</file> </files> <metrics> <metric type="regex" id="1"> <regex>^.*Total negative Jacobians: (\d+)</regex> <matches> <match> <field id="0">0</field> </match> </matches> </metric> </metrics> </test>
947385c853b9f113c07111f8d806b0ce551e4e6f
449d555969bfd7befe906877abab098c6e63a0e8
/1964/CH13/EX13.17/ex13_17.sce
bd3f07bd0374897cf46345ca4f29d5dbdf7bd1b0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
571
sce
ex13_17.sce
//Chapter-13, Example 13.17, Page 391 //============================================================================= clc clear //INPUT DATA b=49;//common-emitter DC current gain Ie=3*10^-3;//emitter current in A //CALCULATIONS a=b/(1+b);//common-base DC current gain Ic=a*Ie;//collector current in A mprintf("Thus common-base DC current gain and ccollector current are %1.2f and %g A respectively",a,Ic); //=================================END OF PROGRAM=======================================================================================================
f5cc314b590a2db019aa34df6e33ecb9892f7b7d
449d555969bfd7befe906877abab098c6e63a0e8
/3542/CH4/EX4.6/Ex4_6.sce
b9b9e500caad7508133c3bd2af349ac187bf75d8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,236
sce
Ex4_6.sce
// Example no 4.6 // To find a)the length and effective aperture of receiving antenna b)the received power at mobile // Page no. 125 clc; clear; // Given data d=5*10^3; // distance of mobile from base station in m E0=1*10^-3; // E-field at 1Km from transmitter in V/m d0=1*10^3; // Distance from transmitter in m f=900*10^6; // Carrier frequency used for the system in Hz c=3*10^8; // Speed of ligth in m/s gain=2.55; // Gain of receiving antenna in dB G=10^(gain/10); // Gain of receiving antenna // a)To find the length and effective aperture of receiving antenna lambda=c/f; // Wavelength L=lambda/4; // Length of antenna Ae=(G*lambda^2)/(4*%pi); // Effective aperture of receiving antenna // Displaying the result in command window printf('\n Length of antenna = %0.4f m',L); printf(' = %0.2f cm',L*10^2); printf('\n Effective aperture of receiving antenna = %0.3f m^2',Ae); // b)To find the received power at mobile // Given data ht=50; // Heigth of transmitting antenna hr=1.5; // Heigth of receiving antenna ERd=(2*E0*d0*2*%pi*ht*hr)/(d^2*lambda); // Electic field at distance d in V/m Prd=((ERd^2/377)*Ae); // The received power at mobile in W PrddB=10*log10(Prd); // The received power at mobile in dBW PrddBm=10*log10(Prd/10^-3); // The received power at mobile in dBm Prd=((ERd^2/377)*Ae)*10^13; // The received power at mobile in 10^-13W // Displaying the result in command window printf('\n \n The received power at mobile = %0.1f X 10^-13 W',Prd); printf(' = %0.2f dBW',PrddB); printf(' = %0.2f dBm',PrddBm);
9d4ad22d99e6afa08a3dbe509b4b6f8407ef7351
449d555969bfd7befe906877abab098c6e63a0e8
/3648/CH10/EX10.10/Ex10_10.sce
c3fb63c87b7c65307a682742bb1b6d057c4e39b7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
488
sce
Ex10_10.sce
//Example 10_10 clc(); clear; //To findout how fast the nitrogen molecule moving in air M=28 //Units in Kg/Mol Na=6.02*10^26 //Units in K mol^-1 mo=M/Na //Units in Kg k=1.38*10^-23 //units in J/K T=27+273 //Units in K v2=(3*k*T)/mo //unit in Meter^2/Sec^2 v=sqrt(v2) //Units in meter/sec printf("The nitrogen molecule goes at a speed of V=%d meter/sec",v) //In text book the answer is printed wrong as v=517 m/sec the correct answer is v=516 meter/ sec
189a234de3256b5e4d5dff56bfea0b8debeeae49
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.2/macros/auto/observer.sci
e553da53ae63402aff7afabb2faf2d90d64d8128
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
2,455
sci
observer.sci
function [Obs,U,m]=observer(Sys,flag,alfa) //Obs=observer for (observable part of) linear system Sys //Obs is a linear system with matrices [Ao,Bo,Identity]. //where Ao is no x no, Bo is no x (nu+ny) and Co is no x no //and no=nx-m; //input to Obs is [u,y] (assuming Sys: dotx=A x + Bu, y=Cx + Du) //output of Obs is: // xhat=estimate of x modulo unobservable subsp. (case 'pp') // or // xhat=estimate of x modulo unstable unobservable subsp. (case 'st') // //case flag='st': // z=H*x can be estimated with stable observer iff H*U(:,1:m) = 0 // assignable poles of the observer are set to alfa(1),alfa(2),... // //case flag='pp': // z=H*x can be estimated with given error spectrum iff H*U(:,1:m)=0 //all poles of the observer are assigned and set to alfa(1),alfa(2),... // //If H satifies the constraint: H*U(:,1:m)=0 (ker(H) contains unobs-subsp //of Sys) one has H*U=[0,H2] and the observer for // z=H*x is is H2*Obs with H2=H*U(:,m+1:nx) i.e. Co, the C-matrix of the // observer for H*x, is Co=H2. // //EXAMPLE: // nx=5;nu=1;ny=1;un=3;us=2;Sys=ssrand(ny,nu,nx,list('dt',us,us,un)); // nx=5 states, nu=1 input, ny=1 output, // un=3 unobservable states, us=2 of them unstable. // [Obs,U,m]=observer(Sys); Stable observer (default) // W=U';H=W(m+1:nx,:);[A,B,C,D]=abcd(Sys); //H*U=[0,eye(no,no)]; // Sys2=ss2tf(syslin('c',A,B,H)) //Transfer u-->z // Idu=eye(nu,nu);ss2tf(Obs*sysdiag(Idu,Sys)*[Idu;Idu]) // Transfer u-->[u;u]-->w=[u;y=Sys*u]-->Obs*w i.e. u-->output of Obs // this transfer must equal Sys2, the u-->z transfer (H2=eye). //FD. [nx,nx]=size(Sys(2)); td=Sys(7);x0=Sys(6); [LHS,RHS]=argn(0); if RHS<>2 then [m1,m2,U,sl2]=dt_ility(Sys);end if RHS==1 then flag='st';alfa=-ones(1,nx); end if RHS==2 then //poles are not given-->set to -ones alfa=-ones(1,nx); [A,B,C,D]=abcd(Sys); // J=flag; // F=A+J*C;G=[B+J*D,-J]; // Obs=syslin(td,A+J*C,[B+J*D,-J],eye(A));U=[];m=[];return; //Ao end if RHS==3 then if prod(size(alfa))==1 then alfa=alfa*ones(1,nx);end end select flag case 'pp' m=m2; no=nx-m; alfa=alfa(1:no); [A,B,C,D]=abcd(sl2); Ao=A(m+1:nx,m+1:nx); Bo=B(m+1:nx,:); Co=C(:,m+1:nx); Do=D; J=-ppol(Ao',Co',alfa);J=J'; F=Ao+J*Co;G=[Bo+J*Do,-J]; Obs=syslin(td,F,G,eye(Ao)); return; case 'st' m=m1; no=nx-m; alfa=alfa(1:no); [A,B,C,D]=abcd(sl2); Ao=A(m+1:nx,m+1:nx); Bo=B(m+1:nx,:); Co=C(:,m+1:nx); Do=D; J=stabil(Ao',Co',alfa);J=J'; F=Ao+J*Co;G=[Bo+J*Do,-J]; Obs=syslin(td,F,G,eye(Ao)); return; end
6292db4bf7d5f94df16482ad96dd777546bac6dc
449d555969bfd7befe906877abab098c6e63a0e8
/548/DEPENDENCIES/7_08data.sci
b29698094f07a972e3ef2b865ed5af2c41590523
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
530
sci
7_08data.sci
W=2.27*10^4;//weight of the airplane(N) S=19;//wing area (m^2) V=61;//velocity at sea level(m/s) D=1.225;//density at sea level(Kg/m^3) Cl=2*W/(D*S*V^2) //lift coefficient a=0.08;//lift slope per degree (from example 7.3) a1=Cl/a //absolute angle of attack DCmcg=-0.0133;//derivative of Cmcg w.r.t absolute angle of attack(from example 7.5) Cmo=0.06;//value of moment coefficient at zero absolute angle of attack (from example 7.5) Vh=0.34 //tail volume ratio(from example 7.4) DClt=0.04;//elevator control efficiency
f9a63ed3b15e899af2d9139fa120c78ff2d4d311
0ae3b27a9792a930f613772d679e2ac42f6b5930
/tests/zones/invalid.records.tst
e7865a4f727a830a45227a7473433e47f0f54938
[ "MIT" ]
permissive
octodns/octodns
fb70e78fbbb3f3790b38edab75b5d4b9e6e2a0e4
8237aa955d0f489180daf131b744dbc3d22ba986
refs/heads/main
2023-09-01T15:18:32.161799
2023-08-31T17:50:10
2023-08-31T17:50:10
84,977,146
983
137
MIT
2023-09-13T19:43:56
2017-03-14T17:18:47
Python
UTF-8
Scilab
false
false
1,541
tst
invalid.records.tst
$ORIGIN invalid.records. @ 3600 IN SOA ns1.invalid.records. root.invalid.records. ( 2018071501 ; Serial 3600 ; Refresh (1 hour) 600 ; Retry (10 minutes) 604800 ; Expire (1 week) 3600 ; NXDOMAIN ttl (1 hour) ) ; NS Records @ 3600 IN NS ns1.invalid.records. @ 3600 IN NS ns2.invalid.records. under 3600 IN NS ns1.invalid.records. under 3600 IN NS ns2.invalid.records. ; SRV Records _srv._tcp 600 IN SRV 10 20 30 foo-1.invalid.records. _srv._tcp 600 IN SRV 10 20 30 foo-2.invalid.records. _invalid 600 IN SRV 10 20 30 foo-3.invalid.records. ; TXT Records txt 600 IN TXT "Bah bah black sheep" txt 600 IN TXT "have you any wool." txt 600 IN TXT "v=DKIM1;k=rsa;s=email;h=sha256;p=A/kinda+of/long/string+with+numb3rs" ; MX Records mx 300 IN MX 10 smtp-4.invalid.records. mx 300 IN MX 20 smtp-2.invalid.records. mx 300 IN MX 30 smtp-3.invalid.records. mx 300 IN MX 40 smtp-1.invalid.records. ; A Records @ 300 IN A 1.2.3.4 @ 300 IN A 1.2.3.5 www 300 IN A 2.2.3.6 wwww.sub 300 IN A 2.2.3.6 ; AAAA Records aaaa 600 IN AAAA 2601:644:500:e210:62f8:1dff:feb8:947a ; CNAME Records cname 300 IN CNAME invalid.records. included 300 IN CNAME invalid.records.
ad47cce09e467762647cea6b80bff5ad22dd1c69
449d555969bfd7befe906877abab098c6e63a0e8
/3754/CH17/EX17.1/17_1.sce
c7f16ac2f825a5503d3f82dbcbef82d1578b482f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
17_1.sce
clear// //Variables I = 40 //Current (in milli-Ampere) t = 15 * 10**-3 //time (in seconds) CFS = 93 //Circuit fusing rate (in Ampere-square second) //Calculation SCR = I**2 * t //Surge in the device (in Ampere-square second) //Result printf("\n Since value of SCR i.e. %0.3f A**2s is less than CFS i.e. %0.3f A**2s.",SCR,CFS) printf("\n Therefore the device will not be destroyed.")
9bc4c7ae77eb308a519724b281b31ad50d85a5f1
449d555969bfd7befe906877abab098c6e63a0e8
/2024/CH1/EX1.4/1_4.sce
d7a7b9548796e90b7b8b6c2f504c0660cd17b5fa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
154
sce
1_4.sce
clc //Initialization of variables m=10 //lbm a=32.1739 //ft/sec^2 g=32.1739 //calculations F=m*a/g //results printf("Force required = %d lbf",F)
5d3ea8d4b2f3788b5abe2c14b0ccb9d236f27461
993d195bcd2d0c410983954f13fe34356f73cfe8
/plots/plotter2.sce
0e2e76dd2d50c758e082707a8980d45bd57d521b
[]
no_license
celebro/diploma
e4da6f0f1447e3b27c31474164f55718b744fdf7
a96df9a188ac3cf035f372839cbd6c372aeeeae1
refs/heads/master
2021-03-12T21:42:39.337604
2013-03-28T08:43:52
2013-03-28T08:43:52
8,127,151
2
0
null
null
null
null
UTF-8
Scilab
false
false
2,518
sce
plotter2.sce
function []=process_result(filename, s1, s2, s3, s4) M = csvRead(filename, ";") filename2 = strsubst(filename,".txt","") filename2 = strsubst(filename2,"data/results_","") fontS = 3; fontS1 = 3; disp(filename); M1 = M; M1(isnan(M1)) = 60000; disp("total times:"); disp(sum(M1, 1)/1000/60/60); disp(sum(M1)/1000/60/60); T=5000 N=6000; fact=T/N for j=1:1:size(M,2) x1 = [1:N]; for i=1:1:N x1(i) = sum(M(:,j) < i*fact); end if j == 1 then x = x1; else x = [x; x1]; end end subplot(s1,s2,s3) plot([1:N]/N*60,x); //xtitle(filename, 'čas [s]', 'št. rešenih primerov'); xtitle(filename2, 'čas [s]', 'št. rešenih primerov'); legend(['ullmann', 'vf2+subsea', 'vf2'], 4); a=gca(); a.font_size = fontS; a.x_label.font_size=fontS; a.y_label.font_size=fontS; a.title.font_size=fontS1; a.margins = [0.15, 0.05, 0.125, 0.15] subplot(s1,s2,s4) plot("ln",[1:N]/N*60,x); //xtitle(filename, 'čas [s]', 'št. rešenih primerov'); xtitle(filename2, 'čas [s]', 'št. rešenih primerov'); legend(['ullmann', 'vf2+subsea', 'vf2'], 4); a=gca(); a.font_size = fontS; a.x_label.font_size=fontS; a.y_label.font_size=fontS; a.title.font_size=fontS1; a.margins = [0.15, 0.05, 0.125, 0.15] a.log_flags="ln";// (l=) log scale on y axis //xs2png(f,strsubst(filename,".txt","")); //xs2pdf(f,strsubst(filename,".txt","")); endfunction figure(1); clf(); f = gcf(); process_result("data/results_si2_r001.txt", 3, 2, 1, 2) process_result("data/results_si2_r005.txt", 3, 2, 3, 4) process_result("data/results_si2_r01.txt", 3, 2, 5, 6) f.figure_size=[1100, 1500]; f.background=-2; f.figure_size=[1100, 1500]; xs2png(f,"results_si2"); //xs2pdf(f,"results_si2"); figure(2) clf(); f = gcf(); process_result("data/results_si4_r001.txt", 3, 2, 1, 2) process_result("data/results_si4_r005.txt", 3, 2, 3, 4) process_result("data/results_si4_r01.txt", 3, 2, 5, 6) f.figure_size=[1100, 1500]; f.background=-2; xs2png(f,"results_si4"); //xs2pdf(f,"results_si4"); figure(3) clf(); f = gcf(); process_result("data/results_si6_r001.txt", 3, 2, 1, 2) process_result("data/results_si6_r005.txt", 3, 2, 3, 4) process_result("data/results_si6_r01.txt", 3, 2, 5, 6) f.figure_size=[1100, 1500]; f.background=-2; xs2png(f,"results_si6"); //xs2pdf(f,"results_si6");
06d2b253bd1221f7c52830fde9475aee9c9892e7
449d555969bfd7befe906877abab098c6e63a0e8
/2096/CH6/EX6.2/EX_6_2.sce
2bf01ecb6207f01a197cf059583f681793c29ec6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
667
sce
EX_6_2.sce
//Example 6.2// ratio error and phase angle clc; clear; dv=0;//as secondary winding power factor is unity Io=1;//in ampere Knom=200;//nominal ratio Re=1.1;//external burden in ohms Pf=0.45;//power factor d= acosd(Pf);// alpha=90-d;//in degrees Is=5;//in ampere Rs=Knom*Is;// Kact= Knom+((Io/Is)*sind(dv+alpha));//actual transformation ratio Re= ((Knom-Kact)/Kact)*100;//ratio error in percentage pa=((180/%pi)*(Io*cosd(dv+alpha))/Rs);//phase angle in degree pa1=pa-round(pa); pa2=pa*3600;// pa3= round(pa2); pa4= pa3-180;// pa5=pa2-pa4;// disp(Re,"ratio error in percentage is") disp("the phase angle is "+string(round(pa5/60))+" min and "+string(pa4)+" seconds" );
28012550d32dfc4bc8d5b2622a2c3368e1c0be49
449d555969bfd7befe906877abab098c6e63a0e8
/2912/CH5/EX5.22/Ex5_22.sce
adefe5b6c9b2fa52e4d7a9f2e3dd40ac4d974420
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
584
sce
Ex5_22.sce
//chapter 5 //example 5.22 //Calculate minimum error in the energy //page 111-112 clear; clc; //given dT=2.5E-14; // in sec (average life time) h=6.63E-34; // in J-s (Planck'c constant) pi=3.14; // value of pi used in the solution e=1.6*1E-19; // in C (charge of electron) //calculate // Since dE*dt>=h/(4*pi) (uncertainty relation for energy) dE=h/(4*pi*dT); // calculation of minimum uncertainty in the energy printf('\nThe uncertainty in the energy of the photon is \tdE=%1.1E J',dE); dE=dE/e; //changing unit from J to eV printf('\n\t\t\t\t\t\t =%1.1E eV',dE);
856ebb6bfac9bca6b225ad70733139711b4c5a26
931df7de6dffa2b03ac9771d79e06d88c24ab4ff
/Valorant sniper.sce
b4bfa81fa2c17a7983bf22baa1b690eb952b1eb3
[]
no_license
MBHuman/Scenarios
be1a722825b3b960014b07cda2f12fa4f75c7fc8
1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137
refs/heads/master
2023-01-14T02:10:25.103083
2020-11-21T16:47:14
2020-11-21T16:47:14
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
52,180
sce
Valorant sniper.sce
Name=Valorant sniper PlayerCharacters=Sniper Char BotCharacters=Bot Profile long.bot;Bot Profile long.bot;Bot Profile.bot;Bot Profile.bot;Bot Profile.bot IsChallenge=true Timelimit=60.0 PlayerProfile=Sniper Char AddedBots=Bot Profile long.bot;Bot Profile long.bot;Bot Profile.bot;Bot Profile.bot;Bot Profile.bot PlayerMaxLives=0 BotMaxLives=0;0;0;0;0 PlayerTeam=1 BotTeams=2;2;2;2;0 MapName=longrange.map MapScale=4.0 BlockProjectilePredictors=true BlockCheats=true InvinciblePlayer=true InvincibleBots=false Timescale=0.85 BlockHealthbars=true TimeRefilledByKill=0.0 ScoreToWin=100000.0 ScorePerDamage=0.0 ScorePerKill=1.0 ScorePerMidairDirect=0.0 ScorePerAnyDirect=0.0 ScorePerTime=0.0 ScoreLossPerDamageTaken=0.0 ScoreLossPerDeath=0.0 ScoreLossPerMidairDirected=0.0 ScoreLossPerAnyDirected=0.0 ScoreMultAccuracy=true ScoreMultDamageEfficiency=false ScoreMultKillEfficiency=false GameTag=TF2 WeaponHeroTag=Sniper DifficultyTag=2 AuthorsTag=snow BlockHitMarkers=false BlockHitSounds=false BlockMissSounds=true BlockFCT=false Description=For use with zoom_sensitivity_ratio 0.7934 GameVersion=2.0.1.2 ScorePerDistance=0.0 MBSEnable=false MBSTime1=0.25 MBSTime2=0.5 MBSTime3=0.75 MBSTime1Mult=1.0 MBSTime2Mult=2.0 MBSTime3Mult=3.0 MBSFBInstead=false MBSRequireEnemyAlive=false LockFOVRange=false LockedFOVMin=60.0 LockedFOVMax=120.0 LockedFOVScale=Clamped Horizontal [Aim Profile] Name=Default MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 AimingStyle=Original ScanSpeedMultiplier=1.0 MaxSeekPitch=30.0 MaxSeekYaw=30.0 AimingSpeed=5.0 MinShootDelay=0.3 MaxShootDelay=0.6 [Bot Profile] Name=Bot Profile long DodgeProfileNames=Long Strafes Jumping DodgeProfileWeights=1.0 DodgeProfileMaxChangeTime=5.0 DodgeProfileMinChangeTime=1.0 WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=true CharacterProfile=PUBG Char SeeThroughWalls=false NoDodging=false NoAiming=true AbilityUseTimer=0.1 UseAbilityFrequency=1.0 UseAbilityFreqMinTime=0.3 UseAbilityFreqMaxTime=0.6 ShowLaser=false LaserRGB=X=1.000 Y=0.300 Z=0.000 LaserAlpha=1.0 [Bot Profile] Name=Bot Profile DodgeProfileNames=ADAD DodgeProfileWeights=1.0 DodgeProfileMaxChangeTime=5.0 DodgeProfileMinChangeTime=1.0 WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=true CharacterProfile=Counter-Striker SeeThroughWalls=false NoDodging=false NoAiming=true AbilityUseTimer=0.1 UseAbilityFrequency=1.0 UseAbilityFreqMinTime=0.3 UseAbilityFreqMaxTime=0.6 ShowLaser=false LaserRGB=X=1.000 Y=0.300 Z=0.000 LaserAlpha=1.0 [Character Profile] Name=Sniper Char MaxHealth=100.0 WeaponProfileNames=Sniper;;;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=8.0 MovementType=Base MaxSpeed=1000.0 MaxCrouchSpeed=500.0 Acceleration=16000.0 AirAcceleration=16000.0 Friction=8.0 BrakingFrictionFactor=2.0 JumpVelocity=800.0 Gravity=3.0 AirControl=0.25 CanCrouch=true CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=false EnemyBodyColor=X=255.000 Y=0.000 Z=0.000 EnemyHeadColor=X=255.000 Y=255.000 Z=255.000 TeamBodyColor=X=0.000 Y=0.000 Z=255.000 TeamHeadColor=X=255.000 Y=255.000 Z=255.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cylindrical MainBBHeight=230.0 MainBBRadius=55.0 MainBBHasHead=true MainBBHeadRadius=45.0 MainBBHeadOffset=0.0 MainBBHide=true ProjBBType=Cylindrical ProjBBHeight=230.0 ProjBBRadius=55.0 ProjBBHasHead=true ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.25 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=None CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Character Profile] Name=PUBG Char MaxHealth=200.0 WeaponProfileNames=PUBG;;;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=5.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=2.0 MovementType=Base MaxSpeed=1000.0 MaxCrouchSpeed=500.0 Acceleration=24000.0 AirAcceleration=16000.0 Friction=8.0 BrakingFrictionFactor=2.0 JumpVelocity=800.0 Gravity=3.0 AirControl=0.125 CanCrouch=true CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=true EnemyBodyColor=X=0.774 Y=0.000 Z=0.000 EnemyHeadColor=X=0.729 Y=0.537 Z=0.839 TeamBodyColor=X=0.000 Y=0.000 Z=0.774 TeamHeadColor=X=0.729 Y=0.537 Z=0.839 BlockSelfDamage=true InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=true AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cylindrical MainBBHeight=210.0 MainBBRadius=40.0 MainBBHasHead=true MainBBHeadRadius=30.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cuboid ProjBBHeight=230.0 ProjBBRadius=60.0 ProjBBHasHead=true ProjBBHeadRadius=30.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.5 JetpackFullFuelTime=1000.0 JetpackFuelIncPerSec=100.0 JetpackFuelRegensInAir=true JetpackThrust=6000.0 JetpackMaxZVelocity=600.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=0.9 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=None CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Character Profile] Name=Counter-Striker MaxHealth=100.0 WeaponProfileNames=AK-47;M4A1-S;m4a4;USP-S;;;; MinRespawnDelay=0.0001 MaxRespawnDelay=0.0001 StepUpHeight=75.0 CrouchHeightModifier=0.75 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=1.0 MovementType=Base MaxSpeed=1100.0 MaxCrouchSpeed=250.0 Acceleration=6000.0 AirAcceleration=16000.0 Friction=7.5 BrakingFrictionFactor=1.25 JumpVelocity=800.0 Gravity=2.5 AirControl=1.0 CanCrouch=true CanPogoJump=false CanCrouchInAir=true CanJumpFromCrouch=true EnemyBodyColor=X=0.546 Y=0.776 Z=0.546 EnemyHeadColor=X=0.608 Y=0.463 Z=0.314 TeamBodyColor=X=0.000 Y=0.000 Z=0.771 TeamHeadColor=X=0.149 Y=0.542 Z=1.000 BlockSelfDamage=true InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=true AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cylindrical MainBBHeight=250.0 MainBBRadius=35.0 MainBBHasHead=true MainBBHeadRadius=25.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=250.0 ProjBBRadius=35.0 ProjBBHasHead=true ProjBBHeadRadius=25.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.5 JetpackFullFuelTime=1000.0 JetpackFuelIncPerSec=100.0 JetpackFuelRegensInAir=true JetpackThrust=6000.0 JetpackMaxZVelocity=600.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=256.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.0 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=None CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Dodge Profile] Name=Long Strafes Jumping MaxTargetDistance=3000.0 MinTargetDistance=500.0 ToggleLeftRight=true ToggleForwardBack=true MinLRTimeChange=0.5 MaxLRTimeChange=3.0 MinFBTimeChange=0.5 MaxFBTimeChange=1.5 DamageReactionChangesDirection=false DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.5 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.1 MaxJumpTime=0.1 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 WaypointLogic=Ignore WaypointTurnRate=200.0 MinTimeBeforeShot=0.15 MaxTimeBeforeShot=0.25 IgnoreShotChance=0.0 ForwardTimeMult=1.0 BackTimeMult=1.0 DamageReactionChangesFB=false [Dodge Profile] Name=ADAD MaxTargetDistance=2500.0 MinTargetDistance=750.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.2 MaxLRTimeChange=0.5 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=false DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.0 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.2 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.16 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.1 MaxCrouchTime=0.2 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 WaypointLogic=Ignore WaypointTurnRate=200.0 MinTimeBeforeShot=0.15 MaxTimeBeforeShot=0.25 IgnoreShotChance=0.0 ForwardTimeMult=1.0 BackTimeMult=1.0 DamageReactionChangesFB=false [Weapon Profile] Name=Sniper Type=Hitscan ShotsPerClick=1 DamagePerShot=10000.0 KnockbackFactor=4.0 TimeBetweenShots=0.01 Pierces=false Category=SemiAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=67000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=67000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=0.0 HeadshotCapable=false HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 ProjectileGraphic=Plasma VisualLifetime=0.1 BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=0.3 CanAimDownSight=true ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=false AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=false MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=90 ADSFOVOverride=20.0 ADSFOVScale=Apex Legends ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.1 WeaponModel=Blank WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=Gunshot ParticleBodyImpact=Flare ParticleProjectileTrail=Healing Sniper B ParticleHitscanTrace=None ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=0.0,0.1,0.0,0.0 SpreadSCA=1.0,1.0,-1.0,5.0 SpreadMSA=0.0,0.1,0.0,0.0 SpreadMCA=1.0,1.0,-1.0,5.0 SpreadSSH=0.0,0.1,0.0,0.0 SpreadSCH=1.0,1.0,-1.0,5.0 SpreadMSH=0.0,0.1,0.0,0.0 SpreadMCH=1.0,1.0,-1.0,5.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.05 TimeToRecoilReset=0.1 AAMode=0 AAPreferClosestPlayer=true AAAlpha=1.0 AAMaxSpeed=360.0 AADeadZone=0.0 AAFOV=360.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=PUBG Type=Projectile ShotsPerClick=1 DamagePerShot=45.0 KnockbackFactor=0.0 TimeBetweenShots=0.06 Pierces=false Category=FullyAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=75000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=75000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=30 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=45.0 DelayBeforeShot=0.0 ProjectileGraphic=Ball VisualLifetime=0.1 BounceOffWorld=false BounceFactor=0.0 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=true ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=0.7 ADSStartDelay=0.0 ShootSoundCooldown=0.05 HitSoundCooldown=0.05 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.0 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=300.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=0.6 PSRADSScale=1.0 ProjectileAcceleration=-2.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.0 AimPunchCooldown=0.0 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=false MinimumDecelVelocity=45000.0 PSRManualNegation=true PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Apex Legends ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=Gunshot ParticleBodyImpact=Blood ParticleProjectileTrail=None ParticleHitscanTrace=Tracer ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,3.0,-1.0,0.5 SpreadSCA=1.0,3.0,-1.0,0.3 SpreadMSA=1.0,3.0,-1.0,0.5 SpreadMCA=1.0,3.0,-1.0,0.3 SpreadSSH=1.0,3.0,-1.0,3.0 SpreadSCH=1.0,3.0,-1.0,1.0 SpreadMSH=1.0,3.0,-1.0,3.0 SpreadMCH=1.0,3.0,-1.0,1.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=-0.6 MaxRecoilHoriz=0.6 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.3 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=30.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=true AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=true PSRLoopStartIndex=3 PSRViewRecoilTracking=1.0 PSRCapUp=90.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 PSR0=0.5,0.0 PSR1=0.5,0.0 PSR2=0.5,0.0 PSR3=1.0,0.0 UsePerBulletSpread=false [Weapon Profile] Name=M4A1-S Type=Hitscan ShotsPerClick=1 DamagePerShot=33.0 KnockbackFactor=0.1 TimeBetweenShots=0.1 Pierces=false Category=FullyAuto BurstShotCount=2 TimeBetweenBursts=0.1 ChargeStartDamage=0.1 ChargeStartVelocity=X=1500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=3000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=3000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=3.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=3.0 MagazineMax=20 AmmoPerShot=1 ReloadTimeFromEmpty=1.37 ReloadTimeFromPartial=1.37 DamageFalloffStartDistance=3000.0 DamageFalloffStopDistance=7000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 ProjectileGraphic=Ball VisualLifetime=0.1 BounceOffWorld=true BounceFactor=0.6 BounceCount=0 HomingProjectileAcceleration=6000.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.1 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.1 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=410.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=10.3 ADSFOVScale=Apex Legends ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=Gunshot ParticleBodyImpact=Blood ParticleProjectileTrail=None ParticleHitscanTrace=Tracer ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.1 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=true DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=5.0 BlockedByWorld=true SpreadSSA=4.0,15.0,-9.0,2.5 SpreadSCA=4.0,15.0,-9.0,2.5 SpreadMSA=4.0,15.0,-9.0,2.5 SpreadMCA=4.0,15.0,-9.0,2.5 SpreadSSH=1.5,27.0,-9.0,1.0 SpreadSCH=1.5,27.0,-9.0,0.0 SpreadMSH=100.0,1000.0,5.0,20.0 SpreadMCH=4.0,15.0,-9.0,1.8 MaxRecoilUp=0.3 MinRecoilUp=0.3 MinRecoilHoriz=-0.3 MaxRecoilHoriz=0.3 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.0001 TimeToRecoilReset=0.075 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=2.0 AADeadZone=0.0 AAFOV=15.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=0.1 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=true PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=90.0 PSRCapRight=90.0 PSRCapLeft=90.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=35.0 PSR0=0.4,-0.1 PSR1=0.4,0.0 PSR2=0.9,0.4 PSR3=1.0,-0.5 PSR4=1.0,0.6 PSR5=1.2,0.3 PSR6=0.7,-0.6 PSR7=0.8,-0.5 PSR8=0.3,-1.3 PSR9=0.8,0.5 PSR10=0.3,1.0 PSR11=-0.4,1.2 PSR12=0.0,1.1 PSR13=0.1,1.0 PSR14=-0.2,-0.4 PSR15=0.4,0.1 PSR16=-0.4,1.0 PSR17=0.4,-1.0 PSR18=0.0,1.0 PSR19=-0.1,-1.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=m4a4 Type=Hitscan ShotsPerClick=1 DamagePerShot=33.0 KnockbackFactor=0.2 TimeBetweenShots=0.09 Pierces=false Category=FullyAuto BurstShotCount=2 TimeBetweenBursts=0.1 ChargeStartDamage=0.1 ChargeStartVelocity=X=1500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=3000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=3000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=3.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=30 AmmoPerShot=1 ReloadTimeFromEmpty=2.7 ReloadTimeFromPartial=2.7 DamageFalloffStartDistance=3000.0 DamageFalloffStopDistance=7500.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 ProjectileGraphic=Ball VisualLifetime=0.02 BounceOffWorld=true BounceFactor=0.6 BounceCount=0 HomingProjectileAcceleration=6000.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.1 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-40.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.2 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=410.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=10.3 ADSFOVScale=Apex Legends ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=Gunshot ParticleBodyImpact=Blood ParticleProjectileTrail=None ParticleHitscanTrace=Tracer ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.1 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=true DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=5.0 BlockedByWorld=true SpreadSSA=4.0,15.0,-9.0,2.5 SpreadSCA=4.0,15.0,-9.0,2.5 SpreadMSA=4.0,15.0,-9.0,2.5 SpreadMCA=4.0,15.0,-9.0,2.5 SpreadSSH=4.0,27.0,-9.0,1.0 SpreadSCH=4.0,27.0,-9.0,0.0 SpreadMSH=100.0,1000.0,5.0,20.0 SpreadMCH=4.0,15.0,-9.0,1.8 MaxRecoilUp=0.3 MinRecoilUp=0.3 MinRecoilHoriz=-0.3 MaxRecoilHoriz=0.3 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.0001 TimeToRecoilReset=0.075 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.1 AAMaxSpeed=5.0 AADeadZone=0.0 AAFOV=50.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=0.1 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=true PSRLoopStartIndex=10 PSRViewRecoilTracking=0.45 PSRCapUp=90.0 PSRCapRight=90.0 PSRCapLeft=90.0 PSRTimeToPeak=0.16 PSRResetDegreesPerSec=35.0 PSR0=0.4,-0.25 PSR1=0.4,-0.1 PSR2=0.9,0.5 PSR3=1.2,-0.5 PSR4=1.1,0.4 PSR5=1.3,0.4 PSR6=0.9,-1.0 PSR7=0.7,-0.75 PSR8=0.5,-1.1 PSR9=0.6,-0.3 PSR10=0.7,0.5 PSR11=-0.4,1.5 PSR12=0.1,1.7 PSR13=-0.3,1.3 PSR14=0.2,1.0 PSR15=0.2,-0.9 PSR16=-0.1,0.0 PSR17=0.3,0.5 PSR18=0.2,0.5 PSR19=-0.2,0.5 PSR20=-0.2,-0.75 PSR21=0.5,-2.0 PSR22=-0.2,-0.7 PSR23=0.2,-0.6 PSR24=-0.1,-0.75 PSR25=-0.1,-0.5 PSR26=0.3,0.3 PSR27=0.3,-0.4 PSR28=0.1,-0.2 PSR29=0.15,-0.2 PSR30=0.15,-0.2 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=USP-S Type=Hitscan ShotsPerClick=1 DamagePerShot=35.0 KnockbackFactor=1.0 TimeBetweenShots=0.17 Pierces=false Category=SemiAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=12 AmmoPerShot=1 ReloadTimeFromEmpty=2.2 ReloadTimeFromPartial=2.2 DamageFalloffStartDistance=300.0 DamageFalloffStopDistance=1000.0 DamageAtMaxRange=33.0 DelayBeforeShot=0.0 ProjectileGraphic=Ball VisualLifetime=0.1 BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=1.0 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=400.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Apex Legends ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=Gunshot ParticleBodyImpact=Blood ParticleProjectileTrail=None ParticleHitscanTrace=Tracer ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,5.0 SpreadSCA=1.0,1.0,-1.0,5.0 SpreadMSA=1.0,1.0,-1.0,5.0 SpreadMCA=1.0,1.0,-1.0,5.0 SpreadSSH=5.0,25.0,0.2,7.0 SpreadSCH=1.0,1.0,-1.0,5.0 SpreadMSH=1.0,25.0,2.0,7.0 SpreadMCH=1.0,1.0,-1.0,5.0 MaxRecoilUp=0.3 MinRecoilUp=0.0 MinRecoilHoriz=-0.2 MaxRecoilHoriz=0.2 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.0001 TimeToRecoilReset=0.075 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.1 AAMaxSpeed=5.0 AADeadZone=0.0 AAFOV=50.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Map Data] reflex map version 8 global entity type WorldSpawn String32 targetGameOverCamera end UInt8 playersMin 1 UInt8 playersMax 16 brush vertices -576.000000 0.000000 256.000000 448.000000 0.000000 256.000000 448.000000 0.000000 -768.000000 -576.000000 0.000000 -768.000000 -576.000000 -16.000000 256.000000 448.000000 -16.000000 256.000000 448.000000 -16.000000 -768.000000 -576.000000 -16.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 0.000000 1280.000000 448.000000 0.000000 1280.000000 448.000000 0.000000 256.000000 -576.000000 0.000000 256.000000 -576.000000 -16.000000 1280.000000 448.000000 -16.000000 1280.000000 448.000000 -16.000000 256.000000 -576.000000 -16.000000 256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 0.000000 -768.000000 448.000000 0.000000 -768.000000 448.000000 0.000000 -1792.000000 -576.000000 0.000000 -1792.000000 -576.000000 -16.000000 -768.000000 448.000000 -16.000000 -768.000000 448.000000 -16.000000 -1792.000000 -576.000000 -16.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 272.000000 -1792.000000 448.000000 272.000000 -1792.000000 448.000000 272.000000 -1808.000000 -576.000000 272.000000 -1808.000000 -576.000000 0.000000 -1792.000000 448.000000 0.000000 -1792.000000 448.000000 0.000000 -1808.000000 -576.000000 0.000000 -1808.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 272.000000 1296.000000 448.000000 272.000000 1296.000000 448.000000 272.000000 1280.000000 -576.000000 272.000000 1280.000000 -576.000000 0.000000 1296.000000 448.000000 0.000000 1296.000000 448.000000 0.000000 1280.000000 -576.000000 0.000000 1280.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 448.000000 272.000000 1280.000000 464.000000 272.000000 1280.000000 464.000000 272.000000 -1792.000000 448.000000 272.000000 -1792.000000 448.000000 0.000000 1280.000000 464.000000 0.000000 1280.000000 464.000000 0.000000 -1792.000000 448.000000 0.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -592.000000 272.000000 1280.000000 -576.000000 272.000000 1280.000000 -576.000000 272.000000 -1792.000000 -592.000000 272.000000 -1792.000000 -592.000000 0.000000 1280.000000 -576.000000 0.000000 1280.000000 -576.000000 0.000000 -1792.000000 -592.000000 0.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 704.000000 1296.000000 448.000000 704.000000 1296.000000 448.000000 704.000000 1280.000000 -576.000000 704.000000 1280.000000 -576.000000 272.000000 1296.000000 448.000000 272.000000 1296.000000 448.000000 272.000000 1280.000000 -576.000000 272.000000 1280.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 704.000000 -1792.000000 448.000000 704.000000 -1792.000000 448.000000 704.000000 -1808.000000 -576.000000 704.000000 -1808.000000 -576.000000 272.000000 -1792.000000 448.000000 272.000000 -1792.000000 448.000000 272.000000 -1808.000000 -576.000000 272.000000 -1808.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -592.000000 704.000000 1280.000000 -576.000000 704.000000 1280.000000 -576.000000 704.000000 -1792.000000 -592.000000 704.000000 -1792.000000 -592.000000 272.000000 1280.000000 -576.000000 272.000000 1280.000000 -576.000000 272.000000 -1792.000000 -592.000000 272.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices 448.000000 704.000000 1280.000000 464.000000 704.000000 1280.000000 464.000000 704.000000 -1792.000000 448.000000 704.000000 -1792.000000 448.000000 272.000000 1280.000000 464.000000 272.000000 1280.000000 464.000000 272.000000 -1792.000000 448.000000 272.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 720.000000 1280.000000 448.000000 720.000000 1280.000000 448.000000 720.000000 -1792.000000 -576.000000 720.000000 -1792.000000 -576.000000 704.000000 1280.000000 448.000000 704.000000 1280.000000 448.000000 704.000000 -1792.000000 -576.000000 704.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 32.000000 528.000000 448.000000 32.000000 528.000000 448.000000 32.000000 512.000000 -576.000000 32.000000 512.000000 -576.000000 0.000000 528.000000 448.000000 0.000000 528.000000 448.000000 0.000000 512.000000 -576.000000 0.000000 512.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 704.000000 528.000000 448.000000 704.000000 528.000000 448.000000 704.000000 512.000000 -576.000000 704.000000 512.000000 -576.000000 32.000000 528.000000 448.000000 32.000000 528.000000 448.000000 32.000000 512.000000 -576.000000 32.000000 512.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 32.000000 -1024.000000 448.000000 32.000000 -1024.000000 448.000000 32.000000 -1040.000000 -576.000000 32.000000 -1040.000000 -576.000000 0.000000 -1024.000000 448.000000 0.000000 -1024.000000 448.000000 0.000000 -1040.000000 -576.000000 0.000000 -1040.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 704.000000 -1024.000000 448.000000 704.000000 -1024.000000 448.000000 704.000000 -1040.000000 -576.000000 704.000000 -1040.000000 -576.000000 32.000000 -1024.000000 448.000000 32.000000 -1024.000000 448.000000 32.000000 -1040.000000 -576.000000 32.000000 -1040.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip entity type PlayerSpawn Vector3 position -64.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type CameraPath UInt32 entityIdAttachedTo 5 UInt8 posLerp 2 UInt8 angleLerp 2 entity type Effect Vector3 position 0.000000 256.000000 0.000000 String64 effectName internal/misc/reflectionprobe entity type Target Vector3 position 320.000000 256.000000 320.000000 Vector3 angles -135.000000 30.000000 0.000000 String32 name end entity type PlayerSpawn Vector3 position -64.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -128.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -192.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -256.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -320.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -384.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -448.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -512.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 0.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 64.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 128.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 192.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 256.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 320.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 384.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 0.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 64.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 128.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 192.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 256.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 320.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 384.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -128.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -192.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -256.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -320.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -384.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -448.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -512.000000 0.000000 -1760.000000 Bool8 teamA 0
1d69f34610aafa41f17640ae87f3b340dca8e77c
449d555969bfd7befe906877abab098c6e63a0e8
/3821/CH14/EX14.5/Example14_5.sce
16faa5a575a218e440a74c18398df21d1131604b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
580
sce
Example14_5.sce
////Chapter No 14 Air Standard Cycles ////Example No 14.5 Page No 308 ///Find compression ratio ///Input data clc; clear; P1=1; //Isentropic Compression in bar P2=20; //Isentropic Compression in bar //Consider air as the working fluid therefore gamma1=1.4; //Calculation r=(P2/P1)**(1/gamma1); //Isentropic process eta=100*(1-(1/(r^(gamma1-1)))); //Otto cycle air standard effeciency in % //Output printf('compression ratio= %f \n ',r); printf('standard efficiency= %f percent \n',eta);
5b81a9f38a29f0c44173c4f746b03d96d37df4a1
449d555969bfd7befe906877abab098c6e63a0e8
/2219/CH11/EX11.17/Ex11_17.sce
9c65af80f284820d0bb7454e9467f5fa7a55bc0f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
526
sce
Ex11_17.sce
// Chapter 11 example 17 //------------------------------------------------------------------------------ clc; clear; // Given data r = 42164; // orbital radius in kms Dlamda_max = 500; // max displacement due to latitude deviation // Calculations i = Dlamda_max/r; // angle of inclination in radians i_deg = i*180/%pi // rad to deg conv // Output mprintf('Angle of inclination = %3.2f°',i_deg); //------------------------------------------------------------------------------
f9e2305f5bffc1643ce4b13f381221c201a81629
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH19/EX19.07/19_07.sce
6d4ee76a490f67c4df50d7ae7a477fb01ab18089
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,146
sce
19_07.sce
//Problem 19.07: Three coils each having resistance 3 ohm and inductive reactance 4 ohm are connected (i) in star and (ii) in delta to a 415 V, 3-phase supply. Calculate for each connection (a) the line and phase voltages and (b) the phase and line currents. //initializing the variables: R = 3; // in ohms XL = 4; // in ohms VL = 415; // in Volts //calculation: //For a star connection: //IL = Ip //VL = Vp*(3^0.5) VLs = VL Vps = VLs/(3^0.5) //Impedance per phase, Zp = (R*R + XL*XL)^0.5 Ips = Vps/Zp ILs = Ips //For a delta connection: //VL = Vp //IL = Ip*(3^0.5) VLd = VL Vpd = VLd Ipd = Vpd/Zp ILd = Ipd*(3^0.5) printf("\n\n Result \n\n") printf("\n (a)the line voltage for star connection is %.0f V and the phase voltage for star connection is %.0f V and the line voltage for delta connection is %.0f V and the phase voltage for delta connection is %.0f V",VLs,Vps,VLd,Vpd) printf("\n (b)the line current for star connection is %.0f A and the phase current for star connection is %.0f A and the line current for delta connection is %.0f A and the phase current for delta connection is %.0f A",ILs,Ips,ILd,Ipd)
693ef65f0c52440e29c045fe65b9e382b454cd83
449d555969bfd7befe906877abab098c6e63a0e8
/1949/CH3/EX3.11.1/Ex3_11_1.sce
999503c6594f6cf1b5841ad06639de826e36933d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
574
sce
Ex3_11_1.sce
//Chapter-3,Example 3_11_1,Page 3-25 clc() //Given Data: u1=1.52 //R.I. of Core u2=1.5189 //R.I.of Cladding lam=1.3*10^-6 //wavelength in meter d=29*10^-6 //core diameter in meter a=d/2 //Calculations: NA=sqrt(u1^2-u2^2) //Formula to find Numerical Aperture V=2*%pi*a*NA/lam //Normalised frequency Nm=(V^2)/2 //Number of modes printf('Normalised frequency of Fibre is (V)=%.3f \n \n',V) printf(' The Maximum Number of modes the Fibre will support is (Nm) =%.0f \n',Nm)
d76c2598fb507fb36c766696ad524c66794f6904
05322c42d547b8f7ef0ed28007c446f13325041e
/bench/bubble-sort.tst
e1bb4be9946d3b23318853b9032200353e08f07c
[]
no_license
AntonErtl/rafts
dbc0b78cef4fa705d3054c440158880e7319f36a
cd6749d35aa81683096d255f1d36bdbeb0aac639
refs/heads/master
2021-04-06T05:22:17.277237
2018-03-12T17:14:57
2018-03-12T17:14:57
124,918,105
5
0
null
null
null
null
UTF-8
Scilab
false
false
1,385
tst
bubble-sort.tst
.( Loading Bubble Sort benchmark...) cr \ A classical benchmark of an O(n**2) algorithm; Bubble sort \ \ Part of the programs gathered by John Hennessy for the MIPS \ RISC project at Stanford. Translated to forth by Marty Fraeman \ Johns Hopkins University/Applied Physics Laboratory. \ MM forth2c doesn't have it ! : mybounds over + swap ; variable seed ( -- addr) : initiate-seed ( -- ) 74755 seed ! ; : random ( -- n ) seed @ 1309 * 13849 + 65535 and dup seed ! ; 6000 constant elements ( -- int) align create list elements cells allot : initiate-list ( -- ) list elements cells + list do random i ! cell +loop ; : dump-list ( -- ) list elements cells + list do i @ . cell +loop cr ; : verify-list ( -- ) list elements 1- cells mybounds do i 2@ > abort" bubble-sort: not sorted" cell +loop ; : bubble ( -- ) ." bubbling..." cr 1 elements 1 do list elements i - cells mybounds do i 2@ > if i 2@ swap i 2! then cell +loop loop ; : bubble-sort ( -- ) initiate-seed initiate-list bubble verify-list ; : bubble-with-flag ( -- ) 1 elements 1 do -1 list elements i - cells mybounds do i 2@ > if i 2@ swap i 2! drop 0 then cell +loop if leave then loop ; : bubble-sort-with-flag ( -- ) initiate-seed initiate-list bubble-with-flag verify-list ; : main ( -- ) bubble-sort \ bubble-sort-with-flag ;
a1f2da4337aaa987af4cd716182c1af159b49442
449d555969bfd7befe906877abab098c6e63a0e8
/1748/CH2/EX2.27/Exa2_27.sce
929b7d1a5c6311b6cba7bb256d42aae10f1fae53
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
699
sce
Exa2_27.sce
//Exa 2.27 clc; clear; close; //Given data : format('v',6); V=500;//in volt Pout_rotor=20;//Power output of rotor in H.P. phase=3;//no. of phase P=6;//no. of poles f=50;//in Hz N=995;//in rpm(Actual speed of motor) cosfi=0.87;//powerfactor(unitless) Ns=120*f/P;//synchronous speed in rpm S=(Ns-N)/Ns;//unitless disp(S,"Slip : "); RotorCuLoss=(S/(1-S))*Pout_rotor*735.5;//in watts disp(RotorCuLoss,"Rotor Cu Loss(in watts) : "); Pin_rotor=RotorCuLoss/S;//in watts disp(Pin_rotor/10^3,"Power input to rotor(in KW) :"); LineCurrent=Pin_rotor/(sqrt(3)*V*cosfi);//in Ampere disp(LineCurrent,"Line Current(in A) :"); RotorFreq=S*f;//in Hz disp(RotorFreq,"Rotor Frequency(in Hz) :");
4206e5900b9f36c99b6587eff2a2b9f22496af95
449d555969bfd7befe906877abab098c6e63a0e8
/1088/CH21/EX21.1/Example1.sce
ed303d202acc29bdd68067a59b709172b25c78a1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
5,736
sce
Example1.sce
clear flag=1 mode(-1) clc printf("Example 1 : Show the method of using arrays in advanced shellscripting \n") disp("****************************************************************") disp("Answer : ") disp("INSTRUCTIONS : ") printf("\n1. Here all instructions are preloaded in the form of a demo\n\nInitially the whole perl script is displaying and then \n the result of the same can be seen in the command line interpreter.\n\n2. PLEASE MAKE SURE THAT THE PERLSCRIPT INTERPRETER\nEXISTS IN THE SYSTEM\nOR THE COMMAND WOULD NOT WORK \n\n3. PRESS ENTER AFTER EACH COMMAND to see its RESULT\n\n5. PRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND\n") halt('.............Press [ENTER] to continue.....') halt("") clc printf("\tUNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)\n\n\n") halt('') clc i=0 i=i+1;f(i)='#!/usr/bin/ksh' i=i+1;f(i)='# Script: dateval.sh - validates a date field using an array' i=i+1;f(i)='IFS='+ascii(34)+'/'+ascii(34)+'' i=i+1;f(i)='n='+ascii(34)+'[0-9][0-9]'+ascii(34)+'' i=i+1;f(i)='set -A month arr 0 31 29 31 30 31 30 31 30 31 30 31' i=i+1;f(i)='while echo '+ascii(34)+'Enter a date: \c'+ascii(34)+' ; do' i=i+1;f(i)=' read value' i=i+1;f(i)=' case '+ascii(34)+'$value'+ascii(34)+' in' i=i+1;f(i)=' '+ascii(34)+''+ascii(34)+') echo '+ascii(34)+'No date entered'+ascii(34)+' ; continue ;;' i=i+1;f(i)=' $n/$n/$n) set $value' i=i+1;f(i)=' let rem='+ascii(34)+'$3 % $4'+ascii(34)+'' i=i+1;f(i)=' if [ $2 -gt 12 -o $2 -eq 0 ] ; then' i=i+1;f(i)=' echo '+ascii(34)+'Illegal month'+ascii(34)+' ; continue' i=i+1;f(i)=' else' i=i+1;f(i)=' case '+ascii(34)+'$value'+ascii(34)+' in' i=i+1;f(i)=' 29/02/??) [ $rem -gt 0 ] &&' i=i+1;f(i)=' { echo '+ascii(34)+'20$3 is not a leap year'+ascii(34)+' ; continue ; } ;;' i=i+1;f(i)=' *) [ $1 -gt ${month_arr[$2]} -o $1 -eq 0 ] &&' i=i+1;f(i)=' { echo '+ascii(34)+'Illegal day'+ascii(34)+' ; continue ; } ;;' i=i+1;f(i)=' esac' i=i+1;f(i)=' fi;;' i=i+1;f(i)=' *) echo '+ascii(34)+'Invalid date'+ascii(34)+' ; continue ;;' i=i+1;f(i)=' esac' i=i+1;f(i)=' echo '+ascii(34)+'$1/$2/$3'+ascii(34)+' is a valid date' i=i+1;f(i)='done' n=i printf("\n# Enter the name of the shellscript file whichever you desire \n\n") nam=input('$ cat ','s') halt(' ') for i=1:n printf("%s\n",f(i)) end halt(' ') clc i=0 i=i+1;f(i)='@echo off' i=i+1;f(i)='set chc=y' i=i+1;f(i)=':loop' i=i+1;f(i)='if /I '+ascii(34)+'%chc%'+ascii(34)+'=='+ascii(34)+'n'+ascii(34)+' goto endloop' i=i+1;f(i)='set /P dat=Enter a date: ' i=i+1;f(i)='if '+ascii(34)+'%dat%'+ascii(34)+' equ '+ascii(34)+''+ascii(34)+' echo No date entered&&goto chci' i=i+1;f(i)='if exist testt del testt' i=i+1;f(i)='echo %dat%>testt' i=i+1;f(i)='for /F '+ascii(34)+'tokens=1,2,3 delims=/'+ascii(34)+' %%i in (testt) do set dd=%%i&&set mm=%%j&&set yy=%%k' i=i+1;f(i)='if %mm% gtr 12 echo Illegal month&&goto chci' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'01'+ascii(34)+' set ulim=31&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'03'+ascii(34)+' set ulim=31&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'04'+ascii(34)+' set ulim=30&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'05'+ascii(34)+' set ulim=31&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'06'+ascii(34)+' set ulim=30&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'07'+ascii(34)+' set ulim=31&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'08'+ascii(34)+' set ulim=31&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'09'+ascii(34)+' set ulim=30&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'10'+ascii(34)+' set ulim=31&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'11'+ascii(34)+' set ulim=30&&goto printing' i=i+1;f(i)='if '+ascii(34)+'%mm%'+ascii(34)+'=='+ascii(34)+'12'+ascii(34)+' set ulim=31&&goto printing' i=i+1;f(i)='set /a rem=yy%%4' i=i+1;f(i)='if %rem% neq 0 set ulim=28&&goto nlpyear' i=i+1;f(i)='set ulim=29' i=i+1;f(i)='goto printing' i=i+1;f(i)=':nlpyear' i=i+1;f(i)='if '+ascii(34)+'%dd%'+ascii(34)+'=='+ascii(34)+'29'+ascii(34)+' echo 20%yy% is not a leap year&&goto chci' i=i+1;f(i)=':printing' i=i+1;f(i)='if %dd% leq %ulim% echo %dat% is a valid date&&goto chci' i=i+1;f(i)='echo Illegal day ' i=i+1;f(i)=':chci' i=i+1;f(i)='set /p chc=Do you want to continue ? (y/n) : ' i=i+1;f(i)='goto loop' i=i+1;f(i)=':endloop' i=i+1;f(i)='pause>NUL&&del testt' n=i if getos()=='Linux' then printf("\n\nPlease Switch to windows and then execute using the instructions\n\nThank You \n\n") halt(' ') exit end v=mopen(nam+'.sh.bat','wt') for i=1:n mfprintf(v,"%s\n",f(i)) end mclose(v) printf("\n# type the following command in the command line interpreter as soon as it appears") printf(" \n %c %s.sh %c [COMMANDLINE ARGUMENTS][ENTER]\n\n",ascii(34),nam,ascii(34)) printf("\n$ %s.sh [COMMANDLINE ARGUMENTS] #to execute the perlscript",nam) halt(' ') dos('start') printf("\n\n\n") halt(' ---------------->Executing ShellScript in Command Line Prompt<-------------- ') 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) mdelete(nam+'.sh.bat') mdelete('emp.lst')
ec68907b1a3cd8b56a8bcf33b2eba898c861d49f
449d555969bfd7befe906877abab098c6e63a0e8
/377/CH14/EX14.3/14_3.sce
ec9b812ad13f155d6fef485c993cc0942c4db427
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,179
sce
14_3.sce
k=0.025852; //say k=K*T/q Na=3*10^14; Nv=3.08*10^19; a=4.05; //say a=χsi c=k*log(Nv/Na); //say c=Ef-Ev printf('\n The value of Ef-Ev is %fV',c); b=1.125; //say b=Eg d=a+b-c; //say d=φs printf('\n The value of φs is %fV\n',d); e=11.7*8.854*10^-14; //say e=Єs Vt=0.025852; q=1.6*10^-19; Na=3*10^14; Ld=sqrt(e*Vt/(q*Na)); printf('\n The value of Ld is %f*10^-5cm\n',Ld*10^5); eox=3.9*8.854*10^-14; //say eox=Єox dox=350*10^-7; cox=eox/dox; printf('\n The oxide capacitance per unit area is %f*10^-9F/cm^2',cox*10^9); esi=11.7*8.854*10^-14; Cdiffb=1/((dox/eox)+(Ld/esi)); printf('\n The capacitance per unit area at the flat band condition is %f*10^-9F/cm^2\n',Cdiffb*10^9); Vfb1=a-d; printf('\n The value of Vfb1 is %fV\n',Vfb1); ni=1*10^10; f=k*log(ni/Na); //say f=φb printf('\n The value of φb is %1.3f\n',f); Xdmax=sqrt(2*e*2*(-f)/(q*Na)); printf('\n The value of Xdmax is %f*10^-4cm\n',Xdmax*10^4); Qdmax=-q*Na*Xdmax; printf('\n The value of Qdmax is %f*10^-9C/cm^2\n',Qdmax*10^9); Emax=-Qdmax/e; printf('\n The value of Emax is %fV/cm\n',Emax); VT=Vfb1-(2*f)-(Qdmax/cox); printf('\n The value of Threshold voltage is %fV\n',VT);
306a1d538bb066d4566a270794b14014ea54e8b2
eb7eeb04a23a477e06f3c0e3d099889caee468b4
/src/tools/scilab/iome_toolbox/macros/buildmacros.sce
3e5571973b495eaa37b8fb4bbf8b979ecb7f67cd
[]
no_license
mikeg64/iome
55699b7d7b3d5c1b006d9c82efe5136b8c909dfd
cc1c94433133e32776dcf16704ec4ec337b1b4a0
refs/heads/master
2020-03-30T15:57:33.056341
2016-04-13T09:24:27
2016-04-13T09:24:27
151,387,236
0
0
null
null
null
null
UTF-8
Scilab
false
false
347
sce
buildmacros.sce
// ==================================================================== // Allan CORNET // Simon LIPP // INRIA 2008 // This file is released into the public domain // ==================================================================== tbx_build_macros(TOOLBOX_NAME, get_absolute_file_path('buildmacros.sce')); clear tbx_build_macros;
7d0f40c310c37f42bf4b0d2135b2fb89381df6e1
717ddeb7e700373742c617a95e25a2376565112c
/3044/CH11/EX11.19/Ex11_19.sce
066a92464bd41d1c2da15292f02f6ea985e64eda
[]
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
374
sce
Ex11_19.sce
// Variable declaration n = 5 k = 1 // Calculation X = [1 0 ; 1 1 ; 1 2 ; 1 3 ; 1 4] Y = [8 ; 9 ; 4 ; 3 ; 1] XT = X' XTX = XT*X XTXI = [0.6 -0.2; -0.2 0.1] XTY = XT*Y b = XTXI*XTY Y1 = X*b MMT = ((Y-Y1)')*(Y-Y1) MMT = int(MMT) Se_square = (1.0/(n-k-1))*MMT Final = Se_square*XTXI // Result printf ( "var(bo): %.2f",Final(1,1)) printf ( "var(b1): %.2f",Final(2,2) )
d839b8363e363f24bfeca1501e09049842b13da2
fd6e45f66c41ad779a3d47c3bf8ebfa140d3d657
/P8 - Numerical Integration/trapeciopiola.sci
5035d0778a4a9bdff9627150b44f93964f66c6ce
[]
no_license
jere1882/Numerical-Analysis-Assignments
7f474e2020d010f9f9c3dceff5e48c03b0d38652
1074f92ca93d0a402259f92a0f61f105f25e5230
refs/heads/master
2021-09-06T20:00:36.411386
2018-02-10T18:04:38
2018-02-10T18:04:38
121,039,769
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,618
sci
trapeciopiola.sci
function y = trapecio(func1, a, b) y = ((b - a) / 2) * (func1(a) + func1(b)); //error = f''(c) * (h^3 / 12) c tal que la f'' sea máxima endfunction function y = trapeciocompuesto(func1, a, b, n) h = (b - a) / n y = 0 for x = a: h: (b - h) y = y + trapecio(func1, x, x + h); end //error = f''(c) * (h^3 / (12 * n^2)) c tal que la f'' sea máxima endfunction function y = err_trap(a, b, n, maxder2) //google: 4chan trap thread y = -maxder2 * (((b - a)^3) / (12 * n^2)) endfunction function y = simpson(func, a, b) y = ((b - a) / 6) * (func(a) + 4 * func((a + b) / 2) + func(b)); //error = (h^5 / 90) * f''''(c) c tal que la f'''' sea máxima endfunction function y = simpsoncompuesto(func, a, b, n) h = (b - a) / n y = 0 for x = a: h: (b - h) y = y + simpson(func, x, x + h); end //error = (b - a) * (h^4 / 180) * f''''(c) c tal que la f'''' sea máxima endfunction function y = err_simp(a, b, n, maxder4) h = (b - a) / n; y = (b - a) * ((h^4) / 180) * maxder4; endfunction function y = trap_aux(func, x, a, b) [p1, p2, p3] = string(func) y = ((b - a) / 2) * (func(x, a) + func(x, b)); //error = f''(c) * (h^3 / 12) c tal que la f'' sea máxima endfunction function y = trap_comp_aux(func, x, a, b, n) h = (b - a) / n y = 0 for i = a: h: (b - h) y = y + trap_aux(func, x, i, i + h); end //error = f''(c) * (h^3 / (12 * n^2)) c tal que la f'' sea máxima endfunction function y = simp_aux(func2, x, a, b) y = ((b - a) / 6) * (func2(x, a) + 4 * func2(x, (a + b) / 2) + func2(x, b)); //error = (h^5 / 90) * f''''(c) c tal que la f'''' sea máxima endfunction function y = simp_comp_aux(func2, x, a, b, n) h = (b - a) / n y = 0 for i = a: h: (b - h) y = y + simp_aux(func2, x, i, i + h); end //error = (b - a) * (h^4 / 180) * f''''(c) c tal que la f'''' sea máxima endfunction function y = trapecio_ext(func, a, b, fC, fD, n) //deff("r = G(x)", "r = trap_comp_aux(func, x, fC(x), fD(x), n)"); function r = G(x) r = trap_comp_aux(func, x, fC(x), fD(x), n) endfunction y = trapeciocompuesto(G, a, b, n); endfunction function y = simpson_ext(func1, a, b, fC, fD, n) //deff("r = G(x)", "r = trap_comp_aux(func, x, fC(x), fD(x), n)"); function r = G(x) r = simp_comp_aux(func1, x, fC(x), fD(x), n) endfunction y = simpsoncompuesto(G, a, b, n); endfunction
2f0cb7129ced6b5f8cffe07b27109c801079dd91
449d555969bfd7befe906877abab098c6e63a0e8
/257/CH5/EX5.5/example_5_5.sce
4ddf21dfa329ba45a904a8facfe568814513dffb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
156
sce
example_5_5.sce
syms G1 G2 G3 G4 H1 H2 a= G1*G2 //shifting the take off point b= a/(1+(a*H2)) c=(1+(G3/G2)) Y= b*c*(G4/(1+G4*H1)) disp(Y,"C/R = ")
62cfd61bea1bd3dce22e0f75b03fa1469c6d3693
449d555969bfd7befe906877abab098c6e63a0e8
/24/CH33/EX33.1/Example33_1.sce
149fe92d97ebc5b86ecfe70ef720e5ec3a16e3ba
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
221
sce
Example33_1.sce
//Given that C = 1.5*10^-6 //in F V = 57 //in volts L = 12*10^-3 //in H //Sample Problem 33-1 printf("**Sample Problem 33-1**\n") Imax = V*sqrt(C/L) printf("The maximum current in the circuit is %1.2eA", Imax)
4cd1f67f82961c53f9dbb57b27422bf92a87983f
1485852dd59aafc286600126cf832a32e10f117f
/macros/regionFill.sci
141bb3a84c10dc5f36ac3f8af950e60ade757836
[]
no_license
rg77/Scilab-Image-Processing-And-Computer-Vision-Toolbox
dec9fbbce32cfd1eab3c45ccb29c89aaa1384758
8adb116da3a9c29a32e5e0727105aff571e5b374
refs/heads/master
2020-12-02T16:14:45.282650
2017-07-07T10:12:04
2017-07-07T10:12:04
96,524,257
0
0
null
2017-07-07T09:43:50
2017-07-07T09:43:50
null
UTF-8
Scilab
false
false
2,457
sci
regionFill.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: Vinay Bhat, Rohan Gurve // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in // function[dstImg] = regionFill(srcImg,inpaintRadius,varargin) // This function restores the selected region in an image using the region neighborhood. // This function restores the selected region in an image using the region neighborhood. // // // Calling Sequence // src = imread(location-for-image) // x = [x1 x2 ...........xn ] //x coordinates of polygon covering the region that you want to fill // y = [y1 y2 ...........yn ] //corresponding y coordinates of polygon covering the region that you want to fill // dstImg 1= regionFill(srcImg,inpaintRadius,x,y) // // mask = roiFreeHand(srx) //making a mask - you can also use other function to make the mask // dstImg2 = regionFill(srcImg,inpaintRadius,mask) // // Parameters // // srcImg: input source imge //it is converted to 8 bit internally // inpaintRadius: Radius of a circular neighborhood of each point inpainted that is considered by the algorithm(Double) // mask: Inpainting mask. Non-zero pixels indicate the area that needs to be inpainted. // x: 1xn matrix denoting x coordinates of polygon covering the region that you want to fill // y: 1xn matrix denoting y coordinates of polygon covering the region that you want to fill // // Examples // src= imread("../images/color2.jpeg"); // p=regionFill(src,1,[100 110 110 100],[150 150 200 200]); // imshow(p); // // Examples // src= imread("../images/color2.jpeg"); //reading an image // mask=roiFreeHand(src); //making a mask // p=regionFill(src,5,mask); // imshow(p); // //Authors //Vinay Bhat //Rohan Gurve [lhs, rhs] = argn(0) if rhs < 3 error(msprintf("input arguments missing")); elseif rhs > 4 error(msprintf(" Too many input arguments")); end srcMat = mattolist(srcImg) if rhs == 3 then maskMat = mattolist(varargin(1)) out = raw_regionFill(srcMat,inpaintRadius, maskMat) elseif rhs == 4 then x= varargin(1) y= varargin(2) out = raw_regionFill(srcMat,inpaintRadius, x, y) end channels = size(out) for i = 1:channels dstImg(:,:,i) = out(i) end endfunction
a59498c75a88d07977c2583793a5f9ce6ba5f710
45c1200ec894e793587fc6d8f30253e69ecec19a
/neiro/laba2/bin/Debug/iris.tst
27c11799c9cfa0603213ff7c3fbf707eaf2b63c4
[]
no_license
dShadowHS/dShadow
46c0df8f6715948d2b952de001f1f8748861eb1d
0b4c4674d137160d09e5bb9092ff0d2253818dd0
refs/heads/master
2021-01-11T23:11:28.661559
2017-01-10T17:12:41
2017-01-10T17:12:41
78,555,391
0
0
null
null
null
null
UTF-8
Scilab
false
false
283
tst
iris.tst
4,8;3,0;1,4;0,3;0 5,1;3,8;1,6;0,2;0 4,6;3,2;1,4;0,2;0 5,3;3,7;1,5;0,2;0 5,0;3,3;1,4;0,2;0 5,7;3,0;4,2;1,2;1 5,7;2,9;4,2;1,3;1 6,2;2,9;4,3;1,3;1 5,1;2,5;3,0;1,1;1 5,7;2,8;4,1;1,3;1 6,7;3,0;5,2;2,3;2 6,3;2,5;5,0;1,9;2 6,5;3,0;5,2;2,0;2 6,2;3,4;5,4;2,3;2 5,9;3,0;5,1;1,8;2
df8df055b942bed956eec7b67f2c3d6f84a6096d
449d555969bfd7befe906877abab098c6e63a0e8
/1883/CH5/EX5.3.4/Example5_4.sce
091d2a40fb5c9d5a00781cda7124ffe47a88c491
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
495
sce
Example5_4.sce
//Chapter-5,Example5_3_4,pg 5-7 E=0.025 //energy of neutron h=6.63*10^-34 //Plancks constant m=1.676*10^-27 //mass of a neutron e=1.6*10^-19 //charge on electron wavelength=h/sqrt(2*m*E*e) //The Wavelength of a beam of neutron printf("\nThe Wavelength of a beam of neutron is\n") disp(wavelength) printf("meter\n")
8e21e9caa649600489f76114613dabf8c7e21a55
449d555969bfd7befe906877abab098c6e63a0e8
/575/DEPENDENCIES/524.sci
98e9f97792aa8087bd0d80ba14144ddb720c4f65
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
122
sci
524.sci
//all the calculations are done in R scale T2=285+460 //R T1=32+460 //R P2=1.30 //atm P1=1 //atm V1dot=3.95*10^5 //ft^3/h
f0e40f25f616c8884cdfb6a5e3aa0f563745a4c1
449d555969bfd7befe906877abab098c6e63a0e8
/2081/CH7/EX7.8/Ex7_8.sce
0fc99e0cf1a336bd322751fe84a1e5c3fbf09e0e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
329
sce
Ex7_8.sce
r0=2*10^3 r1=1*10^3 nl=4//no. of large cells ns=(r0/r1)^2*nl-1//split cells within area=split cells within square-1 ncpl=120 n2=nl*ncpl//no. of channels without cell splitting ncps=120 n1=ns*ncps//no. of channels with cell splitting inc=n1/n2//increase in the number of cells disp(inc,'increase in the number of cells in times')
bd877b6def2422e60206fe8c1b5dff9822e964c7
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/CreatingPlots/testxlabel.sce
cd440c5d4207ceedc5cb09be058e48ade923bc64
[]
no_license
markusmorawitz77/Scilab
902ef1b9f356dd38ea2dbadc892fe50d32b44bd0
7c98963a7d80915f66a3231a2235010e879049aa
refs/heads/master
2021-01-19T23:53:52.068010
2017-04-22T12:39:21
2017-04-22T12:39:21
89,051,705
0
0
null
null
null
null
UTF-8
Scilab
false
false
350
sce
testxlabel.sce
// generate a list of random values X=grand(100,1,'bin',10,0.6); m=tabul(X); // table of frequencies x=m(:,1); // values n=m(:,2); // bin counts clf();bar(x,n) // histogram A=gca(); A.x_label.text="grade over 10"; A.x_label.font_size=3; A.x_label.font_style=4; A.y_label.text="counts"; A.y_label.font_size=3; A.y_label.font_style=4;
ae7f9cc9ffa6c2b7a4cdd0f9cacd585ce7149f52
bae725b750433ba5d58470784eeb87687023da7e
/macros/stp.sci
db4cf60006cb3379dc53bfa743ea7530af1bca4d
[ "MIT" ]
permissive
aamadou/IsItChaos
eac61da272b4fb22f83bdceaceb5774385f481e5
def74ddd5710898f876a9a7d39916e5cc1a8b6b5
refs/heads/master
2016-08-04T21:00:17.832904
2014-03-24T13:18:39
2014-03-24T13:18:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,293
sci
stp.sci
function [x]=stp(orbit,NbrIti,Dim,Delai, ResTemps, EtapTemp, EtapFarc) // Initialisation Commandline=''; NbrComp=size(orbit,2); if ~isdef('DoEstim','local')... then DoEstim=%F, end; if isdef('NbrIti','local')... then Commandline=Commandline+' -l'+string(NbrIti), end; if isdef('EtapTemp','local')... then Commandline=Commandline+' -t'+string(EtapTemp), end; if isdef('Dim','local')... then Commandline=Commandline+' -m'+string(Dim), end; if isdef('MinEps','local')... then Commandline=Commandline+' -r'+string(MinEps), end; if isdef('ResTemps','local')... then Commandline=Commandline+' -#'+string(ResTemps), end; if isdef('EtapFarc','local')... then Commandline=Commandline+' -%'+string(EtapFarc), end; if isdef('Delai','local')... then Commandline=Commandline+' -d'+string(Delai), end; // Utilisation de Lyap_K from TiSeAn if isdef('orbit','local')... then mdelete('tmp') write('tmp',string(orbit)), Commandline=' tmp'+Commandline+' -c'+string(NbrComp)+' -otmpout.dat', end; mdelete('tmpout.dat') Commandline='stp'+Commandline, // Reading the output x=host(Commandline); if x~=0... then disp('Erreur!!! Fichier ou Tisean manquant'); return; end; x=read('tmpout.dat',-1,1,'(a)'); x=evstr(x); endfunction
eb17e82319aaed74fd57467dfc804c462e7b3139
449d555969bfd7befe906877abab098c6e63a0e8
/2354/CH3/EX3.3/3_3.sce
3e5078bc49622a99d2c2ef4681e78a461f4180c6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
415
sce
3_3.sce
//example 3.3 clc; funcprot(0); // Initialization of Variable patm=14.7;//in lbf/in^2 mpiston=100; g=32.2; A=1;//area mair=0.6; delu=18; k=1.6;//V2-V1; P=mpiston*g/A/32.2/144+14.7; W=P*k*144/778; Q=W+mair*delu; disp(Q,"Heat transferred in Btu") W2=patm*k*144/778; disp(W2,"Work done in Btu"); delz=k/A; PE=mpiston*g*delz/32.2/778; Q2=W2+PE+mair*delu; disp(Q2,"Heat transferred in Btu") clear()
fa0507224efe61ba9fa815423999d6b4db8901d0
449d555969bfd7befe906877abab098c6e63a0e8
/1586/CH17/EX17.3/EX17_3.sce
9ecc54af444741f4286eb8c02294ce4010f6c780
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
435
sce
EX17_3.sce
clc;funcprot(0);//EXAMPLE 17.3 // Initialisation of Variables rho1=19.3;...........//Density of pure Tungsten in g/cm^3 rho2=10.49;............//Density of pure Silver in g/cm^3 f1=0.75;..............//Volume fraction of Tungsten f2=0.25;...........//Volume fraction of Silver and pores //Calculations per=((f2*rho2)/((f2*rho2)+(f1*rho1)))*100;.........//Percentage weight of silver disp(per,"Percentage Weight of Silver:")
88f2a66bb8d3cc5d631615a6f80e1ac079d4be73
449d555969bfd7befe906877abab098c6e63a0e8
/2777/CH6/EX6.9/Ex6_9.sce
a20cbc0c42d079846a246d53a69c58568f4594e4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
5,190
sce
Ex6_9.sce
// ELECTRICAL MACHINES // R.K.Srivastava // First Impression 2011 // CENGAGE LEARNING INDIA PVT. LTD // CHAPTER : 6 : SYNCHRONOUS MACHINES // EXAMPLE : 6.9 clear ; clc ; close ; // Clear the work space and console // GIVEN DATA printf("\n EXAMPLE : 6.9 : \n\n Given Data \n"); printf("\n Voc(kV) 10 10.80 11.50 12.10 12.60 13 14 14.50 14.80 \n"); printf("\n If(A) 175 200 225 250 275 300 400 450 500 \n\n"); p = 6; // Total number of Poles of Alternator V = 11*10^3; // Operating voltage of the Alternator in Volts N = 1500; // speed of the Alternator in RPM Ia_scc = 2099; // SCC test Armature current in Amphere at If = 200 A If_scc = 200; // SCC test field Rated current in Amphere Ia_pt = 2099; // Pottier test Armature current in Amphere at If = 450 A If_pt = 450; // Pottier test field Rated current in Amphere VA = 40*10^6; // VA rating of the Alternator in Volts-Amphere f = 50; // Operating Frequency of the Alternator in Hertz pf = 0.8; // Power factor (lagging) // CALCULATIONS // Some of the data obtained from OCC and SCC test Graph or Pottier triangle in Figure6.24 & Page no:-407 v = V/sqrt(3); // Rated phase Voltage in Volts I = VA/(sqrt(3)*V); // Full-load phase current in Amphere Xl = 0.4481; // Leakage reactance in Ohms From OCC and SCC test Graph or Pottier triangle in Figure6.24 & Page no:-407 // For Case(a) General Method pfa_a = acosd(pf); // Power factor angle in degree Er_a = (V/sqrt(3))+(Ia_scc*(cosd(pfa_a)-%i*sind(pfa_a))*Xl); // Induced Voltage in Volts R_a = 208.4; A_a = 200; //From OCC the field current required for Er_a (Should be in Line-line Voltage) Er_a = 11043.66 V will get R_a & A_a value Respectively from SCC (Figure6.24 & Page no:-407) angle_a = 131.93; // Angle between R_a & A_a (Figure6.25(a) & Page no:-408) = 90'+5.06'+36.87' = 131.93' F_a = sqrt((R_a^2)+(A_a^2)-(2*R_a*A_a*cosd(angle_a))); // From phasor diagram in figure 6.25(a) & Page no:-408 the neccessary field excitation in Amphere Eo_a = 13720; // Corresponding to field current, F_a = 373 A the open circuit EMF from OCC is 560 V (Figure6.15 & Page no:-386) r_a = 100*((Eo_a-V)/V); // Percentage regulation // For Case (b) ASA Method pfa_b = acosd(pf); // Power factor angle in degree Er_b = (V/sqrt(3))+Ia_scc*(cosd(pfa_b)-%i*sind(pfa_b))*Xl; // Induced Voltage in Volts R_b = 160; A_b = 200; //From OCC the field current required for Er_b (Should be in Line-line Voltage) Er_b = 11043.66 V will get R_b & A_b value Respectively from SCC (Figure6.24 & Page no:-407) angle_b = 126.87; // Angle between R_b2 & A_b2 (Figure6.22b & Page no:-403) = 90'+36.87' = 126.87' F_b = sqrt((R_b^2)+(A_b^2)-(2*R_b*A_b*cosd(angle_b))); // From phasor diagram in figure 6.25(b) & Page no:-408 the neccessary field excitation in Amphere Eo_b = 13660; // Corresponding to field current ( OF'=OF+FF') F_b = 337.88+15.38=337.88 A the open circuit EMF from OCC is 13660 V (Figure6.15 & Page no:-386) r_b = 100*((Eo_b-V)/V); // Percentage regulation // DISPLAY RESULTS disp(" SOLUTION :-"); printf("\n For Case (a) General(ZPF) Method \n Induced EMF, EMF = %.f < %.2f V \n",abs(Er_a),atand(imag(Er_a),real(Er_a))) printf("\n Percenatge Regulation, R = %.2f Percenatge \n",r_a) printf("\n For Case (b) ASA Method \n Induced EMF, EMF = %.f < %.2f V \n",abs(Er_b),atand(imag(Er_b),real(Er_b))) printf("\n Percenatge Regulation, R = %.2f Percenatge \n",r_b) printf("\n\n [ TEXT BOOK SOLUTION IS PRINTED WRONGLY ( I verified by manual calculation )]\n" ); printf("\n WRONGLY PRINTED ANSWERS ARE :- For Case (a) General(ZPF) Method (a) Induced EMF = 6376<-5.07 degree instead of %.f < %.2f \n ",abs(Er_a),atand(imag(Er_a),real(Er_a))) printf("\n For Case (b) ASA Method (a) Induced EMF = 6376<-5.07 degree instead of %.f < %.2f \n\n ",abs(Er_b),atand(imag(Er_b),real(Er_b))) printf(" CALCULATION OF THE POWER ANGLE IS NOT CALCULATED IN THE TEXT BOOK FOR THIS PROBLEM\n ") printf("\n INDUCED EMF AND PERCENTAGE REGULATION IS APPROXIMATED VALUE BECACUSE IN THE TEXT BOOK, CALCULATED INDUCED EMF IS WRONGLY PRINTED")
1701d6af2770dc1d330c032c2574ed38fe2ca5f0
449d555969bfd7befe906877abab098c6e63a0e8
/3841/CH5/EX5.5/Ex5_5.sce
b189b0e06273dd198916c256e1f954eed0756fb3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
299
sce
Ex5_5.sce
clear //given // //find the final pressure gage and convert absloute temperature to normal temprature a=210. t=160. t2=60. //absloute temperature to convert is 460 AT=160.+460. AT1=60.+460. IP=210.+14.7 FP=IP*(520./620.) printf("\n FP") FPg=(FP-14.7) printf("\n \n final pressue gage is %.2f ",FPg)
282cdb66e494bc6a0072b9e2ad8ba6df272c55b4
449d555969bfd7befe906877abab098c6e63a0e8
/2132/CH7/EX7.14.a/Example7_14_page_250.sce
fbf5274658c2429d59f8ba16241b39b66785a8aa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
454
sce
Example7_14_page_250.sce
////Example 7.14 at page no. 250 clc; clear; close; format('v',6); //Given data : g=9.81;//gravity constant l=4;//km n=5000;//habitants Ch=200;//litres/day(habitant capacity) t=10;//hour(daiy supply time) hf=20;//meter(Head loss) f=0.008;//coeff. of friction Qty=n*Ch/2;//litres(Water supplied in 10 hours) Q=Qty/(t*60*60);//litres/sec Q=Q/1000;//m^3/sec d=(f*l*1000*Q^2/3.0257/hf)^(1/5);//meter disp(d*1000,"Diameter of pipe(mm) : ");
a6cd578369fe795bb858d7ff4427b56f831163a3
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
/sci2blif/sci2blif_added_blocks/HH_RG.sce
ac643bce5585b0549a15a7a231720b15022a687b
[]
no_license
jhasler/rasp30
9a7c2431d56c879a18b50c2d43e487d413ceccb0
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
refs/heads/master
2023-05-25T08:21:31.003675
2023-05-11T16:19:59
2023-05-11T16:19:59
62,917,238
3
3
null
null
null
null
UTF-8
Scilab
false
false
3,439
sce
HH_RG.sce
//**************************** HH_RG ********************************** if (blk_name.entries(bl) == "HH_RG") then mputl("#HH_RG",fd_w); for ss=1:scs_m.objs(bl).model.ipar(1) HH_RG_str= '.subckt HH_RG'+' in[0]=net'+string(blk(blk_objs(bl),2))+'_'+string(ss)+' in[1]=net'+string(blk(blk_objs(bl),3))+'_'+string(ss)+' in[2]=net'+string(blk(blk_objs(bl),4))+'_'+string(ss)+' in[3]=net'+string(blk(blk_objs(bl),5))+'_'+string(ss)+' in[4]=net'+string(blk(blk_objs(bl),6))+'_'+string(ss)+' out[0]=net'+string(blk(blk_objs(bl),2+numofip))+'_'+string(ss)+' out[1]=net'+string(blk(blk_objs(bl),3+numofip))+'_'+string(ss)+' #HH_RG_ls =0'+'&HH_RG_Nafb_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(1-1)+ss)))+'&HH_RG_in0_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(2-1)+ss)))+'&HH_RG_pfet_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(3-1)+ss)))+'&HH_RG_nmr_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(4-1)+ss)))+'&HH_RG_Na_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(5-1)+ss)))+'&HH_RG_Na_pbias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(6-1)+ss)))+'&HH_RG_Na_nbias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(7-1)+ss)))+'&HH_RG_K_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(8-1)+ss)))+'&HH_RG_K_pbias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(9-1)+ss)))+'&HH_RG_K_nbias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(10-1)+ss)))+'&HH_RG_buf_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(11-1)+ss)))+'&HH_RG_comp_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(12-1)+ss))) if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(13-1)+ss) == 1 then HH_RG_str=HH_RG_str+'&HH_RG_cap0_1x_cs =0'; end if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(13-1)+ss) == 2 then HH_RG_str=HH_RG_str+'&HH_RG_cap0_2x_cs =0'; end if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(13-1)+ss) == 3 then HH_RG_str=HH_RG_str+'&HH_RG_cap0_1x_cs =0'+'&HH_RG_cap0_2x_cs =0'; end if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(13-1)+ss) == 4 then HH_RG_str=HH_RG_str+'&HH_RG_cap0_4x_cs =0'; end if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(13-1)+ss) == 5 then HH_RG_str=HH_RG_str+'&HH_RG_cap0_1x_cs =0'+'&HH_RG_cap0_4x_cs =0'; end if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(13-1)+ss) == 6 then HH_RG_str=HH_RG_str+'&HH_RG_cap0_2x_cs =0'+'&HH_RG_cap0_4x_cs =0'; end if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(13-1)+ss) == 7 then HH_RG_str=HH_RG_str+'&HH_RG_cap0_1x_cs =0'+'&HH_RG_cap0_2x_cs =0'+'&HH_RG_cap0_4x_cs =0'; end mputl(HH_RG_str,fd_w); mputl("",fd_w); if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(14-1)+1) == 1 then plcvpr = %t; plcloc=[plcloc;'net'+string(blk(blk_objs(bl),2+numofip))+'_'+string(ss),string(scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(14-1)+1+2*ss-1))+' '+string(scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(14-1)+1+2*ss))+' 0']; end end end
a84d5a91502d277f8b392b44787b2327c11df425
449d555969bfd7befe906877abab098c6e63a0e8
/767/CH5/EX5.6.2/Ch05Exa5_6_2.sci
4176bf6f0cddad864166f139fda724e0ab37b43b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,140
sci
Ch05Exa5_6_2.sci
// Scilab code Exa5.6.2: To calculate the kinetic energy of photoelectron and rate at which photoelectron emitted : P.no. 231 (2011) C = 3e+08; // Speed of light, m/s h = 6.626e-034; // Planck's constant, Js lambda = 250e-09; // Wavelength of light, m w = 2.30; // Work function, eV A = 2e-04; // Area of the surface, m^2 I = 2; // Intensity of light, W/m^2 e = 1.6e-019; // Charge of the electron, C E_p = h*C/(lambda*e); // Energy of photoelectron, eV E_max = E_p-w; // Maximum kinetic energy of photoelectron, eV n_p = I*A/(E_p*e); // Number of photons reaching the surface per second, photons/s R_p = 0.2/100*n_p; // Rate at which photoelectrons are emitted, photoelectrons/s printf("\n The maximum kinetic energy = %4.2f eV \n The rate at which photoelectrons are emitted = %4.2e photoelectrons/s ", E_max, R_p) // Result // The maximum kinetic energy = 2.67 eV // The rate at which photoelectrons are emitted = 1.01e+012 photoelectrons/s
9b7b1cd76445f51ebc329769d0d6259e2b88816b
676ffceabdfe022b6381807def2ea401302430ac
/utilities/NekMesh/Tests/StarTec/spherigon_bl_straight_rw.tst
5f595716a22afb14d0606813b4415ec544dfbbad
[ "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
844
tst
spherigon_bl_straight_rw.tst
<?xml version="1.0" encoding="utf-8"?> <test> <description> NekMesh with Spherigons and variable Boundary Layer </description> <executable>NekMesh</executable> <parameters> -m spherigon:surf=10:surf=13 -m spherigon:surf=8:surf=9 -m bl:surf=3,10,13:layers=4:r="1.7*( 1-x/0.3 )+1":nq=7 -m bl:surf=2,8,9:layers=4:r="1.7*(1-(x-0.27)/0.078)+1":nq=7 -m jac:list spherigon_bl_straight_rw.dat spherigon_bl_straight_rw-out.xml:xml:test </parameters> <files> <file description="Input File">spherigon_bl_straight_rw.dat</file> </files> <metrics> <metric type="regex" id="1"> <regex>.*Total negative Jacobians: (\d+)</regex> <matches> <match> <field id="0">0</field> </match> </matches> </metric> </metrics> </test>
3a8f264147b325dc7f40e22239e5a7e80ddfb989
63d888492eb5760997d28f7e464620ab560589cc
/DataStoreTest/Src/C#/Level_4F/Level_4F/DataStore.tst
86f8ba7804b4e943eef48544e2a4227f6842e82c
[]
no_license
Samraksh/TestSuite
ef4ea58b7bf844d6263d52ad2a4fe2d91852bf48
5a2ad0157ff878e9460fc85d222191ce7dcd595f
refs/heads/master
2022-10-28T22:51:33.354774
2020-03-10T18:29:06
2020-03-10T18:29:06
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
149
tst
DataStore.tst
COM_receive file enable testTemp\test_results.txt sleep 10000 COM_send string start sleep 100000 COM_receive file disable testTemp\test_results.txt
f86060c6e5643ffd05cdea836bf3a0ee25c7539a
59b742e36fbe9d77cb51ec949c6625f665133d2b
/Resultados/results_LocGlo_11/results/11/g20-4/result3s0.tst
7d3f2230393852b50bfc5f4a8886c83847cbb98c
[]
no_license
Tiburtzio/TFG
3132fd045de3a0e911e2c9e23e9c46e1075a3274
864ce4dd00b7f8fe90eafa65b11d799c5907177e
refs/heads/master
2023-01-03T12:44:56.269655
2020-10-24T18:37:02
2020-10-24T18:37:02
275,638,403
0
0
null
null
null
null
UTF-8
Scilab
false
false
940
tst
result3s0.tst
@relation unknow @attribute height real[1.0,804.0] @attribute lenght real[1.0,553.0] @attribute area real[7.0,143993.0] @attribute eccen real[0.007,537.0] @attribute p_black real[0.052,1.0] @attribute p_and real[0.062,1.0] @attribute mean_tr real[1.0,4955.0] @attribute blackpix real[1.0,33017.0] @attribute blackand real[7.0,46133.0] @attribute wb_trans real[1.0,3212.0] @attribute class{1,2,4,5,3} @inputs height,lenght,area,eccen,p_black,p_and,mean_tr,blackpix,blackand,wb_trans @outputs class @data 1 1 1 1 1 1 2 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 2 2 1 1 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 1 1 1 1 1 5 1 1 1 1 1 1 1 1 1 2 2 2 1 1 1 4 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 2 1
138fa7497551e03664b20b176a10615a0dc87336
449d555969bfd7befe906877abab098c6e63a0e8
/3392/CH4/EX4.1/Ex4_1.sce
5413583db39711432953a53ff54e71656b6605af
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,129
sce
Ex4_1.sce
clc // initialization of variables clear P=170 //kN A=645 // (mm)^2 // part (a) E=211.4 // G Pa (from figure) Y=252.6 // M Pa (from figure) Beta=0.0799 // G Pa (from figure) Ey=Y/E // The stress strain law given is // Sigma= E*eps for eps< Ey // Sigma= (1-Beta)*Y + Beta*E*eps otherwise // part (b) th=atan(1.8/2.4)// radians F=P/(2*cos(th)) F=F*10^3 //N A=A*10^-6 //m^2 E=E*10^9 //Pa Y=Y*10^6 //Pa L=3.0 //m Sigma=F/A if(Sigma<Y) eps=Sigma/E else eps=(Sigma-(1-Beta)*Y )/(Beta*E) end u=eps*L/cos(th) u=u*10^3 //mm // results printf('part (b)\n') printf(' Deflection = %.3f mm',u) // part (c) P=270 //kN F=P/(2*cos(th)) F=F*10^3 //N Sigma=F/A if(Sigma<Y) eps=Sigma/E else eps=(Sigma-(1-Beta)*Y )/(Beta*E) end u=eps*L/cos(th) u=u*10^3 //mm // results printf('\n part (c)\n') printf(' Deflection = %.3f mm for P = %.d kN',u,P) P=300 //kN F=P/(2*cos(th)) F=F*10^3 //N Sigma=F/A if(Sigma<Y) eps=Sigma/E else eps=(Sigma-(1-Beta)*Y )/(Beta*E) end u=eps*L/cos(th) u=u*10^3 //mm // results printf('\n Deflection = %.3f mm for P = %.d kN',u,P)
20880176b97f24cb6bfba473535e510918bda919
449d555969bfd7befe906877abab098c6e63a0e8
/2201/CH9/EX9.36/ex9_36.sce
582a1cca1f179670202405559887815c4a48d73b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
384
sce
ex9_36.sce
// Exa 9.36 clc; clear; close; // Given data V_GSth= 2;// in V k= 2*10^-4;// in A/V^2 V_DD= 12;// in V R_D= 5*10^3;// in ohm I_D= poly(0,'I_D'); V_DS= V_DD-I_D*R_D;// in V I_D= I_D-k*(V_DS-V_GSth)^2; I_D= roots(I_D);// in A I_D= I_D(2);// in A V_DS= V_DD-I_D*R_D;// in V disp(I_D*10^3,"The value of I_D in mA is : ") disp(V_DS,"The value of V_DS in volts is : ")
02baaef85646ef6f4a64b366f5ba34ab8fbebd51
449d555969bfd7befe906877abab098c6e63a0e8
/1472/CH8/EX8.2/8_2.sce
c2d8ce0f3fd6ea3627bae4fede051780531d4303
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
167
sce
8_2.sce
clc //initialization of varaibles T1=1050+460//R T2=90+460 //R //calculations eta=(T1-T2)/T1 //results printf("Max. possible efficiency = %d percent",eta*100)
782022429c5eeecfec0d7de0e8e601d1825eba8f
449d555969bfd7befe906877abab098c6e63a0e8
/569/CH3/EX3.18/3_18.sci
bbd464582c5813d00e352d87f245b222cfd2ffb1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
sci
3_18.sci
// Calculate apparent resistance, actual resistance and error clc; Et=100; It=5*10^-3; Rt=Et/It; disp(Rt,'apparent value of resistance (ohm)=') Rv=1000*150; Rx=Rt*Rv/(Rv-Rt); disp(Rx,'true value of resistance(ohm)') Er_percentage=[(Rt-Rx)/Rx]*100; disp(Er_percentage,'percentage error=')
55e6e4908d2f27e2645ae7fc721970dd21fce644
93640402789b9a9d07c82958f433765f1e2a8397
/part 1/Mux4.tst
a862071e0c2d13e29dbca10fe8416ef25caa2c5c
[]
no_license
Slayingripper/Z80-CPU
7a6b71f9e59850c3d4492a7f1867f4e81be278ba
451873966cf071f8088407300629994a8d33f13c
refs/heads/master
2020-05-04T02:42:27.419333
2019-04-01T19:27:22
2019-04-01T19:27:22
178,932,396
0
0
null
null
null
null
UTF-8
Scilab
false
false
729
tst
Mux4.tst
// This file is adapted from part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. load Mux4.hdl, output-file Mux4.out, compare-to Mux4.cmp, output-list a%B1.4.1 b%B1.4.1 sel%D2.1.2 out%B1.4.1; set a 0, set b 0, set sel 0, eval, output; set sel 1, eval, output; set a %B0000, set b %B0101, set sel 0, eval, output; set sel 1, eval, output; set a %B0000, set b %B0110, set sel 0, eval, output; set sel 1, eval, output; set a %B1010, set b %B0000, set sel 0, eval, output; set sel 1, eval, output; set a %B0101, set b %B0000, set sel 0, eval, output; set sel 1, eval, output; set a %B1010, set b %B0101, set sel 0, eval, output; set sel 1, eval, output;
cddc8d9727be4f58e5cd01231783bbc720becc1c
449d555969bfd7befe906877abab098c6e63a0e8
/3751/CH5/EX5.1/Ex5_1.sce
b024b2fc8fb1c0afbb244f7334260a928c5446ab
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
813
sce
Ex5_1.sce
//Fluid Systems- By Shiv Kumar //Chapter 5- Francis Turbine //Example 5.1 //To Find (a)Discharge passing through the Runner and (b) Width of Runner at Outlet clc clear //Given Data:- Do=0.8; //External Diameter of the Runner, m Di=0.4; //Internal Diameter of the Runner, m Vfi=1.4; //Velocity of Flow at Inlet, m/s Vfo=Vfi; //Velocity of Flow at Outlet, m/s bo=210; //Width of Runner at Inlet, mm //Computations:- Q=%pi*Do*(bo/1000)*Vfi; //Discharge passing through the Runner, m^3/s bi=Do*bo/Di; //Width of Runner at Outlet, mm //Results printf("(a)Discharge passing through the Runner, Q=%.4f m^3/s\n",Q) //The Answer Vary due to Round off Error printf("(b)Width of Runner at Outlet, bi=%.f mm",bi)
7c8f0ae9e5ea0603d1b1c6ba56d8a740758db1dd
449d555969bfd7befe906877abab098c6e63a0e8
/1226/CH20/EX20.29/EX20_29.sce
123f65265d0fc4587e0514edd298d1d2ac375be2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,380
sce
EX20_29.sce
clc;funcprot(0);//EXAMPLE 20.29 // Initialisation of Variables ns=3;........//No of stages N=200;.......//Compressor rpm p1=1;.......//Intake pressure in bar t1=20+273;....//Intake temperature in K D=0.35;......//Engine bore in m L=0.4;.......//Engine stroke in m p2=4;........//Discharge pressure from first stage in bar p6=16;........//Discharge pressure from second stage in bar p10=64;........//Discharge pressure from third stage in bar pd=0.2;........//Loss of pressure between intercoolers in bar R=0.287;......//Gas constant in kJ/kgK k=0.04;.......//Clearence volume in 4% of the stroke volume n1=1.2;.....//Compressor index for first stage n2=1.25;.....//Compressor index for second stage n3=1.3;.....//Compressor index for third stage cp=1.005;......//Specific heat at constant pressure in kJ/kgK etamech=0.8;.....//Mechanical efficiency //Calculations p5=p2-pd;p9=p6-pd;t5=t1;t9=t1; Vs=(%pi/4)*D*D*L*N*2;............//Swept volume of low pressure cylinder per min in m^3 etav1=(1+k)-(k*((p2/p1)^(1/n1)));.....//Volumetric efficiency in first stage etav2=(1+k)-(k*((p6/p5)^(1/n2)));.....//Volumetric efficiency in second stage etav3=(1+k)-(k*((p10/p9)^(1/n3)));.....//Volumetric efficiency in third stage vain1=Vs*etav1;.................//Volume of air taken in first stage in m^3/min m=(p1*10^5)*vain1/(R*t1*1000);...........//Mass of air intake in kg/min in first stage t2=round(t1*((p2/p1)^((n1-1)/n1))); t6=t5*((p6/p5)^((n2-1)/n2)); t10=t9*((p10/p9)^((n3-1)/n3)); Qr1=m*cp*(t2-t5);........//Heat rejected in intercooler after first stage in kJ/min Qr2=m*cp*(t6-t9);........//Heat rejected in intercooler after second stage in kJ/min Qr3=m*cp*(t10-t1);........//Heat rejected in intercooler after third stage in kJ/min disp(Qr1,"Heat rejected in intercooler after first stage in kJ/min:") disp(Qr2,"Heat rejected in intercooler after second stage in kJ/min:") disp(Qr3,"Heat rejected in intercooler after third stage in kJ/min:") vainip=m*R*t5*1000/(p5*10^5);.........//Volume drawn in intermediate pressure cylinder/min Vsip=vainip/etav2;.............//Swept volume of intermediate cylinder in m^3/min Dip=sqrt(Vsip/(2*N*L*(%pi/4)));............//Diameter of the intermediate cylinder in m disp(Dip*1000,"Diameter of the intermediate cylinder in mm:") vainhp=m*R*t9*1000/(p9*10^5);.........//Volume drawn in high pressure cylinder/min Vshp=vainhp/etav3;.............//Swept volume of high pressure cylinder in m^3/min Dhp=sqrt(Vshp/(2*N*L*(%pi/4)));............//Diameter of the intermediate cylinder in m disp(Dhp*1000,"Diameter of the intermediate cylinder in mm:") Ps=[{(n1/(n1-1))*m*R*(t2-t1)}+{(n2/(n2-1))*m*R*(t6-t5)}+{(n3/(n3-1))*m*R*(t10-t9)}]*(1/(60*etamech));...//Shaft power in kW disp(Ps,"Shaft power in kW:") cv=cp-R;..........//Specific heat at constant volume in kJ/kgK ga=cp/cv;...........//Ratio of specific heats Qt1=cv*((ga-n1)/(ga-1))*(t2-t1)*m;............//Heat transfer during first stage in kJ/min Qt2=cv*((ga-n2)/(ga-1))*(t6-t1)*m;............//Heat transfer during second stage in kJ/min Qt3=cv*((ga-n3)/(ga-1))*(t10-t1)*m;............//Heat transfer during third stage in kJ/min printf("\nHeat transferred during first stage in kJ/min: %f\n",Qt1) printf("\nHeat transferred during second stage in kJ/min: %f\n",Qt2) printf("\nHeat transferred during third stage in kJ/min: %f\n",Qt3)
aaef3dc3c092456375af3f5aae61732612c008a4
449d555969bfd7befe906877abab098c6e63a0e8
/2522/CH7/EX7.6/exm7_6.sce
636d57ab3b55c93bf1d50ed2b837f0a73b7c04de
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
719
sce
exm7_6.sce
//page no 228 //example no 7.6 // ARITHEMETIC OPERATIONS. clc; disp('A-->30H'); disp('2040H-->68H'); disp('2041H-->7FH'); disp('LXI H,2040H'); // loads HL register pair. disp('H=20H L=40H M=68H'); disp('ADD M'); A=hex2dec(['30']); M=hex2dec(['68']); S=A+M; // adds the contents of A and data at memory location 2040H. s=dec2hex(S); printf('\n Content of A after addition with 2040H= '); disp(s); disp('INX H'); // takes the program to the next memory location. disp('H=20H L=41H M=7FH'); disp('SUB M'); M=hex2dec(['7F']); D=S-M; // subtracts the contents of A from the data at memory location 2041H. d=dec2hex(D); printf('\n Content of A after subtraction with 2041H= '); disp(d);
ac70c8661307ad06c563848150a8fe8cd9858939
449d555969bfd7befe906877abab098c6e63a0e8
/45/CH14/EX14.1/example_14_1.sce
d3ef4d09411d65f47dc0fc666d07f2425d5d8f14
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
549
sce
example_14_1.sce
//example 14.1 clc; clear; close; vdc = input('Enter the value of DC voltage Vdc in volts :'); r = input('Enter the value of resistace in K ohms :'); v = input(' Enter the value of voltage across diode in volts :'); i = (vdc-v)/r ; format('v',4); if(i>0) // checking whether the diode is forward or reverse biased by checking current disp('The diode is in forward bias'); disp('The diode current in mA is :'); disp(i); else disp('The diode is in Reverse bias'); disp('The diode current in mA is : 0.0'); end;
447da4948c2b9e6d1d24d688098ca2fa50ec7892
449d555969bfd7befe906877abab098c6e63a0e8
/3718/CH13/EX13.10/Ex13_10.sce
a5f39ba2dccfbc1bf6f518372750519813080d48
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
399
sce
Ex13_10.sce
//Chapter 13: Fuel and Combustions //Problem: 10 clc; //Declaration of Variables H = 0.30 // metre cube CO = 0.10 // metre cube CH4 = 0.04 // metre cube N2 = 0.56 // metre cube // Solution vol_o = H * 0.5 + CO * 0.5 + CH4 * 2 vol_a = vol_o * 100 / 21 mprintf("Volumer of air required for complete combustion of 1 metre cube of producer gas: %.3f metre cube",vol_a)
1c94e8f3f3cca927a17d04efa130f17c3965e49a
449d555969bfd7befe906877abab098c6e63a0e8
/686/CH1/EX1.3/Ex1_3.sci
7c960e7a78317df9fb9062ae61eae573708489bd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,340
sci
Ex1_3.sci
clc(); clear; // To calculate the size of heating surface m1 = 100; // Flow rate of water in lb/hr ta1 = 50; // Initial temperature of water in F ta2 = 170; // Final temperature of water Cp1 = 1; // Heat capacity of water in Btu/lb-F te1 = 330; // Initial temperatutre in flue gases in F m2 = 400; // Mass flow rate of flue gases in lb/hr Cp2 = .25; // Heat capacity of flue gases in Btu/lb-F q = m1*Cp1*(ta2-ta1); // Heat absorbed by water in Btu te2 = te1-q/(m2*Cp2); // Final temperature of flue gases in F U = 20; // Overall heat transfer in Btu/hr-ft^2-F // For parallel flow delte = te1-ta1; // Flue tempearture difference in F delta = te2-ta2; // Water temperature difference in F // Seeing the value of delte/delta=7, we can attain the value of a a1 = 0.77; deltm = (delte + delta)/2; // Arithmetic mean in F LMTD1 = a1*deltm; // Log mean temperature diffference A1 = q/(U*LMTD1); // Area in ft^2 printf("The area of heat exchanger for parallel flow is %.2f ft^2 \n ",A1); // for counterflow delte = te1-te2; // Flue tempearture difference in F delta = ta1-ta2; // Water temperature difference in F // Seeing the value of delte/dela=1, a=1. a2 = 1; LMTD2 = a2*deltm; // Log mean temperature diffference A2 = q/(U*LMTD2); // Area in ft^2 printf("The area of heat exchanger for counterflow flow is %.2f ft^2 \n ",A2); // For cross flow delte = te1-ta1; // Flue tempearture difference in F delta = te2-ta2; // Water temperature difference in F // Seeing the value of delta/delte=0.143, we can attain the value of a=0.939 a3 = 0.939; deltm = (delte + delta)/2; // Arithmetic mean in F LMTD3 = a3*deltm; // Log mean temperature diffference A3 = q/(U*LMTD3); // Area in ft^2 printf("The area of heat exchanger for cross flow is %.2f ft^2 \n ",A3);
f70b36e9fdb328a133f12d8076be865864f62d6c
3592fbcb99d08024f46089ba28a6123aeb81ff3c
/main/saturation.sce
d1f48228ae38d82ec30d6d15c40ccb1389eed027
[]
no_license
clairedune/sciGaitanLib
a29ab61206b726c6f0ac36785ea556adc9ef03b9
7498b0d707a24c170fc390f7413359ad1bfefe9f
refs/heads/master
2020-12-11T01:51:13.640472
2015-01-28T13:52:26
2015-01-28T13:52:26
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
309
sce
saturation.sce
vitesse = [1,2,3]; vmax = [0.5, 0.5, 0.1]; dv = 0.05*vmax; vinf = 0.95*vmax; vsup = 1.05*vmax; fac = 1; for i=1:3 absVel =abs(vitesse(i)); fac = min(abs(fac),vmax(i)/(absVel+%eps)); disp(fac); end // for i=1:3 vitesse=fac*vitesse; // end disp(vitesse);
7d3a1877fc0c5ef96bf522c988f3fa1979eefc7d
449d555969bfd7befe906877abab098c6e63a0e8
/3050/CH1/EX1.4/Ex1_4.sce
488769129932b3d7a03088768b47025866fcc85a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,041
sce
Ex1_4.sce
//calculating hardness //Example 1.4 clc clear //For Ca(HCO3)2, q1=40.5//quantity wt1=162//molecular weight M1=100/wt1//multiplication factor Eq1=M1*q1//CaCO3 equivalents in mg/L //For Mg(HCO3)2, q2=46.5//quantity wt2=146//molecular weight M2=100/wt2//multiplication factor Eq2=M2*q2//CaCO3 equivalents in mg/L //For MgSO4, q3=27.6//quantity wt3=120//molecular weight M3=100/wt3//multiplication factor Eq3=M3*q3//CaCO3 equivalents in mg/L //For CaSO4, q4=32.1//quantity wt4=136//molecular weight M4=100/wt4//multiplication factor Eq4=M4*q4//CaCO3 equivalents in mg/L //For CaCl2 q5=22.45//quantity wt5=111//molecular weight M5=100/wt5//multiplication factor Eq5=M5*q5//CaCO3 equivalents in mg/L Th=Eq1+Eq2//Temperory hardness due to Mg(HCO3)2 and Ca(HCO3)2 Ph=Eq3+Eq4+Eq5//Permanent hardness due to CaSO4 and MgSO4 and CaCl2 T=Th+Ph//Total hardness printf('Thus in Temporary hardness = %2.2f mg/L',Th) printf('\n and permanent hardness = %2.2f mg/L',Ph) printf('\n and total hardness = %3.2f mg/L',T)
d6ef6d0d5108a5538e06bc8030acf749a5a9def9
449d555969bfd7befe906877abab098c6e63a0e8
/1055/CH21/EX21.1/ch21.sce
d9f058496299f75792231d09b2f9e1c720ea98cd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
642
sce
ch21.sce
//Determine the load bus voltage clear clc; load1=10+%i*15;//load per phase(MVA) SCC=250/3; V=11/sqrt(3); P=30; Q=45; Z=(11/sqrt(3))^2/(250/3);//Equivalent short circuit impedence dsc=atand(5); R=.0949; X=.4746; //Using equation: V^2= (Vcosd+PR/V)^2 + (Vsind+QX/V)^2, we get y=poly([51.7 0 -27.5 0 1],'V','c'); disp(y,"we get equation :"); X=roots(y); disp(X,"Roots of above equation are "); V=5.046; mprintf("V=%.3f\n",V); dV=6.35-V; Ssc=250; //using expression ,a=dV/v=1(Pcos(dsc)+Qsin(dsc))/Ssc +j(Psin(dsc)-Qcos(dsc))/Ssc a=(P*cosd(dsc)+Q*sind(dsc))/Ssc +%i*(P*sind(dsc)-Q*cosd(dsc))/Ssc; disp(abs(a),"dV/V= ");
2a1203390e505c15227febc64e3728408eca1e91
449d555969bfd7befe906877abab098c6e63a0e8
/2837/CH22/EX22.3/Ex22_3.sce
3f83045df33ae83fae68d701d75bcfc54ecbd9ca
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
357
sce
Ex22_3.sce
clc clear //Initalization of variables h1=24.973 //Btu/lb h2=81.436 //Btu/lb cfm=200 //cfm v2=0.77357 v3=3.8750 h4=72.913 //calculations mass=cfm/v2 ref=h2-h1 tonnage=mass*ref/cfm mass2=cfm/v3 ref2=h4-h1 tonnage2=mass2*ref2/cfm //results printf("In case 1,Tonnage = %.1f tons",tonnage) printf("\n In case 2,Tonnage = %.2f tons",tonnage2)
70ad0676cceda2552637b7224bec4568a30b8cdd
9d545f988a80789144df937ce4a90017c378cb92
/Lab09/sintry.sce
f9e8039ccd4ff80970eb146f8589fb331819f799
[]
no_license
tshrjn/EE304P
215dc669daaf372242afe2c1f580a36df26e51ce
ac1c045262dd0b419354d2d22861c734508b7b8e
refs/heads/master
2021-01-10T03:02:18.270276
2015-12-01T02:42:16
2015-12-01T02:42:16
46,113,211
1
0
null
null
null
null
UTF-8
Scilab
false
false
650
sce
sintry.sce
//xq(find(((q(i)-d/2)<= xq)&(xq<=(q(i)+d/2)))) = // q(i).*ones(1,length(find(((q(i)-d/2)<=xq)&(xq<=(q(i)+d/2))))); // en_code(find(xq == q(i)))= (i-1).*ones(1,length(find(xq == q(i)))); fs = 10000; fm = 100; time = [0: 1.0/fs : 2.0/fm]; //plot(sin(2*%pi*fm*time)); //plot(time); n = 8 ; del = 0.586; input = (3.5*del)*(sin(2*%pi*fm*time) function ql = quant8(x) xmax = max(abs(x)); xq = x / xmax; // d = 2/n q = del*[0,n-1]; q = q-((n-1)/2)*d; for i = 1:len(x) // end // q = q-((L-1)/2)*d; for i = 1:len(x) if (x(i)< ) then end end endfunction
84e78a8352aaf8b253ac3d9ecbf9611e287d78fe
449d555969bfd7befe906877abab098c6e63a0e8
/1067/CH45/EX45.B.6/45_B_6.sce
8f9010d71fa2cb3a2a47bca2bfef25ad21778f17
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
389
sce
45_B_6.sce
clear; clc; n1=.89; h1=150; c1=.9; h2=200; n2=.9; c2=.8; h3=500; n3=.93; c3=.707; p4=100; p1=h1*.746/n1; p2=h2*.746/n2; p3=h3*.746/n3; rr1=p1*(tan(acos(c1))); rr2=p2*(tan(acos(c2))); rr3=p3*(tan(acos(c3))); rr4=0; rr=rr1+rr2-rr3+rr4; p=p1+p2+p3+p4; c=rr/p; j=cos(atan(c)); j=round(j*1000)/1000; printf("the Power Factor of the combined sub-station=%f leading",j);