blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50
values | src_encoding stringclasses 23
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 5 10.4M | extension stringclasses 29
values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b384d405404a42c53e325e78d056f6f977143292 | 449d555969bfd7befe906877abab098c6e63a0e8 | /409/CH26/EX26.4/Example26_4.sce | 0fff42d68bdc6a52baf4cd7805d9953a6cbef5b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,214 | sce | Example26_4.sce | clear;
clc;
// Example 26.4
printf('Example 26.4\n\n');
//page no. 815
// Solution Fig E26.4b
// Given
SO2_in = 2200 ;// Amount of SO2 entering reactor 2-[lb mol/hr]
// Basis : 1 lb mol CO entering reactor 1,therefore
R1_CO_in = 1 ;//CO entering reactor 1-[lb mol]
air = .80 ;// Fraction of air used in burning
// System- reactor 2
// Given
R2_fSO2_in = 0.667 ;// Fraction of SO2 entering reactor 2
R2_fO2_in = 0.333 ;// Fraction of O2 entering reactor 2
R2_fSO3_out = 0.586 ;// Fraction of SO3 exiting reactor 2
R2_fSO2_out = 0.276 ;// Fraction of SO2 exiting reactor 2
R2_fO2_out = 0.138 ;// Fraction of O2 exiting reactor 2
// Main Reaction: CO , (1/2)*O2 ---> CO2
R1_O2_in = (1/2)*air ;// O2 entering reactor 1-[g mol]
R1_N2_in = R1_O2_in*(79/21) ;// N2 entering reactor 1-[g mol]
//Output of reactor 1
R1_CO_out = R1_CO_in*(1 - air) ;// [g mol]
R1_CO2_out = 1*( air) ;// [g mol]
R1_N2_out = R1_N2_in ;//[g mol]
// By analysis DOF is zero.
// Get eqn. to solve by species balance
//Unknowns - P- exit stream of reactor 2 , F - entry stream of reactor 2 , ex - extent of reaction
// P*(R2_fSO2_out) - F*0 = 1*ex ... eqn.(a)- By SO3 balance
// P*(R2_fSO2_out) - F*(R2_fSO2_in) = -1*ex ...eqn.(b) - By SO2 balance
// By O2 balance we will get eqn. equivalent to eqn. (b), so we need one more eqn.
// Energy balance
// For energy balance, get required data from software in the CD of book and sensible heat data from Appendix F
// given data of outputs is taken in array in order CO(g),CO2(g), N2(g),SO2(g),SO3(g) and then O2(g)
del_Hi_out = [ -109.054,-393.250,0,-296.855,-395.263,0] ; // Heat of formation - [kJ/g mol]
del_Hf_out = [35.332,35.178,22.540,20.845,34.302,16.313] ;//Change in enthalpy during temperature change -[kJ/g mol]
del_H_out =del_Hi_out + del_Hf_out ;//[-371.825,15.043,160.781,-449.650,-581.35]// Change in enthalpy final - [kJ/g mol]
// given data of inputs is taken in array in order CO(g),CO2(g), N2(g),SO2(g) and then O2(g)
del_Hi_in = [ -109.054,-393.250,0,-296.855,0] ;// // Heat of formation - [kJ/g mol]
del_Hf_in = [17.177,17.753,11.981,0,0] ;//Change in enthalpy during temperature change -[kJ/g mol]
del_H_in = del_Hi_in+ del_Hf_in ;// Change in enthalpy final - [kJ/g mol]
// Now do energy balance , assume Q = 0 ,
// del_H_out(4)*P*R2_fSO2_out + del_H_out(5)*P*R2_fSO3_out - del_H_in(4)*F*R2_fSO2_in + del_Hi_out(6)*P*R2_fO2_out = 0 ... eqn. (c)
// Solve eqn. (a), (b) and (c) to get F ,P , ex
a = [(R2_fSO3_out) 0 -1;(R2_fSO2_out) -(R2_fSO2_in) 1;(del_H_out(4)*R2_fSO2_out + del_H_out(5)*R2_fSO3_out + del_Hi_out(6)*R2_fO2_out ) -(del_H_in(4)*R2_fSO2_in) 0] ;// Matrix of coefficients
b = [0;0;(del_H_in(1)*R1_CO_out+del_H_in(2)*R1_CO2_out+del_H_in(3)*R1_N2_out-(del_H_out(1)*R1_CO_out+del_H_out(2)*R1_CO2_out+ del_H_out(3)*R1_N2_out))] ;// Matrix of constants
x = a\b ;// Matrix of solutions, P = x(1), F = x(2) ,ex = x(3)
F = x(2) ;//exit stream of reactor 2 - [lb mol]
R2_SO2_in = R2_fSO2_in*F ;// Moles of SO2 required per lb mol of CO - [lb mol]
CO = (R1_CO_in*SO2_in)/R2_SO2_in ;//Mole of CO burned in reactor 1 - [lb mol]
printf('Mole of CO burned in reactor 1 is %.0f lb mol.\n',CO) ; |
24c33ce68bb61219529bf894bd3349157c08b186 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1436/CH5/EX5.19/ex5_19.sce | f270e629ec3e93d7953157d03c43292544c9b185 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 135 | sce | ex5_19.sce | //Example 5.19, page no-317
clear
clc
e=0.2*10^-3
B=0.08
l=10*10^-2
v=e/(B*l)
printf("V = %.3f m/sec = %.2f cm/sec",v,v*100)
|
2eac5fb038b01cd4e0d5985103c65ec5cc0c7856 | 717ddeb7e700373742c617a95e25a2376565112c | /854/CH2/EX2.2/Example2_2.sce | 38968b0f28b88d3ad868f43ae058388833f50ad0 | [] | 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 | 1,211 | sce | Example2_2.sce | //clear//
//Caption:Program to Caculate Electric Field E at P due to 4 identical charges
//Example2.2
//page 33
clc;
P = [1,1,1];
P1 = [1,1,0];
P2 = [-1,1,0];
P3 = [-1,-1,0];
P4 = [1,-1,0];
R1 = norm(P-P1);
aR1 = UnitVector(P-P1);
R2 = norm(P-P2);
aR2 = UnitVector(P-P2);
R3 = norm(P-P3);
aR3 = UnitVector(P-P3);
R4 = norm(P-P4);
aR4 = UnitVector(P-P4);
disp(R1,'R1=')
disp(aR1,'aR1=')
disp(R2,'R2=')
disp(aR2,'aR2=')
disp(R3,'R3=')
disp(aR3,'aR3=')
disp(R4,'R4=')
disp(aR4,'aR4=')
Q = 3e-09; //charge in Coulombs
Eps = 8.854e-12; //free space permittivity
E1 = (Q/(4*%pi*Eps*R1^2))*aR1;
E2 = (Q/(4*%pi*Eps*R2^2))*aR2;
E3 = (Q/(4*%pi*Eps*R3^2))*aR3;
E4 = (Q/(4*%pi*Eps*R4^2))*aR4;
E = E1+E2+E3+E4;
disp(E,'Electric Field Intesnity at any point P due to four identical Charges in V/m=')
//Result
//R1= 1.
//aR1= 0. 0. 1.
//R2= 2.236068
//aR2= 0.8944272 0. 0.4472136
//R3= 3.
//aR3= 0.6666667 0.6666667 0.3333333
//R4= 2.236068
//aR4= 0. 0.8944272 0.4472136
//Electric Field Intesnity at any point P due to four identical Charges in V/m=
// 6.8206048 6.8206048 32.785194
//
|
f7218d8ffbd8dd064d0d9789053b897326c705b6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1955/CH1/EX1.2/example2.sce | 0d7da6c71473bfd233db1b71af9c9a24c42cbc60 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 886 | sce | example2.sce | clc
clear
//input data
P01=7//Total initial pressure of gases at entry in bar
T01=1100//Total initial temperature in K
P02=1.5//Total final pressure of gases at exit in bar
T02=830//Total final temperature in K
C2=250//Exit velocity in m/s
r=1.3//Ratio of specific heats of gases
M=28.7//Molecular weight of gases
R1=8.314//Gas constant of air in kJ/kg.K
//calculations
T02s=T01*(P02/P01)^((r-1)/r)//Final temperature in K
ntt=((T01-T02)/(T01-T02s))//Total-to-total efficiency
R=(R1/M)//Gas constant of given gas in kJ/kg.K
Cp=((r*R)/(r-1))//Specific heat of given gas at constant pressure in kJ/kg.K
T2s=(T02s-((C2^2)/(2*Cp*1000)))//Temperature in isentropic process at exit in K
nts=((T01-T02)/(T01-T2s))//Total-to-static efficiency
//output
printf('The total-to-total efficiency of gases is %3.3f\nThe total-to-static efficiency of gases is %3.3f',ntt,nts)
|
ceb0ca6b7daf4de2d05c2ba26de13e8ecbbe4998 | e6ea8d4e6298d6aee8f296425a9e68b48ad33795 | /sci_examples/3d_point_cloud_ex.sce | d443224439e189fd34dd36b94bd746bfe5224b6f | [] | no_license | srkirve77/scilab_toolbox | a7d75b97e58813033491ab32fecec43a35ae2e2e | 738760c8b1fd812b0a8d84f05764d395fe7041de | refs/heads/master | 2022-11-07T19:38:51.977104 | 2020-06-22T16:57:01 | 2020-06-22T16:57:01 | 271,746,071 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 444 | sce | 3d_point_cloud_ex.sce | i = 0;
i = double(i);
arr= [];
final_arr = [];
row = 0;
count=1;
count = int(count);
temp = get_random_gaussian(200000);
while i<=20
val = [sin(i),cos(i),(i/4)]
temp1 = [temp(1+count),temp(2+count),temp(3+count)];
count = count + 3;
val = val + temp1/20;
color = colormap_jet(i,0,20);
arr = [val,color];
final_arr = cat(1,final_arr,arr);
row = row + 1;
i = i + 0.001;
end
perspective_window(row , final_arr)
|
5fc42d5eac7090e7ee60412e67f8e327ac0772fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1922/CH3/EX3.1/3_1.sce | 6b37dcc4eb29368e8f4cc4d0383dfbfa97bf68b5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 3_1.sce | clc
//Initialization of variables
clear
mass=4000 //kg/m^2
Patm=1.013*10^5 //pa
g=9.807
M=28
R=8.3143*10^3
T=303 //K
P1=800*10^3 //pa
//calculations
Ps=Patm+mass*g
n=1/M
V1=n*R*T/P1
W=Ps*(2*V1)
//results
printf("Work done on the surroundings = %d J",W)
|
ca5eb4758a645cccd9e463b79e0d49c45150d867 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2223/CH11/EX11.6/Ex11_6.sce | 92a67d559e4403cfe17109e363bd28c45cdf2f99 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,130 | sce | Ex11_6.sce | // scilab Code Exa 11.6 General Swirl Distribution axial compressor
Rm=0.5; // Degree of reaction
dm=36/100; // Mean Blade ring diameter in m
rm=dm/2;
N=18e3; // rotor Speed in RPM
h=6/100; // blade height at entry in m
dh=dm-h;
dt=dm+h;
cx=180; // Axial velocity in m/s
alpha_1m=25; // air angle at rotor and stator exit
alpha_2m=54.820124;
um=%pi*dm*N/60;
omega=um/rm;
rh=dh/2;
rt=dt/2;
uh=omega*rh;
ut=omega*rt;
// part(a) rotor blade air angles
c_theta1m=cx*tand(alpha_1m);
c_theta2m=cx*tand(alpha_2m);
a=0.5*(c_theta1m+c_theta2m)
b=rm*(c_theta2m-c_theta1m)*0.5;
c_theta1h=a-(b/rh);
c_theta1t=a-(b/rt);
K1=cx^2+(2*(a^2)*((b/(a*rm))+log(rm)));
cx1h=sqrt(K1-(2*(a^2)*((b/(a*rh))+log(rh))));
cx1t=sqrt(K1-(2*(a^2)*((b/(a*rt))+log(rt))));
c_theta2h=a+(b/rh);
c_theta2t=a+(b/rt);
K2=cx^2+(2*(a^2)*(log(rm)-(b/(a*rm))));
cx2h=sqrt(K2-(2*(a^2)*(log(rh)-(b/(a*rh)))));
cx2t=sqrt(K2-(2*(a^2)*(log(rt)-(b/(a*rt)))));
disp("(a) the rotor blade air angles are")
// for hub section
alpha1h=atand(c_theta1h/cx1h);
alpha2h=atand(c_theta2h/cx2h);
disp("for hub section")
beta1h=atand((uh/cx1h)-tand(alpha1h));
beta2h=atand((uh/cx2h)-tand(alpha2h));
disp("degree",beta1h,"beta1h=")
disp("degree",beta2h,"beta2h=")
// for tip section
alpha1t=atand(c_theta1t/cx1t);
alpha2t=atand(c_theta2t/cx2t);
disp("for tip section")
beta1t=atand((ut/cx1t)-tand(alpha1t));
beta2t=atand((ut/cx2t)-tand(alpha2t));
disp("degree",beta1t,"beta1t= ")
disp("degree",beta2t,"beta2t= ")
// part(b) specific work
w=2*omega*b;
disp("kJ/kg",w*1e-3,"(b)specific work is")
// part(c) the loading coefficients
disp("(c)the loading coefficients are")
shi_h=w/(uh^2);
disp(shi_h,"shi_h=")
shi_m=w/(um^2);
disp(shi_m,"shi_m=")
shi_t=w/(ut^2);
disp(shi_t,"shi_t=")
// part(c) degrees of reaction
disp("(d)Degrees of reaction are")
Rh=((cx1h^2)*(secd(beta1h)^2)-(cx2h^2)*(secd(beta2h)^2))*100/(2*w);
Rt=((cx1t^2)*(secd(beta1t)^2)-(cx2t^2)*(secd(beta2t)^2))*100/(2*w);
disp("%",Rh,"Rh=")
disp("%",Rm*100,"Rm=")
disp("%",Rt,"Rt=")
disp("Comment: book contains wrong calculation for Rt value")
|
304bd8ab6405f89228db8c99733c8763f126b622 | 449d555969bfd7befe906877abab098c6e63a0e8 | /620/CH21/EX21.7/example21_7.sce | 5afc0e07fe84687f116d30499dc61b3f1ec49565 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 394 | sce | example21_7.sce | c1=50;
v1=16;
c2=40;
v2=10;
disp("Part a");
v=v2*(c1+c2)/c1;
disp("the maximum working voltage (in V) is");disp(v);
disp("Part b");
v1=v*c2/(c1+c2);
v2=v*c1/(c1+c2);
disp("the voltage (in V) across 50 μF capacitor is"); disp(v1);
disp("the voltage (in V) across 40 μF capacitor is"); disp(v2);
disp("Part c");
c=c1*c2/(c1+c2);
disp("the total capacitance (in μF) is"); disp(c); |
c1b8c6a3891da6b767c009ed3e5433de4b2db9e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH34/EX34.05/34_05.sce | 2a598ffa8b7db7d0f3d814f5e6d4bf26d81aab57 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,337 | sce | 34_05.sce | //Problem 34.05: For the network shown in Figure 34.20, determine (a) the current flowing in the (0+i10) ohm impedance, and (b) the power dissipated in the (20 + i0) ohm impedance.
//initializing the variables:
rv = 120; // in volts
thetav = 0; // in degrees
ZA = 25 - %i*5; // in ohm
ZB = 15 + %i*10; // in ohm
ZC = 20 - %i*30; // in ohm
ZD = 20 + %i*0; // in ohm
ZE = 0 + %i*10; // in ohm
ZF = 2.5 - %i*5; // in ohm
//calculation:
//voltage
V = rv*cos(thetav*%pi/180) + %i*rv*sin(thetav*%pi/180)
//The network may initially be simplified by transforming the delta PQR to its equivalent star connection as represented by impedances Z1, Z2 and Z3 in Figure 34.21. From equation (34.7),
Z1 = ZA*ZB/(ZA + ZB + ZC)
Z2 = ZC*ZB/(ZA + ZB + ZC)
Z3 = ZA*ZC/(ZA + ZB + ZC)
//The network is shown redrawn in Figure 34.22 and further simplified in Figure 34.23, from which,
Zab = ((Z3 + ZE)*(ZD + Z2)/(Z2 + ZE + ZD + Z3)) + (Z1 + ZF)
//Current I1
I1 = V/Zab
//current I2
I2 = ((ZE + Z3)/(Z2 + ZE + ZD + Z3))*I1
//current I3
I3 = I1 - I2
//The power P dissipated in the ZD impedance of Figure 34.20 is given by
Pzd = ZD*I2^2
printf("\n\n Result \n\n")
printf("\n (a)the current flowing in the (0+i10) ohm impedance is %.2f A",I3)
printf("\n (b) the power dissipated in the (20 + i0) ohm impedance is %.2f W",Pzd) |
8e1516211a8eac2eafc76c1e02e38f078fd62728 | 7ef51c5d0a21a0b16fdcf1e2b0ba34941a192b5d | /resultados/interpret_correlation.sci | b3f2fe1f4a10fc7ca924dcc2a36b91e86baeb094 | [] | no_license | josepedro/TCC | c4ab515fea01859420ba3f5123815430ea2b0e02 | 72622069c60ae6c639d9aa2189f868b6db22c6df | refs/heads/master | 2021-01-21T22:29:10.992789 | 2014-12-26T22:32:02 | 2015-01-02T03:06:25 | 22,113,358 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,742 | sci | interpret_correlation.sci | function ACORDETOC = interpret_correlation(S2)
acordetoc = find(S2==max(S2));
if (length(acordetoc) > 1)
acordetoc = acordetoc(1);
end
//DECODIFICADOR
if (acordetoc == 1)
ACORDETOC = 'CM';
end
if (acordetoc == 2)
ACORDETOC = 'Cm';
end
if (acordetoc == 3)
ACORDETOC = 'Caum';
end
if (acordetoc == 4)
ACORDETOC = 'Cdim';
end
if (acordetoc == 5)
ACORDETOC = 'C#M';
end
if (acordetoc == 6)
ACORDETOC = 'C#m';
end
if (acordetoc == 7)
ACORDETOC = 'C#aum';
end
if (acordetoc == 8)
ACORDETOC = 'C#dim';
end
if (acordetoc == 9)
ACORDETOC = 'DM';
end
if (acordetoc == 10)
ACORDETOC = 'Dm';
end
if (acordetoc == 11)
ACORDETOC = 'Daum';
end
if (acordetoc == 12)
ACORDETOC = 'Ddim';
end
if (acordetoc == 13)
ACORDETOC = 'D#M ou EbM';
end
if (acordetoc == 14)
ACORDETOC = 'D#m ou Ebm';
end
if (acordetoc == 15)
ACORDETOC = 'D#aum ou Ebaum';
end
if (acordetoc == 16)
ACORDETOC = 'D#dim ou Ebdim';
end
if (acordetoc == 17)
ACORDETOC = 'EM';
end
if (acordetoc == 18)
ACORDETOC = 'Em';
end
if (acordetoc == 19)
ACORDETOC = 'Eaum';
end
if (acordetoc == 20)
ACORDETOC = 'Edim';
end
if (acordetoc == 21)
ACORDETOC = 'FM';
end
if (acordetoc == 22)
ACORDETOC = 'Fm';
end
if (acordetoc == 23)
ACORDETOC = 'Faum';
end
if (acordetoc == 24)
ACORDETOC = 'Fdim';
end
if (acordetoc == 25)
ACORDETOC = 'F#M';
end
if (acordetoc == 26)
ACORDETOC = 'F#m';
end
if (acordetoc == 27)
ACORDETOC = 'F#aum';
end
if (acordetoc == 28)
ACORDETOC = 'F#dim';
end
if (acordetoc == 29)
ACORDETOC = 'GM';
end
if (acordetoc == 30)
ACORDETOC = 'Gm';
end
if (acordetoc == 31)
ACORDETOC = 'Gaum';
end
if (acordetoc == 32)
ACORDETOC = 'Gdim';
end
if (acordetoc == 33)
ACORDETOC = 'G#M ou AbM';
end
if (acordetoc == 34)
ACORDETOC = 'G#m ou Abm';
end
if (acordetoc == 35)
ACORDETOC = 'G#aum ou Abaum';
end
if (acordetoc == 36)
ACORDETOC = 'G#dim ou Abdim';
end
if (acordetoc == 37)
ACORDETOC = 'AM';
end
if (acordetoc == 38)
ACORDETOC = 'Am';
end
if (acordetoc == 39)
ACORDETOC = 'Aaum';
end
if (acordetoc == 40)
ACORDETOC = 'Adim';
end
if (acordetoc == 41)
ACORDETOC = 'A#M ou BbM';
end
if (acordetoc == 42)
ACORDETOC = 'A#m ou Bbm';
end
if (acordetoc == 43)
ACORDETOC = 'A#aum ou Bbaum';
end
if (acordetoc == 44)
ACORDETOC = 'A#dim ou Bbdim';
end
if (acordetoc == 45)
ACORDETOC = 'BM';
end
if (acordetoc == 46)
ACORDETOC = 'Bm';
end
if (acordetoc == 47)
ACORDETOC = 'Baum';
end
if (acordetoc == 48)
ACORDETOC = 'Bdim';
end
//select expr,
//case expr1 then instructions1,
//case expr2 then instructions2,
//...
//case exprn then instructionsn,
//[else instructions],
//end
endfunction |
515fd72b1e9eb04e87d89c1928d33699d3d87231 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set4/s_Control_Systems_Engineering_I._J._Nagrath_And_M._Gopal__28.zip/Control_Systems_Engineering_I._J._Nagrath_And_M._Gopal__28/CH9/EX9.13.b/ex9_13_2.sce | 5e08b7cbc286c2dc78bdbeb7ea69c7c23cd85ce0 | [] | 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 | 373 | sce | ex9_13_2.sce | mode(2);errcatch(-1,"stop");driver("GIF");syms K
H=syslin('c',(K*(s+4))/((s-1)*(s-2)))
fmin=0.1;
fmax=100;
bode(H,fmin,fmax)
show_margins(H)
// for phase margin =30
printf("From bode plot it can be seen that gain should be reduced by 4db")
xinit('/home/fossee/Downloads/tbc_graphs/Control_Systems_Engineering_I._J._Nagrath_And_M._Gopal__28/ex9_13_2');xend();exit();
|
cd1c9f310c2f89ad68be6f05c5aa8676aa9be04b | 6a0d5ad524ce9b230c7e35af224317d515bb8f2d | /ResilienceClosure/donnees.sce | 792e7b3a6c964899a5259d4c90eb3e989b75993b | [] | no_license | mcuilleret/Entropic | b562ded98cbb74ad55579b6be5730767f24f4f2b | 0dd4e8bacb312015cd6c3b04b732ebd69de4ac23 | refs/heads/main | 2023-08-13T07:07:02.684153 | 2021-10-05T10:28:19 | 2021-10-05T10:28:19 | 413,753,215 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7,403 | sce | donnees.sce | chdir('C:\Users\matve\Desktop\Code These\ResilienceClosure\');
sheets=readxls('donnees3.xls');
data=sheets(1);
data_cli=sheets(3);
data_param=sheets(2);
data_eff=sheets(4);
data_eco=sheets(5);
data_bio=sheets(6);
data_demo=sheets(7);
data_trophi=sheets(8);
data_cost=sheets(9);
data_actu=sheets(10);
data_prix=sheets(11);
data_otsp=sheets(12);
Horizont=48;
N_species=4;
N_fleet=3;
NN_calib=N_species-1;
Hort=Horizont-1;
//T_proj=Horizont;
//Pour 2050
//T_proj=Horizont+128;
//Pour 2070
//T_s=208;
//T_proj= Horizont+T_s;
//Pour 2100
T_s=328;
T_proj=Horizont+T_s;
t_0=2006;
t_donnees_final=t_0+(T_proj)/4;
c=0;
species=["Acoupa Weakfish";"Green Weakfish";"Crucifix Catfish";"14 eme espece"];
///capture///////
historical_catch_CC_AR=data(4:Hort+4,4)./(1000*1000);
historical_catch_CCA_AR=data(4:Hort+4,5)./(1000*1000);
historical_catch_T_AR=data(4:Hort+4,7)./(1000*1000);
historical_catch_CC_AA=data(102:Hort+102,4)./(1000*1000);
historical_catch_CCA_AA=data(102:Hort+102,5)./(1000*1000);
historical_catch_T_AA=data(102:Hort+102,7)./(1000*1000);
historical_catch_CC_MB=data(53:Hort+53,4)./(1000*1000);
historical_catch_CCA_MB=data(53:Hort+53,5)./(1000*1000);
historical_catch_T_MB=data(53:Hort+53,7)./(1000*1000);
historical_catch_CC=[historical_catch_CC_AR,historical_catch_CC_AA,historical_catch_CC_MB];
historical_catch_CCA=[historical_catch_CCA_AR,historical_catch_CCA_AA,historical_catch_CCA_MB];
historical_catch_T=[historical_catch_T_AR,historical_catch_T_AA,historical_catch_T_MB];
catch_hist_sum=historical_catch_CCA+historical_catch_CC+historical_catch_T;
sum_capture_CC_h=[sum(historical_catch_CC,'c')];
sum_capture_CCA_h=[sum(historical_catch_CCA,'c')];
sum_capture_T_h=[sum(historical_catch_T,'c')];
sum_capture_h=[sum_capture_CC_h,sum_capture_CCA_h,sum_capture_T_h];
sum_capture_agg_h=sum(sum_capture_h,'c');
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Pour RCP 8.5
//8.5 moy
gam_AR_85=data_cli(4:395,3);
gam_AA_85=data_cli(4:395,4);
gam_MB_85=data_cli(4:395,5);
//gam_AR_85=data_cli(16:T_proj+16,3);
//gam_AA_85=data_cli(4:T_proj+4,4);
//gam_MB_85=data_cli(20:T_proj+20,5);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Pour RCP 2.6
//2.6 moy
gam_AR_26=data_cli(4:395,7);
gam_AA_26=data_cli(4:395,8);
gam_MB_26=data_cli(4:395,9);
gam_85=[gam_AR_85,gam_AA_85,gam_MB_85];
gam_26=[gam_AR_26,gam_AA_26,gam_MB_26];
//Pour temperature standard
gam_AR_stand=data_cli(4:395,11);
gam_AA_stand=data_cli(4:395,12);
gam_MB_stand=data_cli(4:395,13);
gam_stand=[gam_AR_stand,gam_AA_stand,gam_MB_stand];
//changement de parametre
//PARAMETRE CALIB
I=data_param(2:T_proj+1,1);
aij=data_param(2:2+N_species-1,2:2+N_species-1);
q_CC=data_param(2:2+N_species-1,6);
q_CCA=data_param(2:2+N_species-1,7);
q_P=data_param(2:2+N_species-1,8);
q_T=data_param(2:2+N_species-1,9);
M=data_param(2:2+N_species-1,10);
gi=data_param(2:2+N_species-1,11);
Bio_1=data_param(7,2:2+N_species-1);
tho=data_param(9,2:2+N_species-2);
//ECONOMIE OLD
nb_boats=data_eco(4,6:8);
Var_cost=data_eco(5,6:8);
fix_cost=data_eco(6,6:8);
//On a une valeur de couts fixes par année, on trimestrialise
fix_cost_trim=fix_cost./4;
//PRIX OLD
pr_AW=data_eco(8,6:8);
pr_GW=data_eco(9,6:8);
pr_CrC=data_eco(10,6:8);
pr=[pr_AW;pr_GW;pr_CrC];
//pr: stock sur lignes et flot sur colonnes==> on inverse
P=pr';
//On recupère les prix par stock (sur des lignes)
p_CC=P(1,1:3);
p_CCA=P(2,1:3);
p_T=P(3,1:3);
nb_j_peche_per_boats_per_trim=data_eco(11,6:8);
//nb_j_peche_per_boats_per_trim=nb_j_peche_per_boats_per_trim.*3;
bet=[0,0.5,0.5];
r=0.03/4;
alpha_add=data_eco(12,6:8);
alpha_mul=data_eco(13,6:8);
//INDICATEURS BIOLOGIQUES
poids_moy=data_bio(2,2:4);
poids_moy_kt=poids_moy.*(10^-6);
T=data_bio(3,2:4);
//POPULATION GUYANE
PopGuy=round(data_demo(3:97,3));
PopGuyTrim=zeros(T_proj,1);
//ligne decrivant le nombre de ligne initial du fichier
for n=1:(T_proj/4);
//ligne decrivant le nombre de ligne souhaite du fichier
for t=1+n*4-4:(n+1)*4-4;
PopGuyTrim(t)=PopGuy(n);
//PopGuyTrim(t)=PopGuy(n)
end
end
for i=1:N_fleet
for t=1:T_proj
// AE(t,i)=rand();
end
end
//save('C:\Users\matve\Desktop\Code These\ResilienceMEY\'+'AE','AE');
CoutVar=data_cost(2:95,2:7);
PrixPet=CoutVar(:,1);
CoutVarAnCC=(1403.84*PrixPet(:,1)+1946.51)
CoutVarAnCCA=(7372.68*PrixPet(:,1)+2933.77)
CoutVarAnT=(10978.63*PrixPet(:,1)+10416.4)
Coutss=[];
Coutss=[Coutss,CoutVarAnCC];
Coutss=[Coutss,CoutVarAnCCA];
Coutss=[Coutss,CoutVarAnT];
///////////////////////////////////////////////////////////////////////////////
PrixPetDel=CoutVar(:,2);
CoutVarAnCCDel=(1403.84*PrixPetDel(:,1)+1946.51)
CoutVarAnCCADel=(7372.68*PrixPetDel(:,1)+2933.77)
CoutVarAnTDel=(10978.63*PrixPetDel(:,1)+10416.4)
CoutDel=[];
CoutDel=[CoutDel,CoutVarAnCCDel];
CoutDel=[CoutDel,CoutVarAnCCADel];
CoutDel=[CoutDel,CoutVarAnTDel];
///////////////////////////////////////////////////////////////////////////////
PrixPetSus=CoutVar(:,3);
CoutVarAnCCSus=(1403.84*PrixPetSus(:,1)+1946.51)
CoutVarAnCCASus=(7372.68*PrixPetSus(:,1)+2933.77)
CoutVarAnTSus=(10978.63*PrixPetSus(:,1)+10416.4)
CoutSus=[];
CoutSus=[CoutSus,CoutVarAnCCSus];
CoutSus=[CoutSus,CoutVarAnCCASus];
CoutSus=[CoutSus,CoutVarAnTSus];
CoutVarAgg(:,1)=CoutVarAnCC;
CoutVarAgg(:,2)=CoutVarAnCCA;
CoutVarAgg(:,3)=CoutVarAnT;
for n=1:(T_proj/4);
//ligne decrivant le nombre de ligne souhaite du fichier
for t=1+n*4-4:(n+1)*4-4;
CoutVarTrim(t,1:3)=CoutVarAgg(n,1:3)./4;
CoutVarTrimDel(t,1:3)=CoutDel(n,1:3)./4;
CoutVarTrimSus(t,1:3)=CoutSus(n,1:3)./4;
CoutVarTrimTrad(t,1:3)=Coutss(n,1:3)./4;
// CoutVarTrim(t,1:3)=CoutVar(1,1:3)./4;
end
end
CoutVarTrim=CoutVarTrimSus;
save('C:\Users\matve\Desktop\Code These\ResilienceBAU\CoutVarSus','CoutVarTrim');
save('C:\Users\matve\Desktop\Code These\ResilienceMEY2\CoutVarSus','CoutVarTrim');
save('C:\Users\matve\Desktop\Code These\ResilienceMSY\CoutVarSus','CoutVarTrim');
CoutVarTrim=CoutVarTrimTrad;
save('C:\Users\matve\Desktop\Code These\ResilienceBAU\CoutVarTrad','CoutVarTrim');
save('C:\Users\matve\Desktop\Code These\ResilienceMEY2\CoutVarTrad','CoutVarTrim');
save('C:\Users\matve\Desktop\Code These\ResilienceMSY\CoutVarTrad','CoutVarTrim');
CoutVarTrim=CoutVarTrimDel;
save('C:\Users\matve\Desktop\Code These\ResilienceBAU\CoutVarDel','CoutVarTrim');
save('C:\Users\matve\Desktop\Code These\ResilienceMEY2\CoutVarDel','CoutVarTrim');
save('C:\Users\matve\Desktop\Code These\ResilienceMSY\CoutVarDel','CoutVarTrim');
//LIEN TROPHIQUE
Trophi=data_trophi(2:5,2);
//DATE CHOC
DateChoc=15
//ACTUALISATION
Actu=data_actu(2:96,5);
for n=1:(T_proj/4);
//ligne decrivant le nombre de ligne souhaite du fichier
for t=1+n*4-4:(n+1)*4-4;
ActuTrim(t,1)=Actu(n,1);
end
end
//PRIX AVEC INFLATION
prix=data_prix(2:96,2:4);
//ligne decrivant le nombre de ligne souhaite du fichier
//Possibilite de lever l'evolution du prix base sur l inflation CE
for n=1:(T_proj/4);
for t=1+n*4-4:(n+1)*4-4;
PrixTrim(t,1:3)=prix(n,1:3)*1000;
end
end
//AE
load('AE','AE');
Inflation=data_prix(2:96,5);
ProfOtSP=data_otsp(1:3,16)';
ProfOtSPinf=[ProfOtSP(1)*Inflation,ProfOtSP(2)*Inflation,ProfOtSP(3)*Inflation];
for n=1:(T_proj/4);
for t=1+n*4-4:(n+1)*4-4;
ProOtSP(t,1:3)=ProfOtSPinf(n,1:3)./4;
end
end
|
82b0361cfc15b160040704b9bc68b3bd810d3d76 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH1/EX1.4/Chapter1_Example4.sce | 0e1b512ac018fa1488342c7d536d09828478ac23 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,366 | sce | Chapter1_Example4.sce | //Chapter-1, Illustration 4, Page 17
//Title: Fuels and Combustion
//=============================================================================
clc
clear
//INPUT DATA
C=0.84;//Percentage composition of Carbon
H=0.09;//Percentage composition of Hydrogen
CO2=0.0875;//Volumetric composition of CO2
CO=0.0225;//Volumetric composition of CO
O2=0.08;//Volumetric composition of Oxygen
N2=0.81;//Volumetric composition of Nitrogen
M1=44;//Molecular mass of CO2
M2=28;//Molecular mass of CO
M3=32;//Molecular mass of O2
M4=28;//Molecular mass of N2
//CALCULATIONS
c1=CO2*M1;//Proportional mass of CO2
c2=CO*M2;//Proportional mass of CO
c3=O2*M3;//Proportional mass of O2
c4=N2*M4;//Proportional mass of N2
c=c1+c2+c3+c4;//Total proportional mass of constituents
m1=c1/c;//Mass of CO2 per kg of flue gas in kg
m2=c2/c;//Mass of CO per kg of flue gas in kg
m3=c3/c;//Mass of O2 per kg of flue gas in kg
m4=c4/c;//Mass of N2 per kg of flue gas in kg
d1=m1*100;//Mass analysis of CO2
d2=m2*100;//Mass analysis of CO
d3=m3*100;//Mass analysis of O2
d4=m4*100;//Mass analysis of N2
m=((3*m1)/11)+((3*m2)/7);//Mass of carbon in kg
md=C/m;//Mass of dry flue gas in kg
//OUTPUT
mprintf('Mass of dry flue gases per kg of coal burnt is %3.1f kg',md)
//==============================END OF PROGRAM=================================
|
bdaaa481c5ba18052629da7757aede3979770966 | 449d555969bfd7befe906877abab098c6e63a0e8 | /191/CH5/EX5.16/Example5_16.sce | 1cd2060b7d33483b98dfd0a9c0ec558108f8da74 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,310 | sce | Example5_16.sce | //Least square approximation to continuous functions
clc;
clear;
close();
format('v',8);
funcprot(0);
deff('[g]=f(x,y)','g= -y^2/(1+x)');
disp('approximation of e^x on [0,1] with a uniform weight w(x)=1')
a11 = integrate('1','x',0,1);
a12 = integrate('x','x',0,1);
a13 = integrate('x*x','x',0,1);
a14 = integrate('x^3','x',0,1);
a21 = integrate('x','x',0,1);
a22 = integrate('x^2','x',0,1);
a23 = integrate('x^3','x',0,1);
a24 = integrate('x^4','x',0,1);
a31 = integrate('x^2','x',0,1);
a32 = integrate('x^3','x',0,1);
a33 = integrate('x^4','x',0,1);
a34 = integrate('x^5','x',0,1);
a41 = integrate('x^3','x',0,1);
a42 = integrate('x^4','x',0,1);
a43 = integrate('x^5','x',0,1);
a44 = integrate('x^6','x',0,1);
c1 = integrate('exp(x)','x',0,1);
c2 = integrate('x*exp(x)','x',0,1);
c3 = integrate('x^2*exp(x)','x',0,1);
c4 = integrate('x^3*exp(x)','x',0,1);
A = [a11 a12 a13 a14;a21 a22 a23 a24;a31 a32 a33 a34;a41 a42 a43 a44];
C = [c1;c2;c3;c4];
ann = inv(A)*C;
disp(ann, 'The coefficients a0,a1,a2,a3 are respectively : ' );
deff('[px]=p3(x)','px=ann(4)*x.^3+ann(3)*x.^2+ann(2)*x+ann(1)');
x = [0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0]';
e = exp(x);
p = p3(x);
err = e-p;
ann = [x e p err];
disp(ann,'Displaying the value of x exp(x) p3(x) exp(x)-p3(x) :');
plot(x,err);
plot(x,zeros(length(x),1)); |
e7f5569aaa4ee9a0c35941b658252ec0ef4bef7c | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s__elelectronics_instrumentation_and_measurements_U._S._Shah_2195.zip/_elelectronics_instrumentation_and_measurements_U._S._Shah_2195/CH2/EX2.8.5/ex_2_8_5.sce | f9355bcfd1b240521ddc0ea29c323ff8c7603c23 | [] | 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 | 260 | sce | ex_2_8_5.sce | errcatch(-1,"stop");mode(2);//Example 2.8.5 // limiting error
;
;
//given data :
del_A=2.5;// may be +ve or-ve in %
As=400;
FSD=600;// in volts
del_A1=(del_A/100)*600;
disp(del_A1,"del_A1 (V)=± ")
e=(del_A1/As)*100;
disp(e,"limiting error,e(%) = ")
exit();
|
c77a236719c5f5f0f032ebe82988ff6884bb363d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1574/CH1/EX1.6/Signals_Ex_1_6.sce | 50bafe5d5f8ffc5334fa15fd2aa2835b6bff1cf3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 614 | sce | Signals_Ex_1_6.sce | clc
//Chapter 1 Signals
//Example 1.6, page no 21
//given
t0=1,T=1,w0=2*3.14/T,P=1
t=0:0.1:1
f=P*t// function f(t)=P*t, 0<t<1
a=1
disp('The Exponential Fourier coeff(Fn) are:for n=-5 to 5')
for n=-5:5// Calculating the fourier coeff
fr=f.*cos(%pi*n*t/T)
Fr(a)=inttrap(t,fr)
fi=f.*sin(%pi*n*t/T)
Fi(a)=inttrap(t,fi)
if Fr(a)<0.01 then Fr(a)=0
end
if Fi(a)<0.01 then
Fi(a)=0
end
disp(Fr(a)-%i*Fi(a))
a=a+1
end
mprintf('The given function in Expo Fourier series can be represented as \n')
mprintf('f(t)= %f+jP/2*pi* ∑1/n *exp(j2*pi*t)',P/2)
|
90d33fb1a9720b7dcf6a985b0514353aada2dfbc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1055/CH5/EX5.1/ch5_1.sce | 714d0d8e3462243c959df92bcc67b2bce92d407c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 332 | sce | ch5_1.sce | //To determine the d.c. output voltage when delay anglw (a)0 (b)30 (c)45
clear
clc;
Vo=3*sqrt(2)*110/%pi;
Vd=Vo*(cosd(0) + cosd(15))/2;
Vd1=Vo*(cosd(30) + cosd(45))/2;
Vd2=Vo*(cosd(45) + cosd(60))/2;
mprintf("(a)For a=0, Vd=%.2f kV\n",Vd);
mprintf("(b)For a=30,Vd=%.2f kV\n",Vd1);
mprintf("(c)For a=45,Vd=%.2f kV\n",Vd2);
|
ad97d897f2b24bf625065edecfe0cc2661d031b7 | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/interpreter/subi04.tst | e8574b2b70bcb7891d90fe1c27226efafdc91f3c | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 287 | tst | subi04.tst | ; @Harness: simulator
; @Format: atmel
; @Arch: avr
; @Purpose: "Test the SUBI (subtract immediate from register) instruction"
; @Result: "flags.h=1, flags.s=0, flags.v=0, flags.n=0, flags.z=0, flags.c=0, r16 = 8"
start:
ldi r16, 0b00010000
subi r16, 0b00001000
end:
break
|
20e60fadfebb94e5e6ae79c1627d4712246dbd20 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1793/CH12/EX12.4/12Q4.sce | b96850bce0e65026d994f5540480b3d242964f81 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 12Q4.sce | clc
//For normally consolidated clay, c' = 0.
a=30
T3=10
T1=T3*(tand(45+a/2))^2
Tf=T1-T3
printf('The deviator stress at failure = %f lb/in^2',Tf)
|
8ea9ed42302c0b41bc46acb28eb264457768db94 | 676ffceabdfe022b6381807def2ea401302430ac | /solvers/CompressibleFlowSolver/Tests/hump3D_GLL.tst | ca42c565326f70db41270b69848a15419afea7b2 | [
"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 | 1,348 | tst | hump3D_GLL.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>NavierStokes, restart from file, BCs from file, WeakDG, GLL</description>
<executable>CompressibleFlowSolver</executable>
<parameters> hump3D_GLL.xml </parameters>
<files>
<file description="Session File">hump3D_GLL.xml </file>
<file description="Session File">hump3D_b1.bc</file>
<file description="Session File">hump3D_b2.bc</file>
<file description="Restart File">hump3D.rst</file>
</files>
<metrics>
<metric type="L2" id="1">
<value variable="rho" tolerance="1e-12">1.95793e-05</value>
<value variable="rhou" tolerance="1e-12">0.0161709</value>
<value variable="rhov" tolerance="1e-12">1.02091e-07</value>
<value variable="rhow" tolerance="1e-12">0.000238819</value>
<value variable="E" tolerance="1e-12">45.8424</value>
</metric>
<metric type="Linf" id="2">
<value variable="rho" tolerance="1e-12">0.0608055</value>
<value variable="rhou" tolerance="1e-12">55.621</value>
<value variable="rhov" tolerance="1e-7">0.0616451</value>
<value variable="rhow" tolerance="1e-12">0.444359</value>
<value variable="E" tolerance="1e-12">60454.3</value>
</metric>
</metrics>
</test>
|
6192aa8b7c5395a9604bf34d21fa9a093bec504f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3813/CH1/EX1.2/Ex1_2.sce | 4a1e74a2d342c91507716b1a681c6a96cd476ebc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 503 | sce | Ex1_2.sce | //Electric Drives:concepts and application by V.Subrahmanyam
//Publisher:Tata McGraw-Hill
//Edition:Second
//Ex1_2
clc;
clear;
V1=400;//supply voltage is V
I1=70;//Current in A
N1=78.5;//speed in rad/sec
R1=0.3;//resistance in ohm
I2=90;//current in A
N2=31.4;//Speed in rpm
Eb1=V1-(I1*R1);
T1=(Eb1*I1)/N1;
V2=V1+Eb1;
R2=(V2/I2)-R1;
T2=(Eb1*I2)/N1;
Eb2=(Eb1*N2)/N1;
I=(V1+Eb2)/R2;
T=(Eb2+I)/N2;
disp(T,'The initial breaking torque in Nm is:')
//Calculation error in the textbook
|
9f8da50b184f92ec8169ebd702aaef664413b675 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronics_Devices_And_Circuit_Theory_R._L._Boylestad_And_L._Nashelsky_69.zip/Electronics_Devices_And_Circuit_Theory_R._L._Boylestad_And_L._Nashelsky_69/CH9/EX9.3/9_3.sce | 24807fdf54129252e2e907a14b22cf7cae6d8271 | [] | 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 | 118 | sce | 9_3.sce | errcatch(-1,"stop");mode(2);; ;
disp(10^1.6,'ans for part a :- ');
disp(%e^0.04,'ans for part b :- ');
exit();
|
8ca37e739158fb383e83033856098dcbfeac841f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1415/CH1/EX1.3.6/ex6.sci | 718953fcd960dcfc79c67253e4b8358cf625c3dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 366 | sci | ex6.sci | //Example 6 Page 86
clc
clear
function s=S(t)//function for s(t)
s=54*t+20
endfunction
t=[0 0.5 1 1.5 2]//values of t given in question
disp(t,'time(h)')//displaying the t values
s=S(t);//function calling
disp(s,'marker(mi)')//displaying the s values
plot(t,s,'blue')//plotting the graph
xtitle('','Time(hours)','Location(miles)')//naming the axes
|
a4c5bef128f831972d1884ff0e875d0886d8e125 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3775/CH3/EX3.16/Ex3_16.sce | c90eeaf75d32713fb6c9d65d0bfdb399df1114fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 551 | sce | Ex3_16.sce | //Ex 3.16 page 128
clc;
clear;
close;
n=3;// no. of phase
Vs=400;// V
f=50;// Hz
Ls=5/1000;// H
Io=20;// A
Ri=1;// ohm
Vdc=400;// V
Vo=Vdc+Io*Ri;// V
// Vo=3*Vm/%pi*cos(alpha*%pi/180)-3*2*%pi*f*Ls/%pi*Io
Vm=sqrt(2)*Vs;// V
alpha=acos((Vo+3*2*%pi*f*Ls/%pi*Io)/(3*Vm/%pi))*180/%pi;// degree
// Vo=3*Vm/%pi*cos((alpha+mu)*%pi/180)-3*2*%pi*f*Ls/%pi*Io
mu=acos((Vo-3*2*%pi*f*Ls/%pi*Io)/(3*Vm/%pi))*180/%pi-alpha;// degree
printf('\n Firing angle = %.2f degree',alpha)
printf('\n Overlap angle = %.2f degree',mu)
// ans in the textbook is not accurate.
|
c3975c1db8fb6b0d3cc3755a3908fd7f4f8cfeb8 | c815504d758d414cc511e915493f71305768168d | /plot_fourier.sce | 84312cf1fb2608bd18956524e811226f9339eeb3 | [] | no_license | Vault-1814/my-somethings | ae0ee491921bf608f1876875a1860d3891851455 | 42e743cae2903c9d707958e2c5ad37fce72ff5c6 | refs/heads/master | 2020-04-27T07:24:24.590344 | 2019-03-07T08:17:16 | 2019-03-07T08:17:16 | 174,134,962 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 245 | sce | plot_fourier.sce | r = read('/home/alisa/rosws/src/youbot_arm_kinematics/scripts/youbot_furier_goal.txt', -1, 2)
plot(r(:,1), r(:,2))
scf
r = read('/home/alisa/rosws/src/youbot_arm_kinematics/scripts/youbot_furier_mes.txt', -1, 4)
plot(r(:,4), [r(:,1), r(:,2)])
|
9c60c10f0aa92c8fcda63b1026f6be503181703d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1898/CH1/EX1.13/Ex1_13.sce | d1f05056a50cecd5bba6a6a62f238ade28e27081 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,297 | sce | Ex1_13.sce |
clear all; clc;
disp("Scilab Code Ex 1.13 : ")
//Given:
shear_allow = 90; //MPa
tensile_allow = 115; //MPa
l_AP = 2; //m
l_PB = 1; //m
resultant_A = 5.68; //kN
resultant_B = 6.67; //kN
v_a = 2.84; //kN
v_b = 6.67; //kN
//Diameter of the Pins:
A_A = (v_a*10^3)/(shear_allow*10^6); //Area of pin A
da = (sqrt((4*A_A)/%pi))*10^3 // d = (square root of(area*4/pi)) in mm
A_B = (v_b*10^3)/(shear_allow*10^6) ; //Area of pin B
db = (sqrt((4*A_B)/%pi))*10^3 // Area = (%pi\4)d^2 in mm^2
chosen_da = ceil(da);
chosen_db = ceil(db);
//Diameter of Rod:
A_bc = (resultant_B*10^3)/(tensile_allow*10^6); //Area of BC
dbc = (sqrt((4*A_bc)/%pi)*10^3); // Area = %pi\4)d^2
chosen_dbc = ceil(dbc);
//Displaying Results:
printf ("\n\n The diameter of pin A = %.3f mm",da);
printf ("\n The diameter of pin B = %.3f mm",db);
printf ("\n The diameter of rod BC = %.2f mm",dbc);
printf ("\n\n\nThe chosen diameters are: ");
printf ("\n The diameter of pin A = %.3f mm",chosen_da);
printf ("\n The diameter of pin B = %.3f mm",chosen_db);
printf ("\n The diameter of rod BC = %.2f mm",chosen_dbc);
//-----------------------------------------------------------------------END--------------------------------------------------------------------
|
383bfb6f417ad46bbc7146d99742ee8f5f89e82f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1835/CH4/EX4.11/Ex4_11.sce | 8377b38b356caef2d9de6ec00abe8f054232a08e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 702 | sce | Ex4_11.sce | //Chapter-4, Illustration 11, Page 142
//Title: Gears and Gear Drivers
//=============================================================================
clc
clear
//Input data
Ta=40// no of teeth on gear A
Td=90// no of teeth on gear D
//Calculations
Tb=(Td-Ta)/2// no of teeth on gear B
Tc=Tb// no of teeth on gear C
//
//x+y=-1
//-40x+90y=45
A=[1 1
-Ta Td]//Coefficient matrix
B=[-1
(Td/2)]//Constant matrix
X=inv(A)*B//Variable matrix
//
//x+y=-1
//-40x+90y=0
A1=[1 1
-Ta Td]//Coefficient matrix
B1=[-1
0]//Constant matrix
X1=inv(A1)*B1//Variable matrix
disp(X(2))
printf('speed of the arm = %.3f revolution clockwise',X1(2))
|
a15a7089513513e3bd1aaa1e2feaf87684b23a9f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2528/CH9/EX9.4/Ex9_4.sce | 7a5520e8b2c5d6a2d46d705b13b003c965557cc5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 324 | sce | Ex9_4.sce | // Chapter9
// value of Rf
// Page.No-313
// Example9_4
//Figure 9.15
// Given
clear;clc;
C=0.1*10^-6; //in F
R=1000; //in Ohm
Av=-29;
Rf=-Av*R;
printf("\n The value for Rf is = %.0f Ohm\n",Rf); // Result
f=1/(2*%pi*6^0.5*R*C);
printf("\n The frequency ,fo = %.0f Hz\n",f); // Result
|
a08e6b2a1366bdb6f76506e25f8f2021d08345b1 | 0638c49154d639c75a74210f25773d78f97f619a | /code/scilab/TestANSver1.sce | 5cd800dc8cadeb9c88d07e8d8f687cbbab1673f0 | [] | no_license | orlando26/Tesis | 2143bdb95e401884e07e92c8b8c35532796159c8 | 2248289f7c343045ba518762266da637f388877d | refs/heads/master | 2020-12-31T00:54:16.022300 | 2017-03-30T20:55:34 | 2017-03-30T20:55:34 | 80,588,772 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,546 | sce | TestANSver1.sce |
//Neural computation
//basic functions
function [VO]=VDIS(e,VI)
TE=max(size(VI));
VO=zeros(1,TE);
for elem=1:TE
VO(elem)=e;
end
endfunction
function [MO]=MDIS(e,MI)
[TR,TC]=size(MI);
MO=zeros(TR,TC);
for r=1:TR
for c=1:TC
MO(r,c)=e;
end
end
endfunction
function s=SumM(M)
[TR,TC]=size(M);
s=0;
for r=1:TR
for c=1:TC
s = s + M(r,c);
end
end
endfunction
function y=FGauss(x,cm,lambda)
y=exp(-(x-cm)^2/lambda);
endfunction
function [MO]=EVFGauss(MI,cm,lambda)
//Gaussian function for all the elements of the matrix
[TR, TC]=size(MI);
MO=zeros(TR,TC);
for r=1:TR
for c=1:TC
MO(r,c)=FGauss(MI(r,c),cm,lambda);
end
end
endfunction
function [MO]=MADD(MI1,MI2)
[TR, TC]=size(MI1);
MO=zeros(TR,TC);
for r=1:TR
for c=1:TC
MO(r,c)=MI1(r,c)+MI2(r,c);
end
end
endfunction
function [MO]=MSUB(MI1,MI2)
[TR, TC]=size(MI1);
MO=zeros(TR,TC);
for r=1:TR
for c=1:TC
MO(r,c)=MI1(r,c)-MI2(r,c);
end
end
endfunction
function [MO]=MMUL(MI1,MI2)
[TR, TC]=size(MI1);
MO=zeros(TR,TC);
for r=1:TR
for c=1:TC
MO(r,c)=MI1(r,c)*MI2(r,c);
end
end
endfunction
function [row,column]=CMC(MI)
[TR, TC]=size(MI);
//Rows
s1=0;s2=0;
for r=1:TR
aux=0;
for c=1:TC
aux = MI(r,c) + aux;
end
s1 = s1 + aux*r;
s2 = s2 + aux;
end
row = s1/s2;
//Column
s1=0;s2=0;
for c=1:TC
aux=0;
for r=1:TR
aux = MI(r,c) + aux;
end
s1 = s1 + aux*c;
s2 = s2 + aux;
end
column=s1/s2;
endfunction
//*************** Artificial Neural System ******
function [sa]=NGauss(sa)
lambda=0.14;
cm=0.25;
sa=FGauss(sa,cm,lambda);
endfunction
function [y,sa]=ANSV1(e,sa)
W1=[0.1 0.2 0.3; 0.6 0.5 0.4; 0.7 0.8 0.9];
//W2=[0.1 0.2 0.3; 0.6 0.5 0.4; 0.7 0.8 0.9];
W2=[0 0.0182 0; 0.6814 0 0.2645; 0 0.9984 0];
//A1=[-0.3 -0.7 0.48; -0.7 -0.2 0.5; 0.2 0 0.9];
//A1=[0 0 0; 0.350 1 0; 0.350 0 0.550];
A1=[0 0 1;1 0 1; 0 1 0];
Maux=zeros(3,3);
[MO]=MDIS(e,Maux);
[MO1]=MSUB(MO,W1);
[sa]=NGauss(sa);
[MO]=MDIS(sa,Maux);
[MO2]=MSUB(MO,W2);
[Maux]=MADD(MO1,MO2);
[MO]=EVFGauss(Maux,0.0,0.15);
[MO1]=MMUL(MO,A1);
s1=SumM(MO1);
s2=SumM(MO);
y=s1/(s2+0.00000052);
endfunction
function [Rep]=plotbehavior(e)
sa=rand();
Rep=[];
for ti=1:250
[y,sa]=ANSV1(e,sa);
Rep=[Rep; y];
end
endfunction
//Second experiment
function [MO,sa]=ANSV2(e,sa)
W1=[0.1 0.2 0.3; 0.6 0.5 0.4; 0.7 0.8 0.9];
W2=[0.1 0.2 0.3; 0.6 0.5 0.4; 0.7 0.8 0.9];
//A1=[-0.3 -0.7 0.48; -0.7 -0.2 0.5; 0.2 0 0.9];
//A1=[0 0 0; 0.350 1 0; 0.350 0 0.550];
A1=[0.1 0.1 0.1; 0.10 1 0.1; 0.1 0 0.1];
Maux=zeros(3,3);
[MO]=MDIS(e,Maux);
[MO1]=MSUB(MO,W1);
[sa]=NGauss(sa); //Chaotic neuron
[MO]=MDIS(sa,Maux);
[MO2]=MSUB(MO,W2);
[Maux]=MADD(MO1,MO2);
[MO]=EVFGauss(Maux,0.0,0.15);
[MO]=MMUL(MO,A1);
//[row,column]=CMC(MO);
//CM=[row column];
endfunction
function [Rep]=plotbehavior2(e)
//sa=rand();
sa=0;
Rep=[];
for ti=1:500
[MO,sa]=ANSV2(e,sa);
Rep=[Rep; MO(2,2)];
end
//[Rep]=plotbehavior2(0.1);
//plot(Rep(20:2500,1),Rep(20:2500,2),':*m')
endfunction
function [Rep]=plotbehavior3(e)
//sa=rand();
sa=0;
Rep=[];
for ti=1:450
[MO,sa]=ANSV2(e,sa);
Rep=[Rep; MO(:,1:2)];
end
for ti=1:50
[MO,sa]=ANSV2(e,sa);
//Rep=[Rep; MO(:,1:2)];
Rep=[Rep; MO(2,1:2)];
end
//[Rep]=plotbehavior2(0.1);
//plot(Rep(20:2500,1),Rep(20:2500,2),':*m')
endfunction
function [Rep]=plotbehavior4(e)
sa=rand();
Rep=[];
for ti=1:250
[y,sa]=ANSV1(e,sa);
Rep=[Rep; y];
end
//A perturbation is given
sa=0;
for ti=1:25
[y,sa]=ANSV1(e,sa);
Rep=[Rep; y];
end
endfunction
function [Rep]=plotbehavior5()
//Applying different stimulus
sa=rand();
Rep=[];
for ti=1:100
[y,sa]=ANSV1(0.1,sa);
Rep=[Rep; y];
end
for ti=1:100
[y,sa]=ANSV1(0.5,sa);
Rep=[Rep; y];
end
for ti=1:100
[y,sa]=ANSV1(0.9,sa);
Rep=[Rep; y];
end
endfunction
function Report3()
[Rep]=plotbehavior(0.1);
Xk=Rep(50:250);
Xkmo=Rep(49:249);
plot(Xkmo,Xk,':*b');
[Rep]=plotbehavior(0.5);
Xk=Rep(50:250);
Xkmo=Rep(49:249);
plot(Xkmo,Xk,'-*g');
[Rep]=plotbehavior(0.9);
Xk=Rep(50:250);
Xkmo=Rep(49:249);
plot(Xkmo,Xk,'.-*k');
legend('e=0.1','e=0.5','e=0.9')
title('Performance of dynamic neural system with different stimmulus (e)')
xlabel('X(k-1');
ylabel('Y(k-1');
endfunction
function Report4()
[Rep]=plotbehavior4(0.2);
Xk=Rep(50:250);
Xkmo=Rep(49:249);
plot(Xkmo,Xk,':*b')
Xk=Rep(250:275);
Xkmo=Rep(249:274);
plot(Xkmo,Xk,':*g')
Xk=Rep(50:250);
Xkmo=Rep(49:249);
plot(Xkmo,Xk,':*b')
title('Performance of dynamic neural system under perturbation (e=0.2)')
xlabel('X(k)')
ylabel('X(k+1)')
endfunction
function Report5()
[Rep]=plotbehavior5();
Xk=Rep(2:300);
Xkmo=Rep(1:299);
plot(Xkmo,Xk,':*b')
Xk=Rep(20:100);
Xkmo=Rep(19:99);
plot(Xkmo,Xk,':or')
Xk=Rep(120:200);
Xkmo=Rep(119:199);
plot(Xkmo,Xk,':or')
Xk=Rep(220:300);
Xkmo=Rep(219:299);
plot(Xkmo,Xk,':or')
title('Performance of dynamic neural system considering continuous change of stimulus')
xlabel('X(k)')
ylabel('X(k+1)')
endfunction
|
eeb41088019dde88338fd950c67f287c08a1cbdd | 449d555969bfd7befe906877abab098c6e63a0e8 | /812/CH4/EX4.10/4_10.sce | 39073d8e601e7a61e1d55f0bd0981b15409b2fd1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 595 | sce | 4_10.sce | //Net force//
pathname=get_absolute_file_path('4.10.sce')
filename=pathname+filesep()+'4.10-data.sci'
exec(filename)
u1=V-U
u2=(V-U)*cosd(theta)
v2=(V-U)*sind(theta)
V1=V-U
V2=V1
//X component of moment equation(in N):
function y=f(A),y=u1*-(d*V1),endfunction
function z=g(A),z=u2*d*V2,endfunction
Rx=intg(0,A,f)+intg(0,A,g)
//Y component of moment equation(in N):
function a=h(A),a=v2*d*V1,endfunction
Ry=intg(0,A,h) //This is after neglecting weight of vane and the water.
printf("\n\nRESULTS\n\n")
printf("\n\nNet force on the vane: %.3f i+%.2f j kN\n\n",Rx/1000,Ry/1000)
|
4924f0f041e597186e5b3407b0ac0d1697557bfb | 25b5cbd88b9b1c4dd4c6918be2a988027dee667e | /doc/scripts/unicycle/discrete_unicycle.sce | 03addfebf81938d07f0c871400808cb78e410a3f | [] | no_license | nkigen/nxtLEGO | d592720aabdd4da83f3463719135e4e6072aa6dd | 7ce91955744756bfeb32b4b619b80cc26e83afef | refs/heads/master | 2020-05-20T03:22:49.327962 | 2015-03-01T17:35:27 | 2015-03-01T17:35:27 | 17,963,092 | 0 | 0 | null | 2014-07-17T18:41:48 | 2014-03-21T00:17:33 | C | UTF-8 | Scilab | false | false | 98 | sce | discrete_unicycle.sce | //Discrete
global uniKcD;
uniKcD = 4.1;
uniC = (s+0.1)/(s+2.1);
uniGD = ss2tf(dscr(uniC,uni_Tc));
|
f6c081be8615d5f9daccfccf22985ac953b30b64 | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/disassembler/sbci.instr.tst | 14b518655ca3754fc24134a1db7c1f5ed28d3998 | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,234 | tst | sbci.instr.tst | ; @Harness: disassembler
; @Result: PASS
section .text size=0x00000054 vma=0x00000000 lma=0x00000000 offset=0x00000034 ;2**0
section .data size=0x00000000 vma=0x00000000 lma=0x00000000 offset=0x00000088 ;2**0
start .text:
label 0x00000000 ".text":
0x0: 0x0f 0x47 sbci r16, 0x7F ; 127
0x2: 0x1f 0x47 sbci r17, 0x7F ; 127
0x4: 0x2f 0x47 sbci r18, 0x7F ; 127
0x6: 0x3f 0x47 sbci r19, 0x7F ; 127
0x8: 0x4f 0x47 sbci r20, 0x7F ; 127
0xa: 0x5f 0x47 sbci r21, 0x7F ; 127
0xc: 0x6f 0x47 sbci r22, 0x7F ; 127
0xe: 0x7f 0x47 sbci r23, 0x7F ; 127
0x10: 0x8f 0x47 sbci r24, 0x7F ; 127
0x12: 0x9f 0x47 sbci r25, 0x7F ; 127
0x14: 0xaf 0x47 sbci r26, 0x7F ; 127
0x16: 0xbf 0x47 sbci r27, 0x7F ; 127
0x18: 0xcf 0x47 sbci r28, 0x7F ; 127
0x1a: 0xdf 0x47 sbci r29, 0x7F ; 127
0x1c: 0xef 0x47 sbci r30, 0x7F ; 127
0x1e: 0xff 0x47 sbci r31, 0x7F ; 127
0x20: 0x0f 0x4f sbci r16, 0xFF ; 255
0x22: 0x00 0x40 sbci r16, 0x00 ; 0
0x24: 0x0f 0x47 sbci r16, 0x7F ; 127
0x26: 0x0f 0x43 sbci r16, 0x3F ; 0x63
0x28: 0x0f 0x41 sbci r16, 0x1F ; 0x31
0x2a: 0x0f 0x40 sbci r16, 0x0F ; 0x15
0x2c: 0x07 0x40 sbci r16, 0x07 ; 7
0x2e: 0x03 0x40 sbci r16, 0x03 ; 3
0x30: 0x01 0x40 sbci r16, 0x01 ; 1
0x32: 0x00 0x4f sbci r16, 0xF0 ; 240
0x34: 0x08 0x47 sbci r16, 0x78 ; 120
0x36: 0x0c 0x43 sbci r16, 0x3C ; 0x60
0x38: 0x0e 0x41 sbci r16, 0x1E ; 0x30
0x3a: 0x0c 0x4c sbci r16, 0xCC ; 204
0x3c: 0x06 0x46 sbci r16, 0x66 ; 102
0x3e: 0x03 0x43 sbci r16, 0x33 ; 0x51
0x40: 0x09 0x41 sbci r16, 0x19 ; 0x25
0x42: 0x0c 0x40 sbci r16, 0x0C ; 0x12
0x44: 0x06 0x40 sbci r16, 0x06 ; 6
0x46: 0x0a 0x4a sbci r16, 0xAA ; 170
0x48: 0x05 0x45 sbci r16, 0x55 ; 0x85
0x4a: 0x0a 0x42 sbci r16, 0x2A ; 0x42
0x4c: 0x05 0x41 sbci r16, 0x15 ; 0x21
0x4e: 0x0a 0x40 sbci r16, 0x0A ; 0x10
0x50: 0x05 0x40 sbci r16, 0x05 ; 5
0x52: 0x02 0x40 sbci r16, 0x02 ; 2
start .data:
|
95616bdbe21225ab4231bb537da7f1becb1b604e | 449d555969bfd7befe906877abab098c6e63a0e8 | /545/CH3/EX3.4/ch_3_eg_4.sce | 90ed748ec6ed6a0fa3c58575afd04e0f4d066d24 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,002 | sce | ch_3_eg_4.sce | a12=437.98*4.186, a21=1238*4.186, v1=76.92, v2=18.07
//calc of BPP
clc
disp("the soln of eg 3.4-->");
t=100
x1=.5, R=8.314
a1=16.678,b1=3640.2,c1=219.61
a2=16.2887,b2=3816.44,c2=227.02
x2=1-x1
p1sat=exp(a1-b1/(c1+t))
p2sat=exp(a2-b2/(c2+t))
h12=v2*exp(-a12/(R*(t+273.15)))/v1
h21=v1*exp(-a21/(R*(t+273.15)))/v2
m=h12/(x1+x2*h12)-h21/(x2+x1*h21)
g1=exp(-log(x1+x2*h12)+x2*m)
g2=exp(-log(x2+x1*h21)-x1*m)
p=x1*g1*p1sat+x2*g2*p2sat
disp(p,"boiling point pressure in kPa is");
//calc of BPT
p=101.325,x1=.5, e=1
x2=1-x1
t1sat=b1/(a1-log(p))-c1
t2sat=b2/(a2-log(p))-c2
tnew=x1*t1sat+x2*t2sat
while e>10^-4 do told=tnew,
p1sat=exp(a1-b1/(c1+told)),p2sat=exp(a2-b2/(c2+told)),
p1sat=p/(g1*x1+g2*x2*(p2sat/p1sat))
tnew=b1/(a1-log(p1sat))-c1,
e=abs(tnew-told)
end
disp(tnew,"boiling point temperature in Celsius is");
//calc of dpp
e1=1, e2=1, e3=1, pold=1
t=100,y1=.5
y2=1-y1
p1sat=exp(a1-b1/(c1+t))
p2sat=exp(a2-b2/(c2+t))
g1=1, g2=1, g11=1, g22=1
pnew=1/(y1/(g1*p1sat)+y2/(g2*p2sat))
while e1>.0001 do pold=pnew, while e2>.0001& e3>.0001 do g1=g11,g2=g22,
x1=y1*pold/(g1*p1sat)
x2=y2*pold/(g2*p2sat)
x1=x1/(x1+x2)
x2=1-x1
h12=v2*exp(-a12/(R*(t+273.15)))/v1
h21=v1*exp(-a21/(R*(t+273.15)))/v2
m=h12/(x1+x2*h12)-h21/(x2+x1*h21)
g11=exp(-log(x1+x2*h12)+x2*m)
g22=exp(-log(x2+x1*h21)-x1*m)
e2=abs(g11-g1), e3=abs(g22-g2)
end
pnew=1/(y1/(g1*p1sat)+y2/(g2*p2sat))
e1=abs(pnew-pold)
end
disp(pnew,"dew point pressure in kPa is");
//calc dpt
p=101.325,y1=.5, e4=1, e5=1,e6=1
y2=1-y1
t1sat=b1/(a1-log(p))-c1
t2sat=b2/(a2-log(p))-c2
tnew=y1*t1sat+y2*t2sat
g11=1, g22=1
while e4>.0001 do told=tnew,
p1sat=exp(a1-b1/(c1+told))
p2sat=exp(a2-b2/(c2+told)), while e5>.0001 & e6>.0001 do g1=g11, g2=g22,
x1=y1*p/(g1*p1sat)
x2=y2*p/(g2*p2sat)
x1=x1/(x1+x2)
x2=1-x1
h12=v2*exp(-a12/(R*(t+273.15)))/v1
h21=v1*exp(-a21/(R*(t+273.15)))/v2
m=h12/(x1+x2*h12)-h21/(x2+x1*h21)
g11=exp(-log(x1+x2*h12)+x2*m)
g22=exp(-log(x2+x1*h21)-x1*m)
e5=abs(g11-g1), e6=abs(g22-g2)
end
p1sat=p*(y1/g1+y2*p1sat/(g2*p2sat))
tnew=b1/(a1-log(p1sat))-c1
e4=abs(tnew-told)
end
disp(tnew,"dew point temperature in Celsius is"); |
630fe6cc760d00985d344c990b49a51ad1645d84 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH35/EX35.2/Example35_2.sce | ffd06e8ededdb4f60630afbc1c0de820f2dee815 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 246 | sce | Example35_2.sce | //Given that
n1 = 1.6
n2 = 1.00
R = -3.0 //in mm
i = -5.0 //in mm
//Sample Problem 35-2
printf("**Sample Problem 35-2**\n")
//n1/d + n2/i = (n2-n1)/R
d = n1/(- n2/i + (n2-n1)/R)
printf("The real depth of the mosquito is %1.2fmm", d) |
722e08897363b68a3d3262909cc2c59201e464ec | 449d555969bfd7befe906877abab098c6e63a0e8 | /2354/CH11/EX11.3/11_3.sce | b9fc803e98eaa8f07c3bbf8a20380866c83eaab8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 366 | sce | 11_3.sce | //example 11.3
clc; funcprot(0);
// Initialization of Variable
b=2.0;
a=4.0;
gamm=9.8*10^3;//gamma
pi=3.14;
Fr=integrate('gamm*sin(pi*60/180)*b*y','y',6,10);
yr=gamm*sin(pi*60/180)/Fr*b*integrate('y^2','y',6,10);
disp(yr,"location of resultant weight in m");
//alternatively
yr1=b*a^3/12/b/a/8+8;
disp(yr1,"location of resultant weight in m");
clear()
|
97c2efc74fc35673f36b539e2a5b452931749347 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1967/CH5/EX5.5/5_5.sce | 60c22a7314e3f2f58bb15c42366056e4f8b7bb21 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 295 | sce | 5_5.sce | clc
//initialisation of variables
clear
T1= 25 //C
T2= 100 //C
dH1= -57.8 //kcal
Cp1= 8.03 //cal deg^-1
Cp2= 6.92 //cal deg^-1
Cp3= 7.04 //cal deg^-1
//RESULTS
Cp= Cp1-(Cp2+0.5*Cp3)
dH2= Cp*10^-3*(T2-T1)+dH1
//RESULTS
printf ('Stanadard heat of formation = %.2f kcal mole^-1',dH2)
|
a2b4a4b3116e0de29ed14a8f0dbd74cb9a3d954b | 92bc4c8555d4d13922df9f13a611b76b99808b42 | /ising_model/ising.sce | 5de70b0a8f264b561f99ddea0b73dbd048740a21 | [] | no_license | bertolinocastro/topics-in-computational-physics | f464d7c449715ba9ed04094c0fca985cd0adfcb0 | 4b64f6cdbf3f13823bdd1d59e39db8c753c8f5fd | refs/heads/master | 2020-04-29T08:52:32.230156 | 2019-05-26T01:57:12 | 2019-05-26T01:57:12 | 176,002,283 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 483 | sce | ising.sce | // importing all codes
exec('ising.sci');
// running simulation for temperatures
temperatures = [.5, 2.27, 5.]
styles = ['b-', 'r-', 'g-']
for i=1:length(temperatures) do
T = temperatures(i)
// [lattice, energies, spins] = ising(n=200, nsteps=500000, H=0, J=1, T=1)
[lattice, energies, spins] = ising(n=200, nsteps=50000, H=0, J=1, T=T)
spins = spins ./ 200^2 // taking average spin per site
plot(1:length(spins),spins,styles(i))
end
legend(string(temperatures))
|
43eaacd1bc2c23929773d05af28d03123a5eb49f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2609/CH1/EX1.7/ex_1_7.sce | fa4c6fa23c56aa74dd05bd93b2103913b642d535 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 366 | sce | ex_1_7.sce | //Ex 1.7
clc;
clear;
close;
format('v',5);
Iout=6;//micro A
IREF=1.2;//mA
VBE2=0.7;//V
VT=26;//mV
Beta=120;//unitless
VCC=20;//V
R=(VCC-VBE2)/IREF;//kohm
disp(R,"Value of resistance R(kohm)")
IC1=Iout;//micro A
IC2=(IREF-IC1*10^-3/Beta)/(1+1/Beta);//mA
RS=1/(IC1*10^-6)*VT*10^-3*log(IC2*1000/IC1);//ohm
disp(RS/1000,"Value of resistance RS(kohm)");
|
b7e5173ba5062adcbbe3271c68bf653b73edda3b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1595/CH4/EX4.4/ex4_4.sce | ca9ac37fcd512aa344c17c2d84d68b78239bd446 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 453 | sce | ex4_4.sce | //Single-Sideband Communications : example 4-4 : (pg 187)
a=455;
x=2000+1;
y=2000+3;
c=2000+455;
d=2455-2001;
e=2455-2003;
f=455-454;
g=455-452;
mprintf("\nRF and first mixer input: \n %.f kHz \n%.f kHz",x,y);
printf("\nlocal oscillator = %.f kHz",c);
mprintf("\nFirst mixer output: \n%.f kHz \n%.f kHz",d,e);//IF amp and second mixer input
printf("\nBFO = %.f kHz",a);
mprintf("\nSecond mixer output & audio amp: \n%.f kHZ \n%.f kHz",f,g); |
7ea4f51b310d62bcc5523e17d996e2f52ccab4e3 | 76b8c4ba0a69d3281b658f0fcf0ec56a96e27581 | /Workspace/Mission_A4.sce | 0124bc8506044683b50af824332a66d2c953494d | [] | no_license | RomainJunca/ExoLife | 0824fa566b38c5061f77592df6c38c3614dd8619 | 8da1524432d0ef1137d5e73e80cec339e6ec1c33 | refs/heads/master | 2020-05-25T14:08:07.353617 | 2017-03-20T08:31:32 | 2017-03-20T08:31:32 | 84,937,995 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 966 | sce | Mission_A4.sce | //Mission A4
//On récupère les deux images.
pathname = "C:\Users\Jean-Guillaume P\Documents\Exia\A2\Projets\Imagerie\ExoLife\Images\Mission_A\Jupiter1.pbm";
pathname2 = "C:\Users\Jean-Guillaume P\Documents\Exia\A2\Projets\Imagerie\ExoLife\Images\Mission_A\Jupiter2.pbm";
jupiter1 = readpbm(pathname);
jupiter2 = readpbm(pathname2);
//On "extrait" le bruit des images.
bruitJupiter = soustractionImage(jupiter1, jupiter2);
//On soustrait le bruit obtenu précédemment de l'image de Jupiter.
jupiterFinal1 = soustractionImage(jupiter1, bruitJupiter);
//On "affine" l'image avec le filtre médian, faisant ainsi disparaître le bruit.
jupiterFinal2 = filtreMedian(jupiterFinal1);
// Affichage
figure;
display_gray(bruitJupiter);
figure;
display_gray(jupiterFinal1);
figure;
display_gray(jupiterFinal2);
// Sauvegarde de l'image
writepbm(jupiterFinal2, "C:\Users\Jean-Guillaume P\Documents\Exia\A2\Projets\Imagerie\ExoLife\Rendus\MissionA4.pbm");
|
18471a42141a229a4d3b285ac76eaf06ba189f56 | b4bbf9b2a475b5cf299b30bf5e0c621e32f6c832 | /test/assign1/tie-small.tst | c84e26116e883bce1193e0ac0b7cf7cebf413e70 | [] | no_license | apetresc/castro | 1ec1ac1307542487aa1be14c335170f7a1347bf2 | 843165af7c946188a2dd772384cd2d579723c99d | refs/heads/master | 2022-02-20T14:28:41.962893 | 2019-10-07T08:41:59 | 2019-10-07T08:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 438 | tst | tie-small.tst | boardsize 4
play w g4
play b f5
play w e6
play b d7
play w c6
play b d6
play w e5
play b f4
play w g3
play b g2
play w f3
play b e4
play w d5
play b c5
play w b5
play b a4
play w b4
play b c4
play w d4
play b e3
play w f2
play b g1
play w f1
play b e2
play w d3
play b c3
play w b3
play b a3
play w a2
play b b2
play w c2
play b d2
play w e1
play b d1
play w c1
play b b1
1 havannah_winner
#? [none]
play w a1
2 havannah_winner
#? [draw]
|
5ec741469db5b7f00924a14877510e5895f000a5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /964/CH25/EX25.6/25_6.sce | 9bc14bc872158bcc3620b7f5cf675c9fce814c18 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 793 | sce | 25_6.sce | //clc()
//f'(x,y) = -2*x^3 + 12*x^2 -20*x + 8.5
//f(x,y) = -x^4 / 2 + 4*x^3 - 10*x^2 + 8.5*x + 1
h = 0.5;
x = 0:h:4;
y1 = -x^4 / 2 + 4*x^3 - 10*x^2 + 8.5*x + 1;
y(1) = 1;
disp(x,"x =")
disp(y1,"true value of y =")
for i = 1:8
k1(i) = -2*x(i)^3 + 12*x(i)^2 -20*x(i) + 8.5;
x1(i) = x(i) + h/2;
k2(i) = -2*x1(i)^3 + 12*x1(i)^2 -20*x1(i) + 8.5;
y(i+1) = y(i) + k2(i)*h;
e(i) = (y1(i) - y(i))*100/y1(i);
end
disp(y(1:9),"y by midpoint method")
disp(e,"error = ")
for i = 1:8
k1(i) = -2*x(i)^3 + 12*x(i)^2 -20*x(i) + 8.5;
x(i) = x(i) + 3*h/4;
k2(i) = -2*x(i)^3 + 12*x(i)^2 -20*x(i) + 8.5;
y(i+1) = y(i) + (k1(i)/3 + 2*k2(i)/3)*h;
e(i) = (y1(i) - y(i))*100/y1(i);
end
disp(y(1:9),"y by second order Ralston RK")
disp(e,"error = ")
|
a5353353b74d744f058f08ac0c1c44ae73221d00 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2096/CH1/EX1.35.a/ex_1_35.sce | 44118a263f2868abe8c9fcb6e1da63b07fcbe64b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 438 | sce | ex_1_35.sce | //Example 1.35// damping ration,damped natural frequency ,static sensivity and time constant
clc;
clear;
close;
k=1;//static sensivity
wn=sqrt(30);//natural frequency in rad/s
y=(0.1*wn)/2;//damping ratio
wd=wn*sqrt(1-y^2);//damped natural frequency in rad/s
t=(1/wn);//time constant in seconds
disp(y,"damping ratio is")
disp(wd,"damped natural frequency in rad/s is")
disp(k,"static sensivity is")
disp(t,"time constant in seconds is")
|
acd118954c8ba671ab5c7dc486bad949b0a581c3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1092/CH12/EX12.10/Example12_10.sce | bb2d880a43027408a865d5b08ffa1616262866cb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,515 | sce | Example12_10.sce | // Electric Machinery and Transformers
// Irving L kosow
// Prentice Hall of India
// 2nd editiom
// Chapter 12: POWER,ENERGY,AND EFFICIENCY RELATIONS OF DC AND AC DYNAMOS
// Example 12-10
clear; clc; close; // Clear the work space and console.
// Given data
V = 125 ; // Voltage rating of genrator in volt
P_o = 12500 ; // Power rating of genrator in W
P_hp = 20 ; // Power rating of motor in hp
R_a = 0.1 ; // Armture resistance in ohm
R_f = 62.5 ; // Field resistance in ohm
P_var = 1040 ; // Rated variable electric loss in W
// Calculations
// case a
P_in = P_hp * 746 ; // Power input to generator in W
eta = P_o / P_in * 100 ; // Efficiency
// case b
V_f = V ; // Voltage across shunt field wdg in volt
P_sh_loss = (V_f)^2 / R_f ; // Shunt field loss in W
// case c
V_L = V ;
I_L = P_o / V_L ; // Line current in A
I_f = V_f / R_f ; // Field current in A
I_a = I_L + I_f ; // Armature current in A
E_g = V_L + I_a*R_a ; // Generated EMF in volt
P_d1 = E_g * I_a ; // Generated electric power in W
P_f = V_f * I_f ;
P_d2 = P_o + P_var + P_f ; // Generated electric power in W
// case d
P_d = P_d1;
P_r = P_in - P_d ; // Rotational power losses in W
// case e
P_k = P_r + V_f*I_f ; // Constant losses in W
Ia = sqrt(P_k/R_a); // Armature current in A for max.efficiency
// case f
I_a_rated = I_a ; // Rated armature current in A
LF = Ia / I_a ; // Load fraction
// case g
rated_output = 12500 ; // Rated output in kW
// Maximum efficiency
eta_max = ( LF * rated_output ) / ( ( LF * rated_output ) + (2*P_k) ) * 100 ;
// Display the results
disp("Example 12-10 Solution : ");
printf(" \n a: Efficiency :\n η = %f percent ≃ %.1f percent \n ",eta,eta);
printf(" \n b: Shunt field loss :\n (V_f)^2/R_f = %d W \n ",P_sh_loss);
printf(" \n c: Line current : I_L = %d A \n\n Field current : I_f = %d A",I_L,I_f);
printf(" \n\n Armature current : I_a = %d A ",I_a);
printf(" \n\n Generated EMF : E_g = %.1f V ",E_g);
printf(" \n\n Generated electric power : ");
printf(" \n 1. P_d = %d W \n\n 2. P_d = %d W \n ",P_d1,P_d2);
printf(" \n d: Rotational power losses :\n P_r = %f W ≃ %.f W \n",P_r,P_r);
printf(" \n e: Constant losses : P_k = %f W ≃ %.f W \n ", P_k ,P_k);
printf(" \n Armature current for max.efficiency : I_a = %.1f A \n ",Ia);
printf(" \n f: Load fraction : L.F. = %.2f \n ",LF);
printf(" \n g: Maximum efficiency : η = %f percent ≃ %.2f percent",eta_max,eta_max);
|
128f527208bdd2085bd17760dd7833fea0d34dda | 449d555969bfd7befe906877abab098c6e63a0e8 | /2102/CH2/EX2.7/exa_2_7.sce | ff2c6c48cf98ba2c395db7e6804e4e205ac1b041 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 371 | sce | exa_2_7.sce | // Exa 2.7
clc;
clear;
close;
// Given data
miu_n= 3900;// in cm^2/Vs
miu_p= 1900;// in cm^2/Vs
ni= 2.5*10^10;// in /cm^3
Nge= 4.41*10^22;// in /cm^3
q=1.6*10^-19;// in C
N_D= Nge/10^8;// in /cm^3
n=N_D;// approx
p= ni^2/N_D;// in /cm^2
sigma= q*n*miu_n;// in (Ωcm)^-1
rho= 1/sigma;// in Ωcm
disp(rho,"Resistivity of the doped germanium in Ωcm is : ")
|
e35cde014b141a5a2f7999be6e5f2d9d46945e51 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronic_Measurements_And_Instrumentation_P._Sharma_876.zip/Electronic_Measurements_And_Instrumentation_P._Sharma_876/CH1/EX1.3/Ex1_3.sce | 3051fec6e1272bab42a1426073e51f751ab3b3ef | [] | 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 | 570 | sce | Ex1_3.sce | errcatch(-1,"stop");mode(2);//caption:find (a)system accuracy(b)system precision
//Ex1.3
Tmin=100.3//minimum measured temperature at true value(in degree centigrate)
Tmax=100.5//maximum measured temperature at true value(in degree centigrate)
T1=100.4//measured temperature at true value(in degree centigrate)
T2=100.3//measured temperature at true value(in degree centigrate)
Tt=100//true value(in degree centigrate)
A=((Tmax-Tt)/Tt)*100
disp(A,'(a)system accuracy(in %)=')
M=(T1+Tmin+Tmax+T2)/4
Md=Tmax-M
disp(Md,'(b)system precision(in %)=')
exit();
|
e18174cff33ff1f67aee29084f3010768c1b1522 | 449d555969bfd7befe906877abab098c6e63a0e8 | /377/CH4/EX4.1/4_1.sce | b15d48ced1c599d1b434295158fe3ef7954b31d4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | sce | 4_1.sce | printf('K(ph)=2*pi/λph\n=ħ*ω/ħ*ν\n=Eg/ħ*ν'); //k-vector of a photon
Eg=(1.5)*(1.6)*(10^-19);
b=(1.05)*(10^-26); //say (ħ*ν)=b
a=(Eg)/(b);
printf('\nthe k-vector of photon for GaAs will be %f',a); |
55725bdb56e0cef4666ccf11818a8ad03411b08b | 4d006f4893193d20441423bef19f0a20798455ba | /Scilab/sobel.sce | 02b68a3de21e8ff764c0493232aa29d66555bc1d | [] | no_license | caaarllosR/ImageProcessing | b1447f7a37ac26061f1d695779d7cd723f26156a | 7c40dc31c5b3cdf028b19dbbd4d2946ef725a400 | refs/heads/master | 2020-04-08T02:57:21.980270 | 2018-11-24T16:53:43 | 2018-11-24T16:53:43 | 100,518,670 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,908 | sce | sobel.sce | clear
close
xdel(winsid()) // close all windows
clc
imOrigin = imread('images\finger.png');
[x,y] = size(imOrigin);
for i = 1:x
for j = 1:y
im(i,j) = imOrigin(i,j,1);
end
end
im2 = [cat(2, double(zeros(x,2)), double(im), double(zeros(x,2)))]; //adds 2 zeros columns to the right and left
im2 = [cat(1, double(zeros(2, y+4)), double(im2), double(zeros(2, y+4)))]; //adds 2 lines of zeros to the right and left
im2 = double(im2);
im3 = im2;
for i = 1:x+1
for j = 1:y+1
im3(i+1, j+1) = (im2(i,j)+ ...
im2(i+1,j)+ ...
im2(i+2,j)+ ...
im2(i,j+1)+ ...
im2(i+1,j+1)+ ...
im2(i+2,j+1)+ ...
im2(i,j+2)+ ...
im2(i+1,j+2)+ ...
im2(i+2,j+2))/9;
end
end
mx = [-1 -2 -1; 0 0 0; 1 2 1]; //mask
my = [-1 0 1; -2 0 2; -1 0 1];
imx = im3;
imy = im3;
for i=1:x+1
for j=1:y+1
imx(i+1, j+1) = im3(i, j) *mx(1, 1) + ...
im3(i, j+1) *mx(1, 2) + ...
im3(i, j+2) *mx(1, 3) + ...
im3(i+1, j) *mx(2, 1) + ...
im3(i+1, j+1)*mx(2, 2) + ...
im3(i+1, j+2)*mx(2, 3) + ...
im3(i+2, j) *mx(3, 1) + ...
im3(i+2, j+1)*mx(3, 2) + ...
im3(i+2, j+2)*mx(3, 3);
imy(i+1, j+1) = im3(i, j) *my(1, 1) + ...
im3(i, j+1) *my(1, 2) + ...
im3(i, j+2) *my(1, 3) + ...
im3(i+1, j) *my(2, 1) + ...
im3(i+1, j+1)*my(2, 2) + ...
im3(i+1, j+2)*my(2, 3) + ...
im3(i+2, j) *my(3, 1) + ...
im3(i+2, j+1)*my(3, 2) + ...
im3(i+2, j+2)*my(3, 3);
end
end
imMag = abs(imx)+abs(imy);
imMag = imMag(3:$-2, 3:$-2);
bigger = max(max(imMag));
[x,y] = size(imMag);
for i = 1:x
for j = 1:y
if(imMag(i,j)) > 0.20*bigger;
imMag(i,j) = 0;
else
imMag(i,j) = 255;
end
end
end
imshow(uint8(imMag));
|
7deb6b1261af64fd11af258ca54d13e4de9edbe3 | 07758ca5d5cd7f32e688a972c8f6fa90b95c617d | /COUSIN_raphael_projet_scilab/COUSIN_Raphael_ex01_caracteristiques.sce | 195c6f35276bebd7b73695b25a70459a57caa2db | [] | no_license | racousin/papers | b1bdc78837df34793448cc32fa4d650743ec1cdd | a1839b984c62c0f6cf48c7314f7d3c878b4dc4a7 | refs/heads/master | 2021-05-07T01:18:21.684265 | 2019-07-04T19:09:45 | 2019-07-04T19:09:45 | 110,237,287 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 462 | sce | COUSIN_Raphael_ex01_caracteristiques.sce | //ex1Q1
t = linspace(-1, 1, 100);
x0 = linspace (-2, 2, 5);
clf();
subplot(1, 2, 1);
xtitle( 'cas a(x) = x','t','x')
for i = 1 : 5
plot2d(t, x0(i) * exp(t) ,[i]);
end;
subplot(1,2,2);
xtitle( 'cas a(x) = -x','t','x')
for i = 1 : 5
plot2d(t, x0(i) * exp(-t), [i]);
end;
legends(['x0 = -2';'x0 = -1';'x0 = 0';'x0 = 1';'x0 = 2'],[1,2,3,4,5],opt="below");
//xs2pdf(gcf(),"Q1");
|
4a85dab64870c6562bbf6db434dafcee9e0fac98 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set9/s_Engineering_Physics_(volume_2)_Dr._K._V._Kumar_2258.zip/Engineering_Physics_(volume_2)_Dr._K._V._Kumar_2258/CH4/EX4.2/4_2.sce | b814747be2cb6f70a29513e454edf0c0b251c933 | [] | 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 | 250 | sce | 4_2.sce | errcatch(-1,"stop");mode(2);;
;
// To calculate the relative permeability of ferromagnetic material
H=220; //field in amp/m
M=3300; //magnetisation in amp/m
chi=M/H;
mew_r=1+chi;
printf("relative permeability is %f",mew_r);
exit();
|
4ec4640ad5a5992b9bf4709eab9d3308a006f9f8 | e9d5f5cf984c905c31f197577d633705e835780a | /GED/nonlinear/scilab/functions/quasi_weighted/quasi_w_nonlin_functions.sci | ce33f16fffe619b7f0f0d67966bc3aecd82a5b10 | [] | no_license | faiz-hub/dr-ged-benchmarks | 1ad57a69ed90fe7595c006efdc262d703e22d6c0 | 98b250db9e9f09d42b3413551ce7a346dd99400c | refs/heads/master | 2021-05-18T23:12:18.631904 | 2020-03-30T21:12:16 | 2020-03-30T21:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,227 | sci | quasi_w_nonlin_functions.sci | // Data Reconciliation Benchmark Problems From Lietrature Review
// Author: Edson Cordeiro do Valle
// Contact - edsoncv@{gmail.com}{vrtech.com.br}
// Skype: edson.cv
// aux functions to sum of absolute errors
// it is necessary to install the "diffcode" package using ATOMS in Scilab
// smooth functions according to Gopal and Biegler
// AICHE Journal 45(7) 1535-1547 - July 1999
// Quasi Weighted Robust function, according to Zhang et al. - Comp. & Chem. Eng.
// 34, p. 154-162-402, (2010)
function f = objfun ( x )
e1 = (xm(red)-x(red))./(var(red).^(0.5));
// smoothing functions
// for sigmoidal function (Eq. 24 from paper)
// abs_error = sum(sig1=1./alpha_smooth*log(2+exp(alpha_smooth*e1)+exp(-alpha_smooth*e1)));
// for interior point function (Eq 25 from paper)
abs_error = (e1.^2 + beta_smooth.^2).^0.5;
// sigmoidal, but based in max operator property (Eq 28 from paper)
// this one leads to a small error when e1 = 0
// abs_error = e1 + beta_smooth*log(1+exp(-2*alpha_smooth*e1));
f = sum( ((e1.^(2))./(2 + const_qw*abs_error)) );
endfunction
// gradient of the objetive function
function gf = gradf ( x )
// in the future we can express this function analytically
// gf = diffcode_jacobian(objfun,x)';
gf = zeros(nv,1);
sqrarg = const_qw.*sqrt(((xm(red)-x(red)).^2)./(var(red)) + beta_smooth.^2);
sqrargdiv = sqrarg + 2;
gf(red,1) = (sqrarg.*(xm(red)-x(red)))./(var(red).*sqrargdiv.^2) - (2*(xm(red)-x(red)))./(var(red).*sqrargdiv);
endfunction
function H = hessf ( x )
// For the robust functions, the lagrangean of the objective function is not constant
// as in weigthed least squares.
// in the future we can express this function analytically
// H = diffcode_hessian(objfun,x);
onesqw = ones(length(red),1);
sqrarg = const_qw.*sqrt(((xm(red)-x(red)).^2)./(var(red)) + beta_smooth.^2);
sqrarg2 = sqrarg./const_qw;
sqrargdiv = sqrarg + 2;
t1 = zeros (nv,1);
t1(red,1) = -3.*const_qw.*((xm(red) - x(red)).^2)./((var(red).^2).*(sqrargdiv.^2).*sqrarg2) + 2*(const_qw.^2).*((xm(red) - x(red)).^2)./(var(red).*sqrargdiv.^3) - (sqrarg)./(var(red).*sqrargdiv.^2) + (2*onesqw)./(var(red).*sqrargdiv);
H=diag(t1);
endfunction
|
af9151974af9bbc9994e11bc537c33a5def45214 | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH6/EX6.19/example6_19.sce | 8a3fc45d8bb6bd8b08bd0438ca3659020a6c6644 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 225 | sce | example6_19.sce | syms G1 G2 G3 G4 H1 H2;
T1=G1*G3*G2;
T2=G4;
L1=-G1*H1*G2;
L2=-G3*H2*G2;
L3=-G2*G1*G3;
L4=-G4;
L5=-G2*G4*H1*H2;
delta=1-(L1+L2+L3+L4+L5)
del1=1;
del2=1
TF=(T1*del1 + T2*del2)/delta ;
disp(TF,"C/R = ")
|
dfd07aa8bf65bae5e20594befab7e3cbb3028029 | 858e87eba2421990e4bb02ee2ac7070276bc0259 | /experiments/simple-em-continuous.sci | 152841d36205899dc827079f672d57a230c70e20 | [
"LicenseRef-scancode-public-domain"
] | permissive | MyFreertosLab/sdrone_test | c649e737128db26ee0902d2b9beca883c0ef5f2a | 919ff6dd3e5d495102f0b16243873f3cb7b4640b | refs/heads/master | 2023-06-15T05:10:19.052455 | 2021-07-16T07:10:39 | 2021-07-16T07:10:39 | 359,063,905 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,009 | sci | simple-em-continuous.sci | function [X,dX] = steps(t,n,U,X0,dX0,start)
dt=1/n;
A=[
-1/dt, 0, 0;
-1/dt^2,-1/dt, 0;
-1/dt^3,-1/dt^2,-1/dt
];
B=[1/dt;
1/dt^2;
1/dt^3
];
X = X0;
dX = dX0;
for i=[1+start:t+start]
dX(i+1,1:3) = X(i,1:3)*A'+(B*U(i))'
X(i+1,1) = X(i,1)+dX(i+1,1)*dt;
X(i+1,2) = dX(i+1,1);
X(i+1,3) = dX(i+1,2);
end
endfunction
function [X,dX,P,U] = goals(amplitude, phase)
m=100;
T=[1:m+1];
P=sin((T-1)*2*%pi/20+phase)*amplitude; // Funzione di ingresso (sinusoidale con periodo 20 e max=amplitude (deg) )
// Stato iniziale e steps
n=100;
X=[0,0,0]; // Stato: Angolo, Velocità Angolare, Accelerazione Angolare
dX=[0,0,0]; // Stato: Velocità Angolare, Accelerazione Angolare, Derivata Accelerazione Angolare
for i=[1:m+1]
U((i-1)*n+1:i*n)=X((i-1)*n+1) + (P(i)-X((i-1)*n+1))*([1:n]./n); // Funzione di ingresso (lineare a gradini)
[X,dX]=steps(n,n,U,X,dX,(i-1)*n);
end
endfunction
[X,dX,P,U]=goals(35, %pi/2);
plot(X(1:size(X,1),1));
|
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()
|
ddaa0d9db84cae0179bd0f5db4c3390ded15edef | 449d555969bfd7befe906877abab098c6e63a0e8 | /75/DEPENDENCIES/bvpeigen.sce | 1fcbf02aac1845498e04a934604205e49b4b0f5e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 466 | sce | bvpeigen.sce | function [x,y,lam] = BVPeigen1(L,n)
Dx = L/(n-1);
x=[0:Dx:L];
a = 1/Dx^2;
k = n-2;
A = zeros(k,k);
for j = 1:k
A(j,j) = 2*a;
end;
for j = 1:k-1
A(j,j+1) = -a;
A(j+1,j) = -a;
end;
exec eigenvectors.sce
[yy,lam]=eigenvectors(A);
//disp('yy');disp(yy);
y = [zeros(1,k);yy;zeros(1,k)];
//disp('y');disp(y);
xmin=min(x);xmax=max(x);ymin=min(y);ymax=max(y);
rect = [xmin ymin xmax ymax];
if k>=5 then
m = 5;
else
m = k;
end
endfunction |
bec5aacfb7445de92d46ca4839e5d9689d62bfee | c6bf685755436b2a7bf289ac90bec98340fe97fe | /RegressãoLinear&arquivocsv&grafico.sce | 9d255f4daf2f5901b6c58a47b3e0d11714226668 | [] | no_license | ivybin/PROGRAMAS-SCE | 82296ac10f4fb02d6e283f64e910666c6103063a | e61918ceae020bd33fcf223908f7decdec1c41b4 | refs/heads/master | 2023-07-23T12:55:08.711868 | 2021-09-02T17:22:23 | 2021-09-02T17:22:23 | 400,595,765 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,269 | sce | RegressãoLinear&arquivocsv&grafico.sce | clear;
clc;
close;
function [tca,tcl]= prepara_arq()
acha_arq= uigetfile("*.csv",pwd(),"ESCOLHA O ARQUIVO"); //achar arquivo
ler_arq_matriz= csvRead(acha_arq); //ler arquivo como matriz
[linha_arq,coluna_arq]=size(ler_arq_matriz); //recebe o número de linhas e colunas do arquivo
tca=ler_arq_matriz; tcl=linha_arq; //recebe a matriz e a linha para h
endfunction
//usar a função que retorna a matriz e a quntidade de linhas
[dados,h]= prepara_arq();
//separar x e y em 2 matrizes de uma coluna
X= dados(:,1); y= dados(:,2);
som1=0;som2=0;som3=0;som4=0;
//SOMATÓRIO
for i=1:1:h
som1= som1+X(i,1)*y(i,1);
som2= som2+X(i,1);
som3= som3+y(i,1);
som4= som4+(X(i,1)*X(i,1));
end
//coef angular
Ac=(som1-(1/h)*som2*som3)/(som4-(1/h)*som2*som2);
//coef linear
Al= (som3/h)-(Ac*som2/h);
//DECLARAR Y2
y2= zeros(h,1);
//servirá pra traçar a reta
for i2=1:1:h
y2(i2)=Ac*X(i2)+Al;
end
//EQUAÇÃO DA RELA LINEAR
printf("\n\n\n EQUAÇÃO DA RETA LINEAR: \n");
printf("\n f(x)= %ix + %i",Ac,Al);
//Plotagem e detalhes
plot(X,y,'r+',X,y2);
xtitle('GRÁFICO DA COTAÇÃO');
legend('Pontos-cotação','Reta linear que representa o conjunto de pontos');
xlabel('METRAGEM');
ylabel('VALOR COTADO');
|
e925858066e60e8a1cb97be335306256a37e21be | 449d555969bfd7befe906877abab098c6e63a0e8 | /3871/CH12/EX12.6/Ex12_6.sce | 3eaab29cda537ab509d139f4b8ab1c8e18a683b9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 659 | sce | Ex12_6.sce | //===============================================================================
//Chapter 12 Example 6
clc;clear all;
//variable declaration
R2 = 400; //resistance of arm in Ω
R3 = 400; //resistance of arm in Ω
R4 = 400; //resistance of arm in Ω
C4 = 2*10^-6; //capacitance in F
r = 500; //resistance in Ω
//calculations
R1 = ((R2*R3)/(R4)); //resistance of coil in Ω
x = (r*(R3+R4))+(R3*R4)
L1 = (C4*R2*x)/(R3); //inductance of inductor in H
//result
mprintf("resistance of coil = %3.2f Ω",R1);
mprintf("\ninductance of inductor = %3.2f Henry",L1);
|
9d0a92a700071c0ba0374b34e75608e5ea416976 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1076/CH13/EX13.1/13_1.sce | 397468d9b3d8f435b923876b8a21635a397fd9ff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 13_1.sce | clear;
clc
Xd=.7
pf=.8
pfa=acos(pf)
V=1
I0=1* exp( %i * pfa *-1)
E0=V+ (%i * Xd * I0)
E=round(abs(E0)*100)/100
d0=atand(imag(E0)/real(E0))
E0=E * exp(%i * d0 * %pi/180)
Pe0=E*V*sind(d0)/Xd
Qe0=(E*V*cosd(d0)/Xd)-(V*V/Xd)
mprintf("\n(a)\nPe= %.1f Qe=%.1f E= %.2f load angle=%.1f",Pe0, Qe0, E, d0);
e1=E0
E1=abs(e1)
Pe1=1.2* Pe0;
d1=asind(Pe1* Xd/ (V*E1))
Qe1=(E1*V*cosd(d1)/Xd)-(V*V/Xd)
mprintf("\n(b)\nPe= %.2f Qe=%.2f E= %.2f load angle=%.1f",Pe1, Qe1, E1, d1);
e2=1.2 * E0
E2=abs(e2)
Pe2=Pe0;
d2=asind(Pe2* Xd/ (V*E2))
Qe2=(E2*V*cosd(d2)/Xd)-(V*V/Xd)
mprintf("\n(c)\nPe= %.1f Qe=%.2f E= %.2f load angle=%.1f",Pe2, Qe2, E2, d2);
|
8215107dcca1723d5d822f29c243be5e8f927b77 | 449d555969bfd7befe906877abab098c6e63a0e8 | /503/CH3/EX3.10/ch3_10.sci | e0680948da6f042ec208cb095f57e8ed6e0549b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 414 | sci | ch3_10.sci | //To find exciting current and expess impedence in pu in both HV and LV sides
clc;
V_BHV=2000;
I_BHV=10;
Z_BHV=V_BHV/I_BHV;
V_BLV=200;
I_BLV=100;
Z_BLV=V_BLV/I_BLV;
I_o=3;
a=V_BHV/V_BLV;
I_oLV=I_o/100; disp(I_oLV,'I_o(LV)pu=');
I_oHV=I_o/(a*10); disp(I_oHV,'I_o(HV)pu=');
Z=complex(8.2,10.2);
ZHV=Z/Z_BHV; disp(ZHV,'Z(HV)pu=');
z=Z/a^2;
ZLV=z/Z_BLV; disp(ZLV,'Z(LV)pu='); |
908a2a5e79a28697ebd9385df091eaca262c29e7 | beca18778f40d44e713160c5b0e8136d8a92cad8 | /scilab/acc_limited_fuel.sce | bed05c43c58212c23ffaab25d972b089ba0438b2 | [] | no_license | thomasantony/enjomitch-orbiter | 9542df3dfc83ce0a6cf06ec78dca91b4c1a0babf | 83967b7bf8f8c49d1e90f7b904846e66d1ad6e37 | refs/heads/master | 2022-12-02T07:47:03.976695 | 2020-03-22T13:54:57 | 2020-03-22T13:54:57 | 286,159,679 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 292 | sce | acc_limited_fuel.sce | t = 486;
mfull = 24500;
mflow = 7;
thrust = 280000;
g = 9.81;
a = thrust / ( mfull - mflow * t ) - g;
a0 = thrust / ( mfull ) - g;
s = a * t^2 / 2 * (1 + a/g );
s2 = a * t^2 / 2 * (1 + a/g );
a = thrust / ( mfull - mflow * t )
v = a* t
t = mfull * v / ( thrust + mflow*v)
|
4746b88d1298dc1d8a0ce87c9f79912ff5fddfd0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /991/CH24/EX24.6/Example24_6.sce | b7ade9bb52f462e1c843044591f9c588cfc8c470 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 305 | sce | Example24_6.sce | //Example 24.6. perform the binary divisions
clc
x=bin2dec('110')
x1=bin2dec('10')
x2=x/x1
x3=dec2bin(x2)
disp("(i) 110 / 10")
disp(x3," = binary")
disp(x2," = decimal")
x=bin2dec('1111')
x1=bin2dec('110')
x2=x/x1
x3=dec2bin(int(x2));
disp("(ii) 1111 / 110")
disp(x3," = binary")
disp(x2," = decimal") |
670e50d937e59a58c2e17970570ac9517eb340fd | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.1.1/macros/percent/%pslss.sci | 429f433071bf701df3b9ed010b452ab306d71419 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 248 | sci | %pslss.sci | //[s]=%pslss(d1,s2)
//s=%pslss(s1,d2) ou s=p-s1
// s1 : systeme donne par sa representation d'etat
// p : matrice de polynomes
//
//!
// origine S Steer INRIA 1992
//!
[a2,b2,c2,d2,x2,dom2]=s2(2:7),
s=list('lss',a2,b2,c2,d1-d2,x2,dom2),
//end
|
2a2bb0136fd7f6704ecfa6955292d1cc326271a8 | c565d26060d56f516d954d4b378b8699c31a71ef | /2-DOF_manual/codes-virtual/twodof_para.sce | da9ec619a5f0c9c2e3a8e0ec35ae90b4132654dd | [] | no_license | rupakrokade/sbhs-manual | 26d6e458c5d6aaba858c3cb2d07ff646d90645ce | 5aad4829d5ba1cdf9cc62d72f794fab2b56dd786 | refs/heads/master | 2021-01-23T06:25:53.904684 | 2015-10-24T11:57:04 | 2015-10-24T11:57:04 | 5,258,478 | 0 | 0 | null | 2012-11-16T11:45:07 | 2012-08-01T11:36:17 | Scilab | UTF-8 | Scilab | false | false | 721 | sce | twodof_para.sce | mode(0)
global Rc Sc Tc gamm u_old_old u_old r_old_old r_old y_old_old y_old u_new r_new y_new
s=%s;
z=%z;
//TFcont = syslin('c',0.593/((47.21*s+1)*(1.373*s+1)));//second order
//TFcont = syslin('c',0.594/(49.19*s+1))//first order
TFcont = syslin('c',0.42/(35.61*s+1));//first order
SScont = tf2ss(TFcont);
Ts = 1;
[B,A,k] = myc2d(SScont,Ts);
//polynomials are returned
[Ds,num,den] = ss2tf(SScont);
num = clean(num); den = clean(den);
// Transient specifications
rise = 100; epsilon = 0.05;
phi = desired(Ts,rise,epsilon);
// Controller design
Delta = [1 -1];
[Rc,Sc,Tc,gamm] = pp_im(B,A,k,phi,Delta);//with integral
// initial values
u_old_old = 0;
u_old = 0;
r_old_old = 0;
r_old = 0;
y_old_old = 0;
y_old = 0;
|
c1691ae04563046acf47223287fc7802b8f3409b | 449d555969bfd7befe906877abab098c6e63a0e8 | /73/CH7/EX7.5/Example7_5.sci | 7514aebb48b7da716c0fda67827dc5fc0acd96dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 876 | sci | Example7_5.sci | //Chapter 7_Operational Amplifier Characteristics
//Caption : Temperature Coefficient
//Example7.5: Determine the temperature coefficient of the input offset voltage for the bipolar differential amplifier having Vos=1.5 mV. What is the percentage change in the Vos per degree temperature change.
//Solution:
clear;
clc;
// temperature cofficient of the input offset voltage for the bipolar differential amplifier Vos is=dVos/dT=Vos/T;
Vos=1.5*10^-3;//input offset voltage for bipolar differential transistor amplifier
T=300;// assuming room temperature
TC=Vos/T;// temperature cofficient of Vos
//percentage change in the Vos per degree temperature change will be given by as follow:
PC=(TC/Vos)*100;// percentage change(PC) in the Vos per degree temperature change
disp('%per degree celcius',PC,'percentage change in the Vos per degree temperature change is:') |
9cdfdd5659ef61069a6cbb19049d528e8964c785 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH7/EX7.11/Ch07Ex11.sce | ba8e1567b1dd95a26487199f5f6b2a9689c19af4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 806 | sce | Ch07Ex11.sce | // Scilab code Ex7.11: Pg:307 (2008)
clc;clear;
P = 3.2e+07/1.6e-013; // Power developed by the reactor, MeV
E = 200; // Energy released by the reactor per fission, MeV
n = P/E; // Number of fissions occuring in the reactor per second, per sec
N = n*1000*3600; // Number of atoms or nuclei of Uranium 235 consumed in 1000 hours
// Since the number of atoms in 235 g of Uranium is 6e+023
M = N/6e+023*235/1000; // Mass of Uranium 235 consumed in 1000 hours, kg
printf("\nThe number of atoms of Uranium 235 undergoing fission per second = %4.1e ", N);
printf("\nThe mass of Uranium 235 consumed in 1000 hours = %4.2f kg ", M);
// Result
// The number of atoms of Uranium 235 undergoing fission per second = 3.6e+024
// The mass of Uranium 235 consumed in 1000 hours = 1.41 kg |
184515f364397f1b3f853745a20cea99d4cf2e12 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/Computing/testexo3c.sce | e87369c011cdc22c7900e9aec2c1baf9e4ce0a0c | [] | no_license | markusmorawitz77/Scilab | 902ef1b9f356dd38ea2dbadc892fe50d32b44bd0 | 7c98963a7d80915f66a3231a2235010e879049aa | refs/heads/master | 2021-01-19T23:53:52.068010 | 2017-04-22T12:39:21 | 2017-04-22T12:39:21 | 89,051,705 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 284 | sce | testexo3c.sce | exec('scilab-base-calculs-testexo3d.sce',-1)//to delete
exec('scilab-base-calculs-testexo3a.sce',-1)//to delete
exec('scilab-base-calculs-testexo3b.sce',-1)//to delete
// set of values already taken
D=union(union(A,B),C)
// candidate values for element (i,j)
E=[1:9];E(D)=[]
|
9dae2c4bc613f5c7347fa8b6a2ba1c42362ff08c | c557cd21994aaa23ea4fe68fa779dd8b3aac0381 | /test/reduce.tst | 5b9e309a9ae2fa034ca7c37a0fce73c575501a89 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | dougsong/reposurgeon | 394001c0da4c3503bc8bae14935808ffd6f45657 | ee63ba2b0786fa1b79dd232bf3d4c2fe9c22104b | refs/heads/master | 2023-03-09T15:22:45.041046 | 2023-02-25T08:33:06 | 2023-02-25T08:33:06 | 280,299,498 | 1 | 0 | NOASSERTION | 2023-02-25T08:33:08 | 2020-07-17T01:45:32 | Go | UTF-8 | Scilab | false | false | 96 | tst | reduce.tst | ## Test of strip blobs reduce command
set echo
read <roundup.fi
strip --blobs --reduce
write -
|
8024fbfd69dc1780bb855efcb3814417c59ba3cd | 634af5304c38dcb1f46551b3af0cd17d9538279f | /aula2/a2e6-Integralx3.sce | c09899571311c2237f575bb073d126101a99be71 | [] | no_license | taiaraujo/Processos_Estoc-sticos | 3b35ab57321d08047621f7045ae62a5c937a3346 | 85677fe2d055ed621d399c64cec14eb6ec1875de | refs/heads/master | 2021-04-28T03:06:13.349687 | 2018-02-19T23:07:28 | 2018-02-19T23:07:28 | 122,131,723 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 134 | sce | a2e6-Integralx3.sce | //Integral de Monte Carlo
//Integral de x^3dx em [0 1]
clear
n = 10; //numero de amostras
u = rand(1,n);
g = u.^3;
I = mean(g)
|
866f2474adcc5094ab94ffd5b06099e77e0fd890 | d916be6e700b3613486a5ac15377af536ecbe918 | /Roots.sce | fd47672459df51e023ccc94a4fe7d80fa740f3ba | [] | no_license | aguilerap-jc/numMethodsP1 | 2bf098d9fb2cb2bb2bd730e760bf61f5b8c7a46c | f3f13fee84b90444548b7c70036780144370c560 | refs/heads/master | 2021-01-23T04:13:38.025702 | 2015-11-26T00:59:02 | 2015-11-26T00:59:02 | 41,867,995 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 28,006 | sce | Roots.sce | //Initialize possible constant values on users functions
e = 2.718281;
function index_menu = display_menu()
disp("Select one of the following methods:");
disp("1) Roots Methods");
disp("2) Non Linear Methods");
disp("3) Linear Regression Method ")
disp("4) Interpolation Direct Method")
disp("5) Integration Trapezoidal")
disp("6) Integration Roomberg")
index_menu = input("Type the number of the numeric method you want to use: ");
funcprot(0);
endfunction;
function index_sub_menu_roots = display_menu_roots()
disp("Select one of the following methods:");
disp("1) Bisection Method");
disp("2) Secant Method");
disp("3) Newthon-Raphson Method");
disp("4) Bairstow Method");
disp("0) For going out of the program");
disp("");
index_sub_menu_roots = input("Type the number of the numeric method you want to use: ");
endfunction;
function index_submenu_non_linear = display_menu_non_linear()
disp("Select one of the following methods:");
disp("1) Gauss Elimination With Partial Pivoting");
disp("2) Gauss Jordan");
disp("3) LU Decomposition");
disp("4) Gauss Seidel");
disp("0) For going out of the program");
disp("");
index_submenu_non_linear = input("Type the number of the numeric method you want to use: ");
endfunction;
function Index_Integration = display_menu_Integration()
disp("Choose how do you want to type the Integration_Method");
disp("1) Enter the function to evaluate");
disp("2) Enther the values of the segments");
Index_Integration = input("Type how you want to enter the values for the Integration_Method: ");
endfunction
function Index_Romberg = display_menu_Romberg()
disp("Choose how do you want to type the Romberg_Method");
disp("1) Enter the number of Iterations");
disp("2) Enther the minimum expected error");
Index_Romberg = input("Type how you want to enter the values for the Integration_Method: ");
endfunction
function bisection_method()
// Ask for required data
disp("Type the function to evaluate with the following format:");
disp(" y=a*x^n + b*x^(n-1) + c*x^(n-2) ..., where a, b, c are constants");
user_function = input("","string");
xl = input("xl value: ");
xu = input("xu value: ");
max_error = input("max error value in %")/100.0;
//Initialize user function and required values
deff('[y] = bisection(x)', user_function);
output = ["iteration", "xl", "xu", "xm", "sign", "error"];
disp(output);
_error = 1;
//First iteration
iteration = 1;
xm = (xl + xu)/2;
is_positive = bisection(xl)*bisection(xm) > 0;
if(is_positive) then
_sign = "+";
else
_sign = "-";
end
output = [" " + string(iteration), string(xl), string(xu), string(xm), _sign, "---"];
disp(output);
//Next iterations
while abs(_error) >= max_error then
iteration = iteration + 1;
prev_xm = xm;
if(is_positive) then
xl = prev_xm;
else
xu = prev_xm;
end
xm = (xl + xu)/2;
is_positive = bisection(xl)*bisection(xm) > 0;
if(is_positive) then
_sign = "+";
else
_sign = "-";
end
_error = (xm - prev_xm)/xm;
//Display values
output = [" " + string(iteration), string(xl), string(xu), string(xm), _sign, string(abs(_error)*100) + "%"];
disp(output);
end
ri = xl-3:0.01:xu+3;
plot(ri,bisection(ri));
plot(xm,bisection(xm),'o')
endfunction
function secant_method()
// Ask for required data
disp("Type the function to evaluate with the following format:");
disp(" y=a*x^n + b*x^(n-1) + c*x^(n-2) ..., where a, b, c are constants");
user_function = input("","string");
x0 = input("x0 value: ")
x1 = input("x1 value: ")
max_error = input("max error value in %")/100.0;
//Initialize user function and required values
deff('[y] = secant(x)', user_function);
_error = 1;
x2 = 0;
iteration = 0;
output = ["iteration", "xi-1", "xi", "f(xi-1)", "f(xi)", "xi+1", "error"];
disp(output);
//Iterations
while abs(_error) >= max_error then
iteration = iteration + 1;
f_x0 = secant(x0);
f_x1 = secant(x1);
x2 = x1 - f_x1*(x1-x0)/(f_x1-f_x0);
_error = (x2 - x1)/x2;
//Display values
if(iteration <> 1) then
output = [" " + string(iteration), string(x0), string(x1), string(f_x0), string(f_x1), string(x2), string(abs(_error)*100) + "%"];
else
output = [" " + string(iteration), string(x0), string(x1), string(f_x0), string(f_x1), string(x2), " --- "];
end;
disp(output);
x0 = x1;
x1 = x2;
end
ri = x0-3:0.01:x1+3;
plot2d(ri,secant(ri));
plot(x1,0,'o');
endfunction
function newton_method()
// Ask for required data
disp("Type the function to evaluate with the following format:");
disp(" y=a*x^n + b*x^(n-1) + c*x^(n-2) ..., where a, b, c are constants");
user_function = input("","string");
x0 = input("x0 value: ")
max_error = input("max error value in % ")/100.0;
//Initialize user function and required values
deff('[y] = newton_raphson(x)', user_function);
_error = 1;
output = ["iteration", "xi", "f(xi)", "derivate f(xi)", "error"];
disp(output);
//First interation
iteration = 1;
f_x0 = newton_raphson(x0);
deriv_f_x0 = numderivative(newton_raphson, x0);
x1 = x0 - f_x0/deriv_f_x0;
output = [" " + string(iteration), string(x0), string(f_x0), string(deriv_f_x0), " --- "];
disp(output);
//Next Iterations
while abs(_error) >= max_error then
iteration = iteration + 1;
prev_x0 = x0;
x0 = x1;
f_x0 = newton_raphson(x0);
deriv_f_x0 = numderivative(newton_raphson, x0);
x1 = x0 - f_x0/deriv_f_x0;
_error = (x0 - prev_x0)/x0;
//Display values
output = [" " + string(iteration), string(x0), string(f_x0), string(deriv_f_x0), string(abs(_error)*100) + "%"];
disp(output);
end
ri = x0-3:0.01:x0+3;
plot(ri,newton_raphson(ri));
plot(x1,0,'o');
endfunction
function bairstow_method()
// Ask for required data
disp("Type the coefficients of the polynomial in a decreasing order of the function degree :");
disp("[1, 2, 3, 4] means 1*x^3 + 2*x^2 + 3*x^1 + 4*x^0");
a_values = input("");
r0 = input("r0 value: ");
s0 = input("s0 value: ");
max_error = input("max error value in % ")/100.0;
//Process data
b_values = a_values;
c_values = a_values;
[matrix_x, matrix_y] = size(a_values);
_error = 1;
iteration = 1;
r1 = r0;
s1 = s0;
while abs(_error) >= max_error then
output = ["iteration", "initial r", "initial s"];
disp(output);
output = [" ", string(iteration), string(r0), string(s0)];
disp(output);
output = [" ", " a ", " b ", " c "];
disp(output);
b_values(2) = a_values(2) + r0*b_values(1);
c_values(2) = b_values(2) + r0*c_values(1);
//Display n a,b, c values
output = [" _1_ ", string(a_values(1)), string(b_values(1)), string(c_values(1))];
disp(output);
//Display n-1 a,b,c values
output = [" _2_ ", string(a_values(2)), string(b_values(2)), string(c_values(2))];
disp(output);
for i = 3:matrix_y,
b_values(i) = a_values(i) + r0*b_values(i-1) + s0*b_values(i-2);
c_values(i) = b_values(i) + r0*c_values(i-1) + s0*c_values(i-2);
output = [" _" + string(i) + "_ ", string(a_values(i)), string(b_values(i)), string(c_values(i))];
disp(output);
end
b0 = b_values(matrix_y);
b1 = b_values(matrix_y - 1);
c1 = c_values(matrix_y - 1);
c2 = c_values(matrix_y - 2);
c3 = c_values(matrix_y - 3);
delta_r = (-b0/c1 + c2*b1/(c1*c3))/(1-(c2^2)/(c1*c3))
delta_s = (-b0-c1*delta_r)/c2;
r1 = r0 + delta_r;
s1 = s0 + delta_s;
_error_r = (r1-r0)/r1;
_error_s = (s1-s0)/s1;
if(abs(_error_r) > abs(_error_s)) then
_error = _error_r;
else
_error = _error_s;
end
output = [" ", " delta r ", " delta s ", " r ", " s ", "error r", "error s"];
disp(output);
output = [" ", string(delta_r), string(delta_s), string(r1), string(s1), string(_error_r*100) + "%", string(_error_s*100) + "%"];
disp(output)
iteration = iteration + 1;
r0 = r1;
s0 = s1;
end
root_1 = r1/2 + sqrt(r1^2+4*s1)/2;
root_2 = r1/2 - sqrt(r1^2+4*s1)/2;
output = "Root values";
disp(output);
disp(root_1);
disp(root_2);
endfunction
function Partial_Pivoting_Method()
//Partial Pivoting Method
disp("Partial_Pivoting_Method Function Executing");
matrix_A = input("Define matrix A");
matrix_B = input("Define matrix B");
n = size(matrix_A, "r");
for i=1: n
actual_row_A = matrix_A(i,:);
value_1_A = matrix_A(i,i);
actual_row_B = matrix_B(i,:);
for j=i+1: n
next_row_A = matrix_A(j, :);
value_2_A = matrix_A(j,i);
matrix_A(j, :) = next_row_A - actual_row_A*value_2_A/value_1_A;
next_row_B = matrix_B(j, :);
matrix_B(j, :) = next_row_B - actual_row_B*value_2_A/value_1_A;
end
end
//Now that we have the lower part with 0's, we must do the needed operations. starting from the bottom.
for i = n : -1 : 1;
for j = i+1 : n
matrix_B(i) = matrix_B(i)-matrix_A(i,j)*matrix_B(j);
end
matrix_B(i) = matrix_B(i)/matrix_A(i,i);
end
disp("The solution for x is:")
disp(matrix_B);
//Partial_Pivotin_method
endfunction
function Gauss_Jordan_Method()
//Gauss Jordan Method
disp("Gauss_Jordan_Method Function Executing");
matrix_A = input("Define matrix A");
matrix_B = input("Define matrix B");
n = size(matrix_A, "r");
for i=1: n
actual_row_A = matrix_A(i,:);
value_1_A = matrix_A(i,i);
actual_row_B = matrix_B(i,:);
for j=i+1: n
next_row_A = matrix_A(j, :);
value_2_A = matrix_A(j,i);
matrix_A(j, :) = next_row_A - actual_row_A*value_2_A/value_1_A;
next_row_B = matrix_B(j, :);
matrix_B(j, :) = next_row_B - actual_row_B*value_2_A/value_1_A;
end
matrix_A(i, :) = actual_row_A/actual_row_A(i);
matrix_B(i, :) = actual_row_B/actual_row_A(i);
end
//Now that we have the lower part with zeros and the diagonal with 1s we must reduce the upper part and substract rows beginning from the bottom
for i=n:-1:1
actual_row_A = matrix_A(i,:);
value_1_A = matrix_A(i,i);
actual_row_B = matrix_B(i,:);
for j=i-1:-1:1
next_row_A = matrix_A(j, :);
value_2_A = matrix_A(j,i);
matrix_A(j, :) = next_row_A - actual_row_A*value_2_A/value_1_A;
next_row_B = matrix_B(j, :);
matrix_B(j, :) = next_row_B - actual_row_B*value_2_A/value_1_A;
end
end
disp("La solución para x es:")
disp(matrix_B);
endfunction
function LU_Decomposition()
//LU Decomposition
disp("LU_Decomposition Function Executing");
//Definir Matriz A
matrix_A = input("Define matrix A ");
//Definir Matriz B
matrix_B = input("Define matrix B ");
matrix_AO = matrix_A;
matrix_BO = matrix_B;
//n = Renglones
n = size(matrix_A, "r");
[renglon,columna] = size(matrix_A);
//Definir matriz L con 0
matrix_L = zeros(renglon,columna);
//Definir matriz U con 0
matrix_U = zeros(renglon,columna);
matrix_X = ones(n);
matrix_Z = ones(n);
matrix_Temp = ones(n);
for i = 1 : n
matrix_L(i,i) = 1;
end
for i=1: n
//Sacar el i renglon de la matriz A
actual_row_A = matrix_A(i,:);
//Obtener el primer cada uno de los valores de la matriz
value_1_A = matrix_A(i,i);
//Sacar el i renglon de B
actual_row_B = matrix_B(i,:);
//Asigna los valores de la matriz U de la diagonal
matrix_U(i,i) = value_1_A;
for j = i+1 : n
//Sacar el segundo renglon de A
next_row_A = matrix_A(j, :);
value_2_A = matrix_A(j,i);
matrix_A(j, :) = next_row_A - actual_row_A*value_2_A/value_1_A;
next_row_B = matrix_B(j, :);
matrix_B(j, :) = next_row_B - actual_row_B*value_2_A/value_1_A;
matrix_L(j,i) = value_2_A/value_1_A;
end
end
matrix_U = matrix_A;
for i=n :-1 : 1
actual_row_A = matrix_A(i,:);
value_1_A = matrix_A(i,i);
actual_row_B = matrix_B(i,:);
for j=i-1:-1:1
next_row_A = matrix_A(j, :);
value_2_A = matrix_A(j,i);
matrix_A(j, :) = next_row_A - actual_row_A*value_2_A/value_1_A;
next_row_B = matrix_B(j, :);
matrix_B(j, :) = next_row_B - actual_row_B*value_2_A/value_1_A;
end
end
matrix_Z(1) = matrix_BO(1);
for i = 2 : n
matrix_Z(i) = matrix_BO(i)
for j = i-1 :-1 : 1
matrix_Z(i)=matrix_Z(i)-matrix_L(i,j)*matrix_Z(j);
end
end
for i = n : -1 : 1
matrix_X(i) = matrix_Z(i);
for j = i+1 : n
matrix_X(i)=matrix_X(i)-matrix_U(i,j)*matrix_X(j);
end
matrix_X(i) = matrix_X(i)/matrix_U(i,i);
end
disp("A matrix");
disp(matrix_AO);
disp("B matrix");
disp(matrix_BO);
disp("L matrix");
disp(matrix_L);
disp("Z values");
disp(matrix_Z);
disp("U matrix");
disp(matrix_U);
disp("X values");
disp(matrix_X);
endfunction
function Gauss_Seidel()
disp("Gauss_Seidel Function Executing ...");
disp("In vector format {x1,x2,x3,x4,...,xn}")
//ask for the initial values of the X values
_new = input("Initial values for you X :")
disp("introduce the constants of each equation in matrix style ")
disp("For example: {A,B,C;D,E,F;G,H,I} representig a [3x3] matrix")
matrixA = input("Matrix A : ");
//get the size of the matrix
_size = size (matrixA, "r")
//ask for the equation in vector format
disp("introduce the other side of the equaility")
disp("For example: {A;B;C} for a matrix[1x3]")
matrixB = input("Matrix B : ");
_error = input("max error value in % ")/100.0;
max_iterations = input("insert the max number of iterations");
//flag to detect that the error is less than the maxError
maxError = _error + 1
actualError = zeros(_size,1)
//flag to detect non Diagonal Dominant Matrix
flagNonDiagonal = 0
//variable to save the sum of each row
totalInLine = zeros(_size,1)
//array of new and old values of all X variables i.e x1,x2..xn
_old = zeros(_size, 1)
iteration = 1
//verify that the matrix is Diagonally dominant
for i = 1 : _size
for j = 1 : _size
if j <> i then
totalInLine(i) = totalInLine(i) + matrixA(i,j)
end
end
if matrixA(i,i) < totalInLine(i) then
flagNonDiagonal = 1
end
end
//if its diagonal dominat proceed
if flagNonDiagonal == 0 then
//do the procedure until reaching a maxError value that is less than the set error
while maxError > _error & iteration <= max_iterations then
for i = 1 : _size
//save the value of to get the error value
_old(i) = _new(i)
tmpX = 0
//sum of all values in row that are not in the main diagonal
//and multiply each of them by their corresponding X value
for j = 1 : _size
if j <> i then
tmpX = tmpX + _new(j) * matrixA(i,j)
end
end
//get the newest value for the X that we are trying to find
_new(i) = (matrixB(i) - tmpX) / matrixA(i,i)
//get the error
actualError(i) = abs((_new(i) - _old(i)) / _new(i))
if(i == 1) then
maxError = actualError(i)
end
end
//verify if this round got the maxError
if(actualError(i) > maxError) then
maxError = actualError(i)
end
//output setting
sizeOfMatrixOutput = (_size + _size + 1)
output = zeros(1,sizeOfMatrixOutput)
output(1,1) = iteration
for k = 2 : sizeOfMatrixOutput
if k < (_size + 2) then
//write the value of X
output(1,k) = _new(k - 1)
else
//write the values of the errors
posOfError = (k-_size-1)
output(1,k) = actualError(posOfError) * 100
end
end
disp("| Iter | values of X {x1 .. xn} | Error {E1 .. En |}")
disp(output)
iteration = iteration + 1
end
else
disp("Could not proceed with the method, The main matrix is not Diagonally dominant");
end
endfunction
function Linear_Regression_Method()
disp("Executing Linear_Regression_Method");
matrix_data = input("Insert a matrix of two columns, the first one for x values and the other one for y values. The number of rows is equal to the number of data points");
//Initialize the needed variables
sum_xy = 0;
sum_x = 0;
sum_y = 0;
sum_square_x = 0;
n = size(matrix_data, "r");
a1 = 0;
a0 = 0;
for i = 1 : n
sum_x = sum_x + matrix_data(i,1);
sum_y = sum_y + matrix_data(i,2);
sum_xy = sum_xy + matrix_data(i,1) * matrix_data(i,2);
sum_square_x = sum_square_x + matrix_data(i,1) * matrix_data(i,1);
plot(matrix_data(i,1), matrix_data(i,2), "ro");
end
a1 = (n * sum_xy - sum_x * sum_y) / (n * sum_square_x - sum_x * sum_x);
a0 = sum_y/n - a1 * sum_x/n;
y_data = zeros(1,n);
for i = 1 : n
y_data(i) = matrix_data(i,1)*a1 + a0;
end
plot(matrix_data(:,1),y_data);
disp("The result for a1 is ");
disp(a1);
disp("The result for a0 is ");
disp(a0);
endfunction
function Interpolation_Direct_Method()
disp("Executing Interpolation_DirectM");
disp("Type your table in matrix 2xN {1,2;3,4;5,6;7,8;9,10}")
matrixA = input("insert you table : ")
numOfRows = size (matrixA, "r")
disp("MAX VALUE to chose " + string(matrixA(numOfRows,1)) + ", MIN VALUE to chose " + string(matrixA(1,1)))
valueToFind = input("Introduce the value you want to find : ")
order = input("Introduce the order you want to use, MAX ORDER = " + string(numOfRows - 1) + " : ")
nearestValue = abs(matrixA(1,1) - valueToFind)
nearestValuePos = 1
//extend 1 column matrix A to save wich are the neares values
matrixA = cat(2, matrixA, zeros (numOfRows, 1))
matrixA(1,3) = nearestValue
//finding the neareast values
for i = 2 : numOfRows
//get values from the x axis
value = matrixA(i,1) - valueToFind
matrixA(i,3) = value
//compare them and try to find wich one is the closest to the value we want to find
if abs(value) < nearestValue then
nearestValue = abs(value)
nearestValuePos = i
end
end
//sort values in order to get the neareast values
[sortedNeareastValues, originalPos] = gsort(abs(matrixA(:,3)),'g' ,'i')
sizeOfsolveMatrix = order + 1
coefficients = zeros(sizeOfsolveMatrix, 1)
b = zeros (sizeOfsolveMatrix, 1)
solveMatrix = zeros (sizeOfsolveMatrix, sizeOfsolveMatrix)
//get the coefficients of the polynomials
for rowInCoefficients = 1 : sizeOfsolveMatrix
coefficients(rowInCoefficients) = matrixA(originalPos(rowInCoefficients), 1)
b(rowInCoefficients) = matrixA(originalPos(rowInCoefficients), 2)
maxColumns = order + 1
for columns = 2 : maxColumns
exponent = columns - 1
//coefficientes in column 1 will always be 1
solveMatrix(rowInCoefficients, 1) = 1
solveMatrix(rowInCoefficients, columns) = coefficients(rowInCoefficients)^(exponent)
end
end
//solve the matrix
x0 = inv(solveMatrix) * b
//display value of the coefficientes of the polynomial
disp("Coefficientes for the polynomial")
for l = 1 : sizeOfsolveMatrix
disp("a" + string(l) + " = " + string(x0(l)))
end
rowInx0 = rowInCoefficients
total = 0
//get the value of the function after the substitution of the value that we want to find
for rowInx0 = 1 : sizeOfsolveMatrix
exponent = rowInx0 - 1
total = total + ( x0(rowInx0) * valueToFind^exponent)
end
//plot the equation
x = matrixA(:,1)
stringToDisplay = sprintf("X: %d, Y: %d", valueToFind, total);
xstring( valueToFind, total, stringToDisplay );
plot(x, matrixA(:,2))
//plot the point we find where its X = valueToFind and Y = total
plot(valueToFind, total, 'o')
//display the value
disp("value of the function evaluated ")
disp(total)
endfunction
function Integration_Trapezoidal()
disp("Executing Integration_Trapezoidal");
sel_menu = display_menu_Integration();
if sel_menu == 1 then
disp("Type the function to evaluate with the following format:");
disp(" y=a*x^n + b*x^(n-1) + c*x^(n-2) ..., where a, b, c are constants");
user_function = input("","string");
deff('[y] = ffunction(x)', user_function);
lower_lim = input("Insert the lower limit of the Integral : ");
upper_lim = input("Insert the upper limit of the Integral : ");
n_segments= input("Insert the number of segments :");
integral_range = upper_lim - lower_lim;
h = integral_range/n_segments;
// I = (b-a)/(2*n) {sumation functions}
formula_h = h/2; //formula_h = (b-a)/(2*n)
acum_function = 0;
primerValorPol = 0;
nValorPol = 0;
sumation_functions = 0;
for j = lower_lim : h : upper_lim
acum_function = acum_function + ffunction(j);
if j == lower_lim then
primerValorPol = acum_function;
//Guarda el valor de la funcion en el n valor
elseif j == upper_lim then
nValorPol = acum_function;
//Guarda el valor de las funciones intermedias
else
sumation_functions = sumation_functions + acum_function;
end
acum_function = 0;
end
final_result = formula_h *(primerValorPol+(2*sumation_functions)+nValorPol);
disp("Solution is");
disp(final_result);
//plot
x_values = lower_lim:.1:upper_lim
x_values2 = lower_lim:h:upper_lim
plot(x_values, ffunction)
plot(x_values2, ffunction, '--')
//Linea 44
elseif sel_menu == 2 then
//n_segments= input("Insert the number of segments :");
x_values = input("Enter the X segments as following [1,2,3,...,n] : ");
y_values = input("Enter the Y segments as following [1,2,3,...,n] : ");
[x,n_segments] = size(x_values);
if size(x_values) <> size(y_values) then
disp("The segments of X are different that segments of Y Insert them again please");
elseif (size(x_values) == size(y_values)) then
lower_X_lim = x_values(1,1);
upper_X_lim = x_values(1,n_segments);
lower_Y_lim = y_values(1,1);
upper_Y_lim = y_values(1,n_segments);
funct_h = (upper_X_lim - lower_X_lim)/(n_segments*2);
sumation_middle_values = 0;
for i = 2 : n_segments - 1
sumation_middle_values = sumation_middle_values + y_values(1,i);
end
final_result = funct_h * (lower_Y_lim + sumation_middle_values*2 + upper_Y_lim);
disp("The result is");
disp(final_result);
plot(x_values, y_values)
//disp(upper_Y_lim,sumation_middle_values,lower_Y_lim);
//disp(funct_h);
else disp("Not a Correct Input");
end
else disp("Not a Correct Input");
end
endfunction
function Integration_Romberg()
//disp("Executing Integration_Trapezoidal");
//sel_menu = display_menu_Integration();
//if sel_menu == 1 then
disp("Type the function to evaluate with the following format:");
disp(" y=a*x^n + b*x^(n-1) + c*x^(n-2) ..., where a, b, c are constants");
user_function = input("","string");
deff('[y] = ffunction(x)', user_function);
lower_lim = input("Insert the lower limit of the Integral : ");
upper_lim = input("Insert the upper limit of the Integral : ");
iterations = input("Enter the number of Iterations : ");
h_vector = zeros(iterations);
i_matrix = zeros(iterations,iterations);
prev_r_values = zeros(iterations);
errors = zeros(iterations);
for j = 1 : iterations
cont_r_values = 0;
h = upper_lim -lower_lim;
if j == 1 then
h_vector(1) = upper_lim - lower_lim;
else
h_vector(j) = h_vector(j-1)/2
end
for i = 1 : iterations
if i == 1 then
acum_function = 0;
primerValor = 0;
nValor = 0;
sumation_functions = 0;
segments = 0;
segments = (upper_lim - lower_lim) / h_vector(j);
for r = lower_lim : h_vector(j) : upper_lim
acum_function = acum_function + ffunction(r);
if r == lower_lim then
primerValor = acum_function;
elseif r == upper_lim then
nValor = acum_function;
else
sumation_functions = sumation_functions + acum_function;
end
acum_function = 0;
cont_r_values = cont_r_values +1;
end
final_result = (h/(2*segments)) * (primerValor+(2*sumation_functions)+nValor);
i_matrix(j,i) = final_result;
i_results(j) = i_matrix(j,i);
else
if j <> 1 & i <= j then
i_matrix(j,i) = (((4*(i-1))*(i_matrix(j,i-1))) - i_matrix(j-1,i-1))/ (4*(i-1)-1);
i_results(j) = i_matrix(j,i);
end
end
end
if j > 1 then
errors(j) = (i_results(j)-i_results(j-1))/i_results(j);
end
end
x_values = lower_lim:.1:upper_lim
plot(x_values, ffunction)
for r = 1 :iterations
x_values2 = lower_lim:h_vector(r):upper_lim
plot(x_values2,ffunction,'--')
end
disp(i_matrix,"I Matrix :");
disp(i_matrix(iterations,iterations), "Final Result = ")
disp(errors(iterations), "The error is : ")
//elseif sel_menu == 2 then
//disp("Type the function to evaluate with the following format:");
//disp(" y=a*x^n + b*x^(n-1) + c*x^(n-2) ..., where a, b, c are constants");
//user_function = input("","string");
//deff('[y] = ffunction(x)', user_function);
//lower_lim = input("Insert the lower limit of the Integral : ");
//upper_lim = input("Insert the upper limit of the Integral : ");
//exp_error = input("Enter the expected error : ");
//h_vector = zeros(iterations);
//i_matrix = zeros(iterations,iterations);
//prev_r_values = zeros(iterations);
//errors = zeros(iterations);
//cont = 0;
//final_error = 100;
//while final_error < exp_error ,
//End while
//end
//End if
//end
//End function
endfunction
function start()
selected_menu = display_menu();
if selected_menu == 1 then
disp("Roots Menu");
selected_method = display_menu_roots();
while selected_method <> 5 & selected_method <> 1 & selected_method <> 2 & selected_method <> 3 & selected_method <> 4 then
disp("Invalid input, please try again");
selected_method = display_menu_roots();
end;
if selected_method == 1 then
disp("Executing Bisection Method");
bisection_method();
elseif selected_method == 2 then
disp("Executing Secant Method");
secant_method();
elseif selected_method == 3 then
disp("Executing Newthon-Raphson Method")
newton_method();
elseif selected_method == 4 then
disp('Executing Bairstow Method');
bairstow_method();
elseif selected_method == 5 then
disp("Ending program");
end;
elseif selected_menu == 2 then
disp("Non Linear Menu");
selected_method = display_menu_non_linear();
while selected_method <> 5 & selected_method <> 1 & selected_method <> 2 & selected_method <> 3 & selected_method <> 4 then
disp("Invalid input, please try again");
selected_method = display_menu_non_linear();
end;
if selected_method == 1 then
disp("Gauss Elimination With Partial Pivoting Method");
Partial_Pivoting_Method();
elseif selected_method == 2 then
disp("Gauss Jordan Method");
Gauss_Jordan_Method();
elseif selected_method == 3 then
disp("LU Decomposition Method")
LU_Decomposition();
elseif selected_method == 4 then
disp("Gauss Seidel Method");
Gauss_Seidel();
elseif selected_method == 0 then
disp("Ending program");
end;
//Funciones del ultimo parcial, no se agregaron en subMenu debido a las instrucciones
elseif selected_menu == 3 then
disp("Linear_Regression_Method");
Linear_Regression_Method();
elseif selected_menu == 4 then
disp("Interpolation_Direct_Method");
Interpolation_Direct_Method();
elseif selected_menu == 5 then
disp("Integration_Trapezoidal");
Integration_Trapezoidal();
elseif selected_menu == 6 then
disp("Integration_Romberg");
Integration_Romberg();
//elseif selected_menu == 7 then
// linear_regression();
end;
endfunction;
|
fa217e4176f5f8893b8577fc8fb582c589b759cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3547/CH9/EX9.4/EX9_4.sce | e92f523337e893d1da3d317796e809bf4cca7518 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 661 | sce | EX9_4.sce | // Example 9.4
// Calculation of the maximum reach up to which the carrier orthogonality is preserved.
// Page no 408
clc;
clear;
close;
//Given data
b=22*10^-27; // Power launched in port 1
T=1.28*10^-9; // Guard interval
N=128; // Subcarriers
f=78.125*10^6; // Frequency spacing between subcarriers
// Bit rate of communication system
I=T/(b*2*%pi*N*f);
I=I*10^-3;
//Displaying results in the command window
printf("\n The maximum reach up to which the carrier orthogonality is preserved = %0.0f km ",I);
// The answers vary due to round off error
|
da6e6b44d675a0189ff2804d65a329d7a638c719 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3574/CH9/EX9.6/EX9_6.sce | d2a20c23bd1ce9fd188af6b10415d00e0e485bcc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,412 | sce | EX9_6.sce | // Example 9.6
// Determine (a) System kilowatts (b) System frequency (c) kilowatt loads
// carried by each machine
// Page 361
clc;
clear;
close;
// Given data
Pres=440; // Resistive load
PF=0.8; // Power factor
Pind=200; // Induction motor power
Palt=210; // Alternator bus load
deltaPa=70; // Change in load for machine A
f=60; // Frequency
deltaPb=70; // Change in load for machine B
deltaPc=70; // Change in load for machine C
// (a) System kilowatts
deltaPbus=Pres+PF*Pind; // Increase in bus load
Psys=Palt+deltaPbus;
// (b) System frequency
GDa=(60.2-f)/deltaPa; // Governor droop for machine A
GDb=(60.4-f)/deltaPb; // Governor droop for machine B
GDc=(60.6-f)/deltaPc; // Governor droop for machine C
// From the figure 9.18(b)
deltaF=600/(350+175+116.6667) ;
f2=f-deltaF;
// (c) Kilowatt loads carried by each machine
Pa2=deltaPa+350*deltaF;
Pb2=deltaPb+175*deltaF;
Pc2=deltaPc+116.6667*deltaF;
// Display result on command window
printf("\n System kilowatts = %0.0f kW ",Psys);
printf("\n System frequency = %0.2f Hz",f2);
printf("\n Kilowatt loads carried by machine A = %0.1f kW",Pa2);
printf("\n Kilowatt loads carried by machine B = %0.1f kW",Pb2);
printf("\n Kilowatt loads carried by machine C = %0.1f kW",Pc2);
|
6b9d7ff1d1b341191063a94fdd8dd1d81c1cde5c | f4d3c7f7e8954cdeb6eb0c7b54a056242b07da22 | /BCPST UTT/Old/affichage.sce | 245f36e74eb153a569b4fd17883663b0e4f3dd60 | [] | no_license | ThibaultLatrille/Slides-Sciencework | bfdf959dbbe4a94e621a3a9a71ccbcd06c5fc338 | 84b53f3901cbdb10fab930e832dc75431a7dce05 | refs/heads/master | 2020-04-27T07:53:52.313720 | 2019-03-06T16:17:57 | 2019-03-06T16:17:57 | 174,151,758 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,079 | sce | affichage.sce | function []=affichage(C,ville1,ville2,d)
RGB = ReadImage('C:\Program Files\scilab-5.2.1\contrib\france1.jpg');
[image, ColorMap] = RGB2Ind(RGB);
FigureHandle = ShowImage(image, 'Example', ColorMap);
coordIm=transform(C)
if d>=100 then
xstring(coordIm(1,2),coordIm(1,1),ville1)
xstring(coordIm(2,2),coordIm(2,1),ville2)
xpoly([coordIm(1,2),coordIm(2,2)],[coordIm(1,1),coordIm(2,1)],"lines",1);
d=round(d);
d=string(d)+" Km";
xstring((coordIm(1,2)+coordIm(2,2))/2,(coordIm(1,1)+coordIm(2,1))/2,d);
else
yhaut=max(coordIm(1,1),coordIm(2,1));
if yhaut=coordIm(1,1) then xhaut=coordIm(1,2);yhaut=yhaut+5;ybas=coordIm(2,1)-5;xbas=coordIm(2,2); villehaut=ville1;villebas=ville2;
else yhaut=yhaut+5; xhaut=coordIm(2,2); ybas=coordIm(1,1)-5;xbas=coordIm(1,2); villehaut=ville2;villebas=ville1;
end
xstring(xhaut,yhaut,villehaut);
xstring(xbas,ybas,villebas);
xpoly([coordIm(1,2),coordIm(2,2)],[coordIm(1,1),coordIm(2,1)],"lines",1);
d=round(d);
d=string(d)+" Km";
xstring((xhaut+xbas)/2,(yhaut+ybas)/2,d);
end
endfunction |
203759440263c08c8506996542630a0608825592 | 449d555969bfd7befe906877abab098c6e63a0e8 | /275/CH2/EX2.2.46/Ch2_2_46.sce | 3459eb38467fb66c38d33cf2cdb2f56e4128b22e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sce | Ch2_2_46.sce | clc
disp("Example 2.46")
printf("\n")
disp("Find the capacitor value for full wave rectifier")
printf("Given\n")
Vdc=20
f=60
RL=500
r=0.1/(2*sqrt(3))
c=1/(4*sqrt(3)*r*f*RL)
printf("Capacitor value =\t%e farad\n",c)
|
6503eba818d4bbd5bcc39ad65c602294ec75975e | 7b7be9b58f50415293def4aa99ef5795e6394954 | /sim/scripts/column.tst | fc926964d1be1760f2dafa35d2f1286938e90fcc | [] | no_license | sabualkaz/sim42 | 80d1174e4bc6ae14122f70c65e259a9a2472ad47 | 27b5afe75723c4e5414904710fa6425d5f27e13c | refs/heads/master | 2022-07-30T06:23:20.119353 | 2020-05-23T16:30:01 | 2020-05-23T16:30:01 | 265,842,394 | 0 | 0 | null | 2020-05-21T12:26:00 | 2020-05-21T12:26:00 | null | UTF-8 | Scilab | false | false | 3,656 | tst | column.tst | # Simple distilation column test
units SI
$thermo = VirtualMaterials.Advanced_Peng-Robinson
/ -> $thermo
thermo + PROPANE n-BUTANE ISOBUTANE n-PENTANE
col = Tower.Tower()
col.Stage_0 + 20 # twenty two stages`
cd col.Stage_10
f = Tower.Feed()
f.Port.T = 30
f.Port.P = 720
f.Port.MoleFlow = 10
f.Port.Fraction = .4 .05 .4 .15
f.Port
cd ../Stage_0
l = Tower.LiquidDraw()
l.Port.P = 700
l.Port.MoleFlow = 5
cond = Tower.EnergyFeed(0)
reflux = Tower.StageSpecification('Reflux')
reflux.Value = 1
cd ../Stage_21
l = Tower.LiquidDraw()
l.Port.P = 730
reb = Tower.EnergyFeed(1)
cd ..
TryToSolve = 1 # start calculation
# since there was little output here, I will put some profile stuff here
L_MassFraction.PROPANE
V_MoleFraction.ISOBUTANE
L_MassFlow
L_Viscosity
L_StdVolFraction.PROPANE
V_StdVolFraction.PROPANE
L_VolumeFlow
L_StdLiqVolumeFlow
V_StdLiqVolumeFlow
#Now lets test efficiencies
Efficiencies
#Make sure it works for zero flow in vap
/col.Stage_0.v = Tower.VapourDraw()
/col.Stage_0.v.Port.MoleFlow = 0.0
Efficiencies = 0.9
V_MoleFraction.PROPANE
Efficiencies = 0.5
V_MoleFraction.PROPANE
Efficiencies = :0 .3 1 .5 2 .7 3-19 .5 20-21 .8
V_MoleFraction.PROPANE
#Per compound
Efficiencies = :-2 .32 4 .18 8 .91 @PROPANE 0 .2 1 .4 2 .6 3-7 .7 @n-BUTANE 1 .3 4-5 .8 6- .4 @CARBON_DIOXIDE -3 .2 4 .6
V_MoleFraction.PROPANE
#Switching compounds should not affect
$thermo.PROPANE >> n-PENTANE
Efficiencies = :-2 .32 4 .18 8 .91 @PROPANE 0 .2 1 .4 2 .6 3-7 .7 @n-BUTANE 1 .3 4-5 .8 6- .4 @CARBON_DIOXIDE -3 .2 4 .6
V_MoleFraction.PROPANE
#Get rid of the generic efficiencies
Efficiencies = :@PROPANE 0 .2 1 .4 2 .6 3-7 .7 17 .9 18 .9 @n-BUTANE 1 .3 4-5 .8 6- .4 @CARBON_DIOXIDE -3 .2 4 .6
V_MoleFraction.PROPANE
#Delete a compound
$thermo - ISOBUTANE
V_MoleFraction.PROPANE
#Now play with removing and adding stages
Efficiencies = 1.0
/col.Stage_10 - 2
Efficiencies
Efficiencies = :0 .9 1 .8 2 .9 3 .87 4 .98 5 .76 6 .9 7-14 .93 15- 1.0
/col.Stage_13 - 2
Efficiencies
/col.Stage_3 - 2
Efficiencies
#/col.Stage_3 + 2
#Efficiencies
Efficiencies = :-2 .32 4 .18 8 .91 @PROPANE 0 .2 1 .4 2 .6 3-7 .7 @n-BUTANE 1 .3 4-5 .8 6- .4 @CARBON_DIOXIDE -3 .2 4 .6
/col.Stage_4 - 2
Efficiencies
/col.Stage_0 - 2
Efficiencies
#Now lets play with the P_Profile object
Efficiencies = 1.0
TryToSolve = 0
/col.P_Profile.Values
/col.LiquidDraw_0_l.P =
/col.P_Profile.Values
/col.P_Profile.Item0 = 700
/col.LiquidDraw_0_l.P
/col.P_Profile.Values
TryToSolve = 1
/col.LiquidDraw_0_l.P
/col.P_Profile.Values
TryToSolve = 0
/col.P_Profile.Item4 = 701
TryToSolve = 1
/col.LiquidDraw_0_l.P
/col.P_Profile.Values
/col.P_Profile.Item0 =
cd /col.Stage_2
. + 2
cd /col
/col.LiquidDraw_0_l.P
/col.P_Profile.Values
/col.LiquidDraw_13_l.P =
/col.P_Profile.Item6 =
/col.LiquidDraw_0_l.P
/col.LiquidDraw_13_l.P
/col.P_Profile.Values
TryToSolve = 0
/col.P_Profile.Item0 = 700
/col.P_Profile.Item13 = 720
TryToSolve = 1
/col.LiquidDraw_0_l.P
/col.LiquidDraw_13_l.P
/col.P_Profile.Values
#Degrees of subcooling
/col.Stage_0.dsc = Tower.DegSubCooling()
/col.Stage_0.l.Port
/col.Stage_0.dsc.Port = 3
/col.Stage_0.l.Port
/col.Stage_0.v = Tower.VapourDraw()
/col.Stage_0.v.MoleFlow = 0.0
/col.Stage_0.v.Port
/col.Stage_0.dsc.Port = 0
/col.Stage_0.v.Port
/col.Stage_0.l.Port
/col.Stage_0.dsc.Port = 2
/col.Stage_0.v.Port
/col.Stage_0.l.Port
copy /col
paste /
/col.LiquidDraw_0_l
/colClone.LiquidDraw_0_l
delete /col.Stage_0.dsc
/col.Stage_0.v.Port
/col.Stage_0.l.Port
|
aef1e79983cb183dd3106e57e7c7995e055d0ced | 449d555969bfd7befe906877abab098c6e63a0e8 | /1865/CH3/EX3.1/prob_1.sce | 8baf63cccd6c88fce5df7359a1bad79d9d5c5fff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 321 | sce | prob_1.sce |
//Problem 1
//Calculate the wavelength of X-rays
clear
clc
V=12400// Potential difference in V
e=1.6*10^(-19)//charge on an electron in C
h=6.626*10^(-34)//planck's constant in J-s
c=3*10^(8)//velocity of light in m/s
w=((h*c)/(e*V))*10^(10)// wavelength of X-rays in A
printf('wavelength of X-rays = %.1f A',w) |
b5eb54461adbcc8e9b5f40daf971ec391eb7c2f1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /215/CH7/EX7.3/ex7_3.sce | a0192d74a08c64fb2cb1fc82a48d87bb25393cb4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 412 | sce | ex7_3.sce | clc
//Example 7.3
//Let wc be the energy stored in capacitor
C=20*10^-6; R=10^6;
t=0:0.001:0.5
v=100*sin(2*%pi*t)
wc=0.5*C*v^2
plot(t,wc)
xtitle('wC vs t','t in sec','wC in J')
//Let iR be the current in the resistor
iR=v/R
//Let pR be the power dissipated in the resistor
pR=iR^2*R
//If wR is the energy dissipated in the resistor
syms s
wR=integ(100*(sin(2*%pi*s))^2,s,0,0.5)
disp(wR,'wR=')
|
e598fc751290d6c05eb2ad7e984a974125f68569 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2441/CH5/EX5.15/Ex5_15.sce | 70dcdecff2b0f24294fc882ab281209b5ca47be7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 322 | sce | Ex5_15.sce | //Example 5.15
clc;clear;close;
format('v',6);
G=100;//MVA
f=50;//Hz
delL=50;//MW
Tc=0.4;//sec
H=5;///kWs/kVA
KE=G*1000*H;//kWs
delKE=delL*1000*Tc;////kWs///due to decrease in load
fnew=sqrt((KE+delKE)/KE) *f;//Hz
fdev=(fnew-f)/f*100;//%
disp(fnew,"New frequency(Hz)");
disp(fdev,"Frequency deviation(%)");
|
e95664fb45fc7acc52017adde55999b0503bfb13 | e02aa9695b075784e5d6aba93cab02d1864f1039 | /Méthodes_numériques/projet/script_scilab/q11.sce | 063daa364046f75a083d5e57c5d74e02c72c20c1 | [] | no_license | michelprojets/Ensimag1 | 1a4cf84203f0e63a71ece278bf364d32d2219825 | b9ed4a050c7c548781a9e26d99747e8883c5c1f5 | refs/heads/master | 2021-09-13T15:47:16.632446 | 2018-05-01T18:17:26 | 2018-05-01T18:17:26 | 103,514,194 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,183 | sce | q11.sce | //Début Q9*
clear
stacksize('max')
T= 60
h = 1/1000
n = 21
N = T/h
m = 0.5
for k = 1:n
if modulo(k, 2) == 0
SM(k,:) = m
else SM(k,:) = 1
end
end
M = diag(SM)
X_0 = zeros(n,1)
X_m1 = zeros(n, 1)
X_m1(1,1) = -h
function[S_M] = secondmembre(Y)
S_M = zeros(n,1)
S_M(1) = -max(Y(1) - Y(2), 0)**(1.5)
for i= 2 : (n-1)
S_M(i) = max(Y(i-1) - Y(i),0)**(1.5) - max(Y(i) - Y(i+1),0)**(1.5)
end
S_M(n) = max(Y(n-1) - Y(n), 0)**(1.5)
endfunction
function[F_y] = feulerimp(Y)
F_y = M*(Y - 2*X_k + X_km1) - (h**2)*secondmembre(Y)
endfunction
function[X_kp1] = eulerimp(M, h)
X_k = X_0
X_km1 = X_m1
X_kp1(:, 1) = X_k
for k = 2 : N
X_k1 = fsolve(X_k, feulerimp)
X_kp1(:, k) = X_k1
X_km1 = X_k
X_k = X_k1
end
endfunction
X= eulerimp(M,h)
function[FC]= force_contact()
for i = 1:n-1
FC(i,1) = max(X(i,1) - X_m1(i,1), 0)**(1.5)
for k = 2 : N
FC(i,k) = max(X(i,k) - X(i+1,k), 0)**(1.5)
end
end
endfunction
contc = force_contact()
t = [0:h:(N-1)*h]'
u = 0:1:n-2
Sgrayplot(u,t,contc)
clear
|
8cb4216c38626896d2df14b11c433ef4afd75c76 | 5f838df28ada5a3bbd5be4c69902b9df4dbffacb | /fir_design.sce | dd4e7c693d46d38c9cf6abb4d5d2764757295d05 | [] | no_license | Sai-Sumedh/filter_design_180070024 | dca29c7b95cb43421e1577af3673f29df3a83251 | c8348c85b515e9d987404c335f52150933512405 | refs/heads/main | 2023-01-14T05:11:25.601573 | 2020-11-12T18:44:36 | 2020-11-12T18:44:36 | 312,361,627 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,238 | sce | fir_design.sce | // code to design the FIR filters
// ideal_BPF = ideal_LPF1 - ideal_LPF_2 with appropriate cutoff frequencies
// get the impulse response of ideal_BPF and then use window (rectangular)
// use functions defined to get all results
// first, common parameters for both filters
M = 37; // my filter design number
delta = 0.15; // tolerance in passband and stopband
B_tran = 4e3; // transition bandwidth in Hz
//...................................................
// parameters specific to the two filters
// Filter 1: A Bandpass filter
B_signal_analog_1 = 160e3; // bw of analog signal, inconsequential
F_sampling_1 = 330e3; // sampling frequency in Hz for filter 1
filter_type_1 = 'bpf';
filter_nature_2 = 'bu';
//...................................................
// Filter 2: Band Stop filter
B_signal_analog_2 = 120e3; //analog signal BW in Hz
F_sampling_2 = 260e3; // Sampling frequency in Hz
filter_type_2 = 'bsf';
filter_nature_2 = 'ch';
//..................................................
// Normalized filter specifications
criticalf_1 = un_norm_filter_edges(M, B_tran, filter_type_1);
criticalf_2 = un_norm_filter_edges(M, B_tran, filter_type_2);
//disp("Un-normalized Filter_1 (BPF) Specifications [fs1, fp1, fp2, fs2]:");
//disp(criticalf_1);
//disp("Un-normalized Filter_2 (BSF) Specifications [fp1, fs1, fs2, fp2]:");
//disp(criticalf_2);
criticalw_1 = get_critical_w(M, filter_type_1, B_tran, F_sampling_1);
criticalw_2 = get_critical_w(M, filter_type_2, B_tran, F_sampling_2);
//disp("Normalized Filter_1 (BPF) Specifications [ws1, wp1, wp2, ws2]:");
//disp(criticalw_1);
//disp("Normalized Filter_2 (BSF) Specifications [wp1, ws1, ws2, wp2]:");
//disp(criticalw_2);
//......................................................
A = -20*log10(delta);
//disp("The value of A")
//disp(A)
del_wt_1 = criticalw_1(2)-criticalw_1(1);
del_wt_2 = criticalw_2(2)-criticalw_2(1);
//disp("Transition BW Filter 1:")
//disp(del_wt_1)
//disp("Transition BW Filter 2:")
//disp(del_wt_2)
l_min_1 = 1 + (A-8)/(2.285*del_wt_1); //=49.7
l_min_2 = 1 + (A-8)/(2.285*del_wt_2);//=39.4
addi_1 = 15;
addi_2 = 13;
len_trial_1 = ceil(l_min_1)+addi_1; // =50+addi_1 =65 for satisfying criteria
len_trial_2 = ceil(l_min_2)+addi_2; // =40+addi_2 = 53 for satisfying criteria
N_1 = (len_trial_1-1)/2; // 32
N_2 = (len_trial_2-1)/2; //26
//disp("Minimum length for Filter 1:")
//disp(l_min_1)
//disp("Minimum length for Filter 2:")
//disp(l_min_2)
n_max = 1000; // max time points (on each side of 0, ie num points =2n+1) to be working with, even for ideal filters
n_axis = -n_max:n_max;
w_axis = -3.14:0.001:3.14;
// FILTER1: BPF
w_cutoff_low_filter1 = (criticalw_1(2) + criticalw_1(1))/2 ;
w_cutoff_high_filter1 = (criticalw_1(3) + criticalw_1(4))/2;
// middle of transition band
w_cutoff_low_filter2 = (criticalw_2(2) + criticalw_2(1))/2;
w_cutoff_high_filter2 = (criticalw_2(3) + criticalw_2(4))/2;
// obtain ideal LPF response for LPF with wp=wp2, wp1 and subtract
h_ideal_wp2_filter1 = impulse_response_ideal_lpf(w_cutoff_high_filter1, n_max);
h_ideal_wp1_filter1 = impulse_response_ideal_lpf(w_cutoff_low_filter1, n_max);
h_ideal_bpf_filter1 = h_ideal_wp2_filter1 - h_ideal_wp1_filter1;
h_ideal_wp2_filter2 = impulse_response_ideal_lpf(w_cutoff_high_filter2, n_max);
h_ideal_wp1_filter2 = impulse_response_ideal_lpf(w_cutoff_low_filter2, n_max);
h_ideal_delta_filter2 = impulse_response_ideal_lpf(%pi, n_max);
h_ideal_bsf_filter2 = h_ideal_delta_filter2-(h_ideal_wp2_filter2 - h_ideal_wp1_filter2);
// constant - bpf = bsf
//plot(n_axis, h_ideal_bpf_filter1);
//xlabel("n");
//ylabel("h[n] for ideal BPF")
//title("Ideal BPF impulse response Filter 1")
H_bpf_ideal = freq_transform(n_axis, w_axis, h_ideal_bpf_filter1);
//plot(w_axis, abs(H_bpf_ideal));
H_bsf_ideal = freq_transform(n_axis, w_axis, h_ideal_bsf_filter2);
//plot(w_axis, abs(H_bsf_ideal));
//............................................
// obtain the windowed Finite impulse response
h_bpf_windowed = apply_window_h_ideal(h_ideal_bpf_filter1, N_1);
//plot(n_axis(n_max-80:n_max+80),h_bpf_windowed(n_max-80:n_max+80));
//xlabel("n");
//ylabel("h_windowed[n]");
//title("Filter 1 (BPF) Impulse response after windowing ");
//disp("Impulse response after applying window Filter1: BPF");
nonzero_indices_h_bpf_win = find(h_bpf_windowed);
samples_h_bpf = h_bpf_windowed(nonzero_indices_h_bpf_win);
//disp(samples_h_bpf);
n_axis_reduced = -N_1:N_1;
z = poly(0,'z');
assert_checkequal(length(n_axis_reduced), length(samples_h_bpf));
H_z_bpf = sum( samples_h_bpf.*(z^(-n_axis_reduced)));
//disp("H(z) for Filter 1 BPF :");
//disp(H_z_bpf);
name_1 = "FIR Bandpass Filter: Kaiser-Window ";
//plot_H_z(H_z_bpf, criticalw_1, delta,name_1);
h_bsf_windowed = apply_window_h_ideal(h_ideal_bsf_filter2, N_2);
//plot(n_axis(n_max-80:n_max+80),h_bsf_windowed(n_max-80:n_max+80));
//xlabel("n");
//ylabel("h_windowed[n]");
//title("Filter 2 (BSF) Impulse response after windowing ");
//title("Impulse response - windowed Filter 2 BSF");
//disp("Impulse response after applying window Filter2: BSF");
nonzero_indices_h_bsf_win = find(h_bsf_windowed);
samples_h_bsf = h_bsf_windowed(nonzero_indices_h_bsf_win);
//disp(samples_h_bsf);
n_axis_reduced_bsf = -N_2:N_2;
//z = poly(0,'z');
assert_checkequal(length(n_axis_reduced_bsf), length(samples_h_bsf));
H_z_bsf = sum( samples_h_bsf.*(z^(-n_axis_reduced_bsf)));
name_2 = "FIR Bandstop Filter: Kaiser Window ";
//plot_H_z(H_z_bsf, criticalw_2, delta, name_2);
//disp("H(z) for Filter 2 BSF :");
//disp(H_z_bsf);
// look at freq spectrum of windowed function
//H_bpf_windowed = freq_transform(n_axis, w_axis, h_bpf_windowed);
//plot(w_axis, abs(H_bpf_windowed));
//
//set(gca(),"auto_clear","off");
//plot(w_axis,(1+delta)*ones(1,length(w_axis)),':'); // horizontal line at 1
//plot(w_axis,(1-delta)*ones(1,length(w_axis)),':'); // horizontal line at 1
//plot(w_axis,(delta)*ones(1,length(w_axis)),':'); // horizontal line at 1
//plot(criticalw_1(1)*ones(1, length(w_axis)), abs(H_bpf_windowed),':');
//plot(criticalw_1(2)*ones(1, length(w_axis)), abs(H_bpf_windowed),':');
//plot(criticalw_1(3)*ones(1, length(w_axis)), abs(H_bpf_windowed),':');
//plot(criticalw_1(4)*ones(1, length(w_axis)), abs(H_bpf_windowed),':');
w_axis_new = 0.001:0.001:3.14;
H_bpf_windowed = freq_transform(n_axis, w_axis_new, h_bpf_windowed);
//bode(w_axis_new, H_bpf_windowed);
mag_bpf = abs(H_bpf_windowed);
phase_bpf = abs(atan(imag(H_bpf_windowed), real(H_bpf_windowed))); // tan-1(y/x)
//h1 = gca();
//plot(w_axis_new, mag_bpf, 'r');
////legend(["|H(w)|"]);
//xlabel("w (normalized frequency)");
//ylabel("|H(w)|", "color",'r');
//h2 = newaxes();
//plot(w_axis_new, phase_bpf);
//h2.filled="off";
//h2.y_location="right";
//ylabel("argH(w)", "color",'b')
//set(gca(),"auto_clear","off");
////legends(["|H(w)|";"arg(H(w))"]);
//title("FIR Filter-1 (BPF) Frequency Response")
H_bsf_windowed = freq_transform(n_axis, w_axis_new, h_bsf_windowed);
mag_bsf = abs(H_bsf_windowed);
phase_bsf = abs(atan(imag(H_bsf_windowed), real(H_bsf_windowed))); // tan-1(y/x)
h1 = gca();
plot(w_axis_new, mag_bsf, 'r');
//legend(["|H(w)|"]);
xlabel("w (normalized frequency)");
ylabel("|H(w)|", "color",'r');
h2 = newaxes();
plot(w_axis_new, phase_bsf);
h2.filled="off";
h2.y_location="right";
ylabel("argH(w)", "color",'b')
set(gca(),"auto_clear","off");
//legends(["|H(w)|";"arg(H(w))"]);
title("FIR Filter-2 (BSF) Frequency Response");
//plot(w_axis, abs(H_bsf_windowed));
//
//set(gca(),"auto_clear","off");
//plot(w_axis,(1+delta)*ones(1,length(w_axis)),':'); // horizontal line at 1
//plot(w_axis,(1-delta)*ones(1,length(w_axis)),':'); // horizontal line at 1
//plot(w_axis,(delta)*ones(1,length(w_axis)),':'); // horizontal line at 1
//plot(criticalw_2(1)*ones(1, length(w_axis)), abs(H_bsf_windowed),':');
//plot(criticalw_2(2)*ones(1, length(w_axis)), abs(H_bsf_windowed),':');
//plot(criticalw_2(3)*ones(1, length(w_axis)), abs(H_bsf_windowed),':');
//plot(criticalw_2(4)*ones(1, length(w_axis)), abs(H_bsf_windowed),':');
|
59fd3791a6a44836235c5f0ee464e862dc2a419d | bf094dc062201cb9919f235a889253d5029cbb15 | /scripts/lin.sce | ebc99631e08d3fce6aea927d95e0d30c30bccf6b | [] | no_license | yshl/1000x1000 | 5169db3c1082ccacd8ad0805b8d6eaaa16032456 | aabda9a9010a424d6bff1fbe87019496d7a543b7 | refs/heads/master | 2021-01-25T03:49:35.046160 | 2013-09-22T02:30:09 | 2013-09-22T02:30:09 | 7,078,585 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 97 | sce | lin.sce | n=1000;
a=ones(n,n)+1000*eye(n,n);
b=1000*ones(n,1);
x=a\b;
print(%io(2),max(abs(x-0.5)));
quit;
|
e8373080a06640aecea37bafe6e726e76897ab8f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1442/CH3/EX3.3/3_3.sce | 6c08d367edbcd86314e52593e2a598c016278175 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 177 | sce | 3_3.sce | clc
//initialisation of variables
m= 5 //kg
g= 9.8 //m/sec^2
k= 500 //N/m
//CALCULATIONS
x= m*g/k
W= -m*g*x
//RESULTS
printf ('work interaction of spring = %.2f J',W)
|
fdecedca5f46f61c035fed14a6fe29eaa316b376 | 449d555969bfd7befe906877abab098c6e63a0e8 | /55/CH3/EX3.8/3ex8.sci | 8f3e528fae661a7daca612b7ac3fad2e8154b360 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 189 | sci | 3ex8.sci | function[k]=fact(a)
k=-1;
if(a<0|a>200)
disp("Invalid");
break;
else
if(a==1|a==0)
k=1;
else
k=a*fact(a-1);
end
end
endfunction
a=4;
p=fact(a);
disp(p,'the value of 4! is') |
8df0ca5e211d3e2805738302d0d21c397c0a0dac | 449d555969bfd7befe906877abab098c6e63a0e8 | /167/CH8/EX8.1/ex1.sce | 8a574e6541c2f68407250303da49a4bd6ac0314e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 416 | sce | ex1.sce | //example 1
//maximum power generation by wind turbine
clear
clc
V=10 //Average velocity of wind in m/s
ke=(V^2/2)/1000 //exegy of the blowing air in kJ/kg
D=12 //diameter of wind turbine in m
d=1.18 //density of air in kg/m^3
M=d*%pi*D^2*V/4 //mass flow rate in kg/s
p=M*ke //maximum power generated by wind turbine in kW
printf("\n Hence, the maximum power generated by wind turbine is = %.1f kW. \n",p); |
6a0a364f94b43ae96b99e61e98182251cd933c3e | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/latcfilt/latcfilt14.sce | 9f3c79283dd9a405c8d4ab052c80c27a46fb653d | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 725 | sce | latcfilt14.sce | //i/p arg x contains complex valued elements
k=[0.2 0.3 0.4 1];
x=[1 2 3 4 5+5*%i 6 7];
[f,g] = latcfilt(k,x);
disp(f);
disp(g);
//output
//
//!--error 10000
//dimension mis-match between k and v
//at line 46 of function latcfilt called by :
//[f,g] = latcfilt(k,x);
//
//matlab
//Columns 1 through 3
//
// 1.0000 + 0.0000i 2.7800 + 0.0000i 5.3680 + 0.0000i
//
// Columns 4 through 6
//
// 8.7360 + 0.0000i 13.1040 + 5.0000i 17.4720 + 3.9000i
//
// Column 7
//
// 21.8400 + 4.0400i
//
// Columns 1 through 3
//
// 1.0000 + 0.0000i 2.7800 + 0.0000i 5.3680 + 0.0000i
//
// Columns 4 through 6
//
// 8.7360 + 0.0000i 13.1040 + 5.0000i 17.4720 + 3.9000i
//
// Column 7
//
// 21.8400 + 4.0400i
|
12cd2e0c7199e8eee2c9edae380f2f1b73195684 | 36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd | /Giza.sce | b820d0efa1b26ce3a5ea781aec1505f168e16781 | [] | no_license | Ahmad6543/Scenarios | cef76bf19d46e86249a6099c01928e4e33db5f20 | 6a4563d241e61a62020f76796762df5ae8817cc8 | refs/heads/master | 2023-03-18T23:30:49.653812 | 2020-09-23T06:26:05 | 2020-09-23T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 60,214 | sce | Giza.sce | Name=Giza
PlayerCharacters=King Tut
BotCharacters=Sphynx.bot
IsChallenge=true
Timelimit=120.0
PlayerProfile=King Tut
AddedBots=Sphynx.bot
PlayerMaxLives=0
BotMaxLives=0
PlayerTeam=1
BotTeams=2
MapName=b4.map
MapScale=5.0
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=false
InvincibleBots=false
Timescale=1.0
BlockHealthbars=true
TimeRefilledByKill=0.0
ScoreToWin=1000.0
ScorePerDamage=1.0
ScorePerKill=0.0
ScorePerMidairDirect=0.0
ScorePerAnyDirect=0.0
ScorePerTime=0.0
ScoreLossPerDamageTaken=0.0
ScoreLossPerDeath=0.0
ScoreLossPerMidairDirected=0.0
ScoreLossPerAnyDirected=0.0
ScoreMultAccuracy=false
ScoreMultDamageEfficiency=false
ScoreMultKillEfficiency=false
GameTag=Tracking, Strafing
WeaponHeroTag=Laser Beam
DifficultyTag=2
AuthorsTag=faiNt`
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=true
BlockFCT=true
Description=HEADSHOTS ONLY // STRAFING ADDS TO SCORE
GameVersion=1.0.7.2
ScorePerDistance=0.02
[Aim Profile]
Name=At Feet
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=-200.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Aim Profile]
Name=Low Skill At Feet
MinReactionTime=0.35
MaxReactionTime=0.45
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=20.0
TrackSpeed=3.0
TrackError=5.0
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=60.0
ShootFOV=25.0
VerticalAimOffset=-200.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Aim Profile]
Name=Low Skill
MinReactionTime=0.35
MaxReactionTime=0.45
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=20.0
TrackSpeed=3.0
TrackError=5.0
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=60.0
ShootFOV=25.0
VerticalAimOffset=0.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[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
[Bot Profile]
Name=Sphynx
DodgeProfileNames=Long Strafe FB
DodgeProfileWeights=1.0
DodgeProfileMaxChangeTime=2.0
DodgeProfileMinChangeTime=1.5
WeaponProfileWeights=1.0;1.0;2.0;1.0;0.0;0.0;0.0;0.0
AimingProfileNames=At Feet;Low Skill At Feet;Low Skill;Default;Default;Default;Default;Default
WeaponSwitchTime=3.0
UseWeapons=false
CharacterProfile=Watcher
SeeThroughWalls=false
NoDodging=false
NoAiming=false
[Character Profile]
Name=King Tut
MaxHealth=300.0
WeaponProfileNames=steezy shooter;;;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=5.0
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=80.000
HeadshotOnly=false
DamageKnockbackFactor=4.0
MovementType=Base
MaxSpeed=700.0
MaxCrouchSpeed=500.0
Acceleration=5000.0
AirAcceleration=16000.0
Friction=4.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=3.0
AirControl=0.25
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=0.771 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=1.000 Y=0.888 Z=0.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=320.0
MainBBRadius=58.0
MainBBHasHead=false
MainBBHeadRadius=45.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=320.0
ProjBBRadius=55.0
ProjBBHasHead=false
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=true
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.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
[Character Profile]
Name=Watcher
MaxHealth=200.0
WeaponProfileNames=;;;;;;;
MinRespawnDelay=0.1
MaxRespawnDelay=0.1
StepUpHeight=45.0
CrouchHeightModifier=0.69
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=20.000
HeadshotOnly=true
DamageKnockbackFactor=3.0
MovementType=Base
MaxSpeed=250.0
MaxCrouchSpeed=270.0
Acceleration=10000.0
AirAcceleration=16000.0
Friction=100.0
BrakingFrictionFactor=0.0
JumpVelocity=300.0
Gravity=1.0
AirControl=0.16
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=1.000 Y=1.000 Z=1.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=1.000 Y=1.000 Z=1.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=100.0
MainBBRadius=26.0
MainBBHasHead=true
MainBBHeadRadius=20.0
MainBBHeadOffset=40.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=160.0
ProjBBRadius=26.0
ProjBBHasHead=false
ProjBBHeadRadius=20.0
ProjBBHeadOffset=15.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=true
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.1
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
[Dodge Profile]
Name=Long Strafe FB
MaxTargetDistance=100000.0
MinTargetDistance=0.0
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=1.0
MaxLRTimeChange=3.0
MinFBTimeChange=0.25
MaxFBTimeChange=0.5
DamageReactionChangesDirection=true
DamageReactionChanceToIgnore=0.8
DamageReactionMinimumDelay=0.15
DamageReactionMaximumDelay=0.18
DamageReactionCooldown=1.0
DamageReactionThreshold=0.0
DamageReactionResetTimer=0.1
JumpFrequency=0.0
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.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.9
BlockedMovementReactionMin=0.05
BlockedMovementReactionMax=0.1
[Weapon Profile]
Name=steezy shooter
Type=Hitscan
ShotsPerClick=1
DamagePerShot=1.0
KnockbackFactor=0.0
TimeBetweenShots=0.046
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=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=1.0
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=7.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Ball
VisualLifetime=0.05
WallParticleEffect=None
HitParticleEffect=None
BounceOffWorld=false
BounceFactor=0.0
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=-80.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.0
RecoilNegatable=false
DecalType=0
DecalSize=30.0
DelayAfterShooting=0.0
BeamTracksCrosshair=true
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=1.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.1
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=Clamped Horizontal
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.1
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=0.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,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.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.095
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
240.000000 54.000000 96.000000
614.000000 54.000000 96.000000
614.000000 54.000000 90.000000
240.000000 54.000000 90.000000
240.000000 -6.000000 96.000000
614.000000 -6.000000 96.000000
614.000000 -6.000000 90.000000
240.000000 -6.000000 90.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
240.000000 114.000000 96.000000
614.000000 114.000000 96.000000
614.000000 114.000000 90.000000
240.000000 114.000000 90.000000
240.000000 54.000000 96.000000
614.000000 54.000000 96.000000
614.000000 54.000000 90.000000
240.000000 54.000000 90.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
608.000000 54.000000 144.000000
614.000000 54.000000 144.000000
614.000000 54.000000 96.000000
608.000000 54.000000 96.000000
608.000000 -6.000000 144.000000
614.000000 -6.000000 144.000000
614.000000 -6.000000 96.000000
608.000000 -6.000000 96.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
608.000000 114.000000 144.000000
614.000000 114.000000 144.000000
614.000000 114.000000 96.000000
608.000000 114.000000 96.000000
608.000000 54.000000 144.000000
614.000000 54.000000 144.000000
614.000000 54.000000 96.000000
608.000000 54.000000 96.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
238.000000 54.000000 144.000000
244.000000 54.000000 144.000000
244.000000 54.000000 96.000000
238.000000 54.000000 96.000000
238.000000 -6.000000 144.000000
244.000000 -6.000000 144.000000
244.000000 -6.000000 96.000000
238.000000 -6.000000 96.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
238.000000 114.000000 144.000000
244.000000 114.000000 144.000000
244.000000 114.000000 96.000000
238.000000 114.000000 96.000000
238.000000 54.000000 144.000000
244.000000 54.000000 144.000000
244.000000 54.000000 96.000000
238.000000 54.000000 96.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
240.000000 114.000000 150.000000
614.000000 114.000000 150.000000
614.000000 114.000000 144.000000
240.000000 114.000000 144.000000
240.000000 -8.000000 150.000000
614.000000 -8.000000 150.000000
614.000000 -8.000000 144.000000
240.000000 -8.000000 144.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
238.000000 -6.000000 152.000000
614.000000 -6.000000 152.000000
614.000000 -6.000000 87.999985
238.000000 -6.000000 87.999985
238.000000 -434.000000 152.000000
614.000000 -434.000000 152.000000
614.000000 -434.000000 87.999985
238.000000 -434.000000 87.999985
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
-1032.000000 168.000000 832.000000
-1032.000000 168.000000 628.000000
-1066.000000 168.000000 628.000000
-1066.000000 168.000000 832.000000
-1032.000000 -28.000000 832.000000
-1032.000000 -28.000000 628.000000
-1066.000000 -28.000000 628.000000
-1066.000000 -28.000000 832.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
348.000000 -152.000000 600.000000
348.000000 -112.000000 600.000000
348.000000 -112.000000 536.000000
284.000000 -152.000000 600.000000
348.000000 -152.000000 536.000000
284.000000 -152.000000 536.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
348.000000 -152.000000 536.000000
348.000000 -112.000000 536.000000
348.000000 -112.000000 600.000000
412.000000 -152.000000 536.000000
348.000000 -152.000000 600.000000
412.000000 -152.000000 600.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
220.000000 -152.000000 536.000000
220.000000 -112.000000 536.000000
220.000000 -112.000000 600.000000
284.000000 -152.000000 536.000000
220.000000 -152.000000 600.000000
284.000000 -152.000000 600.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
256.000000 -112.000000 360.000000
160.000122 -152.000000 360.000122
256.000122 -152.000000 424.000122
256.000000 -152.000000 360.000000
160.000000 -152.000000 424.000061
256.000122 -112.000000 424.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
256.000000 -112.000000 424.000000
352.000000 -152.000000 424.000000
256.000000 -152.000000 360.000000
256.000000 -152.000000 424.000000
352.000000 -152.000000 360.000000
256.000000 -112.000000 360.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
476.000000 -152.000000 536.000000
476.000000 -112.000000 536.000000
476.000000 -112.000000 600.000000
540.000000 -152.000000 536.000000
476.000000 -152.000000 600.000000
540.000000 -152.000000 600.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
476.000000 -152.000000 600.000000
476.000000 -112.000000 600.000000
476.000000 -112.000000 536.000000
412.000000 -152.000000 600.000000
476.000000 -152.000000 536.000000
412.000000 -152.000000 536.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
956.000000 -152.000000 410.000000
956.000000 -112.000000 410.000000
956.000000 -112.000000 474.000000
1020.000000 -152.000000 410.000000
956.000000 -152.000000 474.000000
1020.000000 -152.000000 474.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
764.000000 -112.000000 474.000000
860.000000 -152.000000 474.000000
764.000000 -152.000000 410.000000
764.000000 -152.000000 474.000000
860.000000 -152.000000 410.000000
764.000000 -112.000000 410.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
956.000000 -112.000000 410.000000
860.000122 -152.000000 410.000122
956.000122 -152.000000 474.000122
956.000000 -152.000000 410.000000
860.000000 -152.000000 474.000061
956.000122 -112.000000 474.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
764.000000 -152.000000 474.000000
764.000000 -112.000000 474.000000
764.000000 -112.000000 410.000000
700.000000 -152.000000 474.000000
764.000000 -152.000000 410.000000
700.000000 -152.000000 410.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
604.000000 -152.000000 600.000000
604.000000 -112.000000 600.000000
604.000000 -112.000000 536.000000
540.000000 -152.000000 600.000000
604.000000 -152.000000 536.000000
540.000000 -152.000000 536.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
604.000000 -152.000000 536.000000
604.000000 -112.000000 536.000000
604.000000 -112.000000 600.000000
668.000000 -152.000000 536.000000
604.000000 -152.000000 600.000000
668.000000 -152.000000 600.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
60.000000 -112.000000 428.000000
-35.999878 -152.000000 428.000122
60.000122 -152.000000 492.000122
60.000000 -152.000000 428.000000
-36.000000 -152.000000 492.000061
60.000122 -112.000000 492.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
-132.000000 -112.000000 492.000000
-36.000000 -152.000000 492.000000
-132.000000 -152.000000 428.000000
-132.000000 -152.000000 492.000000
-36.000000 -152.000000 428.000000
-132.000000 -112.000000 428.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
220.000000 -152.000000 600.000000
220.000000 -112.000000 600.000000
220.000000 -112.000000 536.000000
156.000000 -152.000000 600.000000
220.000000 -152.000000 536.000000
156.000000 -152.000000 536.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
-98.000000 28.000000 536.000000
1003.999878 28.000000 536.000000
1003.999878 28.000000 502.000000
-98.000000 28.000000 502.000000
-98.000000 -168.000000 536.000000
1003.999878 -168.000000 536.000000
1003.999878 -168.000000 502.000000
-98.000000 -168.000000 502.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
-96.000000 28.000000 634.000000
1005.999878 28.000000 634.000000
1005.999878 28.000000 600.000000
-96.000000 28.000000 600.000000
-96.000000 -168.000000 634.000000
1005.999878 -168.000000 634.000000
1005.999878 -168.000000 600.000000
-96.000000 -168.000000 600.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
504.000000 -152.000000 464.000000
504.000000 -112.000000 464.000000
504.000000 -112.000000 400.000000
440.000000 -152.000000 464.000000
504.000000 -152.000000 400.000000
440.000000 -152.000000 400.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
504.000000 -152.000000 400.000000
504.000000 -112.000000 400.000000
503.999939 -112.000000 463.999939
567.999878 -152.000000 399.999939
503.999939 -152.000000 463.999939
567.999878 -152.000000 463.999878
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
-66.000000 -4.000000 742.000000
894.000000 -4.000000 742.000000
894.000000 -4.000000 678.000000
-66.000000 -4.000000 678.000000
-66.000000 -6.000000 742.000000
894.000000 -6.000000 742.000000
894.000000 -6.000000 678.000000
-66.000000 -6.000000 678.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
-2.000000 -4.000000 742.000000
-2.000000 36.000000 742.000000
-2.000000 36.000000 678.000000
-66.000000 -4.000000 742.000000
-2.000000 -4.000000 678.000000
-66.000000 -4.000000 678.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
-2.000000 36.000000 742.000000
94.000000 -4.000000 742.000000
-2.000000 -4.000000 678.000000
-2.000000 -4.000000 742.000000
94.000000 -4.000000 678.000000
-2.000000 36.000000 678.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
190.000000 36.000000 678.000000
94.000122 -4.000000 678.000122
190.000122 -4.000000 742.000122
190.000000 -4.000000 678.000000
94.000000 -4.000000 742.000000
190.000122 36.000000 742.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
190.000000 -4.000000 678.000000
190.000000 36.000000 678.000000
190.000000 36.000000 742.000000
254.000000 -4.000000 678.000000
190.000000 -4.000000 742.000000
254.000000 -4.000000 742.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
318.000000 -4.000000 742.000000
318.000000 36.000000 742.000000
318.000000 36.000000 678.000000
254.000000 -4.000000 742.000000
318.000000 -4.000000 678.000000
254.000000 -4.000000 678.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
318.000000 -4.000000 678.000000
318.000000 36.000000 678.000000
318.000000 36.000000 742.000000
382.000000 -4.000000 678.000000
318.000000 -4.000000 742.000000
382.000000 -4.000000 742.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
478.000000 36.000000 678.000000
382.000122 -4.000000 678.000122
478.000122 -4.000000 742.000122
478.000000 -4.000000 678.000000
382.000000 -4.000000 742.000000
478.000122 36.000000 742.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
478.000000 36.000000 742.000000
574.000000 -4.000000 742.000000
478.000000 -4.000000 678.000000
478.000000 -4.000000 742.000000
574.000000 -4.000000 678.000000
478.000000 36.000000 678.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
638.000000 -4.000000 742.000000
638.000000 36.000000 742.000000
638.000000 36.000000 678.000000
574.000000 -4.000000 742.000000
638.000000 -4.000000 678.000000
574.000000 -4.000000 678.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
638.000000 36.000000 742.000000
734.000000 -4.000000 742.000000
638.000000 -4.000000 678.000000
638.000000 -4.000000 742.000000
734.000000 -4.000000 678.000000
638.000000 36.000000 678.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
830.000000 36.000000 678.000000
734.000122 -4.000000 678.000122
830.000122 -4.000000 742.000122
830.000000 -4.000000 678.000000
734.000000 -4.000000 742.000000
830.000122 36.000000 742.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
830.000000 -4.000000 678.000000
830.000000 36.000000 678.000000
830.000000 36.000000 742.000000
894.000000 -4.000000 678.000000
830.000000 -4.000000 742.000000
894.000000 -4.000000 742.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 4 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 1 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 0 3 5 0x00000000
brush
vertices
-96.000000 168.000000 678.000000
1005.999878 168.000000 678.000000
1005.999878 168.000000 644.000000
-96.000000 168.000000 644.000000
-96.000000 -28.000000 678.000000
1005.999878 -28.000000 678.000000
1005.999878 -28.000000 644.000000
-96.000000 -28.000000 644.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
-350.000000 614.000000 1064.000000
1132.000000 614.000000 1064.000000
1132.000000 614.000000 1046.000000
-350.000000 614.000000 1046.000000
-350.000000 -516.000000 1064.000000
1132.000000 -516.000000 1064.000000
1132.000000 -516.000000 1046.000000
-350.000000 -516.000000 1046.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
1114.000000 614.000000 -418.000000
1114.000000 614.000000 1064.000000
1132.000000 614.000000 1064.000000
1132.000000 614.000000 -418.000000
1114.000000 -516.000000 -418.000000
1114.000000 -516.000000 1064.000000
1132.000000 -516.000000 1064.000000
1132.000000 -516.000000 -418.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
-332.000061 614.000000 1064.000000
-332.002563 614.000000 72.000092
-350.002472 614.000000 72.000000
-350.000061 614.000000 1064.000000
-332.000061 -516.000000 1064.000000
-332.002563 -516.000000 72.000092
-350.002472 -516.000000 72.000000
-350.000061 -516.000000 1064.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
-134.000000 -152.000000 618.000000
1024.000000 -152.000000 618.000000
1024.000000 -152.000000 152.000000
-134.000000 -152.000000 152.000000
-134.000000 -154.000000 618.000000
1024.000000 -154.000000 618.000000
1024.000000 -154.000000 152.000000
-134.000000 -154.000000 152.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
-350.000000 368.000000 90.000000
1132.000000 368.000000 90.000000
1132.000000 368.000000 72.000000
-350.000000 368.000000 72.000000
-350.000000 -514.000000 90.000000
1132.000000 -514.000000 90.000000
1132.000000 -514.000000 72.000000
-350.000000 -514.000000 72.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
1032.000000 160.000000 766.000000
936.000000 120.000000 766.000000
1032.000000 120.000000 830.000000
1032.000000 120.000000 766.000000
936.000000 120.000000 830.000000
1032.000000 160.000000 830.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
840.000000 160.000000 830.000000
936.000000 120.000000 830.000000
840.000000 120.000000 766.000000
840.000000 120.000000 830.000000
936.000000 120.000000 766.000000
840.000000 160.000000 766.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
648.000000 160.000000 830.000000
744.000000 120.000000 830.000000
648.000000 120.000000 766.000000
648.000000 120.000000 830.000000
744.000000 120.000000 766.000000
648.000000 160.000000 766.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
840.000000 160.000000 766.000000
744.000122 120.000000 766.000122
840.000122 120.000000 830.000122
840.000000 120.000000 766.000000
744.000000 120.000000 830.000000
840.000122 160.000000 830.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
264.000000 160.000000 830.000000
360.000000 120.000000 830.000000
264.000000 120.000000 766.000000
264.000000 120.000000 830.000000
360.000000 120.000000 766.000000
264.000000 160.000000 766.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
456.000000 160.000000 766.000000
360.000122 120.000000 766.000122
456.000122 120.000000 830.000122
456.000000 120.000000 766.000000
360.000000 120.000000 830.000000
456.000122 160.000000 830.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
456.000000 160.000000 830.000000
552.000000 120.000000 830.000000
456.000000 120.000000 766.000000
456.000000 120.000000 830.000000
552.000000 120.000000 766.000000
456.000000 160.000000 766.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
648.000000 160.000000 766.000000
552.000122 120.000000 766.000122
648.000122 120.000000 830.000122
648.000000 120.000000 766.000000
552.000000 120.000000 830.000000
648.000122 160.000000 830.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
-126.000000 318.000000 766.000000
1033.999878 318.000000 766.000000
1033.999878 318.000000 732.000000
-126.000000 318.000000 732.000000
-126.000000 122.000000 766.000000
1033.999878 122.000000 766.000000
1033.999878 122.000000 732.000000
-126.000000 122.000000 732.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
-124.000000 316.000000 862.000000
1035.999878 316.000000 862.000000
1035.999878 316.000000 828.000000
-124.000000 316.000000 828.000000
-124.000000 120.000000 862.000000
1035.999878 120.000000 862.000000
1035.999878 120.000000 828.000000
-124.000000 120.000000 828.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
1030.000000 316.000000 838.000000
1034.000000 316.000000 838.000000
1034.000000 316.000000 762.000000
1030.000000 316.000000 762.000000
1030.000000 120.000000 838.000000
1034.000000 120.000000 838.000000
1034.000000 120.000000 762.000000
1030.000000 120.000000 762.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
-124.000000 316.000000 836.000000
-120.000000 316.000000 836.000000
-120.000000 316.000000 760.000000
-124.000000 316.000000 760.000000
-124.000000 120.000000 836.000000
-120.000000 120.000000 836.000000
-120.000000 120.000000 760.000000
-124.000000 120.000000 760.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
264.000000 160.000000 766.000000
168.000122 120.000000 766.000122
264.000122 120.000000 830.000122
264.000000 120.000000 766.000000
168.000000 120.000000 830.000000
264.000122 160.000000 830.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
72.000000 160.000000 830.000000
168.000000 120.000000 830.000000
72.000000 120.000000 766.000000
72.000000 120.000000 830.000000
168.000000 120.000000 766.000000
72.000000 160.000000 766.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
72.000000 160.000000 766.000000
-23.999878 120.000000 766.000122
72.000122 120.000000 830.000122
72.000000 120.000000 766.000000
-24.000000 120.000000 830.000000
72.000122 160.000000 830.000122
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
-120.000000 160.000000 828.000000
-24.000000 120.000000 828.000000
-120.000000 120.000000 764.000000
-120.000000 120.000000 828.000000
-24.000000 120.000000 764.000000
-120.000000 160.000000 764.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 3 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 0 1 4 0x00000000
brush
vertices
-34.000061 122.000000 818.000000
-34.000305 122.000000 614.000244
-68.000366 122.000000 614.000122
-68.000061 122.000000 818.000000
-34.000061 -44.000000 818.000000
-34.000305 -44.000000 614.000244
-68.000366 -44.000000 614.000122
-68.000061 -44.000000 818.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
927.999939 122.000000 800.000000
927.999695 122.000000 596.000244
893.999695 122.000000 596.000122
893.999939 122.000000 800.000000
927.999939 -26.000000 800.000000
927.999695 -26.000000 596.000244
893.999695 -26.000000 596.000122
893.999939 -26.000000 800.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
155.999939 6.000004 696.000000
155.999939 6.000004 492.000000
121.999939 6.000004 492.000000
121.999939 6.000004 696.000000
155.999939 -146.000000 696.000000
155.999939 -146.000000 492.000000
121.999939 -146.000000 492.000000
121.999939 -146.000000 696.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
697.999939 14.000000 668.000000
697.999695 14.000000 464.000244
663.999634 14.000000 464.000122
663.999939 14.000000 668.000000
697.999939 -146.000000 668.000000
697.999695 -146.000000 464.000244
663.999634 -146.000000 464.000122
663.999939 -146.000000 668.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
-100.000000 168.000000 766.000000
1001.999878 168.000000 766.000000
1001.999878 168.000000 742.000000
-100.000000 168.000000 742.000000
-100.000000 -28.000000 766.000000
1001.999878 -28.000000 766.000000
1001.999878 -28.000000 742.000000
-100.000000 -28.000000 742.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 CameraPath
UInt8 posLerp 2
UInt8 angleLerp 2
entity
type PlayerSpawn
Vector3 position 418.000000 -6.000000 112.000000
Bool8 teamB 0
Bool8 initialSpawn 0
Bool8 modeCTF 0
Bool8 modeFFA 0
Bool8 modeTDM 0
Bool8 mode1v1 0
Bool8 modeRace 0
Bool8 mode2v2 0
entity
type PlayerSpawn
Vector3 position 266.000000 160.000000 798.000000
Vector3 angles 180.000000 0.000000 0.000000
Bool8 teamA 0
Bool8 initialSpawn 0
Bool8 modeCTF 0
Bool8 modeFFA 0
Bool8 modeTDM 0
Bool8 mode1v1 0
Bool8 modeRace 0
entity
type PlayerSpawn
Vector3 position 574.000000 8.000000 708.000000
Vector3 angles 180.000000 0.000000 0.000000
Bool8 teamA 0
Bool8 initialSpawn 0
Bool8 modeCTF 0
Bool8 modeFFA 0
Bool8 modeTDM 0
Bool8 mode1v1 0
Bool8 modeRace 0
entity
type PlayerSpawn
Vector3 position 412.000000 -138.000000 582.000000
Vector3 angles 180.000000 0.000000 0.000000
Bool8 teamA 0
Bool8 initialSpawn 0
Bool8 modeCTF 0
Bool8 modeFFA 0
Bool8 modeTDM 0
Bool8 mode1v1 0
Bool8 modeRace 0
|
f39e63e091093331d9c169b7dc344c1e7c024cf6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1019/CH8/EX8.1/Example_8_1.sce | a1e003f905a19e19841c0002fce889b061fb2fc5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 594 | sce | Example_8_1.sce | //Example 8.1
clear;
clc;
//Given
Kp=0.10;//equillibrium constant at 300K
Pa=20;// Partial pressure of A in atm
Pm=1.0;///partial pressure of M in atm
T=300;//Temperature in K
R=8.314;// gas constant in J K^-1 mol^-1
//To determine the free energy
Qp=Pm/Pa;//reaction quotient
delG=R*T*log(Qp/Kp);//free energy change
mprintf('(a) delG = %f J mol^-1',delG);
delG0=-R*T*log(Kp);//standard free energy in J mol^-1
mprintf('\n (b) standard free energy = %f J mol^-1',delG0);
mprintf('\n (c) Since delG is negetive,the reaction proceeds spontaneously in forward direction')
//end |
dc9f6f04bbb4246d522c6446e22ef4ab67cc6a3d | 449d555969bfd7befe906877abab098c6e63a0e8 | /476/CH9/EX9.16/Example_9_16.sce | c4c7cf45332e9aacd0a1f832331b09a2f7e4d2c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 989 | sce | Example_9_16.sce | //A Textbook of Chemical Engineering Thermodynamics
//Chapter 9
//Chemical Reaction Equilibria
//Example 16
clear;
clc;
//Given:
//Reaction: CO(g) + H2O(g) --> CO2(g) + H2(g)
P = 1; //pressure in bar
K = 1; //equilibrium constant of reaction
//To calculate the fractional dissociation of steam
//Basis: 1 mole water vapour present in reactant stream
//Let e be the extent of reaction
//(a). CO supplied is 100% in excess of the stoichiometric requirement
//Mole fraction of components:
//CO: (2-e)/3
//H20: (1-e)/3
//CO2: e/3
//H2: e/3
//e^2/{(1-e)(2-e)] = K = 1, so
//3e-2 = 0;
e = 2/3;
mprintf('(a). The conversion of steam is %f percent',e*100);
//(b). CO supplied is only 50% of the theoretical requirement
//Mole fraction of components
//CO: (0.5-e)/1.5
//H20: (1-e)/1.5
//CO2: e/1.5
//H2: e/1.5
//e^2/[(0.5-e)(1-e)] = K = 1
//1.5e-0.5 = 1
e = 0.5/1.5;
mprintf('\n\n (b). Percentage conversion of steam is %f percent',e*100);
//end |
48f9a38eb4b39973ae675c3825176fdcd13ee323 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1631/CH8/EX8.11/Ex8_11.sce | f4c03a2675cc8a468f7fcc18eb3c2ddb9b43d5ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 432 | sce | Ex8_11.sce | //Caption: probability of symbol error
//Example 8.11
//page no 383
//Find probability of symbol error
//assuming coherent detection
clc;
clear;
rb=2.5*10^6//binary data rate
N0=2*10^-20;//power spectral density of noise FSK system
A=1*10^-6;//amplitude of received signal
T=1/rb;
Eb=(A^2*T)/2;// Eb=bit energy
z=sqrt(Eb/(2*N0))
Pe=1/2*erfc(z);//probability of symbol error
disp(Pe,"probability of symbol error");//
|
17f5e0bb48204a778a1973bc48e975f327ec0f83 | feede54c196a479bdc4592783238f5771854ad20 | /Scilab-Code/Q10.sce | 936d4e4f1e5da8a8e9168b5dffe6c19614dcf877 | [] | no_license | cachett/HeatDiffusion | 6275213da94745662db20ecf78d6bf9b1a6f90f1 | 5e80327fbc7da084338499064bcce80c1a92647c | refs/heads/master | 2021-05-14T09:18:24.602579 | 2018-01-05T13:18:18 | 2018-01-05T13:18:18 | 116,322,677 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,153 | sce | Q10.sce | // Scripts Q10, résoud numériquement l'équation (2) et montre la convergence vers la solution du problème stationnaire.
// On fixe u0(t)=1 qqsoit t, u^(0)(x)=0 qqsoit x dans ]-l,l[
// téta = 1/2 Cranck-Nicholson
clc;
exec("Q7pbstationnaire.sce")
//initialisation des variables
l = 10
nbrPoints = 500
deltax = 2*l/(nbrPoints-1)
deltat = 0.02
mu = deltat/deltax^2
function MembreDroit = calculMembreDroit(U, Ndiag, Ninf, B)
// NU^(k) + B
MembreDroit = Ndiag.* U + [0,Ninf.*U(1:size(U,"c")-1)] + [Ninf .* U(2:size(U,"c")),0] + mu*B
endfunction
function affiche(i,abscisse, ordonnee)
//fonction d'affichage pour les solutions numériques et stationnaires
ordonneeReel = (1/(exp(-1)-exp(1)))*(exp(abscisse/l)-exp(1))
subplot(2,2,i)
//affichage de la solution numérique en bleu
plot(abscisse, ordonnee)
//affichage de la solution stationnaire en rouge
plot(abscisse, ordonneeReel, 'r')
title("Approximation de U au temps t = " + string((10^i)*deltat))
xlabel("x")
ylabel("température")
endfunction
function U=iter(i, Ndiag, Ninf, B, MdiagFact, MinfFact)
// fonction qui retourne U^(k)
U = zeros(1,nbrPoints-2)
U(1,1) = 1
for k=1:10^i
// MembreDroite = NU^(k) + B
MembreDroit = calculMembreDroit(U, Ndiag, Ninf, B)
Z = descente(MdiagFact, MinfFact, MembreDroit)
// U^(k+1) = M^-1 N U^(k) + M^-1 B
U = remonte(MdiagFact, MinfFact, Z)
end
endfunction
function main()
// On initialise les matrices M, N et B
[Adiag, Ainf, B] = genereMatricesAB(nbrPoints, l)//NbrPoints prend en compte les bornes!! Donc n = nbrPoints-2
Mdiag = 1 + (1/2)*mu*Adiag
Minf = (1/2)*mu*Ainf
Ndiag = 1 - (1/2)*mu*Adiag
Ninf = -(1/2)*mu*Ainf
[MdiagFact,MinfFact] = factorise(Mdiag, Minf)
abscisse = linspace(-l,l,nbrPoints-2)
// On calcul itérativement les U^(k) pour différent tk
for i=1:4
U=iter(i, Ndiag, Ninf, B, MdiagFact, MinfFact)
affiche(i, abscisse, U)
end
endfunction
|
3c0387a57ef6cd190f03003a9b9211181a1e75e6 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/gr_harm/enmomt_parts.sce | 7d9a9f1dfc62780ad28b05353827533a2c465664 | [] | no_license | mikeg2105/matlab-old | fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e | eac168097f9060b4787ee17e3a97f2099f8182c1 | refs/heads/master | 2021-05-01T07:58:19.274277 | 2018-02-11T22:09:18 | 2018-02-11T22:09:18 | 121,167,118 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 739 | sce | enmomt_parts.sce | function [txx, txy, txz, tyy, tyz, tzz]=enmomt_parts(nx,ny,nz,dx,dy,dz,nparts, x, y, z,ppx, ppy, ppz, vx, vy, vz, m)
txx=zeros(nx,ny,nz);
txy=zeros(nx,ny,nz);
txz=zeros(nx,ny,nz);
tyy=zeros(nx,ny,nz);
tyz=zeros(nx,ny,nz);
tzz=zeros(nx,ny,nz);
tpxx=m*vx*vx;
tpxy=m*vx*vy;
tpxz=m*vx*vz;
tpyy=m*vy*vy;
tpyz=m*vy*vz;
tpzz=m*vz*vz;
ipx=int8(1+ppx+(nx/2));
ipy=int8(1+ppy+(ny/2));
ipz=int8(ppz);
if ipx > nx
ipx=ipx-nx;
end
if ipx < 1
ipx=ipx+nx;
end
if ipy > ny
ipy=ipy-ny;
end
if ipy < 1
ipy=ipy+ny;
end
if ipz > nz
ipz=ipz-nz;
end
if ipz < 1
ipz=ipz+nz;
end
txx(ipx,ipy,ipz)=tpxx;
txy(ipx,ipy,ipz)=tpxy;
txz(ipx,ipy,ipz)=tpxz;
tyy(ipx,ipy,ipz)=tpyy;
tyz(ipx,ipy,ipz)=tpyz;
tzz(ipx,ipy,ipz)=tpzz;
|
0895cfff61051b3672148df57256d78d62f9614c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH21/EX14.21.13/Ex14_21_13.sce | 828158df598bbe5308a584b0195288421db05c71 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 948 | sce | Ex14_21_13.sce | //Section-14,Example-1,Page no.-PC.21
//To calculate collision number,collision frequency and mean free path for oxygen at 298K and 1 atm pressure.
clc;
M_w=32*10^-3 //(kg/mol) molecular weight of oxygen
N_A=6.023*10^23 // Avogadro no.(mol^-1)
M=((M_w)/(N_A))
disp(M,'Mass of one oxygen molecule(kg)')
//N=P/(R*T)
P=1 //atm
R=0.0821 //litreatmK^-1mol^-1
T=298 //K
N=(P*N_A*10^3)/(R*T)
disp(N,'No.of O_2 molecules per m^3')
R_1=8.314 //kgm^2K^-1mol^-1
m=32*10^-3 //kgmol^-1
v_avg=sqrt((8*R_1*T)/(%pi*m)) //ms^-1
disp(v_avg,'Average velocity of O2 molecule(ms^-1)')
sig=3.6*10^-10 //m
Z_1=sqrt(2)*%pi*(sig)^2*v_avg*N
disp(Z_1,'Collision number(collisions per sec)')
Z_11=(1/2)*(Z_1*N)
disp(Z_11,'Collision frequency(collisions s^-1 m^-3)')
lm=v_avg/Z_1
disp(lm,'Mean free path(m)')
|
86a6a304813c20fc9c57c82c1d8f79ffeb7a24a0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1652/CH14/EX14.1/14_1.sce | 8cfdfdff6bd3b56b03852814cb088204fea1658b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 187 | sce | 14_1.sce | clc
//Initialization of variables
x1=0.0200
Kx=812
//calculations
disp("Neglecting 2x in comparision with x1,")
x=x1/Kx
//results
printf("Moles of Iodine present = %.2e mole",x)
|
2a87966461d145c0812cf1fcc77bafdc174ef9ef | ece5c630921508b439ed25c5f7ab3db5a66f7a1a | /Assignment8_Team8/Assignment8_Team8/loop.tst | f6793cd094dfe1135e73cf33c099faea15f736b4 | [] | no_license | VedantS01/HDLProjectsCS2310 | f8d17d1c9c28034a21026a4fbe2ae5d38cf39330 | d2a39a4c062173475bd06ff0b3396f1ac6303103 | refs/heads/main | 2023-06-19T20:42:48.411561 | 2021-07-14T19:37:51 | 2021-07-14T19:37:51 | 386,054,022 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 733 | tst | loop.tst | /*
PROGRAM 3 :
//HLL
int i = 1 ;
int sum = 0 ;
while (i < 100) {
sum = sum + i ;
i = i + 1 ;
}
//endHLL
i : RAM16K[16]
sum : RAM16K[17]
*/
load HackComputer.hdl, //loading hdl file
output-file loop.out, //declaring output file
output-list RAM64[16]%D1.10.1 RAM64[17]%D1.10.1 ; //output list format
ROM32K load loop.hack ;
set reset 1, //reset is set to 1
tick, tock , output ;
set reset 0, //reset is now set to 0
repeat 1420 { //min clock cycles required=1400 (divided into 100 iterations of 14 clock cycles each) n>1400 will do
tick, tock,
}
output;
|
1903c9564fda7a1108860cb942b9a02070612250 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH19/EX19.4/Ex19_4.sce | 7b33c8310b995f9e12478b8f4f49fbfcaf76bce6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 381 | sce | Ex19_4.sce | // Example 19_4
clc;funcprot(0);
// Given data
mu=1.50*10^-5;// The viscosity of the CO_2 in kg/(m.s)
T_1=300;// K
T_2=305;// K
k_p=1.00*10^-6;// m^2
k_o=2.00*10^4;// The osmotic heat conductivity in m^2/s
// Solution
dp=-((mu*k_o)/k_p)*log(T_2/T_1);// N/m^2
printf('\nThe steady state thermomolecular pressure difference across the membrane,p_2-p_1=%4.0f N/m^2',dp);
|
55e5510d0f3de2baa194b87feea1826e8309935e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH35/EX35.1/35_1.sce | 5f05aed7fa97cb3258fe8d150997617bdfbddc30 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 214 | sce | 35_1.sce | //ques-35.1
//Calculating frequency of radiations
clc
w=500;//wavelength (in nm)
c=2.996*10^10;//speed of light (in cm/s)
f=c/(w*10^-7);
printf("The frequency of the radiations is %.0f*10^14 Hz.",f*10^-14);
|
1e468be48b9e1166f2ede7ef17784b07eb3e988b | 449d555969bfd7befe906877abab098c6e63a0e8 | /929/CH2/EX2.12.b/Example2_12_b.sce | e614e1ac4bbefe6aea293d62e91fd1ca963866c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 763 | sce | Example2_12_b.sce | //Example 2.12(b)
clear;
clc;
R0=100;//Data taken from Example 2.11
alpha=0.00392;//Data taken from Example 2.11
Vref=15;
Prtd=0.2*10^(-3);
i=(Prtd/R0)^(0.5)-(0.41*10^(-3));
R1=(Vref/i);
delta=alpha*1;//Fractional Deviation for 1 degree celsius change in temperature
s=0.1;//Output Voltage for 1 degree Celsius temperature change
A1=s*(2+(R1/R0)+(R0/R1));
A2=Vref*delta;
A=A1/A2;
dT=100;
d2=alpha*dT;
vO1num=A*Vref*d2;
vO1den=1+(R1/R0)+((1+(R0/R1))*(1+d2));
vO1=vO1num/vO1den;
vO2num=A*Vref*d2;
vO2den=(2+(R1/R0)+(R0/R1));
vO2=vO2num/vO2den;
vOchange=vO2-vO1;
printf("vO(100 deg Celsius)=%.3f V",vO1);
Tchange=vOchange/s;
printf("\nEquivalent Temperature Error=%.2f deg Celsius",Tchange); |
6daf59d517789c42f602158d1d47482460df5cd7 | da5b40d917ec2982828bd9bdf06b18b7bf189f26 | /sim/scripts/compressorwcurve.tst | 9c28cf2766492e968dfb1702bac81c9e45c4a878 | [] | no_license | psy007/NNPC-CHEMICAL-SIM- | 4bddfc1012e0bc60c5ec6307149174bcd04398f9 | 8fb4c90180dc96be66f7ca05a30e59a8735fc072 | refs/heads/master | 2020-04-12T15:37:04.174834 | 2019-02-06T10:10:20 | 2019-02-06T10:10:20 | 162,587,144 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,331 | tst | compressorwcurve.tst | optimizecode 1
maxversions 0
units Field
/LiquidPhases = 2
/StdLiqVolRefT = 288.15
/StdLiqVolRefT = 60 F
/RecycleDetails = 1
displayproperties
displayproperties VapFrac T P MoleFlow MassFlow VolumeFlow StdLiqVolumeFlow StdGasVolumeFlow Energy H S MolecularWeight MassDensity Cp ThermalConductivity Viscosity molarV ZFactor
commonproperties
commonproperties + ZFactor P T MolecularWeight MassDensity StdLiqMolarVolVapFrac T P MoleFlow MassFlow VolumeFlow StdLiqVolumeFlow StdGasVolumeFlow Energy H S MolecularWeight MassDensity Cp ThermalConductivity Viscosity molarV ZFactor
units SI
$thermo = VirtualMaterials.Peng-Robinson
/ -> $thermo
thermo + METHANE ETHANE PROPANE n-BUTANE
realcomp = Compressor.CompressorWithCurve()
cd realcomp
NumberTables = 1
CompressorSpeed0 = 1800.0
FlowCurve0 = 0.0 1000.0 2000.0 3000.0 4000.0 5000.0 6000.0 7000.0
HeadCurve0 = 700.0 600.0 500.0 400.0 300.0 200.0 100.0 0.0
EfficiencyCurve0 = 0.0 0.5 0.7 0.8 0.8 0.7 0.5 0.0
CompressorSpeed = 1800
In.Fraction = .4 .3 .2 .1
In.P = 101.325
In.T = 30
Out.P = 106
Out
InQ
/realcomp.EfficiencyCurveType = Polytropic
Out
AdiabaticEff
PolytropicEff
/realcomp.EfficiencyCurveType = Adiabatic
AdiabaticEff
PolytropicEff
'/realcomp.Out.P' =
'/realcomp.In.VolumeFlow' = 2500
AdiabaticEff
PolytropicEff
cd /
copy /
paste /
/RootClone.realcomp.Out |
a28f68f96e9929e7747c389352199297776685ff | d465fcea94a1198464d7f8a912244e8a6dcf41f9 | /system/kiks_calibrate.sci | bd4aaa8abfa7c29388f326f4f6be450485acb987 | [] | no_license | manasdas17/kiks-scilab | 4f4064ed7619cad9e2117a6c0040a51056c938ee | 37dc68914547c9d0f423008d44e973ba296de67b | refs/heads/master | 2021-01-15T14:18:21.918789 | 2009-05-11T05:43:11 | 2009-05-11T05:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,518 | sci | kiks_calibrate.sci | function [] = kiks_calibrate(port,baud,forceul)
// Number of arguments in function call
[%nargout,%nargin] = argn(0)
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
// -----------------------------------------------
// (c) 2000 Theodor Storm (theodor@tstorm.se)
// http://www.tstorm.se
// -----------------------------------------------
// kiks_calibrate(port,baud): Calibrate KiKS
//
// Measures how many flops/second this computer can handle and,
// optionally, calculates how much execution time each KSEND call to a
// real robot requires. You need a robot connected to a serial port
// in order to perform this operation.
//
// If you have a robot connected to your computer,
// port is the # of the serial port a real robot is connected to.
// baud is the baud rate to run the calibration process at - choose the baud
// rate that you will usually run the real robot at for best results.
//
// If you do not have a robot connected to the computer,
// do not specify port and baud rate and only computer speed will be measured.
//
// NOTE: kiks_calibrate will restart KiKS.
global("KIKS_GUI_HDL","KIKS_COMPUTER_SPEED","KIKS_VISUALIZE","KIKS_KSEND_CONSTANT","KIKS_MAX_SPEED","KIKS_WALL_TIME","KIKS_CALIBRATE_BAUD","KIKS_KSEND_VARIATION");
getksend = 1;
if %nargin<3 then
forceul = [];
end;
if %nargin<2 then
baud = 9600;
end;
if %nargin<1 then
port = -1;
end;
if mtlb_logic(mtlb_double(port),"==",-1) then
getksend = 0;
end;
arena = zeros(100,100);
arena(50,50) = -360;
kiks_arena(arena);
// !! L.43: Unknown function kiks_gui_setstatlistbox not converted, original calling sequence used
kiks_gui_setstatlistbox(7);
xpause(1000*0.25);
if mtlb_logic(mtlb_double(KIKS_VISUALIZE),">",0) then
kiks_arena_window_close;
end;
xpause(1000*0.25);
// !! L.51: Matlab function sprintf not yet converted, original calling sequence used
// !! L.51: Unknown function kiks_status not converted, original calling sequence used
kiks_status(sprintf("Calibrating KiKS, please wait. This will take a few moments.\n"),1);
KIKS_COMPUTER_SPEED = 0;
if getksend==1 then
KIKS_KSEND_CONSTANT = 0;
KIKS_KSEND_VARIATION = 0;
// !! L.57: Unknown function kiks_settimescale not converted, original calling sequence used
kiks_settimescale(KIKS_MAX_SPEED);
maxksend = mtlb_double(baud)/64;
KIKS_CALIBRATE_BAUD = baud;
constarray = [];
flops_total = 0;
flops_time = 0;
%v0_1(3:5) = []; %v1_1(3:5) = [];
for i = 1:10
// loops=0;
// !! L.66: Unknown function kiks_kopen not converted, original calling sequence used
ref = kiks_kopen([port,baud,0]);
nrksend = 0;
while mtlb_logic(nrksend,"<",maxksend)
// !! L.69: Matlab function sprintf not yet converted, original calling sequence used
// !! L.69: Unknown function kiks_ksend not converted, original calling sequence used
kiks_ksend([sprintf("G,%d,%d",nrksend,nrksend),10],ref);
nrksend = nrksend+1;
// !! L.71: Unknown function kiks_ksend not converted, original calling sequence used
kiks_ksend("H"+10,ref);
nrksend = nrksend+1;
// !! L.73: Unknown function kiks_ksend not converted, original calling sequence used
kiks_ksend("D,0,0"+10,ref);
nrksend = nrksend+1;
end;
// !! L.76: Unknown function kiks_ktime not converted, original calling sequence used
realruntime = kiks_ktime(port);
// !! L.77: Unknown function kiks_kclose not converted, original calling sequence used
kiks_kclose(ref);
realksend = nrksend;
// loops=0;
// !! L.81: Unknown function kiks_kopen not converted, original calling sequence used
ref = kiks_kopen([-1,baud,0]);
// !! L.82: Matlab function flops not yet converted
flops_before = mtlb(flops);
%v0_1 = getdate(); %v0_1(6) = %v0_1(6)+%v0_1(7)/1000; t0 = %v0_1(1:6);
nrksend = 0;
while mtlb_logic(nrksend,"<",maxksend)
// !! L.86: Matlab function sprintf not yet converted, original calling sequence used
// !! L.86: Unknown function kiks_ksend not converted, original calling sequence used
kiks_ksend([sprintf("G,%d,%d",nrksend,nrksend),10],ref);
nrksend = nrksend+1;
// !! L.88: Unknown function kiks_ksend not converted, original calling sequence used
kiks_ksend("H"+10,ref);
nrksend = nrksend+1;
// !! L.90: Unknown function kiks_ksend not converted, original calling sequence used
kiks_ksend("D,0,0"+10,ref);
nrksend = nrksend+1;
end;
// !! L.93: Unknown function kiks_ktime not converted, original calling sequence used
simruntime = kiks_ktime(-1);
// !! L.94: Matlab function flops not yet converted
flops_total = mtlb_a(flops_total,mtlb_s(mtlb_double(mtlb(flops)),mtlb_double(flops_before)));
%v1_1 = getdate(); %v1_1(6) = %v1_1(6)+%v1_1(7)/1000; flops_time = flops_time+etime(%v1_1(1:6),t0);
// !! L.96: Unknown function kiks_kclose not converted, original calling sequence used
kiks_kclose(ref);
simksend = nrksend;
constarray(1,i) = matrix((mtlb_s(mtlb_double(realruntime),mtlb_double(simruntime))/nrksend)*mtlb_double(baud),1,-1);
// !! L.100: Matlab function sprintf not yet converted, original calling sequence used
calibration_progress = sprintf("%d%%",i*10);
// !! L.101: Matlab function sprintf not yet converted, original calling sequence used
// !! L.101: Unknown function kiks_status not converted, original calling sequence used
kiks_status(sprintf("%s...",calibration_progress),1);
end;
constarray = mtlb_sort(constarray);
KIKS_KSEND_CONSTANT = mean(constarray(2:9),"m"); // ignore lowest and highest values
KIKS_KSEND_VARIATION = constarray(9)-constarray(2);
end;
//KIKS_COMPUTER_SPEED=flops_total/flops_time;
//KIKS_COMPUTER_SPEED=flops_time;
// !! L.111: Unknown function kiks_speedtest not converted, original calling sequence used
KIKS_COMPUTER_SPEED = kiks_speedtest(3);
// !! L.112: Matlab function sprintf not yet converted, original calling sequence used
// !! L.112: Unknown function kiks_status not converted, original calling sequence used
kiks_status(sprintf("Computer speed index: %1.2f\n",KIKS_COMPUTER_SPEED),1);
// !! L.113: Unknown function kiks_save_settings not converted, original calling sequence used
kiks_save_settings;
// !! L.114: Unknown function kiks_status not converted, original calling sequence used
kiks_status("Calibration finished.");
// !! L.115: Unknown function kiks_quit not converted, original calling sequence used
kiks_quit(1);
endfunction
|
2c9670d2ecc0015cab880f795f7cdb6b82d72628 | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/framework/qa/complex/api_internal/worksforme.sce | 0d4335c694df5fa28be4d85b9502a7ebe064fd06 | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | Scilab | false | false | 1,966 | sce | worksforme.sce | # *************************************************************
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# *************************************************************
job=fileacc.SimpleFileAccess
job=sc.ScCellFieldObj
job=sc.ScCellFieldsObj
job=sc.XMLImporter
job=sc.XMLMetaExporter
job=sd.SdDocLinkTargets
job=sd.SdDrawPage
job=sd.SdMasterPagesAccess
job=sd.SdXCustomPresentation
job=sd.SdXPresentation
job=servicemgr.uno.OServiceManager
job=sfx.SfxMacroLoader
job=simplereg.uno.SimpleRegistry
job=sm.XMLSettingsExporter
job=sm.XMLSettingsImporter
job=srtrs.SortedDynamicResultSetFactory
job=svx.SvxShapeCollection
job=svx.SvxUnoTextRangeEnumeration
job=sw.SwXBodyText
job=sw.XMLExporter
job=sw.XMLImporter
job=sw.XMLMetaExporter
job=sw.XMLSettingsExporter
job=sw.XMLSettingsImporter
job=sw.XMLStylesExporter
job=sysdtrans.SystemClipboard
job=syssh.SystemShellExecute
job=text.DefaultNumberingProvider
job=toolkit.TabControllerModel
job=toolkit.UnoControlCheckBox
job=toolkit.UnoControlTimeField
job=toolkit.UnoControlTimeFieldModel
job=typeconverter.uno.TypeConverter
job=typemgr.uno.TypeDescriptionManager
job=ucb.UcbContentProviderProxyFactory
job=ucb.UcbPropertiesManager
job=ucb.UcbStore
|
fd2811e1210e1755ad81249ceb5f1f0016bf2f1b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1631/CH8/EX8.2/Ex8_2.sce | f67a8eea2af99448a5b6b0f1860ec94607af0dc9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 262 | sce | Ex8_2.sce | //Caption: peak Amplitude
//Example 8.2
//page no 374
//Find peak Transmission pulseAmplitude
clc;
clear;
NO=1.338*10^-5;
Pe=2.055*10^-5;
T=100*10^-6;
//Pe=erfc(sqrt(Eb/(2*N0)));
Eb=(2*2.9^2*NO);
A=sqrt((Eb*2)/T);
disp("Volts",A,"Transmission pulse Amplitude");
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.