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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2aa504db90965e4d687031a3637e97b877cb80cc | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH24/EX24.7/ex_24_7.sce | 76362e94bd4e0edd82fc204fcbd62961901222af | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 235 | sce | ex_24_7.sce | //find..
clc
//solution
//given
n=4
//n1+n2=5
pb=0.127//N/mm^2
N=500//rpm
r1=125//mm
r2=75//mm
u=0.3
C=pb*r2//N/mm
W=2*%pi*C*(r1-r2)//N
R=(r1+r2)/2/1000//m
T=n*u*W*R//N-m
P=T*2*%pi*N/60
printf("power trans is,%f W\n",P) |
a4475fac6da49f51529055bbeb95b94f5ca6beaa | 449d555969bfd7befe906877abab098c6e63a0e8 | /2969/CH5/EX5.7/Ex5_7.sce | 1c376cb5d51cf70f0dc65918ac0edb232aa9bca2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 633 | sce | Ex5_7.sce | clc
clear
//DATA GIVEN
h12=840; //Adiabatic enthalpy drop, (h1-h2) in kJ/kg
h1=2940; //enthalpy of steam supplied in kJ/kg
p2=0.1; //back pressure in bar
//At 0.1 bar, from steam tables
hf=191.8; //in kJ/kg
//ETArankine=(hg1-h2)/(hg1-hf2)
ETArankine=(h12)/(h1-hf);
Wuse=h12; //useful work done per kg of steam in kJ/kg
ssc=1/Wuse*3600; //specific steam consumption
printf('(i) The Rankine efficiency is: %1.4f or %2.2f percent. \n',ETArankine,(ETArankine*100));
printf('(ii) The Specific steam consumption is: %1.3f kg/kWh. \n',ssc);
|
375c012ace37dd667f29590c0ad6b59d8ae1c64a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2183/CH8/EX8.4/Ex_8_4.sce | 4d92ca666f4f04912c4ecd45b03d9d79beeeb20c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 395 | sce | Ex_8_4.sce | //Example 8.4 // Average nummber of photon
clc;
clear;
close;
//given data :
format('v',5)
M=80;// multiplication factor
K=0.02;// carrier ionization rates
eta=85/100;// quntum efficiency
Bt=0.6;// assuming a raised cosine signal spectrum
SbyN=144;
FM=(K*M)+(2-(1/M))*(1-K);
eta_max=(2*Bt*FM*SbyN)/(eta);
disp(eta_max,"The average number of photon,(photon) = ")
// answer is wrong in a textbook
|
c3685b562771aa632ca7c8f8eee6f4bcbf24cf90 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1826/CH3/EX3.6/ex3_6.sce | 25af64203e3f5cdada151124cd1b1ff011cfff6f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 212 | sce | ex3_6.sce | // Example 3.6, page no-92
clear
clc
lam=10^-10//m
h=6.626*10^-34
m=1.675*10^-27
e1=1.602*10^-19//ev
e=(h^2)/(2*m*lam^2)
e=e/e1
printf("\nThe energy of thermal neutron with wavelength 1A° is %f eV",e)
|
90eef24f525dbb8e009164448f124dd0b2b9ea92 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1328/CH9/EX9.2/9_2.sce | 51ce9a0db116ded9d6680e7babd30c64a0f52f8b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,821 | sce | 9_2.sce | printf("\t example 9.2 \n");
printf("\t approximate values are mentioned in the book \n");
V1=4670; // inlet air volume,cfm
Pp=0.8153; // Saturation partial pressure of water at 95F,psi,from table 7
Ps=404.3;// Saturation specific volume of water at 95F,ft^3/lb, from table 7
printf("\t The air and water both occupy the same volume at their respective partial pressures \n");
Vw1=(V1*60/Ps); // water entering per hr,lb
printf("\t volume of water entering is : %.0f lb \n",Vw1);
printf("\t for first stage \n");
c=2.33; // compression ratio
P1=14.7; // psi
P2=(P1*c); // (c=(P2/P1)),psi
printf("\t P2 is : %.1f psi \n",P2);
gama=1.4; // for air
T1abs=95; // F
T2absr=((T1abs+460)*(P2/P1)^((gama-1)/gama));
printf("\t T2absr is : %.0f R \n",T2absr);
T2abs=(T2absr-459.67); // F
printf("\t T2abs is : %.0f F \n",T2abs);
printf("\t for intercooler \n");
V2=(V1*60*P1/P2); // ft^3/hr
printf("\t final gas volume is : %.1e ft^3/hr \n",V2);
Vw2=(V2/Ps); // water remaining in air, lb/hr
printf("\t water remaining in air is : %.0f lb/hr \n",Vw2);
C=(Vw1-Vw2); // condensation in inter cooler, lb/hr
printf("\t condensation in inter cooler is : %.0f lb/hr \n",C);
Vs=14.8; // Specific volume of atmospheric air,ft^3/lb
printf("\t Specific volume of atmospheric air is : %.1f ft^3/lb \n",Vs);
Va=(V1*60/Vs); // air in inlet gas, lb/hr
printf("\t air in inlet gas is : %.2e lb/hr\n",Va);
printf("\t heat load(245 to 95F) \n)");
printf("\t sensible heat \n");
Qair=((Va)*(0.25)*(245-T1abs)); // Btu/hr
printf("\t Qair is : %.2e Btu/hr \n",Qair);
Qwaters=(Vw1*0.45*(245-T1abs)); // Btu/hr
printf("\t Qwaters is : %.2e Btu/hr \n",Qwaters);
printf("\t latent heat \n");
l=1040.1; // latent heat
Qwaterl=(C*l); // Btu/hr
printf("\t Qwater1 is : %.2e Btu/hr \n",Qwaterl);
Qt1=Qair+Qwaters+Qwaterl;
printf("\t total heat is : %.3e Btu/hr \n",Qt1);
printf("\t for second stage \n");
c=2.33; // compression ratio
P3=(P2*c); // (c=(P3/P1)),psi
printf("\t P3 is : %.1f psi \n",P3);
V3=(V1*60*P1/P3); // ft^3/hr
printf("\t final gas volume is : %.2e ft^3/hr \n",V3);
Vw3=(V3/Ps); // water remaining in air, lb/hr
printf("\t water remaining in air is : %.1f lb/hr \n",Vw3);
C1=(297-Vw3); // condensation in inter cooler, lb/hr
printf("\t condensation in inter cooler is : %.1f lb/hr \n",C1);
printf("\t heat load(245 to 95F) \n)");
printf("\t sensible heat \n");
Qair=(Va*0.25*(245-T1abs)); // Btu/hr
printf("\t Qair is : %.2e Btu/hr \n",Qair);
Qwaters=(Vw2*0.44*(245-T1abs)); // Btu/hr
printf("\t Qwater is : %.2e Btu/hr \n",Qwaters);
printf("\t latent heat \n");
l=1040.1; // latent heat
Qwaterl=(C1*l); // Btu/hr, calculation mistake in book
printf("\t Qwater is : %.2e Btu/hr \n",Qwaterl);
Qt1=Qair+Qwaters+Qwaterl;
printf("\t total heat is : %.3e Btu/hr \n",Qt1);
// end
|
9496c9df680688da0f30c0cc72536539251aea86 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1808/CH1/EX1.17/Chapter1_Example17.sce | dd4b3beb077db7f7e24e2c42804e30e3b7175175 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,172 | sce | Chapter1_Example17.sce | clc
clear
//INPUT DATA
BP4=16.25;//Total Brake power
BP1c=11.55;//Brake power of 1st cylinder
BP2c=11.65;//Brake power of 2nd cylinder
BP3c=11.70;//Brake power of 3rd cylinder
BP4c=11.50;//Brake power of 4th cylinder
mf=0.08;//mass flow rate in kg/s
cv=42500;//calorific value
d=9;//bore
L=9;//stroke
Vc=65;//clearance volume in cm^3
g=1.4;//inert gas constnat
//CALCULATIONS
IP1=BP4-BP1c;//Indicated power of 1st cylinder
IP2=BP4-BP2c;//Indicated power of and cylinder
IP3=BP4-BP3c;//Indicated power of 3rd cylinder
IP4=BP4-BP4c;//Indicated power of 4th cylinder
IP=IP1+IP2+IP3+IP4;//Total indicated power in kW
nbt=(BP4*100/(mf*cv))*100;//Brake thrmal efficiency in percentage
nit=(IP*100/(mf*cv))*100;//Indicated thermal efficiency in percentage
Vs=(3.14*(d^2)*L/4);//swept volume in cm^3
Rc=(Vs+Vc)/Vc;//Compression ratio
no=(1-(1/Rc^(g-1)));//Air standard efficiency in percentage
nr=(nit/no);//Relative efficiency in percentage
//OUTPUT
printf('(i)Indicated power is %3.2f kW \n (ii)indicated thermalefficiency %3.2f percentage \n brake efficiency is %3.2f percentage \n (iii)realtive efficiency is %3.2f percentage',IP,nit,nbt,nr)
|
101332338e1e297f0c4d60ca9afe402874607315 | e0124ace5e8cdd9581e74c4e29f58b56f7f97611 | /3883/CH5/EX5.18/EX5_18.sce | 67f962c8c062a283083244d5aef826b97302f06c | [] | no_license | psinalkar1988/Scilab-TBC-Uploads-1 | 159b750ddf97aad1119598b124c8ea6508966e40 | ae4c2ff8cbc3acc5033a9904425bc362472e09a3 | refs/heads/master | 2021-09-25T22:44:08.781062 | 2018-10-26T06:57:45 | 2018-10-26T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 622 | sce | EX5_18.sce | //Chapter 5, Example 5.18
clc
//Variable Declaration
r2 = 25 //resistance2
r1 = 20 //resistance1
e1 = -19 //supplt voltage1
e2 = 35 //supply voltage2
//Calculation
r = r1+r2 //total resistance
e = e2-e1 //total supply voltage
i = e/r //current in ampere
vab = i*r2 //voltage Vab
vcb = -i*r1 //voltage Vcd
vc = e1 //voltage Vc
//Results
printf("Vab = %d V \n",vab)
printf("Vcb = %d V \n",vcb)
printf("Vc = %d V \n",vc)
|
b3c88abf354e81fb7af117cbca69fadf6bb074cb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2183/CH8/EX8.14.a/Ex_8_14_a.sce | 2715dc19f034d99061692cde7e9d4b515da7f7ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 377 | sce | Ex_8_14_a.sce | // Example 8.14.a //optical power budget
clc;
clear;
close;
mip=-10;//dBm
mop=-25;//dBm
tsm=mip-mop;//dB
disp(tsm,"total system margin in dB is")
l=2;//km
fcl=3.2;//dB
lfc=l*fcl;//fiber cable loss in dB
sl=0.8;//dBm
slc=sl*l;//dB
cl=1.6;//dB
sm=4;//dB
tsm1=lfc+slc+cl+sm;//dB
disp(tsm1,"total system margin in dB is")
epm=tsm-tsm1;//dB
disp(epm,"excess power margin in dB is")
|
41771cae1d2649888182c7ca0d5c4e9b0aa93ae1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3456/CH13/EX13.3/Exx13_3.sce | cb70baa6c968e8550f99bfa4094e7640039b041f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 479 | sce | Exx13_3.sce | //Example 13.3
//Prediction of long time properties
//Page No. 464
clc;clear;close;
t=10^5; //in hr
C1=20; //in no unit
T1=1200; //in Fahrenheit
T2=1600; //in Fahrenheit
P_1200=(T1+460)*(log10(t)+C1);
P_1600=(T2+460)*(log10(t)+C1);
printf('\nAt T = 1200 F, P = %g\nAt T = 1600 F, P = %g\nAnd from the master ploy of Astroploy, corresponding stress required are sigma = 78000 psi and sigma = 11000 psi',P_1200,P_1600);
|
1fdaf8e32428ffa57d24e3c89f677f14d8f132e9 | 8a3446e086bbb6afa038ee746f941996286b32c6 | /Tests/LVRT_LV3.tst | 676d530f2f3e7929a2a6feeedd3996fb393c0f17 | [] | no_license | FREA-ENT/svp_UL1741SA | ec5c7fa9a8a2f27b72ba6cea2960699613e10743 | 5d22145fcae26c33fcd62218ff185f6ed0a1bc34 | refs/heads/master | 2020-03-27T21:36:40.461101 | 2018-09-05T07:58:29 | 2018-09-05T07:58:29 | 147,161,108 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,756 | tst | LVRT_LV3.tst | <scriptConfig name="LVRT_LV3" script="SA9_volt_ride_through">
<params>
<param name="vrt.v_test" type="float">0.0</param>
<param name="eut.t_msa" type="float">1.0</param>
<param name="vrt.t_hold" type="float">1.0</param>
<param name="gridsim.frea.phases" type="int">1</param>
<param name="eut.v_msa" type="float">2.0</param>
<param name="vrt.n_r" type="int">3</param>
<param name="eut.vrt_t_dwell" type="int">5</param>
<param name="vrt.v_grid_min" type="float">100.0</param>
<param name="vrt.v_grid_max" type="float">100.0</param>
<param name="eut.v_nom" type="float">190.0</param>
<param name="gridsim.frea.ip_port" type="int">2001</param>
<param name="eut.p_rated" type="int">40000</param>
<param name="gridsim.frea.ip_addr" type="string">127.0.0.1</param>
<param name="aist.script_version" type="string">2.0.0</param>
<param name="aist.library_version" type="string">2.1.0</param>
<param name="hil.mode" type="string">Disabled</param>
<param name="loadsim.mode" type="string">Disabled</param>
<param name="der.mode" type="string">Disabled</param>
<param name="gridsim.auto_config" type="string">Enabled</param>
<param name="vrt.p_20" type="string">Enabled</param>
<param name="vrt.p_100" type="string">Enabled</param>
<param name="gridsim.mode" type="string">FREA_AC_Simulator</param>
<param name="das_das_wf.mode" type="string">Manual</param>
<param name="das_das_rms.mode" type="string">Manual</param>
<param name="eut.phases" type="string">Single Phase</param>
<param name="gridsim.frea.comm" type="string">TCP/IP</param>
<param name="vrt.test_label" type="string">lvrt_lv3</param>
</params>
</scriptConfig>
|
6b77f9051ceba2eb144ac68fa5c05eefa5413636 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH5/EX5.08/5_08.sce | 1c970c7317a21575f3e84c6d54ba2020d6fd5096 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 431 | sce | 5_08.sce | //pathname=get_absolute_file_path('5.08.sce')
//filename=pathname+filesep()+'5.08-data.sci'
//exec(filename)
//Maximum temperature(in K):
T1=1800
//Minimum temperature(in K):
T2=300
//Rate at which heat is added(in MW):
Q1=5
//Work output(in MW):
W=2
//Heat rejected(in MW):
Q2=Q1-W
//Entropy generated(in MW/K):
dSg=(-Q1/T1+Q2/T2)
//Work lost(in MW):
w=T2*dSg
printf("\nRESULT\n")
printf("\nWork lost = %f MW",w) |
5195ba1c211d8895c9b262ec786b125e9e062bdf | 449d555969bfd7befe906877abab098c6e63a0e8 | /2375/CH10/EX10.10/ex10_10.sce | d730b1c8af52917a1f1fd61aff8dd54678521f0d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex10_10.sce | // Exa 10.10
clc;
clear;
close;
format('v',6)
// Given data
A = 200;
Beta = 5/100;
Af =A/(1 + (A*Beta));
disp(Af,"The gain of the amplifier with negative feedback is : ")
Dn = 10;// in %
Ddesh_n = Dn/(1+(A*Beta));// in %
disp(Ddesh_n,"The distortion with negative feedback in % is : ");
// Note: In the book, the calculation to find the gain of the amplifier with negative feedback i.e Af is wrong.
|
272c17957b41ad8e0065cc68285826ed9ee36408 | 449d555969bfd7befe906877abab098c6e63a0e8 | /629/CH11/EX11.4/example11_4.sce | f1a09a48261200358db95354f88c9284a0e9ef00 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 936 | sce | example11_4.sce | clear
clc
//Example 11.4 TERMINAL VELOCITY OF A SPHERE IN WATER
//To find Approx Value
function [A]= approx (V,n)
A= round(V*10^n)/10^n; //V-Value, n-to what place
funcprot (0)
endfunction
d=0.02; //diameter [m]
A=%pi*(d^2)/4 //area [m^2]
Vol=%pi*(d^3)/6 //volume [m^3]
v=10^-6; //viscosity [m^2/s]
//Specific weights
g_sphere=12.7*10^3; //[N/m^3]
g_water=9.79*10^3; //[N/m^3]
rho=998; //density [kg/m^3]
//Force equilibrium, F_drag+F_buoyancy=W
//F_drag=CD*A*rho*Vo^2/2
W=g_sphere*Vol //weight [N]
F_b=g_water*Vol //buoyant force [N]
V(1)=0;
//Assume initial value of Vo=1
V(2)=1;
//Iterate until Vo reaches a constant value
for i=2:1:7 //say 6 iterations
if(V(i)~=V(i-1))
Re=V(i)*d/v;
CD=24*(1+0.15*(Re^0.687))/Re +0.42/(1+4.25*10^4*Re^(-1.16));
V(i+1)=approx((2*(W-F_b)/(CD*rho*A))^0.5,3);
else
Vo=V(i)
break;
end
end
printf("\nThe terminal velocity Vo = %.3f m/s.\n",Vo) |
b16860b8fad77f18a40200de9d1c0fa45ecf2b3b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3768/CH4/EX4.2/Ex4_2.sce | 5350703d7f5eb735515b6a2a3cc5d9d82483bf1d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 355 | sce | Ex4_2.sce | //Example number 4.2, Page number 66
clc;clear;
close;
//Variable declaration
d=3.04*10**-10; //lattice spacing(m)
n=3; //order
lamda=0.79*10**-10; //wavelength(m)
//Calculation
theta=asin(n*lamda/(2*d)); //glancing angle(radian)
theta=theta*180/%pi; //glancing angle(degrees)
//Result
printf("glancing angle is %.3f degree",theta)
|
b994bb9a1a10e10c3964788161243c6a39f89477 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1826/CH12/EX12.3/ex12_3.sce | cdf91167c3923bbc58a26ae2e23a0b176751fb0f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 207 | sce | ex12_3.sce | // Example 12.3, page no-351
clear
clc
k=371//J/msk
delT=50//in degrees
delx=10*10^-3
ht=k*delT/delx
printf("The steady state heat transfer of 10 mm copper sheet is %.3f *10^6 J.m^-2.s^-1",ht*10^-6)
|
252f1fe1415668eabe1652863e76a5872b40b74b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1199/CH2/EX2.37/2_37.sci | e5a49262533894055cb493c192853e356e24e55d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 337 | sci | 2_37.sci | // 2.37
clc;
displacement=0.5;
Vo=2*10^-3;
Se_LVDT=Vo/displacement;
printf("senstivity of the LVDT=%.3f V/mm",Se_LVDT)
Af=250;
Se_instrument=Se_LVDT*Af;
printf("\nSenstivity of the instrument=%.1f V/mm",Se_instrument)
sd=5/100;
Vo_min=50/5;
Re_instrument=1*1/1000;
printf("\nresolution of instrument=%.3f mm",Re_instrument)
|
9a6ff0f28ff710cfcc46b7b20a7b698668816b2a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2912/CH8/EX8.7/Ex8_7.sce | 15215c575abe9a6fed82f631143686c7f202da51 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 426 | sce | Ex8_7.sce | //chapter 8
//example 8.7
//Calculate Hystersis loss per cycle
//page 238
clear;
clc;
//given
A=100; // in m^2 (area of Hysteresis loop)
B=0.01; // in Wb/m^2 (unit space along vertical axis or magnetic flux density)
H=40; // in A/m (unit space along horizontal axis or magnetic fild ntensity)
//calculate
H_L=A*B*H; // calculation of magnetic intensity
printf('\nThe Hystersis loss per cycle is %.f J/m^2',H_L);
|
1d31e2fc7b7975b1b216380e7c8da7d78531a47a | 676ffceabdfe022b6381807def2ea401302430ac | /solvers/IncNavierStokesSolver/Tests/CubeAllElements_ChanFlow.tst | 283cd7a66ed5c1f8bf0bce271b9834d762ad5240 | [
"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,113 | tst | CubeAllElements_ChanFlow.tst | <?xml version="1.0" encoding="utf-8" ?>
<test>
<description>3D channel flow, all elements, HDF5 input, P=3</description>
<executable>IncNavierStokesSolver</executable>
<parameters>CubeAllElements_ChanFlow.xml</parameters>
<files>
<file description="Session File">CubeAllElements_ChanFlow.xml</file>
<file description="Geometry File">CubeAllElements_ChanFlow.nekg</file>
</files>
<metrics>
<metric type="L2" id="1">
<value variable="u" tolerance="1e-12">1.3823e-15</value>
<value variable="v" tolerance="1e-12">1.51882e-15</value>
<value variable="w" tolerance="1e-12">6.24669e-15</value>
<value variable="p" tolerance="1e-8">1.19474e-13</value>
</metric>
<metric type="Linf" id="2">
<value variable="u" tolerance="1e-12">7.06676e-15</value>
<value variable="v" tolerance="1e-12">8.366e-15</value>
<value variable="w" tolerance="1e-12">6.00076e-14</value>
<value variable="p" tolerance="1e-8">1.49414e-12</value>
</metric>
</metrics>
</test>
|
a277509bb2b74d0fba496c6916e25b6574c5bda5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3129/CH14/EX14.2/ex14_2.sce | 08cf613f41c7983ed2a80c68bb71e4f4f34e1ee3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,294 | sce | ex14_2.sce | //Finding the Performance Parameter of a forward converter
//Example 14.2(Page No-611)
clc
clear
//given data
V0=24//in volts
R=0.8//in ohms
I0=V0/R//in amperes
Vd=0.7//voltage drop across diodes
Vs=12//in volts
Vt=1.2//in volts
k=0.4
f=1000//Hz
//part (a)
P0=V0*I0//o/p power in watts
V2=V0+Vd
V1=Vs-Vt
a=V2/V1
Is=(Vd*I0+P0)/(Vs-Vt*k-Vd*(1-k))
printf('(a) Average input current Is:%2.2f A\n',Is)
//part b
Pi=Vs*Is//i/p power
n=P0/Pi
printf('(b) Efficiency n:%2.2f %%\n',n*100)
//part(c)
Ia=k*Is
printf('(c) The average transistor currentIa:%2.2f A\n',Ia)
//part(d)
Ip=Is
de_Ip=0.05*Is//peak to peak ripple current is 5%of avg dc i/p
printf('(d) peak transistor currentIp:%2.3f A\n',de_Ip)
//part(e)
Ir=sqrt(k)*sqrt(Ip^2+de_Ip/3+Ip*de_Ip)
printf('(e) RMS transistor current:%2.2f A\n',Ir)
//part(f)
Voc=Vs+V2/a
printf('(f) Open circuit transistor voltageVoc:%2.2f V\n',Voc)
//part (g)
de_IL1=0.04*I0//peak to peak ripple current is 5%of avg value
de_V0=0.03*V0//ripple content of output voltage is 3%
L=de_V0*k/(f*de_IL1)
Lp=L*10^3
printf('(g) primary magnetizing inductor Lp:%5.3f mH\n',Lp)
//part(h)
Lo=(Vs-Vt)*k/(f*(de_Ip-a*de_IL1))
L1=Lo*10^3
printf('(h) Output inductance for maintaining P-P ripple currentL1:%2.2f mH\n',L1)
|
3a207fc8c2b4141c7ffd6d9ab6adf8ab8d05af67 | 931df7de6dffa2b03ac9771d79e06d88c24ab4ff | /Krunker Strafes 360.sce | 9d98582bf3f4ff23ec60522261afaae8fd686e73 | [] | no_license | MBHuman/Scenarios | be1a722825b3b960014b07cda2f12fa4f75c7fc8 | 1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137 | refs/heads/master | 2023-01-14T02:10:25.103083 | 2020-11-21T16:47:14 | 2020-11-21T16:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 36,677 | sce | Krunker Strafes 360.sce | Name=Krunker Strafes 360
PlayerCharacters=Character Profile
BotCharacters=Quaker Bot.bot;Quaker Bot.bot;Quaker Bot.bot;Quaker Bot.bot
IsChallenge=true
Timelimit=60.0
PlayerProfile=Character Profile
AddedBots=Quaker Bot.bot;Quaker Bot.bot
PlayerMaxLives=0
BotMaxLives=0;0
PlayerTeam=1
BotTeams=0;0
MapName=flat_field_mini.map
MapScale=5.0
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=true
InvincibleBots=false
Timescale=1.0
BlockHealthbars=false
TimeRefilledByKill=0.0
ScoreToWin=100000.0
ScorePerDamage=0.0
ScorePerKill=1.0
ScorePerMidairDirect=0.0
ScorePerAnyDirect=0.0
ScorePerTime=0.0
ScoreLossPerDamageTaken=0.0
ScoreLossPerDeath=0.0
ScoreLossPerMidairDirected=0.0
ScoreLossPerAnyDirected=0.0
ScoreMultAccuracy=false
ScoreMultDamageEfficiency=false
ScoreMultKillEfficiency=false
GameTag=Krunker
WeaponHeroTag=LG
DifficultyTag=4
AuthorsTag=Igglez
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=true
BlockFCT=false
Description=Close tracking training on a slide-hopping target (modified from close krunker strafes)
GameVersion=2.0.2.0
ScorePerDistance=0.0
MBSEnable=false
MBSTime1=0.25
MBSTime2=0.5
MBSTime3=0.75
MBSTime1Mult=1.0
MBSTime2Mult=2.0
MBSTime3Mult=3.0
MBSFBInstead=false
MBSRequireEnemyAlive=false
LockFOVRange=false
LockedFOVMin=60.0
LockedFOVMax=120.0
LockedFOVScale=Clamped Horizontal
[Aim Profile]
Name=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
AimingStyle=Original
ScanSpeedMultiplier=1.0
MaxSeekPitch=30.0
MaxSeekYaw=30.0
AimingSpeed=5.0
MinShootDelay=0.3
MaxShootDelay=0.6
[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
AimingStyle=Original
ScanSpeedMultiplier=1.0
MaxSeekPitch=30.0
MaxSeekYaw=30.0
AimingSpeed=5.0
MinShootDelay=0.3
MaxShootDelay=0.6
[Aim Profile]
Name=Default
MinReactionTime=0.3
MaxReactionTime=0.4
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=15.0
TrackSpeed=3.5
TrackError=3.5
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=40.0
ShootFOV=15.0
VerticalAimOffset=0.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
AimingStyle=Original
ScanSpeedMultiplier=1.0
MaxSeekPitch=30.0
MaxSeekYaw=30.0
AimingSpeed=5.0
MinShootDelay=0.3
MaxShootDelay=0.6
[Bot Profile]
Name=Quaker Bot
DodgeProfileNames=Long Strafes Jumping;Long Strafes Jumping;Long Strafes Jumping;Long Strafes Jumping
DodgeProfileWeights=2.0;3.0;1.0;2.0
DodgeProfileMaxChangeTime=5.0
DodgeProfileMinChangeTime=1.0
WeaponProfileWeights=1.0;0.0;1.0;1.0;1.0;1.0;1.0;1.0
AimingProfileNames=At Feet;At Feet;Low Skill;Default;Default;Default;Default;Default
WeaponSwitchTime=3.0
UseWeapons=true
CharacterProfile=Quaker
SeeThroughWalls=false
NoDodging=false
NoAiming=false
AbilityUseTimer=0.1
UseAbilityFrequency=1.0
UseAbilityFreqMinTime=0.3
UseAbilityFreqMaxTime=0.6
ShowLaser=false
LaserRGB=X=1.000 Y=0.300 Z=0.000
LaserAlpha=1.0
[Character Profile]
Name=Character Profile
MaxHealth=100.0
WeaponProfileNames=LG;;;;;;;
MinRespawnDelay=0.1
MaxRespawnDelay=0.1
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=1.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=8.0
MovementType=Base
MaxSpeed=1000.0
MaxCrouchSpeed=500.0
Acceleration=16000.0
AirAcceleration=16000.0
Friction=8.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=0.0
AirControl=0.25
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=false
CanJumpFromCrouch=false
EnemyBodyColor=X=255.000 Y=0.000 Z=0.000
EnemyHeadColor=X=255.000 Y=255.000 Z=255.000
TeamBodyColor=X=0.000 Y=0.000 Z=255.000
TeamHeadColor=X=255.000 Y=255.000 Z=255.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=800.0
MainBBType=Cylindrical
MainBBHeight=230.0
MainBBRadius=55.0
MainBBHasHead=true
MainBBHeadRadius=45.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=230.0
ProjBBRadius=55.0
ProjBBHasHead=true
ProjBBHeadRadius=45.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.1
AllowBufferedJumps=false
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.25
ThirdPersonCamera=false
TPSArmLength=500.0
TPSOffset=X=0.000 Y=125.000 Z=40.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
TerminalVelocity=0.0
CharacterModel=None
CharacterSkin=Default
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
ViewBobTime=0.0
ViewBobAngleAdjustment=0.0
ViewBobCameraZOffset=0.0
ViewBobAffectsShots=false
IsFlyer=false
FlightObeysPitch=false
FlightVelocityUp=800.0
FlightVelocityDown=800.0
[Character Profile]
Name=Quaker
MaxHealth=275.0
WeaponProfileNames=;;;;;;;
MinRespawnDelay=0.001
MaxRespawnDelay=0.001
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=80.000
HeadshotOnly=false
DamageKnockbackFactor=0.0
MovementType=Base
MaxSpeed=2600.0
MaxCrouchSpeed=500.0
Acceleration=100000.0
AirAcceleration=16000.0
Friction=4.0
BrakingFrictionFactor=2.0
JumpVelocity=1150.0
Gravity=3.0
AirControl=0.0
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=280.0
MainBBRadius=70.0
MainBBHasHead=true
MainBBHeadRadius=70.0
MainBBHeadOffset=-30.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=230.0
ProjBBRadius=70.0
ProjBBHasHead=true
ProjBBHeadRadius=300.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.25
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=700.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.0
AllowBufferedJumps=true
BounceOffWalls=true
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
TerminalVelocity=0.0
CharacterModel=None
CharacterSkin=Default
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
ViewBobTime=0.0
ViewBobAngleAdjustment=0.0
ViewBobCameraZOffset=0.0
ViewBobAffectsShots=false
IsFlyer=false
FlightObeysPitch=false
FlightVelocityUp=800.0
FlightVelocityDown=800.0
[Dodge Profile]
Name=Long Strafes Jumping
MaxTargetDistance=3000.0
MinTargetDistance=0.0
ToggleLeftRight=true
ToggleForwardBack=true
MinLRTimeChange=0.5
MaxLRTimeChange=3.0
MinFBTimeChange=0.5
MaxFBTimeChange=1.5
DamageReactionChangesDirection=false
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=0.0
DamageReactionResetTimer=0.1
JumpFrequency=0.5
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.1
MaxJumpTime=0.1
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
WaypointLogic=Ignore
WaypointTurnRate=200.0
MinTimeBeforeShot=0.15
MaxTimeBeforeShot=0.25
IgnoreShotChance=0.0
ForwardTimeMult=1.0
BackTimeMult=1.0
DamageReactionChangesFB=false
[Weapon Profile]
Name=LG
Type=Hitscan
ShotsPerClick=1
DamagePerShot=6.0
KnockbackFactor=2.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=2.0
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=7.0
DelayBeforeShot=0.0
ProjectileGraphic=Ball
VisualLifetime=0.05
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=4.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=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.05
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=72.099998
ADSFOVScale=Overwatch
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.1
WeaponModel=Heavy Surge Rifle
WeaponAnimation=Primary
UseIncReload=false
IncReloadStartupTime=0.0
IncReloadLoopTime=0.0
IncReloadAmmoPerLoop=1
IncReloadEndTime=0.0
IncReloadCancelWithShoot=true
WeaponSkin=Default
ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000
SpreadDecayDelay=0.0
ReloadBeforeRecovery=true
3rdPersonWeaponModel=Pistol
3rdPersonWeaponSkin=Default
ParticleMuzzleFlash=None
ParticleWallImpact=None
ParticleBodyImpact=None
ParticleProjectileTrail=None
ParticleHitscanTrace=Tracer
ParticleMuzzleFlashScale=1.0
ParticleWallImpactScale=1.0
ParticleBodyImpactScale=1.0
ParticleProjectileTrailScale=1.0
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=0.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=720.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=false
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
-128.000000 256.000000 640.000000
640.000000 256.000000 640.000000
640.000000 256.000000 -128.000000
-128.000000 256.000000 -128.000000
-128.000000 240.000000 640.000000
640.000000 240.000000 640.000000
640.000000 240.000000 -128.000000
-128.000000 240.000000 -128.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
-128.000000 784.000000 640.000000
640.000000 784.000000 640.000000
640.000000 784.000000 -128.000000
-128.000000 784.000000 -128.000000
-128.000000 768.000000 640.000000
640.000000 768.000000 640.000000
640.000000 768.000000 -128.000000
-128.000000 768.000000 -128.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
256.000000 256.000000 656.000000
33.777786 256.000000 611.555603
256.000000 256.000000 640.000000
42.666672 416.000031 597.333374
256.000000 416.000000 640.000000
42.666672 256.000000 597.333374
33.777786 416.000031 611.555603
256.000000 416.000000 656.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 7 4 3 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 7 6 0x00000000
brush
vertices
33.777786 256.000000 611.555603
-99.555565 256.000000 478.222260
42.666672 256.000000 597.333374
-85.333344 416.000031 469.333344
42.666672 416.000031 597.333374
-85.333344 256.000000 469.333344
-99.555565 416.000031 478.222260
33.777786 416.000031 611.555603
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000
brush
vertices
-99.555565 256.000000 478.222260
-144.000000 256.000000 256.000000
-85.333344 256.000000 469.333344
-128.000000 416.000000 256.000000
-85.333344 416.000031 469.333344
-128.000000 256.000000 256.000000
-144.000000 416.000000 256.000000
-99.555565 416.000031 478.222260
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000
brush
vertices
-144.000000 256.000000 256.000000
-99.555557 256.000000 33.777786
-128.000000 256.000000 256.000000
-85.333328 416.000031 42.666672
-128.000000 416.000000 256.000000
-85.333328 256.000000 42.666672
-99.555557 416.000031 33.777786
-144.000000 416.000000 256.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 7 4 3 6 0x00000000
brush
vertices
-99.555557 256.000000 33.777786
33.777779 256.000000 -99.555565
-85.333328 256.000000 42.666672
42.666679 416.000031 -85.333344
-85.333328 416.000031 42.666672
42.666679 256.000000 -85.333344
33.777779 416.000031 -99.555565
-99.555557 416.000031 33.777786
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000
brush
vertices
33.777779 256.000000 -99.555565
256.000000 256.000000 -144.000000
42.666679 256.000000 -85.333344
256.000000 416.000000 -128.000000
42.666679 416.000031 -85.333344
256.000000 256.000000 -128.000000
256.000000 416.000000 -144.000000
33.777779 416.000031 -99.555565
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 7 0 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 7 6 0x00000000
brush
vertices
256.000000 256.000000 -144.000000
478.222260 256.000000 -99.555557
256.000000 256.000000 -128.000000
469.333344 416.000031 -85.333328
256.000000 416.000000 -128.000000
469.333344 256.000000 -85.333328
478.222260 416.000031 -99.555557
256.000000 416.000000 -144.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 6 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 7 4 3 6 0x00000000
brush
vertices
478.222260 256.000000 -99.555557
611.555603 256.000000 33.777779
469.333344 256.000000 -85.333328
597.333374 416.000031 42.666679
469.333344 416.000031 -85.333328
597.333374 256.000000 42.666679
611.555603 416.000031 33.777779
478.222260 416.000031 -99.555557
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000
brush
vertices
611.555603 256.000000 33.777779
656.000000 256.000000 256.000000
597.333374 256.000000 42.666679
640.000000 416.000000 256.000000
597.333374 416.000031 42.666679
640.000000 256.000000 256.000000
656.000000 416.000000 256.000000
611.555603 416.000031 33.777779
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000
brush
vertices
656.000000 256.000000 256.000000
611.555603 256.000000 478.222260
640.000000 256.000000 256.000000
597.333374 416.000031 469.333344
640.000000 416.000000 256.000000
597.333374 256.000000 469.333344
611.555603 416.000031 478.222260
656.000000 416.000000 256.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 6 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 7 4 3 6 0x00000000
brush
vertices
611.555603 256.000000 478.222260
478.222260 256.000000 611.555603
597.333374 256.000000 469.333344
469.333344 416.000031 597.333374
597.333374 416.000031 469.333344
469.333344 256.000000 597.333374
478.222260 416.000031 611.555603
611.555603 416.000031 478.222260
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000
brush
vertices
478.222260 256.000000 611.555603
256.000000 256.000000 656.000000
469.333344 256.000000 597.333374
256.000000 416.000000 640.000000
469.333344 416.000031 597.333374
256.000000 256.000000 640.000000
256.000000 416.000000 656.000000
478.222260 416.000031 611.555603
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 7 0 2 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000
brush
vertices
33.777786 416.000000 611.555603
-99.555565 416.000000 478.222260
42.666672 416.000000 597.333374
-85.333344 768.000000 469.333344
42.666672 768.000000 597.333374
-85.333344 416.000000 469.333344
-99.555565 768.000000 478.222260
33.777786 768.000000 611.555603
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000 internal/editor/textures/editor_clip
brush
vertices
-99.555565 416.000000 478.222260
-144.000000 416.000000 256.000000
-85.333344 416.000000 469.333344
-128.000000 768.000000 256.000000
-85.333344 768.000000 469.333344
-128.000000 416.000000 256.000000
-144.000000 768.000000 256.000000
-99.555565 768.000000 478.222260
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000 internal/editor/textures/editor_clip
brush
vertices
256.000000 416.000000 656.000000
33.777786 416.000000 611.555603
256.000000 416.000000 640.000000
42.666672 768.000000 597.333374
256.000000 768.000000 640.000000
42.666672 416.000000 597.333374
33.777786 768.000000 611.555603
256.000000 768.000000 656.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 7 4 3 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 7 6 0x00000000 internal/editor/textures/editor_clip
brush
vertices
-144.000000 416.000000 256.000000
-99.555557 416.000000 33.777786
-128.000000 416.000000 256.000000
-85.333328 768.000000 42.666672
-128.000000 768.000000 256.000000
-85.333328 416.000000 42.666672
-99.555557 768.000000 33.777786
-144.000000 768.000000 256.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 7 4 3 6 0x00000000 internal/editor/textures/editor_clip
brush
vertices
-99.555557 416.000000 33.777786
33.777779 416.000000 -99.555565
-85.333328 416.000000 42.666672
42.666679 768.000000 -85.333344
-85.333328 768.000000 42.666672
42.666679 416.000000 -85.333344
33.777779 768.000000 -99.555565
-99.555557 768.000000 33.777786
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000 internal/editor/textures/editor_clip
brush
vertices
33.777779 416.000000 -99.555565
256.000000 416.000000 -144.000000
42.666679 416.000000 -85.333344
256.000000 768.000000 -128.000000
42.666679 768.000000 -85.333344
256.000000 416.000000 -128.000000
256.000000 768.000000 -144.000000
33.777779 768.000000 -99.555565
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 7 0 2 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 7 6 0x00000000 internal/editor/textures/editor_clip
brush
vertices
256.000000 416.000000 -144.000000
478.222260 416.000000 -99.555557
256.000000 416.000000 -128.000000
469.333344 768.000000 -85.333328
256.000000 768.000000 -128.000000
469.333344 416.000000 -85.333328
478.222260 768.000000 -99.555557
256.000000 768.000000 -144.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 6 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 7 4 3 6 0x00000000 internal/editor/textures/editor_clip
brush
vertices
478.222260 416.000000 -99.555557
611.555603 416.000000 33.777779
469.333344 416.000000 -85.333328
597.333374 768.000000 42.666679
469.333344 768.000000 -85.333328
597.333374 416.000000 42.666679
611.555603 768.000000 33.777779
478.222260 768.000000 -99.555557
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000 internal/editor/textures/editor_clip
brush
vertices
611.555603 416.000000 33.777779
656.000000 416.000000 256.000000
597.333374 416.000000 42.666679
640.000000 768.000000 256.000000
597.333374 768.000000 42.666679
640.000000 416.000000 256.000000
656.000000 768.000000 256.000000
611.555603 768.000000 33.777779
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000 internal/editor/textures/editor_clip
brush
vertices
656.000000 416.000000 256.000000
611.555603 416.000000 478.222260
640.000000 416.000000 256.000000
597.333374 768.000000 469.333344
640.000000 768.000000 256.000000
597.333374 416.000000 469.333344
611.555603 768.000000 478.222260
656.000000 768.000000 256.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 5 1 6 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 7 4 3 6 0x00000000 internal/editor/textures/editor_clip
brush
vertices
611.555603 416.000000 478.222260
478.222260 416.000000 611.555603
597.333374 416.000000 469.333344
469.333344 768.000000 597.333374
597.333374 768.000000 469.333344
469.333344 416.000000 597.333374
478.222260 768.000000 611.555603
611.555603 768.000000 478.222260
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 2 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000 internal/editor/textures/editor_clip
brush
vertices
478.222260 416.000000 611.555603
256.000000 416.000000 656.000000
469.333344 416.000000 597.333374
256.000000 768.000000 640.000000
469.333344 768.000000 597.333374
256.000000 416.000000 640.000000
256.000000 768.000000 656.000000
478.222260 768.000000 611.555603
faces
0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 5 1 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 7 0 2 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 1 0 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 4 3 6 7 0x00000000 internal/editor/textures/editor_clip
entity
type CameraPath
UInt8 posLerp 2
UInt8 angleLerp 2
entity
type PlayerSpawn
Vector3 position 256.000000 256.000000 128.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 256.000000 256.000000 384.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
Bool8 mode2v2 0
|
47b5fbd1283865f8c2f2dd6cbcccd25b544876ef | 449d555969bfd7befe906877abab098c6e63a0e8 | /2123/CH5/EX5.7/Exa_5_7.sce | 47d876791cde96dece4845115cabde2aba657d22 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 521 | sce | Exa_5_7.sce | //Example No. 5.7
clc;
clear;
close;
format('v',7);
//Given Data :
I=50;//A
V=200;//volt
N=1000;//rpm
Ra=0.2;//ohm
Eb=V-I*Ra;//V
Rt=(V+Eb)/2/I;//ohm(Total resistance required)
disp(Rt-0.5,"Additional resistance required to limit the current in ohm : ");
omega_m=N/60*2*%pi;//rad/s
T=Eb*2*I/omega_m;//N-m
disp(T,"Braking torque in N-m : ");
Eb=0;//for speed=0
I=V/Rt;//A
//T proportional to I(for separately excited motor)
T=T*(I/100);//N-m
disp(T,"Torque when speed decreased to zero in N-m : ");
|
20f95ac42f391bb5b18581a8ba99757b320743dd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3822/CH1/EX1.2/Ex1_2.sce | 5316b907cb3df7858de7493c68c6a14e39fe4384 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex1_2.sce |
//Optoelectronics and Fiber Optics Communication by C.R. Sarkar and D.C. Sarkar
//Example 1.2
//OS = Windows 7
//Scilab version 5.5.2
clc;
clear;
//given
NA=0.3;//numerical aperture of the optical fiber
na=1;//refractive index of air
Alpham=(asind(NA));//acceptance angle for the meridional rays
gamma0=45;//in degrees
Alphasm=(asind(NA)/cosd(gamma0));//acceptance angle for skew rays
mprintf("\n Acceptance angle for the meridional rays is= %.2f degrees",Alpham);
mprintf("\n Acceptance angle for the skew rays is = %.2f degrees",Alphasm);
//The answer vary due to rounding
|
5eb8d6780d7bc2f028d51c6f31440ad66623f4d6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /851/CH7/EX7.31/Figure7_31.sce | 36e218f75b56c0a06cb2a2af5b0ca66c7032d81f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 770 | sce | Figure7_31.sce | //clear//
//Caption:Power spectra of M-ary PSK signals
//Figure7.31 Comparison of Power Spectral Densities of M-ary PSK signals
rb = input('Enter the bit rate=');
Eb = input('Enter the energy of the bit=');
f = 0:1/100:rb;
Tb = 1/rb; //Bit duration
M = [2,4,8];
for j = 1:length(M)
for i= 1:length(f)
SB_PSK(j,i)=2*Eb*(sinc_new(f(i)*Tb*log2(M(j)))^2)*log2(M(j));
end
end
a=gca();
plot2d(f*Tb,SB_PSK(1,:)/(2*Eb))
plot2d(f*Tb,SB_PSK(2,:)/(2*Eb),2)
plot2d(f*Tb,SB_PSK(3,:)/(2*Eb),5)
xlabel('Normalized Frequency ---->')
ylabel('Normalized Power Spectral Density--->')
title('Power Spectra of M-ary signals for M =2,4,8')
legend(['M=2','M=4','M=8'])
xgrid(1)
//Result
//Enter the bit rate in bits per second:2
//Enter the Energy of bit:1
|
6134917d1b61efcb5c61ef7ab9b329fc07f77690 | 9b046504c3b7683d3bfa294fe100408058e75aa3 | /Metodos/Clase7/ejemplos/integracion/5reglaSimpson.sce | c8999800b5ac66c1c405e790123590735fa67440 | [] | no_license | DavidAlex99/Cursos | f15cb4f4fbb35a6eb62cbae0a9b51ea671f3ea8f | aee547ab09db7e535bea5a6d41ed6e455f8a9a89 | refs/heads/master | 2023-01-08T02:46:07.502656 | 2020-11-14T00:45:57 | 2020-11-14T00:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 538 | sce | 5reglaSimpson.sce | clc()
clear all
function result=f(x)
result = 0.2+25*x-200*x^2+675*x^3-900*x^4+400*x^5
endfunction
function result=reglaSimpson38(a,b,funcion)
h = (b-a)/3
x0 = a
x1 = x0+h
x2 = x1+h
x3 = b
result=(b-a)*(funcion(x0)+3*funcion(x1)+3*funcion(x2)+funcion(x3))/8
endfunction
a = 0
b = 0.8
disp("integral")
integral = integrate("0.2+25*x-200*x^2+675*x^3-900*x^4+400*x^5",'x',a,b)
disp(integral)
aproximacion = reglaSimpson38(a,b,f)
disp(aproximacion)
disp("error")
disp((integral-aproximacion)*100/integral)
|
ea2f5b2a2a93ee07aa34fe0b96d00f0e49ba8f6f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1409/CH2/EX2.8/2_8.sce | e420f749f6c27854720a424a2562a1f7eb86034b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 179 | sce | 2_8.sce | //page no:2-17
//Example:2.8
clc;
//given modulation indices are 0.6, 0.3 and 0.4
u1=0.6;
u2=0.3;
u3=0.4;
ut=sqrt(u1^2+u2^2+u3^2);
disp(ut,'Total Modulation index is ');
|
e67f5b232dde395a53ba3ae00655a68fb82df601 | 449d555969bfd7befe906877abab098c6e63a0e8 | /10/CH3/EX1/cha3_1.sce | 072e5cbf3b81a29c4e993aeab4490110af68b4e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 357 | sce | cha3_1.sce | Hc=670;G=5;D=10;A=5;B=10;Bg=1;Z=4*%pi*10^-7;N=250;Area=700;
Lc=2*(A+B)+2*(G+D)
Hg=Bg/Z
Lc=60/100
Hg=Bg/Z
Ni=(Hc*Lc)+(Hg*2*G*10^-3)
I=Ni/N
Vdc=I*G
Wfc=Area/2
Vc=2*(G*10^-2*D*10^-2*0.20)+2*(A*10^-2*B*10^-2*0.10)
Wfc=Wfc*Vc
Wfg=1.0/(2*Z)
Vg=2*(G*10^-2*10*10^-2*0.005)
Wfg=(Wfg*G*10^-2*10^-3)
Wf=Wfc+Wfg
|
4b200a6e68a603564e799065ecb782ad24a7bb0b | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set5/s_Electrical_Machines_M._V._Despande_833.zip/Electrical_Machines_M._V._Despande_833/CH14/EX14.9/Ex14_9.sce | 9965b7f94bbc8c11f0002d520c2ec1dd73dfe6b7 | [] | 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 | 516 | sce | Ex14_9.sce | errcatch(-1,"stop");mode(2);//Caption:Find (a)Armature current of second machine (b)Power factor of ecach machine
//Exa:14.9
;
;
L=1000//Total load(in KW)
V=6600//Total voltage(in volts)
pf=0.8//Power factor
Ia=50//Armature current(in A)
L1=L/2
Ia1=(L1*1000)/(sqrt(3)*V)
pf1=Ia1/Ia
a1=acosd(pf1)
b=tand(a1)
P1=L1*b
Pl=L*tand(acosd(pf))
P2=P1-Pl
pf2=cosd(atand(P2/L1))
Ia2=Ia1/pf2
disp(Ia2,'(a)Armature current of second machine(in A)=')
disp(pf1,pf2,'(b)Power factor of both machines=')
exit();
|
605e28764234f5ab1bb3f693ac59d99ae0864d38 | 449d555969bfd7befe906877abab098c6e63a0e8 | /659/CH6/EX6.5/exm6_5.sce | 34071374e121d87fd9dcd0e9a4d8a071f76b85a4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 530 | sce | exm6_5.sce | // Example 6.5
//Program illustrate use of the break statement
disp("This program computes the avarage of set of numbers");
disp("Enter values and enter a NEGATIVE value at the end");
sum1=0;
for m=1:1000
x=scanf("%f"); //Read data
if(x<0) then
break; //EXIT FROM LOOP
end
sum1=sum1+x; //Computes sum
end
average=sum1/(m-1); //Computes Average
//Print the results
printf("Number of values =%d\n",m-1);
printf("sum1=%f\n",sum1);
printf("Avarage =%f\n",average); |
208d0dee9406243204d0b5b57dbcbb108821974a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1223/CH17/EX17.1/Ex17_1.sce | 3e70629d4700f435f393d3f5cfb499ef15c44335 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 479 | sce | Ex17_1.sce | clear;
clc;
//Example 17.1
V1=5;
V2=-5;
Rc1=1;
Rc2=Rc1;
Rc=Rc1;
Re=2.150;
v2=0;
//for v1=0
vE=-0.7;
iE=(vE-V2)/Re;
printf('\nemitter current=%.3f mA\n',iE)
iC=1;
Vcc=5;
vo1=Vcc-iC*Rc;
printf('\nvo1=vo2=%.f V\n',vo1)
//for v2=-1
vE=-0.7;
iE=2;
iC2=2;
vo1=5;
vo2=Vcc-iC2*Rc;
printf('\nvo2=%.2f V\n',vo2)
v1=1;
Vbe=0.7;
vE=v1-Vbe;
iE=(vE-V2)/Re;
printf('\nemitter current =%.3fmA\n',iE)
iC1=iE;
vo1=Vcc-iC1*Rc;
printf('\nvo1=%.2f V\n',vo1)
vo2=Vcc
|
5426c578772964cddf77cf0ad41d386979d9e178 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1994/CH10/EX10.29/Example10_29.sce | 69598decd31640d7f5be1ede20270a1587ec4785 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 363 | sce | Example10_29.sce | //Chapter-10,Example10_29,pg10_70
P=4
f=50
R2=0.025
X2=0.15
sfl=0.04
Tfl=150
sm=R2/X2
Tm=Tfl*((R2^2)+((sfl*X2)^2))*sm/(sfl*((R2^2)+((sm*X2)^2)))
Ns=120*f/P
N=Ns*(1-sm)
//at start
R21=X2
Rex=R21-R2
printf("maximum torque\n")
printf("Tm=%.2f Nm\n",Tm)
printf("speed N=%.f r.p.m\n",N)
printf("external resistance\n")
printf("Rex=%.3f ohm/ph",Rex)
|
3b114009776320ba7d7924ccc2d252b83ed65ef9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2381/CH10/EX10.9/ex_9.sce | 8cef5120f6532fe752e0083037838e30492fb0f9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 183 | sce | ex_9.sce | //Example 9 // Frequency
clc;
clear;
close;
//given data :
l=1.2;// in m
v=5150;// in m/s
d=0.006;// in m
k=d/sqrt(12);
v1=%pi*v*k*3.011^2/(8*l^2);
disp(v1,"The frequency,v1(Hz) = ")
|
4b022c53adf9a5d11f9b46107727b6e859a6de80 | a22597ab3cd5830033e569b1240393071b552e43 | /tests/components/images/wrongImage.sci | fcabb80c156f7e5c8e33f41a826e885acb2dad0f | [] | no_license | meego-tablet-ux/meego-ux-components | 4915a93e562c03c14a2356b3d99894caf9ba74e1 | aee1c240e324708560b0d859c21a0ae79dcfb1cd | refs/heads/master | 2021-01-01T15:50:25.335925 | 2011-07-27T02:12:22 | 2011-07-29T00:28:18 | 32,042,276 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 130 | sci | wrongImage.sci | BorderImage {
border.left: 5
border.top: 5
border.bottom: 5
border.right: 5
source: "wrongImage.png"
} |
9a3ab743fa1838fdc7a971f8ad4b7b811d5c0311 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2783/CH8/EX8.14/Ex8_14.sce | 1e12ef8e64e9f36a1f76f5fadd017273b4ca0a63 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 212 | sce | Ex8_14.sce | clc
//initialization of new variables
clear
D=0.3 //m
u=35 //m/s
r=1.2 //kg/m^3
mu=1.81*10^-5
St=0.23
//calculations
Re=r*u*D/mu
f=St*u/D
//results
printf('So there are %d full cycles per second',f)
|
46cc1bc6df343b76b5152ff99335c2594f5853d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3776/CH3/EX3.5/Ex3_5.sce | 78714b79b2f4ce27de2e291385d906c513f5d899 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 526 | sce | Ex3_5.sce | clear
//Given
p_in = 0.7 //MPa - internal pressure
n_bolts = 20 // number of bolts
dia = 650 //mm - bolt circle diameter
stress_allow = 125 //MPa Maximum alowable stress
Stress_conc = 2 //stress concentration
d = 25 //mm
//calculations
F = p_in*3.14*(((dia-2*d)/2)**2)*(10**6) //N
F_each = F/n_bolts //N- force per each Bolt
A = Stress_conc*F_each/(stress_allow*(10**6)) //sq.mm The bolt area
Bolt_dia = 2*((A/3.14)**0.5) //mm the bolt daimeter
printf("\n The diameter of each bolt is %0.1f mm",Bolt_dia)
|
17231580d38d558174608af4ba709de32b0ef8ad | f988bf09b360159439560b4d77ab931f4fc44fa3 | /lab2/lsb2.sce | 933d14990f867fb0095ee55da38600d0812a0f9a | [
"MIT"
] | permissive | kamilkoduo/s20-dsp | 04799f65d66cf3d2861821cf579d6a77aa26b71a | 680eae6102417468e88591faa2b89049e5ff4bf1 | refs/heads/master | 2021-01-16T03:35:09.121398 | 2020-04-30T22:43:42 | 2020-04-30T22:43:42 | 242,963,732 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 705 | sce | lsb2.sce | function plot_sig(fig,data)
f = figure(fig)
clf
plot(data, '--o')
gca.data_bounds = [0,-0.5;size(data)(1),0.5]
xlabel('Samples')
ylabel('Amplitude')
endfunction
function run()
b = chdir('.')
exec('ADC.sce')
// configs
n = 5
fs = 50000
//quant_levels = -0.5:0.0005:0.1
quant_levels = -1:0.0005:1
// recorded data
data = ADC(n, quant_levels, fs)
plot_sig(1,data)
// shifted data
data = data + 0.1
plot_sig(2,data)
// sin noise configs
sin_freq = 210
sin_ampl = 0.1
step_size = sin_freq*(2*%pi)/fs;
samples = [1:size(data)(1)]*step_size;
// sin signal subtraction
sin_sig = sin_ampl*sin(samples)
data = data - sin_sig'
plot_sig(3,data)
playsnd(data, fs)
endfunction
run()
|
09a3c4f987526f09d78bafaadfd53bbac81bab5c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2642/CH11/EX11.6/Ex11_6.sce | 1c62d307f9f32aba7de22e773b4eed80cb16b1cb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 571 | sce | Ex11_6.sce | // FUNDAMENTALS OF ELECTICAL MACHINES
// M.A.SALAM
// NAROSA PUBLISHING HOUSE
// SECOND EDITION
// Chapter 11 : SINGLE-PHASE MOTORS
// Example : 11.6
clc;clear; // clears the console and command history
// Given data
r_t = 36 // rotor teeth of stepper motor
N = 4 // stator phases
// caclulations
T_p = 360/r_t // tooth pitch
teta = 360/(N*r_t) // step angle
// display the result
disp("Example 11.6 solution");
printf(" \n Tooth pitch \n T_p = %.0i degree \n", T_p );
printf(" \n Strp angle \n teta = %.1f degree \n", teta );
|
d59284f577df620b862fe5df26d7e378fac072ce | 449d555969bfd7befe906877abab098c6e63a0e8 | /2288/CH2/EX2.15.3/ex2_15_3.sce | 8316237af741710e09b13a204d6090b92015493b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 344 | sce | ex2_15_3.sce | //Exa2.15.3
clc;
clear;
close;
// Given data
T1 = 300;// in K
T2 = 400;// in K
del_E = 0.27;// Fermi level in eV
KT = (0.0259) * (T2/T1);// in eV
N_v = 1.04 * 10^19;// in cm^-3
N_v = N_v * (T2/T1)^(3/2);// in cm^-3
p_o = N_v * exp(-(del_E)/KT);// in per cm^3
disp(p_o,"The thermal equilibrium hole concentration in per cm^3 is");
|
d803176d7acd31352ebe6a90fda61bdd2da26df8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1022/CH8/EX8.2/8_2.sce | 5eea878be1861fc07f537e397cf92fa4e87862ad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 315 | sce | 8_2.sce | clc
//initialisation of variables
P= 10 //bar
P1= 38 //bar
T= 310 //C
v= 64.03 //cm^3/gm
s= 6.4415 //J/gm K
vf= 1.12773 //cm^3/gm
vg= 194.44 //cm^3/gm
sf= 2.1387 //J/gm K
sfg= 4.4478 //J/gm K
//CALCULATIONS
x= (v-vf)/(vg-vf)
sx= sf+x*sfg
S= s-sx
//RESULTS
printf ('Change in Entropy= %.3f J/gm',S)
|
f3a2fd5b72cdf2fd47884bdf0851c64e455b3a7a | 002b6230874dea6e4d76defafc1ae293b5744918 | /library/Demos/StdRegions/Tests/StdProject1D_Seg_Orth_P6_Q7.tst | ae4ae4aac133e996e47409e2541a4ffe1d6880f8 | [
"MIT"
] | permissive | SCOREC/nektar | f3cf3c44106ac7a2dd678366bb53861e2db67a11 | add6f04b55fad6ab29d08b5b27eefd9bfec60be3 | refs/heads/master | 2021-01-22T23:16:16.440068 | 2015-02-27T17:26:09 | 2015-02-27T17:26:09 | 30,382,914 | 6 | 7 | null | null | null | null | UTF-8 | Scilab | false | false | 460 | tst | StdProject1D_Seg_Orth_P6_Q7.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>StdProject1D Segment Orthonormal basis P=6 Q=7</description>
<executable>StdProject1D</executable>
<parameters>1 6 7</parameters>
<metrics>
<metric type="L2" id="1">
<value tolerance="1e-12">5.37715e-16</value>
</metric>
<metric type="Linf" id="2">
<value tolerance="1e-12">1.16573e-15</value>
</metric>
</metrics>
</test>
|
01c5220252f1a5f7061fc9c6e70f473a5df572c0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /199/CH4/EX4.11.a/Example_4_11_a.sce | 5ee3f6bf9871b93134ad5a86bcea237049413351 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 431 | sce | Example_4_11_a.sce | // Chapter4
// Page.No-141, Figure.No-4.28
// Example_4_11_a
// Output offset voltage
// Given
clear;clc;
delta_Vio=15.85*10^-6; // Change in input offset voltage
delta_V=1; // Unit change in supply voltage
V=2; // Change in supply voltage
R1=1*10^3;Rf=100*10^3;
delta_Voo=(1+Rf/R1)*(delta_Vio/delta_V)*V; // Change in output offset voltage
printf("\n Change in output offset voltage is = %.4f V \n",delta_Voo) // Result |
194547a14da0c81d5788c28e518a17cd3ca7433b | 42fdf741bf64ea2e63d1546bb08356286f994505 | /test_20161031_draper_lab_demo/xor_input.sce | e200a3d0e2c9829d05321c11e816eeb9d924dc08 | [] | no_license | skim819/RASP_Workspace_sihwan | 7e3cd403dc3965b8306ec203007490e3ea911e3b | 0799e146586595577c8efa05c647b8cb92b962f4 | refs/heads/master | 2020-12-24T05:22:25.775823 | 2017-04-01T22:15:18 | 2017-04-01T22:15:18 | 41,511,563 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,393 | sce | xor_input.sce | //xor_ex_clk_sr = [0 1 0 0 0 0 linspace(0,0,32)]; // 1st
xor_ex_clk_sr = [0 1 0 1 0 0 linspace(0,0,32)]; // 2nd
//xor_ex_clk_sr = [0 1 0 1 0 1 linspace(0,0,32)]; // 3rd XOR output
xor_ex_data_sr = [1 1 linspace(0,0,36)];
xor_ex_Vin=[
linspace(2.1,2.1,6) linspace(2.5,2.5,8) linspace(2.5,2.5,8) linspace(2.5,2.5,8) linspace(2.5,2.5,8);
linspace(2.1,2.1,6) linspace(2.1,2.1,8) linspace(2.1,2.1,8) linspace(2.5,2.5,8) linspace(2.5,2.5,8);
linspace(2.1,2.1,6) linspace(2.5,2.5,8) linspace(2.1,2.1,8) linspace(2.1,2.1,8) linspace(2.5,2.5,8);
linspace(2.1,2.1,6) linspace(2.1,2.1,8) linspace(2.1,2.1,8) linspace(2.1,2.1,8) linspace(2.1,2.1,8);];
//xor_ex_Vin=[
//linspace(0.2,0.2,6) linspace(0.2,0.2,8) linspace(0.2,0.2,8) linspace(0.2,0.2,8) linspace(0.2,0.2,8);
//linspace(0.2,0.2,6) linspace(0.2,0.2,8) linspace(0.2,0.2,8) linspace(2.2,2.2,8) linspace(2.2,2.2,8);
//linspace(0.2,0.2,6) linspace(2.2,2.2,8) linspace(0.2,0.2,8) linspace(0.2,0.2,8) linspace(2.2,2.2,8);
//linspace(0.2,0.2,6) linspace(2.2,2.2,8) linspace(2.2,2.2,8) linspace(2.2,2.2,8) linspace(2.2,2.2,8);];
//[4e-06,1e-10,1e-10,1e-10; 1e-10,4e-06,4e-06,1e-10; 3e-06,2e-06,2e-06,1e-10; 1e-10,1e-10,1e-10,1e-10]
//[8e-06,1e-10,1e-10,1e-10; 1e-10,8e-06,8e-06,1e-10; 6e-06,4e-06,4e-06,1e-10; 1e-10,1e-10,1e-10,1e-10]
//[400e-09,1e-10,1e-10,1e-10; 1e-10,400e-09,400e-09,1e-10;300e-09,200e-09,200e-09,1e-10; 1e-10,1e-10,1e-10,1e-10]
|
a9dc1ba5dea45282f61f057ba81c6944b0519606 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3863/CH4/EX4.13/Ex4_13.sce | c4540ae770fac6a43af9bf1b320385cb0bd899e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 587 | sce | Ex4_13.sce | clear
//
//Given
//Variable declaration
d=12 //Diameter of bar in mm
delL=3 //Increase in length in mm
W=8000 //Steady load in N
P=800 //Falling weight in N
h=8*10 //Vertical distance in mm
E=2e5 //Youngs modulus in N/sq.mm
//Calculation
A=((%pi/4)*d**2) //Area of bar in sq.mm
L=(E*A*delL/W) //Length of the bar in mm
sigma=((P/A)*(1+(sqrt(1+((2*E*A*h)/(P*L))))))
sigma=(sigma) //Stress produced by the falling weight in N/sq.mm
//Result
printf("\n Stress produced by the falling weight = %0.3f N/mm^2",sigma)
|
6d9ac6b44091b060f7a81d54363a2b397d7f8af0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1379/CH5/EX5.1.2/example5_2.sce | 107a6c361fc55a14fbdf5a94b2f14f786fb47992 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 370 | sce | example5_2.sce |
//exapple 5.2
clc; funcprot(0);
// Initialization of Variable
Q=0.885;
pi=3.1428;
s=1/960;
s=round(s*1000000)/1000000;
b=1.36;
n=0.014;
theta=55*pi/180;
//calculation
function[y]=flow(x);
a=(x*(b+x/tan(theta)))/(b+2*x/sin(theta));
y=a^(2/3)*s^(1/2)*(x*(b+x/tan(theta)))/n-Q;
endfunction
x=fsolve(0.1,flow);
disp(x,"depth of water in (m):")
|
b478ce17a5361324e070b33313b09ab1209a3720 | 449d555969bfd7befe906877abab098c6e63a0e8 | /377/CH3/EX3.4/3_4.sce | 726d85eb370f1c947bfd3fc522c2f73314cf9568 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 279 | sce | 3_4.sce | disp(" % ionic character = (1-exp((-1/4)*(Xa-Xb)^2))*100");
Xa1=1.8;Xb1=2.2;Xa2=1.7;Xb2=2.5;
a = (1-exp((-1/4)*((Xa1-Xb1)^2)))*100;
b = (1-exp((-1/4)*((Xa2-Xb2)^2)))*100;
printf('\n For GaAs,percent ionic character=%f',a);
printf('\n For ZnSe,percent ionic character=%f',b); |
d11440d482602c3d2d50c2fe3fdbfb8c25e48925 | 449d555969bfd7befe906877abab098c6e63a0e8 | /539/CH18/EX18.3.c/Example_18_3c.sce | 519a9f7b307179215a7a94ca60c51c44aa84541f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 459 | sce | Example_18_3c.sce | //Elevated-Temperature Electrical Conductivity Calculations for Extrinsic Silicon
clear;
clc;
printf("\tExample 18.3\n");
n=10^23; //m^-3 Carrier Concentration
e=1.6*10^-19; //Coulomb Charge on electron
printf("\n\tPart C\n");
//From graph 18.19a m_e2 is calculated corresponding to 373 K
m_e2=0.04; //m^2/V-s Mobility of electron
sigma2=n*e*m_e2;
printf("\nConductivity at T=373 K becomes : %d (Ohm-m)^-1\n",sigma2);
//End |
28186ef5cb8c05aa69e8042c7e0bdd810ef8ead8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH3/EX3.8/example3_8.sce | 3d98d1734014b83b9240b00826f6a48b0cd1223c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 245 | sce | example3_8.sce | //clc()
m1 = 1;//kg (mass in air)
m2 = 0.9;//kg (mass in water)
m3 = 0.82;//kg (mass in liquid)
L1 = m2 - m1;//kg (loss of mass in water)
L2 = m3 - m1;//kg (loss of mass in liquid)
sp.g = L2 /L1;
disp(sp.g,"specific gravity of liquid = ") |
1025b66d76c8dfe5be675df3fd4ccc1339315276 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3841/CH7/EX7.4/Ex7_4.sce | b0d45893abfc2a3ea530ebd0bd9b4652f0c9ef3d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | Ex7_4.sce | clear
//compute brake mean effective pressure
//given
T=350.
D=4**0.25
L=5
M=4
//bmep for 4-cycle engine=192*t
bmep=192*(T/(D**2)*L*M)
//bmep for 2-cycle engine
bmep2=bmep/2
printf("\n \n bmep for 4-cycle %.2f psi",bmep)
printf("\n \n bmep for 2-cycle %.2f psi",bmep)
|
af3eb937a3e49563f96dc042f164795859ab3544 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1955/CH5/EX5.18/example18.sce | 011d2a795acc02d3fa2cdf597d64481a4462296f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,634 | sce | example18.sce | clc
clear
//input data
a1=75//Nozzle air angle in degree
Rh=0//Degree of reaction
N=6000//Running speed of hub in rpm
Dh=0.45//Hub diameter in m
Df=0.75//Tip diameter in m
//calculations
Uh=(3.1415*Dh*N)/60//Hub speed in m/s
C1h=Uh/((sind(a1))/2)//Velocity of steam at exit from nozzle in hub in m/s
Cah=C1h*cosd(a1)//Axial velocity at hub in m/s
Cx1h=C1h*sind(a1)//Whirl component of velocity at inlet in hub in m/s
b1h=atand((Cx1h-Uh)/Cah)//Rotor blade angle at entry at hub section in degree
b2h=b1h//Rotor blade angle at exit at mean section in degree as zero reaction section
sopt=sind(a1)/2//Blade to gas speed ratio at hub
rm=((Dh/2)+(Df/2))/2//Mean radius in m
rmrh=(rm/(Dh/2))^((sind(a1))^2)//Ratio of inlet velocity at hub and mean for constant nozzle air angle at hub section
C1m=C1h/rmrh//Velocity of steam at exit from nozzle at mean section in m/s
Cx1m=Cx1h/rmrh//Velocity of whirl at inlet at mean section in m/s
Ca1m=Cah/rmrh//Axial velocity at mean section in m/s
Um=(3.1415*2*rm*N)/60//Mean blade speed in m/s
b1m=atand((Cx1m-Um)/Ca1m)//Rotor blade angle at entry at mean section in degree
b2m=atand(Um/Ca1m)//Rotor blade angle at exit at mean section in degree for axial exit Cx2=0
s=Um/C1m//Blade to gas ratio at mean
Rm=(Ca1m/(2*Um))*(tand(b2m)-tand(b1m))//Degree of reaction of mean section
rmrt=((rm)/(Df/2))^((sind(a1))^2)//Ratio of inlet velocity at tip and mean for constant nozzle air angle at tip section
C1t=C1m*rmrt//Velocity of steam at exit from nozzle at tip section in m/s
Cx1t=Cx1m*rmrt//Velocity of whirl at inlet at tip section in m/s
Ca1t=Ca1m*rmrt//Axial velocity at tip section in m/s
Ut=(3.1415*Df*N)/60//Mean tip speed in m/s
b1t=atand((Cx1t-Ut)/Ca1t)//Rotor blade angle at entry at tip section in degree
b2t=atand(Ut/Ca1t)//Rotor blade angle at exit at tip section in degree for axial exit Cx2=0
st=Ut/C1t//Blade to gas ratio at tip
Rf=(Ca1t/(2*Ut))*(tand(b2t)-tand(b1t))//Degree of reaction of tip section
//output
printf('(1)Hub section\n (a)\n Absolute air angle is %3.2f degree\n Relative air angle is %3.2f degree\n (b)Blade to gas speed ratio is %3.3f\n (c)Degree of reaction is %3i\n(2)Mean section\n (a)\n Absolute air angle is %3.2f degree\n Relative air angle is %3.2f degree\n (b)Blade to gas speed ratio is %3.3f\n (c)Degree of reaction is %3.3f\n(3)Tip section\n (a)\n Absolute air angle is %3.2f degree\n Relative air angle is %3.2f degree\n (b)Blade to gas speed ratio is %3.3f\n (c)Degree of reaction is %3.3f\n',b1h,b2h,sopt,Rh,b1m,b2m,s,Rm,b1t,b2t,st,Rf)
|
dc93372e762f3ef0fa204d8bf013b35d98365cd5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2175/CH8/EX8.1/8_1.sce | e52e4716efaf828db35238c1c6ec32b955b7d74a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 823 | sce | 8_1.sce | clc;
T1=526.2;
T2=299.7;
nC=(T1-T2)/T1;
disp(nC,"carnot cycle efficiency is:")
Q=1698;
W=nC*Q;
h1=2800;
s1=6.049;
s2=s1;
sf2=0.391;
sfg2=8.13;
x2=(s2-sf2)/sfg2;
hf2=112;
hfg2=2438;
h2=hf2+(x2*hfg2);
W12=h1-h2;
Wr=W/W12;
disp(Wr,"work ratio is:")
ssc=1/W;
disp("kg/k W h",ssc,"ssc is:");
//part III
disp("")
h3=112;
vf=0.001
p4=42;
p3=0.035;
PW=vf*(p4-p3)*(10^5/10^3);
nR=[{(h1-h2)-(PW)}/{(h1-h3)-(PW)}]
disp(nR,"rankine cycle efficiency is:");
Wr=(W12-PW)/(W12)
disp(Wr,"Work ratio is");
ssc=1/(W12-PW)
disp("kg/k W h",ssc,"Work ratio is:");
//partIII
disp("");
W12_=0.8*W12;
Ceff=[(h1-h2)-PW]/[(h1-h3)-PW];
disp(Ceff,"rankine cycle of isentropic efficiency is:")
Wr=[W12_-PW]/W12_
disp(Wr,"Work ratio is:");
ssc=1/[(h1-h2)-PW]
disp("kg/kW s",ssc,"ssc is:")
|
1bf796176792b796227558a2ea75d86809821987 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2279/CH5/EX5.2/Ex5_2.sce | f88b3868e459aca6ab68701d7aa0ce8a76284919 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 904 | sce | Ex5_2.sce | //Continuous Time Fourier Series Coefficients of
//a periodic signal x(t) = cos(Wot)
clear;
close;
clc;
t = 0:0.01:1;
T = 1;
Wo = 2*%pi/T;
xt = cos(Wo*t);
x1t=cos(Wo*-t);
for k =0:2
C(k+1,:) = exp(-sqrt(-1)*Wo*t.*k);
a(k+1) = xt*C(k+1,:)'/length(t);
if(abs(a(k+1))<=0.01)
a(k+1)=0;
end
end
a =a';
ak = [-a,a(2:$)]
disp("The fourier series coefficients are...")
disp(ak)
disp("magnitude of Fourier series coefficient")
disp(abs(ak))
n=-2:2;
subplot(2,1,1)
plot(n,abs(ak),'.');
xtitle("Magnitude Spectrum","k","|ak|");
if xt== x1t then
disp("The Given signal is even. It has no phase spectrum");
else
for i=1:length(ak)
if real(ak(i))== 0 then
phase(i)=0;
else
phase(i)=atan(imag(ak(i))/real(ak(i)));
end
end
disp("Phase of Fourier series coefficient in radians")
disp(phase)
subplot(2,1,2)
plot(n,phase,'.');
xtitle("Phase Spectrum","k","ak in radians");
end
|
d088908ad4f7cff8362fc6fd6d80f3e5cb91c9a6 | c552a931898aba85602c4c953c9166bedd3bb825 | /screens/X7Y1.SCE | 90a3921d02993a553c86adb0a1c64a44bee9c8b4 | [] | no_license | domino14/basic_rpg | 2bf813b4ef2992c8709581e39cf1e9bc0301f41d | 0d678b6f7017db984955fa927a1f80bce5788d24 | refs/heads/master | 2021-01-10T12:17:29.763389 | 2015-10-14T06:34:47 | 2015-10-14T06:34:47 | 44,228,628 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,013 | sce | X7Y1.SCE | 3
3
3
12
3
3
12
3
3
3
3
3
3
3
3
12
3
3
12
3
3
3
3
3
3
3
3
12
3
3
12
3
3
3
3
3
3
3
3
12
3
3
12
3
3
3
3
3
12
12
12
12
12
12
12
12
12
12
12
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
12
12
12
12
12
12
12
12
12
12
3
3
3
3
3
12
3
3
3
12
3
3
3
3
3
3
3
12
3
12
3
12
3
3
3
3
3
3
3
12
3
12
3
12
3
3
3
3
3
3
3
12
3
12
3
12
3
3
3
3
3
3
3
3
3
12
3
3
3
3
3
3
12
12
12
12
12
12
12
12
12
12
12
12
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
|
e2161e4b72282568eef45975f4d13b33384bd423 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3850/CH35/EX35.2/Ex35_2.sce | 761ee0ba53f52a881d31c46628f028df76c36d51 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 483 | sce | Ex35_2.sce |
//To Find Magnetic Field between the wires
//Example 35.2
clear;
clc;
i=10;//Current flowing through wires in Amperes
l=5*10^-2;//Seperation between two wires in metres
d=l/2;//Distance of Point P from both wires in metres
k=2*10^-7;// Constant k=(u0/(2*%pi))
B=k*i/d;//Magnetic Field at point P due to each wire
Bnet=2*B;//Net Magnetic Field at Point P due to both wires
printf("Magnetic Field at point P between the two wires = %.0f uT",Bnet*10^6);
|
0f5dd6669aa75078c5ddbe48024ce0eb3590a509 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2732/CH6/EX6.4/Ex6_4.sce | 46147d9d3a24c7306c3e50c8ecfb2e016d1d03f9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 488 | sce | Ex6_4.sce | clc
// initialization of variables
clear
D=5 //cm
Y=3500 //kg/cm^2
//part (a)
Ta=350 //kg-m
tau=Y/2
Ip=Ta*D*100/(2*tau)
d1=Ip*32/%pi
d1=(D^4-d1)^(1/4)
//part (b)
Tb= 700 //kg-m
Ip=Tb*D*100/(2*tau)
d2=Ip*32/%pi
d2=(D^4-d2)
T=tau*%pi*(D^4)*2/(32*D)
// results
printf('The maximum diameter corresponding to the case a is %.2f cm',d1)
printf('\n Since the daimeter for the case (b) is coming out to be negative, \n The maximum torque transmitted is %.d kg-m',T/100)
|
c7a24c0215ed66bad9f4e49f266fbb1bb01ef22f | 449d555969bfd7befe906877abab098c6e63a0e8 | /779/CH15/EX15.3/15_3.sce | 6828b651da09b576b4b356666d64a0eeb25982c6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 520 | sce | 15_3.sce | Psat = 2.339;
fi3 = 0.50;
P = 101.3; cp = 1.005;
Pw3 = fi3*Psat;
Pa3 = P-Pw3;
W3 = 0.622*(Pw3/Pa3);
Psa1_1 = 0.7156;
Pw1 = 0.7156;
Pa1 = P-Pw1;
W1 = 0.622*(Pw1/Pa1); W2 = W1;
T3 = 293; Ra = 0.287; Pa3 = 100.13;
va3 = (Ra*T3)/Pa3;
SW = (W3-W1)/va3;
t3 = 20; tsat = 9.65; hg = 2518; h4 = 10;
t2 = ( W3*(hg+1.884*(t3-tsat))-W2*(hg-1.884*tsat) + cp*t3 - (W3-W2)*h4 )/ (cp+W2*1.884)
disp("kg moisture/m3",SW,"Mass of spray water required is")
disp("degree",t2,"Temperature to which air must be heated is")
|
f0cd88beba0544f6ad1255cbd40c18bc972b6f27 | 0e1b45c07f0938ba9c8a003d6ae1cf2d8315efdb | /acmp.ru/423, Message/java/test-01.tst | b173bdd80e9ceb32247277c81b498dbf5434c6ba | [] | no_license | Kot-Angens/acm | c85d8582c3e84f218415321743864b9680e01f2e | 05472eaa0fff7abb6679826085da5e0c990df4cb | refs/heads/master | 2021-01-24T22:36:05.159612 | 2012-10-02T13:51:56 | 2012-10-02T13:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 34 | tst | test-01.tst | 1025
~~~~~~~~~~~~~~~~~~~~~~~~~~
4
|
60ee7d64364b722203471e82f4285d16e5ebf92d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1752/CH10/EX10.8/exa_10_8.sce | d11e05fe6708d7cb8bf37152c8f1fffc417f4f70 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,362 | sce | exa_10_8.sce | //Exa 10.8
clc;
clear;
close;
//given data
format('v',8);
A=0.5;// in m^2
Pi=2.2;// in bar
Pi=Pi*10^5;// in N/m^2
Pf=2.18;// in bar
Pf=Pf*10^5;// in N/m^2
T=300;// in K
S=0.072;// in m^3
V=0.028;// in m^3
L=10;// in mm
L=L*10^-3;// in meter
R=287;
// Diffusivity of air in rubber D
// Initial mass of air in the tube
mi= Pi*V/(R*T);// in kg
//final mass of air in the tube
mf= Pf*V/(R*T);// in kg
// Mass of air escaped
ma = mi-mf;//in kg
// Formula Na = ma/A = mass of air escaped / Time elapsed * area
A=6*24*3600*0.5;
Na = ma/A;//in kg/sm^2
// Solubility of air should be calculated at mean temperature
S_meanTemperature=(2.2+2.18)/2;// in bar
//Solubility of air at the mean inside Pressure is
S=S*S_meanTemperature;// in m^3/m^3 of rubber
disp("The air which escapes to atmosphere will be 1 bar and its solubility will remain at 0.72 m^3 of air per m^3 of rubber");
V1=S;
V2=0.072;
T1=T;
T2=T;
P1=2.19*10^5;// in N/m^2
P2=1*10^5;// in N/m^2
// The corresponding mass concentration at the inner and outer surface of the tube, from gas equation are calculated as
Ca1= P1*V1/(R*T1);// in kg/m^3
Ca2= P2*V2/(R*T2);// in kg/m^3
// The diffusion flux rate of air through the rubber is given by
// Na = ma/A = D*(Ca1-Ca2)/del_x, here
del_x=L;
D=Na*del_x/(Ca1-Ca2);
disp(D,"Diffusivity of air in rubber in m^2/s");
|
eddbdd8ad886087da0e3308282cf5089d873a997 | 7d91f8b3cb8d228617c08467d41edcff14343b7f | /kolokwium2.sce | 946fc5b92a0f8c3c313c39e207e05fd579358691 | [] | no_license | szymczykmichal/KWP | aae875431be6fa9c1a370016396f2476cb06f793 | 77cbdf39521e41e2bbb9aa9c00fbba0766ec052e | refs/heads/master | 2020-04-26T08:50:05.726038 | 2019-04-24T19:47:19 | 2019-04-24T19:47:19 | 173,435,873 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,614 | sce | kolokwium2.sce | clear, close
exec ode1.sci;
clc
| q1 | q2 |
---------------------------------------
/\ E1 E2 /\
<-------L/2-------><------L/2--------->
// parametry
L = 4000; // długość belki
E = 210000 //N/mm^2 - szytwnosc na zginanie
E2 = 270000 //N/mm^2 - szytwnosc na zginanie
I = 1940e4 //mm^4
EI = E*I
E2I = E2*I
q2=20; // obciazenie liniowo rozlozne, kN/m
q1=10;
// warunki początkowe
h = 10; // krok
x = 0:h:L; // x <0,L>
function dydx = pochodna(x, y, q1, q2, EI, E2I, L)
RA = q1*(3/8)*L+q2*(L/8)
// równanie momentu
if x <= L/2 then
M = -RA*x + q1*x*x/2
else
M = -RA*x + q1*(L/2)*(x-L/4) + q2*(x-L/2)*(x-L/2)*0.5
end
dydx(1,1) = y(2);
if x <= L/2 then
dydx(2,1) = -M/EI;
else
dydx(2,1) = -M/E2I;
end
endfunction
// pierwszy strzał
fi1 = -1e-3;
//fi1 = 1;
y = rk4([0; fi1], x, pochodna); // do wyboru: euler1, euler2, midpoint, rk2
// błąd
e1 = y(1,$) - 0;
// drugi strzał
fi2 = -1e-2;
//fi2 = 2;
y = rk4([0; fi2], x, pochodna); // do wyboru: euler1, euler2, midpoint, rk2
// błąd
e2 = y(1,$) - 0;
// skorygowany kąt obrotu
fi = fi2 - e2*(fi1 - fi2)/(e1 - e2)
//disp(y(1,$))
//disp(y(2,$))
disp(fi*180/%pi)
// rozwiązanie
y = rk4([0; fi], x, pochodna); // do wyboru: euler1, euler2, midpoint, rk2
plot(x,y(2,:)*1000,'r-','LineWidth',3);
plot(x,y(1,:),'b-','LineWidth',3);
//xlabel("x [mm]]");
xlabel('$x \quad [\text{mm}]$','fontsize',4)
ylabel('$w(x), \phi(x)$','fontsize',4);
title("Porownanie");
legend(['$\phi(x) \quad [\text{rad}]$';'$w(x) \quad [mm]$']);
|
cb0652cf3e833c310f1e92ef83176b0278c1f538 | 0abb6bfea7c271ebc33bbe137d6c745204d4fd58 | /TP1/tp-camera-calibration/prenom-nom.sci | eda7c23bcea9d834aefaf691308cc73ae7d32f68 | [] | no_license | Remynoschka/VisA | 83464a8d3184c00e766074e4dbe705d957f484e7 | 1221c1f93e78b56b6d912d2e287ab176fc971325 | refs/heads/master | 2020-05-20T15:55:24.399964 | 2014-12-17T00:33:32 | 2014-12-17T00:33:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,496 | sci | prenom-nom.sci | // -----------------------------------------------------------------------
/// \brief Calcule un terme de contrainte a partir d'une homographie.
///
/// \param H: matrice 3*3 définissant l'homographie.
/// \param i: premiere colonne.
/// \param j: deuxieme colonne.
/// \return vecteur definissant le terme de contrainte.
// -----------------------------------------------------------------------
function v = ZhangConstraintTerm(H, i, j)
// A modifier!
a = H(1,i)*H(1,j);
b = H(1,i)*H(2,j)+H(2,i)*H(1,j);
c = H(2,i)*H(2,j);
d = H(3,i)*H(1,j)+H(1,i)*H(3,j);
e = H(3,i)*H(2,j)+H(2,i)*H(3,j);
f = H(3,i)*H(3,j);
v = [a,b,c,d,e,f];
endfunction
// -----------------------------------------------------------------------
/// \brief Calcule deux equations de contrainte a partir d'une homographie
///
/// \param H: matrice 3*3 définissant l'homographie.
/// \return matrice 2*6 definissant les deux contraintes.
// -----------------------------------------------------------------------
function v = ZhangConstraints(H)
v = [ZhangConstraintTerm(H, 1, 2); ...
ZhangConstraintTerm(H, 1, 1) - ZhangConstraintTerm(H, 2, 2)];
endfunction
// -----------------------------------------------------------------------
/// \brief Calcule la matrice des parametres intrinseques.
///
/// \param b: vecteur resultant de l'optimisation de Zhang.
/// \return matrice 3*3 des parametres intrinseques.
// -----------------------------------------------------------------------
function A = IntrinsicMatrix(b)
_v0 = (b(2)*b(4)-b(1)*b(5))/(b(1)*b(3)-b(2)*b(2));
_lambda = b(6)-(b(4)*b(4)+_v0*(b(2)*b(4)-b(1)*b(5)))/b(1);
_alpha = sqrt(_lambda/b(1));
_beta = sqrt((_lambda*b(1))/(b(1)*b(3)-b(2)*b(2)));
_gamma = -(b(2)*_alpha*_alpha*_beta/_lambda);
_u0 = _gamma*_v0/_beta - b(4)*_alpha*_alpha/_lambda;
A =[_alpha,_gamma,_u0;
0,_beta, _v0;
0,0,1];
endfunction
// -----------------------------------------------------------------------
/// \brief Calcule la matrice des parametres extrinseques.
///
/// \param iA: inverse de la matrice intrinseque.
/// \param H: matrice 3*3 definissant l'homographie.
/// \return matrice 3*4 des parametres extrinseques.
// -----------------------------------------------------------------------
function E = ExtrinsicMatrix(iA, H)
lambda = 1/abs(iA*H(:,1));
lambda = lambda(1);
r1 = lambda * iA * H(:,1);
r2 = lambda * iA * H(:,2);
r3 = CrossProduct(r1,r2);
t = lambda * iA * H(:,3);
E = [r1,r2,r3,t];
endfunction
|
99a4734bde230547de0c7629e8f9bad34ae8f31d | 5f48beee3dc825617c83ba20a7c82c544061af65 | /tests/s/115.tst | 66a1bb4d81a987498674554dad7bb132b993d519 | [] | no_license | grenkin/compiler | bed06cd6dac49c1ca89d2723174210cd3dc8efea | 30634ec46fba10333cf284399f577be7fb8e5b61 | refs/heads/master | 2020-06-20T12:44:17.903582 | 2016-11-27T03:08:20 | 2016-11-27T03:08:20 | 74,863,612 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 39 | tst | 115.tst | int main(void)
{
int *p, *q;
p * q;
} |
d44537f3c59a33a464b446e87ab2a00677d78dc4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH3/EX3.35/Ex3_35.sce | 552e78665f257cdb7f27970681729c1a333cadf6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 742 | sce | Ex3_35.sce | //EX3_35 PG-3.72
clc
disp("refer to the figure-3.47 shown")
Vz=10;//output voltage
Vin=20;//input voltage
Iz_max=25e-3;//maximum zener current
Iz_min=5e-3;//minimum zener current
R=300;
Rz=0;//zener resistance
I=(Vin-Vz)/R;
//for Il_min Iz=Iz_max
Il_min=I-Iz_max;//minimum load current
printf("\n minimum load current is %.2f mA \n",Il_min*1e3)
//for Il_max, Iz=Iz_min
Il_max=I-Iz_min;//maximum load current
printf("\n maximum load current is %.2f mA \n",Il_max*1e3)
Rl_min=Vz/Il_max;//minimum load resistance
printf("\n minimum load resistance is %.3f ohm \n",Rl_min)
// in the book in the question it given that Iz_max=50mA
//but during the solution Iz_max is taken as 25mA I have taken Iz_max=25mA
// in this program
|
90a5b1027bcfc2bb4aa936b057356139b3d95079 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH2/EX2.1/ch2_2_1.sce | e5d6df7bb7057a0619e2bfb95cc34dd84d7f6889 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 560 | sce | ch2_2_1.sce | //chapter 2
//example 2.1
//page 33
clear all;
clc ;
//given
Rl=100;//load resistor in ohm
Es=5;//supply voltage in volts
//for point A
If1=0;//forward current through diode ,thus drop across resistor is 0 v
Ef1=5; //Ef=voltage drop across diode in volts
//for point B
Ef2=0;
If2=Es/Rl; //in Ampere
If2=If2*10^3;//in mA
plot([Ef1 Ef2],[If1 If2],'-.*')
xtitle('dc load line','voltage drop across diode(V)','current through diode(mA)')
a=gca();
a.data_bounds=[-0.5 -0.5;5.1 52]
printf('dc load line passes through points A(5,0),B(0,50)')
|
841f6347da83adc2b46c6c1363e24ab3b33ec83d | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronics_Engineering_P._Raja_2150.zip/Electronics_Engineering_P._Raja_2150/CH7/EX7.11/ex7_11.sce | a835a55dfa943238ac47116747513e40d8c847e8 | [] | 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 | 368 | sce | ex7_11.sce | errcatch(-1,"stop");mode(2);// Exa 7.11
;
;
// Given data
V_DS = 0.1;// in V
I_D = 10;// in mA
I_D= I_D*10^-3;// in A
R_DS = V_DS/I_D;// in ohm
disp(R_DS,"Part (a) The value of R_DS(on) in ohm is");
V_DS = 0.75;// in V
I_D = 100;// in mA
I_D= I_D*10^-3;// in A
R_DS = V_DS/I_D;// in ohm
disp(R_DS,"Part (b) The value of R_DS(on) in ohm is");
exit();
|
1d63315ef1889fcf013a593d10e04a253b7115d1 | 4ce7e3abde40afbac45b42e735d8099cbfefb1ea | /fonctions.sci | db848cd7311a74c97b409e73d3da66c8cc95ad6f | [] | no_license | rakotoshmu/Ising | 48319a622d98840dd47cfa515bb8a3f0d3a98a4a | 8d22ec05aab9843af88212151525913dd223a339 | refs/heads/master | 2021-05-14T07:30:58.728852 | 2018-01-13T13:59:50 | 2018-01-13T13:59:50 | 116,267,113 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 13,525 | sci | fonctions.sci | //clear;
/*
Dans tout le fichier, les paramètres du modèle d'Ising seront :
- N entier le côté du réseau carré de dimension 2 sur lequel on simule le modèle d'Ising
- J de taille N x N x 2 matrice des forces d'intéractions
- h de taille N x 1 matrice du champ magnétique extérieur
*/
/******************
Metropolis-Hastings
******************/
function V = V_u(J,h,x,i,j)
/*
Calcule et renvoie V_u(x) où u = (i,j) et x est un état (de taille N x N)
N,J,h les paramètres du modèle d'Ising
*/
N = size(h,1);
/* conditions au bords périodiques */
im = i-1 + N*(i==1);
ip = i+1 - N*(i==N);
jm = j-1 + N*(j==1);
jp = j+1 - N*(j==N);
V = h(i,j) + ...
J(im,j,1) * double(x(im,j)) + ...
J(i,j,1) * double(x(ip,j)) + ...
J(i,jm,2) * double(x(i,jm)) + ...
J(i,j,2) * double(x(i,jp));
endfunction
function X = ising_MH_chain(J,h,n)
/*
Simule le modèle d'Ising selon un algorithme de Metropolis-Hasting, en partant d'un état initial aléatoire uniforme
N,J,h les paramètres du modèle d'Ising
n entier le temps de simulation de la chaine
p dans [0,1] probabilité de changer chaque coordonnée pour la proposition de M-H
Renvoie X de taille N x N x n+1 (X(:,:,k) état de la chaîne de Markov à l'instant k+1)
*/
N = size(h,1);
X = int8(ones(N,N,n+1));
X(:,:,1) = 2*int8((grand(N,N,"def")<0.5))-1; //état initial aléatoire
I = ceil(N*grand(2,n,"def")); //indices aléatoires
S = 2*int8(grand(1,n,"def")<1/2)-1; //spin aléatoires
U = grand(1,n,"def"); //uniformes sur [0,1]
for k = 1:n
i = I(1,k); //indice à modifier
j = I(2,k); //indice à modifier
s = S(k); //mouvement proposé : X(i,j) = s
X(:,:,k+1) = X(:,:,k);
if X(i,j,k)~=s then
v = V_u(J,h,X(:,:,k),i,j);
if U(k) < exp(double(2*s)*v) then
X(i,j,k+1) = s;
end
end
end
endfunction
function X = ising_MH(J,h,n)
/*
Comme ising_MH_chain, mais ne renvoie que l'état final
*/
N = size(h,1);
X = 2*int8((grand(N,N,"def")<0.5))-1; //état initial aléatoire
I = ceil(N*grand(2,n,"def")); //indices aléatoires
S = 2*int8(grand(1,n,"def")<1/2)-1; //spin aléatoires
U = grand(1,n,"def"); //uniformes sur [0,1]
for k = 1:n
i = I(1,k); //indice à modifier
j = I(2,k); //indice à modifier
s = S(k); //mouvement proposé : X(i,j) = s
if X(i,j)~=s then
v = V_u(J,h,X,i,j);
if U(k) < exp(double(2*s)*v) then
X(i,j) = s;
end
end
end
endfunction
/**********************
Échantilloneur de Gibbs
**********************/
function Y = ising_gibbs_step(J,h,X,i,j,u)
/*
Effectue un pas de l'échantilloneur de Gibbs selon la coordonnée (i,j)
Renvoie Y le résultat de ce pas
N,J,h les paramètres du modèle d'Ising
X de taille N x N l'état de départ
i,j coordonnées
u dans [0,1] tiré uniformément
*/
N = size(h,1);
p = 1/(1+exp(-2*V_u(J,h,X,i,j)));
Y = X;
Y(i,j) = 2*int8(u<p)-1;
endfunction
function X = ising_gibbs_seq_chain(J,h,n)
/*
Simule le modèle d'Ising par l'échantilloneur de Gibbs avec balayage séquentiel, en partant d'un état initial aléatoire uniforme
N,J,h les paramètres du modèle d'Ising
n entier le temps de simulation de la chaine
Renvoie X de taille N x N x n+1 (X(:,:,k) état de la chaîne de Markov à l'instant k+1)
*/
N = size(h,1);
X = int8(ones(N,N,n+1));
X(:,:,1) = 2*int8((grand(N,N,"def")<0.5))-1; //état initial aléatoire
for k = 1:n
Xtemp = X(:,:,k);
U = grand(N,N,"def");
//balayage séquentiel
for i = 1:N
for j = 1:N
Xtemp = ising_gibbs_step(J,h,Xtemp,i,j,U(i,j));
end
end
X(:,:,k+1) = Xtemp;
end
endfunction
function X = ising_gibbs_seq(J,h,n)
/*
Comme ising_gibbs_seq_chain, mais ne renvoie que l'état final
*/
N = size(h,1);
X = 2*int8((grand(N,N,"def")<0.5))-1; //état initial aléatoire
for k = 1:n
U = grand(N,N,"def");
//balayage séquentiel
for i = 1:N
for j = 1:N
X = ising_gibbs_step(J,h,X,i,j,U(i,j));
end
end
end
endfunction
function X = ising_gibbs_rand_chain(J,h,n)
/*
Simule le modèle d'Ising par l'échantilloneur de Gibbs avec balayage séquentiel, en partant d'un état initial aléatoire uniforme
N,J,h les paramètres du modèle d'Ising
n entier le temps de simulation de la chaine
Renvoie X de taille N x N x n+1 (X(:,:,k) état de la chaîne de Markov à l'instant k+1)
*/
N = size(h,1);
X = int8(ones(N,N,n+1));
X(:,:,1) = 2*int8((grand(N,N,"def")<0.5))-1;
I = ceil(N*grand(2,n,"def")); //indices aléatoires
U = grand(1,n,"def"); //uniformes
for k = 1:n //balayage aléatoire
X(:,:,k+1) = ising_gibbs_step(J,h,X(:,:,k),I(1,k),I(2,k),U(k));
end
endfunction
function X = ising_gibbs_rand(J,h,n)
/*
Comme ising_gibbs_rand_chain, mais ne renvoie que l'état final
*/
N = size(h,1);
X = 2*int8((grand(N,N,"def")<0.5))-1;
I = ceil(N*grand(2,n,"def")); //indices aléatoires
U = grand(1,n,"def"); //uniformes
for k = 1:n //balayage aléatoire
X = ising_gibbs_step(J,h,X,I(1,k),I(2,k),U(k));
end
endfunction
/********************
Couplage par le passé
********************/
function X = ising_coupling_MH(J,h,feedback)
/*
Simule le modèle d'Ising par couplage par le passé sur Metropolis-Hastings
N,J,h les paramètres du modèle d'Ising
Renvoie X de taille N x N
feedback : booléen pour afficher ou non l'animation du couplage
*/
N = size(h,1);
if feedback then
fig = scf();
end
X = int8(ones(N,N));
Y = -int8(ones(N,N));
I = [];
S = [];
U = [];
n_old = 0;
n = N^2; //nombre d'update à faire
while max(abs(X-Y))>0 do
printf("\tEssai de coalition, n = "+string(n)+"\n");
//tirer les aléas manquant pour avoir n updates
//les aléas sont rangés dans le sens inverse du temps : u_n, ..., u_2, u_1
I = [ceil(N*grand(2,n-n_old,"def")), I]; //indices aléatoires
S = [2*int8(grand(1,n-n_old,"def")<1/2)-1, S]; //spins aléatoires
U = [grand(1,n-n_old,"def"), U]; //unif([0,1])
X = int8(ones(N,N));
Y = -int8(ones(N,N));
for k=1:n
i=I(1,k);
j=I(2,k);
s=S(k);
u=U(k);
if X(i,j)~=s then
v = V_u(J,h,X,i,j);
if u < exp(double(2*s)*v) then
X(i,j) = s;
end
end
if Y(i,j)~=s then
v = V_u(J,h,Y,i,j);
if u < exp(double(2*s)*v) then
Y(i,j) = s;
end
end
if feedback then //Permet d'afficher l'avancement du couplage
drawlater;
clf(fig);
subplot(2,2,1);
title("Nombre k d''update : "+string(k)+"/"+string(n));
subplot(2,2,2);
Matplot((X+Y)/2+1); title("Nombre de spins différents : "+string(sum(double(abs(X-Y))/2)));
subplot(2,2,3);
Matplot(X+1); title("$\huge f_{\theta_{"+string(n-k+1)+"}} \circ \hdots \circ f_{\theta_{"+string(n)+"}} (1,\hdots,1)$");
subplot(2,2,4);
Matplot(Y+1); title("$\huge f_{\theta_{"+string(n-k+1)+"}} \circ \hdots \circ f_{\theta_{"+string(n)+"}} (-1,\hdots,-1)$");
drawnow;
end
end
n_old = n;
n = 2*n; //augmenter le nombre d'update nécessaires
printf("\t\t"+string(sum(double(abs(X-Y))/2))+" spins différents\n");
end
if feedback then
close(fig);
printf("\tTemps de coalition pour CFTP via MH : "+string(n/2)+"\n");
end
endfunction
function X = ising_coupling_gibbs(J,h,feedback)
/*
Simule le modèle d'Ising par couplage par le passé sur l'échantillonneur de Gibbs
N,J,h les paramètres du modèle d'Ising
J supposé constant, h supposé nul
Renvoie X de taille N x N
feedback : booléen pour afficher ou non l'animation du couplage
*/
N = size(h,1);
if feedback then
fig = scf();
end
X = int8(ones(N,N));
Y = -int8(ones(N,N));
U = [];
n_old = 0;
n = 1; //nombre d'update à faire
while max(abs(X-Y))>0 do
printf("\tNouvel essai de coalition, n = "+string(n)+"\n");
//tirer les aléas manquant pour avoir n updates
//les aléas sont rangés dans le sens inverse du temps : u_n, ..., u_2, u_1
temp = zeros(N,N,n); //resize_matrix(U,[N,N,n]);
temp(:,:,1:n-n_old) = grand(N,N,n-n_old,"def"); //tirages manquant
temp(:,:,(n-n_old+1):n) = U; //anciens tirages
U = temp;
X = int8(ones(N,N));
Y = -int8(ones(N,N));
for k=1:n
//balayage séquentiel
for i = 1:N
for j = 1:N
X = ising_gibbs_step(J,h,X,i,j,U(i,j,k));
Y = ising_gibbs_step(J,h,Y,i,j,U(i,j,k));
end
end
if feedback then //Permet d'afficher l'avancement du couplage
drawlater;
clf(fig);
subplot(2,2,1);
title("Nombre k d''update : "+string(k)+"/"+string(n));
subplot(2,2,2);
Matplot((X+Y)/2+1); title("Nombre de spins différents : "+string(sum(double(abs(X-Y))/2)));
subplot(2,2,3);
Matplot(X+1); title("$\huge f_{\theta_{"+string(n-k+1)+"}} \circ \hdots \circ f_{\theta_{"+string(n)+"}} (1,\hdots,1)$");
subplot(2,2,4);
Matplot(Y+1); title("$\huge f_{\theta_{"+string(n-k+1)+"}} \circ \hdots \circ f_{\theta_{"+string(n)+"}} (-1,\hdots,-1)$");
drawnow;
end
end
n_old = n;
n = 2*n; //augmenter le nombre d'update nécessaires
printf("\t"+string(sum(double(abs(X-Y))/2))+" spins différents\n");
end
if feedback then
close(fig);
printf("\t\tTemps de coalition pour CFTP via Gibbs : "+string(n/2)+"\n");
end
endfunction
/**********************
Simulation exacte naïve
**********************/
function X = num2etat(N,m)
/*
Calcule le m-ième état dans l'énumération lexicographique des états
N entier la taille du côté du réseau
m entier entre 1 et 2^(N^2) le numéro de l'état
Renvoie X le m-ième état
*/
//a = matrix(1:N^2,N,N) est une matrice de taille N x N les entiers de 1 à N^2
//b = bitget(m,a) est une matrice de taille NxN listant les bit de m
//c = 2*b-1 transforme ces {0,1} et {-1,1}
X = 2*int8(bitget(m,matrix(1:N^2,N,N)))-1;
endfunction
function m = etat2num(X)
/*
Calcule le numéro de l'état dans l'énumération lexicographique des états
N entier la taille du côté du réseau
X de taille N x N à valeur {1,-1}
Renvoie m le numéro de l'état
*/
//a = matrix(X,1,-1) est le vecteur ligne composé des éléments de X
//b = (a+1)/2 transforme les {-1,1} et {0,1} donc b(k) est le k-ième bit de m
m = sum(2.^(0:N^2-1) .* (matrix(X,1,-1)+1)/2);
endfunction
function y = pi(J,h,x)
/*
Calcule la loi non normalisée
N,J,h les paramètres du modèle d'Ising
x de taille N x N
Renvoie y = Z_T * pi(x)
*/
N = size(h,1);
//intercation entre les voisins de même ordonnée
s1 = sum(J(:,:,1).*double(x.*x([2:N 1],:))); //conditions au bords périodiques
//intercation entre les voisins de même abscisse
s2 = sum(J(:,:,2).*double(x.*x(:,[2:N 1]))); //conditions au bords périodiques
//champ magnétique extérieur
s3 = sum(h.*x);
y = exp(double(s1+s2+s3));
endfunction
function p = ising_law(J,h)
/*
Renvoie la loi de probabilité du modèle d'Ising
p(m)/sum(p) est la probabilité du m-ième état
N,J,h les paramètres du modèle d'Ising
*/
N = size(h,1);
d = 2^(N^2); //nombre d'états
p = zeros(1,d);
for m = 1:d
x = num2etat(N,m);
p(m) = pi(J,h,x); //probabilité non normalisée
end
endfunction
function X = ising_exact(J,h,n)
/*
Simule un n-échantillon du modèle d'Ising de manière naïve (probabilités discrètes), à ne lancer qu'avec N petit
N,J,h les paramètres du modèle d'Ising
n le nombre de tirage
Renvoie X de taille N x N x n
*/
N = size(h,1);
d=2^(N^2)
p = ising_law(J,h);
c = cumsum(p);
for k = 1:n
//m suit la loi p/sum(p)
[t,m] = max((grand(1,1,"def")*c(d)<c));
X(:,:,k) = num2etat(N,m);
end
endfunction
function y = log_pi_std(x)
/*
Renvoie log(pi(J,h,x)) avec J = ones(N,N,2) et h = zeros(N,N)
*/
N = size(x,1);
y = sum(double(x.*x([2:N 1],:)+x.*x(:,[2:N 1])));
endfunction
function U = ising_energy_std(N)
/*
Renvoie l'énergie du modèle d'Ising
Si p est le résultat de ising_law(J,h) avec J = ones(N,N,2) et h = zeros(N,N),
alors U = -log(p)
*/
N = size(h,1);
d = 2^(N^2); //nombre d'états
U = zeros(1,d);
for m = 1:d
x = num2etat(N,m);
U(m) = -log_pi_std(x);
end
endfunction
|
dafd009601f06270a3b396fe871bd3a89c64cb01 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1985/CH2/EX2.9/Chapter2_example9.sce | 8a44c3f9e3728283a7e7ccde834928f95abf0c86 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 384 | sce | Chapter2_example9.sce | clc
clear
d=(0.82*10^-3)//Diameter of the wire in m
dl=(1*10^-3)//Length of elongation produced in m
F=(0.33*9.8)//Force in N
q=1//Angular twist in radians
T=(10*10^-5)//Torque in N
n=(2.2529*10^9)//Rigidity modulus in N/m^2
//Calculations
Y=(F/(3.14*(d/2)^2*dl))//youngs modulus *L in N/m^2
s=(Y/(2*n))-1//Poissons ratio
//Output
printf('Poissons ratio is %3.4f',s)
|
5c42e49318b02db97c5ae6bc5745187d6431bf3b | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.2/macros/percent/%rxp.sci | 6c0fd00095af3af1b83e023c8f63af2cf1c833e9 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 247 | sci | %rxp.sci | //<f>=%rxp(f1,f2)
// %rxp(r,p) calcule le produit element par element de la matrice de
//fractions rationnelles r par la matrice de polynomes p.
//Cette macro correspond a l'operation r.*p
//!
num=f1(2).*f2
f=tlist('r',num,f1(3),f1(4))
//end
|
888e6c8702b45c6f7e7dfad064f7954b24e5f58f | 5fa35d077fae86be5fabe363900a7008362095f8 | /chirp.sci | 35c6985d6594506f852dde3bd9d11f1347c6c03d | [] | no_license | panda314/scilab_toolbox | b250c7f1a2a10fa132eb956677b09aa59515dc60 | 3bce371075f73dbea75ea051f769872d03911fd2 | refs/heads/master | 2021-01-13T01:51:13.306854 | 2016-03-01T18:21:19 | 2016-03-01T18:21:19 | 42,867,282 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,113 | sci | chirp.sci | //Parthasarathi Panda
//parthasarathipanda@gmail.com
//t is the array over which thee chirp is computed
//f0 is the frequency at t=0
//f1 is the frequency at t=t1
//phi is the phase at t=0 (0 optional)
//method indicates the way in which frequency varies (quadratic,linear or logarithmic) and is linear when unspecified
//tested for t=[1:5], f0=0 and 1 t1=100, f1=5, all possible methods, phi=0,pi/3
function [y]=chirp(t,f0,t1,f1,method,phi)
[lhs,rhs]=argn();
if (rhs<6) then
phi=0;
if (rhs<5) then
method="linear";
end
end
if ((method=="li") | (method=="linear")) then
b=(f1-f0)/t1;
y=cos(phi+2*%pi*(f0*t+0.5*b*t.*t));
elseif ((method=="q") | (method=="quadratic")) then
b=(f1-f0)/(t1*t1);
y=cos(phi+2*%pi*(f0*t+b*t.*t.*t/3));
elseif ((method=="lo") | (method=="logarithmic")) then
if f0==0 then
error("f0 must be non zero");
else
b=(f1/f0)^(1/t1);
y=cos(phi+2*%pi*(f0*(b.^t)/log(b)));
end
else
error("unidentified method");
end,
endfunction
|
4035f2153256665a8531db0896f52347aa1fbee2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1244/CH6/EX6.7/Example67.sce | 1bcbc326860a1ef818add87e27ab4d9660ce7d61 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,190 | sce | Example67.sce |
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clc;
disp("Principles of Heat Transfer, 7th Ed. Frank Kreith et. al Chapter - 6 Example # 6.7 ")
//Temperature of airstream in degree C
Tair = 20;
//Velocity of air in m/s
U = 1.8;
//Side of circuit in m
L = 27/1000;
//Spacing in the circuit in m
H = 17/1000;
//At 20°C, the properties of air from Table 28, Appendix 2, are
//Density in kg/m3
rho = 7700;
//Specific heat in J/kgK
c = 130;
//Thermal conductivity in W/mK
k = 0.0251;
//Kinematic viscosity in m2/s
nu = 0.0000157;
//Prandtl number
Pr = 0.011;
//Reynolds number
Re = (U*H)/nu;
//From Fig. (6.27), we see that the second integrated circuit is in the inlet region and estimate Nu2 =29.
//Nusselt number in second circuit
Nu2 = 29;
disp("Heat transfer coefficient along 2nd circuit in W/m2K")
//Heat transfer coefficient in W/m2K
hc2 = (Nu2*k)/L
//The sixth integrated circuit is in the developed region and from Eq. (6.79)
//Nusselt number in sixth circuit
Nu6 = 21.7;
disp("Heat transfer coefficient along 6th circuit in W/m2K")
////Heat transfer coefficient in W/m2K
hc6 = (Nu6*k)/L
|
73fd729fe470fb7d467bf2127ac0ece7d872609f | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpicscifiles6/Setscaling.sci | 1d4868c979e661671f23017f4ef851d53228ce3c | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 471 | sci | Setscaling.sci | function Out=Setscaling(varargin)
global LOGX LOGY SCALEX SCALEY;
Nargs= length(varargin)
if Nargs==0
Out=[SCALEY,LOGX,LOGY];
return;
end;
for I=1:Nargs
Tmp=varargin(I);
if type(Tmp)==1
SCALEY=Tmp;
end;
if type(Tmp)==10
if Tmp=="l"
LOGX=0;
LOGY=1;
elseif Tmp=="ll"
LOGX=1
LOGY=1
else
LOGX=0
LOGY=0
end;
end;
end;
Out=[SCALEY,LOGX,LOGY];
endfunction;
|
a42f642b787936d4feaa525e5001f4412fbb86b2 | e6d5f1d801a3fe887b5dc04b8cc0a9eabc1fd432 | /Semana_8/ej2.sce | 8530ea23b58538a0cb39090dba88b568d0663c2c | [] | no_license | lordjuacs/MateIII | 70def332063e56eb10fb47678a7e6130dc0dca63 | 164c53b61c9e35e565121f77ba2c578680a3ab56 | refs/heads/master | 2021-05-24T15:56:01.078904 | 2020-07-27T19:57:34 | 2020-07-27T19:57:34 | 253,643,962 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 416 | sce | ej2.sce |
clc
//Métodos numéricos
A = [3 2 1; 5 3 2; 1 8 3]
D = diag(diag(A))
L = -tril(A, -1)
U = -triu(A, 1)
disp(D)
disp(L)
disp(U)
op = verificadiagdom(A)
if op == 1 then
printf("El metodo iterativo es convergente")
else
printf("No se puede afirmar nada")
end
Tj = inv(D)*(L+U)
disp(Tj)
Tgs = inv(D-L)*U
disp(Tgs)
//radio espectral
rhoj = max(abs(spec(Tj)))
disp(rhoj)
rhogs = max(abs(spec(Tgs)))
disp(rhogs)
|
b5bb6de710793ea6201ab8e86e9da39a3ea48ca6 | 1db0a7f58e484c067efa384b541cecee64d190ab | /macros/invfreqs.sci | 32e732b4a491581378c7548f5455983d690d9512 | [] | no_license | sonusharma55/Signal-Toolbox | 3eff678d177633ee8aadca7fb9782b8bd7c2f1ce | 89bfeffefc89137fe3c266d3a3e746a749bbc1e9 | refs/heads/master | 2020-03-22T21:37:22.593805 | 2018-07-12T12:35:54 | 2018-07-12T12:35:54 | 140,701,211 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,580 | sci | invfreqs.sci | function [B,A,C] = invfreqs(H,F,nB,nA,W,iter,tol,trace)
//Fit filter B(s)/A(s)to the complex frequency response H at frequency points F. A and B are real polynomial coefficients of order nA and nB.
//Calling Sequence
//[B,A,C] = invfreqs(H,F,nB,nA,W,iter,tol,trace)
//[B,A,C] = invfreqs(H,F,nB,nA,W)
//[B,A,C] = invfreqs(H,F,nB,nA)
//Parameters
//H: desired complex frequency response.
//F: frequency (must be same length as H).
//nB: order of the numerator polynomial B.
//nA: order of the denominator polynomial A.
//W: vector of weights (must be same length as F).
//Description
//This is an Octave function.
//Fit filter B(s)/A(s)to the complex frequency response H at frequency points F. A and B are real polynomial coefficients of order nA and nB.
//Optionally, the fit-errors can be weighted vs frequency according to the weights W.
//Note: all the guts are in invfreq.m
//Examples
//B = [1/2 1];
//A = [1 1];
//w = linspace(0,4,128);
//H = freqs(B,A,w);
//[Bh,Ah, C] = invfreqs(H,w,1,1);
//Bh =
//
// 0.50000 1.00000
//
//Ah =
//
// 1.0000 1.0000
//
//C = -3.0964e-15
funcprot(0);
lhs = argn(1)
rhs = argn(2)
if (rhs < 4 | rhs > 8)
error("Wrong number of input arguments.")
end
select(rhs)
case 4 then
if(lhs==1)
B = callOctave("invfreqs",H,F,nB,nA)
elseif(lhs==2)
[B, A] = callOctave("invfreqs",H,F,nB,nA)
elseif(lhs==3)
[B, A, C] = callOctave("invfreqs",H,F,nB,nA)
else
error("Wrong number of output argments.")
end
case 5 then
if(lhs==1)
B = callOctave("invfreqs",H,F,nB,nA,W)
elseif(lhs==2)
[B, A] = callOctave("invfreqs",H,F,nB,nA,W)
elseif(lhs==3)
[B, A, C] = callOctave("invfreqs",H,F,nB,nA,W)
else
error("Wrong number of output argments.")
end
case 6 then
if(lhs==1)
B = callOctave("invfreqs",H,F,nB,nA,W,iter)
elseif(lhs==2)
[B, A] = callOctave("invfreqs",H,F,nB,nA,W,iter)
elseif(lhs==3)
[B, A, C] = callOctave("invfreqs",H,F,nB,nA,W,iter)
else
error("Wrong number of output argments.")
end
case 7 then
if(lhs==1)
B = callOctave("invfreqs",H,F,nB,nA,W,iter,tol)
elseif(lhs==2)
[B, A] = callOctave("invfreqs",H,F,nB,nA,W,iter,tol)
elseif(lhs==3)
[B, A, C] = callOctave("invfreqs",H,F,nB,nA,W,iter,tol)
else
error("Wrong number of output argments.")
end
case 8 then
if(lhs==1)
B = callOctave("invfreqs",H,F,nB,nA,W,iter,tol,trace)
elseif(lhs==2)
[B, A] = callOctave("invfreqs",H,F,nB,nA,W,iter,tol,trace)
elseif(lhs==3)
[B, A, C] = callOctave("invfreqs",H,F,nB,nA,W,iter,tol,trace)
else
error("Wrong number of output argments.")
end
end
endfunction
|
fc65ce561900dcef34b3499766f1be39d7bd7561 | 449d555969bfd7befe906877abab098c6e63a0e8 | /413/CH5/EX5.3/Example_5_3.sce | c6a9bc6adc04da610a0f8bb4ff8aa67f50c7228e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 799 | sce | Example_5_3.sce | clc
clear
x=[1.6 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 3.8];
F=[4.953 6.05 7.389 9.025 11.023 13.464 16.445 20.086 24.533 29.964 36.594 44.701]
for i=1:12
X=[x(1,i), F(1,i)]
end
A1=(0.2/2)*[(6.05+29.964)+2*(7.389+9.025+11.023+13.464+16.445+20.086+24.533)]
printf('Answer by Trapezoidal Rule to estimate the integral from x=1.8 to x=3.4 taking h=0.2')
disp(A1)
A2=(0.4/2)*[(6.05+29.964)+2*(9.025+13.464+20.086)]
printf('Answer by Trapezoidal Rule to estimate the integral from x=1.8 to x=3.4 taking h =0.4')
disp(A2)
A3=(0.8/2)*[(6.05+29.964)+2*(13.464)]
printf('Answer by Trapezoidal Rule to estimate the integral from x=1.8 to x=3.4 taking h=0.8')
disp(A3)
A4=A1+(A1-A2)/3
A5=A2+(A2-A3)/3
A6=A4+(A4-A5)/3
T1=[0.2 A1 A4 A6]
T2=[0.4 A2 A5]
T3=[0.8 A3]
disp(T1)
disp(T2)
disp(T3) |
bdcab8c674acf87e5cbf27492c09c31eaf0345b8 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/rootmusic/rootmusic2.sce | 28e2ffecef96894fc252aa86877f2b58fea3668f | [] | 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 | 224 | sce | rootmusic2.sce | //i/p arg R is a row vector
R=[6.1117 + 0.0000*%i 3.8205 - 3.9887*%i -0.2138 - 5.5126*%i];
[W,P] = rootmusic(R,1);
disp(W);
disp(P);
//output
// 0.8048906
//
// 32.182981
//matlab o/p
// -0.8049
//
// 32.1830
|
ec00333b1949e709b5406cc6598ddea9441c5f6f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH5/EX5.39/Ex5_39.sce | 8555b385e253062b46a0cb4d5812c6a0d98dcc59 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 449 | sce | Ex5_39.sce | clear
//Given
R2=50.0 //ohm
R3=50.0 //ohm
R4=75.0 //ohm
E=4.75
R1=100
//Calculation
Rbc=1/((1/R2)+(1/R3)+(1/R4))
R=R1+Rbc
I=E/R
R11=I*R1
Vbc=E-(I*R1)
I2=Vbc/R2
I3=Vbc/R3
I4=Vbc/R4
//Result
printf("\n Equivalent resistance of the circuit is %0.3f ohm", R)
printf("\n Current in R2 is %0.3f A",I2)
printf("\n Current in R3 is %0.3f A",I3)
printf("\n Current in R4 is %0.3f A",I4)
|
874a22664fe7fb5dce58d56a929908cf283f0b26 | 449d555969bfd7befe906877abab098c6e63a0e8 | /626/CH4/EX4.13/4_13.sce | 7bd560287576cebc83876b9d48377ee3f5865d11 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,314 | sce | 4_13.sce | clear;
clc;
close;
disp("Example4.13")
M0=0.88 //Mach no.
p0=15 // pressure in kPa
T0=233 //temperatue in K
gmc=1.4 //gamma compressor
Cpc=1004 //specific heat of compressor in J/kg.K
pd=0.995 // pressure compression ratio of diffuser
pf=1.6 //pressure compression ratio of fan
ef=0.9 //fan efficiency
alfa=8
pfn=0.95 //compression ratio of convergent fan nozzle
pc=40 //compression ratio of compressor
ec=0.9 //compressor efficiency
tl=8 //temp. ratio
Cpt=1152 //in J/kg.K of turbine
gmt=1.33 //gamma turbine
Qr=42000000 //in J/kg
pb=0.95 //burner compression ratio
eb=0.992 //burner efficiency
em=0.95
et=0.85
pn=0.98 //primary nozzle
a0=((gmc-1)*Cpc*T0)^(1/2);
V0=M0*a0;
pt0=p0*(1+((gmc-1)*(M0)^2)/2)^(gmc/(gmc-1))
Tt0=T0*(1+((gmc-1)*(M0)^2)/2)
Tt2=Tt0
pt2=pt0*pd
//fan stream:
pt13=pt2*pf
tf=pf^((gmc-1)/(ef*gmc))
Tt13=Tt2*tf
pt19=pt13*pfn
p19=pt19/(1+(gmc-1)/2)^(gmc/(gmc-1))
M19=1
T19=Tt13/1.2
a19=((gmc-1)*Cpc*T19)^(1/2)
V19=a19
//V19eff=V19+((gmc*p19)/r19)*((1-p0/p19)/(gmc*V19)) i.e V19+a19^2
V19eff=V19+(a19^2)*((1-p0/p19)/(gmc*V19))
//Core stream
pt3=pt2*pc
tc=pc^((gmc-1)/(ec*gmc))
//disp(tc)
Tt3=Tt2*tc
pt4=pt3*pb
Tt4=Cpc*T0*tl/Cpt
//disp(Tt4)
f=(Cpt*Tt4-Cpc*Tt3)/(Qr*eb-Cpt*Tt4)
//disp(f)
Tt5=Tt4-((Cpc*(Tt3-Tt2)+alfa*Cpc*(Tt13-Tt2)))/((1+f)*Cpt*em)
//disp(Tt5)
tt=Tt5/Tt4
pt=tt^(gmt/(et*(gmt-1)))
pt5=pt4*pt
pt9=pt5*pn
p9=pt9/((gmt+1)/2)^(gmt/(gmt-1))
M9=1
T9=Tt5/((gmt+1)/2)
a9=((gmt-1)*Cpt*T9)^(1/2)
V9=a9
V9eff=V9+(((a9)^2)*(1-(p0/p9)))/(gmt*V9)
ndsft=alfa*(V19eff-V0)/((1+alfa)*a0)
ndsct=((1+f)*V9eff-V0)/((1+alfa)*a0)
ndst=ndsft+ndsct
rfct=ndsft/ndsct
fc=ndsft*100/(ndsft+ndsct)
cc=ndsct*100/(ndsft+ndsct)
TSFC=f/((1+alfa)*a0*(ndsft+ndsct))*10^6
eth=(alfa*V19eff^2+(1+f)*V9eff^2-(1+alfa)*V0^2)/(2*f*Qr)
ep=(2*(ndsft+ndsct)*(1+alfa)*a0*V0)/(alfa*V19eff^2+(1+f)*V9eff^2-(1+alfa)*V0^2)
eo=eth*ep
//Pressures
disp("a(1)Total pressures throughout the engine in kPa:")
disp(pt0,"Total pressure of flight:")
disp(pt2,"Total pressure at engine face:")
disp(pt13,"Total pressure at fan exit:")
disp(p19,"Static pressure at nozzle exit:")
disp(pt3,"Total pressure at compressor exit:")
disp(pt4,"Total pressure at burner exit:")
disp(pt5,"Total pressure at turbine exit:")
disp(pt9,"Total pressure at nozzle exit:")
//Temperatures
disp("a(2)Total temperatures across the engine in K:")
disp(Tt0,"Total temperature of flight:")
disp(Tt2,"Total temperature at engine face:") //Tt0=Tt2, since adiabatic!
disp(Tt13,"Total temperature at fan exit:")
disp(T19,"Static temperature at fan nozzle exit:")
disp(Tt3,"Total temperature at compressor exit:")
disp(Tt4,"Total temperature at burner exit:")
disp(Tt5,"Total temperature at turbine exit:")
disp(T9,"Static temperature at nozzle exit:")
disp(pt19,"(b{1})Total pressure at fan nozzle exit:")
disp(p9,"(b{2})Static pressure at nozzle exit:")
//Remaining results
disp(V19,"(c{1}Actual fan nozzle exit velocity in m/s:)")
disp(V19eff,"(c{2}Effective fan nozzle exit velocity in m/s:)")
disp(V9,"(c{3})Actual core nozzle exit velocity in m/s:")
disp(V9eff,"(c{4})Effective nozzle exit velocity in m/s:")
disp(rfct,"(d)Ratio of fan-tocore thrust:")
disp(ndst,"(e)Nondimensional specific thrust:")
disp(TSFC,"(f)TSFC in mg/s/N:")
disp("(g)Engine efficiencies:")
disp(eth,"Thermal efficiency:")
disp(ep,"Propulsion effciency:")
disp(eo,"Overall efficiency:")
|
64e8c966aba129d50a14de0be82f69a557cd24b9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2795/CH5/EX5.9/Ex5_09.sce | 1d226b0231e9c8a3a1c72e83942b9ccb88b23c41 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 433 | sce | Ex5_09.sce | // Scilab Code Ex5.9 : Page-188 (2013)
clc; clear;
a_0 = 5.29e-11; // Radius of H-atom, m
l = 2*a_0; // Length, m
h = 6.63e-34; // Planck's constant, Js
m = 9.1e-31; // Mass of electron, kg
K_min = h^2/(8*(%pi)^2*m*l^2); // Minimum kinetic energy possesed, J
printf("\nThe minimum kinetic energy of the electron = %3.1f eV", K_min/1.6e-19);
// Result
// The minimum kinetic energy of the electron = 3.4 eV
|
e0b7b3bcfbdb9bcc61333c5044a193e86d7c039c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2207/CH3/EX3.4.5/ex_3_4_5.sce | 4ea8035c9531168db83759df97786460579896f9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,103 | sce | ex_3_4_5.sce | // Example 3.4.5: delay angle,rms , averae output current ,average and rms thyristor current
clc;
clear;
close;
format('v',5)
Vrms=120;//RMS VOLTAGE
R=10;//in ohms
Vldc= (0.25*(2*sqrt(2)*Vrms))/%pi;//in volts
csd= (Vldc*%pi)/(sqrt(2)*Vrms);//
alpha= acosd(csd-1);//
disp("part (a)")
disp(alpha,"delay angle in degree is")
Vrms=120;//RMS VOLTAGE
Vm=sqrt(2)*Vrms;//assume
t=2*%pi/3:%pi;
Vlms=((Vm/(sqrt(2)))*(((1/%pi)*((%pi-(2*%pi)/3)+sind((4*%pi)/6))))^(1/2));
Vldc= (0.25*(2*sqrt(2)*Vrms))/%pi;//in volts
Ildc=Vldc/R;//average load current in ampere
Ilms=Vlms/R;// rms load current in ampere
disp("part (b)")
disp(Ilms,"rms load current in amperes")
disp(Ildc,"average load current in amperes")
//rms load current is calculated wrong in the textbook
Im=Vm/R;//
Ith=((Im/(2*%pi))*intsplin(t,sin(t)));//in amperes
Ithrms=sqrt((Im^2/(2*%pi))*intsplin(t,(sin(t))^2));//in amperes
disp("part (c)")
disp(Ith,"average thyristor current in amperes is")
disp(Ithrms,"rms thyristor current in amperes is")
//average and rms thyrister current is calculated wrong in the textbook
|
d10c3d5dc704882e619b475f7234240623de643c | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfas_oo_vrt_ind_d/~BivLCM-SR-bfas_oo_vrt_ind_d-PLin-VLin.tst | f281ae49ad4a1b3be8c702fddeb89f69c85b26cc | [] | no_license | psdlab/life-in-time-values-and-personality | 35fbf5bbe4edd54b429a934caf289fbb0edfefee | 7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e | refs/heads/master | 2020-03-24T22:08:27.964205 | 2019-03-04T17:03:26 | 2019-03-04T17:03:26 | 143,070,821 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,974 | tst | ~BivLCM-SR-bfas_oo_vrt_ind_d-PLin-VLin.tst |
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM.
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.274847D+00
2 -0.200696D-02 0.229998D-02
3 -0.661088D-01 0.223397D-02 0.405479D+00
4 0.236224D-02 -0.467071D-03 -0.716005D-02 0.341254D-02
5 -0.498613D-03 0.211452D-03 0.130231D-02 -0.722318D-04 0.340879D-02
6 0.951024D-03 0.845993D-05 -0.540378D-03 0.415218D-04 -0.284753D-03
7 0.168317D-02 0.198195D-03 -0.709930D-03 -0.168050D-03 -0.945350D-03
8 0.385532D-03 0.167409D-05 0.808785D-03 0.152760D-03 0.253420D-03
9 -0.361076D+00 0.117796D-01 0.446741D+00 -0.487997D-02 0.282001D-01
10 -0.239103D+00 0.172267D-01 0.387303D+00 -0.111320D-01 0.165962D+00
11 0.123183D+00 -0.217494D-01 -0.177602D+00 0.295333D-01 -0.555077D-01
12 -0.528263D+00 0.226409D-01 0.841815D-01 -0.694348D-01 0.359303D-01
13 0.112867D+00 0.984636D-02 -0.142872D+00 -0.721327D-02 -0.471091D-01
14 0.423396D-01 0.418719D-02 0.310950D+00 0.219242D-01 0.332238D-01
15 -0.944535D+00 -0.230085D-01 -0.320803D+00 -0.236314D-01 -0.331753D-01
16 0.411394D-01 -0.136306D-01 -0.380450D-01 0.251586D-02 0.343104D-03
17 -0.943303D-02 0.278258D-03 0.420618D-02 0.133698D-05 -0.881628D-03
18 -0.294728D+00 -0.380218D-01 0.466011D+00 -0.273476D-01 0.475689D-01
19 -0.741746D-01 0.120136D-01 0.101114D+00 -0.343914D-02 0.893026D-03
20 -0.584105D-01 -0.127319D-01 -0.687293D+00 -0.595969D-01 0.543191D-01
21 -0.203451D-02 -0.507563D-02 -0.936283D-01 -0.210256D-02 0.236537D-02
22 0.524513D-02 -0.336003D-04 -0.402291D-02 -0.992086D-04 0.401343D-04
23 -0.786613D-02 -0.616178D-03 0.623896D-02 0.646423D-03 0.110381D-02
24 0.221171D-03 -0.973126D-04 0.421058D-02 0.964454D-03 -0.478333D-03
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 0.595663D-03
7 0.798971D-03 0.453637D-02
8 0.547003D-04 0.112896D-03 0.280862D-02
9 -0.136268D-01 -0.278740D-01 0.215777D-01 0.332857D+02
10 -0.163820D-01 -0.323834D-01 0.784683D-02 0.118006D+01 0.193761D+02
11 0.246273D-01 0.272591D-01 -0.138990D-01 -0.679673D+01 -0.879117D+00
12 -0.659712D-01 -0.804237D-01 0.828277D-01 0.379432D+01 0.901623D+00
13 0.475936D-01 0.137349D+00 -0.173683D-01 -0.241536D+01 -0.504073D+01
14 -0.175460D-01 -0.750694D-01 0.247301D+00 0.359621D+01 0.369860D+01
15 -0.104492D-01 -0.599678D-02 -0.235008D-01 -0.596096D-02 -0.763411D+01
16 -0.954838D-03 -0.247119D-02 -0.105904D-04 0.351578D+00 -0.790979D-01
17 0.277849D-03 0.474073D-03 -0.169232D-03 -0.841831D-01 -0.252152D-01
18 -0.425339D-01 -0.189958D+00 0.310612D-02 -0.410963D+00 0.515224D+01
19 -0.120416D-01 -0.154990D-02 0.247676D-02 -0.116825D+01 0.506353D+00
20 0.746119D-02 0.887208D-01 -0.241628D+00 -0.205008D+01 0.703389D+01
21 0.108631D-01 -0.140908D-02 -0.393648D-02 0.118448D+01 -0.195588D+00
22 -0.724867D-04 0.365877D-03 0.284561D-03 0.531211D-02 -0.271458D-01
23 -0.154372D-04 0.387058D-03 -0.169713D-02 -0.257179D+00 0.116239D+00
24 0.148469D-03 -0.981664D-04 -0.112134D-03 0.385593D-01 -0.325545D-01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 0.318117D+02
12 -0.183777D+02 0.198339D+03
13 -0.396022D+00 -0.195678D+01 0.139605D+02
14 0.401034D+00 0.139228D+02 -0.474893D+01 0.852435D+02
15 0.223754D+01 0.313639D+01 0.377030D-02 -0.271518D+01 0.170651D+03
16 0.111903D+00 -0.549040D-01 -0.116437D+00 0.914694D-01 0.195897D+01
17 0.435494D-02 0.980572D-02 0.246953D-01 -0.237361D-01 -0.751553D+00
18 -0.898661D-01 0.127393D+02 -0.854511D+01 0.275335D+01 -0.230992D+02
19 0.163151D+01 -0.183090D+01 -0.136121D+01 -0.455173D+00 0.242128D+01
20 -0.259148D+00 -0.248597D+02 0.426284D+01 -0.568647D+02 0.110031D+02
21 -0.168435D+01 0.211279D+01 0.105847D+01 0.214027D+00 -0.319220D+01
22 -0.388276D-01 0.220478D-01 0.162328D-01 0.486187D-01 0.966169D-01
23 -0.153861D+00 0.102375D+01 0.739245D-01 -0.107861D+00 0.588452D+00
24 0.442883D-01 -0.272196D+00 -0.240932D-01 0.408493D-01 -0.118619D+00
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 0.379364D+00
17 -0.303826D-01 0.912913D-02
18 -0.949118D-01 0.376982D-01 0.176451D+03
19 -0.175904D+00 -0.436839D-02 0.424789D+01 0.513354D+01
20 0.531920D+00 -0.622279D-01 -0.201964D+02 0.201680D+01 0.401007D+03
21 -0.244757D-01 0.238564D-01 0.419437D+00 -0.440495D+01 -0.187488D+01
22 0.104173D-01 -0.127309D-02 -0.864367D+00 -0.347051D-01 -0.931900D-01
23 0.317203D-01 -0.417708D-02 -0.284340D+00 -0.102071D+00 0.273454D+01
24 -0.527516D-02 0.101909D-02 -0.193074D-02 0.598690D-02 -0.161460D+01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 0.493125D+01
22 -0.245553D-01 0.931308D-02
23 -0.172951D+00 0.127698D-01 0.650688D+00
24 0.181568D-01 -0.768061D-03 -0.623748D-01 0.173913D-01
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 1.000
2 -0.080 1.000
3 -0.198 0.073 1.000
4 0.077 -0.167 -0.192 1.000
5 -0.016 0.076 0.035 -0.021 1.000
6 0.074 0.007 -0.035 0.029 -0.200
7 0.048 0.061 -0.017 -0.043 -0.240
8 0.014 0.001 0.024 0.049 0.082
9 -0.119 0.043 0.122 -0.014 0.084
10 -0.104 0.082 0.138 -0.043 0.646
11 0.042 -0.080 -0.049 0.090 -0.169
12 -0.072 0.034 0.009 -0.084 0.044
13 0.058 0.055 -0.060 -0.033 -0.216
14 0.009 0.009 0.053 0.041 0.062
15 -0.138 -0.037 -0.039 -0.031 -0.043
16 0.127 -0.461 -0.097 0.070 0.010
17 -0.188 0.061 0.069 0.000 -0.158
18 -0.042 -0.060 0.055 -0.035 0.061
19 -0.062 0.111 0.070 -0.026 0.007
20 -0.006 -0.013 -0.054 -0.051 0.046
21 -0.002 -0.048 -0.066 -0.016 0.018
22 0.104 -0.007 -0.065 -0.018 0.007
23 -0.019 -0.016 0.012 0.014 0.023
24 0.003 -0.015 0.050 0.125 -0.062
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 1.000
7 0.486 1.000
8 0.042 0.032 1.000
9 -0.097 -0.072 0.071 1.000
10 -0.152 -0.109 0.034 0.046 1.000
11 0.179 0.072 -0.046 -0.209 -0.035
12 -0.192 -0.085 0.111 0.047 0.015
13 0.522 0.546 -0.088 -0.112 -0.306
14 -0.078 -0.121 0.505 0.068 0.091
15 -0.033 -0.007 -0.034 0.000 -0.133
16 -0.064 -0.060 0.000 0.099 -0.029
17 0.119 0.074 -0.033 -0.153 -0.060
18 -0.131 -0.212 0.004 -0.005 0.088
19 -0.218 -0.010 0.021 -0.089 0.051
20 0.015 0.066 -0.228 -0.018 0.080
21 0.200 -0.009 -0.033 0.092 -0.020
22 -0.031 0.056 0.056 0.010 -0.064
23 -0.001 0.007 -0.040 -0.055 0.033
24 0.046 -0.011 -0.016 0.051 -0.056
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 1.000
12 -0.231 1.000
13 -0.019 -0.037 1.000
14 0.008 0.107 -0.138 1.000
15 0.030 0.017 0.000 -0.023 1.000
16 0.032 -0.006 -0.051 0.016 0.243
17 0.008 0.007 0.069 -0.027 -0.602
18 -0.001 0.068 -0.172 0.022 -0.133
19 0.128 -0.057 -0.161 -0.022 0.082
20 -0.002 -0.088 0.057 -0.308 0.042
21 -0.134 0.068 0.128 0.010 -0.110
22 -0.071 0.016 0.045 0.055 0.077
23 -0.034 0.090 0.025 -0.014 0.056
24 0.060 -0.147 -0.049 0.034 -0.069
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 1.000
17 -0.516 1.000
18 -0.012 0.030 1.000
19 -0.126 -0.020 0.141 1.000
20 0.043 -0.033 -0.076 0.044 1.000
21 -0.018 0.112 0.014 -0.875 -0.042
22 0.175 -0.138 -0.674 -0.159 -0.048
23 0.064 -0.054 -0.027 -0.056 0.169
24 -0.065 0.081 -0.001 0.020 -0.611
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 1.000
22 -0.115 1.000
23 -0.097 0.164 1.000
24 0.062 -0.060 -0.586 1.000
|
7e9c3a22b0fa4d075bebff8e8260a3c033dfb4df | 449d555969bfd7befe906877abab098c6e63a0e8 | /1592/CH7/EX7.33/Example_7_33.sce | 067b9055c2ebcf2ca2c9ce108179ea97c3764cb1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 504 | sce | Example_7_33.sce | //Scilab Code for Example 7.33 of Signals and systems by
//P.Ramakrishna Rao
//Plotting the magnitude and phase responses
clc;
clear;
T=1;
n=1;
for w=0:0.1:20;
hmag(n)=2*sin(w*T/2);
n=n+1;
end
n=1;
for w=0:0.1:20;
hphase(n)=%pi/2-(w*T/2);
n=n+1;
end
//Magnitude plot
w=0:0.1:20;
plot(w,hmag);
title('Magnitude Plot');
xlabel('w');
ylabel('|H(e^jw)|');
figure(1);
//Phase Plot
w=0:0.1:20;
plot(w,hphase);
title('Phase Plot');
xlabel('w');
ylabel('theta(wT)');
|
bca1cc9dfbd435f52647f66fd4e7a7b8ad98b131 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH2/EX2.5/Ch02Ex5.sce | a96772f1743bc19c235636d4ae0b0afc89a94fe0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 492 | sce | Ch02Ex5.sce | // Scilab Code Ex2.5: Page:80 (2011)
clc;clear;
a = 0.003;....// Accuracy of the electron,in percent
s = 5e+03;....// Speed of the electron,in m/s
del_v = (a/100)*s;....// Change in velocity,in m/s
m0 = 9.1e-31;....// Rest mass of the electron,in kg
hcut = 1.054e-34;....// Plancks constant,J-s
del_x = hcut/(2*del_v*m0);
printf("\nThe uncertainity in the position of the electron = %4.2e m", del_x);
// Result
// The uncertainity in the position of the electron = 3.86e-004 m
|
7e637337e39b275f877136f0aa83a29bb80b85dc | f1f44d6e463da661b004dc36db5d7d44f4e3f2a6 | /Scripts/PosProcessamento/processamento.sce | 857ac87ca47e7939a0a57dd354cb9e0692285126 | [
"MIT"
] | permissive | planetsLightningArrester/tcc | 3d623a001991bf7d971d0667c0ef4344dbfae480 | 999e87aa8ef4b9a2d9b0b370a963b49405832446 | refs/heads/master | 2022-12-15T07:57:46.360451 | 2020-01-29T23:00:49 | 2020-01-29T23:00:49 | 194,511,070 | 0 | 0 | MIT | 2022-12-11T07:27:47 | 2019-06-30T12:01:50 | C | UTF-8 | Scilab | false | false | 940 | sce | processamento.sce | sample_rate = 6500;
fileName = "C:\\codeCave\\03-TCC\\Scripts\\Interface\\Python\\output\\20191018_00_35_55.txt"
signal = csvRead(fileName, '\t', '.', 'double');
FIR_coefficients = ffilt("bp", 20, 3, 1000);
filteredSignal = convol(FIR_coefficients, signal(:,4));
//t = 0:(1/sample_rate):((length(signal(:,4))-1)/sample_rate);
//figure(0)
//plot(t, signal(:,4));
t = 0:(1/sample_rate):((length(filteredSignal)-1)/sample_rate);
figure(10)
plot(t, filteredSignal);
//fftSig = filteredSignal(40*sample_rate:42*sample_rate);
//N=length(fftSig)-1; //number of samples
fftSig = signal(40*sample_rate:42*sample_rate, 4);
N=length(fftSig)-1; //number of samples
y=fft(fftSig);
//s is real so the fft response is conjugate symmetric and we retain only the first N/2 points
f=sample_rate*(0:(N/2))/N; //associated frequency vector
n=size(f,'*')
//figure(2)
//plot(f,abs(y(1:n))/(length(f)))
figure(3)
analyze(fftSig, 2, 100, sample_rate, N)
|
00687eb0b074b87b08a96e7ddf1291754ad84cd3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH29/EX29.11/Ex29_11.sce | fe17a94013a4aa314588ab9304c6175b6821029c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 191 | sce | Ex29_11.sce |
clc;
R1=27*10**3;
R2=56*10**3;
C1=0.01*10**-6;
t2=0.7*R2*C1;
t1=0.7*(R1+R2)*C1;
T=t1+t2;
f=1/T;
disp('kHZ',f*10**-3,"f=");
t=(0:0.1:6*%pi)';
plot2d1('onn',t,[squarewave(t,60)]);
|
9c6c43bf43be07cd88c579153cc473ee6cf673c0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH7/EX7.4/Ch07Ex4.sce | c8e138f27a7b4e51065aa6941adf3e19b38ebbc3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 544 | sce | Ch07Ex4.sce | // Scilab code Ex7.4: Pg:288 (2008)
clc;clear;
f0 = 8e+06; // Cyclotron frequency, c/s
c = 3e+010; // Speed of light, cm/s
m = 1.67e-024; // Mass of proton, gm
q = 4.8e-010/c; // Charge on a proton, esu
// Since the cyclotron frequency is given by fo = q*B/2*%pi*m. On solving it for B, we have
B = 2*%pi*m*f0/q; // Magnetic field, Weber per meter square
printf("\nThe magnetic field to accelerate protons = %5.3f Wb per Sq. m", B/1e+04);
// Result
// The magnetic field to accelerate protons = 0.525 Wb per Sq. m |
1879ec61a5c4fe2fa8e799459b0a6a7fc16552c5 | ad617742f184bf6d4cceb3e9c99232d8bd52b862 | /tests/runtest4.tst | f038ac7dbfa8561becfbf9a80fbc629626d967cb | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"BSD-2-Clause"
] | permissive | 9track/hyperion | d621343e7eea27c45db49c7c284dd1680491c82c | 9ceed2cc7261820eef01c55dac9b9a6ae47636b2 | refs/heads/master | 2022-09-15T12:19:09.059528 | 2020-05-28T03:05:29 | 2020-05-28T03:05:29 | 268,044,749 | 3 | 1 | NOASSERTION | 2020-05-30T09:03:56 | 2020-05-30T09:03:55 | null | UTF-8 | Scilab | false | false | 821 | tst | runtest4.tst |
msglvl +verbose +emsgloc
msglvl +time +usecs
* ----------------------------------------------------------------------------
*Testcase runtest4: all cpus 1-4 seconds
* ----------------------------------------------------------------------------
*
numcpu 4 # Total CPUs needed for this test...
*
* ----------------------------------------------------------------------------
*
defsym secs0 1 # Loop duration in seconds for each CPU...
defsym secs1 2
defsym secs2 3
defsym secs3 4
*
defsym maxdur 10.5 # Pessimistic test duration
*
* ----------------------------------------------------------------------------
*
script "$(testpath)/runtest.subtst"
*
* ----------------------------------------------------------------------------
numcpu 1 # Clean up own mess
|
ab1b40c0e4be450050c436f4036dc558168324ad | a5de878687ee2e72db865481785dafbeda373e2a | /trunck/OpenPR-0.0.2/demos/aggloms.dem.sce | 1de2f02724e629ba5f7a0505181325ed7e207c7f | [
"BSD-3-Clause"
] | permissive | Augertron/OpenPR | 8f43102fd5811d26301ef75e0a1f2b6ba9cbdb73 | e2b1ce89f020c1b25df8ac5d93f6a0014ed4f714 | refs/heads/master | 2020-05-15T09:31:08.385577 | 2011-03-21T02:51:40 | 2011-03-21T02:51:40 | 182,178,910 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 821 | sce | aggloms.dem.sce | mode(-1);
lines(0);
my_handle = scf(0);
clf(my_handle,"reset");
demo_viewCode("aggloms.dem.sce");
// DEMO START
Data = read(SCI+'/contrib/OpenPR-0.0.2/etc/data/aggloms_data',2,1810);
Label = read(SCI+'/contrib/OpenPR-0.0.2/etc/data/aggloms_label',1,1810);
sigma = 0.4; // kernel bandwidth
ite_num = 60; // iteration times
[cluster_centers, cluster_id]=aggloms(Data', sigma, ite_num);
//-------------------- draw clusters --------------------------------
cluster_count = size(cluster_centers,1);
for (i=1:cluster_count)
my_color = rand(1,3);
plot(Data(1,find(cluster_id==i)), Data(2,find(cluster_id==i)),'o','marker','sq','markersize',6,'markforegroun',my_color,'markbackgro',my_color);
end
plot(cluster_centers(:,1), cluster_centers(:,2), 'gs','marker','o','markersize',10,'markbackgro','g');
// DEMO END
|
245d109103761f6ec3d486216c102e16af328b7b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3535/CH4/EX4.2/Ex4_2.sce | bbeb8604080e893c927cfb7e335d63d519b4ae8f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 298 | sce | Ex4_2.sce | //Chapter 4, Example 4.2, Page 89
clc
clear
//Binding energy
O15 = 15.0030654 // atomic mass of O15 isotope
mn = 1.00866492
O16 = 15.9949146 // atomic mass of O16 isotope
c2 = 931.5 // C^2 in MeV
S = (O15+mn-O16)*c2
printf("\n Binding energy = %f MeV",S);
//Answer may vary due to round off error
|
fbae19ab1529618fb9e6e10ce9244909d6a4e5bd | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronic_Devices_And_Circuits_D._C._Kulshreshtha_2885.zip/Electronic_Devices_And_Circuits_D._C._Kulshreshtha_2885/CH4/EX4.6/ex4_6.sce | 60a295c4f5350c4c6e38ed9b99f1650e93f7b523 | [] | 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 | 283 | sce | ex4_6.sce | errcatch(-1,"stop");mode(2);//calculate ac alpha and beta
;
;
//soltion
//given
ic=0.995//mA//Emitter current change
ie=1//mA//collector current change
a=ic/ie;
B=a/(1-a);
printf("The ac alpha is %.3f\n",a)
printf("The common emitter ac current gain is %.0f",B);
exit();
|
e514d2ad618321bc4f3f58ebf777485c6a9a7fe4 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /sci2blif/rasp_design_added_blocks/macrocab_ota1.sce | b756368120cfbd039d5f403fe52853a8068c47c8 | [] | no_license | jhasler/rasp30 | 9a7c2431d56c879a18b50c2d43e487d413ceccb0 | 3612de44eaa10babd7298d2e0a7cddf4a4b761f6 | refs/heads/master | 2023-05-25T08:21:31.003675 | 2023-05-11T16:19:59 | 2023-05-11T16:19:59 | 62,917,238 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 271 | sce | macrocab_ota1.sce | style.fontSize=12;
//style.fillColor="green";
style.displayedLabel="<table> <tr> <td><b>In(+)<br>In(-)</b></td> <td align=center>OTA1<br><b color=green>%1$s</b></td> <td align=left><b>Out</b></td> </tr> </table>";
pal11 = xcosPalAddBlock(pal11,"macrocab_ota1",[],style);
|
cdc264687a29ab1a7cd916aeb68be0f78e2d1044 | 17d775a544e47ac1d2faf88f26b86d08afdcdf7c | /Rubik's Cube/rubixSolver/layouts/solved_layout_cube.tst | c7f7b5aa65ec1eb296a7b9c8273c9ab368921e30 | [] | no_license | PlenipotentSS/Python-Testing | fbe20bf9574b445da11b1abe844a402c7e51e2a0 | 3dcb029e08b751d38b799881bdff1135e236cb43 | refs/heads/master | 2021-01-23T03:53:24.574975 | 2014-03-16T20:30:15 | 2014-03-16T20:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 262 | tst | solved_layout_cube.tst | ###TStar Version 05 Tree Description File
###USER=Unknown
###TIME=Sat Nov 28 21:46:28 2009
n=0;h=0;d=2;
v:op=12;n=1;h=0;d=2;
^
v:op=12;n=2;h=0;d=2;
v:op=0;n=3;h=0;d=2;
^
^
v:op=12;n=4;h=0;d=2;
v:op=0;n=5;h=0;d=2;
v:op=2;n=6;h=0;d=2;
v:op=2;n=7;h=0;d=2;
^
^
^
^
^ |
14abfd071d63e350345b4ab40c561c8257685c39 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH1/EX1.8/ex1_8.sce | c7e7556d76e03e40c9f9ebd3334d1cf4be0129d0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 728 | sce | ex1_8.sce | // Exa 1.8
clc;
clear;
close;
format('v',7)
// Given data
R1= 2;// in ohm
R2= 4;// in ohm
R3= 1;// in ohm
R4= 6;// in ohm
R5= 4;// in ohm
V1= 10;// in V
V2= 20;// in V
//Applying KVL in ABGHA : I1*(R1+R2) - R2*I2 = V1 (i)
//Applying KVL in BCFGB : I1*R5-I2*(R3+R4+R5)+I3*R4 = 0 (ii)
//Applying KVL in CDEFC: R4*I2-I3*(R2+R4)=V2 (iii)
A= [(R1+R2) R5 0; -R2 -(R3+R4+R5) R4; 0 R4 -(R2+R4)];
B= [V1 0 V2];
I= B*A^-1;// Solving eq(i), (ii) and (iii) by Matrix method
I1= I(1);// in A
I2= I(2);// in A
I3= I(3);// in A
I6_ohm_resistor= I2-I3;//The current through 6 ohm resistance in A
disp(I6_ohm_resistor,"The current through 6 ohm resistance in A is : ")
|
ef967abfb46f2c89803435e3329f537c7bbc200a | e92ffce12946910722c41f18550efb004a55e55c | /apps/domaci1/test1.tst | 1f9f458ee6987d37335c677c3a0df0f5b487915e | [] | no_license | brapej/d1_branislav_pejic_rm4816 | 0fa17fb5d56cd12275bcb81029fa534eb5e19215 | 9d6c7e1c34c5ae240f5ca7b0eb4247ef83b744f5 | refs/heads/master | 2022-10-27T10:27:49.669347 | 2020-06-18T09:43:54 | 2020-06-18T09:43:54 | 180,431,976 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 126 | tst | test1.tst | 30
300
15
33
33
21
202
3
2
302
200
14
300
21
16
33
27
202
1
10
302
201
1
301
202
1
10
302
201
200
2
300
301
202
1
10
302
400
|
96c92d3335f2c7b335665dd4bd1ed5d6a3b290b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH19/EX19.3/19_3.sce | d098301c4987a60a4151777416a2bb403c36ac5b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 602 | sce | 19_3.sce | //chapter 19
//example 19.3
//page 597
clear all;
clc ;
//given
Vcc=6;//supply voltage V
Ib=200;//base current when Xtor is ON microA
Rdark=100;//cell dark resistance kohm
//when Xtor is ON
Vcell=Vcc+0.7;//for Si Xtor
Icell=1000*Vcell/Rdark;//microA
//current through R1
IR1=Icell+Ib;
VR1=Vcc-0.7;
R1=1000*VR1/IR1;
//When Xtor is Off,base <=0V(Ib=0)
VR1=Vcc;
IR1=1000*VR1/R1;//microA
//since Ib=0
Icell=IR1;
Vcell=Vcc;
Rcell=1000*Vcell/Icell;
printf("\nR1=%d kohm\nCell resistance(Rcell)=%d kohm",ceil(R1),ceil(Rcell));
printf("\nQ1 is OFF when Rcell<=20 kohm")
|
2748c0375827bd78d0d6992a50d6987076174b74 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH5/EX5.15/Chapter5_Example15.sce | 3804a82dcac892c7e1df32873f62fc0a7a505e53 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 921 | sce | Chapter5_Example15.sce | //Chapter-5, Illustration 15, Page 265
//Title: Air Compressors
//=============================================================================
clc
clear
//INPUT DATA
P1=1;//Pressure at point 1 in bar
T1=290;//Temperature at point 1 in K
P3=60;//Pressure at point 3 in bar
P2=8;//Pressure at point 2 in bar
T2=310;//Temperature at point 2 in K
L=0.2;//Stroke in m
D=0.15;//Bore in m
n=1.35;//Adiabatic gas constant
N=200;//Speed in rpm
//CALCULATIONS
x=(n-1)/n;//Ratio
V1=(3.147*(D^2)*L)/4;//Volume at point 1 in m^3
V2=(P1*V1*T2)/(T1*P2);//Volume of air entering LP cylinder in m^3
W=((P1*(10^5)*V1*(((P2/P1)^x)-1))/x)+((P2*(10^5)*V2*(((P3/P2)^x)-1))/x);//Workdone by compressor per cycle in J
P=(W*N)/(60*1000);//Power of compressor in kW
//OUTPUT
mprintf('Power of compressor is %3.2f kW',P)
//==============================END OF PROGRAM=================================
|
5be9aa8717acf1891b6b8a847203e5289f4e8a32 | bbdc72de6d7eef74128eaf52b1f040053943de38 | /Code/Jacobi.sce | 689cdf568d854bb57c022b44462e58fed2100f7a | [] | no_license | Abdel-BHPC/Numerical-analysis | 46bb4dbcd26e00d6c4f405fe59a1ba433b8b72e0 | 2bcdb80d9ab8890d036eac3cce92b595abb88784 | refs/heads/main | 2023-03-02T14:11:06.939206 | 2021-02-08T08:40:07 | 2021-02-08T08:40:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,526 | sce | Jacobi.sce | /*
Etideur:
Jinshan GUO
Objecitf:
Fonction à réaliser l'algorithme de la méthode de Jacobi pour résoudre le système linéaire Ax = b
Principe:
A = M - N = D - E - F avec M = D , N = E + F
M*x^(k+1) = N*x^(k) + b => x^(k+1) = M^(-1)*N*x^(k) + M^(-1)*b
Containtes:
A est une matrice inversible
D est une matrice de la partie diagonale de A
E est une matrice de la partie triangulaire inférieure de A, avec E = -A
F est une matrice de la partie triangulaire supérieure de A, avec F = -A
Valeur retour:
x est la résolution du système
k est nombre d'intération à converger
*/
function [x,k]=Jacobi(A, b, x0, Kmax, tol)
/*
x0: valeur initiale
Kmax: nombre maximum de l'itération
tol: tolérance de l'erreur
*/
n = size(A,1); //Nombre de ligne de la matrice A
if length(x0) <> n then
error("Taille du vecteur initial incorrecte");
end
x = zeros(n,1);
for k=1:Kmax
for i=1:n
if abs(A(i,i)) < tol then
error("Matrice A non invesible")
end
s = 0
for j = 1:n
if j <> i then
s = s + A(i,j) * x0(j);
end
end
x(i) = (1 / A(i,i)) * (b(i) - s); // Calculer x^(k+1)
end
if norm(x-x0)/norm(x) < tol then // Tester la convergence
return;
else
x0 = x;
end
end
if k == Kmax then
error("La méthode Jacobi non convergente");
end
endfunction
function [x,k]=Jacobi_Mat(A, b, x0, Kmax, tol)
//Vérification: aucun terme de la diagonal de A n'est nul
if ~and(diag(A)) then
error("erreur: présence d''un zéro sur la diagonale de A");
end
// Décomposition de A = D - E- F
D = diag(diag(A));
E = - (triu(A) - D);
F = - (tril(A) - D);
// Initialisation
x = x0;
// Boucle itérative de résolution
for k = 1:Kmax
x = inv(D) * ((E + F) * x + b);
if norm(abs(A*x - b)) < tol then
return;
end
end
if k == Kmax then
error("La méthode Jacobi non convergente");
end
endfunction
A = [6 2 3; -1 7 5; 3 -2 6]; //Matrice diagonale strictement dominante
b = [9;8;7];
x0 = [1;1;2];
Kmax = 100;
tol = %eps;
[x1,k1]=Jacobi(A, b, x0, Kmax, tol)
disp(x1);
disp(k1);
[x2,k2]=Jacobi_Mat(A, b, x0, Kmax, tol)
disp(x2);
disp(k2);
|
d72359d3202dabab31c4f0e91f95cf34d71f645c | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH4/EX4.10/ex4_10.sce | e09115d5755a6e8defaa976358be50ddac961a4f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 155 | sce | ex4_10.sce | clc
w7=1200 //Assigning values to parameters
wf=w7/(0.75*0.75)
w5=0.5*0.5*wf
disp("Watts",w5,"The copper loss at 50% full-load condition is"); |
fae8297142c30dac232ae3365ce02c70cad267e6 | d88ad726e2ceb60f4e7098725a50c4d67c71f67f | /S1/CurvRec/TP2/cga-tp02/qdelaunay.sce | ab6ab5720d9edbc5d9c3ff7ce3b9952d3d756180 | [] | no_license | Sabouh/M2GICAO | 65bde1da541a84c6ed1ccc198057178e1dc1575a | 8a492490aa2b4ef04e1ad2a92649c7211be01fea | refs/heads/master | 2021-01-24T17:39:10.215981 | 2016-03-12T20:13:09 | 2016-03-12T20:13:09 | 43,699,888 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7,468 | sce | qdelaunay.sce | MSDOS = 0;
/////////////////////////////////////////////////////////////////////////////
// interface avec le programmes qdelaunay
// a) récupérer les programmes sources sur le site http://www.qhull.org
// b) compiler les programmes
// -> exécutables qhull qvoronoi rbox qconvex qdelaunay qhalf
// Seul le programme exécutable qdelaunay est utilisé dans ce script
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// récupérer la date actuelle sous forme d'un chaine de caractere
// au format AAMMJJhhmmss
function s = datestring()
dt = getdate();
s = msprintf("%04d%02d%02d%02d%02d%02d", dt([1 2 6 7 8 9]));
endfunction
/////////////////////////////////////////////////////////////////////////////
// calcul du centre de la sphere circonscrite à une d-cellule de R^d
// Entree : S = d+1 points de dimension d, sommets de la d-cellule
// tableau de d+1 lignes et d colonnes (1 point par ligne)
// Sortie : C = point de R^d (ligne de d colonnes)
function C = centre_sphere_circonscrite(S)
d = size(S,2);
M = zeros(d,d);
b = zeros(d,1);
for i=1:d
for j=1:d
M(i,j) = S(d+1,j)-S(i,j);
b(i) = b(i)+0.5*(S(d+1,j)^2-S(i,j)^2);
end
end
C = (M\b)';
endfunction
function test_centre_sphere_circonscrite()
// test 1
d = 10;
S = rand(d+1,d);
C = centre_sphere_circonscrite(S);
mprintf("C = ");
mprintf("%15.7e ",C');
mprintf("\n");
for i=1:d+1
mprintf(" ||C-S(%2d)|| = %15.7e\n", i, norm(C-S(i,:)));
end
endfunction
/////////////////////////////////////////////////////////////////////////////
// calcul de la triangulation de Delaunay en dimension d
// Entrée : S = tableau des nS sommets
// matrice de nS lignes et d colonnes
// une ligne = les d coordonnees d'un sommet
// Sortie : T = tableau des nT cellules de la triangulation
// matrice de nT lignes et d+1 colonnes
// une ligne = les indices des d+1 sommets de la cellule
// l'indiçage fait référence au tableau S et commence à 1
// C = centre des sphères circonscrites aux cellules
// matrice de nT lignes et d colonnes
// une ligne = les d coordonnees d'un centre
// r = rayon des sphères circonscrites aux cellules
// vecteur de nT réels
function [T,C,r] = delaunay(S)
nargout = argn(1);
nargin = argn(2);
if nargin~=1
error('syntaxe : T = delaunay(S)');
end
// dimensions du tableau de sommets
nS = size(S,1);
d = size(S,2);
// nom des fichiers temporaires pour l'interface avec qhull
date_s = datestring();
nom_fichier_sommets = msprintf("qhullS-%s.tmp.o", date_s);
nom_fichier_triangles = msprintf("qhullT-%s.tmp.o", date_s);
// écriture du tableau de sommets dans le fichier nom_fichier_sommets
f = mopen(nom_fichier_sommets,"w");
mfprintf(f, "%d\n%d\n", d, nS);
for i=1:nS
for j=1:d
mfprintf(f, " %15.7e", S(i,j));
end
mfprintf(f, "\n");
end
mclose(f);
// appel du programme qdelaunay
if MSDOS
commande = msprintf("qdelaunay.exe Qt s i < %s > %s", ...
nom_fichier_sommets, nom_fichier_triangles);
else
commande = msprintf("./qdelaunay Qt s i < %s > %s", ...
nom_fichier_sommets, nom_fichier_triangles);
end
host(commande);
// lecture des triangles
f = mopen(nom_fichier_triangles,"r");
nT = mfscanf(f, "%d");
T = zeros(nT,d+1);
for i=1:nT
for j=1:d+1
T(i,j) = mfscanf(f, "%d");
end
end
T = T+1; // indicage a partir de 1
mclose(f);
// destruction des fichiers temporaires
mdelete(nom_fichier_sommets);
mdelete(nom_fichier_triangles);
if nargout>1
// calcul des centres des spheres circonscrites
C = zeros(nT,d);
for i=1:nT
C(i,:) = centre_sphere_circonscrite(S(T(i,:),:));
end
if nargout>2
// calcul des rayons
r = zeros(nT,1);
for i=1:nT
r(i) = norm(S(T(i,1),:)-C(i,:));
end
end
end
endfunction
/////////////////////////////////////////////////////////////////////////////
// dessin d'une triangulation en 2D
function dessin_delaunay(S,T)
nargin = argn(2);
if nargin~=2
error('syntaxe : dessin_delaunay(S,T)');
end
if size(S,2)~=2
error('le tableau de sommets doit avoir 2 colonnes');
end
if size(T,2)~=3
error('le tableau de triangles doit avoir 3 colonnes');
end
nS = size(S,1);
nT = size(T,1);
plot(S(:,1),S(:,2),'ko');
for i=1:nS
xstring(S(i,1),S(i,2),msprintf("%d",i));
end
T2 = [T T(:,1)]';
Sx = zeros(4,nT);
Sy = zeros(4,nT);
for i=1:4
Sx(i,:) = S(T2(i,:),1)';
Sy(i,:) = S(T2(i,:),2)';
end
plot(Sx,Sy,'r-');
// nT = size(T,1);
// for i=1:nT
// s1 = T(i,1);
// s2 = T(i,2);
// s3 = T(i,3);
// plot(S([s1 s2 s3 s1],1),S([s1 s2 s3 s1],2),'r-');
// end
a=gca();
xmin = min(S(:,1)); xmax = max(S(:,1));
ymin = min(S(:,2)); ymax = max(S(:,2));
a.data_bounds=[...
xmin-0.2*(xmax-xmin),ymin-0.2*(ymax-ymin);...
xmax+0.2*(xmax-xmin),ymax+0.2*(ymax-ymin)];
a.isoview="on";
endfunction
//////////////////////////////////////////////////////////////////////////////
// test de la routine delaunay
//////////////////////////////////////////////////////////////////////////////
function test_delaunay(num_test)
if argn(2)<1
num_test=0;
end
select num_test
case 1
//// test 1
// les données
S = [
0 0;
2 0;
4 0;
0 2;
1 2;
3 2;
2 3];
[T,C,r] = delaunay(S);
// tracé de la triangulation de Delaunay
scf();
dessin_delaunay(S,T);
// tracé des centres des cercles circonscrits
plot(C(:,1),C(:,2),'g+');
// tracé des cercles circonscrits
t = linspace(0,2*%pi,1000);
for i=1:size(C,1)
plot(C(i,1)+r(i)*cos(t),C(i,2)+r(i)*sin(t),'g-');
end
case 2 then
//// test 2 - points aléatoires
S = rand(100,2);
T = delaunay(S);
scf();
dessin_delaunay(S,T);
case 3 then
//// test 3 - points suivant une grille régulière
S = zeros(100,2);
for i=0:9
for j=1:10
S(i*10+j,:)=[2*j+i 2*i];
end
end
T = delaunay(S);
scf();
dessin_delaunay(S,T);
case 4 then
//// test 4 - points entrés à la souris
S = inputpoints()';
[T,C] = delaunay(S);
// tracé de la triangulation de Delaunay
dessin_delaunay(S,T);
// tracé des centres des cercles circonscrits
plot(C(:,1),C(:,2),'g+');
end // select
endfunction
//////////////////////////////////////////////////////////////////////////////
// entrée d'un ensemble de points à la souris
// en sortie, le tableau X avec p points du plan (dimensions 2 x p)
function X = inputpoints()
f=scf(); // une nouvelle fenetre
set(gca(),"auto_clear","off")
set(gca(),"data_bounds",[0,0;100,100]) // bornes des axes en x et y
set(gca(),"margins",[0.05,0.05,0.05,0.05]) // marges du repere dans la fenetre
set(gca(),"box","on")
set(gca(),"isoview","on")
set(gca(),"auto_scale","off")
// boucle de saisie des points
but = 3;
i = 0;
while but==3 | but==0 | but==10 | but==20
xinfo("Point suivant : bouton gauche - Dernier point : bouton droite");
i = i+1;
[but,v0,v1] = xclick();
X(1,i) = v0;
X(2,i) = v1;
plot(X(1,i),X(2,i),"ro")
end;
endfunction
|
5363a7d1dd05faecc8a7fd2629694f2c3721fea9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1379/CH1/EX1.1.7/example1_7.sce | 6410ca1cba963087862b41c4c90af028016e1ebd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 799 | sce | example1_7.sce |
//exapple 1.7
clc; funcprot(0);
// Initialization of Variable
rho=990;
mu=5.88/10000;
g=9.81;
pi=3.14;
temp=46+273
e=1.8/10000//absolute roughness
Q=4800/1000/3600;
l=155;
h=10.5;
d=0.038;
delh=1.54//head loss at heat exchanger
effi=0.6//efficiency
//calculations
//part 1
u=Q*4/pi/d^2;
Re=rho*d*u/mu;
rr=e/d;//relative roughness
//from moody's diagram
phi=0.0038//friction factor
alpha=1//constant
leff=l+h+200*d+90*d;
Phe=g*delh//pressure head lost at heat exchanger
W=u^2/2/alpha+Phe+g*h+4*phi*leff*u^2/d;//work done by pump
G=Q*rho;//mass flow rate
P=W*G;//power required by pump
Pd=P/effi//power required to drive pump
disp(Pd/1000,"power required to drive pump in (kW)");
//part 2
P2=(-u^2/2/alpha+W)*rho;
disp(P2/1000,"The gauge pressure in (kPa):")
|
1e753c4238039bec62f5739716525bdfe9e55a40 | a72a0b668d399097c37190a9306c802a64d086d0 | /Source/AdapterApp/Data/Scilab Scripts/sswFinish.sce | cce9ae2b993f5b777a2a1232d9a440e2027fcb8d | [] | no_license | CNH-Hyper-Extractive/simple-script-wrapper | e3038039d0ae592293e99b6dd7fff819d9784956 | 0165df0b1d4cf21fd7de1d5bbff42c60fbe9aab4 | refs/heads/master | 2020-05-18T15:41:57.217472 | 2014-07-01T05:15:16 | 2014-07-01T05:15:16 | 16,794,069 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 318 | sce | sswFinish.sce | function[] = sswFinish()
folderPath = sswGetScriptFolder();
f = mopen(sprintf('%s..\\ScilabOutput.txt', folderPath), 'a');
mfprintf(f, 'sswFinish: ');
values = sswGetOutput('outitem');
for i=1:size(values,2)
mfprintf(f, '%0.2f ', values(i));
end
mfprintf(f, '\n');
mclose(f);
endfunction
|
d89e146269a91996be7eed41e91227edf3f27371 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1895/CH11/EX11.2/EXAMPLE11_2.SCE | 5947283ab5467c0ede4aa6f43409a3ecba7e995c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 359 | sce | EXAMPLE11_2.SCE | //ANALOG AND DIGITAL COMMUNICATION
//BY Dr.SANJAY SHARMA
//CHAPTER 11
//Information Theory
clear all;
clc;
printf("EXAMPLE 11.2(PAGENO 488)");
//given
Px_i = 1/4//probability of a symbol
//calculation
Ix_i = (log(1/Px_i))/log(2)//formula for amount of information of a symbol
//result
printf("\n\ni. Amount of information = %.2f bits",Ix_i)
|
791b1457d3f72095302bd14c1ca17d413bc3b869 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/Programming/testmode.sce | 838a16c01515be3bf99471f20b6b9036c527061b | [] | 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 | 225 | sce | testmode.sce | mode(1) //execution mode with echo
A=[1 2;3 4];y=[3;5];
x1=linsolve(A,-y); //not displayed, even "with echo"
x2=A^(-1)*y //displayed if "with echo"
disp(x1,'x=') //displayed even "with no echo"
|
b2f2b84933b461e11cdc0085f009722e6c442647 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH3/EX3.26/Ex3_26.sce | 41f15fdde7cbf438e0bc2d4338d5c74ccc025a7d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 687 | sce | Ex3_26.sce | //Variable declaration
beeta=125 //current gain
gm=35 //transconductance(mS)
Re=4 //emitter resistance(k ohms)
Rb=1.5 //base resistance(k ohms)
//Calculations
//Part a
rpi=beeta/gm //dynamic resistance(k ohms)
Ri=rpi+((1+beeta)*Re) //input resistance(k ohms)
Ro=((Rb+rpi)*Re)/((Rb+rpi)+((1+beeta)*Re)) //output resistance(ohms) as Ro=Vo/Isc
//Part b
f=((1+beeta)*Re)/(Rb+rpi+((1+beeta)*Re)) //transfer function
//Results
printf ("value of Ri is %.1f K ohms and Ro is %.4f k",Ri,Ro)
printf ("transfer function is %.2f",f)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.