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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0039afb16de5d637108cf184adeaeee2fbd517ef | 449d555969bfd7befe906877abab098c6e63a0e8 | /752/CH18/EX18.2.1/18_2_1.sce | ef64b0e9e95eea345fe1e7393327aaa01c6e9386 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 18_2_1.sce | clc;
// page no 671
// prob no 18_2_1
//A drum of facsimile machine with diameter=70.4mm & scanning pitch=0.2mm/scan
D=70.4;P=0.2;
//Determination of index of co-operation
IOC_CCITT=D/P;
IOC_IEEE=IOC_CCITT*(%pi);
disp(IOC_IEEE,'The index of co-operation is'); |
e2794d6cb48c3c44427819d102648becba3cde9e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH13/EX13.4/Ch13Ex4.sce | 40851b708ab391fab525b705e8699e2eb8a608c6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 537 | sce | Ch13Ex4.sce | // Scilab Code Ex13.4:Page-649 (2011)
clc;clear;
eps = 1.46e-10;....// Electric permittivity, C-square/n-meter-square
eps_0 = 8.85e-12;....// Permittivity in free space, C-squre/N-meter-square
K = (eps/eps_0);
printf("\nThe dielectric constant = %4.1f ", K);
chi_e = eps_0*(K-1);....// Susceptability,in C-square/N-meter-square
printf("\nThe electric susceptability = %4.2e C-square/N-meter square ", chi_e);
// Result
// The dielectric constant = 16.5
// The electric susceptability = 1.37e-010 C-square/N-meter square
|
e5d04d1311b1bfc83eb043840674ab4d81d180b1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3835/CH3/EX3.10/Ex3_10.sce | 7af48aec2ce34421ae7e71e79b79cea8ca7cbebe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 561 | sce | Ex3_10.sce | clear
//
//given
n=2000 //number of turns
flux=0.05*10**-3 //Wb
i=10 //A
lx=(n*flux)/i //self inductance in X
printf("\n lx= %0.5f H",lx)
//since coils are identical self inductance in Y=self inductance in x
fluxlinkingX=0.75*0.05*10**-3 //Wb flux linking due to current in coil X
fluxlinkingY=2000*0.05*0.75*10**-3 //Wb flux linkages in coil Y
m=fluxlinkingY/5 //mutual inductance
printf("\n m= %0.5f H",m)
//The rate of change in current di/dt=2000A/sec --> di/dt=(10-(-10))/0.01
rate=2000
ey=m*rate
printf("\n The induced emf in coil Y= %0.0f V",ey)
|
5c4a5871dec195d76b78f173c77ce1c374e7a56d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2792/CH11/EX11.9/Ex11_9.sce | 7b25baeb0e754547b93d88ba16f510b803f1b75a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,906 | sce | Ex11_9.sce | clc
h=1.05*10^-34
disp("h = "+string(h)+"Js") //initializing value of reduced plancks constant or dirac constant or h-bar
mo = 9.1*10^-31
disp("mo = "+string(mo)+"kg") //initializing value of mass of electron
me = 0.067*9.1*10^-31
disp("me* = "+string(me)+"kg") //initializing value of electron mass of InAs
kbT = 0.026
disp("kbT = "+string(kbT)+"eV") //initializing value of kbT at 300K
mh = 0.45*9.1*10^-31
disp("mh*= "+string(mh)+"kg")//initializing value of hole density of state mass
To = .6*10^-9
disp("To = "+string(To)+"s") //initializing value of minimum recombination time
tnr = 10^-7
disp("tnr = "+string(tnr)+"s") //initializing value of nonradiative recombination time
p = 10^21
disp("p = "+string(p)+"m^-3") //initializing value of excess electron or hole density injected
mr = 1/((1/me)+(1/mh))
disp("The reduced mass for the e-h system is mr* = 1/((1/me)+(1/mh)) = "+string(mr)+"kg")//calculation
disp(" For low p-doping such as 10^16, the recombination time is given as below")
T1 = (p/(2*To))*((2*(%pi)*h^2)/(kbT*1.6*10^-19*(me+mh)))^(3/2)
disp("T = (p/(2*To))*((2*(%pi)*h^2)/(kbT*1.6*10^-19*(me+mh)))^(3/2) = "+string(T1)+"s^-1")//calculation
Tr1 = 1/T1
disp("The e-h recombination time is Tr1 = 1/T1 = "+string(Tr1)+"s")//calculation
nQr1 = 1/(1+(Tr1/tnr))
disp("The internal quantum efficiency is nQr1 = 1/(1+(Tr1/tnr)) = "+string(nQr1))//calculation
disp(" For high p-doping such as 5*10^17, the recombination time is given as below")
T2 = (1/To)*((mr/mh)^(3/2))
disp("T2 = (1/To)*((mr/mh)^(3/2)) = "+string(T2)+"s^-1")//calculation
Tr2 = 1/T2
disp("The e-h recombination time is Tr2 = 1/T2 = "+string(Tr2)+"s")//calculation
nQr2 = 1/(1+(Tr2/tnr))
disp("The internal quantum efficiency is nQr2 = 1/(1+(Tr2/tnr)) = "+string(nQr2))//calculation
// Note : due to different precisions taken by me and the author ... my answer differ
|
198a96262bb31d45ee67f0654082cdcfe1c679a9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /50/CH2/EX2.17/ex_17.sce | f818a0af8c81ca8b2bc7bae7f66ae4b02ba99ab5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,203 | sce | ex_17.sce | // The equation cos(x)-x*%e^x==0 has real roots.
// the graph of this function can be observed here.
xset('window',8);
x=-1:.001:2; // defining the range of x.
deff('[y]=f(x)','y=cos(x)-x*%e^x'); //defining the function.
deff('[y]=fp(x)','y=-sin(x)-x*%e^x-%e^x');
deff('[y]=fpp(x)','y=-cos(x)-x*%e^x-2*%e^x');
y=feval(x,f);
a=gca();
a.y_location = "origin";
a.x_location = "origin";
plot(x,y) // instruction to plot the graph
title(' y = cos(x)-x*%e^x')
// from the above plot we can infre that the function has root between
// the interval (0,1)
// a=0;b=1,
// solution by multipoint_iteration method using the formula given in equation no.2.33.
// we call a user-defined function 'multipoint_iteration33' so as to find the approximate
// root of the equation within the defined permissible error limit.
multipoint_iteration33(1,f,fp)
// hence the approximate root witin the permissible error of 10^-5 is 0.5177574. |
059eabb5bbbda759ed0f34dcb7e6b7a6b789c63b | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set9/s_Engineering_Mechancis-schaum_Series_Mclean_3137.zip/Engineering_Mechancis-schaum_Series_Mclean_3137/CH16/EX16.61/Ex16_61.sce | 94cf05c4e981a9d1934370dca60a888c8eb746ec | [] | 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 | Ex16_61.sce | errcatch(-1,"stop");mode(2);//Initilization of variables
r=15/12 //ft
W=600 //lb
theta=25 //degrees
//calculations
ax=(r*W*sind(theta))/((1/r)*14.5+r*18.6) //ft/s^2
F=(W*sind(theta))-18.6*9.09 //lb
//Result
printf('The solution is F=%f lb and ax=%f ft/s^2',F,ax)
exit();
|
370ca756a8d8e26311b285ac0a9196aa702ebad5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH16/EX16.17/16_17.sce | d85408c1b0189896da09af980b862a52c6dd97c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 667 | sce | 16_17.sce | //pathname=get_absolute_file_path('16.17.sce')
//filename=pathname+filesep()+'16.17-data.sci'
//exec(filename)
//Temperature(in K):
T0=300
//Velocity(in m/s):
V1=50
//Mass flow rate(in kg/min):
m=18
//Specifc heat(in kJ/kg.K):
Cp=1.0032
//Mechanical efficiency:
nm=0.90
//Isentropic efficiency:
ni=0.75
//Pressure ratio:
r1=4
//Adiabatic index of compression:
r=1.4
//Stagnation temperature(in K):
T1=T0+V1^2/(2*Cp*10^3)
T2a=T1*r1^((r-1)/r)
T2=(T2a-T1)/ni+T1
printf("\n RESULT \n")
printf("\nTotal head temperature at exit = %f K",T2)
//Brake power required(in hp):
BP=m*Cp*(T2-T1)/(60*nm*0.7457)
printf("\nBrake power required = %f hp",BP) |
9d1cfb95e5adc65dfd7f03ddb6143f8754691ba3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3802/CH4/EX4.14/Ex4_14.sce | 7e3611832a0576f6d5f69497572329fa6e1e4918 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 329 | sce | Ex4_14.sce | //Book Name:Fundamentals of Electrical Engineering
//Author:Rajendra Prasad
//Publisher: PHI Learning Private Limited
//Edition:Third ,2014
//Ex4_14.sce.
clc;
clear;
V=100;
epsilon_not=8.854e-12;
r=10e-2;
q=4*%pi*epsilon_not*r*V;
printf("\n Magnitude value of isolated positive charge=%1.2g*10^-9 coulomb",q*1e9)
|
ab03ff12e62be64023663f073f9d73b2993b8a82 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2873/CH8/EX8.5/Ex8_5.sce | 6e28fe5aa3c8c6b583a2f28edec282ec43166db2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,233 | sce | Ex8_5.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh Chapter 8 Example 5")
P=50*10^3;//output of plant in KW
Cpw=4.18;//specific heat of water in KJ/kg K
Tw_in=15;//cooling water entering condenser temperature in degree celcius
Tw_out=30;//cooling water leaving condenser temperature in degree celcius
disp("from steam table,at inlet to turbine,")
disp("h2=h_10MPa,700oc")
disp("h2=3870.5 KJ/kg,s2=7.1687 KJ/kg K")
h2=3870.5;
s2=7.1687;
s3=s2;
disp("for process 2-3,s2=s3 and s3<sf at 0.005 MPa so state 3 lies in wet region .Let dryness fraction at state 3 be x3.")
disp("s3=7.1687=sf at 0.005 MPa+x3*sfg at 0.005 MPa")
disp("from steam tables,at 0.005 MPa,sf=0.4764 KJ/kg K,sfg=7.9187 KJ/kg")
sf=0.4764;
sfg=7.9187;
disp("so x3=(s3-sf)/sfg")
x3=(s3-sf)/sfg
x3=0.845;//approx.
disp("h3=hf at 0.005 MPa+x3*hfg at 0.005 MPa")
disp("from steam tables,at 0.005 MPa,hf=137.82 KJ/kg,hfg=2423.7 KJ/kg")
hf=137.82;
hfg=2423.7;
disp("so h3=hf+x3*hfg in KJ/kg")
h3=hf+x3*hfg
disp("h4=hf at 0.005 MPa")
h4=hf;
disp("for pumping process,(h1-h4)=v4*(p1-p4)")
disp("from steam tables,v4=vf at 0.005 MPa=0.001005 m^3/kg")
v4=0.001005;
disp("h1=h4+v4*(p1-p4)in KJ/kg")
p1=10;//pressure of steam leave boiler in MPa
p4=0.005;//pressure of steam leave turbine in MPa
h1=h4+v4*(p1-p4)*100
disp("net output per kg of steam,w_net=(h2-h3)-(h1-h4) in KJ/kg")
w_net=(h2-h3)-(h1-h4)
disp("mass flow rate of steam,ms=P/w_net in kg/s")
ms=P/w_net
ms=29.69;//approx.
disp("by heat balance on condenser,for mass flow rate of water being mw kg/s")
disp("(h3-h4)*ms=mw*Cpw*(Tw_out-Tw_in)")
disp("so mw=(h3-h4)*ms/(Cpw*(Tw_out-Tw_in)) in kg/s")
mw=(h3-h4)*ms/(Cpw*(Tw_out-Tw_in))
disp("the heat added per kg of steam (q_add)=(h2-h1)in KJ/kg")
q_add=(h2-h1)
disp("thermal efficiency=w_net/q_add")
w_net/q_add
disp("in percentage")
w_net*100/q_add
disp("ratio of heat supplied and rejected=(h2-h1)/(h3-h4)")
(h2-h1)/(h3-h4)
disp("mass of flow rate of steam=29.69 kg/s")
disp("mass flow rate of condenser cooling water=969.79 kg/s")
disp("thermal efficiency=45.12%")
disp("ratio of heat supplied and rejected=1.822")
|
14f757d4a14a9d786af2674b261d8e10a7a46dcd | 449d555969bfd7befe906877abab098c6e63a0e8 | /1691/CH3/EX3.2/exp3_2.sce | 5e0bffa610c476c248237c21e0f8940e0d1cafcc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,127 | sce | exp3_2.sce | //Example 3.2
clc
disp("Assume that the transistor Q1 is cut-off and the transistor Q2 is in saturation. Let us draw again the equivalent circuit from the base of Q1 to the collector of Q2")
disp("This is shown in the fig. 3.8")
disp("Another equivalent circuit from collector of Q1 to base of Q2 is shown in the fig 3.9")
disp("To calculate the various voltages it is necessary to calculate the current I_C1, I_B2 as Q2 is ON. The current I_C1 = I_B1 = 0 as Q1 is OFF")
disp("Now it is not very easy to calculate these currents by writing the equations from the equivalent circuits shown in the fig 3.8 and 3.9. So to calculate let us obtain Thevenin''s equivalent circuit once across collector and ground while another across base and ground for the same transistor Q2 assuming it as the load.")
disp("To replace collector circuit of Q2 by Thevenin''s equivalent, consider Q2 as open shown in the fig 3.10")
disp("Referring to fig 3.10,")
voc=(12*40)/44
format(5)
disp(voc,"V_OC(in V) = I*(R1 + R2) = V_CC/(R1+R2+R_C) * (R1+R2) =")
rth=160/44
format(6)
disp(rth,"and R_TH(in k-ohm) = (R1+R2)||R_C = with V_CC-N short")
disp("To replace base circuit of Q2 by Thevenin''s equivalent, consider Q2 open and draw circuit as shown in the fig 3.11")
voc=(12*10)/44
format(5)
disp(voc,"V_OC(in V) = I*R2 = V_CC/(R1+R2+R_C) * R2 =")
rth=340/44
format(6)
disp(rth,"and R_TH(in k-ohm) = (R2)||(R1+R_C) =")
disp("Thus the equivalent circuit for Q1 ON, using Thevenin''s result calculated above, is as shown in the fig 3.12")
disp("For silicon transistor,")
disp("V_BE(sat) = 0.8 V and V_CE(sat) = 0.4 V")
disp("Applying KVL to base-emitter loop,")
disp("-7.727*I_B2 - V_BE2 - (I_C2 + I_B2)*0.5 + 2.73 = 0")
disp("With V_BE2 = 0.8 V, I_B2 + 0.06075*I_C2 = 0.2345 ...(1)")
disp("Applying KVL to collector-emitter loop,")
disp("-3.636*I_C2 - V_CE2 - (I_C2 + I_B2)*0.5 + 10.9 = 0")
disp("With V_CE2 = 0.4 V, 4.14*I_C2 + 0.5*I_B2 = 10.5 ...(2)")
disp("Solving equation(1) and (2) simultaneously we get,")
disp("I_C2 = 2.526 mA and I_B2 = 0.0847 mA")
hfe=2.526/0.0847
format(7)
disp(hfe,"Therefore, h_fe(min) = I_C2 / I_B2 =")
disp("The various voltages can be obtained now by referring fig 3.8 and 3.9")
disp("V_EN = (I_B2 + I_C2)*R_E = 1.305 V")
vcn2=0.4+1.305
format(6)
disp(vcn2,"V_CN2(in V) = V_CE2 + V_EN =")
vbn2=0.8+1.305
disp(vbn2,"V_BN2(in V) = V_BE2 + V_EN =")
vbn1=1.705*(10/40)
format(7)
disp(vbn1,"V_BN1(in V) = V_CN2 * (R2/R1+R2) =")
vbe1=0.4262-1.305
disp(vbe1,"V_BE1(in V) = V_BN1 - V_EN =")
disp("As V_BE1 < V_BE(sat) which is about 0.8 V, the transistor Q1 is indeed OFF")
vcn1=(360/34)+((2.105*4)/34)
format(8)
disp(vcn1,"V_CN1(in V) = V_CC*R1/(R_C+R1) + V_BN2*R_C/(R_C+R1) = ...usinf superposition principle")
disp("Thus the stable state voltages and currents are:")
disp("I_C1 = 0 mA I_C2 = 2.526 mA I_B1 = 0 mA I_B2 = 0.0847 mA")
disp("V_CN1 = 10.835 V V_CN2 = 1.705 V V_BN1 = 0.4262 V V_BN2 = 2.105 V")
disp("and V_EN = +1.305 V")
disp("The voltage V_EN provides the required self bias")
|
a8c38c313648dfd81683151acb9660f973ad190b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3020/CH5/EX5.5/ex5_5.sce | 1f8e17e3257b27b206e1f42c703411646d14e185 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 217 | sce | ex5_5.sce | clc;
clear all;
u = 5000; // Velocity of sound in steel in meters per second
f = 50e3; // Difference between two adjacent frequency in Hertz
d = u/(2*f);//Thickness of plate
disp('m',d,'Thickness of plate is')
|
b54dd92c43769b78f594aed807909f828dca8351 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH32/EX31.1/EX31_1.sce | c7a7132f61cb89c571476afbbafdb0203c6955e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | EX31_1.sce | // Grob's Basic Electronics 11e
// Chapter No. 31
// Example No. 31_1
clear; clc;
// Calculate the following dc quantities Icq, Vceq, Pd, Ic(sat) and Vce(off). Also draw the dc load line
// Given Data
R1 = 18*10^3; // Resistor 1=18k Ohms
R2 = 2.7*10^3; // Resistor 2=2.7k Ohms
Vcc = 20; // Supply Voltage(Collector)=20 Volts
Vbe = 0.7; // Voltage Base-Emitter=0.7 Volts
Re = 240; // Emitter Resistor=240 Ohms
Rc = 1*10^3; // Collector Resistor=1k Ohms
Vb = Vcc*(R2/(R1+R2));
Ve = Vb-Vbe;
//Ie = Ic;
Icq = Ve/Re;
disp (Icq,'The value of Icq in Amps')
disp ('i.e Appox 7.91 mAmps')
Vceq = Vcc-Icq*(Rc+Re);
disp (Vceq,'The value of Vceq in Volts')
disp ('Appox 10.19 Volts')
Pd = Vceq*Icq;
disp (Pd,'The Power Dissipation in Watts')
disp ('i.e 80.6 mWatts')
Icsat = Vcc/(Rc+Re);
disp (Icsat,'The value of Ic(sat) in Amps')
disp ('i.e 16.1 mAmps')
Vceoff = Vcc;
disp (Vceoff,'The value of Vce(off) in Volts')
// For DC load line
Vce1=[Vceoff Vceq 0]
Ic1=[0 Icq Icsat]
//To plot DC load line
printf("Q(%f,%f)\n",Vceq,Icq)
plot2d(Vce1, Ic1)
plot(Vceq,Icq,".r")
plot(0,Icq,".r")
plot(Vceq,0,".r")
plot(0,Icsat,".b")
plot(Vceoff,0,".b")
xlabel("Vce in volt")
ylabel("Ic in Ampere")
xtitle("DC Load-line for Common-Emitter Class A Amplifier Circuit")
|
f52e49e263b8d76e847244b1e299e9833f5b8796 | 843ddfc1f1137ace0ddbffdc051fb2b2a3e2ba6b | /P3/P306.sce | 82e6790f7bda9f0cb7f1999998ef34a88da8a746 | [] | no_license | aguadix/SIMCON | 8169169577fc5e69257f6dc91558b7b320974161 | 5f83003937740a730c4593c241309c9da7693ddf | refs/heads/master | 2022-10-27T00:34:29.074871 | 2022-10-24T11:24:08 | 2022-10-24T11:24:08 | 53,549,792 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,532 | sce | P306.sce | clear; clc;
// P306.sce
s = syslin('c',%s,1);
// Sistema de segundo orden sobreamortiguado con numerado
K = 1; T1 = 4; T2 = 1; Tn = 8;
G = K*(Tn*s+1)/((T1*s+1)*(T2*s+1))
fmin = 1E-3; fmax = 1E1; f = logspace(log10(fmin),log10(fmax),1E4); // Frecuencia
repf = repfreq(G,f); // Respuesta compleja
[dB,phi] = dbphi(repf); // Magnitud y fase
// Frecuencia objetivo
phiobj = 0;
indexobj = find(phi<phiobj,1);
fobj = f(indexobj)
repfobj = repf(indexobj)
dBobj = dB(indexobj)
phiobj =phi(indexobj)
ciclos = 10; tfin = ciclos/fobj; dt = tfin/200; t = 0:dt:tfin; // Tiempo
M = 1; omega = 2*%pi*fobj; u = M*sin(omega*t); // Entrada
y = csim(u,t,G); // Respuesta temporal
scf(1); clf(1);
plot(t,u,t,y);
xgrid; xtitle('Sistema de segundo orden sobreamortiguado con numerador dinámico - Respuesta temporal a frecuencia','t','u(azul), y(verde)');
scf(2); clf(2);
bode(G,fmin,fmax);
xtitle('Sistema de segundo orden sobreamortiguado con numerador dinámico - Diagrama de Bode');
scf(3); clf(3);
xtitle('Sistema de segundo orden sobreamortiguado con numerador dinámico - Diagrama de Bode');
subplot(2,1,1); gainplot(G,fmin,fmax); plot(fobj,dBobj,'ro');
subplot(2,1,2); phaseplot(G,fmin,fmax); plot(fobj,phiobj,'ro')
scf(4); clf(4);
nyquist(G,fmin,fmax,%f)
plot(real(repfobj),imag(repfobj),'ro');
xtitle('Sistema de segundo orden sobreamortiguado con numerador dinámico - Diagrama de Nyquist','','');
a4 = gca;
a4.x_location = 'origin';
a4.y_location = 'origin';
a4.data_bounds = [-2,-2;2,2];
a4.isoview = 'on';
a4.box = 'off';
|
0a8aaf48bafce642c6832c044d903d24e34f474d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1592/CH8/EX8.12/Example_8_12.sce | eeb845a05f32142e49d409da7f3ae3cee445e31a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 583 | sce | Example_8_12.sce | //Scilab Code for Example 8.12 of Signals and systems by
//P.Ramakrishna Rao
//Second Order LSI system
z = %z;
s = %s;
X=z^-1/(0.7*z^-2-3.7*z^-1+3);
[A]=pfss(z^-1/(0.7*z^-2-3.7*z^-1+3))
x1 = horner(A(1),z)
x2 = horner(A(2),z)
q=denom(X);
a=roots(q)
H=[x1 x2 z/3];
disp(H,'(a) H(z)=');
clear z;
syms z n;
F1 = ((1/6)*(z/(z-1))*z^(n-1)*(z-a(1)))
F2 = ((0.7/54)*(z/(z-0.233333))*z^(n-1)*(z-a(2)))
w1=limit(F1,z,a(1))
w2=limit(F2,z,a(2))
w=w1+w2;
disp(w,'(b) h(n))=');
z=%z;
x11=z*x1/3
x12=z*x2/3
disp(x11,"(c) Parallel realization: H1(z)");
disp(x12," H2(z)")
|
96fb1fc035adeab52d95d11696b1b3a656061ac8 | f5d94d2f88130233ece1072e7c1bddbd6c3f39b4 | /allmargin.sci | c146d9fb251428567305c990f283d693254f3ad1 | [] | no_license | yeoleparesh/fosseecode | 4fa6de7c4a37233239744c530bfe1093ae8f3c09 | a68c15a0ea89e61db13bd870adc30c175a253976 | refs/heads/master | 2021-01-21T04:55:29.193728 | 2016-07-02T08:36:21 | 2016-07-02T08:36:21 | 55,388,885 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 748 | sci | allmargin.sci | function[]=allmargin(h)
[Gain_Margin,GM_freq]=g_margin(h);
[Phase_Margin,PM_freq]=p_margin(h);
Gain_Margin=10^(Gain_Margin/20);
GM_freq=2*%pi*GM_freq;
PM_freq=2*%pi*PM_freq;
Delay_Margin=abs(Phase_Margin*(1/PM_freq)*(%pi/180));
DM_freq=PM_freq;
stable=1;
if(Phase_Margin < 0 | Gain_Margin<0 )
stable=0;
end
disp('Gain_Margin = ');
disp(Gain_Margin);
disp('GM_freq = ');
disp(GM_freq);
disp('Phase_Margin = ');
disp(Phase_Margin);
disp('PM_freq = ');
disp(PM_freq);
disp('Delay_Margin =');
disp(Delay_Margin);
disp('DM_freq =');
disp(DM_freq);
disp('stable =');
disp(stable);
endfunction
|
336da7f2ff9977a3111a88511c5e46128c554c6e | 4a1949be12fbe9a81d9308381b34c611e65877ca | /tests/syntaxicaux/1.tst | c34ccbe09c2b24406ae9a832797f500ab2572b1d | [] | no_license | ng88/trad | 26439d8fe2284ece19d6fbfaa397d3f6f0d13e78 | e4d3d4d56928539144d30c5c49e01e65c9b8729c | refs/heads/master | 2020-12-05T07:31:25.854231 | 2008-02-29T10:15:34 | 2008-02-29T10:15:34 | 67,351,952 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 835 | tst | 1.tst | /*
Fichier de test 1
*/
class MaClasse
private integer a, b, c;
private string d, e;
public MaClasse test;
public MaClasse() {}
public void main()
prints(print());
public integer addition(integer a, integer b)
return (a + b);
private string print()
{
VAR string ret;
ret := "salut \"vous\"\t!\t!\na la ligne\\ \\";
ret := "ceci est une chaine";
a := a + c + c;
a := a + addition(a, 12);
if 1+1 = 2 then
a := 7;
else
a := b;
endif
while a do
a := a - 1;
while b do
{
b := b - 8;
c := c - 1;
}
return(ret);
}
end
|
a1171c2b7093220b92c4ec3154a5f3c892ed8b89 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2858/CH1/EX1.6/Ex1_6.sce | 363bdcfb51ee29ca2482338448b520a224d45f42 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 376 | sce | Ex1_6.sce | //example 1.6
clc; funcprot(0);
Gammad=14.5;
Gammasat=17.2;
Gammaw=9.81;
printf("Point \t Sigma(kN/m^2)\t u(kN/m^2)\t sigmadash=sigma-u (kN/m^2)\n");
printf(" A\t %d\t \t %d\t\t %d \n",0,0,0);
printf(" B\t%.2f\t \t%.2f\t\t %.2f \n",4*Gammad,0,4*Gammad-0);
printf(" C\t%.2f\t \t%.2f\t\t %.2f \n",4*Gammad+5*Gammasat,5*Gammaw,4*Gammad+5*Gammasat-5*Gammaw);
|
b329542bb50b03992677a7332f426cca6aabedc5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2915/CH2/EX2.11/Ex2_11.sce | b4f0bf0364b63211c5966311a608c6c779cbcdf2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex2_11.sce | //Example 2.11
//To check the solution of triangle using Mollweide equation
clc,clear
c=6.09 //side oposite to vertex C
a=5 //side opposite to vertex A
b=3 //side opposite to vertex B
A=54.7 //angle at vertex A
B=29.3 //angle at vertex B
C=96 //angle at vertex C
LHS = (a-b)/c
RHS = sind((A-B)/2)/cosd(C/2)
printf(' LHS = (a-b)/c = %.4f\n',LHS)
printf(' RHS = sin((A-B)/2)/cos(C/2) = %.4f\n\n',RHS)
printf('Small difference in LHS and RHS is due to rounding off.\ni.e.Mollweides equation is holding true.\n')
printf('THE SOLUTION OF TRIANGLE IS CORRECT')
|
67ab784f7d7fcded65cbbcfc12a33ef38a4aa704 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3869/CH6/EX6.30/Ex6_30.sce | e02954d66e18100ea2a055f06a59d5ce2939f562 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 835 | sce | Ex6_30.sce | clear
//
//
//
//Variable declaration
h=1
k=1
l=1 //miller indices
lamda=0.152 //wavelength(nm)
D=0.2552 //diameter(nm)
theta1=21*%pi/180 //angle(radian)
theta2=(21+(23/60))*%pi/180 //angle(radian)
//Calculation
a=D*sqrt(2) //lattice parameter for regular crystal(nm)
d111_1=lamda/(2*sin(theta1))
alpha1=d111_1*sqrt(h**2+k**2+l**2) //lattice parameter for sample A(nm)
d111_2=lamda/(2*sin(theta2))
alpha2=d111_2*sqrt(h**2+k**2+l**2) //lattice parameter for sample B(nm)
//Result
printf("\n lattice parameter for regular crystal is %0.4f nm",a)
printf("\n lattice parameter for sample A is %0.4f nm",alpha1)
printf("\n lattice parameter for sample B is %0.3f nm",alpha2)
printf("\n lattice parameter of sample A is 1.75 percent greater than that of pure copper")
|
ca58472f225be349ac4aa919b957ff8a5b0c62ff | 449d555969bfd7befe906877abab098c6e63a0e8 | /3648/CH2/EX2.3/Ex2_3.sce | 12b765c15aa1e0a1fc611507669524af80ec44a2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | sce | Ex2_3.sce | //Example 2_3
clc();
clear;
//To find the weight and the Tension in the cords
//As Sigma(Fx)=0
theta1=53 //units in degrees
theta2=37 //units in degrees
F1=100 //units in Newtons
F=F1/cos(theta1*%pi/180) //units in Newtons
W=cos(theta2*%pi/180)*F //units in Newtons
printf("The Weight W=%d N\n",W)
printf("Tension in the chord is F=%d N",F)
//In text book the answers are printed wrong as F=167N and W=133N but the correct answers are W=132N and F=166N
|
e08b32a8bade23a0bd24b2c8cbaaa4fa25952f7c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1184/CH7/EX7.3/Ex7_3.sce | be43d503c699566a5e0c5caaa3ae609cad67dd52 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 257 | sce | Ex7_3.sce | //Example 7-3, Page No - 225
clear
clc
N =12
SINAD1=78
SINAD2 = 6.02*N + 1.76
ENOB =(SINAD1 -1.76)/6.02
printf('The SINAD for 12 bit convertre is %d dB',SINAD2)
printf('\n The ENOB for the converter with SINAD of 78 dB is %.2f bits',ENOB)
|
a7b5413d727d44bebeedb503457af59887253f17 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2762/CH2/EX2.3.1/2_3_1.sce | 5aa486b81ade91e67c8cff08c16d120177ce6598 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 519 | sce | 2_3_1.sce | //Transport Processes and Seperation Process Principles
//Chapter 2
//Example 2.3-1
//Principles of Momentum Transfer and Overall Balances
//given data
//a)
del=0.013;//diffusivity
T1=1.37e-2;//concn at pt1 amt of prop/m3
T2=0.72e-2;//concn at pt2
z2=0.4;
z1=0;
shi1=(del*(T1-T2))/(z2-z1);
mprintf("%f amt of property/s m2",shi1)
//b
disp('T=T1+(shi1/del)*(z1-z)')
//c)
z=0.2;//point where concn is being found
T=T1+(shi1/del)*(z1-z);//concentration at mid point
mprintf("%f amt of property/s m3",T)
|
e974affce88efb4600fde778f59ec387f18ac6f4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2198/CH2/EX2.11.4/Ex2_11_4.sce | 1aba886f3b7049a7f32e87c6ca5e047f4d8dc31d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 704 | sce | Ex2_11_4.sce | //Ex 2.11.4
clc;clear;close;
format('v',8);
//Given :
T=300;//K
m_Si=1.5;//for Si
m_Ge=1.5;//for Ge
EGO_Si=1.21;//volt
EGO_Ge=0.785;//volt
Eta_Si=2;
Eta_Ge=1;
VT=26/1000;//V
disp("Part(i) : ");
d_logIoBYdt_Ge=m_Ge/T+EGO_Ge/(Eta_Ge*T*VT);//per degree C
disp(d_logIoBYdt_Ge,"d(log(Io))/dt for Ge (per degree C) : ");
d_logIoBYdt_Si=m_Si/T+EGO_Si/(Eta_Si*T*VT);//per degree C
disp(d_logIoBYdt_Si,"d(log(Io))/dt for Si (per degree C) : ");
disp("Part(ii) : ");
V=0.2;//volt
dVBYdt_Ge=V/T-Eta_Ge*VT*d_logIoBYdt_Ge
disp(dVBYdt_Ge*1000,"dV/dt for Si (mV per degree C) : ");
V=0.6;//volt
dVBYdt_Si=V/T-Eta_Si*VT*d_logIoBYdt_Si
disp(dVBYdt_Si*1000,"dV/dt for Si (mV per degree C) : ");
|
b352f6895b7037898f997ca91cd7d45555d24b22 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2024/CH11/EX11.6/11_6.sce | 4b0d0dae74b3435e617bdd2efedb2e9cf82dc652 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 206 | sce | 11_6.sce | clc
//Initialization of variables
n1=2 //moles
n2=10.52 //moles
P=14.7 //psia
//calculations
pp=n1/n2 *P
disp("from s=psychrometric charts,")
dew=139 //F
//results
printf("dew point = %d F",dew)
|
b5f09b39d83f1d888111a86d5c776f496ee63ad6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH2/EX2.66/ex2_66.sce | bcbef99ba7b962c3aa84d97146798734a3f9968a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 265 | sce | ex2_66.sce | clc
L1=0.0191 //Assigning values to parameters
f=50;
Xl1=2*%pi*f*L1;
C=398*10^-6;
Xc=1/(2*%pi*f*C);
L3=0.0318
Xl3=2*%pi*f*L3;
Z1=2+%i*Xl1;
Z2=7-%i*Xc;
Z3=8+%i*Xl3;
Zeq=((Z1*Z2)/(Z1+Z2))+Z3;
disp("Ohms",Zeq,polar(Zeq),"Equivalent Impedance"); |
4a01d18cb8c940df71949590b4482362b60d7c17 | 494b677053e1199325a80808377463794e1003e5 | /experiments/irprop-c/irprop-c/results/Ignore-MV.iRProp+-C.vehicle/result5s0.tst | bac2775e932644ce8991b13bf69b9097f31339f9 | [] | no_license | kylecblyth/IIS-Project | 92fb0770addced8022817470f974bf5191bfe05d | abf66fd98d9b6c7c3a0fbc254ef4026641338489 | refs/heads/master | 2020-06-12T19:41:02.430510 | 2016-12-07T10:35:31 | 2016-12-07T10:35:31 | 75,764,815 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,573 | tst | result5s0.tst | @relation vehicle
@attribute COMPACTNESS integer[73,119]
@attribute CIRCULARITY integer[33,59]
@attribute DISTANCECIRCULARITY integer[40,112]
@attribute RADIUSRATIO integer[104,333]
@attribute PRAXISASPECTRATIO integer[47,138]
@attribute MAXLENGTHASPECTRATIO integer[2,55]
@attribute SCATTERRATIO integer[112,265]
@attribute ELONGATEDNESS integer[26,61]
@attribute PRAXISRECTANGULAR integer[17,29]
@attribute LENGTHRECTANGULAR integer[118,188]
@attribute MAJORVARIANCE integer[130,320]
@attribute MINORVARIANCE integer[184,1018]
@attribute GYRATIONRADIUS integer[109,268]
@attribute MAJORSKEWNESS integer[59,135]
@attribute MINORSKEWNESS integer[0,22]
@attribute MINORKURTOSIS integer[0,41]
@attribute MAJORKURTOSIS integer[176,206]
@attribute HOLLOWSRATIO integer[181,211]
@attribute class {van,saab,bus,opel}
@data
bus bus
opel saab
bus bus
van van
van van
bus bus
van van
bus bus
opel opel
bus bus
saab opel
opel opel
van van
bus bus
saab saab
saab saab
saab van
opel saab
van van
bus bus
saab bus
saab bus
saab opel
van van
saab opel
van van
van van
saab saab
bus bus
bus bus
bus bus
van van
bus bus
van van
bus bus
opel opel
opel saab
opel saab
opel van
saab opel
saab bus
van van
opel saab
opel opel
opel opel
saab opel
van van
opel opel
bus bus
bus bus
opel opel
van van
van bus
van van
opel saab
saab bus
bus bus
saab saab
opel van
opel saab
saab bus
bus bus
saab van
saab saab
saab opel
van bus
opel saab
van van
bus bus
saab opel
opel opel
van van
opel opel
bus bus
van van
saab opel
opel opel
opel saab
bus bus
van van
bus bus
saab bus
opel bus
bus bus
saab bus
|
8b36a9743e06725ca4c42dc0b9355478a9cdecf4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2912/CH4/EX4.7/Ex4_7.sce | b272215cc5571720448e48d75713692ccd598860 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 798 | sce | Ex4_7.sce | //chapter 4
//example 4.7
//calculate interpalanr spacing
//page 77-78
clear;
clc;
//given
V=344; // in V (accelerating voltage)
theta=60; // in degree (glancing angle)
m=9.1E-31; // in Kg (mass of electron)
h=6.625e-34; // in J-s (Plank's constant)
n=1; //order
e=1.6E-19; // charge on electron
//calculate
//Since K=m*v^2/2=e*V
// therefore v=sqrt(2*e*V/m)
// since lambda=h/(m*v)
//therefore we have lambda=h/sqrt(2*m*e*V)
lambda=h/sqrt(2*m*e*V); // calculation of lambda
printf('\nThe wavelength is \t\t =%1.2E m',lambda);
lambda=lambda*1E10; //changing unit from m to Angstrom
printf('\n\t\t\t\t =%.2f Angstrom',lambda);
// Since 2dsin(theta)=n(lambda)
// therefore we have
d=n*lambda/(2*sind(theta));
printf('\nThe interplanar spacing is \t d=%.2f Angstrom',d);
|
6059a9f5b639a65acc420fc5505d18ea23324034 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3825/CH7/EX7.14/Ex7_14.sce | 1120a49a0f349b67cee9376a8bcb50f2cdc61ddd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 305 | sce | Ex7_14.sce | clc
YA=0.5//mole fraction of oxygen
YB=0.5//mole fraction of nitrogen
R=8.314//universal gas constant
deltasMix=-R*((YA*log(YA))+(YB*log(YB)))//molar entropy change associated with mixing of non identical gases
mprintf("deltasMix=%fper mol of mixture",deltasMix)//ans vary due to roundoff error
|
548b3c6ba595212319d365575cd2732689ba5b65 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1580/CH11/EX11.1/Ch11Ex1.sce | 9b25b4f3703fcd9726bfdee49523e791e17bde7e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 621 | sce | Ch11Ex1.sce | // Scilab Code Ex11.1: Page-11.5(2004)
clc;clear;
h = 6.626e-034; // Planck's constant, Js
c = 3e+08; // Speed of light in free space, m/s
k = 8.61e-5; // Boltzmann constant, J/K
T = 300; // Temperature at absolute scale, K
lambda = 6943e-10; // Wavelength of visible light, m
E = h*c/(lambda*1.6e-19); // Energy in eV
rate_ratio = exp(-E/(k*T)); // Ratio of spontaneous emission to stimulated emission
printf("\nThe ratio of relative population = %3.2e", rate_ratio);
printf("\nEnergy = %3.2f eV", E);
// Results
// The ratio of relative population = 8.20e-31
// Energy = 1.79 eV
|
cb6bdce765736f0cfea7cdafdc80aabfcab30165 | 449d555969bfd7befe906877abab098c6e63a0e8 | /25/CH7/EX7.9/7_9.sce | 42b0db143d1612673258ab62e6a7d40e52a59333 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 586 | sce | 7_9.sce | // example:-7.9,page no.-376.
// program to derive an expression for the change in resonant frequency.
syms Ey Hx Hz A Zte n a pi x z d j eo c wo w b l ro;
Ey=A*sin((pi*x)/a)*sin((pi*z)/d);
Hx=((-j*A)/Zte)*sin((pi*x)/a)*cos((pi*z)/d);
Hz=((j*pi*A)/(k*n*a))*cos((pi*x)/a)*sin((pi*z)/d);
Ey=A;// at x=a/2,y,z=d/2;
Hx=0;// at x=a/2,y,z=d/2;
Hz=0;// at x=a/2,y,z=d/2;
//where w is perturbed resonant frequency and wo is unperturbed resonant frequency.
w=-eo*A^2*pi*l*ro^2;
wo=(a*b*eo*d*A^2)/2;
deltaw=(w-wo)/wo;
disp(deltaw,'the perturbation in resonant frequency w.r.t wo = ') |
441d72f7afafb5a95e21107a0de6e9f36a814556 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2159/CH2/EX2.6/26.sce | 1eddcb602656aea5b2dff25cf4b6836221bd1d8d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 223 | sce | 26.sce | // problem 2.6
a=0.25
s1=11.5
s2=1
z=9810
v1=a*a*a*0.5
wc=v1*z
h=0.016
// by archimede's principle
v2=(a*0.5+h)*a*a // volume of cube submergerd
v=(v2-v1)/(s1-s2)
wl=v*s1*z
disp(wl,"weight of lead attached")
|
45ab81af496bc43a4ca62ed7a910215adc5acd00 | efe59cd4cca137aba9af447e8040b1eac3738006 | /examples/functions/exemplo3_funcao_soma.sce | bbb6f7af5db2d466660788becf5b04984ab01987 | [] | no_license | thejefecomp/scilab-codes | fd13f6aa666135c0fb08989e25b0ca1354c58b51 | 6eefce6eed8af0b54f2d6172f6e2b05513327184 | refs/heads/master | 2023-07-31T13:23:50.467306 | 2021-09-23T09:00:49 | 2021-09-23T12:04:06 | 287,115,880 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,052 | sce | exemplo3_funcao_soma.sce | /*Este programa especifica um exemplo de declaração e invocação de uma função de soma com sintaxe simples,
a qual recebe dois argumentos de entrada [operando1,operando2], realiza a soma desses argumentos,
e devolve o valor do resultado, juntamente com os valores dos argumentos de entrada, por meio de três
variáveis de saída [resultado,operando1,operando2].
PS: Quando os nomes dos argumentos de entrada são idênticos aos das variáveis de saída, a atribuição inicial é automática,
ou seja, se dentro da função não for realizada nenhuma atribuição às variáveis de saída, as mesmas já estarão definidas
e terão os mesmos valores iniciais dos argumentos de entrada de mesmo nome.
*/
function [resultado,operando1,operando2] = soma(operando1,operando2)
resultado = operando1+operando2
endfunction
mprintf("EXEMPLO 3 - FUNÇÂO SOMA\n")
[resultado,operando1,operando2] = soma(2,3)
mprintf("Resultado: %f\n",resultado)
mprintf("Operando1: %f\n",operando1)
mprintf("Operando2: %f",operando2)
|
be3dd3a0aa9a1d7c057e6e926e8e050255a6caf3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1703/CH11/EX11.8/11_8.sce | c18f1789bf5245505ffe94d61706d668921269f3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 11_8.sce |
clc
//initialisation of variables
r= 5
//CALCULATIONS
sr= r^2
sr1= r^2/r
//RESULTS
printf ('Corresponding ratio = %.f ',sr)
printf ('\n Corresponding ratio = %.f ',sr1)
|
16708eac2fbd88f81a11ab64b47dcd174a0ff639 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2045/CH2/EX2.23/Ex2_23.sce | 0009f420b2323191481029ec011cc06ec6779f68 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 454 | sce | Ex2_23.sce | //pagenumber 116 example 23
clear
area12=1*10^-8;//metre square
volre1=-1;//reverse voltage
capac1=5*10^-12;//farad
volbu1=0.9;//volt
voltag=0.5;//volt
i1=10*10^-3;//ampere
durmin=1*10^-6;//ssecond
//(1) capacitance
capac1=capac1*sqrt((volre1-volbu1)/(voltag-volbu1));
disp("depletion capacitance = "+string((capac1))+"farad");
//(2) capacitance
capac1=i1*durmin/(0.026);
disp("capacitance = "+string((capac1))+"farad");
|
f27c939291463cc095aa30109c61c44edd3a3b21 | 0aa3d58d6b3308711c70075597949168988ab13f | /Scripts.sci | cf9753b33785accf035983aff5ab25257d1118ee | [] | no_license | Julien-mazzia/Developpement-info | 1df1ed712d1da68fd26be096687e26b80bc8c91f | af1e98d60728a7e05c30bb1ea0078b7a7e97aae7 | refs/heads/master | 2021-01-22T19:44:44.854980 | 2017-03-16T21:58:03 | 2017-03-16T21:58:03 | 85,236,931 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,763 | sci | Scripts.sci | function A1()
img=readpbm('Encelade_surface.pbm')
maxPx = max(img) //On cherche la valeur de nuance de gris maximale dans l'image
[y, x] = size(img) //On récupére la taille de la matrice
for i =1:x
for j=1:y
//Si la valeur maximale est trouvé on affiche les coordonnées du pixel correspondant
if img(j, i)==maxPx
then printf("Coordonnées x : %d, Coordonnées y : %d",i,j)
end
end
end
endfunction
function A2()
img=readpbm('Mars_surface.pbm')
moyenne=mean(img) //On cherche la moyenne des pixels de l'image
r =moyenne*100/255 //On calcule le pourcentage de méthane dans l'atmosphére
disp(r)
endfunction
function B1()
img=readpbm('Gliese 667Cc_surface.pbm')
i=max(img) // On cherche la valeur de pixel la plus haute dans l'image
ratio=255/i //On fait un ratio pour que les valeurs ne dépassent pas 255
display_gray(img*ratio)
endfunction
function B2()
img=readpbm('GD61.pbm')
i=max(img)
ratio=255/i
display_gray(img*ratio)
endfunction
function B3()
img=readpbm('HD215497.pbm')
[y,x] = size(img)
for i = 1:x
for j=1:y
if ((img(j, i)>0) & (img(j, i)<64)) then
img1(j,i)=255
img2(j, i)=0
img3(j, i)=0
img4(j, i)=0
elseif ((img(j, i)>64) & (img(j, i)<128)) then
img1(j,i)=0
img2(j, i)=255
elseif ((img(j, i)>128) & (img(j, i)<192)) then
img2(j, i)=0
img3(j, i)=255
elseif ((img(j, i)>192) & (img(j, i)<256)) then
img3(j, i)=0
img4(j, i)=255
end
end
end
display_gray(img1)
scf
display_gray(img2)
scf
display_gray(img3)
scf
display_gray(img4)
endfunction
function X2()
img=readpbm('Gliese 581d.pbm')
[y,x] = size(img)
for i = 2:x-1
for j=2:y-1
//On fait la moyenne des différents pixels qui se trouvent autour de celui que l'on regarde
mean = (img(j-1, i-1)+img(j+1, i+1)+img(j+1, i-1)+img(j-1, i+1)+img(j, i+1)+img(j, i-1)+img(j-1, i)+img(j+1, i)+img(j, i))/9
img(j, i) = mean //On applique cette moyenne au pixel actuel
end
end
display_gray(img)
endfunction
function X2_V2()
img=readpbm('Gliese 581d V2.pbm')
[y,x] = size(img)
for i = 2:x-1
for j=2:y-1
mean = (img(j-1, i-1)+img(j+1, i+1)+img(j+1, i-1)+img(j-1, i+1)+img(j, i+1)+img(j, i-1)+img(j-1, i)+img(j+1, i)+img(j, i))/9
img(j, i) = mean
end
end
display_gray(img)
endfunction
|
99a1b4fecc61b71e2fd421900bad8d3ba962ab20 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3871/CH12/EX12.7/Ex12_7.sce | 5bbde399b35f8263fe5c0e891ba4f8befda41a94 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 638 | sce | Ex12_7.sce | //===============================================================================
//Chapter 12 Example 7
clc;clear all;
//variable declaration
R2 = 1000; //resistance of arm in Ω
R3 = 500; //resistance of arm in Ω
R4 = 1000; //resistance of arm in Ω
C4 = 3*10**-6; //capacitance in F
r = 100;
//calculations
R1 = ((R2*R3)/(R4)); //resistance of coil in Ω
x = (r*(R3+R4))+(R3*R4)
L1 = (C4*R2*x)/(R4); //inductance of inductor in H
//result
mprintf("resistance of coil = %3.2f Ω",R1);
mprintf("\ninductance of inductor = %3.2fHenry",L1);
|
59b643216201f253eab5a75a96aa4b05b7f31778 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH33/EX33.02/33_02.sce | 7742fc3ccf7e3189db7bf66e76c5da703d34ac9f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 961 | sce | 33_02.sce | //Problem 33.02: Determine, for the network shown in Figure 33.16, the value of current I. Each of the voltage sources has a frequency of 2 kHz.
//initializing the variables:
V1 = 20; // in volts
V2 = 10; // in volts
R1 = 2; // in ohm
R2 = 1.5; // in ohm
L = 235E-6; // in Henry
R4 = 3; // in ohm
f = 2000; // in Hz
//calculation:
//The impedance through which current I is flowing is initially removed from the network, as shown in Figure 33.17.
//From Figure 33.17,
//current, I1
I1 = (V1 - V2)/(R1 + R4)
//the open circuit e.m.f. E
E = V1 - I1*R1
//When the sources of e.m.f. are removed from the circuit, the impedance, z, ‘looking in’ at the break is given by
z = R1*R4/(R1 + R4)
//The Th´evenin equivalent circuit is shown in Figure 33.18, where inductive reactance,
XL = 2*%pi*f*L
R3 = %i*XL
//Hence current
I = E/(R2 + R3 + z)
printf("\n\n Result \n\n")
printf("\n the current I is %.2f + (%.2f)i A",real(I), imag(I)) |
9a654058ab6994a79fa047c779aa7a47bc39ab6c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2006/CH3/EX3.2/ex3_2.sce | d33501fba176fc5417c8b4077beba01057b2c895 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,402 | sce | ex3_2.sce | clc;
// (a) Ammonia 26 oC and 0.074 m^3/kg
// From saturation table of ammonia at 26 oC
v=0.074; // specific volume of ammonia in m^3/kg
vf=0.001663; vg=0.1245; // specific volume of ammonia in m^3/kg
x=(v-vf)/(vg-vf); // Quality of vapour since v<vg
disp (x,"The Quality of ammonia = ","(a) Ammonia 26 oC and 0.074 m^3/kg");
// (b).Ammonia 550kPa and 0.31m^3/kg
// From saturation table of ammonia at 550 kPa
v=0.31; // specific volume of ammonia in m^3/kg
vg=0.23; // specific volume of ammonia in m^3/kg
// v > vg . Since from superheated table by interpolation for 550kPa and v
T=82.1; // Temperature of ammonia in degree celcius
disp ("oC",T,"Temperature of ammonia = ","(b).Ammonia 550kPa and 0.31m^3/kg");
// (c).Freon 12, 0.35MPa and 0.036 m^3/kg
// From saturation table of Freon 12 at 0.35MPa
v=0.036; // specific volume of Freon 12 in m^3/kg
vf=0.000722; vg=0.049329; // specific volume of Freon 12 in m^3/kg
x=(v-vf)/(vg-vf); // Quality of vapour since v<vg
disp (x,"The Quality of Freon 12 = ","(c).Freon 12, 0.35MPa and 0.036 m^3/kg");
// (d).Methane 0.5MPa and 1.0 m^3/kmol
v=1; // specific volume of Methane in m^3/kmol
// From table at 0.5 MPa molar values are
vf=0.04153; vg=2.007; // specific volume of Methane in m^3/kmol
x=(v-vf)/(vg-vf); // Quality of vapour since v<vg
disp (x,"The Quality of Methane = ","(d).Methane 0.5MPa and 1.0 m^3/kmol");
|
48633d608a16a9a2e3cd51410de7f3aecdef463f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1457/CH10/EX10.7/10_7.sce | 363fed0baa44f855fdf00ffa7e21a48654f3a4c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 348 | sce | 10_7.sce | clc
//Initialization of variables
n=90 //rpm
R=2
rho=0.0765/32.2
B=25
U=120 //fps
//calculations
vt=2*%pi*R*n/60
T=2*%pi*R*vt
Fl=rho*B*U*T
theta=asind(-T/(4*%pi*R*U))
//results
printf("Value of circulation = %d ft62/s",T)
printf("\n Transverse or lift force = %d lb",Fl)
printf("\n Position of stagnation points = %.1f",180-theta)
|
997c2b4ba227e610e20d572e850eb76c8404b325 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1571/CH3/EX3.16/Chapter3_Example16.sce | ac816744601fbae04796d0011b98b06218947c96 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 487 | sce | Chapter3_Example16.sce | clc
clear
//INPUT DATA
//continous flow calorimeter
r=120/60;//rate of flow of water in gm/sec
T1=27.30;//temperature at initial in deg.C
T2=33.75;//temperature at final in deg.C
v=12.64;//potential drop in volts
s=1;//specific heat of water in kj/kg-K
i=4.35;//current through the heating element in amp
//CALCULATIONS
J=(v*i)/(r*s*(T2-T1));//the mechanical equivalent of heat in joule/calorie
//OUTPUT
mprintf('the mechanical equivalent of heat is %3.2f j/cal',J)
|
c9ca245c2f17dd0511db445b92f643c0229e7a14 | 51c4c028f490213495b3a6df77e94afcfa03c254 | /scara/InverseKinem.sci | 537d967973667b07a9e794f231ace87794b4d057 | [] | no_license | dgerod/robotics-utils | d8b130290ba77a3aa2fbe9502c39cfba78f40609 | 5d5d6c4c426de3bf859303b56c431ecd4b203d86 | refs/heads/master | 2020-05-17T08:31:03.702958 | 2016-08-20T11:14:57 | 2016-08-20T11:14:57 | 32,637,117 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,647 | sci | InverseKinem.sci | // =================================================================================
// InverseKinem.sci
// =================================================================================
function [Ret, Joints] = scrInvKinem (KinemParams, TCP0)
//
// DESCRIPTION
// Solves the Inverse Kinematics problem of a Scara-RRP robot.
// PARAMETERS
// KinemParams [IN] : Kinematics parameters [h,l1,l2].
// TCP0 [IN] : Pose [x,y,z]' in RCS.
// Joints [OUT] : Position [j1,j2,j3]' in JCS .
// RETURN
// Ret : Success (1) or error (<0)
//
Ret = 1;
Joints = zeros(3,2);
// Prepare data ---
h = KinemParams(1); l1 = KinemParams(2); l2 = KinemParams(3);
x = TCP0(1); y = TCP0(2); z = TCP0(3);
// Solve Inverse Kinematics problem ---
// Solve RR joints
[Ret,Theta] = __scrIkRR( [l1,l2],TCP0 );
if Ret <> 1 then
Ret = -1;
Joints = zeros(3,2);
return [Ret,Joints];
end
// Solve prismatic joint
J3 = h - z;
// Return the two solutions
Joints(:,1) = [Theta(:,1); J3];
Joints(:,2) = [Theta(:,2); J3];
Ret = 1;
return [Ret,Joints];
endfunction
// -----------------------------------------------------------------------------
function [Ret, Theta] = __scrIkRR (KinemParams, TCP0)
Ret = 1;
Theta = zeros(2,2);
// Prepare data ---
l1 = KinemParams(1); l2 = KinemParams(2);
x = TCP0(1); y = TCP0(2);
// Solve Inverse Kinematics problem ---
cosTheta2 = (x*x + y*y - l1*l1 - l2*l2) / (2*l1*l2);
if abs(cosTheta2) > 1.0 then
// Solution can not be reached
Ret = -1;
return [Ret,Joints];
else
//Right Elbow Solution
sinTheta2(1) = sqrt( 1-cosTheta2*cosTheta2 );
// Left Elbow Solution
sinTheta2(2) = -sqrt( 1-cosTheta2*cosTheta2 );
J2(1) = atan( sinTheta2(1),cosTheta2 );
J2(2) = atan( sinTheta2(2),cosTheta2 );
k1 = l1 + l2*cosTheta2;
k2(1) = l2*sinTheta2(1);
k2(2) = l2*sinTheta2(2);
aux1 = atan( y,x );
aux2(1) = atan( k2(1),k1 );
aux2(2) = atan( k2(2),k1 );
J1(1) = aux1 - aux2(1);
if J1(1) > %pi then
J1(1) = J1(1) - 2*%pi;
elseif J1(1) < -%pi then
J1(1) = J1(1) + 2*%pi;
end
J1(2) = aux1 - aux2(2);
if J1(2) > %pi then
J1(2) = J1(2) - 2*%pi;
elseif J1(2) < -%pi then
J1(2) = J1(2) + 2*%pi;
end
end
// Return the two solutions
Theta(:,1) = [J1(1),J2(1)]';
Theta(:,2) = [J1(2),J2(2)]';
Ret = 1;
return [Ret,Theta];
endfunction
// =================================================================================
|
d43eab1b1f0f26d07e4992413b2d510c02348fc8 | e82d1909ffc4f200b5f6d16cffb9868f3b695f2a | /Lista 4/Thirdquestion.sce | adf23613224b4079f8d5faa6190bb703c4949ecf | [] | no_license | AugustoCam95/Computational-Linear-Algebra | eb14307dd3b45ccc79617efe74d1faca639c36c5 | 99b1a1f9499fbc4343bd5c878444e9e281952774 | refs/heads/master | 2020-03-30T22:26:23.790763 | 2018-10-05T03:34:06 | 2018-10-05T03:34:06 | 151,666,289 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,099 | sce | Thirdquestion.sce |
function B=ThridQuestion(A)
[l, c] = size(A);
t=2*l
r=2*c
//Inica H como uma matriz de zeros
H=zeros(t,r)
//Insere A' na matriz H
for i=1:l
for j=1:c
H(i,j)=A(j,i)
end
end
//Antirotaciona H
B=H;
//Variável para guardar a metade da ordem
p=r/2;
//Laço para trocar H1 e H3
for i = p+1:r
k= p+1;
for j = 1:p
B(i,k) = H(i,j);
B(j,i) = H(k,i);
k=k+1;
end;
end
//Laço para trocar H2 e H4
for i = 1:p
k= 1;
for j = p+1:r
B(j,i) = H(k,i);
B(i,k) = H(i,j);
k=k+1;
end;
end
H=B;
//Antirotaciona H
B=H;
//Variável para guardar a metade da ordem
p=r/2;
//Laço para trocar H1 e H3
for i = p+1:r
k= p+1;
for j = 1:p
B(i,k) = H(i,j);
B(j,i) = H(k,i);
k=k+1;
end;
end
//Laço para trocar H2 e H4
for i = 1:p
k= 1;
for j = p+1:r
B(j,i) = H(k,i);
B(i,k) = H(i,j);
k=k+1;
end;
end
H=B;
//Insere A em H e depois Antirotaciona novamente
for i=1:l
for j=1:c
H(i,j)=A(j,i)
end
end
B=H;
//Variável para guardar a metade da ordem
p=r/2;
//Laço para trocar H1 e H3
for i = p+1:r
k= p+1;
for j = 1:p
B(i,k) = H(i,j);
B(j,i) = H(k,i);
k=k+1;
end;
end
//Laço para trocar H2 e H4
for i = 1:p
k= 1;
for j = p+1:r
B(j,i) = H(k,i);
B(i,k) = H(i,j);
k=k+1;
end;
end
H=B;
//R recebe os autovetores e L recebe os autovalores
[R,L]=spec(H)
//gerando matriz S
S = -1*L(1:l,1:c);
//gerando matriz V
V = sqrt(2)*R(1:l,1:c);
//gerando matriz U
U = -1*sqrt(2)*R(l+1:2*l,1:c);
disp("Matriz U")
disp(U)
disp("Matriz S")
disp(S)
disp("Matriz V")
disp(V)
B=U*S*V
endfunction
|
904aa33871e0d5351184c6f6957ac4be9f15a701 | 6813325b126713766d9778d7665c10b5ba67227b | /Chapter7/Ch_7_Eg_7.2.sce | e0dee050077fe45f5e1c1abfee2066aecc0f3065 | [] | no_license | arvindrachna/Introduction_to_Scilab | 955b2063b3faa33a855d18ac41ed7e0e3ab6bd1f | 9ca5d6be99e0536ba1c08a7a1bf4ba64620ec140 | refs/heads/master | 2020-03-15T19:26:52.964755 | 2018-05-31T04:49:57 | 2018-05-31T04:49:57 | 132,308,878 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,213 | sce | Ch_7_Eg_7.2.sce | //A program to implement the false position method
//Input:
// f = The function handle of the equation (written as x0 Scilab function) whose root is to be found.
// (x0, x1) = The initial interval in which the root is to be found.
// epsilon = The desired accuracy level of the root.
// maxit = the maximum number of iterations to be performed in case the desired accuracy is not attained.
//Output:
// root= Calculated root.
// noit = The number of iterations performed to obtain the root.
function [root, noit] = ak_false_position(f, x0, x1, epsilon, maxit)
// Check the presence of a root at the interval boundary
if abs(f(x0))<= %eps then
root=x0;
noit=0;
return;
end
if abs(f(x1))<= %eps then
root=x1;
noit=0;
return;
end
// Verify the given initial interval to check the presence of a root in it.
if f(x0) * f(x1)>0 then
//Invalid initial interval. Generate an error message and return to the main Scilab window.
root="invalid interval";
noit=0;
return;
else
// Valid initial interval.
i=0;
while i < maxit
i=i+1;
// Calculate the next better root.
x2=x0-(x1-x0) * (f(x0)/(f(x1)-f(x0)));
// Check the accuracy of the computed root with the desired accuracy.
if (abs(f(x2))< epsilon) then
root=x2;
noit=i;
return;
end
// Select the interval having the root for the next iteration.
if f(x2)*f(x0) >= 0 then
x0=x2;
else
x1=x2;
end
end
//The maximum number of iterations is reached and no root with the desired accuracy is found. Hence, returning the root obtained after performing the maximum number of iterations.
root=x2;
noit=i;
end
endfunction
// The equation whose root is to be found
function [y]=f(x)
y=x^3-2*x-5;
endfunction
// main program
[r,n]=ak_false_position(f,2,3,.001,50);
disp(r,'r=',n,'n=');
|
4bd3f686915f4513436609921b7b40798656ad98 | 717ddeb7e700373742c617a95e25a2376565112c | /3424/CH6/EX6.6/Ex6_6.sce | 655a0c4fa2fd4e2d4ca6753b6996dbe7cafa39ae | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 449 | sce | Ex6_6.sce | clc
// Intialization of variables
U = 40*5280/3600 // ft/s
b = 200 // ft
D = 0.00238 // slugs/ft^3
// calculations
V2 = (((U^2)*(1 + (4)/(%pi)^2)))^0.5// ft/s
y2 = b/2 // ft
Df = (D*(V2^2 - U^2)/(2) + D*(y2 - 0)*32.2)/144
// results
printf("the magnitude of velocity at point directly above origin is %.1f ft/s",V2)
printf("\nthe elevation of point above the plain is %.f ft",y2)
printf("\nthe difference in pressure is %.4f psi",Df)
|
c19da0161d1513e9f81bbbc8dd6cfb2ce619ffc9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH3/EX3.6/Ch03Ex6.sce | 4a0a725ded7c9498f3b3826cbde02be0dba6d8ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,636 | sce | Ch03Ex6.sce | // Scilab code Ex3.6 : Pg:101 (2008)
clc;clear;
F = 12; // Focal length of the eye-piece, cm
// For Huygen's eye-piece
// As F = f1*f2/(f1 + f2 - d) and f1 = 3*f; f2 = f; d = 2*f, solving for f
f = poly(0, 'f');
f = roots(3*f*f-F*(3*f+f-2*f)); // Focal length of the eye-lens, cm
d = 2*f(1); // Distance of separation of two lenses, cm
f1 = 3*f(1); // Focal length of the first plano-convex lens, cm
f2 = f(1); // Focal length of the second plano-convex lens, cm
printf("\nFor Huygen eye-piece:");
printf("\nThe focal lengths of the plano-convex lenses are %1.0f cm and %2.0f cm", f1, f2);
printf("\nThe distance between the lenses = %2.0f cm", d);
// For Ramsden eye-piece
// As F = f1*f2/(f1 + f2 - d) and f1 = f; f2 = f; d = 2/3*f, solving for f
f = poly(0, 'f');
f = roots(f*f-12*(f+f-2/3*f)); // Focal length of the eye-lens, cm
d = 2/3*f(1); // Distance of separation of two lenses, cm
f1 = f(1); // Focal length of the first plano-convex lens, cm
f2 = f(1); // Focal length of the second plano-convex lens, cm
printf("\n\nFor Ramsden eye-piece:");
printf("\nThe focal lengths of the plano-convex lenses are %1.0f cm and %2.0f cm", f1, f2);
printf("\nThe distance between the lenses = %5.2f cm", d);
// Result
// For Huygen eye-piece:
// The focal lengths of the plano-convex lenses are 24 cm and 8 cm
// The distance between the lenses = 16 cm
// For Ramsden eye-piece:
// The focal lengths of the plano-convex lenses are 16 cm and 16 cm
// The distance between the lenses = 10.67 cm
// The distance between the lenses for Ramsden eye-piece is wrong in the textbook |
98dfea1ab43580dfc9584100d99e7c40c9b43033 | 05b2bd67239938195f6ea021fd482c06f69c9145 | /p8.sci | 4f76c90537ae865b7b2f8117a55b206611652ef4 | [] | no_license | ZimmSebas/Metodos | 213aa8af793726409cf0346c3315663aa59ae835 | 5fb6f28413064194ae8f625da48914b471bb50f7 | refs/heads/master | 2020-03-31T15:18:35.349807 | 2019-12-21T23:19:21 | 2019-12-21T23:19:21 | 152,331,779 | 5 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,168 | sci | p8.sci | //reglaTrapecio(fn,a,b). Aplica método del trapecio a una función fn de a hasta b.
function y = reglaTrapecio(fn, a, b)
h = b-a;
y = h/2 * (fn(a) + fn(b));
endfunction
//reglaSimpson(fn,a,b). Aplica método del Simpson a una función fn de a hasta b.
function y = reglaSimpson(fn, a, b)
h = (b-a)/2;
med = (b+a)/2;
y = h/3 * (fn(a) + 4*fn(med) + fn(b));
endfunction
//metodoCompTrapecio(fn,a,b,n). Aplica método del trapecio a una función fn de a hasta b en n intervalos.
function y = metodoCompTrapecio(fn, a, b, n)
h = (b-a)/n;
suma = 0;
for i = 0:n
asd = a + i*h;
if(i == 0 | i == n)
suma = suma + fn(asd);
else
suma = suma + 2*fn(asd);
end
end
y = suma * h/2;
endfunction
//metodoCompSimpson(fn,a,b,n). Aplica método del Simpson a una función fn de a hasta b en n intervalos.
function y = metodoCompSimpson(fn, a, b, n)
h = (b-a)/n;
suma = 0;
for i = 0:n
if(i == 0 | i == n)
suma = suma + fn(a + i*h);
else
if (pmodulo(i,2) == 1)
suma = suma + 4*fn(a + i*h);
else
suma = suma + 2*fn(a + i*h);
end
end
end
y = suma * h/3;
endfunction
//reglaTrapecioExt(fn,x1,x2,y1,y2). Aplica método del trapecio a una función fn de x1 a x2 y de y1 a y2.
function y = reglaTrapecioExt(fn,x1,x2,y1,y2)
h = (y2-y1)*(x2-x1)/4;
y = h * (fn(x1,y1)+fn(x2,y1)+fn(x1,y2)+fn(x2,y2));
endfunction
//IntDosS(f,a,b,cx,dx,n,m). Aplica método de Simpson a una función fn de dos variables desde a hasta b, y desde cx a dx en N iteraciones de x e M iteraciones de Y.
function y = IntDosS(f,a,b,cx,dx,n,m)
deff('z=aux1(y)','z=f(a,y)')
deff('z=aux2(y)','z=f(b,y)')
temp = metodoCompSimpson(aux1,cx(a),dx(a),m) + metodoCompSimpson(aux2,cx(b),dx(b),m)
h = (b-a)/n
for i=1:n-1
xi = a+i*h
deff('z=aux(y)','z=f(xi,y)')
if pmodulo(i,2) == 0 then
temp = temp + 2*(metodoCompSimpson(aux,cx(xi),dx(xi),m))
else
temp = temp + 4*(metodoCompSimpson(aux,cx(xi),dx(xi),m))
end
end
y = (h/3) * temp
endfunction
//IntDosT(f,a,b,cx,dx,n,m). Aplica método de trapecio a una función fn de dos variables desde a hasta b, y desde cx a dx en N iteraciones de x e M iteraciones de Y.
function y = IntDosT(f,a,b,cx,dx,n,m)
deff('z=aux1(y)','z=f(a,y)')
deff('z=aux2(y)','z=f(b,y)')
temp= (metodoCompTrapecio(aux1,cx(a),dx(a),m)/2) + (metodoCompTrapecio(aux2,cx(b),dx(b),m)/2)
h = (b-a)/n
for i=1:n-1
xi = a+i*h
deff('z=aux(y)','z=f(xi,y)')
temp = temp + (metodoCompTrapecio(aux,cx(xi),dx(xi),m))
end
y = h * temp
endfunction
function y=cx1(x)
y=-sqrt(2*x-x**2)
endfunction
function y=dx1(x)
y=sqrt(2*x-x**2)
endfunction
function z=uno(x,y)
z=1
endfunction
function y = ln(x)
y = log(x);
endfunction
function y = fb(x)
y = x**(1/3);
endfunction
function y = fc(x)
y = sin(x)**2;
endfunction
function y = dosb(x)
y = x**3;
endfunction
function y = dosf(x)
y = x**2 * %e**x;
endfunction
|
de755f31af9e6297531ff86149cb1a0327ffdf1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1442/CH8/EX8.5/8_5.sce | 634a89dd0057489c379bd85c8c1424befbe04a3e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 300 | sce | 8_5.sce | clc
//initialisation of variables
m= 0.1 //kg
p= 3 //bar
p1= 10 //bar
h1= 2964.3 //kJ/kg
v1=0.2378
s2= 7.1619 //kJ/k
s1= 6.9641 //kJ/k
//CALCULATIONS
h2= h1+(p-p1)*10^5*v1*10^-3
S= m*(s2-s1)
//RESULTS
printf (' enthalpy = %.1f kJ/kg',h2)
printf (' \n change in entropy = %.5f kJ/K',S)
|
f89c5dd0b81b1e01399951221fcba316cb474822 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2276/CH11/EX11.4/chapter11_ex4.sce | 8617d9ac3be6fc26052608d6df5492e1614fa157 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,265 | sce | chapter11_ex4.sce | clc
clear
//input
vht=100;//higher threshold voltage in volts
rl1=5;//resistance of load in kiloohms
rl2=10;//load resistance in kiloohms
//calculations
//for rl1
//when va=0
ia1=vht/rl1;//anode current in milliamperes
//when va=100
ia2=0;//since va=vht
//for rl2
//when va=0
ia3=vht/rl2;//anode current in milliamperes
//when va=100
ia4=0;//since va=vht
//two load lines are drawn on VI graph which coincides the aanode characteristic curve at four points
//using the data given
//point 1
vg1=0;//grid voltage in volts
va1=71;//anode voltage in volts
i1=5.9;//anode current in milliamperes
//point 2
vg2=-2;//grid voltage in volts
va2=79;//anode voltage in volts
i2=4.3;//anode current in milliamperes
//point 3
vg3=0;//grid voltage in volts
va3=57;//anode voltage in volts
i3=4.3;//anode current in amperes
//point 4
vg4=-2;//grid voltage in volts
va4=68;//anode voltage in volts
i4=3.2;//anode current in amperes
//output
mprintf('for a load of 5kiloohm,the operating points are \n vg=%3.0fV: va=%3.0fV ia=%3.1fmA \n vg=%3.0fV: va=%3.0fV ia=%3.1fmA \n for a load of 10 kiloohms,the operating points are \n vg=%3.0fV: va=%3.0fV ia=%3.1fmA \n vg=%3.0fV: va=%3.0fV ia=%3.1fmA',vg1,va1,i1,vg2,va2,i2,vg3,va3,i3,vg4,va4,i4)
|
2d2c715f15c60dcde5d19e77b39beda9bc20154f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1415/CH1/EX1.3.2/ex2.sce | 83d591c121eafa5cacadfea679af3b9f90c41935 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,598 | sce | ex2.sce | //Example 2 Page 81
clc
clear
disp('a)')
disp('two write the equation we need the two values one is the slope m and other is y intercept b')
disp('the given points are')
disp('(1,2),(3,-1)')
y2=-1;//assigning the values
y1=2;//assigning the values
x1=1;//assigning the values
x2=3;//assigning the values
m=(y2-y1)/(x2-x1);//calculating m value
mprintf("the slope of the line m = %f",m);//printing the valye m
disp('we now find the y intercept b')
b=y1-m*x1;//calculating the value b
mprintf("the value of b = %f",b);//printing the valye b
disp('substituting the values m and b in the equation we get the equation of the line is')
disp('y=3x/2+7/2')
disp('b)')
// we dont have the two points here but we have the parallel line
disp('the line parallel has the same slope ')
//the given line is 3x+4y=5
m=-3/4//assigning the slope value
disp('we now have the slope and also the point (2,-2)')
x1=2//assigning the value of x1
y1=-2//assigning the value of y1
b=y1-m*x1;//calculating b value
disp(b,'b=-2-(-3/4)(2)=')
disp('substituting the values m and b in the equation y=mx+c, we get' )
disp('y=-3x/4-7/2')
disp('c)')
//since the line is horizontal it means that the slope m = 0
disp('the point is (-9,5)')
m=0//since the line is horizontal
x1=-9//assigning the valye
y1=5//assigning the value
b=y1-m*x1;//calculating b value
disp(b,'5-(0)(-9)=')//displaying the value of b
disp('the line is y=5')//displaying line quation
disp('d)')
//since the line is vertical the slope is undefined
disp('the line can be any solution so we take it as x=-9')
|
148da47f36c7ca1d774b5b0a8f125eb13dd5e582 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2045/CH4/EX4.42/Ex4_42.sce | 31d066b38ca4feac2f632593364de99dd799715b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sce | Ex4_42.sce | //pagenumber 226 example 42
clear
beta1=50;
vb=0.6;//volt
vcc=18;//volt
colres=4.3*10^3;//ohm
ic=1.5*10^-3;//ampere
vce=10;//volt
stability=4;
r1=(vcc-vce)/ic;
re=r1-colres;
w=(beta1+1)*(stability)*re/(1+beta1-stability);
disp("re = "+string((re))+"ohm");
disp("rb = "+string((w))+"ohm");//correction in the book
|
63a86b484e0ebaa556af16fba24b4713e2fa7e05 | 449d555969bfd7befe906877abab098c6e63a0e8 | /25/CH6/EX6.9/6_9.sce | 36370461933e7556b297dbb7c50e16a9e9c28884 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 215 | sce | 6_9.sce | //example:-6.9,page no.-323.
//program to designa triangular taper and a klopfenstein taper.
taom=0.02;Zl=50;Zo=100;
tao_o=0.5*log(Zl/Zo);
A=acosh(tao_o/taom);
A=real(A);
disp(tao_o,'tao_o = ')
disp(A,'A = ') |
61c07b971e038c19be9cdb246e6f18a9d3b12a88 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1238/CH1/EX1.8.a/8_a.sce | 14f4191af43cf799c9d56366510cbf508dbd649c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 209 | sce | 8_a.sce | //decimal to binary conversion//
//example 8.a//
clc
//clears command window //
clear
//clears//
//decimal to binary conversion//
x=1996
a=dec2bin(1996)
disp('the result in binary form is')
disp(a)
|
9437f9a217f06e756dcb74c579028bb9ff0dec7f | 39c201c777151f939341e8f8150242bcde5a111b | /CH3/EX3.8/example8.sce | c885f9c1e979d16ffa02a0db66a782ea9d9ff018 | [] | no_license | nidhimj22/Scilab_Project- | 925a5883384736e79f1e600535461c6c9f06de40 | 4a9d1db96787ba0ea4e996349523a0b84bdacae3 | refs/heads/master | 2021-01-20T05:49:48.811688 | 2014-02-06T10:03:52 | 2014-02-06T10:03:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 713 | sce | example8.sce | // to find the load voltage, load current,diode power
// Electronic Principles
// By Albert Malvino , David Bates
// Seventh Edition
// The McGraw-Hill Companies
// Example 3-8, page 69`
clear;clc; close;
// Given data
Rl=10;// load resistance in ohms
Rb=0.23;// bulk resistance in ohms
// diode drop=0.7 volts
// Calculations
Rt=Rl+Rb;// total resistance in ohms
Vt=10-0.7;// voltage of battery-diode drop
I=Vt/Rt;// load current
Vl=I*10;// load voltage
Vd=10-Vl;// source voltage-load voltage
P=Vd*I;
disp("Amperes",I,"Load Current=")
disp("Volts",Vl,"Load Voltage=")
disp("Watts",P,"Diode power=")
// Result
// load voltage is 9.09 volts
// load current is 0.909 amperes
// diode power is 0.826 watts
|
b2d36f19a996da5e1d972daf12f1b11f152bdc6a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1592/CH9/EX9.10/example_9_10.sce | 6bc1c9ce74626d6d19ca7773ff412fba8b0deebc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 247 | sce | example_9_10.sce | //Scilab Code for Example 9.10 of Signals and systems by
//P.Ramakrishna Rao
//Maximum Value of Auto-Correlation Function
clc;
clear;
disp('Maximum Value of ACF=Rxx(0)');
x=200*integrate('exp(-2*t)','t',0,1000);
disp(x,'Energy in x(t)=');
|
af3ce19bfa9a5d58d4611f6dbc85fc47f01058ac | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH2/EX2.18/Ex2_18.sce | 724a6345bc6b0965e9e6da004e81c3a98224cd81 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 236 | sce | Ex2_18.sce |
// Ex2_18
clc;
//Given:
// 1 ev=8065 cm^-1
E=14.4*10^3;// in eV
// Solution:
f1=E*8065;// frequency in cm^-1
printf("\n The frequency in cm^-1 is = %f",f1)
fr=f1*3*10^8*100;
printf("\n The frequency in Hz is = %f",fr)
|
1e68ef7660fd78d4d3ab51309b9b62057ff92f9b | 7fa099e9d565bee9cdd572755843852769c99498 | /tests/PERZAD.tst | 542adc5dd75f7f9ecc2d48a334de7dfcfe752247 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"BSD-2-Clause"
] | permissive | Peter-J-Jansen/SDL-hyperion | 0d2a16f1d837fa27b8f0aaa927dc84a8ebdb44f6 | 58578601d7a34fc11f050b0ac4fd425a4c0422eb | refs/heads/master | 2023-04-27T03:42:18.421272 | 2022-11-27T00:16:06 | 2022-11-27T00:16:06 | 238,422,138 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 132 | tst | PERZAD.tst | *Testcase PERZAD: Quick PER Zero-Address Detection test
sysclear
archlvl z/Arch
loadcore "$(testpath)/PERZAD.core"
runtest .2
*Done
|
6c1ef45e4419b887d475f2d05893b1252572f7b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH17/EX17.18/Ch017Ex18.sce | 9a4e782e4e6660b0e597a54f48662550803d9b6d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 422 | sce | Ch017Ex18.sce | // Scilab code Ex17.18 : Pg:898 (2011)
clc;clear;
count_err = 1e-03; // Fractional error in counting
m = 3; // Plateau slope
delta_V = count_err*100/m*100; // Maximum permissible voltage fluctuation in a GM counter, volt
printf("\nThe maximum permissible voltage fluctuation in a GM counter = %3.1f volts", delta_V);
// Result
// The maximum permissible voltage fluctuation in a GM counter = 3.3 volts
|
f06cf9ce69c7935ceae7d133113e96f036b47cc3 | 814f1fb7876c113556c8a80e257bc16eb7cdf530 | /old stuff/file_test.sce | 967e7c8c555e019ee2950be27d8102d943bf9ab2 | [] | no_license | jamiepg1/Vorbis_decoder | 10d6847120efce98684092ad1d4c812290faf9e1 | 6cabd547539ac607e625f90e1f72023526de0672 | refs/heads/master | 2018-05-12T18:54:09.244192 | 2013-07-30T21:51:27 | 2013-07-30T21:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 361 | sce | file_test.sce |
printf('start file load');
filename = "sample.ogg";
[FILE, err] = mopen(filename, 'rb');
if(err)
printf('Error fopen\n');
end;
i = 1;
while(~meof(FILE))
tmp = mget(1000,'uc',FILE);
tmp_length = length(tmp) - 1;
source(i:i+tmp_length) = tmp;
i = i + tmp_length;
end;
err = mclose(FILE);
printf('load completed %d %d\n', size(source));
|
7f03f34c6e69962f42d768be78e7032b56105a4c | f04d3d47f893de08cd99a31b4870112915b80d5b | /Datasets/vehicle/data8.tst | 69c16cb92b7e7163fd9d6920d6471019d1125cac | [] | no_license | MesumRaza/MyWorkInPython | f5364b8514943e44c7200123653da9f4551251b1 | bd8c9b3ca2fb02ae6d2b626054fa3cd32c28b330 | refs/heads/master | 2021-08-19T21:46:41.412995 | 2017-11-27T13:37:52 | 2017-11-27T13:37:52 | 111,728,604 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 15,143 | tst | data8.tst | 0.391304 0.230769 0.513889 0.213974 0.131868 0.113208 0.176471 0.628571 0.0833333 0.3 0.152632 0.125899 0.0880503 0.0394737 0.363636 0.414634 0.833333 0.933333 class0
0.5 0.653846 0.75 0.484716 0.21978 0.132075 0.490196 0.257143 0.416667 0.571429 0.442105 0.408873 0.660377 0.105263 0.363636 0.146341 0.566667 0.666667 class1
0.326087 0.0769231 0.277778 0.170306 0.131868 0.0943396 0.104575 0.742857 0.0833333 0.157143 0.0894737 0.0743405 0 0.0394737 0.0454545 0.146341 0.866667 0.933333 class0
0.804348 0.5 0.833333 0.406114 0.153846 0.132075 0.529412 0.228571 0.416667 0.442857 0.415789 0.452038 0.320755 0.0789474 0.5 0.170732 0.6 0.733333 class1
0.304348 0.307692 0.361111 0.157205 0.120879 0.0754717 0.235294 0.571429 0.166667 0.257143 0.178947 0.160671 0.433962 0.263158 0.863636 0.0487805 0.166667 0.133333 class1
0.347826 0.538462 0.597222 0.283843 0.153846 0.113208 0.339869 0.4 0.25 0.457143 0.310526 0.261391 0.509434 0.171053 0.318182 0.243902 0.366667 0.4 class1
0.369565 0.384615 0.444444 0.231441 0.186813 0.113208 0.156863 0.657143 0.0833333 0.385714 0.147368 0.113909 0.36478 0.0657895 0.181818 0.146341 0.833333 0.933333 class0
0.369565 0.538462 0.625 0.248908 0.186813 0.150943 0.333333 0.457143 0.25 0.6 0.247368 0.245803 0.477987 0.184211 0.409091 0 0.3 0.466667 class0
0.630435 0.384615 0.777778 0.406114 0.175824 0.150943 0.477124 0.285714 0.416667 0.342857 0.378947 0.394484 0.188679 0.0789474 0.363636 0.292683 0.633333 0.766667 class3
0.804348 0.769231 0.888889 0.519651 0.208791 0.150943 0.647059 0.171429 0.583333 0.657143 0.489474 0.569544 0.63522 0.105263 0.227273 0.390244 0.466667 0.733333 class1
0.456522 0.5 0.708333 0.310044 0.252747 0.188679 0.294118 0.485714 0.25 0.528571 0.221053 0.208633 0.522013 0.131579 0.681818 0.512195 0.466667 0.633333 class0
0.26087 0.423077 0.361111 0.0917031 0.120879 0.0754717 0.235294 0.542857 0.166667 0.385714 0.210526 0.166667 0.477987 0.328947 0.363636 0.0243902 0.133333 0.0666667 class2
0.478261 0.692308 0.777778 0.401747 0.175824 0.132075 0.509804 0.257143 0.416667 0.614286 0.410526 0.430456 0.792453 0.118421 0.590909 0 0.5 0.566667 class3
0.652174 0.307692 0.597222 0.393013 0.175824 0.132075 0.411765 0.342857 0.333333 0.342857 0.363158 0.32494 0.18239 0.0789474 0.318182 0.731707 0.7 0.833333 class3
0.521739 0.538462 0.666667 0.344978 0.142857 0.0943396 0.555556 0.2 0.5 0.428571 0.442105 0.494005 0.578616 0.197368 0.363636 0 0.533333 0.333333 class2
0.391304 0.0769231 0.361111 0.240175 0.131868 0.0943396 0.228758 0.542857 0.166667 0.185714 0.205263 0.165468 0.0880503 0.0657895 0.0454545 0.0243902 0.7 0.733333 class3
0.413043 0.153846 0.555556 0.331878 0.21978 0.113208 0.27451 0.485714 0.166667 0.157143 0.263158 0.202638 0.220126 0.131579 0.272727 0.219512 0.466667 0.466667 class1
0.586957 0.961538 0.958333 0.550218 0.252747 0.169811 0.745098 0.114286 0.666667 0.914286 0.547368 0.681055 0.616352 0.171053 0 0.317073 0.366667 0.566667 class3
0.195652 0.384615 0.458333 0.235808 0.230769 0.0943396 0.254902 0.514286 0.166667 0.385714 0.268421 0.183453 0.402516 0.276316 0.0909091 0.414634 0.233333 0.233333 class2
0.695652 0.692308 0.555556 0.449782 0.263736 0.0754717 0.542484 0.2 0.416667 0.585714 0.442105 0.473621 0.496855 0.210526 0.272727 0.487805 0.6 0.433333 class2
0.282609 0.461538 0.416667 0.0786026 0.0989011 0.0943396 0.235294 0.542857 0.166667 0.371429 0.210526 0.167866 0.484277 0.328947 0.409091 0.121951 0.133333 0.0666667 class2
0.347826 0.307692 0.5 0.344978 0.285714 0.0943396 0.294118 0.457143 0.166667 0.257143 0.268421 0.226619 0.27673 0.197368 0.363636 0.292683 0.5 0.466667 class2
0.478261 0.5 0.5 0.253275 0.208791 0.169811 0.326797 0.457143 0.25 0.528571 0.236842 0.236211 0.396226 0.197368 0.363636 0.097561 0.266667 0.4 class0
0.5 0.5 0.416667 0.393013 0.252747 0.0754717 0.359477 0.371429 0.25 0.428571 0.278947 0.291367 0.389937 0.131579 0.772727 0.243902 0.8 0.733333 class2
0.369565 0.5 0.458333 0.144105 0.120879 0.169811 0.320261 0.485714 0.25 0.571429 0.210526 0.226619 0.484277 0.223684 0 0.219512 0.2 0.4 class0
0.804348 0.884615 0.958333 0.414847 0.10989 0.0566038 0.908497 0.0285714 0.833333 0.728571 0.747368 0.892086 1 0.302632 0.5 0.243902 0.233333 0.0666667 class2
0.565217 0.192308 0.472222 0.349345 0.208791 0.0754717 0.339869 0.371429 0.25 0.185714 0.331579 0.275779 0.176101 0.157895 0.0909091 0.536585 0.8 0.7 class2
0.26087 0.346154 0.361111 0.069869 0.0659341 0.0943396 0.24183 0.571429 0.166667 0.357143 0.205263 0.164269 0.320755 0.342105 0.454545 0.170732 0.133333 0.0333333 class2
0.326087 0.269231 0.402778 0.183406 0.131868 0.0943396 0.117647 0.714286 0.0833333 0.228571 0.0894737 0.0815348 0.220126 0.0657895 0.0454545 0.0243902 0.566667 0.633333 class3
0.717391 0.923077 0.930556 0.572052 0.21978 0.0754717 0.980392 0 0.916667 0.757143 0.815789 0.96283 0.949686 0.355263 0.409091 0.756098 0.133333 0.1 class2
0.347826 0.0769231 0.166667 0.0742358 0.10989 0.0377358 0.0653595 0.828571 0 0.1 0.0473684 0.0431655 0.119497 0.302632 0.227273 0.317073 0.166667 0.1 class1
0.695652 0.692308 0.902778 0.406114 0.142857 0.169811 0.51634 0.257143 0.416667 0.628571 0.405263 0.432854 0.534591 0.0657895 0.818182 0.097561 0.666667 0.8 class1
0.456522 0.269231 0.625 0.358079 0.164835 0.132075 0.372549 0.371429 0.25 0.3 0.284211 0.294964 0.150943 0.0263158 0.0909091 0.219512 0.8 0.966667 class1
0.282609 0.461538 0.430556 0.28821 0.252747 0.0754717 0.222222 0.542857 0.166667 0.4 0.221053 0.164269 0.503145 0.157895 0.454545 0.195122 0.366667 0.333333 class2
0.76087 0.692308 0.833333 0.445415 0.175824 0.150943 0.54902 0.228571 0.5 0.585714 0.442105 0.470024 0.578616 0.0789474 0.318182 0.390244 0.6 0.8 class1
0.369565 0.5 0.486111 0.126638 0.0879121 0.169811 0.313725 0.485714 0.25 0.614286 0.226316 0.221823 0.389937 0.236842 0 0.390244 0.2 0.366667 class0
0.586957 0.384615 0.722222 0.406114 0.164835 0.150943 0.444444 0.285714 0.333333 0.357143 0.368421 0.365707 0.27673 0.0657895 0.272727 0.219512 0.633333 0.8 class1
0.413043 0.307692 0.361111 0.0917031 0.0549451 0.0943396 0.176471 0.685714 0.0833333 0.357143 0.157895 0.109113 0.327044 0.289474 0.318182 0.463415 0.2 0.1 class0
0.347826 0.192308 0.583333 0.227074 0.131868 0.113208 0.267974 0.485714 0.166667 0.157143 0.257895 0.20024 0.176101 0.144737 0.0454545 0.0243902 0.366667 0.366667 class1
0.413043 0.153846 0.486111 0.349345 0.252747 0.0754717 0.27451 0.457143 0.166667 0.185714 0.284211 0.214628 0.113208 0.157895 0 0.097561 0.733333 0.7 class2
0.217391 0.346154 0.430556 0.209607 0.186813 0.0943396 0.24183 0.542857 0.166667 0.342857 0.221053 0.176259 0.308176 0.197368 0.0909091 0.0487805 0.266667 0.3 class2
0.434783 0.538462 0.597222 0.266376 0.142857 0.0943396 0.359477 0.4 0.25 0.414286 0.352632 0.279376 0.578616 0.184211 0.545455 0.097561 0.366667 0.366667 class3
0.717391 0.769231 0.805556 0.384279 0.120879 0.169811 0.686275 0.142857 0.583333 0.685714 0.515789 0.610312 0.515723 0.157895 0.5 0.585366 0.4 0.566667 class3
0.76087 0.615385 0.875 0.419214 0.164835 0.150943 0.614379 0.171429 0.5 0.528571 0.510526 0.540767 0.666667 0.171053 0.272727 0.390244 0.433333 0.566667 class1
0.5 0.576923 0.597222 0.318777 0.131868 0.113208 0.385621 0.371429 0.333333 0.485714 0.342105 0.304556 0.54717 0.105263 0.681818 0 0.633333 0.666667 class3
0.434783 0.384615 0.527778 0.253275 0.186813 0.113208 0.163399 0.628571 0.0833333 0.385714 0.136842 0.116307 0.314465 0.0526316 0.772727 0.292683 0.9 0.966667 class0
0.565217 0.730769 0.888889 0.318777 0.0879121 0.150943 0.640523 0.171429 0.583333 0.685714 0.468421 0.567146 0.666667 0.184211 0.136364 0.0487805 0.366667 0.433333 class3
0.804348 0.807692 0.861111 0.423581 0.186813 0.169811 0.660131 0.142857 0.583333 0.757143 0.484211 0.581535 0.704403 0.184211 0.772727 0.390244 0.4 0.566667 class1
0.195652 0.384615 0.416667 0.637555 0.637363 1 0.176471 0.628571 0.0833333 0.385714 0.531579 0.125899 0.396226 0.526316 0.181818 0.219512 0.466667 0.6 class0
0.413043 0.0769231 0.25 0.139738 0.120879 0.0754717 0.0653595 0.828571 0 0.2 0.0631579 0.0455635 0.0440252 0.0657895 0.272727 0.414634 0.7 0.733333 class0
0.456522 0.615385 0.583333 0.144105 0.0989011 0.150943 0.30719 0.485714 0.25 0.6 0.242105 0.219424 0.484277 0.223684 0.454545 0.170732 0.233333 0.366667 class0
0.478261 0.346154 0.777778 0.406114 0.197802 0.132075 0.431373 0.314286 0.333333 0.328571 0.363158 0.347722 0.251572 0.105263 0.0454545 0.707317 0.566667 0.633333 class3
0.630435 0.807692 0.805556 0.423581 0.153846 0.0754717 0.738562 0.0857143 0.666667 0.671429 0.610526 0.697842 0.767296 0.263158 0.409091 0.341463 0.4 0.2 class2
0.586957 0.807692 0.861111 0.445415 0.197802 0.150943 0.562092 0.2 0.5 0.657143 0.494737 0.483213 0.823899 0.171053 0.181818 0.268293 0.366667 0.5 class1
0.695652 0.461538 0.833333 0.39738 0.153846 0.150943 0.562092 0.2 0.5 0.442857 0.442105 0.482014 0.484277 0.105263 0.363636 0.121951 0.533333 0.633333 class1
0.73913 0.769231 0.944444 0.467249 0.175824 0.169811 0.699346 0.142857 0.666667 0.714286 0.515789 0.623501 0.559748 0.131579 0.454545 0.512195 0.466667 0.733333 class1
0.456522 0.423077 0.416667 0.358079 0.274725 0.113208 0.267974 0.457143 0.166667 0.371429 0.215789 0.21223 0.433962 0.105263 0.318182 0.0487805 0.766667 0.833333 class2
0.586957 0.730769 0.958333 0.528384 0.230769 0.150943 0.718954 0.114286 0.666667 0.671429 0.584211 0.655875 0.616352 0.184211 0.318182 0.682927 0.4 0.6 class3
0.521739 0.307692 0.666667 0.349345 0.131868 0.132075 0.411765 0.342857 0.333333 0.314286 0.326316 0.329736 0.238994 0.0526316 0.0454545 0.121951 0.666667 0.8 class1
0.5 0.5 0.472222 0.427948 0.296703 0.0566038 0.333333 0.371429 0.25 0.442857 0.289474 0.268585 0.515723 0.144737 0.318182 0.195122 0.666667 0.633333 class2
0.673913 0.730769 0.972222 0.296943 0.0659341 0.150943 0.699346 0.114286 0.666667 0.685714 0.552632 0.631894 0.685535 0.197368 0.454545 0.682927 0.4 0.566667 class3
0.673913 0.769231 0.847222 0.414847 0.197802 0.169811 0.660131 0.142857 0.583333 0.714286 0.452632 0.579137 0.704403 0.171053 0.545455 0.292683 0.366667 0.566667 class1
0.391304 0.192308 0.5 0.296943 0.153846 0.113208 0.359477 0.4 0.25 0.228571 0.347368 0.276978 0.226415 0.157895 0 0.682927 0.433333 0.566667 class3
0.695652 0.807692 0.944444 0.567686 0.252747 0.188679 0.673203 0.142857 0.583333 0.714286 0.505263 0.603118 0.748428 0.118421 0.181818 0.536585 0.433333 0.666667 class1
0.456522 0.461538 0.625 0.257642 0.230769 0.150943 0.294118 0.514286 0.25 0.542857 0.210526 0.207434 0.421384 0.184211 0.772727 0.268293 0.366667 0.466667 class0
0.695652 0.5 0.833333 0.39738 0.153846 0.132075 0.529412 0.228571 0.416667 0.457143 0.405263 0.447242 0.327044 0.0789474 0.227273 0.219512 0.6 0.7 class3
0.456522 0.461538 0.625 0.244541 0.175824 0.150943 0.300654 0.485714 0.25 0.557143 0.231579 0.219424 0.333333 0.118421 0.0454545 0.146341 0.433333 0.6 class0
0.391304 0.153846 0.5 0.148472 0.0879121 0.113208 0.130719 0.714286 0.0833333 0.242857 0.142105 0.0863309 0.0943396 0.131579 0 0.292683 0.5 0.366667 class0
0.630435 0.576923 0.902778 0.480349 0.186813 0.150943 0.581699 0.2 0.5 0.485714 0.442105 0.498801 0.433962 0.0657895 0 0.609756 0.533333 0.766667 class1
0.5 0.423077 0.388889 0.375546 0.252747 0.0943396 0.281046 0.428571 0.166667 0.385714 0.257895 0.22542 0.358491 0.105263 0.227273 0.170732 0.866667 0.833333 class2
0.26087 0.115385 0.444444 0.100437 0.0989011 0.0943396 0.0980392 0.8 0.0833333 0.1 0.0736842 0.058753 0.0880503 0.144737 0.136364 0.731707 0.266667 0.433333 class3
0.652174 0.576923 0.777778 0.558952 0.263736 0.150943 0.607843 0.171429 0.5 0.5 0.505263 0.538369 0.553459 0.157895 0.0909091 0.365854 0.4 0.5 class3
0.608696 0.846154 0.930556 0.419214 0.153846 0.169811 0.738562 0.114286 0.666667 0.857143 0.515789 0.654676 0.597484 0.197368 0.363636 0.853659 0.366667 0.666667 class3
0.652174 0.730769 0.875 0.28821 0.0549451 0.0943396 0.810458 0.0571429 0.75 0.6 0.652632 0.757794 0.886792 0.302632 0.136364 0.560976 0.233333 0.1 class2
0.26087 0.461538 0.458333 0.275109 0.241758 0.113208 0.202614 0.571429 0.0833333 0.428571 0.226316 0.147482 0.421384 0.157895 0.0909091 0 0.466667 0.6 class0
0.891304 0.923077 0.861111 0.336245 0.0549451 0.0754717 0.947712 0 0.916667 0.728571 0.826316 0.940048 0.955975 0.342105 0.0909091 0.512195 0.2 0.1 class2
0.326087 0.269231 0.208333 0.0436681 0.0659341 0.0943396 0.130719 0.771429 0.0833333 0.3 0.0631579 0.0779376 0.308176 0.368421 0 0.170732 0 0.0666667 class0
0.282609 0.153846 0.513889 0.174672 0.0769231 0.0943396 0.27451 0.485714 0.166667 0.128571 0.257895 0.201439 0.226415 0.157895 0.636364 0.317073 0.333333 0.333333 class3
0.630435 0.692308 0.888889 0.49345 0.21978 0.150943 0.601307 0.171429 0.5 0.628571 0.473684 0.523981 0.540881 0.118421 0.136364 0.463415 0.4 0.533333 class1
0.695652 0.692308 0.736111 0.244541 0.043956 0.0943396 0.686275 0.114286 0.583333 0.671429 0.578947 0.622302 0.622642 0.289474 0.409091 0.609756 0.4 0.233333 class2
0.586957 0.653846 0.805556 0.436681 0.175824 0.0754717 0.69281 0.114286 0.583333 0.542857 0.536842 0.641487 0.654088 0.236842 0.363636 0.170732 0.433333 0.266667 class2
0.5 0.423077 0.625 0.270742 0.208791 0.150943 0.281046 0.485714 0.166667 0.457143 0.194737 0.205036 0.314465 0.105263 0.136364 0.243902 0.533333 0.7 class0
0.782609 0.730769 0.888889 0.414847 0.142857 0.188679 0.673203 0.142857 0.583333 0.628571 0.473684 0.607914 0.647799 0.105263 0.5 0.170732 0.433333 0.6 class1
0.304348 0.230769 0.472222 0.266376 0.208791 0.0754717 0.215686 0.542857 0.166667 0.228571 0.226316 0.160671 0.188679 0.144737 0.136364 0.512195 0.633333 0.633333 class2
0.369565 0.307692 0.527778 0.179039 0.0879121 0.0943396 0.169935 0.628571 0.0833333 0.285714 0.163158 0.119904 0.308176 0.105263 0 0.0243902 0.533333 0.533333 class3
0.543478 0.576923 0.847222 0.432314 0.197802 0.132075 0.555556 0.2 0.5 0.485714 0.452632 0.479616 0.408805 0.118421 0.0909091 0.121951 0.433333 0.533333 class1
0.5 0.5 0.666667 0.305677 0.230769 0.150943 0.281046 0.485714 0.166667 0.428571 0.226316 0.203837 0.459119 0.131579 0.636364 0.365854 0.6 0.7 class0
0.26087 0.384615 0.402778 0.161572 0.164835 0.0943396 0.261438 0.514286 0.166667 0.385714 0.252632 0.188249 0.440252 0.328947 0.0454545 0.097561 0.166667 0.1 class2
0.391304 0.346154 0.361111 0.165939 0.120879 0.132075 0.143791 0.685714 0.0833333 0.342857 0.173684 0.100719 0.345912 0.131579 0.272727 0.121951 0.5 0.533333 class0
0.152174 0.384615 0.388889 0.0829694 0.0659341 0.0943396 0.248366 0.571429 0.166667 0.414286 0.205263 0.171463 0.421384 0.289474 0.318182 0.341463 0.1 0.1 class2
0.434783 0.5 0.625 0.283843 0.208791 0.132075 0.254902 0.514286 0.166667 0.414286 0.205263 0.185851 0.440252 0.105263 0 0.097561 0.633333 0.766667 class0
0.434783 0.692308 0.694444 0.458515 0.241758 0.113208 0.464052 0.285714 0.416667 0.542857 0.426316 0.386091 0.761006 0.144737 0.272727 0.0243902 0.433333 0.5 class1
0.5 0.269231 0.527778 0.28821 0.120879 0.0943396 0.405229 0.342857 0.333333 0.3 0.352632 0.32494 0.320755 0.118421 0.136364 0.707317 0.5 0.633333 class1
0.26087 0.115385 0.152778 0.0480349 0.0989011 0.0566038 0.0457516 0.885714 0 0.0857143 0.0473684 0.0275779 0.113208 0.289474 0.590909 0.121951 0.166667 0.1 class0
|
b2e88a644a890d9411f33d7e06881c49ee39f73b | 1544f7e5edde1bbccc24cba258a347fc31869b08 | /BalanceoDeEcuacionesQuimicas.sce | 179b5a189dbbfa2198c146a87cb65c37aad09269 | [] | no_license | lilvedaes/ProyectoMateIII | c3b01dd35332908280ec0b10d4241b9400ee260c | bef016ddf1379feefec287212af0353a7e0ecae0 | refs/heads/master | 2020-03-19T19:45:54.353626 | 2018-07-02T19:45:28 | 2018-07-02T19:45:28 | 136,872,829 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 694 | sce | BalanceoDeEcuacionesQuimicas.sce | clc
A=[15 -0.2 -0.4 0;-2 8.22 -0.02 0;5 -0.02 8.44 -0.02;0 0 -0.02 8.02];
x=[0,0,0,0];
b=[15;0;0;0];
f=0;
t=0.00001;
[m,n]=size(A);
o=1;
R=1;
f(1,1:m+1)=[0 x];
o=o+1;
while R>t
for i=1:m;
sum=0;
for j=1:m
if j<=i-1
sum=sum+A(i,j)*f(o,j+1);
elseif j>=i+1
sum=sum+A(i,j)*f(o-1,j+1);
end
end
x(1,i)=(1/A(i,i))*(b(i,1)-sum);
f(o,1)=o-1;f(o,i+1)=x(1,i);
end
R=max(abs((f(o,2:m+1)-f(o-1,2:m+1))));
o=o+1;
if R>1 & o>1000;
disp('Erase this');
break
end
end
disp(f);
ans=f(o-1,2:n+1);
disp(ans);
|
ac1e18564c5c866ebae61a126139e816ab6cb9f2 | 5887829f5a0a005033807cf7dc4fb7231eb280ec | /Listing/chapter 6/Listing6212.sce | 06cc67acc0b5dfbef4cf043988d30c1e8f04992f | [] | no_license | joaolrneto/learning_scilab | 78ecc0019f167b57bc35647c4ac785ece01e443e | 9624c9a6736860a8a836b0f801256b6224756585 | refs/heads/main | 2023-03-17T22:17:51.853368 | 2021-03-15T20:58:34 | 2021-03-15T20:58:34 | 344,478,059 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 92 | sce | Listing6212.sce | clc
clear
clf()
a = rand(10,10);
imwrite(a, 'rand.png');
b = imread('rand.png');
imshow(b);
|
1b1335d0065594b34711be4920147662cd7dddb4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2045/CH4/EX4.37/Ex4_37.sce | 21b92bf09988f2c04d45332904aca66215da59c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 443 | sce | Ex4_37.sce | //example 37
clear
beta1=160;
vb=-0.8;//volt
re=2.5*10^3;//ohm
vcc=10;//volt
for q=[160 80]
ib=(vcc-vb)*10^2/((re)*(1+q)*400);
ic=q*ib;
colres=1.5*10^3;//ohm
disp("collector current at beta "+string((q))+" = "+string((ic))+"ampere");//correction in the book
ie=(1+beta1)*ib;
vce=-(vcc-colres*ic-re*ie);
disp("vce at beta "+string((q))+" = "+string((vce))+"volt");//correction in the book
end
|
e69192f6bd804ac11f23d6a5bbf484a6f18cfc58 | f42e0a9f61003756d40b8c09ebfe5dd926081407 | /TP6/newtonBDF.sci | 322592de41fbaaefc40e6ddcc233ed46a5a744d0 | [] | no_license | BenFradet/MT09 | 04fe085afaef9f8c8d419a3824c633adae0c007a | d37451249f2df09932777e2fd64d43462e3d6931 | refs/heads/master | 2020-04-14T02:47:55.441807 | 2014-12-22T17:34:50 | 2014-12-22T17:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 237 | sci | newtonBDF.sci | function[x, k] = newtonBDF(f, dfdx, tol, Kmax, x0, h, theta, U, V)
if Kmax - floor(Kmax) ~= 0 | Kmax < 0
error('Kmax must be an int');
end
if tol < 0 | abs(tol) < %eps
error('wrong tol');
end
endfunction
|
0e8bebac35a9fb147225d48f2bf852ee0cd63d03 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1484/CH4/EX4.17/4_17.sce | a6bf40a2dd70139aa4de513c7a0c864a265bda7e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 280 | sce | 4_17.sce | clc
//initialisation of variables
HL= 12.5 //ft
H1= 10.5 //ft
Cd= 0.62
h= 4 //ft
l= 3 //ft
n= 2
t= 5 //min
g= 32.2 //ft/sec^2
//CALCULATIONS
a1= n*l*l
A= t*60*(Cd*a1*sqrt(2*g)+Cd*a1*sqrt(2*g*H1))/((HL-H1)+(HL-H1)*sqrt(H1))/4
//RESULTS
printf ('Area= %.f sq ft',A)
|
49c653ef59763078ee1872dac687d3da92311a86 | 449d555969bfd7befe906877abab098c6e63a0e8 | /647/CH2/EX2.16/Example2_16.sce | 55e48cfd50b68ac7bd9fce610949cfdbc0c0bfbf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,905 | sce | Example2_16.sce | clear;
clc;
// Example: 2.16
// Page: 62
printf("Example: 2.16 - Page: 62\n\n");
// Solution
//*****Data*****//
P1 = 1;// [bar]
T1 = 300;//[K]
V1 = 24.92;// [cubic m/kmol]
P2 = 10;// [bar]
T2 = 300;// [K]
Cp = 29.10;// [kJ/kmol K]
Cv = 20.78;// [kJ/kmol K]
R = 8.314;// [J/mol K]
//**************//
// Basis: 1 kmol of ideal gas:
n = 1;
V2 = P1*V1/P2;// [cubic m]
// First Process:
printf("First Process\n");
// In the first step of the first process, the cooling of ga takes place at constant pressure.
// Here the volume is reduced appreciably and consequently the temperature decreases.
T_prime = T1*V2/V1;// [K]
// Heat Requirement:
Q1 = n*Cp*(T_prime - T1);// [kJ]
deltaH1 = Q1;// [kJ]
deltaU1 = deltaH1 - P1*(V2 - V1);// [kJ]
// In the second step, the gas is heated at constant Volume:
// V = constant
Q2 = n*Cv*(T2 - T_prime);// [kJ]
deltaU2 = Q2;// [kJ]
deltaH2 = n*R*(T2 - T_prime);// [kJ]
deltaU = deltaU1 + deltaU2;// [kJ]
deltaH = deltaH1 + deltaH2;// [kJ]
Q = Q1 + Q2;// [kJ]
printf("Change in Internal Energy is %.2f kJ\n",deltaU);
printf("Change in Enthalpy is %.2f kJ\n",deltaH);
printf("Heat Requirement is %.2f kJ\n",Q);
printf("\n");
// Second Process:
printf("Second Process\n");
// In the first step of the second process, the gas is heated at constant volume.
T_prime = T1*P2/P1;// [K]
// Heat Requirement:
Q1 = n*Cv*(T_prime - T1);// [kJ]
deltaU1 = Q1;// [kJ]
deltaH1 = n*R*(T_prime - T1);// [kJ]
// In the second step, the gas is cooled at constant presure:
// V = constant
Q2 = n*Cp*(T2 - T_prime);// [kJ]
deltaH2 = Q2;// [kJ]
deltaU2 = deltaH2 - P1*(V2 - V1);// [kJ]
deltaU = deltaU1 + deltaU2;// [kJ]
deltaH = deltaH1 + deltaH2;// [kJ]
Q = Q1 + Q2;// [kJ]
printf("Change in Internal Energy is %.2f kJ\n",deltaU);
printf("Change in Enthalpy is %.2f kJ\n",deltaH);
printf("Heat Requirement is %.2f kJ\n",Q); |
630d126d48408f3de70322b52742614b7d66f803 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1286/CH14/EX14.10/14_10.sce | 490be34113a92bb274fa7abfc879353118a94c6c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 220 | sce | 14_10.sce | clc
//initialisations
r=15*10^10//m
R=7*10^8//m
si=6.72*10^-8//j m^-2 sec^-1 deg^-4
s=81350 //j m^-2 min^-1
//CALCULATIONS
t=(r*r*s)/(R*R*si*60)
T=t^0.25
//results
printf(' \n value of temperature= % 1f k',T)
|
6d997ec45ed60461f107841372bb1ce2ba5913e8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /509/CH3/EX3.4/3_4.sci | 73d81dbd0d3fe67c337068f5ba85e98d48cf4132 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,628 | sci | 3_4.sci | // Chapter 3 Example 4//
clc
clear
//base powers of generators be m1,m2,m3 and base voltages be v1,v2,v3,secondary voltage=v//
v=132;
m1=100;// in MVA//
v1=11; // in kV//
m2=150;
v2=16;
m3=200;
v3=21;
//reactance of generator 1,2,3 are x1,x2,x3 respectively and X1,X2,X3 are the new reactances//
x1=0.25// in p.u//
x2=0.1;
x3=0.15;
X1=x1;
X2=x2*(m1/m2)*(v2/v1)^2;
X3=x3*(m1/m3)*(v3/v1)^2;
printf("\n Reactance of generator 1 = %.2f pu\n",X1);
printf("\n Reactance of generator 2 on the new base of generator1 = %.3f pu\n",X2);
printf("\n Reactance of generator 3 on the new base of generator1 = %.3f pu\n",X3);
// let T1,T2,T3 are the new per unit reactances on new base values and t1,t2,t3 are the old values//
t1=0.05;// in p.u//
t2=0.10;
t3=0.05;
// let the ratings of the tranformers be v1,v2,v3//
tv1=150;// in MVA//
tv2=200;
tv3=250;
T1=t1*(m1/tv1)*(v1/v1)^2;
T2=t2*(m1/tv2)*(v2/v1)^2;
T3=t3*(m1/tv3)*(v3/v1)^2;
printf("\n Per unit reactance of transformer 1 = %.3f pu\n",T1);
printf("\n Per unit reactance of transformer 2 = %.3f pu\n",T2);
printf("\n Per unit reactance of transformer 3 = %.3f pu\n",T3);
// line reactances for 1,2,3 are r1,r2,r3 respectively,base impedence=zb//
r1=100;// in ohms//
r2=50;
r3=80;
zb=(v)^2/(m1);
printf("\n The base impedence Zb = %.2f ohm\n",zb);
// per unit reactances of lines 1,2,3 are pu1,pu2,pu3 respectively//
pu1=r1/zb;
pu2=r2/zb;
pu3=r3/zb;
printf("\n Per unit reactance of line 1 = %.3f pu\n",pu1);
printf("\n Per unit reactance of line 2 = %.3f pu\n",pu2);
printf("\n Per unit reactance of line 3 = %.3f pu\n",pu3);
|
d13e9b99053598830f78c5b2f264431d7dd86f00 | ebd4548d44d72b237371e08dd7feffa1739dbd92 | /solve_qp.sci | 5c33106fc4f1aca56567099d98933e1aa1b9b4b2 | [] | no_license | JeroenDM/scilab | 23a44dec9fa47956f0ec64396f82943f4efeac8f | 2b05ae5a05023a1d6e4c6c357fb20b5bc6250156 | refs/heads/master | 2021-01-11T15:44:28.911399 | 2017-01-24T14:31:46 | 2017-01-24T14:31:46 | 79,917,765 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 427 | sci | solve_qp.sci | function [x, mu] = solve_qp(P, q, A, b)
// solve a quadric program with linear equality constraints and P > 0
n = size(A, 2); // number of variables
m = size(A, 1); // number of equality constrains
// construct kkt matrix
KKT = [P A'; A zeros(m, m)];
// Solve KKT system
sol = KKT \ [ -q; b];
// split primal and dual solution
x = sol(1:n);
mu = sol(n+1 : $);
endfunction
|
52140f952e63e58d4324ac3f83551cfdc5fd38cb | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH4/EX4.9/4_9.sce | dd442825c311169ef44aff6036134ebdaf3b19ac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,301 | sce | 4_9.sce | clear;
clc;
//Example - 4.9
//Page number - 160
printf("Example - 4.9 and Page number - 160\n\n");
//Given
P_1 = 1;//[MPa] - Initial pressure
T_1 = 200 + 273.15;//[K] - Initial temperature
P_2 = 8;//[MPa] - Final pressure
Y = 1.4;// Index of expansion of gas
R = 8.314;//[J/mol-K] - Universal gas constant
//(1)
// The exit temperature for ideal gas under isentropic conditions is given by
T_2 = T_1*((P_2/P_1)^((Y-1)/Y));//[K] - Exit temperature
Cp_0 = Y*R/(Y-1);//[J/mol-K] - Specific heat capacity at constant pressure
// For isentropic conditions the enthalpy change for ideal gas is given by
delta_H_s = Cp_0*(T_2 - T_1);//[J/mol]
// Therefore work is given by
W = - delta_H_s;//[J/mol]
printf(" (1).The exit temperature of steam is %f K\n",T_2);
printf(" The required work is %f J/mol\n\n",W);
//(2)
eff = 0.8;// Adiabatic efficiency
// delta_H_s/delta_H_a = 0.8
delta_H_a = delta_H_s/eff;//[J/mol] - Actual enthalpy change
W_a = - delta_H_a;//[J/mol]
// The ideal gas enthalpy is a function only of temperature,therefore actual exit temperature T_2a is given by
// delta_H_a = Cp_0*(T_2a - T_1)
T_2a = (delta_H_a/Cp_0) + T_1;
printf(" (2).The exit temperature of steam is %f K\n",T_2a);
printf(" The required work is %f J/mol\n\n",W_a);
|
0cef7b6fb21d3223c7825a81fe30712b5b87ca88 | 449d555969bfd7befe906877abab098c6e63a0e8 | /199/CH3/EX3.3/Example_3_3.sce | 0d25b25ea873d30a975ea436ce5b3027e19311d5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,114 | sce | Example_3_3.sce | // Chapter3
// Page.No-86, Figure.No-3.8
// Example_3_3
// Parameters of voltage-shunt feedback amplifier
// Given
clear;clc;
R1=470;Rf=4.7*10^3;
A=200000; // Open-loop voltage gain
Ri=2*10^6;// Input resistance without feedback
Ro=75; // Output resistance without feedback
fo=5; // Break frequency of an Op-amp
Vsat=13; // Saturation voltage
K=Rf/(R1+Rf); // Voltage attenuation factor
B=R1/(R1+Rf); // Gain of the feedback circuit
Af=-(A*K)/(1+A*B); // Closed-loop voltage gain
printf("\n Closed-loop voltage gain is Af = %.f \n",Af) // Result
X=Rf/(1+A);
RiF=R1+(X*Ri)/(X+Ri); // Input resistance with feedback
printf("\n Input resistance with feedback is RiF = %.1f ohms \n",RiF) // Result
RoF=Ro/(1+A*B); // Output resistance with feedback
printf("\n Output resistance with feedback is RoF = %f ohms \n",RoF) // Result
fF=fo*(1+A*B)/K; // Bandwidth with feedback
printf("\n Bandwidth with feedback is vo = %.2f Hz \n",fF) // Result
VooT=Vsat/(1+A*B); // Total output offset voltage with feedback
printf("\n Total output offset voltage with feedback is VooT = %f V \n",VooT) // Result |
9802703ebcdd2e696d2358e2a40d27c5839030b9 | c7c0836420b1440812466e25f2fb15dc41ae6e3c | /macros/SOCKET_pause.sci | e04231f9997d973a03d8ebff14257f82cb5c6c03 | [] | no_license | sengupta/scilab-socket | b13ba613a88e334ec1e2a35fed320d8908de1399 | 3da2794dc38caa2593928cac0a734ad3ea9f3b19 | refs/heads/master | 2016-09-03T06:54:50.197439 | 2012-04-03T11:25:22 | 2012-04-03T11:25:22 | 3,917,275 | 2 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sci | SOCKET_pause.sci | // path=SCI+"/contrib/SOCKET/help/";
// txt = help_skeleton("SOCKET_pause",path)
function SOCKET_pause(delay_s)
my_delay=0;
u=timer();
while(my_delay<delay_s) then,
my_delay=my_delay+timer();
end;
endfunction |
433ffe14315fbe06edef645ef49d5f42ba038024 | 449d555969bfd7befe906877abab098c6e63a0e8 | /67/CH8/EX8.8/example88.sce | 1891ea27c89b62d5578b858abd4eeda6b0cd9643 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 141 | sce | example88.sce | //Example 8.8
//Compute 4-point DFT of the sequence x[n]=cos(n*pi/4)
clc;
n=0:3;
pi=22/7;
x=cos(n*pi/4);
X=fft(x,-1);
disp(X,'X[k]='); |
5cbbe48b465bf09cf055476e9e79982136b6d1d6 | 84e4405f182c8a71ed4737063cc0474c432149f1 | /Labovi/LV3/zad3.sce | e24b2939286ea2811f7af76ab7b12a2852cef0c8 | [] | no_license | Leon-Zhaohw/NA | 0f8080fcc4958af4ebf5daced11a6d01c27e3ece | 0f1d30cfe13d5447b775698a93cf01cc1c8d15ac | refs/heads/master | 2021-06-15T11:20:41.484070 | 2017-01-29T01:10:43 | 2017-01-29T01:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 298 | sce | zad3.sce | xdata1 = linspace(0, 2 * %pi, 10);
ydata1 = sin(xdata1);
xx1 = linspace(0, 2 * %pi, 50);
= splin(xdata1, ydata1, "clamped", -cos(x));
res1 = splin(xdata1, ydata1, "not_a_knot");
[yy1] = interp(xx1, xdata1, ydata1, d);
subplot(2, 2, 1);
plot(x1, y1);
//subplot(2, 2, 2);
//subplot(2, 2, 3);
|
2828a7b30476432a301d34b1e1e69222ca561deb | 449d555969bfd7befe906877abab098c6e63a0e8 | /3250/CH4/EX4.5/Ex4_5.sce | 497435ea5feac0ed9ca354ad226e759d9e617241 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 653 | sce | Ex4_5.sce | clc
// Given that
t1 = 0.25 // Uncut thickness in mm
w = 2.5 // Width of cut in mm
U_0 = 1.4 // In J/mm^3
alpha = 0 // Rake angle in degree
mu = 0.5 // Cofficient of the friction
T_s = 400 // Shear stress in N/mm^2
// Sample Problem 5 on page no. 196
printf("\n # PROBLEM 4.5 # \n")
lambda = atand(mu)
Fc = 1000*(t1*w*U_0)*((t1)^(-.4))
phi = 45 + alpha - atand(mu)
Fc_ = (w*t1*T_s*cosd(lambda-alpha))/((sind(phi)) *cosd(phi+lambda-alpha))
printf(" \n The order of magnitude of cutting force = %d N,\n Using Lee and Shaffer relation- \n The order of magnitude of cutting force = %d N.",Fc,Fc_)
// Answer in the book for cutting force is given as 1517 N
|
b754d2c185a213796c9f09257c5dfbca8b94349f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1802/CH3/EX3.1/Exa3_1.sce | 3daaa258b392f19179e3fd2b1a831914b967ebe5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Exa3_1.sce | //Exa 3.1
clc;
clear;
close;
//Given Data :
format('v',6);
m=1/10;//unitless
EL=66;//in KV
E=EL/sqrt(3);//in KV
//Formula : E=E1+(11/10)*E1+(131/100)*E1+(1651/1000)*E1=(5061/1000)*E1
E1=E*(1000/5061);//in KV
disp(E1,"E1(in KV) :");
E2=E1*(11/10);//in KV
disp(E2,"E1(in KV) :");
E3=E1*(131/100);//in KV
disp(E3,"E2(in KV) :");
E4=E1*(1651/1000);//in KV
disp(E4,"E4(in KV) :");
Eta=(E/(4*E4))*100;//in %
disp(Eta,"String Efficiency(in %) :"); |
c575d3fedf787bfda132f4dd868eaaf8e2dbff1a | 7ad0d60cf81a6a597c854f34eb8e4d0f0238449f | /Controle/T1/Código/V1/csim.sce | bbecf5b9be4d769dcc3de7685724dae441703314 | [] | no_license | Lucas-Okamura/Poli-USP | 83c5bf59a8d1f04215db1caeb3898a2394c0797c | 2875cd8e0f3a2549f0461d0256cf5e8cc24d204c | refs/heads/master | 2023-06-07T21:29:13.123960 | 2021-06-23T21:59:01 | 2021-06-23T21:59:01 | 304,692,746 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,150 | sce | csim.sce | // Definição das condições iniciais
x0 = [5;5;5;5]
// Definição do intervalo de tempo
t0 = 0
tf = 200
n = 1000
t = linspace(t0,tf,n)
// Sistema linear
C = [[1,0,0,0];
[0,1,0,0];
[0,0,1,0];
[0,0,0,1]]
D = [[0,0];
[0,0];
[0,0];
[0,0]]
sl = syslin('c',A,B,C,D)
h = ss2tf(sl)
scf(4)
plzr(sl)
scf(0)
subplot(1,2,1)
bode(h(1,1));
xtitle("Diagrama de Bode: Deflexão Aileron - Velocidade lat. v")
subplot(1,2,2)
bode(h(1,2));
xtitle("Diagrama de Bode: Deflexão Leme - Velocidade lat. v")
scf(1)
subplot(1,2,1)
bode(h(2,1));
xtitle("Diagrama de Bode: Deflexão Aileron - Velocidade angular p")
subplot(1,2,2)
bode(h(2,2));
xtitle("Diagrama de Bode: Deflexão Leme - Velocidade angular p")
scf(2)
subplot(1,2,1)
bode(h(3,1));
xtitle("Diagrama de Bode: Deflexão Aileron - Velocidade angular r")
subplot(1,2,2)
bode(h(3,2));
xtitle("Diagrama de Bode: Deflexão Leme - Velocidade angular r")
scf(3)
subplot(1,2,1)
bode(h(4,1));
xtitle("Diagrama de Bode: Deflexão Aileron - Ângulo phi")
subplot(1,2,2)
bode(h(4,2));
xtitle("Diagrama de Bode: Deflexão Leme - Ângulo phi")
C = [[0,0,0,1];[0,0,1,0]]
D = [[0,0];[0,0]]
|
2052582c2ae1ded87e8b8265bd12c823a1baa4b5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /149/CH22/EX22.3/ques3.sce | 82c73a6e62e4c4cff0f35cfbd7b55d52d16de4cd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 208 | sce | ques3.sce | //error
//ques3
disp('To find the fourier transform of given function ');
syms x s
F=integ(exp(%i*s*x)*(1-x^2),x,-1,1);
disp(F);
//produces error->
F1=integ((x*cos(x)-sin(x))/x^3*cos(x/2),x,0,%inf);
|
5f3bfab3806170d7e55f3cf241f23fcab70ba81e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1739/CH3/EX3.16/Exa3_16.sce | 4c54a58c95a44b89b86cf85516115c81a798fc6f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | sce | Exa3_16.sce | //Exa 3.16
clc;
clear;
close;
//Given data :
n1=1.46;//unitless
n2=1.45;//unitless
Rcm=84;//in um
Rcm=Rcm*10^-6;//in meter
lambda=Rcm*4*%pi*(n1^2-n2^2)^(3/2)/(3*n1^2);//in meter
disp(lambda*10^6,"Wavelength of transmitted light in micro meter : "); |
7c2b342350571effbf4e8a61da8d20f473a6cc48 | 449d555969bfd7befe906877abab098c6e63a0e8 | /995/CH3/EX3.1/Ex3_1.sce | 977b21d06168bbcb596fd01bb3c62007c8efff44 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 165 | sce | Ex3_1.sce | //Ex:3.1
clc;
clear;
close;
i1=1.5;
i2=2.7;//in amp.s
i5=i1+i2;
i4=3.3;
i3=i4+i5;
printf("Current b/w A & B = %f A",i5);
printf("\n Current I3 = %f A",i3); |
5079b5bb89822b8f01d04853e5024037acc84c6c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH8/EX8.31.1/Ex8_31.sce | ac48187d0d18d7a8176988027d33489a7ea47e5c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 429 | sce | Ex8_31.sce | clc
clear
D=0.15;
L=0.3;
P1=1;
T1=27+273;
P2=8;
N=120;
G=1.4;
R=0.287;
Vs=(22/7)*(1/4)*D*D*L;
m=[P1*100*Vs]/[R*T1];
printf('Mass of air compressed per cycle: %3.4f kJ/cycle ',m);
printf('\n');
W=[G/(G-1)]*[P1*100*Vs]*[((P2/P1)^((G-1)/G))-1];
printf('Work required per cycle: %3.3f kJ/cycle ',W);
printf('\n');
P=(W*N)/60;
printf('Power required to drive compressor: %3.2f kJ/cycle ',P);
printf('\n');
|
fafc8138b2fa8890a75a664844d1a5fcf184dff2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3681/CH8/EX8.2/Ex8_2.sce | 215ef0c875b8857c1bdd2bc1dcd5fe2bf3ffd4fb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 771 | sce | Ex8_2.sce | // Calculating the stress on the ring
clc;
disp('Example 8.2, Page No. = 8.8')
// Given Data
rpm = 3000;// Speed in r.p.m.
Rm = 0.35;// Radius of overhang (in meter)
Rmr = 0.49;// Radius of ring (in meter)
G = 300;// Weight of copper winding (in kg)
gr = 7800;// Density of ring material (in kg per meter cube)
tb = 350*45*10^(-6);// Area of retaining ring
// Calculation of the stress on the ring
n = rpm/60;// Speed in r.p.s
Dm = 2*Rm;// Diameter of overhang (in meter)
Dmr = 2*Rmr;// Diameter of ring (in meter)
ft = (%pi*n*n*G*Dm/tb)+(%pi*%pi*n*n*gr*Dmr*Dmr);// Stress on ring (in Newton per meter square)
disp(ft,'Stress on ring (Newton per meter square)=');
//in book answer is 289.5 (MN per meter square). The answers vary due to round off error
|
eea5890466cbd329df90e5b0c6234fed40d1f564 | 217afc33663ba0533cf6775c45d12223f5616fc0 | /Scilab/OracleDG.sci | aa559b01f54bbdf64654928e0ff64237d1335ac8 | [] | no_license | VIsh76/Optimisation | b30fd593006cdd89f1d0510f9f9123a3fb5db1eb | 29e8ee916e53fcc5b6244de837982b8d258e531b | refs/heads/master | 2021-01-18T16:02:22.233606 | 2017-05-11T14:33:43 | 2017-05-11T14:33:43 | 84,542,502 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 387 | sci | OracleDG.sci | function [F,G,ind]=OracleDG(lambda,ind)
F=0;
G=0;
x = Ar'*pr+Ad'*lambda
q = sign(-x./r).*sqrt(abs(x./r))
y = r.*q.*abs(q);
z = Ar'*pr+Ad'*lambda;
if ind==2 then
F= -( (1/3)*q'*y+(q'*z)-fd'*lambda);
elseif ind==3 then
G= -Ad*q+fd;
elseif ind==4 then
F= -( (1/3)*q'*y+(q'*z)-fd'*lambda);
G= -Ad*q+fd;
end
endfunction
|
1a7ea8a5dd23be154f51cf0a255c6355566391a7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /650/CH7/EX7.7/7.sce | 6a6f60710eacdaa15966bad113c8de726523014e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 170 | sce | 7.sce | clc;
Cd=0.56;
B=1.2; // m
g=9.8; // m/s^2
H=0.018; // m
Q=2/3*Cd*B*sqrt(2*g)*H^(3/2);
disp("The rate of flow of liquid over the weir is ")
disp(Q)
disp("m^3/h") |
274d311766bfe109a1348c17dbeab8a903ecc82d | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.7_12.tst | fa98be868f978bcdd841694103f7d68a036c97da | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 27,015 | tst | bow.7_12.tst | 7 4:0.1 12:0.3333333333333333 13:0.16666666666666666 18:0.6666666666666666 22:0.1 26:0.5 27:1.0 30:1.0 32:0.3333333333333333 44:1.0 49:0.3333333333333333 52:1.0 65:0.037037037037037035 66:1.0 78:0.6666666666666666 86:1.0 143:1.0 145:1.0 198:1.0 241:1.0 242:0.058823529411764705 249:0.2857142857142857 260:1.0 286:2.0 296:0.5 679:1.0 686:0.3333333333333333 1145:1.0 1823:1.0 2428:1.0
7 3:0.2 4:0.1 13:0.3333333333333333 32:0.3333333333333333 44:1.0 46:0.024390243902439025 65:0.14814814814814814 131:1.0 284:0.2 466:1.0 721:1.0 786:1.0 825:1.0 1006:1.0 1334:1.0 2630:1.0 2896:1.0
7 1:0.0625 13:0.16666666666666666 22:0.1 32:0.3333333333333333 64:0.09090909090909091 65:0.037037037037037035 147:0.5 399:0.5 654:1.0 789:0.3333333333333333 816:1.0 1604:1.0 2100:1.0 3493:1.0
7 4:0.2 18:0.3333333333333333 32:0.3333333333333333 41:1.0 48:0.08333333333333333 49:0.3333333333333333 64:0.09090909090909091 78:0.3333333333333333 88:1.0 100:1.0 161:1.0 242:0.029411764705882353 249:0.14285714285714285 273:1.0 296:0.25 527:1.0 670:1.0 892:1.0 1206:1.0 2153:1.0 3012:1.0 3311:1.0 3314:1.0 4342:1.0
7 4:0.1 18:0.3333333333333333 32:0.3333333333333333 65:0.037037037037037035 122:0.5 146:0.5 160:0.5 240:0.5 309:0.5 903:1.0 936:1.0 1081:1.0 1936:1.0 2689:1.0
7 1:0.0625 4:0.1 13:0.3333333333333333 18:0.6666666666666666 28:1.0 65:0.037037037037037035 73:1.0 131:1.0 164:0.14285714285714285 249:0.14285714285714285 270:0.3333333333333333 271:1.0 296:0.25 344:1.0 489:0.5 505:1.0 756:1.0 852:1.0 1862:1.0 1957:1.0 2300:1.0 3076:1.0
7 3:0.2 13:0.3333333333333333 18:0.3333333333333333 22:0.1 30:1.0 44:1.0 49:0.3333333333333333 65:0.037037037037037035 73:1.0 89:0.5 117:1.0 149:1.0 249:0.14285714285714285 335:0.3333333333333333 411:1.0 489:0.5 504:1.0 639:0.5 678:1.0 711:1.0 1066:0.5 1113:1.0 1503:1.0 1545:0.5 1882:0.3333333333333333 2256:1.0 2428:1.0 2512:1.0 2743:0.5
7 4:0.1 13:0.16666666666666666 18:0.3333333333333333 44:2.0 78:0.6666666666666666 131:1.0 178:1.0 186:0.25 249:0.14285714285714285 290:0.07692307692307693 322:0.125 330:1.0 382:0.6666666666666666 559:1.0 909:1.0 1314:1.0 1345:0.3333333333333333 1355:1.0 1515:1.0 2292:1.0 2697:1.0 2769:0.5 3244:1.0
7 13:0.16666666666666666 17:0.2 18:0.6666666666666666 21:0.3333333333333333 22:0.1 26:0.5 27:1.0 30:1.0 49:0.3333333333333333 64:0.09090909090909091 65:0.037037037037037035 72:1.0 89:0.5 106:0.5 131:1.0 241:1.0 242:0.029411764705882353 249:0.14285714285714285 271:1.0 296:0.25 335:0.3333333333333333 366:1.0 654:1.0 831:1.0 1882:0.3333333333333333 1936:1.0 3468:1.0 3839:1.0 6646:1.0
7 3:0.2 4:0.1 13:0.16666666666666666 18:0.6666666666666666 22:0.1 64:0.09090909090909091 65:0.037037037037037035 73:1.0 78:0.3333333333333333 88:1.0 104:1.0 131:2.0 147:0.5 177:1.0 178:2.0 180:1.0 241:1.0 249:0.2857142857142857 270:0.3333333333333333 301:1.0 335:0.3333333333333333 353:1.0 382:0.3333333333333333 654:1.0 814:1.0 944:1.0 951:1.0 1240:0.14285714285714285 1499:0.5 1706:1.0 1886:1.0 2100:1.0 2108:1.0 3140:1.0 3468:1.0
7 3:0.2 30:2.0 32:0.3333333333333333 61:1.0 65:0.037037037037037035 105:1.0 117:1.0 147:0.5 175:0.5 197:0.25 208:0.5 223:1.0 247:0.25 249:0.14285714285714285 283:0.2 296:0.5 335:0.3333333333333333 412:1.0 692:1.0 838:0.5 985:0.25 1097:1.0 1805:1.0 1849:1.0 2159:1.0 3468:1.0 3579:1.0 3811:0.5 4132:1.0 4164:1.0
7 3:0.2 4:0.1 32:0.3333333333333333 49:0.5 89:0.5 160:1.0 161:1.0 175:0.5 242:0.029411764705882353 249:0.14285714285714285 309:0.5 377:0.5 442:0.25 482:0.5 846:0.5 1345:0.3333333333333333 2813:1.0 2964:1.0
7 3:0.2 32:0.3333333333333333 48:0.08333333333333333 49:0.5 51:0.125 143:1.0 208:0.5 241:1.0 242:0.029411764705882353 247:0.25 290:0.07692307692307693 296:0.5 520:1.0 608:0.5 620:1.0 722:1.0 726:0.5 929:1.0 1303:0.3333333333333333 1373:0.5 1497:1.0 1556:1.0 2926:0.5
7 18:0.6666666666666666 25:1.0 30:1.0 36:0.3333333333333333 44:2.0 342:0.5 363:0.5 527:1.0 670:1.0 722:1.0 1066:0.5 1215:0.3333333333333333 1339:0.3333333333333333 2507:1.0 3163:1.0 3230:1.0 3471:1.0 6311:1.0
7 3:0.2 13:0.6666666666666666 18:0.6666666666666666 22:0.1 30:2.0 36:0.3333333333333333 43:1.0 44:2.0 49:0.16666666666666666 64:0.09090909090909091 65:0.1111111111111111 111:0.5 180:1.0 209:0.5 230:1.0 242:0.029411764705882353 251:1.0 270:0.3333333333333333 290:0.07692307692307693 335:0.3333333333333333 366:1.0 410:1.0 549:0.16666666666666666 645:1.0 654:1.0 670:1.0 752:0.25 766:1.0 767:1.0 862:1.0 925:1.0 936:1.0 944:1.0 1066:0.5 1117:0.5 1244:0.5 1542:1.0 1610:1.0 1805:1.0 2256:1.0 2353:1.0 2939:1.0 3147:1.0 3746:1.0 4237:1.0 4845:1.0 5457:1.0
7 3:0.2 21:0.3333333333333333 46:0.024390243902439025 49:0.3333333333333333 64:0.09090909090909091 65:0.14814814814814814 78:0.3333333333333333 120:0.5 131:1.0 135:0.3333333333333333 160:0.5 175:0.5 242:0.029411764705882353 300:1.0 557:1.0 691:1.0 811:1.0 852:1.0 1192:1.0 1272:0.25 2227:1.0 3163:1.0 6311:1.0
7 3:0.4 4:0.1 48:0.16666666666666666 49:0.16666666666666666 51:0.125 78:0.6666666666666666 241:1.0 242:0.029411764705882353 256:0.5 286:1.0 296:0.5 352:1.0 410:1.0 440:1.0 442:0.25 796:1.0 1192:1.0 1272:0.25 2875:1.0 6033:1.0
7 4:0.2 28:1.0 30:1.0 44:1.0 49:0.5 52:1.0 63:1.0 65:0.1111111111111111 78:0.3333333333333333 242:0.058823529411764705 249:0.2857142857142857 300:1.0 307:0.2 1303:0.3333333333333333 1321:1.0 1979:1.0 2884:1.0 3429:0.5 6436:1.0
7 3:0.2 22:0.1 44:1.0 45:0.06666666666666667 49:0.16666666666666666 73:1.0 84:1.0 119:1.0 242:0.029411764705882353 442:0.25 492:0.5 520:1.0 527:1.0 889:1.0 892:1.0 1209:1.0 1809:1.0 2317:1.0 2449:1.0 2501:1.0
7 4:0.1 8:1.0 13:0.16666666666666666 22:0.1 30:1.0 44:1.0 46:0.024390243902439025 65:0.1111111111111111 73:1.0 78:0.3333333333333333 89:1.5 110:1.0 147:0.5 160:0.5 270:0.3333333333333333 271:1.0 283:0.2 296:0.25 335:0.6666666666666666 628:1.0 639:0.5 686:0.3333333333333333 741:0.5 764:1.0 951:1.0 1215:0.3333333333333333 2827:1.0 2909:1.0 3099:1.0 4237:1.0 5974:1.0
7 3:0.2 22:0.1 49:0.5 161:1.0 242:0.08823529411764706 270:0.3333333333333333 357:1.0 539:1.0 814:1.0 1066:0.5 1116:1.0 1170:1.0 2595:1.0
7 4:0.1 13:0.3333333333333333 30:1.0 49:0.6666666666666666 149:1.0 197:0.25 217:1.0 242:0.058823529411764705 382:0.3333333333333333 568:0.5 577:1.0
7 3:0.4 18:0.3333333333333333 22:0.1 30:1.0 49:0.16666666666666666 65:0.037037037037037035 120:0.5 124:1.0 247:0.25 296:0.25 332:0.3333333333333333 335:0.3333333333333333 514:0.3333333333333333 520:1.0 657:1.0 719:1.0 1257:1.0 1722:1.0 1957:1.0 2028:1.0
7 175:0.5 342:0.5 661:1.0 1494:1.0 3998:1.0
7 3:0.4 4:0.3 12:0.3333333333333333 18:0.6666666666666666 22:0.1 44:1.0 64:0.09090909090909091 112:0.5 124:1.0 240:0.5 241:1.0 247:0.25 273:1.0 283:0.2 353:1.0 381:1.0 514:0.3333333333333333 823:1.0 1706:1.0 1977:1.0 2084:1.0 2100:1.0 2129:1.0 3691:1.0 3818:1.0
7 3:0.2 18:0.3333333333333333 21:0.3333333333333333 22:0.1 34:1.0 45:0.06666666666666667 49:0.3333333333333333 64:0.09090909090909091 78:0.3333333333333333 104:1.0 114:0.2 131:1.0 164:0.14285714285714285 165:1.0 241:1.0 260:1.0 283:0.2 297:1.0 381:1.0 692:1.0 951:1.0 1345:0.3333333333333333 1499:0.5 1518:1.0 2290:1.0 2827:1.0 3488:1.0 4237:1.0
7 3:0.8 18:0.6666666666666666 22:0.1 43:1.0 44:1.0 49:0.16666666666666666 51:0.125 65:0.037037037037037035 73:2.0 78:0.3333333333333333 112:0.5 206:1.0 207:0.25 241:1.0 270:0.3333333333333333 296:0.25 297:1.0 342:1.0 399:0.5 438:1.0 440:1.0 442:0.25 624:1.0 645:2.0 719:1.0 1081:1.0 1215:0.6666666666666666 1262:1.0 1703:1.0 1918:0.5 1949:1.0 1967:2.0 2803:0.5 3741:1.0 3891:1.0 5099:1.0 5972:1.0
7 13:0.16666666666666666 51:0.125 65:0.037037037037037035 78:0.6666666666666666 155:0.3333333333333333 229:2.0 363:1.0 568:1.5 882:1.0
7 3:0.2 4:0.1 8:2.0 30:2.0 32:1.0 44:1.0 45:0.06666666666666667 48:0.08333333333333333 49:0.16666666666666666 65:0.1111111111111111 78:0.3333333333333333 89:0.5 120:0.5 136:0.3333333333333333 150:1.0 193:1.0 247:0.25 249:0.14285714285714285 270:0.3333333333333333 271:1.0 399:0.25 733:0.5 774:1.0 811:1.0 850:1.0 1209:2.0 1731:1.0 2261:1.0 2706:1.0 3921:1.0 4751:1.0 6346:1.0 6361:1.0 6632:1.0
7 1:0.0625 3:0.2 4:0.1 18:0.6666666666666666 22:0.1 32:0.3333333333333333 49:0.16666666666666666 61:1.0 78:0.6666666666666666 117:1.0 175:0.5 270:0.3333333333333333 322:0.125 463:1.0 464:1.0 484:1.0 656:0.5 757:0.5 795:2.0 951:1.0 1079:1.0 1081:1.0 2361:1.0 2428:1.0 2831:1.0 3493:1.0 3939:1.0
7 4:0.1 18:0.3333333333333333 22:0.1 44:2.0 49:0.16666666666666666 66:1.0 72:1.0 117:1.0 161:1.0 166:0.25 231:1.0 242:0.029411764705882353 278:0.5 342:1.0 425:1.0 679:1.0 777:0.5 877:1.0 2768:1.0
7 1:0.0625 3:0.2 18:0.3333333333333333 30:1.0 46:0.024390243902439025 65:0.037037037037037035 73:1.0 78:0.3333333333333333 81:1.0 111:0.5 160:0.5 249:0.14285714285714285 629:0.2 699:1.0 711:1.0 1092:1.0 2428:1.0
7 1:0.0625 3:0.4 13:0.16666666666666666 18:0.3333333333333333 21:0.3333333333333333 22:0.2 25:1.0 30:1.0 46:0.024390243902439025 49:0.3333333333333333 84:1.0 89:0.5 120:1.0 131:1.0 145:1.0 177:3.0 181:1.0 186:0.25 278:0.5 290:0.15384615384615385 296:0.5 334:0.5 575:0.5 608:0.5 777:0.5 1240:0.14285714285714285 1465:1.0 1687:1.0 4517:1.0
7 13:0.16666666666666666 30:1.0 32:0.3333333333333333 41:1.0 49:0.3333333333333333 78:0.3333333333333333 160:1.0 164:0.14285714285714285 242:0.029411764705882353 249:0.14285714285714285 290:0.07692307692307693 296:0.5 322:0.125 588:0.5 691:1.0 711:1.0 726:0.5 1679:1.0 2092:0.5 2256:1.0 4142:1.0 5248:1.0
7 1:0.0625 46:0.024390243902439025 50:1.0 164:0.14285714285714285 165:1.0 283:0.2 699:1.0 798:1.0
7 13:0.16666666666666666 26:0.5 49:0.16666666666666666 86:1.0 99:1.0 242:0.029411764705882353 246:0.3333333333333333 591:1.0 592:1.0 670:1.0 828:1.0 1066:0.5 1192:1.0 1410:1.0 2036:1.0 2442:1.0 2645:0.25 3087:1.0
7 51:0.125 65:0.037037037037037035 86:1.0 175:0.5 301:1.0 482:0.5 514:0.3333333333333333 1805:1.0
7 4:0.1 18:0.6666666666666666 30:1.0 44:1.0 64:0.09090909090909091 65:0.037037037037037035 178:1.0 226:1.0 444:1.0 514:0.3333333333333333 520:1.0 591:1.0 678:1.0 705:1.0 737:1.0 777:0.5 811:1.0 828:1.0 1281:1.0 1543:1.0 1752:1.0 1825:0.3333333333333333 2174:1.0 3146:1.0 4312:1.0 4978:1.0 6293:1.0 6391:1.0 6603:1.0
7 3:0.2 4:0.1 18:0.6666666666666666 22:0.3 30:1.0 44:3.0 46:0.024390243902439025 49:0.3333333333333333 65:0.1111111111111111 75:1.0 143:1.0 158:1.0 160:0.5 161:1.0 177:1.0 242:0.029411764705882353 260:1.0 270:0.6666666666666666 283:0.2 334:0.5 342:0.5 348:0.5 399:0.5 464:1.0 529:1.0 556:1.0 639:1.0 672:1.0 733:0.5 877:1.0 2539:1.0 2870:1.0 4178:1.0 4460:1.0 5261:1.0 5373:1.0 5944:1.0
7 10:1.0 13:0.16666666666666666 17:0.6 18:1.0 22:0.2 25:1.0 44:1.0 45:0.06666666666666667 46:0.024390243902439025 64:0.09090909090909091 97:1.0 120:0.5 131:1.0 175:0.5 186:0.25 221:0.3333333333333333 223:1.0 249:0.14285714285714285 290:0.15384615384615385 400:0.3333333333333333 638:0.5 654:1.0 679:1.0 681:1.0 1228:1.0 1335:1.0 1395:1.0 1994:1.0 2353:1.0 3122:1.0 3237:1.0 3872:1.0 5241:1.0 5658:1.0
7 12:0.3333333333333333 13:0.16666666666666666 18:0.3333333333333333 22:0.2 44:1.0 65:0.14814814814814814 71:1.0 78:0.3333333333333333 160:0.5 175:0.5 247:0.25 483:0.3333333333333333 759:0.16666666666666666 1618:1.0 2216:1.0 2869:1.0 3026:1.0 4437:1.0 5833:1.0
7 13:0.16666666666666666 17:0.2 18:0.3333333333333333 22:0.1 46:0.024390243902439025 65:0.037037037037037035 164:0.14285714285714285 165:1.0 246:0.3333333333333333 382:0.6666666666666666 524:1.0 670:1.0 814:1.0 1013:1.0 1014:1.0 1964:1.0 2368:1.0 3133:1.0 3388:1.0
7 44:1.0 49:0.16666666666666666 165:1.0 296:0.25 798:1.0 799:1.0 1443:1.0 2256:1.0
7 4:0.1 12:0.3333333333333333 18:0.3333333333333333 22:0.2 44:1.0 45:0.06666666666666667 65:0.07407407407407407 143:1.0 166:0.25 197:0.25 400:0.3333333333333333 492:0.5 588:0.5 719:1.0 1110:1.0 1558:1.0 2068:1.0 2256:1.0 2258:1.0 2857:1.0 3113:1.0 4368:1.0
7 4:0.3 18:0.6666666666666666 22:0.1 32:0.3333333333333333 44:1.0 46:0.024390243902439025 64:0.09090909090909091 65:0.037037037037037035 89:0.5 143:1.0 166:0.25 209:0.5 290:0.07692307692307693 334:0.5 549:0.16666666666666666 889:1.0 936:1.0 960:1.0 1353:1.0 1354:1.0 1355:1.0 1453:1.0 1951:0.5 2487:1.0 2713:1.0
7 1:0.0625 4:0.1 18:0.3333333333333333 46:0.024390243902439025 49:0.16666666666666666 164:0.14285714285714285 165:1.0 335:0.3333333333333333 485:1.0 626:1.0 798:1.0 1303:0.3333333333333333 1339:0.3333333333333333 1680:0.3333333333333333 2123:1.0
7 3:0.2 46:0.024390243902439025 65:0.037037037037037035 73:1.0 84:1.0 178:1.0 209:0.5 290:0.07692307692307693 307:0.2 336:1.0 463:1.0 780:1.0 1014:1.0 1353:1.0 1354:1.0 1355:1.0 1825:0.3333333333333333 3079:1.0 3470:1.0 3610:1.0
7 3:0.2 18:1.0 22:0.1 30:1.0 32:0.3333333333333333 49:0.16666666666666666 62:0.3333333333333333 65:0.037037037037037035 68:0.5 78:0.3333333333333333 88:1.0 92:1.0 106:0.5 131:1.0 135:0.3333333333333333 273:1.0 322:0.125 382:0.3333333333333333 557:1.0 680:1.0 944:1.0 1117:0.5 1240:0.14285714285714285 1844:1.0 2054:1.0 2353:1.0 3134:1.0 5315:1.0 5363:1.0 5502:1.0
7 3:0.4 18:0.3333333333333333 22:0.1 30:1.0 46:0.024390243902439025 48:0.08333333333333333 65:0.07407407407407407 72:1.0 161:1.0 166:0.25 209:0.5 242:0.029411764705882353 270:0.3333333333333333 296:0.25 335:0.3333333333333333 367:1.0 539:1.0 624:1.0 692:1.0 1281:1.0 2321:0.14285714285714285 4774:1.0 5785:1.0
7 3:0.2 30:1.0 49:0.3333333333333333 65:0.07407407407407407 84:1.0 120:0.5 131:1.0 217:1.0 242:0.029411764705882353 247:0.25 394:1.0 624:1.0 644:1.0 842:1.0 2321:0.14285714285714285 2870:1.0 5869:1.0
7 3:0.4 22:0.1 30:1.0 44:1.0 49:0.16666666666666666 65:0.1111111111111111 131:1.0 242:0.029411764705882353 256:0.5 644:1.0 814:1.0 1397:0.5 1505:0.5 1717:1.0 1740:1.0 2098:1.0 2656:1.0 3193:1.0 5124:1.0
7 3:0.4 4:0.1 18:0.3333333333333333 65:0.037037037037037035 89:0.5 230:1.0 272:1.0 290:0.07692307692307693 365:1.0 367:1.0 394:1.0 407:1.0 774:1.0 823:1.0 914:1.0 1007:1.0 1602:0.5 2142:1.0 5622:1.0
7 3:0.4 8:1.0 22:0.1 136:0.3333333333333333 161:1.0 230:1.0 284:0.2 301:1.0 394:1.0 400:0.3333333333333333 467:1.0 561:1.0 638:1.0 644:1.0 1007:1.0 1839:1.0 1940:1.0 2321:0.14285714285714285 3909:1.0 4098:1.0 5406:1.0
7 8:1.0 13:0.5 21:0.3333333333333333 22:0.2 44:1.0 65:0.07407407407407407 89:1.0 256:0.5 365:1.0 482:0.5 624:1.0 650:1.0 868:1.0 1066:0.5 1234:1.0 1805:1.0 1823:1.0 3329:1.0 4517:1.0 5598:1.0
7 3:0.4 4:0.1 12:0.3333333333333333 22:0.1 44:2.0 48:0.08333333333333333 65:0.07407407407407407 78:0.6666666666666666 81:1.0 89:0.5 136:0.3333333333333333 160:0.5 335:0.3333333333333333 342:0.5 366:1.0 367:1.0 393:1.0 589:1.0 877:1.0 880:1.0 1700:1.0 2079:1.0 2106:1.0 2550:1.0 5869:1.0
7 3:0.2 4:0.2 13:0.16666666666666666 16:1.0 18:0.3333333333333333 44:1.0 49:0.16666666666666666 65:0.07407407407407407 78:0.3333333333333333 105:1.0 159:1.0 186:0.5 206:1.0 241:1.0 242:0.029411764705882353 256:0.5 264:1.0 270:0.3333333333333333 652:0.1 680:1.0 759:0.16666666666666666 999:1.0 1066:0.5 1246:1.0 1471:0.3333333333333333 1481:1.0 2442:1.0 2853:0.5 3406:1.0 4507:1.0
7 3:0.2 18:0.6666666666666666 30:1.0 41:1.0 44:1.0 65:0.07407407407407407 66:1.0 68:0.5 88:1.0 149:1.0 208:0.5 226:1.0 247:0.25 249:0.2857142857142857 256:0.5 338:0.5 365:1.0 524:1.0 544:1.0 608:0.5 945:0.5 1010:1.0 1066:0.5 1268:1.0 1581:1.0 1797:1.0 1910:1.0 2259:1.0 2869:1.0 3245:1.0 4189:1.0 4678:1.0 4725:1.0 5457:1.0 5669:1.0
7 18:0.3333333333333333 36:0.3333333333333333 65:0.037037037037037035 131:1.0 143:1.0 249:0.14285714285714285 335:0.3333333333333333 338:0.5 342:0.5 365:1.0 724:1.0 816:1.0 817:1.0 898:1.0 1170:1.0 1331:1.0 5622:1.0
7 13:0.3333333333333333 18:0.3333333333333333 26:0.5 27:1.0 30:1.0 49:0.3333333333333333 51:0.125 65:0.037037037037037035 78:1.0 84:1.0 128:0.25 335:0.3333333333333333 352:1.0 361:0.5 394:1.0 529:1.0 639:0.5 808:0.3333333333333333 1397:0.5 2081:1.0 2353:1.0 2939:1.0
7 17:0.2 18:0.3333333333333333 34:1.0 44:1.0 45:0.06666666666666667 65:0.037037037037037035 158:1.0 230:1.0 249:0.14285714285714285 296:0.25 330:1.0 377:0.5 681:1.0 1061:1.0 1123:1.0 1131:0.5 1805:1.0 2351:1.0
7 4:0.1 12:0.3333333333333333 13:0.3333333333333333 18:0.3333333333333333 32:0.3333333333333333 44:1.0 46:0.024390243902439025 65:0.037037037037037035 97:1.0 117:1.0 120:0.5 136:0.3333333333333333 247:0.25 249:0.14285714285714285 260:1.0 307:0.2 365:1.0 645:1.0 759:0.16666666666666666 786:1.0 936:1.0 944:1.0 2050:1.0 2175:1.0 2368:1.0 2926:0.5 3084:1.0
7 22:0.1 30:1.0 34:1.0 46:0.024390243902439025 128:0.25 234:1.0 249:0.14285714285714285 296:0.25 352:1.0 412:1.0 500:0.14285714285714285 638:0.5 734:1.0 1874:1.0 2317:1.0 2353:1.0 4413:0.5 4892:1.0 5644:1.0
7 3:0.2 4:0.1 18:0.3333333333333333 32:0.6666666666666666 45:0.06666666666666667 49:0.6666666666666666 64:0.09090909090909091 65:0.07407407407407407 71:1.0 78:0.3333333333333333 97:1.0 106:0.5 116:1.0 139:0.14285714285714285 161:1.0 164:0.14285714285714285 165:1.0 175:0.5 242:0.029411764705882353 448:1.0 568:0.5 817:1.0 891:0.3333333333333333 903:1.0 957:1.0 1081:1.0 1395:1.0 3995:1.0 4854:1.0 5766:1.0
7 8:2.0 13:0.16666666666666666 30:1.0 46:0.024390243902439025 136:0.3333333333333333 160:0.5 270:0.6666666666666666 271:1.0 290:0.07692307692307693 692:1.0 766:1.0 767:1.0 811:1.0 814:1.0 1097:1.0 1630:0.3333333333333333 1706:1.0 2064:0.5 2159:1.0 2208:1.0 4312:1.0 6217:1.0
7 22:0.1 30:1.0 45:0.06666666666666667 46:0.024390243902439025 48:0.16666666666666666 49:0.3333333333333333 59:0.5 60:1.0 65:0.037037037037037035 66:1.0 86:1.0 116:1.0 177:1.0 249:0.14285714285714285 529:1.0 684:1.0 862:1.0 921:1.0 1378:0.5 2013:1.0 2479:1.0 2586:1.0 4413:0.5 4851:1.0
7 13:0.16666666666666666 18:0.3333333333333333 22:0.1 44:2.0 46:0.024390243902439025 49:0.16666666666666666 50:1.0 65:0.1111111111111111 143:1.0 278:0.5 811:1.0 1056:1.0 1763:0.5 2645:0.125 2803:0.5 4246:1.0 5993:1.0
7 12:0.6666666666666666 13:0.16666666666666666 18:0.3333333333333333 44:1.0 65:0.1111111111111111 72:1.0 88:1.0 249:0.14285714285714285 271:1.0 300:1.0 383:1.0 387:0.5 1056:1.0 1240:0.14285714285714285 2645:0.125
7 1:0.0625 49:0.16666666666666666 65:0.037037037037037035 1751:1.0 1929:1.0 3159:1.0
7 12:0.3333333333333333 22:0.1 32:0.3333333333333333 49:0.16666666666666666 59:0.5 89:1.0 139:0.14285714285714285 160:0.5 221:0.3333333333333333 242:0.029411764705882353 270:0.3333333333333333 296:0.25 309:0.5 546:1.0 549:0.16666666666666666 758:1.0 944:1.0 1805:1.0 2092:0.5 2351:1.0 2377:1.0 2926:0.5 3056:1.0 3579:1.0
7 4:0.1 15:0.5 49:0.16666666666666666 64:0.09090909090909091 65:0.037037037037037035 78:0.3333333333333333 89:0.5 131:1.0 209:0.5 283:0.2 417:1.0 670:1.0 676:0.5 816:1.0 910:1.0 3226:1.0 3406:1.0 4288:1.0
7 3:0.2 30:1.0 44:1.0 48:0.08333333333333333 65:0.037037037037037035 68:0.5 209:0.5 252:1.0 256:0.5 296:0.25 331:1.0 549:0.16666666666666666 612:1.0 1339:0.3333333333333333 1890:0.5 6337:1.0
7 13:0.16666666666666666 18:0.3333333333333333 27:1.0 32:0.3333333333333333 39:1.0 44:2.0 49:0.16666666666666666 65:0.07407407407407407 73:1.0 89:1.0 106:0.5 111:0.5 122:0.5 178:2.0 249:0.14285714285714285 270:0.3333333333333333 331:1.0 903:1.0 1215:0.3333333333333333 1344:1.0 1543:1.0 4241:1.0 5980:1.0 6320:1.0
7 4:0.1 22:0.2 44:1.0 46:0.024390243902439025 51:0.125 68:0.5 78:0.3333333333333333 86:1.0 164:0.14285714285714285 351:1.0 399:0.25 520:1.0 619:1.0 623:1.0 759:0.16666666666666666 832:1.0 894:1.0 1041:0.5 1145:1.0 2050:1.0 4084:1.0
7 4:0.1 8:1.0 18:0.3333333333333333 21:0.3333333333333333 65:0.07407407407407407 68:0.5 178:1.0 301:1.0 342:0.5 351:1.0 568:0.5 670:1.0 726:0.5 1257:1.0 1825:0.3333333333333333 6391:1.0
7 5:1.0 18:0.3333333333333333 22:0.3 30:2.0 44:1.0 48:0.08333333333333333 49:0.5 116:1.0 122:0.5 161:1.0 234:0.5 249:0.2857142857142857 251:1.0 342:0.5 514:0.3333333333333333 608:0.5 786:1.0 814:1.0 911:1.0 1097:1.0 1138:0.5 1513:1.0 1828:1.0 2050:2.0 2182:1.0 2258:1.0 2476:1.0 2743:0.5 6455:1.0
7 3:0.2 4:0.1 28:1.0 30:1.0 32:0.3333333333333333 46:0.04878048780487805 48:0.08333333333333333 49:0.16666666666666666 53:2.0 242:0.029411764705882353 270:0.3333333333333333 335:0.6666666666666666 529:1.0 608:0.5 639:1.0 1056:1.0 1196:1.0 1272:0.25 2176:1.0
7 3:0.2 4:0.1 18:0.3333333333333333 30:2.0 36:0.3333333333333333 117:1.0 155:0.6666666666666666 296:0.25 549:0.16666666666666666 1108:1.0 1145:1.0 1205:0.5 1293:1.0 1344:1.0 2193:1.0 2256:1.0 2316:1.0 5026:1.0
7 3:0.2 4:0.4 18:0.3333333333333333 22:0.1 46:0.024390243902439025 48:0.08333333333333333 65:0.07407407407407407 68:0.5 78:0.6666666666666666 160:0.5 206:1.0 208:0.5 244:1.0 284:0.2 300:1.0 301:1.0 342:0.5 618:1.0 750:0.3333333333333333 761:0.5 925:1.0 945:0.5 1056:1.0 1240:0.14285714285714285 1478:1.0 1494:1.0 1505:0.5 1602:0.5 2126:1.0 2353:1.0 2377:1.0 2818:1.0 2819:1.0 3059:1.0 5363:1.0
7 1:0.0625 30:1.0 32:0.3333333333333333 46:0.04878048780487805 50:1.0 65:0.14814814814814814 122:0.5 124:1.0 296:0.25 334:0.5 483:0.3333333333333333 529:1.0 583:1.0 750:0.3333333333333333 1339:0.3333333333333333 2112:0.5 2546:1.0 3842:1.0 3885:1.0 3948:2.0
7 1:0.0625 21:0.3333333333333333 30:2.0 32:0.3333333333333333 44:1.0 49:0.16666666666666666 52:1.0 59:0.5 65:0.037037037037037035 75:1.0 78:0.3333333333333333 145:1.0 179:1.0 242:0.029411764705882353 249:0.14285714285714285 766:1.0 767:1.0 1572:1.0 1805:2.0 1870:1.0 2170:1.0 4368:1.0 4779:1.0 5559:1.0 6646:1.0
7 3:0.2 4:0.1 13:0.16666666666666666 25:1.0 32:0.6666666666666666 46:0.04878048780487805 49:0.16666666666666666 112:0.5 120:0.5 136:0.3333333333333333 154:1.0 270:0.6666666666666666 271:1.0 514:0.3333333333333333 516:1.0 670:1.0 1272:0.25 1281:1.0 1521:1.0 1829:1.0 6339:1.0 6631:1.0
7 22:0.1 32:0.3333333333333333 34:1.0 44:1.0 46:0.024390243902439025 49:0.16666666666666666 64:0.18181818181818182 65:0.037037037037037035 300:1.0 322:0.125 334:0.5 411:1.0 549:0.16666666666666666 568:0.5 645:1.0 657:1.0 669:0.16666666666666666 786:1.0 1380:1.0 1421:1.0 1780:1.0 2288:1.0 2736:1.0 6116:1.0
7 4:0.1 8:1.0 13:0.16666666666666666 21:0.3333333333333333 25:1.0 32:0.3333333333333333 45:0.06666666666666667 46:0.07317073170731707 49:0.16666666666666666 65:0.037037037037037035 120:0.5 131:1.0 160:0.5 175:0.5 256:0.5 270:0.3333333333333333 296:0.25 334:0.5 411:1.0 492:0.5 514:0.3333333333333333 594:1.0 644:2.0 761:0.5 762:1.0 811:1.0 814:1.0 1092:1.0 1192:1.0 1215:0.3333333333333333 1272:0.25 1303:0.3333333333333333 1706:1.0 1882:0.3333333333333333 2222:1.0 2300:1.0 3063:1.0 3351:0.5 6339:1.0
7 1:0.0625 3:0.2 8:1.0 18:0.3333333333333333 25:1.0 30:1.0 65:0.037037037037037035 143:1.0 241:1.0 290:0.07692307692307693 296:0.5 322:0.125 381:1.0 811:1.0 814:1.0 843:1.0 1240:0.14285714285714285 1870:1.0 1967:1.0 3455:1.0
7 3:0.2 13:0.3333333333333333 18:1.0 30:1.0 49:0.6666666666666666 64:0.09090909090909091 72:1.0 247:0.25 270:0.3333333333333333 342:0.5 362:0.2 382:0.3333333333333333 387:0.5 535:1.0 568:1.0 656:0.5 658:0.3333333333333333 752:0.25 786:1.0 925:1.0 1486:1.0 2630:1.0
7 5:1.0 12:0.3333333333333333 13:0.16666666666666666 18:0.3333333333333333 22:0.2 30:1.0 65:0.07407407407407407 73:1.0 78:0.3333333333333333 105:1.0 114:0.2 117:1.0 240:0.5 463:1.0 765:1.0 774:1.0 842:1.0 1017:0.5 1344:1.0 2700:1.0 2749:1.0 3446:1.0 3875:1.0 4237:1.0 5676:1.0
7 3:0.2 8:1.0 30:1.0 32:0.3333333333333333 36:0.3333333333333333 44:1.0 49:0.3333333333333333 59:0.5 65:0.07407407407407407 68:0.5 78:0.3333333333333333 84:1.0 86:1.0 106:0.5 120:0.5 131:1.0 161:1.0 178:1.0 246:0.3333333333333333 247:0.25 251:1.0 278:1.0 290:0.15384615384615385 406:1.0 411:1.0 529:1.0 692:1.0 1010:1.0 1086:1.0 1170:1.0 1196:1.0 2108:1.0 3117:1.0 3881:1.0 4843:1.0 4912:1.0 5839:1.0 6646:1.0
7 4:0.1 13:0.16666666666666666 18:0.3333333333333333 22:0.1 32:0.3333333333333333 46:0.024390243902439025 48:0.08333333333333333 49:0.3333333333333333 65:0.037037037037037035 66:1.0 68:0.5 88:1.0 164:0.14285714285714285 165:1.0 175:0.5 249:0.14285714285714285 284:0.2 296:0.25 351:1.0 407:1.0 483:0.3333333333333333 692:1.0 1482:1.0 1779:1.0 3056:1.0 4524:0.5 5502:1.0
7 4:0.1 8:1.0 13:0.3333333333333333 30:1.0 44:1.0 45:0.06666666666666667 46:0.024390243902439025 65:0.037037037037037035 106:0.5 131:1.0 160:0.5 161:1.0 247:0.25 256:0.5 335:0.3333333333333333 411:1.0 463:1.0 514:0.3333333333333333 679:1.0 686:0.3333333333333333 711:1.0 759:0.16666666666666666 811:1.0 825:1.0 967:0.3333333333333333 1258:1.0 1706:1.0 1803:1.0 1980:1.0 2174:1.0 2222:1.0 2368:1.0 5212:1.0
7 4:0.1 25:1.0 65:0.07407407407407407 78:0.3333333333333333 131:1.0 178:1.0 514:0.3333333333333333 515:1.0 805:1.0 809:1.0 810:1.0 1138:0.5 1499:0.5 2570:1.0
7 3:0.4 13:0.16666666666666666 18:0.3333333333333333 22:0.4 27:1.0 30:1.0 32:0.3333333333333333 46:0.04878048780487805 83:1.0 143:1.0 352:1.0 382:0.3333333333333333 529:1.0 670:2.0 853:0.5 1086:1.0 1090:1.0 1093:0.5 1438:1.0 1964:1.0 2043:1.0 2578:1.0 3501:1.0 4193:1.0 4976:1.0
7 3:0.4 4:0.1 13:0.16666666666666666 15:0.5 30:1.0 32:0.3333333333333333 48:0.08333333333333333 49:0.3333333333333333 65:0.07407407407407407 68:0.5 71:2.0 72:1.0 102:1.0 106:0.5 117:1.0 160:0.5 161:1.0 242:0.029411764705882353 246:0.3333333333333333 264:1.0 549:0.16666666666666666 570:1.0 670:1.0 774:1.0 915:0.5 1039:1.0 1240:0.14285714285714285 1483:1.0 1726:1.0 1852:1.0 2043:1.0 2294:1.0 2872:1.0 6561:1.0
7 13:0.3333333333333333 18:0.6666666666666666 19:1.0 22:0.1 30:2.0 41:1.0 44:1.0 49:0.16666666666666666 61:1.0 65:0.1111111111111111 98:1.0 114:0.2 122:0.5 166:0.25 256:0.5 336:1.0 421:1.0 529:1.0 557:1.0 567:0.125 670:1.0 787:1.0 925:1.0 1017:0.5 1092:1.0 1196:1.0 1359:1.0 1486:1.0 1791:1.0 2630:1.0 4798:1.0 5538:1.0 6179:1.0
7 13:0.16666666666666666 18:1.3333333333333333 28:1.0 41:1.0 49:0.6666666666666666 50:1.0 65:0.07407407407407407 83:1.0 84:1.0 88:2.0 89:0.5 131:2.0 147:0.5 178:1.0 207:0.25 217:1.0 249:0.14285714285714285 251:1.0 352:1.0 484:1.0 891:0.3333333333333333 951:1.0 1192:1.0 1196:1.0 1272:0.25 2604:1.0 3691:1.0 4437:1.0 4912:1.0 5126:1.0 6167:1.0
7 3:0.2 12:0.3333333333333333 13:0.5 49:0.3333333333333333 65:0.037037037037037035 102:1.0 147:0.5 242:0.029411764705882353 469:0.5 750:0.3333333333333333 808:0.3333333333333333 949:1.0 1066:0.5 1521:1.0 3115:1.0
7 12:0.3333333333333333 49:0.16666666666666666 219:1.0 242:0.029411764705882353 1153:1.0 1228:1.0
7 49:0.3333333333333333 190:1.0 241:1.0 242:0.029411764705882353 296:0.25 442:0.25 602:1.0 676:0.5 742:1.0 846:0.5 916:1.0 1153:1.0
7 1:0.0625 3:0.2 4:0.1 18:0.3333333333333333 22:0.1 49:0.16666666666666666 65:0.037037037037037035 66:1.0 78:0.3333333333333333 106:0.5 112:0.5 160:0.5 179:1.0 278:0.5 296:0.25 309:0.5 335:0.3333333333333333 514:0.3333333333333333 826:1.0 835:1.0 1017:0.5 1196:1.0 2362:1.0 3579:1.0
7 3:0.4 13:0.16666666666666666 21:0.6666666666666666 30:1.0 32:0.3333333333333333 34:1.0 46:0.024390243902439025 48:0.08333333333333333 49:0.3333333333333333 65:0.037037037037037035 73:1.0 89:0.5 90:1.0 91:1.0 120:0.5 183:1.0 242:0.029411764705882353 247:0.25 278:0.5 286:1.0 335:0.3333333333333333 549:0.16666666666666666 568:0.5 692:1.0 877:1.0 1170:1.0 1527:1.0 1596:1.0 1706:1.0 2193:1.0 2806:1.0 2926:0.5 3329:1.0
7 15:0.5 22:0.2 32:0.3333333333333333 48:0.08333333333333333 49:0.16666666666666666 160:0.5 161:1.0 198:1.0 247:0.25 411:1.0 612:1.0 669:0.16666666666666666 1131:0.5 1141:1.0 1170:1.0 1258:1.0 2221:1.0 2480:1.0 3936:1.0
|
2519fc390216e5ed200a11fc3dacc69678345f07 | 449d555969bfd7befe906877abab098c6e63a0e8 | /52/CH5/EX5.6/Example5_6.sce | 0c8717271a1f8622036bb1ac6c262776706d18c7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 290 | sce | Example5_6.sce | //Example 5.6
//To Find out the order of the Filter using Chebyshev Approximation
clear;
clc ;
close ;
ap=3;//db
as=16;//db
fp=1000;//Hz
fs=2000;//Hz
op=2*%pi*fp;
os=2*%pi*fs;
N=acosh(sqrt((10^(0.1*as)-1)/(10^(0.1*ap)-1)))/acosh(os/op);
disp(ceil(N),'Order of the filter, N ='); |
1cd63e7c601f9fb37e8a3cfb4dbb284f7b536c10 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH17/EX17.22/Example17_22.sce | e3c2ce1aac0ab66bc1d759299546db20702d718c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,553 | sce | Example17_22.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART II : TRANSMISSION AND DISTRIBUTION
// CHAPTER 10: POWER SYSTEM STABILITY
// EXAMPLE : 10.22 :
// Page number 306
clear ; clc ; close ; // Clear the work space and console
// Given data
f = 50.0 // Frequency(Hz)
P = 4.0 // Number of poles
G = 20.0 // Rating of turbo-generator(MVA)
V = 13.2 // Voltage(kV)
H = 9.0 // Inertia constant(kW-sec/kVA)
P_s = 20.0 // Input power less rotational loss(MW)
P_e = 15.0 // Output power(MW)
n = 10.0 // Number of cycles
// Calculations
KE = G*H // Kinetic energy stored(MJ)
M = G*H/(180*f) // Angular momentum(MJ-sec/elect.degree)
P_a = P_s-P_e // Accelerating power(MW)
alpha = P_a/M // Acceleration(elect.degree/sec^2)
alpha_deg = alpha/2.0 // Acceleration(degree/sec^2)
alpha_rpm = 60.0*alpha_deg/360 // Acceleration(rpm/sec)
t = 1.0/f*n // Time(sec)
delta = 1.0/2*alpha*t**2 // Change in torque angle(elect.degree)
N_s = 120*f/P // Synchronous speed(rpm)
speed = N_s+alpha_rpm*t // Speed at the end of 10 cycles(rpm)
// Results
disp("PART II - EXAMPLE : 10.22 : SOLUTION :-")
printf("\nChange in torque angle in that period, δ = %.f elect degrees.", delta)
printf("\nSpeed in rpm at the end of 10 cycles = %.2f rpm", speed)
|
be5787ccd4b007959f5de8472ab5417e719ac0c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1997/CH2/EX2.2/example2.sce | 29e6da81baf3dc62d087f9df7b66710a122c27c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 887 | sce | example2.sce | //Chapter-2 example 2.2
//=============================================================================
clc;
clear;
Pt=5000; //Peak tx power in watts
Pav=1000; //Average Power
PRF1 = 10; //Pulse repetition frequency in khz
PRF2 = 20; //Pulse repetition frequency in khz
//Calculations
D=Pav/Pt;//Duty cycle
PRI1=1/PRF1; //Pulse repetitive interval in msec
PRI2=1/PRF2; //Pulse repetitive interval in msec
PW1=D*PRI1; //Pulse Width in msec
PW2=D*PRI2; //Pulse Width in msec
PE1=Pt*PW1; //Pulse Energy in joules
PE2=Pt*PW2; //Pulse Energy in joules
//Output
mprintf('Duty cycle is %3.2f \n pulse repetition interval 1 is %3.2f msec\n pulse repetition interval 2 is %3.2f msec\n Pulse Width1 is %3.2f usec\n Pulse Width2 is %3.2f usec\n Pulse Energy1 is %3.2f J \n Pulse Energy2 is %3.2f J',D,PRI1,PRI2,PW1*1000,PW2*1000,PE1/1000,PE2/1000);
|
d77b181bc551e3a057ffcef835da731854121602 | 39c5c468df5e2bde0147a30cf092fc8da3e7ed3e | /UFRGS/calcNumerico/area2/P2_numerico_oberdan/M8 - Minimos_Quadrados/M8-Q6 - minimos-quadrados-kx.sce | 884a00ba3e0cb6c3e6ac7851cee357c75969ff57 | [] | no_license | andredxc/Files | 9dffc9fe5f7e923b83035d794dfa15c930cdb898 | e32309b9ab548b829b04be66c2776cf9c9c6656e | refs/heads/master | 2021-06-03T10:44:01.606242 | 2020-09-21T15:39:48 | 2020-09-21T15:39:48 | 107,410,076 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 72 | sce | M8-Q6 - minimos-quadrados-kx.sce | clear //q6
x=[-2:0.1:2]'
b=exp(x/12)-1
A=[x^1]
k=(A'*A)\(A'*b)
disp(k)
|
25214b7fcb6c607c8a883cf60861c4005d0440b1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1784/CH35/EX35.1/example1.sce | ef1cccfc020e721d1964a0b7e69da2498611a1a0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 604 | sce | example1.sce | //chapter 35
//example1
clc
//given
l=1.0 //length of solenoid in meter
r=3*10^-2 //radius of solenoid in meter
n=200*10^2 //number of turns in solenoid per meter
u0=4*%pi*10^-7 //in weber/amp-m
i=1.5 //current in amp
N=100 //no.of turns in a close packed coil placed at the center of solenoid
d=2*10^-2 //diameter of coil in meter
delta_T=0.050 //in sec
//(A)
B=u0*i*n
disp(B,"Magnetic field at center in wb/m2 is")
//(B)
A=%pi*(d/2)^2
Q=B*A
disp(Q,"Magnetic flux at the center of the solenoid in weber is")
delta_Q=Q-(-Q)
E=-(N*delta_Q/delta_T)
disp(E,"Induced EMF in volts is ")
|
e9ab3e4e9b8e7a4670eb7bf58ef75c060221676d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2132/CH3/EX3.22/Example3_22.sce | 6ff9e701da879dad70d54daf464e2bfcd6a1f613 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 455 | sce | Example3_22.sce | //Example 3.22
clc;
clear;
close;
format('v',7);
//Given data :
A=2*1;//m^2
xbar=2+2/2;//meter
w=9.81;//kN/m^2
PH=w*A*xbar;//kN
disp(PH,"Horizontal component of resultant Pressure in kN : ");
PV=w*[2*2+2*2-%pi*2^2/4]*1;//kN
disp(PV,"Verticalal component of resultant Pressure in kN : ");
P=sqrt(PH^2+PV^2);//kN
disp(P,"Resultant pressure in kN : ");
theta=atand(PV/PH);//degree
disp(theta,"Direction of resultant pressure in degree : ");
|
b4d63d7011816cb7bf3e1b1fbd3f176bbf337648 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/scicos/do_SaveAs.sci | c0970b87ef0dd595bd18f9ca22203ff2f5862158 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,852 | sci | do_SaveAs.sci | function [scs_m,edited]=do_SaveAs()
//
// Copyright INRIA
tit=['For saving in binary file use .cos extension,';
'for saving in ascii file use .cosf extension']
fname=xgetfile('*.cos*',emptystr(),tit)
if fname==emptystr() then return,end
[path,name,ext]=splitfilepath(fname)
select ext
case 'cos' then
ok=%t
frmt='unformatted'
case 'cosf' then
ok=%t
frmt='formatted'
else
message('Only *.cos binary or cosf ascii files allowed');
return
end
if ~super_block&~pal_mode then
//update cpr data structure to make it coherent with last changes
if needcompile==4 then
cpr=list()
else
[cpr,state0,needcompile,ok]=do_update(cpr,state0,needcompile)
if ~ok then return,end
cpr(1)=state0
end
else
cpr=list()
end
// open the selected file
if frmt=='formatted'
[u,err]=file('open',fname,'unknown',frmt)
else
[u,err]=mopen(fname,'wb')
end
if err<>0 then
message('File or directory write access denied')
return
end
scs_m;
scs_m(1)(2)=[name,path] // Change the title
if pal_mode then
scs_m11=scs_m(1)(1)
rect=dig_bound(scs_m)
if rect<>[] then
scs_m;
scs_m(1)(1)(3)=rect(1);
scs_m(1)(1)(4)=rect(2);
scs_m(1)(1)(5)=rect(3)-rect(1);
scs_m(1)(1)(6)=rect(4)-rect(2);
end
end
// save
if ext=='cos' then
save(u,scicos_ver,scs_m,cpr)
else
// disablemenus()
errcatch(-1,'continue')
write(u,sci2exp(scicos_ver,'scicos_ver'),'(a)')
errcatch(-1)
if iserror(-1)==1 then
errclear(-1)
x_message('Directory write access denied')
file('close',u)
if pal_mode then scs_m(1)(1)=scs_m11;end
return
end
cos2cosf(u,do_purge(scs_m))
// enablemenus()
end
file('close',u)
drawtitle(scs_m(1)) // draw the new title
edited=%f
if pal_mode then
scs_m(1)(1)=scs_m11
scicos_pal=update_scicos_pal(path,scs_m(1)(2)(1),fname),
scicos_pal=resume(scicos_pal)
end
|
c1ee9c9fec108aa8962aa4e3f9ec5a29006e6218 | 0ae5ae9c08787d2f7c6b2c038618e152e157f553 | /Scripts/InsertHalfYear.tst | e350efb1bd96157100bc5b6332eb1494ab68cc74 | [] | no_license | piltatnik/CustomReports | ba8507d929adb23d8f3820d70f095f15802401fc | 2019cdc49bdf56b7beb46df9db3d76df142a1827 | refs/heads/master | 2021-09-13T14:48:10.824111 | 2018-05-01T11:45:23 | 2018-05-01T11:45:23 | 107,878,933 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Scilab | false | false | 3,148 | tst | InsertHalfYear.tst | PL/SQL Developer Test script 3.0
78
DECLARE pPassBeginDate DATE := to_date('30.11.2017 3:00:00', 'dd.mm.yyyy HH24:MI:SS');
pPassEndDate DATE := to_date('01.12.2017 3:00:00', 'dd.mm.yyyy HH24:MI:SS');
BEGIN
/*DROP TABLE tmp$cptt_buffer_halfyear;
CREATE TABLE tmp$cptt_buffer_halfyear(ID NUMBER(38),
DATE_OF DATE,
ID_ROUTE NUMBER(38),
ID_VEHICLE NUMBER(38),
ID_OPERATOR NUMBER(38),
ID_DIVISION NUMBER(38));SELECT count(1) FRom tmp$cptt_buffer_halfyear*/
DELETE FROM tmp$cptt_buffer_halfyear;
INSERT INTO tmp$cptt_buffer_halfyear
(ID,
DATE_OF,
ID_ROUTE,
ID_VEHICLE,
ID_OPERATOR,
ID_DIVISION)
SELECT trans.id,
trunc(trans.date_of-3/24) AS date_of,
trans.id_route,
trans.id_vehicle,
div.id_operator,
CASE
WHEN div.id_operator IN (400246845, 500246845) THEN
NULL
ELSE
div.id
END AS id_division
FROM cptt.t_data trans,
cptt.division div
WHERE trans.d = 0 -- не удален
AND trans.kind IN (32, 14, 16, 17, 20) --1,2
AND date_of >= pPassBeginDate
AND date_of < pPassEndDate
AND (nvl(trans.new_card_series, trans.card_series) IN
('11',
'12',
'13',
'14',
'15',
'16',
'17',
'19',
'50',
'41',
'44',
'20',
'21',
'22',
'23',
'24',
'25',
'29',
'52',
'42',
'45',
'31',
'32',
'33',
'34',
'35',
'39',
'53',
'43',
'46',
'96',
'10',
'90',
'60') OR
nvl(trans.new_card_series, trans.card_series) IS NULL)
AND trans.id_division = div.id --отбрасываем заблокированных операторов и заблокированных маршрутчиков
AND div.id_operator NOT IN
(SELECT id FROM cptt.ref$trep_agents_locked)
AND div.id NOT IN
(SELECT id FROM cptt.ref$trep_divisions_locked);
COMMIT;
END;
5
cur
1
<Cursor>
-116
pActivationBeginDate
1
16.10.2017
-12
pActivationEndDate
1
15.11.2017
-12
pPassBeginDate
1
30.11.2017 3:00:00
-12
pPassEndDate
1
01.12.2017 3:00:00
-12
0
|
5fa22af8a78c616eeb83b6fcebf214eed3c10793 | dc1af20bca10db33d1adcbf61d5fe874eb6eab07 | /large_vcm/large_vcm/environment/TEST0293/TEST0293.tst | 4e9bf5b26344d0e9e2818f367d8317eb742ca72b | [] | no_license | TimSVector/PointOfSales_v2 | 2d1130516cfc5d77f2e5d0f60adcde96374f6fc2 | ef630f05850715568725cf94cc0e497146a049d4 | refs/heads/master | 2023-08-04T10:51:50.031346 | 2023-08-03T20:50:28 | 2023-08-03T20:50:28 | 133,404,783 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 62,630 | tst | TEST0293.tst | -- VectorCAST 22.sp8 (01/31/23)
-- Test Case Script
--
-- Environment : TEST0293
-- Unit(s) Under Test: manager
--
-- Script Features
TEST.SCRIPT_FEATURE:C_DIRECT_ARRAY_INDEXING
TEST.SCRIPT_FEATURE:CPP_CLASS_OBJECT_REVISION
TEST.SCRIPT_FEATURE:MULTIPLE_UUT_SUPPORT
TEST.SCRIPT_FEATURE:REMOVED_CL_PREFIX
TEST.SCRIPT_FEATURE:MIXED_CASE_NAMES
TEST.SCRIPT_FEATURE:STATIC_HEADER_FUNCS_IN_UUTS
TEST.SCRIPT_FEATURE:VCAST_MAIN_NOT_RENAMED
--
-- Unit: manager
-- Subprogram: Add_Included_Dessert
-- Test Case: BASIS-PATH-001
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-001
TEST.BASIS_PATH:1 of 3
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-001.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-001.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-001.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-001.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-001.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-001.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-001.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-001.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-001.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-001.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-001.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-001.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-001.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-001.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-002
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-002
TEST.BASIS_PATH:2 of 3
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: BASIS-PATH-002.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-002.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: BASIS-PATH-002.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-002.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: BASIS-PATH-002.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-002.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: BASIS-PATH-002.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-002.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: BASIS-PATH-002.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-002.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: BASIS-PATH-002.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-002.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: BASIS-PATH-002.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-002.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: BASIS-PATH-003
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-003
TEST.BASIS_PATH:3 of 3
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: BASIS-PATH-003.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-003.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: BASIS-PATH-003.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-003.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: BASIS-PATH-003.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-003.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: BASIS-PATH-003.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-003.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: BASIS-PATH-003.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-003.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: BASIS-PATH-003.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-003.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: BASIS-PATH-003.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:BASIS-PATH-003.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Subprogram: Add_Party_To_Waiting_List
-- Test Case: BASIS-PATH-001
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-001
TEST.BASIS_PATH:1 of 3
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-001.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-001.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-001.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-001.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-001.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-001.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-001.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-001.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-001.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-001.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-001.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-001.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-001.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-001.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-002
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-002
TEST.BASIS_PATH:2 of 3
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<malloc 1>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name[0]:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-002.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<malloc 1>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name[0]:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-002.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<malloc 1>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name[0]:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-002.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<malloc 1>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name[0]:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-002.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<malloc 1>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name[0]:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-002.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<malloc 1>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name[0]:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-002.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<malloc 1>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name[0]:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-002.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListSize > (9)) ==> FALSE
(2) while (Name && *Name) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MIN>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<malloc 1>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name[0]:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-003
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-003
TEST.BASIS_PATH:3 of 3
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if (WaitingListSize > (9)) ==> TRUE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MAX>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-003.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-003.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if (WaitingListSize > (9)) ==> TRUE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MAX>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-003.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-003.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if (WaitingListSize > (9)) ==> TRUE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MAX>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-003.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-003.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if (WaitingListSize > (9)) ==> TRUE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MAX>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-003.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-003.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if (WaitingListSize > (9)) ==> TRUE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MAX>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-003.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-003.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if (WaitingListSize > (9)) ==> TRUE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MAX>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-003.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-003.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if (WaitingListSize > (9)) ==> TRUE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MAX>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Test Case: BASIS-PATH-003.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:BASIS-PATH-003.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if (WaitingListSize > (9)) ==> TRUE
(2) while (Name && *Name) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListSize:<<MAX>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<null>>
TEST.END
-- Subprogram: Clear_Table
-- Test Case: BASIS-PATH-001-PARTIAL
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-001-PARTIAL
TEST.BASIS_PATH:1 of 2 (partial)
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) for (Seat < 4) ==> FALSE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001-PARTIAL.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-001-PARTIAL.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) for (Seat < 4) ==> FALSE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001-PARTIAL.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-001-PARTIAL.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) for (Seat < 4) ==> FALSE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001-PARTIAL.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-001-PARTIAL.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) for (Seat < 4) ==> FALSE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001-PARTIAL.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-001-PARTIAL.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) for (Seat < 4) ==> FALSE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001-PARTIAL.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-001-PARTIAL.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) for (Seat < 4) ==> FALSE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001-PARTIAL.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-001-PARTIAL.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) for (Seat < 4) ==> FALSE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001-PARTIAL.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-001-PARTIAL.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) for (Seat < 4) ==> FALSE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002-PARTIAL
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-002-PARTIAL
TEST.BASIS_PATH:2 of 2 (partial)
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) for (Seat < 4) ==> TRUE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002-PARTIAL.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-002-PARTIAL.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) for (Seat < 4) ==> TRUE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002-PARTIAL.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-002-PARTIAL.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) for (Seat < 4) ==> TRUE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002-PARTIAL.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-002-PARTIAL.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) for (Seat < 4) ==> TRUE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002-PARTIAL.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-002-PARTIAL.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) for (Seat < 4) ==> TRUE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002-PARTIAL.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-002-PARTIAL.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) for (Seat < 4) ==> TRUE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002-PARTIAL.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-002-PARTIAL.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) for (Seat < 4) ==> TRUE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002-PARTIAL.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Clear_Table
TEST.NEW
TEST.NAME:BASIS-PATH-002-PARTIAL.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) for (Seat < 4) ==> TRUE
Test Case Generation Notes:
Conflict: Unable to control expression-to-expression comparison in branch 1
TEST.END_NOTES:
TEST.VALUE:manager.Clear_Table.Table:<<MIN>>
TEST.END
-- Subprogram: Get_Check_Total
-- Test Case: BASIS-PATH-001
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Check_Total
TEST.NEW
TEST.NAME:BASIS-PATH-001
TEST.BASIS_PATH:1 of 1
TEST.NOTES:
No branches in subprogram
TEST.END_NOTES:
TEST.VALUE:manager.Get_Check_Total.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Check_Total
TEST.NEW
TEST.NAME:BASIS-PATH-001.001
TEST.NOTES:
No branches in subprogram
TEST.END_NOTES:
TEST.VALUE:manager.Get_Check_Total.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Check_Total
TEST.NEW
TEST.NAME:BASIS-PATH-001.002
TEST.NOTES:
No branches in subprogram
TEST.END_NOTES:
TEST.VALUE:manager.Get_Check_Total.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Check_Total
TEST.NEW
TEST.NAME:BASIS-PATH-001.003
TEST.NOTES:
No branches in subprogram
TEST.END_NOTES:
TEST.VALUE:manager.Get_Check_Total.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Check_Total
TEST.NEW
TEST.NAME:BASIS-PATH-001.004
TEST.NOTES:
No branches in subprogram
TEST.END_NOTES:
TEST.VALUE:manager.Get_Check_Total.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Check_Total
TEST.NEW
TEST.NAME:BASIS-PATH-001.005
TEST.NOTES:
No branches in subprogram
TEST.END_NOTES:
TEST.VALUE:manager.Get_Check_Total.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Check_Total
TEST.NEW
TEST.NAME:BASIS-PATH-001.006
TEST.NOTES:
No branches in subprogram
TEST.END_NOTES:
TEST.VALUE:manager.Get_Check_Total.Table:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Check_Total
TEST.NEW
TEST.NAME:BASIS-PATH-001.007
TEST.NOTES:
No branches in subprogram
TEST.END_NOTES:
TEST.VALUE:manager.Get_Check_Total.Table:<<MIN>>
TEST.END
-- Subprogram: Get_Next_Party_To_Be_Seated
-- Test Case: BASIS-PATH-001
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-001
TEST.BASIS_PATH:1 of 2
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListIndex > (9)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-001.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListIndex > (9)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-001.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListIndex > (9)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-001.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListIndex > (9)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-001.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListIndex > (9)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-001.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListIndex > (9)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-001.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListIndex > (9)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-001.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-001.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if (WaitingListIndex > (9)) ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MIN>>
TEST.END
-- Test Case: BASIS-PATH-002
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-002
TEST.BASIS_PATH:2 of 2
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListIndex > (9)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MAX>>
TEST.END
-- Test Case: BASIS-PATH-002.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-002.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListIndex > (9)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MAX>>
TEST.END
-- Test Case: BASIS-PATH-002.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-002.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListIndex > (9)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MAX>>
TEST.END
-- Test Case: BASIS-PATH-002.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-002.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListIndex > (9)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MAX>>
TEST.END
-- Test Case: BASIS-PATH-002.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-002.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListIndex > (9)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MAX>>
TEST.END
-- Test Case: BASIS-PATH-002.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-002.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListIndex > (9)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MAX>>
TEST.END
-- Test Case: BASIS-PATH-002.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-002.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListIndex > (9)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MAX>>
TEST.END
-- Test Case: BASIS-PATH-002.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:BASIS-PATH-002.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if (WaitingListIndex > (9)) ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.<<GLOBAL>>.WaitingListIndex:<<MAX>>
TEST.END
-- Subprogram: Place_Order
-- Test Case: BASIS-PATH-001
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-001
TEST.BASIS_PATH:1 of 5
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(5) case (Order.Entree) ==> PASTA
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:PASTA
TEST.END
-- Test Case: BASIS-PATH-001.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-001.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(5) case (Order.Entree) ==> PASTA
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:PASTA
TEST.END
-- Test Case: BASIS-PATH-001.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-001.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(5) case (Order.Entree) ==> PASTA
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:PASTA
TEST.END
-- Test Case: BASIS-PATH-001.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-001.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(5) case (Order.Entree) ==> PASTA
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:PASTA
TEST.END
-- Test Case: BASIS-PATH-001.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-001.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(5) case (Order.Entree) ==> PASTA
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:PASTA
TEST.END
-- Test Case: BASIS-PATH-001.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-001.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(5) case (Order.Entree) ==> PASTA
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:PASTA
TEST.END
-- Test Case: BASIS-PATH-001.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-001.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(5) case (Order.Entree) ==> PASTA
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:PASTA
TEST.END
-- Test Case: BASIS-PATH-001.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-001.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(5) case (Order.Entree) ==> PASTA
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:PASTA
TEST.END
-- Test Case: BASIS-PATH-002
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-002
TEST.BASIS_PATH:2 of 5
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) case (Order.Entree) ==> NO_ENTREE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-002.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-002.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) case (Order.Entree) ==> NO_ENTREE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-002.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-002.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) case (Order.Entree) ==> NO_ENTREE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-002.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-002.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) case (Order.Entree) ==> NO_ENTREE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-002.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-002.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) case (Order.Entree) ==> NO_ENTREE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-002.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-002.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) case (Order.Entree) ==> NO_ENTREE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-002.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-002.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) case (Order.Entree) ==> NO_ENTREE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-002.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-002.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) case (Order.Entree) ==> NO_ENTREE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:NO_ENTREE
TEST.END
-- Test Case: BASIS-PATH-003
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-003
TEST.BASIS_PATH:3 of 5
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(2) case (Order.Entree) ==> STEAK
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.END
-- Test Case: BASIS-PATH-003.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-003.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(2) case (Order.Entree) ==> STEAK
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.END
-- Test Case: BASIS-PATH-003.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-003.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(2) case (Order.Entree) ==> STEAK
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.END
-- Test Case: BASIS-PATH-003.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-003.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(2) case (Order.Entree) ==> STEAK
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.END
-- Test Case: BASIS-PATH-003.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-003.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(2) case (Order.Entree) ==> STEAK
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.END
-- Test Case: BASIS-PATH-003.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-003.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(2) case (Order.Entree) ==> STEAK
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.END
-- Test Case: BASIS-PATH-003.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-003.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(2) case (Order.Entree) ==> STEAK
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.END
-- Test Case: BASIS-PATH-003.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-003.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(2) case (Order.Entree) ==> STEAK
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.END
-- Test Case: BASIS-PATH-004
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-004
TEST.BASIS_PATH:4 of 5
TEST.NOTES:
This is an automatically generated test case.
Test Path 4
(3) case (Order.Entree) ==> CHICKEN
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.END
-- Test Case: BASIS-PATH-004.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-004.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 4
(3) case (Order.Entree) ==> CHICKEN
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.END
-- Test Case: BASIS-PATH-004.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-004.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 4
(3) case (Order.Entree) ==> CHICKEN
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.END
-- Test Case: BASIS-PATH-004.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-004.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 4
(3) case (Order.Entree) ==> CHICKEN
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.END
-- Test Case: BASIS-PATH-004.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-004.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 4
(3) case (Order.Entree) ==> CHICKEN
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.END
-- Test Case: BASIS-PATH-004.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-004.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 4
(3) case (Order.Entree) ==> CHICKEN
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.END
-- Test Case: BASIS-PATH-004.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-004.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 4
(3) case (Order.Entree) ==> CHICKEN
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.END
-- Test Case: BASIS-PATH-004.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-004.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 4
(3) case (Order.Entree) ==> CHICKEN
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.END
-- Test Case: BASIS-PATH-005
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-005
TEST.BASIS_PATH:5 of 5
TEST.NOTES:
This is an automatically generated test case.
Test Path 5
(4) case (Order.Entree) ==> LOBSTER
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:LOBSTER
TEST.END
-- Test Case: BASIS-PATH-005.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-005.001
TEST.NOTES:
This is an automatically generated test case.
Test Path 5
(4) case (Order.Entree) ==> LOBSTER
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:LOBSTER
TEST.END
-- Test Case: BASIS-PATH-005.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-005.002
TEST.NOTES:
This is an automatically generated test case.
Test Path 5
(4) case (Order.Entree) ==> LOBSTER
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:LOBSTER
TEST.END
-- Test Case: BASIS-PATH-005.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-005.003
TEST.NOTES:
This is an automatically generated test case.
Test Path 5
(4) case (Order.Entree) ==> LOBSTER
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:LOBSTER
TEST.END
-- Test Case: BASIS-PATH-005.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-005.004
TEST.NOTES:
This is an automatically generated test case.
Test Path 5
(4) case (Order.Entree) ==> LOBSTER
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:LOBSTER
TEST.END
-- Test Case: BASIS-PATH-005.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-005.005
TEST.NOTES:
This is an automatically generated test case.
Test Path 5
(4) case (Order.Entree) ==> LOBSTER
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:LOBSTER
TEST.END
-- Test Case: BASIS-PATH-005.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-005.006
TEST.NOTES:
This is an automatically generated test case.
Test Path 5
(4) case (Order.Entree) ==> LOBSTER
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:LOBSTER
TEST.END
-- Test Case: BASIS-PATH-005.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:BASIS-PATH-005.007
TEST.NOTES:
This is an automatically generated test case.
Test Path 5
(4) case (Order.Entree) ==> LOBSTER
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Place_Order.Table:<<MIN>>
TEST.VALUE:manager.Place_Order.Seat:<<MIN>>
TEST.VALUE:manager.Place_Order.Order.Entree:LOBSTER
TEST.END
-- Test Case: Place_Order.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.001
TEST.VALUE:manager.Place_Order.Table:1
TEST.VALUE:manager.Place_Order.Seat:1
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:MACRO=COST_OF_STEAK
TEST.END
-- Test Case: Place_Order.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.002
TEST.VALUE:manager.Place_Order.Table:1
TEST.VALUE:manager.Place_Order.Seat:1
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:MACRO=COST_OF_STEAK
TEST.END
-- Test Case: Place_Order.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.003
TEST.VALUE:manager.Place_Order.Table:1
TEST.VALUE:manager.Place_Order.Seat:1
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:MACRO=COST_OF_STEAK
TEST.END
-- Test Case: Place_Order.004
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.004
TEST.VALUE:manager.Place_Order.Table:1
TEST.VALUE:manager.Place_Order.Seat:1
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:MACRO=COST_OF_STEAK
TEST.END
-- Test Case: Place_Order.005
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.005
TEST.VALUE:manager.Place_Order.Table:1
TEST.VALUE:manager.Place_Order.Seat:1
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:MACRO=COST_OF_STEAK
TEST.END
-- Test Case: Place_Order.006
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.006
TEST.VALUE:manager.Place_Order.Table:1
TEST.VALUE:manager.Place_Order.Seat:1
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:MACRO=COST_OF_STEAK
TEST.END
-- Test Case: Place_Order.007
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.007
TEST.VALUE:manager.Place_Order.Table:1
TEST.VALUE:manager.Place_Order.Seat:1
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:MACRO=COST_OF_STEAK
TEST.END
-- Test Case: Place_Order.008
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.008
TEST.VALUE:manager.Place_Order.Table:1
TEST.VALUE:manager.Place_Order.Seat:1
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:MACRO=COST_OF_STEAK
TEST.END
|
9859f8d64eda6f3cd54b7fcdda2b274ad75c7426 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.10_11.tst | 36d32b9e8c003580e23243b6cf5fecf01babb0c1 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 15,789 | tst | bow.10_11.tst | 10 26:0.2 101:0.14285714285714285 130:0.25 445:1.0 763:1.0 1156:1.0
10 30:1.0 47:1.0 48:1.0 101:0.14285714285714285 191:0.25 239:1.0 313:1.0 605:0.5 653:1.0 654:1.0 660:1.0 2066:1.0
10 5:0.5 46:0.16666666666666666 73:0.2 101:0.14285714285714285 220:0.5 925:1.0
10 39:0.09090909090909091 48:1.0 72:2.0 191:0.5 2233:1.0
10 59:0.07692307692307693 101:0.14285714285714285 694:1.0
10 56:0.02040816326530612 694:1.0 1150:1.0 1884:1.0 2281:1.0
10 46:0.16666666666666666 93:0.2 180:1.0 516:1.0 611:1.0 643:1.0 1255:0.5 4243:1.0
10 56:0.02040816326530612 191:0.25 653:1.0 790:1.0 849:1.0
10 5:0.5 66:0.07142857142857142 85:0.1 160:0.5 193:0.3333333333333333 379:1.0 1176:1.0 1177:1.0 1205:1.0
10 8:0.5 18:1.0 22:0.1111111111111111 26:0.2 30:1.0 31:0.5 38:1.0 39:0.2727272727272727 48:1.0 56:0.02040816326530612 59:0.15384615384615385 70:1.0 91:0.09090909090909091 93:0.2 111:1.0 120:1.0 121:1.0 135:0.25 147:1.0 148:1.0 209:0.16666666666666666 257:0.5 286:1.0 290:1.0 366:0.5 372:1.0 660:1.0 705:1.0 795:1.0 1376:1.0 2109:1.0 2891:1.0 4212:1.0
10 5:0.5 48:1.0 126:1.0 191:0.25 213:0.16666666666666666 587:0.25 717:1.0 828:1.0 1025:1.0 3345:1.0
10 8:0.5 26:0.2 36:0.2857142857142857 85:0.1 93:0.2 101:0.14285714285714285 116:1.0 144:0.5 165:0.5 196:0.5 221:0.125 230:1.0 436:1.0 769:1.0 1507:1.0 1884:1.0
10 93:0.2 124:1.0 156:0.3333333333333333 196:0.5 5181:1.0 5432:1.0
10 38:0.5 48:1.0 59:0.07692307692307693 64:0.125 85:0.2 88:1.0 94:0.3333333333333333 95:0.3333333333333333 109:0.25 114:0.14285714285714285 129:1.0 138:0.5 228:0.3333333333333333 245:1.0 250:1.0 257:0.5 397:0.5 401:1.0 453:0.3333333333333333 719:1.0 795:1.0 3777:0.5
10 7:0.5 38:0.5 56:0.02040816326530612 73:0.2 94:0.3333333333333333 95:0.3333333333333333 109:0.25 191:0.25 228:0.3333333333333333 230:1.0 353:0.07692307692307693 397:0.5 401:1.0 453:0.3333333333333333 719:1.0 984:1.0 2891:1.0
10 8:0.5 23:0.09090909090909091 30:1.0 38:0.5 39:0.09090909090909091 64:0.125 88:1.0 93:0.2 342:1.0 751:1.0 943:1.0 1041:1.0 1384:0.5 2473:1.0 3246:1.0
10 14:0.2 38:0.5 39:0.09090909090909091 56:0.02040816326530612 156:0.3333333333333333 213:0.16666666666666666 280:1.0 286:1.0 530:1.0 660:1.0 943:1.0 980:1.0 1121:1.0 1296:1.0 1315:1.0 1698:1.0
10 4:0.3333333333333333 26:0.2 30:2.0 46:0.16666666666666666 120:1.0 188:1.0 189:1.0 190:0.5 257:0.5 284:0.5 290:1.0 319:0.5 463:1.0 815:1.0 854:1.0 943:1.0 1312:2.0 2201:1.0
10 8:0.5 23:0.09090909090909091 38:0.5 56:0.02040816326530612 59:0.07692307692307693 85:0.1 155:0.5 156:0.6666666666666666 231:1.0 237:0.3333333333333333 250:1.0 280:2.0 290:1.0 405:1.0 530:1.0 943:1.0 980:1.0 1110:1.0 1376:1.0 2118:1.0 5231:1.0
10 5:0.5 8:0.5 26:0.2 56:0.04081632653061224 64:0.125 84:1.0 91:0.09090909090909091 101:0.14285714285714285 144:0.5 151:1.0 156:0.3333333333333333 216:0.5 245:1.0 283:1.0 401:2.0 476:1.0 483:0.5 512:0.3333333333333333 609:1.0 714:0.5 943:1.0 1074:1.0 1312:1.0 1698:1.0 3017:1.0 3842:1.0 4974:1.0
10 26:0.2 30:1.0 38:0.5 39:0.09090909090909091 75:1.0 84:1.0 130:0.25 248:1.0 571:1.0 731:1.0 3959:1.0
10 26:0.2 30:1.0 73:0.2 75:1.0 91:0.09090909090909091 120:1.0 144:0.5 258:1.0 408:1.0 410:1.0 445:1.0 557:1.0 660:1.0 846:0.3333333333333333 1299:0.5 2168:1.0 2180:1.0 2891:1.0
10 39:0.09090909090909091 75:1.0 93:0.2 186:1.0 2247:1.0
10 18:2.0 30:1.0 34:0.14285714285714285 38:1.0 39:0.09090909090909091 64:0.125 85:0.1 93:0.2 144:0.5 147:1.0 191:0.25 209:0.16666666666666666 353:0.07692307692307693 423:1.0 424:1.0 679:1.0 789:1.0 1230:1.0 4123:1.0
10 26:0.2 38:0.5 39:0.09090909090909091 74:0.5 88:1.0 91:0.09090909090909091 93:0.4 114:0.07142857142857142 119:1.0 151:1.0 199:0.3333333333333333 230:1.0 324:1.0 416:1.0 679:1.0 951:0.5
10 5:0.5 18:1.0 46:0.16666666666666666 56:0.04081632653061224 85:0.1 125:0.14285714285714285 189:1.0 220:0.5 283:2.0 342:1.0 392:1.0 403:1.0 492:0.5 516:1.0 731:1.0 789:1.0 824:1.0 2171:1.0
10 30:1.0 38:0.5 39:0.18181818181818182 42:0.5 48:1.0 85:0.2 135:0.25 136:1.0 209:0.16666666666666666 367:1.0 2920:1.0 4350:1.0
10 30:1.0 36:0.14285714285714285 64:0.125 85:0.1 90:1.0 250:1.0 353:0.07692307692307693 1178:1.0 1249:1.0 1356:1.0
10 4:0.3333333333333333 5:0.5 8:0.5 23:0.09090909090909091 39:0.09090909090909091 84:1.0 237:0.16666666666666666 504:1.0 509:1.0 966:1.0
10 5:0.5 8:0.5 26:0.6 30:1.0 39:0.2727272727272727 79:2.0 85:0.1 91:0.09090909090909091 101:0.14285714285714285 113:0.5 156:0.6666666666666666 196:0.5 197:1.0 198:0.5 287:1.0 307:1.0 410:1.0 417:1.0 426:0.3333333333333333 652:1.0 854:1.0 943:1.0 1094:0.5 1287:0.5 2284:1.0 2945:1.0
10 7:0.5 23:0.18181818181818182 36:0.14285714285714285 48:1.0 59:0.07692307692307693 73:0.2 91:0.09090909090909091 95:0.3333333333333333 120:1.0 142:1.0 145:1.0 156:0.3333333333333333 188:1.0 189:1.0 257:0.5 290:1.0 291:1.0 463:1.0 943:1.0 1018:1.0 1196:1.0 4123:1.0
10 14:0.2 38:0.5 39:0.09090909090909091 56:0.04081632653061224 72:1.0 84:1.0 85:0.2 91:0.18181818181818182 109:0.25 114:0.07142857142857142 130:0.25 147:1.0 188:1.0 189:1.0 196:0.5 290:1.0 306:1.0 563:1.0 571:1.0 685:0.5 848:1.0 943:1.0 980:1.0 987:1.0 1074:1.0 1196:1.0 1247:0.5 3291:1.0
10 18:1.0 39:0.2727272727272727 55:1.0 89:0.25 93:0.2 114:0.07142857142857142 127:1.0 158:1.0 203:0.5 230:2.0 252:0.3333333333333333 287:1.0 403:1.0 618:1.0 755:1.0 1018:1.0 1193:1.0 1230:1.0 1542:1.0 2171:1.0 4566:1.0 4785:1.0 5509:1.0
10 18:1.0 23:0.09090909090909091 38:1.0 46:0.16666666666666666 62:0.5 75:1.0 93:0.2 94:0.3333333333333333 220:0.5 228:0.3333333333333333 268:1.0 286:1.0 327:1.0 328:1.0 408:1.0 550:0.5 606:1.0 2510:1.0 3823:1.0 5654:1.0
10 4:0.3333333333333333 23:0.09090909090909091 45:0.5 56:0.02040816326530612 695:0.3333333333333333 875:1.0 2480:1.0 5723:1.0
10 14:0.2 30:1.0 36:0.14285714285714285 45:0.5 59:0.07692307692307693 2862:1.0 4746:1.0
10 11:1.0 23:0.09090909090909091 39:0.18181818181818182 56:0.02040816326530612 62:0.5 66:0.07142857142857142 85:0.1 94:0.3333333333333333 353:0.07692307692307693 543:1.0 1287:0.5 1362:1.0 1653:1.0 1880:1.0 2601:1.0 4468:1.0
10 8:0.5 18:1.0 22:0.1111111111111111 23:0.2727272727272727 56:0.061224489795918366 65:1.0 69:0.14285714285714285 85:0.1 101:0.2857142857142857 113:0.5 180:1.0 192:0.3333333333333333 199:0.3333333333333333 205:0.5 228:0.3333333333333333 237:0.16666666666666666 283:1.0 372:1.0 401:2.0 403:1.0 476:1.0 610:0.5 613:0.5 616:1.0 694:1.0 707:1.0 736:1.0 1362:1.0 1387:1.0 1593:1.0 1802:1.0 2771:1.0
10 93:0.2 114:0.07142857142857142 203:0.5 228:0.3333333333333333 1177:1.0 2510:1.0
10 23:0.09090909090909091 26:0.2 39:0.18181818181818182 64:0.125 93:0.2 94:0.3333333333333333 101:0.14285714285714285 114:0.07142857142857142 191:0.25 375:1.0 438:1.0 472:0.5 486:1.0 740:1.0 943:1.0 1416:1.0 1804:2.0 2167:1.0 4498:1.0
10 8:0.5 38:0.5 39:0.18181818181818182 43:0.5 72:1.0 73:0.2 113:0.5 114:0.07142857142857142 156:0.3333333333333333 290:1.0 453:0.3333333333333333 498:0.3333333333333333 848:1.0 966:1.0 1150:1.0 1302:1.0 2045:1.0
10 4:0.3333333333333333 23:0.09090909090909091 56:0.02040816326530612 101:0.14285714285714285 301:1.0 543:1.0 1876:1.0
10 18:1.0 26:0.2 30:1.0 36:0.14285714285714285 39:0.09090909090909091 55:1.0 75:1.0 85:0.1 93:0.2 109:0.25 130:0.25 156:0.3333333333333333 209:0.16666666666666666 237:0.16666666666666666 401:1.0 499:1.0 529:1.0 731:1.0 769:1.0 1054:1.0 1302:2.0 1596:1.0 2267:1.0 4653:1.0
10 8:0.5 39:0.09090909090909091 64:0.125 85:0.2 93:0.2 120:1.0 147:1.0 188:1.0 189:1.0 284:0.5 549:0.3333333333333333 1048:2.0
10 36:0.14285714285714285 38:0.5 39:0.18181818181818182 48:2.0 116:1.0 120:1.0 121:1.0 201:0.2 209:0.16666666666666666 290:1.0 291:1.0 327:1.0 2178:1.0 3682:1.0 4350:1.0 5654:1.0
10 7:0.5 8:0.5 23:0.09090909090909091 39:0.09090909090909091 113:0.5 130:0.25 189:1.0 191:0.25 207:1.0 233:0.5 290:1.0 320:1.0 390:0.125 516:1.0 1156:1.0
10 56:0.02040816326530612 59:0.07692307692307693 75:1.0 101:0.14285714285714285 198:0.5 220:0.5 442:0.5 1376:1.0
10 4:0.3333333333333333 23:0.09090909090909091 39:0.09090909090909091 56:0.02040816326530612 94:0.3333333333333333 120:1.0 196:0.5 286:1.0 398:1.0 563:1.0 942:1.0 943:1.0
10 8:0.5 30:2.0 38:0.5 39:0.09090909090909091 75:1.0 125:0.14285714285714285 143:1.0 170:1.0 216:0.5 230:1.0 245:1.0 252:0.3333333333333333 539:1.0 4264:1.0 5963:1.0
10 67:0.5 307:1.0 322:1.0 815:1.0 1822:1.0 2284:1.0 2584:1.0
10 26:0.2 45:0.5 93:0.2 220:0.5 741:1.0 5407:1.0
10 5:0.5 18:1.0 38:0.5 39:0.09090909090909091 48:1.0 64:0.125 75:1.0 126:1.0 322:1.0 353:0.07692307692307693 525:1.0 582:0.5 606:1.0 690:0.5 1114:1.0
10 8:0.5 18:2.0 22:0.1111111111111111 23:0.09090909090909091 30:1.0 39:0.18181818181818182 64:0.125 85:0.2 106:1.0 107:1.0 108:1.0 227:0.5 237:0.16666666666666666 291:1.0 423:1.0 424:1.0 700:1.0 891:0.5 1098:1.0
10 18:1.0 22:0.1111111111111111 56:0.02040816326530612 59:0.07692307692307693 64:0.125 114:0.07142857142857142 238:0.2 241:1.0 301:1.0 353:0.07692307692307693 509:1.0 1230:1.0 1470:1.0
10 10:0.16666666666666666 18:1.0 22:0.1111111111111111 23:0.09090909090909091 26:0.2 39:0.09090909090909091 56:0.02040816326530612 64:0.125 72:1.0 80:1.0 91:0.09090909090909091 301:1.0 353:0.07692307692307693 403:1.0 492:0.5 620:0.5 685:0.5 1543:1.0 2241:1.0 4921:1.0
10 14:0.2 23:0.09090909090909091 38:0.5 39:0.09090909090909091 46:0.16666666666666666 59:0.07692307692307693 64:0.125 85:0.1 88:1.0 113:0.5 207:1.0 233:0.5 390:0.125 405:0.5 523:1.0 619:1.0 716:1.0 718:1.0 719:1.0 867:1.0 1193:1.0 1339:1.0 1349:1.0
10 64:0.125 201:0.2 560:1.0 1543:1.0 3276:1.0 3530:1.0 5025:1.0
10 23:0.09090909090909091 101:0.14285714285714285 228:0.3333333333333333 233:0.5 245:1.0 445:1.0 539:1.0 655:1.0 3867:1.0
10 85:0.1 207:1.0 390:0.125 1543:1.0
10 64:0.25 111:1.0 201:0.2 229:0.3333333333333333 230:1.0
10 5:0.5 14:0.2 275:1.0 429:1.0 1155:1.0 1822:1.0
10 5:0.5 7:0.5 8:1.0 17:1.0 18:1.0 23:0.09090909090909091 30:1.0 38:1.0 39:0.09090909090909091 64:0.125 69:0.14285714285714285 75:1.0 81:1.0 85:0.2 135:0.25 156:0.3333333333333333 161:1.0 209:0.16666666666666666 253:1.0 286:1.0 398:1.0 427:1.0 438:1.0 445:1.0 1012:1.0 1954:1.0 4242:1.0
10 8:0.5 14:0.2 30:1.0 36:0.14285714285714285 38:0.5 39:0.09090909090909091 59:0.07692307692307693 72:1.0 85:0.2 88:1.0 100:1.0 101:0.14285714285714285 116:1.0 121:1.0 125:0.14285714285714285 191:0.25 291:1.0 417:1.0 426:0.3333333333333333 460:1.0 476:1.0 1878:1.0 4186:1.0 4258:1.0
10 18:1.0 22:0.1111111111111111 23:0.09090909090909091 38:0.5 39:0.09090909090909091 55:1.0 56:0.02040816326530612 64:0.125 85:0.1 86:1.0 91:0.09090909090909091 101:0.14285714285714285 114:0.14285714285714285 125:0.14285714285714285 286:1.0 291:1.0 353:0.07692307692307693 423:1.0 487:1.0 1098:1.0 2501:1.0 2572:1.0
10 22:0.1111111111111111 23:0.09090909090909091 72:1.0 88:1.0 114:0.07142857142857142 160:0.5 196:0.5 201:0.2 417:1.0 457:0.5 779:0.5 789:1.0 2794:1.0
10 8:0.5 14:0.2 32:1.0 39:0.09090909090909091 64:0.125 85:0.2 101:0.14285714285714285 125:0.14285714285714285 273:1.0 282:1.0 445:1.0
10 22:0.1111111111111111 23:0.09090909090909091 39:0.09090909090909091 56:0.02040816326530612 72:1.0 75:1.0 88:1.0 108:1.0 144:0.5 199:0.3333333333333333 397:0.5 401:1.0 429:1.0 445:1.0 471:1.0 506:1.0 520:1.0 795:2.0 1353:1.0
10 1087:1.0
10 69:0.14285714285714285 93:0.2 209:0.16666666666666666 1110:1.0
10 26:0.2 30:2.0 39:0.09090909090909091 56:0.02040816326530612 59:0.07692307692307693 116:1.0 121:1.0 129:1.0 130:0.25 276:0.3333333333333333 290:1.0 679:1.0 1736:1.0 4897:1.0
10 7:0.5 8:0.5 38:1.0 39:0.09090909090909091 64:0.125 84:1.0 85:0.1 95:0.3333333333333333 125:0.14285714285714285 142:1.0 156:0.3333333333333333 193:0.3333333333333333 273:1.0 571:1.0 685:0.5
10 18:1.0 26:0.2 46:0.16666666666666666 56:0.02040816326530612 90:1.0 188:1.0 416:1.0 429:1.0 731:1.0 854:1.0 1112:1.0
10 26:0.2 30:1.0 39:0.18181818181818182 85:0.1 91:0.09090909090909091 113:0.5 170:1.0 330:0.5 366:0.5 616:1.0 2430:0.25 3938:1.0
10 22:0.1111111111111111 23:0.09090909090909091 64:0.125 111:1.0 120:1.0 201:0.2 252:0.3333333333333333 270:1.0 366:0.5 444:0.5 530:1.0 783:1.0
10 30:1.0 56:0.02040816326530612 80:1.0 353:0.07692307692307693 536:1.0 637:0.25 721:0.5 4962:1.0
10 18:1.0 23:0.09090909090909091 39:0.09090909090909091 101:0.14285714285714285 198:0.5 233:0.5 270:1.0 282:1.0 323:0.2 360:0.5 988:1.0 1813:1.0 2008:0.5
10 36:0.14285714285714285 38:1.0 45:0.5 198:0.5 252:0.3333333333333333 1119:1.0 3601:1.0
10 418:1.0
10 8:0.5 56:0.02040816326530612 389:1.0 707:1.0 966:1.0 1155:1.0 2199:1.0
10 8:1.0 17:1.0 30:4.0 125:0.14285714285714285 170:1.0 176:1.0 1337:1.0 1399:1.0 1615:1.0
10 5:0.5 18:1.0 22:0.1111111111111111 26:0.2 30:2.0 56:0.02040816326530612 66:0.07142857142857142 91:0.09090909090909091 120:1.0 146:1.0 149:1.0 156:0.3333333333333333 366:0.5 846:0.3333333333333333 3667:1.0 4117:1.0
10 22:0.4444444444444444 56:0.061224489795918366 59:0.15384615384615385 101:0.14285714285714285 1006:1.0
10 8:0.5 38:1.0 39:0.09090909090909091 56:0.04081632653061224 64:0.125 72:1.0 85:0.2 91:0.09090909090909091 130:0.25 135:0.25 227:0.5 230:1.0 245:1.0 250:1.0 299:0.3333333333333333 300:1.0 366:0.5 429:1.0 503:0.16666666666666666 804:0.25 1773:1.0
10 30:1.0 38:1.0 39:0.18181818181818182 69:0.14285714285714285 73:0.2 77:1.0 82:1.0 85:0.2 116:1.0 121:1.0 165:0.5 209:0.16666666666666666 216:0.5 230:1.0 242:1.0 353:0.07692307692307693 503:0.16666666666666666 815:1.0 988:1.0 1703:1.0 4689:1.0
10 38:1.0 39:0.09090909090909091 199:0.3333333333333333 273:1.0 291:1.0 330:0.5 413:1.0 1037:1.0 1150:1.0 5777:1.0
10 14:0.2 22:0.2222222222222222 23:0.09090909090909091 32:1.0 48:1.0 56:0.02040816326530612 62:0.5 74:0.5 75:1.0 85:0.1 205:0.5 329:0.5 366:0.5 403:1.0 795:2.0 849:2.0 1051:2.0 1545:1.0 3652:1.0
10 14:0.2 22:0.1111111111111111 111:1.0 113:0.5 114:0.07142857142857142 209:0.16666666666666666
10 36:0.14285714285714285 120:1.0 188:1.0 189:1.0 197:1.0 459:1.0 629:1.0 815:1.0
10 23:0.09090909090909091 34:0.14285714285714285 56:0.02040816326530612 64:0.125 66:0.07142857142857142 109:0.25 199:0.3333333333333333 204:0.5 435:1.0 695:0.3333333333333333
10 22:0.1111111111111111 23:0.09090909090909091 59:0.07692307692307693 75:1.0 85:0.1 295:1.0 296:0.5 1882:0.5 1903:1.0
10 8:1.0 30:1.0 38:0.5 52:1.0 59:0.07692307692307693 75:1.0 85:0.1 95:0.3333333333333333 101:0.14285714285714285 142:1.0 170:1.0 193:0.3333333333333333 291:1.0 1248:1.0 1284:1.0 3918:1.0
10 4:0.3333333333333333 8:0.5 17:1.0 30:1.0 39:0.09090909090909091 46:0.16666666666666666 48:1.0 56:0.02040816326530612 59:0.07692307692307693 64:0.125 85:0.1 88:1.0 91:0.09090909090909091 125:0.14285714285714285 160:1.0 197:1.0 221:0.125 389:1.0 1209:1.0 1399:1.0
10 30:1.0 45:0.5 69:0.14285714285714285 209:0.16666666666666666 309:1.0 351:1.0 1337:1.0
10 23:0.09090909090909091 36:0.14285714285714285 59:0.07692307692307693 85:0.1 101:0.14285714285714285 116:1.0 121:1.0 367:1.0 520:1.0 1247:0.5
10 14:0.2 18:2.0 36:0.14285714285714285 38:0.5 39:0.2727272727272727 59:0.07692307692307693 77:1.0 88:1.0 121:1.0 291:1.0 327:1.0 520:1.0 854:1.0 966:1.0 1257:1.0 1376:1.0 1531:1.0 4005:1.0
10 5:0.5 59:0.07692307692307693 120:1.0 125:0.14285714285714285 144:0.5 148:1.0 156:0.3333333333333333 290:1.0 655:1.0 714:0.5
10 22:0.1111111111111111 23:0.09090909090909091 74:0.5 80:1.0 101:0.14285714285714285 281:1.0 290:1.0 403:1.0 473:0.5 714:0.5 789:1.0 1349:1.0 1688:1.0 4123:1.0 4242:1.0
10 22:0.1111111111111111 23:0.09090909090909091 26:0.2 48:1.0 56:0.02040816326530612 59:0.07692307692307693 74:0.5 85:0.1 95:0.3333333333333333 165:0.5 203:0.5 227:0.5 246:1.0 270:1.0 429:1.0 487:1.0 640:1.0 1018:1.0 2582:1.0
10 8:0.5 22:0.2222222222222222 23:0.09090909090909091 26:0.2 38:0.5 39:0.2727272727272727 48:1.0 59:0.07692307692307693 74:0.5 96:0.5 120:1.0 203:0.5 246:1.0 398:1.0 487:1.0 582:0.5 640:1.0 1018:1.0 1126:1.0 2175:1.0 2582:1.0
10 8:0.5 38:0.5 62:0.5 79:1.0 80:1.0 161:1.0 199:0.3333333333333333 217:1.0 220:0.5 291:1.0 322:1.0 360:0.5 575:1.0 1562:1.0
|
d7dffca7100f3bf9ad23df07a7d588697e15a87d | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronic_Measurements_And_Instrumentation_P._Sharma_876.zip/Electronic_Measurements_And_Instrumentation_P._Sharma_876/CH7/EX7.1/Ex7_1.sce | 19b16937a80b35a180f8e76172d445e72ef45ecb | [] | 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 | 157 | sce | Ex7_1.sce | errcatch(-1,"stop");mode(2);//caption:convert 1101 into decimal
//Ex7.1
decimal=1*2^3+1*2^2+0*2^1+1*2^0
disp(decimal,'decimal conversion=')
exit();
|
70215b0d2d72de6329d1d0272a741ab25bdff7d4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1442/CH4/EX4.5/4_5.sce | 00c3fb0628a9c1a33d074ea3eecb12145f8cadd8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 351 | sce | 4_5.sce | clc
//initialisation of variables
vf= 0.001404 //m^3/kg
x= 0.8
vg= 0.02167 //m^3/kg
uf= 1332 //kJ/kg
ug= 1231 //kJ/kg
hf= 1344 //kJ/kg
hg= 1404.9 //kJ/kg
//CALCULATIONS
v= vf+x*(vg-vf)
u= uf+x*ug
h= hf+x*hg
//RESULTS
printf ('volume = %.5f m^3/kg',v)
printf ('\n internal energy = %.1f kJ/kg',u)
printf ('\n enthalpy = %.1f kJ/kg',h)
|
7720e53e1b2ce43c58fa05a8b1ae866d04777adf | a8392820bef2e8fe1ff5fb93c9bdb6b782f6a970 | /Assignment 1/Code/blocking probability.sce | d6aa531200a4b8f31924aaf32de736609de520d0 | [] | no_license | debarnab-mitra/Wireless-and-Mobile-communication | 0704c8bd7a6f752d13e263f1a2e8f67394a5a01a | 49d305f7f70ff1cec2d8b6394a66ca8e97da1b3e | refs/heads/master | 2020-04-02T20:48:34.115870 | 2018-10-26T05:06:27 | 2018-10-26T05:06:27 | 154,779,847 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,960 | sce | blocking probability.sce | //Defining system parameters
lambda = 1;
mu = 1/120;
block_prob = [0,0,0,0,0,0,0];
N = [80,90,100,110,120,130,140];
for num_of_N = 1:7
block_count = 0;
//As the arrival is a Poisson process of parameter(lamda) the
//interarrival times are exponential with parameter lamda
//Thus genrating the inter arrival times and call hold times
inter_arr_time = grand(1, 20000, "exp",lambda);
//arrival time calculation
arr_time = zeros(1,20000);
for i = 1:20000
arr_time(i) = sum(inter_arr_time(1:i));
end
//service time calculation
service_time = grand(1,20000, "exp",1/mu);
empty_mat = zeros(1,N(num_of_N));
//channel busy array stores the times till which the channels are going to be busy
channel_busy_time = zeros(1,N(num_of_N));
//we compare the arrival time of the current user for the all elements of the channel busy array
//and check whether the min element is less than or greater than zero. Greater than zero imples call blocking
for k = 1:20000
temp_mat = channel_busy_time - arr_time(k);
if(min(temp_mat) > 0)
block_count = block_count + 1;
else
[value,index] = min(channel_busy_time);
channel_busy_time(index) = arr_time(k) + service_time(k);
end
end
block_prob(num_of_N) = block_count/(20000);
end
theo_prob = [0,0,0,0,0,0,0];
rho = lambda/mu;
for i = 1:7
temp_sum = 0;
for t = 1:N(i)
temp_sum = temp_sum + rho^t/factorial(t);
end
theo_prob(i) = (rho^N(i))/(factorial(N(i))*temp_sum);
end
scf(2);
clf(2);
plot(N,block_prob, 'ro-');
plot(N,theo_prob, 'bs:');
xtitle( 'Blocking Probability vs No. of frequency channels', 'Blocking probability', 'CDF')
legend(["Simulated Pr", "Theoretical Pr"]);
|
3489500d0cdef3a544eb345185a21cfcf1cba790 | 9bc415d58bf063a1bca303fea640e644333dbdbd | /Scilab/Sinais_e_Sistemas/Trans_bilinear.sci | 29ccd663bd64b5635b0aafa45e8f7646905ea09a | [] | no_license | Roast-Lord/SMGcodes | 36e55be6c1cc17af91ab2e3f5117c78684f20604 | b75107be829fb4373dc1bc4b8696fe4b9cec437a | refs/heads/main | 2023-07-05T05:25:50.557705 | 2021-08-17T17:46:25 | 2021-08-17T17:46:25 | 301,012,145 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,221 | sci | Trans_bilinear.sci | function Hq=Trans_bilinear(f0,Q,fs)
N=1024;
Ts=1/fs;
s=poly(0,'s');
z=poly(0,'z');
q=poly(0,'q');
f0d=f0/fs;
w0d=2*%pi*f0d;
wa=2/Ts*tan(w0d/2)
fa=wa/(2*%pi);
a = wa/(2*Q);
b = sqrt(wa^2-a^2);
Hs=wa^2/(s^2+(2*a)*s+wa^2);
[Hw fw]=Resposta_Frequencia_Hs(Hs,3*fa,1024);
//Projeto com Transformação Bilinear de Hs
z=poly(0,'z');
Hz=horner(Hs,2/Ts*((z-1)/(z+1)));
//Resposta em Frequencia do polinomio em z
[Hf2,f2]=Resposta_Frequencia_Hz(Hz,N);
plot(fw,abs(Hw),'bk');
plot(fs*f2,abs(Hf2),'r');
legend("Filtro Analógico","Filtro Digital fs="+string(fs));
//Fatorar o polinômio em Z na forma q=z^-1
q=poly(0,'q');
Hq=horner(Hz,1/q);
num=Hq(2);
den=Hq(3);
c=coeff(Hq(3));
num=num/c(1);
den=den/c(1);
Hq=num/den;
endfunction
function [Hq, Hq2]=Trans_bilinear2(fs)
N=4096;
a=gca()
// ws=10;
// fs=ws/(2*%pi);
Ts=1/fs
ws=2*%pi*fs
s=poly(0,'s');
z=poly(0,'z');
q=poly(0,'q');
Hs=(s+0.1)/(s^2+0.2*s+9.01)
w0=sqrt(9.01)
f0=w0/(2*%pi)
w0d=2*%pi*(f0/fs);
wa=2/Ts*tan(w0d/2)
fa=wa/(2*%pi)
Hs2=horner(Hs,s*w0/wa);
[Hw fw]=Resposta_Frequencia_Hs(Hs,2*fs,N);
plot(fw',20*log(abs(Hw)+1e-10),'bk');
[Hw fw]=Resposta_Frequencia_Hs(Hs2,2*fs,N);
plot(fw',20*log(abs(Hw)+1e-10),'b');
//Projeto com Transformação Bilinear de Hs
z=poly(0,'z');
Hz=horner(Hs2,2/Ts*((z-1)/(z+1)));
Hq=horner(Hz,1/q);
num=Hq(2);
den=Hq(3);
c=coeff(Hq(3));
num=num/c(1);
den=den/c(1);
Hq=num/den;
//Resposta em Frequencia do polinomio em z
[Hf2,f2]=Resposta_Frequencia_Hz(Hz,fs,N);
plot(f2',20*log(abs(Hf2)+1e-10),'r');
Hq2=(1-(exp(0.1*Ts)*cos(3*Ts))*q) / (1-(2*exp(0.1*Ts)*cos(3*Ts))*q+exp(0.2*Ts)*q^2) ;;
Hz=horner(Hq2,1/z);
[Hi2,fi2]=Resposta_Frequencia_Hz(Hz,fs,N);
plot(fi2',20*log(abs(Ts*Hi2)+1e-10),'g');
a.data_bounds=[0,-150,0;2*fs,40,0];
legend("Filtro Analógico Original","Filtro Analógico warped", "Filtro Digital", "Inv Resp Impulso",string(fs));
//Fatorar o polinômio em Z na forma q=z^-1
endfunction
|
11489cd1e026bd0852588abb3c51e9884181c6e8 | 9cb37875b74a713c93c09fa50ccc70ac0f71ecdb | /CostHriFunction/Adero/ADERO_Scenarii/First.sce | 44f3c85a3170a407495889667428d69f980ba5bc | [] | no_license | jmainpri/move3d-assets | a5b621daaedaaf8784fed0da1e80d029c83f3983 | 939db49d17a14e052bb58324b70e6112803d3105 | refs/heads/master | 2021-01-16T17:48:56.669119 | 2016-02-16T14:04:09 | 2016-02-16T14:04:09 | 20,237,987 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,731 | sce | First.sce | #************************************************************
# Scenario of Ikea
#
# date : Mon Oct 4 17:51:12 2010
#************************************************************
p3d_sel_desc_name P3D_ENV Ikea
p3d_sel_desc_name P3D_ROBOT HUMAN_ACHILE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.600000 -1.630000 0.760000 -0.060000 0.830000 59.620000 0.000000 0.000000 14.540000 -30.350000 9.770000 7.740000 25.700000 22.460000 24.390000 98.000000 34.110000 -148.270000 -8.210000 -76.970000 30.000000 -4.790000 -34.400000 0.000000 -100.420000 0.000000 4.320000 -80.930000 8.000000 84.360000 0.000000 0.000000 0.000000 4.760000 -83.140000 -0.210000 94.570000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT ROBOT_ADERO
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.280000 -0.210000 0.000000 0.000000 0.000000 -70.780000 14.480000 66.380000 18.090000 -79.150000 -79.560000 48.500000 21.690000 0.000000 -74.040000 57.870000 56.160000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.280000 -0.210000 0.000000 0.000000 0.000000 -70.780000 14.480000 66.380000 18.090000 -79.150000 -79.560000 48.500000 21.690000 0.000000 -74.040000 57.870000 56.160000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Lampe
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.260000 -1.150000 0.770000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Assiette
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.020000 -1.470000 0.787611 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Pommes
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.442478 -1.622419 0.762537 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Verre
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Tabouret
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.360000 0.220000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT sailLamp1
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.060000 -0.690000 2.950000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT sailLamp2
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.060000 -0.390000 2.950000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT sailLamp3
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.060000 -0.090000 2.950000 0.000000 0.000000 -19.300000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_camera_pos -0.312143 -0.401449 0.904190 7.950000 0.339375 0.374375 0.000000 0.000000 1.000000 0.000000
|
8716c39aba97ac540c7ab324071ed4ec893d5bc8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2216/CH10/EX10.3/ex_10_3.sce | 1a6b4f47721a5e7f70ea1ed83f0254b178889ac0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 586 | sce | ex_10_3.sce | //Example 10.3;output signal power and overall gain
clc;
clear;
close;
format('v',6)
disp("part (a)")
psin=1*10^-6;//in watts
ppin=1;//in watts
gr=5*10^-14;//mW^-1
ap1=60*10^-12;//m^2
l=2000;//meter
asdb=0.15;//dB/km
as=3.39*10^-5;//m^-1
apdb=0.20;//db/km
ap=4.50*10^-5;//m^-1
z=(1-exp(-ap*l))/ap;//
y=(gr/ap1);//
y1=z*y;//
y2=y1-(as*l);//
psl=psin*exp(y2);//
disp(psl*10^6,"output signal power for forward pumping in micro Watt is")
format('v',5)
disp("part (b)")
y1=z*y;//
y2=y1-(as*l);//
psl=psin*exp(y2);//
gfra=psl/(psin);//
Gdb=10*log10(gfra);//
disp(Gdb,"overall gain in dB is")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.