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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e85fcd5de5b7827632257ea0e6f05732a9acc18 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH1/EX1.51/example1_51.sce | aca0208e8ef734589b4bf8685158f7acc11bf4ca | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 392 | sce | example1_51.sce | clc
// Given That
x = 2.948e-5 // distance moved by movable mirror in meter
n = 100 // no. of fringes cross the field of view
// Sample Problem 51 on page no. 1.58
printf("\n # PROBLEM 51 # \n")
lambda = 2*x/n // calculation for wavelength of monochromatic light
printf("\n Standard formula used \n lambda = 2*x/n. \n")
printf("\n Wavelength of monochromatic light = %f A.",lambda * 1e10)
|
6ad2ffd145b4ef6197fccbfa1cdea35386fa858a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1460/CH12/EX12.1/12_1.sce | 7e5c90afe2015674779e255720e04d00a9f6d774 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 448 | sce | 12_1.sce | clc
//initialization of variables
w1=2 //lbm
w2=1 //lbm
P=30 //lbm/in^2
T=60+460 //R
//calculations
R1=35.1
R2=55.1
Rm=(w1*R1+w2*R2)/(w1+w2)
vm=(w1+w2)*Rm*T/(144*P)
p1=w1*R1*T/(144*vm)
p2=w2*R2*T/(144*vm)
//results
printf("Gas constant of the mixture = %.1f lb/in^2",Rm)
printf("\n Volume of the mixture = %.1f ft^3",vm)
printf("\n Partial pressure of CO2 = %.1f lb/in^2",p1)
printf("\n Partial pressure of N2 = %.1f lb/in^2",p2)
|
e5bc56f087ed90de2096187f9fec95e85147f634 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1913/CH1/EX1.12/ex12.sce | 007619899ef11925688a468ccb2628cd2a12f6b6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 338 | sce | ex12.sce | clc
clear
//Input data
Z=70;//Vaccum gauge reading in cm of Hg
Pa=101.325;//Atmospheric pressure in kPa
d=13.6*10^3;//Density of Hg in kg/m^3
g=9.81;//Gravity in m/sec^2
//Calculations
Pv=(d*g*Z)/10^5;//Vaccum pressure in kPa
Pab=Pa-Pv;//Absolute pressure in kPa
//Output
printf('Absolute pressure Pab = %3.4f kPa ',Pab)
|
72e1b3277c923276ab5c08a9ce9214ef84559d41 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/m2sci/sci_subplot.sci | 6dbe2278f65ff112bcb4a4b0e791363ec3220569 | [
"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 | 905 | sci | sci_subplot.sci | function [stk,txt,top]=sci_subplot()
// Copyright INRIA
txt=[]
if rhs==1 then
if isnum(stk(top)(1)) then
m=evstr(stk(top)(1))
p=modulo(m,10)
n=modulo((m-p)/10,10)
m=round((m-p-10*n)/100)
j=int((p-1)/n)
i=p-1-n*j
rect=[i/n,j/m,1/n,1/m]
i=string(i);j=string(j),n=string(n);m=string(m)
e='xsetech('+lhsargs([i+'/'+n,j+'/'+m,'1/'+n,'1/'+m])+')'
stk=list(e,'0','0','0','0')
else
stk=list('mtlb_subplot('+stk(top)(1)+')','0','0','0','0')
end
elseif rhs==0 then
stk=list('xsetech([0 0 1 1])','0','0','0','0')
else
i=gettempvar(1)
j=gettempvar(2)
p=stk(top)(1)
m=stk(top-2)(1)
n=stk(top-1)(1)
if stk(top-1)(2)=='2' then n='('+n+')',end
if stk(top-2)(2)=='2' then m='('+m+')',end
txt=j+' = int(('+p+'-1)/'+n+');'+i+' = '+p+'-1-'+n+'*'+j
e='xsetech('+lhsargs([i+'/'+n,j+'/'+m,'1/'+n,'1/'+m])+')'
stk=list(e,'0','0','0','0')
top=top-2
end
|
e2f70651a118a306556028222f3afd319a115a2a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3733/CH34/EX34.16/Ex34_16.sce | 9dfc487f1a4dbdf54503dd8591f046896f3d5d4e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,299 | sce | Ex34_16.sce | // Example 34_16
clc;funcprot(0);
//Given data
CC_kw=15000;// Capital cost/kW installed
TP=2200;// Total power of the diesel power plant in kW
AOC=600000;//Annual operating costs in rupees
FC=100000;// Fixed cost in rupees
VC=200000;// Variable cost in rupees
AMC=FC+VC;// Annual maintainence costs in rupees
Cf=0.8;// Cost of fuel per kg in rupees
Clo=40;// Cost of lubricating oil per kg in rupees
CV=40000;// kJ/kg
cf=0.5;// Consumption of fuel in kg/kWh
clo=1/400;// Consumption of lubricant oil in kg/kWh
MD=1600;// Maximum demand in kW
F_l=45/100;//Load factor
//Calculation
CC=ceil (TP*CC_kw);// Capital costof the plant in rupees/ year;
I=ceil(CC*(15/100));// Interest on capital
AE=ceil(MD*F_l*8760);// Annual energy generated in kWh/year
F_c=ceil(cf*AE);// kg/year
Fc=ceil(F_c*Cf);// Cost of fuel in rupees per year
Lc=ceil(clo*AE);// Lubrication consumption in kg /year
CLO=ceil(Clo*Lc);//Cost of lubricant oil Rs/year
TFC=ceil(I+FC);// Total fixed cost in kg/year
TRC=ceil(Fc+Lc+VC+AOC);// Total running cost in Rs/year
Tc=ceil(TFC+TRC);// Total cost in Rs/year
Gc=(Tc/AE);// Generation cost in Rs/kWh.
printf('\nThe annual energy generated=%0.1e kWh/year \nThe cost of generation=Rs.%0.2f/kWh',AE,Gc);
// The answer provided in the textbook is wrong
|
8ef319fa77de65c8f36a0192c5411dccedcd1500 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH14/EX8.14.1/Ex8_14_1.sce | 3af4559d141f5d58d11646988539ab8597e6f9a4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 345 | sce | Ex8_14_1.sce | //Section-8,Example-1,Page no.-IC.9
//To calculate the lattice energy of NaCl crystals from the given data.
clc;
N_o=6.023*10^23
A=1.748
Z1=1 //Z+
Z2=1 //Z-
e=1.602*10^-19
e_o=8.854**10^-12
r_o=0.2814*10^-9
n=8
U_c=((-N_o*A*Z1*Z2*e^2)/(4*%pi*e_o*r_o))*(1-(1/n))
disp(U_c,' Lattice energy of NaCl crystals(kJ/mol)')
|
71586d361221c65adafca2ac79151bf50648c6db | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH4/EX4.2/Exa_4_2.sce | d81f7d440632ee71587419199c1c69cf63f1bec5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 548 | sce | Exa_4_2.sce | //Exa 4.2
clc;
clear;
close;
format('v',8);
//Given Data :
T1=290+273;//Kelvin
T2=8.5+273;//Kelvin
Q1=300;//KJ
//Case 1 :
Q2=-215;//KJ
sigmaQbyT=Q1/T1+Q2/T2
disp(sigmaQbyT,"(i) Q1/T1+Q2/T2 = ");
disp("It is less than zero. Cycle is irreversible")
//Case 2 :
Q2=-150;//KJ
sigmaQbyT=Q1/T1+Q2/T2
disp(sigmaQbyT,"(ii) Q1/T1+Q2/T2 = ");
disp("It is equal to zero. Cycle is reversible");
//Case 3 :
Q2=-75;//KJ
sigmaQbyT=Q1/T1+Q2/T2
disp(sigmaQbyT,"(iii) Q1/T1+Q2/T2 = ");
disp("It is greater than zero. Cycle is impossible.");
|
c872942f181a410ee386ee6dd5c43e870d97ec3a | 449d555969bfd7befe906877abab098c6e63a0e8 | /14/CH7/EX7.8/example_7_8.sce | 6d9de8a4fda9e0f3350f7240c1f0435a0e5e34c7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,753 | sce | example_7_8.sce | //chapter 7
//Example 7.8
//Page 187
//directZbus
clear;clc;
//Given Impedances
Z10 = %i*1.2;
Z21 = %i*0.2;
Z23 = %i*0.15;
Z13 = %i*0.3;
Z30 = %i*1.5;
//1*1 bus
Zbus = Z10;
disp('1X1 bus impedance matrix with bus 1 and reference bus')
disp(Zbus)
//to establish bus 2
[m,n] = size(Zbus)
for i = 1:m
for j = 1:n
Zbus(2,i) = Zbus(i,j);
Zbus(i,2) = Zbus(i,j)
end
end
Zbus(2,2) = Z10 + Z21;
disp('After establishing bus 2')
disp(Zbus)
//to establish bus 3 with impedance connecting it to bus 1
[m,n] = size(Zbus)
for i = 1:m
for j = 1
Zbus(3,i) = Zbus(i,j);
Zbus(i,3) = Zbus(i,j);
end
end
Zbus(3,3) = Z10 + Z13;
disp('Connecting a impedance between bus 3 and 1')
disp(Zbus)
//to add an impedance from bus 3 to reference
[m,n] = size(Zbus)
for i = 1:m
for j = 1:n
Zbus(4,i) = Zbus(i,j);
Zbus(i,4) = Zbus(i,j)
end
end
Zbus(4,4) = Zbus(3,3) + Z30;
disp('After adding impedance from bus 3 to reference')
disp(Zbus)
[m1,n1] = size(Zbus);
Z_new = zeros(m1-1,n1-1);
for c = 1:m1-1
for d = 1:n1-1
Z_new(c,d) = Zbus(c,d) - ((Zbus(c,4)*Zbus(4,d)) / Zbus(4,4));
end
end
disp('After elemination of 4th row and column')
disp(Z_new)
//to add the impedance between buses 2 and 3
Z_new(1,4) = Z_new(1,2) - Z_new(1,3);
Z_new(2,4) = Z_new(2,2) - Z_new(2,3);
Z_new(3,4) = Z_new(3,2) - Z_new(3,3);
Z_new(4,1) = Z_new(1,4);
Z_new(4,2) = Z_new(2,4);
Z_new(4,3) = Z_new(3,4);
Z_new(4,4) = Z23 + Z_new(2,2) + Z_new(3,3) - 2*Z_new(2,3);
disp('After adding impedance between buses 2 and 3')
disp(Z_new)
[m1,n1] = size(Z_new);
Zbus_new = zeros(m1-1,n1-1);
for c = 1:m1-1
for d = 1:n1-1
Zbus_new(c,d) = Z_new(c,d) - ((Z_new(c,4)*Z_new(4,d)) / Z_new(4,4));
end
end
disp('The Bus Impedance Matrix is')
disp(Zbus_new) |
6b6b4d4b1c036ce6a77908426345ec3511fe76b9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1511/CH2/EX2.18/ex2_18.sce | c156835fedebf88460a8e94826bcec2450bf67c8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 467 | sce | ex2_18.sce | // Example 2.18 page no-72
clear
clc
//(a)
sigma=100 //Ohm-cm
e=1.6*10^-19 //c
mup=1800 //cm^2/V-sec
ni=2.5*10^13 // /cm^3
printf("\n(a)\nAs it is p-type semiconductor, p>>n.")
pp=sigma/(e*mup)
n=ni^2/pp
printf("\nPp=%.2f*10^17 holes/cm^3\nn=%.1f*10^9 electrons/cm^3",pp/10^17,n/10^9)
//(b)
mun=1300
sig=0.1
n1=1.5*10^10
n2=sig/(mun*e)
p1=(n1^2)/n2
printf("\n\n(b)\nn=%.2f*10^14 elecrons/cm^3\np=%.2f*10^5 holes/cm^3",n2/10^14,p1/10^5)
|
9aec87a6e8c11d3c0dd237dd1d362b170f920d75 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3630/CH9/EX9.4/Ex9_4.sce | fb09102b01ce106768990ac2fb52e4c3b100d85c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 304 | sce | Ex9_4.sce | clc;
//step1
Vcc=20; //volt
R2=20000; //ohm
R1=150000; //ohm
Vb=20*(R2/(R2+R1)); //Volt
Ve=Vb-0.7; //volt
Re=2200; //ohm
Ie=Ve/Re; //Ampere
re=0.025/Ie; //ohm
Rc=12000; //ohm
RL=50000; //ohm
rc=(Rc*RL)/(Rc+RL); //ohm
Av=rc/re;
disp('',Av,"Av=");//The answers vary due to round off error
|
37f1824a74f5419f2135717d554b747c7e9dcca9 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/percent/%p_o_l.sci | d959f7d38f6008c19aed8741c01ad54f803972d7 | [
"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 | 109 | sci | %p_o_l.sci | function [r]=%p_o_l(l1,l2)
//r=%p_o_l(l1,l2) <=> r=(l1==l2) list==polynomail
//!
// Copyright INRIA
r=%f
|
ab262e1388ce3cd1156a74d4349d46bca26d566c | f26729da8f4278193be7d8f15e38bad1e43c0376 | /sdr_rcv.rcv.2.tst | 4b493a4e9f2f3e4265ec14070cae26c7449c0636 | [] | no_license | shaktixcool/MQ-study-notes | 09325eaa468f6aadfc5af2e3d6ff0ca6a31f11ec | bb75cdbd861b267dcd5011d057a7b31dc819cb08 | refs/heads/master | 2020-03-25T19:34:21.805882 | 2016-12-04T15:30:44 | 2016-12-04T15:30:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 66 | tst | sdr_rcv.rcv.2.tst | DEFINE CHANNEL (CS) +
CHLTYPE (RCVR) +
TRPTYPE (TCP) +
REPLACE
|
c6fed152566fb346c92493d7601326d2a8c50ada | 449d555969bfd7befe906877abab098c6e63a0e8 | /2231/CH3/EX3.5/Ex_3_5.sce | 5a066727338bbc8f60aeb09e09ad11e29c6f62a1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,111 | sce | Ex_3_5.sce | //Example 3_5
clc;
clear;close;
//Given data:
V=200;//V
R=10;//in ohm
L=20;//mH
C=100;//pF
f=50;//Hz
//Solution :
Z1=R+%i*(2*%pi*f*L*10^-3-1/(2*%pi*f*C*10^-6));//ohm
Z3=R+%i*(3*2*%pi*f*L*10^-3-1/(3*2*%pi*f*C*10^-6));//ohm
Z5=R+%i*(5*2*%pi*f*L*10^-3-1/(5*2*%pi*f*C*10^-6));//ohm
Z7=R+%i*(7*2*%pi*f*L*10^-3-1/(7*2*%pi*f*C*10^-6));//ohm
Z9=R+%i*(9*2*%pi*f*L*10^-3-1/(9*2*%pi*f*C*10^-6));//ohm
I=4*V/%pi/abs(Z1);//A
Irms=I/sqrt(2);//A
disp(Irms,"RMS load current(A)");
Ip=sqrt((4*V/%pi/abs(Z1))^2+(4*V/3/%pi/abs(Z3))^2+(4*V/5/%pi/abs(Z5))^2+(4*V/7/%pi/abs(Z7))^2+(4*V/9/%pi/abs(Z9))^2);//A
disp(Ip,"Peak value of load current(A)");
Ih=sqrt(Ip^2-I^2)/sqrt(2);//A
disp(Ih,"RMS harmonic current(A)");
hd=sqrt(Ip^2-I^2)/I;//harmonic distortion
disp(hd*100,"Harmonic distortion(%)");
Irms_load=Ip/sqrt(2);//A
Pout=Irms_load^2*R;//W
disp(Pout,"Total output power(W)");
Pout_com=Irms^2*R;//W(fundamental component)
disp(Pout_com,"Fundamental component of power(W)");
Iavg_in=Pout/V;//A
disp(Iavg_in,"Average input current(A)");
Ip_thy=Ip;//A
disp(Ip_thy,"Peak thyristor current(A)");
|
1aaf6fac2b2af33be7acdb0e2878e16cad4efaf5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1118/CH6/EX6.5/eg6_5.sce | 360802b290dbd16bf1811f008bd86addfe6562f3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 267 | sce | eg6_5.sce | clear;
clc;
l=270;
T=1800;
w=1;
h=90-30;
ap=30;
x=(l/2)-T*h/(w*l);
x1=-x+l/2;
sag1=w*x1*x1/(2*T);
sag2=w*x*x/(2*T);
hob=w*(l-x)^2/(2*T);
clearance=ap+sag1-sag2;
printf("The clearance between the conductor and water at point m is:%.2f m",clearance);
|
8738a77bf3421371575e634db9f487e764de2d45 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH7/EX7.a.1/Example_a_7_1.sce | 6baf8504d514f05007e4cb51568cc9a228e7b063 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 532 | sce | Example_a_7_1.sce | //Example_a_7_1 page no:269
clc;
R=2;
C=-2*%i;
L1=8*%i;
L2=6*%i;
V=5/(0.5+(1/L1)+(1/(4*%i)));
Vmag=sqrt(real(V)^2+imag(V)^2);
Vang=atand(imag(V)/real(V));
Vabmag=Vmag*6/4;
Vabang=Vang;
disp(Vabmag,"the magnitude of voltage across AB is (in V)");
disp(Vabang,"the angle of voltage across AB is (in degree)");
Iamag=Vmag/2;
Iaang=Vang-(-90);
disp(Iamag,"the magnitude of short circuited current through terminals AB is (in A)");
disp(Iaang,"the angle of short circuited current through terminals AB is (in degree)");
|
fcc28e6413659ef73e07a383f02a577c7d53807b | b68ae1fc3cd37c85031f69e42d92903b7f1a90ab | /projects/08/FunctionCalls/SimpleFunction/SimpleFunctionVME.tst | 17be84bd4ef4a5b706374a45edd74ca23a66748a | [] | no_license | bricef/The-Elements-of-Computing-Systems | fb3aa100c18176ccfc876e9d30319c0b8a5c7635 | 6be81eacaa30ad57b06f018c0aecbcf7e04841bc | refs/heads/master | 2021-01-18T13:43:02.653913 | 2011-04-06T19:23:52 | 2011-04-06T19:23:52 | 1,578,790 | 5 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 731 | tst | SimpleFunctionVME.tst | // This file is part of the materials accompanying the book
// "The Elements of Computing Systems" by Nisan and Schocken,
// MIT Press. Book site: www.idc.ac.il/tecs
// File name: projects/08/FunctionCalls/SimpleFunction/SimpleFunctionVME.tst
load SimpleFunction.vm,
output-file SimpleFunction.out,
compare-to SimpleFunction.cmp,
output-list RAM[0]%D1.6.1 RAM[1]%D1.6.1 RAM[2]%D1.6.1
RAM[3]%D1.6.1 RAM[4]%D1.6.1 RAM[310]%D1.6.1;
set sp 317,
set local 317,
set argument 310,
set this 3000,
set that 4000,
set argument[0] 1234,
set argument[1] 37,
set argument[2] 9,
set argument[3] 305,
set argument[4] 300,
set argument[5] 3010,
set argument[6] 4010,
repeat 10 {
vmstep;
}
output;
|
b71dcf654141a9ccbe07326bd0f27db520e05af1 | c0e48812b6769e5283b0b14716cb8278969ad2fd | /src/make.tst | 3f9a784f7cb8b437da70dbeaaa04340e0cd91820 | [] | no_license | JimmySenny/demoInterview | f61478c707dc5cc76ea1526b400f777faa3760d4 | 0917fb3293cbb60a66959ada8f425f819ebe8663 | refs/heads/master | 2023-02-03T00:03:03.629201 | 2020-12-23T11:29:30 | 2020-12-23T11:29:30 | 320,151,328 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 373 | tst | make.tst | include ../etc/Makefile
BIN_NAME = tst_pufa
OBJ_LIB = ${WORKDIR}/lib/libtst.a ${WORKDIR}/lib/libcomm.a ${WORKDIR}/lib/libpufa.a
EXECOBJ = ${WORKDIR}/bin/${BIN_NAME}.out
LINKRULE = ${CC} -o ${EXECOBJ} ${OBJ_LIB} -L${WORKDIR}/lib -ltst -lcomm -lpufa
TARGETS = ${EXECOBJ}
all:${TARGETS}
${EXECOBJ}: ${OBJ_LIB}
${LINKRULE}
clean:
@- rm -f ${TARGETS} ${CLEANFILES}
|
2e5bd46a6e76cb075833da9979034d4a8a2c59cf | 449d555969bfd7befe906877abab098c6e63a0e8 | /3792/CH7/EX7.5/Ex7_5.sce | a098ea34c05c2706930c86cfa158f70a00789896 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,190 | sce | Ex7_5.sce | // SAMPLE Pr_BOBLEM 7/5
clc;funcprot(0);
// Given data
omega=3;// rad/s
p=8;// rad/s
gamma=30;// degree
y=0.300;// m
z=0.120;// m
// Calculation
// Velocity
omega=[0,0,3];// rad/s
r_B=[0,0.350,0];// m
v_B1=det([omega(2),omega(3);r_B(2),r_B(3)]);// m/s
v_B2=-det([omega(1),omega(3);r_B(1),r_B(3)]);// m/s
v_B3=det([omega(1),omega(2);r_B(1),r_B(2)]);// m/s
v_B=[v_B1,v_B2,v_B3];// m/s
// Note that k*i=J=jcos(gamma)-ksin(gamma),K*j=-i*cos(gamma) and K*k=i*sin(gamma)
r_AB=[0,y,z];// m
// omega*r_AB=3K*(yj+zk);
omegaintor_AB=(-(omega(3)*(y*cosd(gamma))))+(omega(3)*(z*sind(gamma)));// m/s
p=[0,8,0];// rad/s
v_rel1=det([p(2),p(3);r_AB(2),r_AB(3)]);// m/s
v_rel2=-det([p(1),p(3);r_AB(1),r_AB(3)]);// m/s
v_rel3=det([p(1),p(2);r_AB(1),r_AB(2)]);// m/s
v_rel=[v_rel1,v_rel2,v_rel3];// m/s
v_A=v_B(1)+omegaintor_AB+v_rel(1);// m/s
printf("\nThe velocity of point A,v_A=%0.4fi m/s",v_A);
// Acceleration
a_B1=det([omega(2),omega(3);v_B(2),v_B(3)]);// m/s^2
a_B2=-det([omega(1),omega(3);v_B(1),v_B(3)]);// m/s^2
a_B3=det([omega(1),omega(2);v_B(1),v_B(2)]);// m/s^2
a_B=[a_B1,a_B2,a_B3];// m/s^2
a_B=[0,((a_B(2)*(cosd(gamma)))),-(a_B(2)*(sind(gamma)))];// m/s^2
omegadot=0;// m/s^2
// Assume O=omega*(omega*r_A/B)
O=[0,((omega(3)*omegaintor_AB*(cosd(gamma)))),-omega(3)*(omegaintor_AB*(sind(gamma)))];// m/s^2
// Assume O_1=2*omega*v_rel
O_1=[0,((2*omega(3)*v_rel(1)*(cosd(gamma)))),-2*omega(3)*(v_rel(1)*(sind(gamma)))];// m/s^2
a_rel1=det([p(2),p(3);v_rel(2),v_rel(3)]);// m/s^2
a_rel2=-det([p(1),p(3);v_rel(1),v_rel(3)]);// m/s^2
a_rel3=det([p(1),p(2);v_rel(1),v_rel(2)]);// m/s^2
a_rel=[a_rel1,a_rel2,a_rel3];// m/s^2
a_A=[(a_B(1)+(omegadot*r_AB(1))+O(1)+O_1(1)+a_rel1),(a_B(2)+(omegadot*r_AB(2))+O(2)+O_1(2)+a_rel2),(a_B(3)+(omegadot*r_AB(3))+O(3)+O_1(3)+a_rel3)];// m/s^2
a_A=norm(a_A);// m/s^2
printf("\nThe acceleration of point A,a_A=%1.2f m/s",a_A);
// Angular Acceleration
// Note that k*i=J=jcos(gamma)-ksin(gamma),K*j=-i*cos(gamma) and K*k=i*sin(gamma)
omega=[3,8];// rad/s (K,j)(k*j=-i*cos(gamma))
alpha=[0+(-omega(1)*omega(2)*cosd(gamma))];// (i) rad/s^2
printf("\nThe angular acceleration of the disk,alpha=%2.1fi rad/s^2",alpha);
|
b3d712d1d1471d18fa08beeadf165d4422051703 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2399/CH5/EX5.2.2/Example_5_2_2.sce | 9ba9a160c7a75a5af9743abe3d8f25b6e00af8a2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 861 | sce | Example_5_2_2.sce | // Example 5.2.2
clc;
clear;
n1=1.47; //refractive index of fiber
n=1; //refractive index of air
d=40d-6; //core diameter
y=4d-6; //lateral dispalcement
a=d/2; //computing core radius
eta_lateral = (16*(n1/n)^2)/(%pi*(1+(n1/n))^4)*(2*acos(y/(2*a))-(y/a)*(1-(y/(2*a))^2)^0.5); //computing eta_lateral with air gap
loss=-10*log10(eta_lateral); //computing loss when air gap is present
eta_lateral1=(2*acos(y/(2*a))-(y/a)*(1-(y/(2*a))^2)^0.5)/%pi; //computing eta_lateral without air gap
loss1=-10*log10(eta_lateral1); //computing loss when air gap is not present
printf("\nloss with air gap is %.2f dB.\nloss with no air gap is %.2f dB.\n Thus we can say that loss reduces considerably if there is no air gap.",loss,loss1);
//answer in the book for loss with air gap is 0.91dB, deviation of 0.01dB.
|
8aa0f0d38c1f524433620381900a0bc682c2b1ec | 449d555969bfd7befe906877abab098c6e63a0e8 | /3838/CH3/EX3.2.c/EX3_2_C.sce | 34a02be95c70f36134c1ab6f5ebf7e6827f59339 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 58 | sce | EX3_2_C.sce | //EXAMPLE 3.2.C
clc;
Syms s t
w=2;
laplace(cosh(w*t),t,s)
|
c1bc64e77d72a7841a5b2ecfc02d2b1c0d17e2f9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1466/CH7/EX7.6/7_6.sce | db2d1a9be5a851a1f08a47d90c1411a603c1419d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 274 | sce | 7_6.sce |
clc
//initialisation of variables
g=32.2
h=25//ft
f=0.01
d=1//m
d1=12//in
pi=22/7
//CALCULATIONS
k=(4*f*2000/d)+1
v=sqrt(2*g*h/k)
k1=4*f/d
l1=((d1*2*g)/(v*v))-1
l=l1/k1
dis=pi*d*v/4
//results
printf (' Discharge through pipe= %.2f ft^3/sec ',dis)
|
38a9d60e0707e0286385ecadcd91f26e27722da1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2072/CH23/EX23.7/ex23_7.sce | 4fe1a8bc0ee7e36ddc73e65d6c298122865f89bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 292 | sce | ex23_7.sce | //23.3
p=30//in cm
f=10//in cm
x=(1/f)-(1/p)
q=1/x
M=-(q/p)
disp("part a")
disp(q,"The position of final image in cm=")
disp(M,"The magnification=")
p=5//in cm
f=10//in cm
x=(1/f)-(1/p)
q=1/x
M=-(q/p)
disp("part b")
disp(q,"The position of final image in cm=")
disp(M,"The magnification=")
|
141d14c9479122787842b50252f741852f14d8ac | dd62f0e176af8b35f4de2d6b64692105fd90afd6 | /frd.sci | f0f1921e6748a3d2db0287cb7f4343ac0bfd92ef | [] | no_license | FOSSEE/FOSSEE-System-Identification-Toolbox | 2a631de0f2d6b993b3f19df4a220b274a1d85edb | 11ee9c829fe88301c69b731cdf9fe7957d0fa68c | refs/heads/master | 2018-10-15T08:25:21.323393 | 2018-07-31T10:56:53 | 2018-07-31T10:56:53 | 108,255,727 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,548 | sci | frd.sci | function varargout = frd(varargin)
// Stores frequency and response data
//
// Calling Sequence
// plantData = frd(respData,frdData,Ts)
// Parameters
// frdData : nx1 matrix of non-decreasing frequency points
// respData : nx1 matrix of the frequency response
// Ts : non-negative real number
// plantData : frd type module
// Description
// It is a frd type module that stores the frequency and response data with sampling time Ts. The time unite is in second and frequency unit rad/sec.
// Examples
// frdData = 0:1024
// frdData=frdData';
// respData = rand(1024,1)
// Ts = 0.1
// plantData = frd(frdData,respData,Ts)
// Authors
// Ashutosh Kumar Bhargava, Bhushan Manjarekar
[lhs,rhs] = argn(0)
if rhs < 2 || rhs > 4 then
errmsg = msprintf(gettext("%s: Wrong numbers of input arguments."), "frd");
error(errmsg)
end
frequency = varargin(1)
freqUnit = 'rad/TimeUnit'
if ~iscolumn(frequency) then
errmsg = msprintf(gettext("%s: frequency must be a finite column vector."), "frd");
error(errmsg)
end
respData = varargin(2)
// pause
if size(frequency,'r') <> size(respData,'r') then
errmsg = msprintf(gettext("%s: input output matrix dimension must be equal."), "frd");
error(errmsg)
end
if rhs == 2 then
Ts = 0
elseif rhs >2 then
Ts = varargin(3)
end
if Ts < 0 || size(Ts,'*') <> 1 || typeof(Ts) <> 'constant' then
errmsg = msprintf(gettext("%s: Sampling time must be a scalar non negative real number."), "frd");
error(errmsg)
end
// saving the spectrum value
if rhs == 4 then
spect = varargin(4)
else
spect = []
end
// / matching its dimensions
if ~size(spect) then
elseif size(frequency,'r') <> size(spect,'r') then
errmsg = msprintf(gettext("%s: Numbers of power spectra must be equal to the numbers of frequency."), "frd");
error(errmsg)
end
TUnit = 'seconds'
t = tlist(['frd','Frequency','FrequencyUnit','ResponseData','Ts','TimeUnit','Spect'],frequency,freqUnit,respData,Ts,TUnit,spect)
varargout(1) = t
endfunction
// overloading
function %frd_p(varargin)
myTlist = varargin(1)
f = fieldnames(myTlist)
freqData = myTlist.Frequency
tempRespData= myTlist.ResponseData
for jj = 1:size(tempRespData,'c')
respData = tempRespData(:,jj)
mprintf("\t -------------------------")
mprintf("\n")
mprintf("\t Frequency \t Response")
mprintf("\n")
mprintf("\t -------------------------")
mprintf("\n")
for ii = 1:length(myTlist.Frequency)
temp = ''
if real(respData(ii))>=0 then
temp = temp + ' '
end
temp = temp + string(real(respData(ii)))
// temp = string(real(respData(ii)))
if imag(respData(ii)) > 0 then
temp = temp +"+"
end
if ~imag(respData(ii)) then
else
temp = temp + string(imag(respData(ii))) +"i"
end
// temp = temp + string(imag(respData(ii))) + " i"
mprintf("\n\t %f \t %s",freqData(ii),temp)// real(respData(ii)),imag(respData(ii)))
end
mprintf("\n\n")
end
if ~myTlist.Ts then
mprintf("\n Continuous Domain frequency response.")
else
mprintf("\n Sampling Time = "+string(myTlist.Ts)+" "+myTlist.TimeUnit)
mprintf("\n Discrete Domain frequency response.")
end
endfunction
|
c05d3fe3758793207cc0209692a53f3c546d2018 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH2/EX2.7/Ex2_7.sce | 4cf551afed6f184a0590ab84c5aa5e47022f26ce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 191 | sce | Ex2_7.sce |
// Ex2_7
clc;
// Given:
h=6.6262*10^-34;// in J.s
f=17.24*10^6;// in Hz/T
m=5.05*10^-27;// in J/T
// Solution:
E=h*f;
g=E/(m)
printf("The nuclear g factor for P is = %f",g)
|
26de42316fa0ec5acf7eb7cdab965c29a627e368 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2330/CH2/EX2.5/ex2_5.sce | c43be15f8017beb9b90103296bead44027c15ece | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 478 | sce | ex2_5.sce | // Example 2.5
format('v',6)
clc;
clear;
close;
// given data
Vin= 15;// in V
V_K= 0.7;// in V
R_L= 10;// in kΩ
R_L= R_L*10^3;// in Ω
// The output voltage
Vout= Vin-V_K;// in V
// The current
I= Vout/R_L;// in A
// The power dissipation of the diode
P= V_K*I;// in W
I=I*10^3;// in mA
P= round(P*10^3);// in mW
disp(Vout,"The output voltage in volts is : ");
disp(I,"The current in mA is : ");
disp(P,"The power dissipation of the diode in mW is : ")
|
7c4d9bcbbb2b73232511d5835a6b8d2441a24e1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2795/CH16/EX16.9/Ex16_09.sce | c9209ff5c2b7f8b90edfb3daeaab84b85a9ba097 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 340 | sce | Ex16_09.sce | // Scilab Code Ex16.9: Page-604(2014)
clc; clear;
H0 = 71; // Hubble cinstant, km/s per Mpc
tau = 1/H0*1e+006*3.26*9.46e+012/3.16e+007; // The upper limit of the age of the universe, y
printf("\nThe upper limit of the age of the universe = %4.2e y", tau);
// Result
// The upper limit of the age of the universe = 1.37e+010 y |
fd406bc65fa2b8f9b88f03261e73ddf760efeafd | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH9/EX9.9/9Ex9.sce | 402492a7d3b8dd9d508b7ad6d20947d19570c550 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 143 | sce | 9Ex9.sce | //Chapter 9 Ex 9
clc;
clear;
close;
x=(2^(1/4)-1)*((2^(3/4))+(2^(1/2))+(2^(1/4))+1);
mprintf("The value of the expression is %.0f",x);
|
fa091e17e747124e2077361395bf6c422173d96e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH27/EX27.10/Ex27_10.sce | 68b7dfcf39a5e09f0bb873f263483d1ad41e262e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 123 | sce | Ex27_10.sce | clear
//Given
A=0.9
Ie=1 //mA
//Calculation
Ic=A*Ie
Ib=Ie-Ic
//Result
printf("\n Base current is %0.3f mA",Ib)
|
4f68507589597c465e2d66241996daec9f8ffff5 | 85a9ded979f001b0f3ebbd97cdae1f2f7fd8165a | /examples/RF/Microstrip_lossless/validation.sce | 986424c2d6427721d5a80e4e3267411a4e8d3605 | [] | no_license | Drinausaur/sparselizard-users | d0c487c1474d484b3063a3b16530ac63a146c886 | 23bd4f5b8dc363c5b3ed57b784b5e148c39cb098 | refs/heads/main | 2023-08-10T19:48:31.262045 | 2021-10-01T18:22:03 | 2021-10-01T18:22:03 | 412,572,993 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 390 | sce | validation.sce | clear
Z0 = 376.730313668;
h = 0.2e-3;
w = 0.2e-3;
t = 0.035e-3;
er = 4.4;
weff = w + ( t/%pi ) * log( 4 *exp(1) / ( sqrt( ( t/h ).^2 + (t/(w*%pi+1.1*t*%pi ) ).^2 ))) * ( er+1) / (2*er);
X1 = 4*( 14 * er + 8 )/( 11*er )*h/weff;
X2 = sqrt( 16*(h/weff).^2*( ( 14*er+8 )/(11*er)).^2 + ( er +1 )/( 2*er ) * %pi*%pi )
Z = Z0 / ( 2*%pi *sqrt( 2* ( 1 +er ) ) ) * log ( 1 + 4*h/weff *( X1 +X2) )
|
228f336ff326661ddfa572cad794b3f417fb8ca8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3773/CH11/EX11.2/Ex11_2.sce | 943316882f0ab6aa89ffb59fb56211759474105d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 629 | sce | Ex11_2.sce | //Chapter 11: Broadband and Frequency-Independent Antennas
//Example 11-7.1
clc;
//Variable Initialization
gain_dbi = 7.0 //Gain (dBi)
bandwidth = 4 //Relative bandwidth (unitless)
s_lambda = 0.15 //Spacing (lambda)
k = 1.2 //Scale constant (unitless)
//Calculation
alpha = atan((1-1/k)/(4*s_lambda))*180/%pi //Apex angle (degrees)
n = round(log(bandwidth)/log(k)) //Number of elements(unitless)
n =n + 1
n =n + 2 //Number of elements considering conservative design (unitless)
//Result
mprintf("The apex angle is %.1f degrees",alpha)
mprintf("\nThe number of elements is %d", n)
|
bedf727879785afd3521f06efc656a803ece5410 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/PDE3.prev.tst | 666d5d36056f2dc73a1a4b5dd7f84229bcb9e4a9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 44 | tst | PDE3.prev.tst | (x^3 + x^2*y + y^2).derivative("x", 3) = 6
|
b0aa2847339ec239de065dd91b6d3691650a4b0c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH20/EX20.4/20_04.sce | 041cae4a76f3e82e15977c147dbf4fa2396d3915 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 991 | sce | 20_04.sce | //Chapter 20, Problem 4, Fig.20.7
clc;
Vl=415; //3-phase supply
Pr=24000; //resistance in ohm
Py=18000; //resistance in ohm
Pb=12000; //resistance in ohm
Vp=Vl/sqrt(3); //phase voltage
Ir=Pr/Vp; //current in each line
Iy=Py/Vp;
Ib=Pb/Vp;
//calculating current in the neutral conductor
Irh=cos(90*%pi/180);
Iyh=cos(330*%pi/180);
Ibh=cos(210*%pi/180);
Irv=sin(90*%pi/180);
Iyv=sin(330*%pi/180);
Ibv=sin(210*%pi/180);
Ih=(Ir*Irh)+(Iy*Iyh)+(Ib*Ibh);
Iv=(Ir*Irv)+(Iy*Iyv)+(Ib*Ibv);
In=sqrt(Ih^2+Iv^2);
printf("(a) Ir = %d A\n\nIy = %d A\n\nIb = %d A\n\n",Ir,Iy,Ib);
printf("(b) The three line currents are shown in the phasor diagram of Fig. 20.8.\n");
printf("Since each load is resistive the currents are in phase with the phase voltages and are hence mutually displaced by 120◦.");
printf("\nIn = %f A\n",In);
|
36699a0c4f47a1fb0a8845d5f3b2c66951eaf495 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3843/CH3/EX3.4/Ex3_4.sce | 57498a0ea99c933d11a230dfb8be18926a2954fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 389 | sce | Ex3_4.sce | // Example 3_4
clc;funcprot(0);
// Given data
V=90;// km/h
C_D=0.2;// The drag coefficient
rho=1.23;// The density of air in kg/m^3
A=2.3;// m^2
// Calculation
V=V*(1000/3600);// The velocity in m/s
F_D=(1/2)*rho*(V^2)*A*C_D;// The drag force in N
W=F_D*V;// The work done in W
Hp=W/746;// The required horse power in hp
printf("\nThe required horse power,Hp=%1.2f hp",Hp);
|
0da279c6c736d6fe99a5346514d9ef68573439b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1826/CH18/EX18.10/ex18_10.sce | 5d1de5546b0361da4c31424565e49e47d62835e7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | sce | ex18_10.sce | // Example 18.10, page no-466
clear
clc
epsr=1.0024
N=2.7*10^25 //atoms.m^-3
eps=8.854*10^-12//F.m^-1
alfe=eps*(epsr-1)/N
printf("The polarisability of argon atom is %.1f * 10^-40 F m^2",alfe*10^40)
|
ab27faf2e2fc75261c9d2f26f48e8d6194bcb135 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.18_4.tst | 45e2bab4973624b2db8af267c520fc6c3a7de420 | [] | 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 | 26,787 | tst | bow.18_4.tst | 18 7:0.3333333333333333 8:0.058823529411764705 17:0.3333333333333333 31:0.75 86:1.0 88:0.5 91:1.0 95:1.0 101:1.0 116:1.0 123:3.0 129:1.0 164:1.0 184:1.0 193:0.5 196:3.0 209:1.0 214:1.0 239:0.6666666666666666 337:1.0 478:1.0 692:1.0 827:1.0 876:1.0 983:1.0 2380:1.0 2676:1.0 3526:5.0 3528:2.0 3530:0.047619047619047616 3750:1.0 3823:1.0 3986:1.0 4463:2.0 4464:1.0 4465:1.0 5138:1.0 5294:1.0 5932:1.0 6377:1.0 6928:1.0
18 8:0.058823529411764705 24:1.0 31:0.5 51:1.0 91:1.0 95:0.5 123:2.0 129:0.5 164:1.0 184:1.0 196:2.0 209:1.0 214:2.0 239:0.6666666666666666 259:0.25 300:2.0 301:1.0 478:1.0 876:1.0 983:1.0 1745:1.0 2219:1.0 2436:1.0 2676:1.0 2806:1.0 2905:1.0 3516:0.02857142857142857 3526:5.0 3528:1.0 3625:1.0 3750:1.0 4427:0.5 4463:2.0 4464:1.0 4465:1.0 5324:1.0 6928:1.0 6973:1.0
18 134:0.5 214:1.0 2710:1.0 3516:0.014285714285714285 3528:1.0 3530:0.047619047619047616 3554:0.5 3654:0.02631578947368421 3715:1.0 3718:1.0 3791:2.0 3819:0.5 3823:1.0 3835:1.0 3855:1.0 3945:1.0 3986:1.0 4062:1.0 4090:1.0 4176:1.0 4442:1.0 4966:1.0 6657:1.0
18 123:1.0 214:1.0 275:1.0 328:0.5 419:1.0 461:1.0 483:1.0 1189:0.3333333333333333 1927:1.0 3528:1.0 3530:0.047619047619047616 3623:1.0 3625:1.0 3715:1.0 3791:1.0 3792:1.0 4168:1.0 4347:2.0 4573:0.5 4632:1.0 5765:1.0 6456:1.0
18 6:1.0 8:0.058823529411764705 45:1.0 58:0.1111111111111111 141:1.0 161:1.0 193:0.5 214:2.0 259:0.25 281:0.5 298:1.0 328:0.25 400:1.0 477:0.2 489:1.0 535:1.0 1064:1.0 1405:1.0 1573:1.0 2710:1.0 3516:0.014285714285714285 3528:2.0 3530:0.09523809523809523 3578:1.0 3602:1.0 4090:1.0 4884:1.0 5287:1.0 5322:1.0 5444:1.0 6801:1.0 6868:1.0
18 8:0.058823529411764705 17:0.3333333333333333 21:0.5 45:1.0 95:0.5 99:0.5 101:1.0 129:0.5 133:1.0 214:2.0 259:0.5 337:1.0 438:1.0 448:1.0 483:1.0 576:1.0 937:1.0 1405:1.0 3568:0.04 3602:1.0 3654:0.02631578947368421 3695:1.0 3718:1.0 3787:1.0 3791:1.0 3842:1.0 3899:1.0 4050:1.0 4528:1.0 4586:1.0 5163:1.0 6148:1.0 6218:1.0 6543:1.0 6659:1.0 6832:1.0
18 8:0.058823529411764705 14:1.0 22:0.3333333333333333 24:1.0 31:0.25 88:1.5 128:0.2 193:0.5 259:0.25 295:1.0 477:0.2 576:1.0 799:1.0 975:1.0 1839:1.0 3351:1.0 3516:0.014285714285714285 3526:1.0 3528:1.0 3616:1.0 3625:1.0 3723:1.0 3725:1.0 3823:1.0 3842:1.0 3922:0.5 4322:1.0 4437:1.0 4439:1.0 4454:1.0 4536:1.0 4712:1.0 5785:1.0 6006:1.0 6373:1.0
18 14:1.0 32:1.0 145:0.2 165:0.5 169:0.25 193:0.5 201:0.3333333333333333 214:1.0 347:0.5 528:1.0 604:1.0 827:1.0 870:1.0 898:0.06666666666666667 3351:1.0 3516:0.014285714285714285 3526:2.0 3528:1.0 3554:0.5 3616:1.0 3704:1.0 3791:1.0 3835:1.0 3837:1.0 3945:1.0 3986:1.0 4089:0.5 4770:0.5 5456:1.0 5610:1.0 5624:1.0
18 8:0.17647058823529413 14:1.0 17:0.3333333333333333 21:0.5 45:1.0 46:1.0 88:0.5 214:1.0 461:1.0 489:1.0 634:1.0 1920:1.0 3516:0.014285714285714285 3574:2.0 3616:1.0 3650:2.0 3787:1.0 3823:1.0 3826:0.5 3834:1.0 3922:0.5 3945:1.0 4075:0.5 4326:1.0 4776:1.0 5741:1.0 6648:1.0
18 8:0.058823529411764705 31:0.25 461:1.0 1132:0.3333333333333333 1189:0.3333333333333333 3620:0.1 3787:1.0 3823:1.0 3835:1.0 3842:1.0 3922:0.5 4089:0.5 4102:1.0 4326:1.0 4635:1.0 4667:1.0 4686:1.0 4697:1.0 5530:1.0 6006:2.0 6648:1.0 6663:1.0 6876:1.0
18 12:0.5 14:1.0 88:0.5 129:0.5 141:1.0 214:1.0 327:1.0 400:1.0 438:1.0 600:0.09090909090909091 677:1.0 706:1.0 872:1.0 950:1.0 3528:1.0 3530:0.047619047619047616 3533:1.0 3568:0.04 3602:1.0 3612:1.0 3616:2.0 3654:0.02631578947368421 3715:1.0 3787:1.0 3809:1.0 3826:0.5 3847:2.0 4056:1.0 4057:1.0 4102:1.0 4128:1.0 5974:1.0
18 8:0.058823529411764705 58:0.1111111111111111 88:0.5 128:0.2 214:2.0 1745:1.0 2654:0.3333333333333333 3528:1.0 3530:0.047619047619047616 3568:0.04 3574:1.0 3578:1.0 3616:1.0 3654:0.02631578947368421 3665:1.0 3787:2.0 3791:1.0 3823:1.0 3835:1.0 3837:1.0 4142:1.0 4492:1.0 4924:1.0 4994:1.0 5121:1.0 6328:1.0 6482:1.0
18 7:0.3333333333333333 8:0.11764705882352941 58:0.1111111111111111 88:1.0 134:0.5 161:1.0 164:1.0 214:1.0 528:1.0 600:0.09090909090909091 601:1.0 1123:1.0 1254:1.0 2142:1.0 3516:0.02857142857142857 3528:1.0 3602:1.0 3647:1.0 3654:0.02631578947368421 3685:1.0 3764:1.0 3837:1.0 3922:0.5 3945:2.0 4062:1.0 4063:1.0 4182:0.5 4492:1.0 4621:1.0
18 17:0.3333333333333333 31:0.25 95:1.0 116:1.0 130:1.0 193:0.5 214:1.0 259:0.25 304:1.0 328:0.25 477:0.2 1826:1.0 2197:0.5 2606:1.0 3516:0.02857142857142857 3528:1.0 3803:1.0 3899:1.0 3922:0.5 3986:1.0 4089:0.5 5353:1.0 5527:1.0 5638:1.0 5711:1.0
18 214:1.0 898:0.06666666666666667 2710:1.0 3516:0.02857142857142857 3526:1.0 3528:1.0 3612:1.0 3616:1.0 3625:2.0 3629:1.0 3631:0.25 3685:1.0 3780:1.0 3941:1.0 4063:1.0 4262:1.0 4326:1.0 4862:1.0 4940:1.0 5252:1.0 5578:1.0 5711:1.0 6024:1.0 6328:1.0 6488:1.0
18 8:0.058823529411764705 14:1.0 22:0.3333333333333333 123:1.0 169:0.25 193:0.5 214:1.0 285:1.0 537:1.0 600:0.09090909090909091 2710:1.0 3516:0.014285714285714285 3528:1.0 3568:0.04 3694:0.058823529411764705 3732:1.0 4137:1.0 4139:1.0 4462:1.0 4591:1.0 5801:1.0 6974:1.0
18 8:0.058823529411764705 123:1.0 214:1.0 252:0.5 409:0.3333333333333333 600:0.09090909090909091 3528:1.0 3529:0.14285714285714285 3596:1.0 4978:1.0
18 8:0.11764705882352941 17:0.3333333333333333 21:0.5 24:1.0 31:0.25 88:0.5 95:1.0 116:1.0 130:1.0 193:1.0 214:1.0 259:0.25 304:2.0 477:0.2 558:1.0 1759:1.0 2606:1.0 3008:1.0 3291:1.0 3529:0.14285714285714285 3568:0.04 3620:0.1 3694:0.058823529411764705 3727:1.0 3831:1.0 3853:1.0 4097:1.0 4139:1.0 4252:1.0 4954:1.0 5138:1.0 5182:1.0 5353:1.0
18 8:0.058823529411764705 21:0.5 31:0.25 83:1.0 101:1.0 133:1.0 193:0.5 214:2.0 477:0.2 542:2.0 558:1.0 1907:1.0 3516:0.04285714285714286 3539:1.0 3546:1.0 3654:0.02631578947368421 3897:1.0 3931:1.0 5182:1.0 5963:1.0 6148:1.0
18 14:2.0 31:0.25 54:0.5 88:1.0 95:0.5 123:1.0 193:1.0 214:1.0 259:0.5 268:0.5 281:0.5 400:1.0 477:0.4 600:0.09090909090909091 898:0.06666666666666667 1131:1.0 1219:0.5 1337:1.0 2219:1.0 2606:1.0 2619:1.0 3516:0.02857142857142857 3568:0.04 3625:1.0 3632:1.0 3731:1.0 3853:1.0 3915:1.0 4139:1.0 4283:1.0 4673:1.0 4922:1.0 5099:1.0 5162:1.0 5412:1.0
18 8:0.058823529411764705 12:0.5 14:1.0 31:0.25 88:0.5 123:1.0 214:2.0 259:0.25 417:0.3333333333333333 477:0.4 876:1.0 1161:1.0 1598:1.0 3406:1.0 3516:0.014285714285714285 3654:0.05263157894736842 3715:1.0 3998:0.3333333333333333 4096:1.0 4128:2.0 4137:1.0 4315:1.0 5279:1.0
18 24:1.0 214:2.0 259:0.25 350:0.3333333333333333 400:3.0 600:0.09090909090909091 898:0.06666666666666667 2676:1.0 2710:1.0 3123:1.0 3516:0.02857142857142857 3625:1.0 3692:0.2 3694:0.058823529411764705 3751:1.0 3855:1.0 3887:1.0 4052:1.0 4134:1.0 4139:1.0 4620:1.0 5100:1.0
18 8:0.058823529411764705 83:1.0 88:0.5 193:0.5 214:1.0 227:1.0 327:1.0 342:1.0 477:0.2 713:1.0 870:1.0 1161:1.0 2210:0.5 3516:0.014285714285714285 3526:1.0 3528:1.0 3530:0.047619047619047616 3654:0.02631578947368421 3916:0.5 3998:0.3333333333333333 4128:1.0 4160:1.0 4500:1.0 4573:0.5 6548:1.0
18 14:2.0 21:0.5 24:1.0 123:1.0 129:0.5 164:2.0 193:1.0 196:1.0 202:1.0 214:2.0 291:1.0 301:1.0 328:0.5 400:1.0 522:1.0 600:0.09090909090909091 898:0.06666666666666667 965:1.0 1439:0.5 2147:1.0 3161:1.0 3297:1.0 3516:0.02857142857142857 3526:1.0 3528:2.0 3621:1.0 3879:1.0 3915:1.0
18 214:1.0 759:1.0 2368:1.0 3516:0.014285714285714285 3528:1.0 3568:0.04 3602:1.0 3751:1.0 3787:2.0 3788:1.0 3834:1.0 3899:1.0 3927:1.0 4461:1.0 5602:1.0
18 17:0.3333333333333333 69:1.0 141:1.0 193:0.5 212:1.0 477:0.2 898:0.06666666666666667 1072:1.0 3516:0.02857142857142857 3526:1.0 3584:1.0 3588:1.0 3625:1.0 3727:1.0 3823:1.0 3835:2.0 3859:1.0 3899:1.0 3938:1.0 3939:1.0 3956:0.5 3986:1.0 4176:1.0 4227:0.5 4313:1.0 4333:1.0 4954:1.0 5052:1.0 5602:1.0 6143:1.0 6292:1.0 6874:1.0 6914:1.0
18 8:0.058823529411764705 14:1.0 24:2.0 31:0.25 45:1.0 86:1.0 95:0.5 123:1.0 130:1.0 193:0.5 196:1.0 214:1.0 259:0.25 266:1.0 291:1.0 328:0.25 478:1.0 600:0.09090909090909091 718:1.0 741:1.0 791:1.0 978:1.0 3516:0.02857142857142857 3625:1.0 3847:1.0 3986:1.0 4062:1.0 4063:1.0 4075:0.5 4079:1.0 4293:1.0 4463:1.0 4968:1.0 5025:1.0 5704:1.0 5900:1.0
18 21:0.5 26:0.5 31:0.25 45:1.0 69:1.0 123:1.0 169:0.25 196:1.0 209:1.0 270:1.0 328:0.75 460:1.0 898:0.06666666666666667 1912:1.0 3516:0.04285714285714286 3526:1.0 3588:1.0 3602:1.0 3616:1.0 3621:1.0 3942:1.0 3956:0.5 4155:1.0 4463:1.0 4472:1.0 4867:0.5 6542:1.0
18 8:0.058823529411764705 31:0.75 133:1.0 214:2.0 290:0.5 409:0.3333333333333333 898:0.06666666666666667 1611:1.0 3516:0.07142857142857142 3581:1.0 3652:1.0 3672:1.0 4128:1.0 6092:1.0
18 8:0.058823529411764705 14:1.0 24:2.0 31:0.25 99:0.5 123:2.0 202:1.0 213:1.0 259:0.5 295:1.0 400:1.0 417:0.3333333333333333 523:0.5 600:0.09090909090909091 898:0.06666666666666667 919:1.0 949:1.0 3297:1.0 3420:1.0 3478:1.0 3516:0.014285714285714285 3525:1.0 3526:1.0 3533:1.0 3715:1.0 3803:1.0 3982:1.0 4252:1.0 5466:1.0 5467:1.0 6549:1.0
18 290:0.5 898:0.06666666666666667 1145:1.0 3516:0.02857142857142857 3526:1.0 3554:0.5 3625:1.0 3770:1.0 3956:0.5 4667:1.0 5152:1.0 5324:1.0 5706:1.0 5783:1.0 6092:1.0
18 14:1.0 17:0.3333333333333333 31:0.25 45:1.0 51:1.0 123:2.0 141:1.0 187:2.0 193:0.5 214:3.0 295:1.0 300:1.0 342:1.0 437:1.0 631:0.5 1608:1.0 2219:1.0 2806:1.0 3516:0.014285714285714285 3526:1.0 3530:0.047619047619047616 3533:1.0 3574:1.0 3654:0.05263157894736842 3715:1.0 3779:1.0 3803:1.0 4500:1.0 5206:1.0 5466:1.0
18 44:1.0 61:1.0 91:1.0 95:0.5 99:0.5 133:1.0 160:1.0 161:1.0 174:0.09090909090909091 181:0.07692307692307693 201:0.3333333333333333 214:2.0 280:1.0 298:1.0 328:0.5 417:0.3333333333333333 419:1.0 753:1.0 898:0.06666666666666667 1745:1.0 2696:1.0 3516:0.02857142857142857 3526:2.0 3586:1.0 3779:1.0 3998:0.3333333333333333 4062:1.0 4315:1.0 5206:1.0 5262:1.0 5635:1.0
18 7:0.3333333333333333 8:0.11764705882352941 21:0.5 214:2.0 328:0.25 2095:1.0 3516:0.04285714285714286 3533:1.0 3636:0.25 3654:0.02631578947368421 3715:1.0 3834:1.0 3998:0.3333333333333333 4245:1.0 4312:1.0 4318:1.0 4701:1.0 4779:1.0 5319:1.0 5445:1.0 5467:1.0 5550:1.0
18 17:0.3333333333333333 21:0.5 31:0.25 32:1.0 88:0.5 123:1.0 193:0.5 196:1.0 214:3.0 259:0.25 1123:1.0 2124:0.3333333333333333 3516:0.02857142857142857 3528:2.0 3530:0.047619047619047616 3612:1.0 3654:0.02631578947368421 4550:1.0 4940:1.0 5138:1.0 6296:1.0 6377:1.0 6928:1.0
18 7:0.3333333333333333 14:1.0 88:0.5 99:0.5 128:0.2 187:1.0 214:1.0 259:0.25 281:0.5 285:1.0 3297:1.0 3516:0.014285714285714285 3528:1.0 3604:1.0 3631:0.25 3636:0.25 3662:1.0 3770:1.0 3819:0.5 3823:1.0 3835:1.0 3859:1.0 3962:1.0 3981:1.0 3986:1.0 4090:1.0 4162:1.0 4667:1.0 4829:1.0 4969:0.5 5152:1.0 5765:1.0
18 14:2.0 31:0.25 45:1.0 88:0.5 187:1.0 214:1.0 285:1.0 328:0.25 331:1.0 523:0.5 1128:1.0 1315:1.0 3516:0.02857142857142857 3525:1.0 3625:2.0 3654:0.02631578947368421 3806:1.0 3899:1.0 5138:1.0 5635:1.0 6377:1.0 6928:1.0
18 7:0.3333333333333333 32:1.0 33:1.0 214:2.0 3510:0.14285714285714285 3516:0.05714285714285714 3528:1.0 3620:0.1 3621:1.0 3995:1.0 4097:1.0 4550:1.0
18 14:1.0 45:1.0 165:0.5 169:0.25 214:1.0 220:1.0 523:0.5 600:0.09090909090909091 1128:1.0 1405:1.0 2219:1.0 3516:0.014285714285714285 3525:1.0 3526:1.0 3530:0.047619047619047616 3982:1.0 4396:1.0 4784:1.0 4954:1.0 5371:1.0 5963:1.0
18 88:0.5 164:1.0 214:2.0 291:1.0 328:0.25 522:1.0 1189:0.3333333333333333 1676:1.0 3510:0.14285714285714285 3512:1.0 3516:0.014285714285714285 3526:2.0 3528:2.0 3554:0.5 3654:0.02631578947368421 3770:1.0 3998:0.3333333333333333 4175:1.0 4424:1.0 4815:1.0 4863:1.0
18 7:0.3333333333333333 8:0.058823529411764705 214:2.0 3516:0.02857142857142857 3596:1.0 3620:0.1 3625:1.0 3636:0.25 3704:1.0 3740:2.0 3832:1.0 3833:0.3333333333333333 3879:1.0 4120:1.0 4131:1.0 4138:1.0 4264:1.0 4533:1.0 4591:1.0 4648:1.0 4800:1.0 5027:1.0 5286:1.0 5313:1.0 5466:1.0 5467:1.0 6155:1.0 6287:1.0 6914:1.0
18 22:0.3333333333333333 45:1.0 130:2.0 161:1.0 193:1.0 281:0.5 328:0.25 477:0.2 898:0.06666666666666667 949:1.0 1178:1.0 1659:1.0 3530:0.047619047619047616 3636:0.25 4396:1.0 4454:1.0 4611:1.0 4897:1.0 5292:1.0
18 44:1.0 45:1.0 88:0.5 101:1.0 165:0.5 193:2.0 252:0.5 266:1.0 281:0.5 288:1.0 328:0.25 477:0.2 523:0.5 692:1.0 791:1.0 1178:1.0 1219:0.5 1256:1.0 1745:2.0 1960:1.0 3516:0.02857142857142857 3525:1.0 3526:3.0 3531:1.0 3588:1.0 3694:0.058823529411764705 3803:1.0 3871:2.0 3872:2.0 4072:1.0 4895:1.0 4897:1.0 4907:0.5 5019:1.0 5890:1.0
18 123:1.0 133:1.0 281:0.5 453:0.5 3516:0.02857142857142857 3568:0.04 3584:1.0 3616:1.0 3654:0.02631578947368421 3694:0.058823529411764705 3715:1.0 3833:0.3333333333333333 3871:1.0 3872:1.0 3967:1.0 3968:1.0 3969:1.0 4139:1.0 4252:1.0 4322:1.0 4549:1.0 4684:1.0 5009:1.0 5806:1.0 6629:1.0 7029:1.0
18 14:1.0 21:0.5 26:0.5 69:1.0 214:1.0 266:1.0 290:0.5 327:1.0 350:0.3333333333333333 1189:0.3333333333333333 1315:1.0 2614:1.0 2710:2.0 3123:1.0 3516:0.02857142857142857 3595:1.0 3625:1.0 3664:1.0 3694:0.058823529411764705 3715:1.0 4062:1.0 4134:1.0 4139:1.0 4227:0.5 4323:1.0 4324:1.0 4589:1.0 4779:2.0 4966:1.0 5100:1.0 5693:1.0 6092:1.0
18 8:0.058823529411764705 22:0.3333333333333333 45:1.0 58:0.1111111111111111 88:1.5 123:1.0 175:1.0 193:1.0 214:1.0 270:1.0 295:1.0 305:1.0 328:0.25 477:0.2 872:2.0 949:1.0 965:1.0 1113:1.0 1807:1.0 2046:1.0 3526:1.0 3722:1.0 3723:1.0 3725:1.0 3826:0.5 3871:2.0 3872:3.0 3882:1.0 3883:1.0 3885:1.0 3886:1.0 3887:1.0 3947:1.0 3949:1.0 3950:1.0 3951:1.0 4428:1.0 4451:1.0 5923:1.0
18 22:0.3333333333333333 437:1.0 573:1.0 965:1.0 3526:1.0 3618:1.0 3674:1.0 3826:0.5 3833:0.3333333333333333 3899:1.0 3986:1.0 4082:1.0 4192:1.0 4198:1.0 5296:1.0 6303:1.0 6309:1.0 6552:1.0 6760:1.0 6762:1.0
18 95:0.5 175:1.0 193:0.5 214:1.0 259:0.25 523:0.5 600:0.09090909090909091 1405:2.0 3516:0.014285714285714285 3525:1.0 3526:2.0 3528:1.0 3612:1.0 3803:1.0 3980:1.0 4052:1.0 4066:1.0 4796:1.0 5559:1.0 6024:1.0 6049:1.0
18 8:0.058823529411764705 17:0.3333333333333333 21:0.5 24:1.0 45:2.0 99:0.5 162:1.0 169:0.25 193:0.5 214:2.0 232:1.0 268:0.5 295:1.0 328:0.25 799:1.0 919:1.0 1145:1.0 2355:1.0 2565:2.0 3516:0.014285714285714285 3526:2.0 3584:1.0 3586:1.0 3726:1.0 3769:1.0 3775:1.0 3779:1.0 4041:1.0 4247:1.0 5795:1.0 6133:1.0
18 17:0.3333333333333333 58:0.1111111111111111 99:0.5 169:0.25 214:1.0 259:0.25 448:1.0 1145:1.0 1598:1.0 2565:1.0 2710:1.0 3516:0.014285714285714285 3526:1.0 3528:1.0 3612:1.0 3654:0.02631578947368421 3706:1.0 3707:1.0 4060:1.0 4247:1.0 4607:1.0 5050:1.0 5111:1.0 5806:2.0 6664:1.0
18 5:1.0 8:0.058823529411764705 12:0.5 17:0.3333333333333333 58:0.1111111111111111 88:0.5 169:0.25 214:1.0 232:1.0 1145:1.0 2565:1.0 2613:1.0 2710:1.0 3516:0.02857142857142857 3526:1.0 3636:0.25 4062:1.0 4589:1.0 4941:1.0 4966:1.0 5446:1.0
18 8:0.058823529411764705 12:0.5 24:1.0 88:0.5 95:1.0 134:0.5 214:2.0 460:1.0 1905:1.0 3110:2.0 3516:0.02857142857142857 3533:1.0 3543:1.0 3574:1.0 3612:1.0 3615:1.0 3715:1.0 3780:1.0 4027:1.0 4062:1.0 4170:1.0 4399:1.0 4589:1.0 4776:1.0 4966:1.0 5240:1.0 6341:1.0
18 8:0.058823529411764705 21:0.5 22:0.3333333333333333 31:0.25 45:1.0 54:0.5 99:0.5 101:1.0 107:1.0 123:1.0 161:1.0 193:0.5 201:0.6666666666666666 214:1.0 328:0.25 350:0.3333333333333333 449:0.3333333333333333 478:2.0 876:1.0 889:1.0 891:1.0 1113:1.0 1497:1.0 1734:1.0 1807:1.0 2219:1.0 3516:0.014285714285714285 3530:0.047619047619047616 3602:1.0 3625:1.0 3718:1.0 3723:1.0 4293:1.0 4612:1.0 4640:1.0 4765:1.0 6002:1.0 6028:1.0
18 8:0.11764705882352941 44:1.0 134:0.5 153:0.3333333333333333 214:3.0 446:1.0 1807:1.0 3528:1.0 3533:1.0 3568:0.04 3623:1.0 3715:1.0 6377:1.0
18 8:0.058823529411764705 14:3.0 88:1.0 162:1.0 164:1.0 198:2.0 239:0.3333333333333333 259:0.25 420:1.0 437:1.0 477:0.2 542:1.0 1064:1.0 1439:0.5 2147:1.0 3516:0.014285714285714285 3526:1.0 3770:1.0 3956:0.5 4041:1.0 4162:1.0 4499:1.0
18 342:1.0 3602:1.0 3612:1.0 3793:1.0 3819:0.5 4089:0.5 4261:1.0 4290:1.0 4308:1.0 4575:1.0 4950:1.0 4954:1.0 5810:1.0 6006:1.0
18 3528:1.0 3612:1.0 3636:0.25 3718:1.0 3836:1.0 3844:1.0 3855:1.0 3922:0.5 3956:0.5 4968:1.0 5252:1.0 5332:0.5 6108:1.0
18 134:0.5 214:3.0 1905:3.0 3516:0.02857142857142857 3526:1.0 3528:1.0 3543:1.0 3602:1.0 3614:1.0 3654:0.02631578947368421
18 214:2.0 600:0.09090909090909091 1807:1.0 3516:0.014285714285714285 3612:1.0 3625:1.0 3769:1.0 3770:1.0 3787:1.0 3791:1.0 4128:1.0 4162:1.0 4414:1.0 4692:1.0 4799:1.0 6659:1.0 6814:1.0 6925:1.0
18 7:0.6666666666666666 8:0.058823529411764705 12:0.5 99:0.5 115:2.0 123:1.0 128:0.2 162:1.0 214:1.0 277:1.0 573:1.0 876:1.0 1439:0.5 3355:1.0 3516:0.04285714285714286 3526:1.0 3531:1.0 3654:0.02631578947368421 3676:1.0 4884:1.0 5006:1.0 5466:1.0
18 7:0.3333333333333333 8:0.11764705882352941 21:1.0 51:1.0 81:0.5 101:1.0 107:1.0 129:0.5 134:0.5 190:1.0 193:0.5 201:0.3333333333333333 417:0.3333333333333333 489:1.0 889:1.0 1439:0.5 2357:1.0 3596:1.0 4062:1.0 4527:1.0 6875:1.0
18 5:1.0 45:1.0 101:1.0 128:0.2 214:2.0 232:1.0 3528:1.0 3654:0.05263157894736842 4041:1.0 4128:1.0 4273:1.0 6488:1.0
18 8:0.11764705882352941 88:1.0 214:1.0 295:1.0 3516:0.014285714285714285 3654:0.02631578947368421 4062:1.0 4063:1.0 5893:1.0 6205:1.0 6438:1.0
18 14:1.0 17:0.3333333333333333 31:0.25 214:2.0 417:0.3333333333333333 489:1.0 576:1.0 3516:0.014285714285714285 3602:1.0 3654:0.02631578947368421 3706:1.0 3707:1.0 3718:1.0 4128:1.0 4252:1.0 5328:1.0
18 7:0.3333333333333333 8:0.058823529411764705 21:0.5 45:1.0 134:0.5 214:1.0 232:1.0 259:0.5 522:1.0 799:1.0 2124:0.3333333333333333 3516:0.014285714285714285 3539:1.0 4041:1.0 4799:1.0 6175:1.0
18 88:0.5 107:1.0 214:2.0 460:1.0 489:1.0 1311:1.0 2972:1.0 3516:0.014285714285714285 3526:1.0 3528:1.0 3612:1.0 3636:0.25 3751:1.0 4022:1.0 4066:1.0 4122:1.0 4128:1.0 4160:1.0 4312:1.0 4329:1.0 5313:1.0 5361:1.0 6044:1.0 6175:1.0 6179:1.0 6635:1.0 6965:1.0
18 45:2.0 88:0.5 130:1.0 161:1.0 201:0.6666666666666666 214:2.0 374:1.0 600:0.09090909090909091 1807:1.0 2568:1.0 3516:0.014285714285714285 3526:1.0 3723:1.0 3853:1.0 4030:1.0 4176:1.0 4765:1.0 6024:1.0
18 31:0.25 45:2.0 128:0.2 175:1.0 193:0.5 212:1.0 214:1.0 328:0.25 522:1.0 576:1.0 799:1.0 3516:0.014285714285714285 3517:0.5 3625:1.0 3636:0.25 4248:1.0 5163:1.0 5755:1.0 5810:1.0
18 6:1.0 7:0.3333333333333333 17:0.3333333333333333 31:0.25 128:0.2 162:1.0 165:0.5 214:2.0 445:1.0 489:1.0 799:1.0 2696:1.0 3516:0.014285714285714285 3530:0.047619047619047616 3568:0.04 3612:1.0 3625:1.0 3637:1.0 4047:1.0 4049:1.0 4074:1.0 4183:1.0 4799:1.0 4929:1.0 4999:1.0 5319:1.0 5323:1.0 5808:1.0
18 7:0.6666666666666666 14:1.0 31:0.25 58:0.2222222222222222 69:1.0 95:0.5 123:2.0 129:0.5 193:1.0 214:1.0 228:1.0 281:0.5 295:1.0 477:0.2 542:1.0 600:0.09090909090909091 827:1.0 898:0.13333333333333333 1315:1.0 2219:1.0 2266:1.0 3528:1.0 3530:0.047619047619047616 3612:1.0 3636:0.5 3654:0.02631578947368421 3915:1.0 4258:1.0 4786:1.0 6155:2.0
18 8:0.11764705882352941 84:1.0 88:0.5 129:0.5 130:1.0 145:0.4 162:1.0 193:0.5 202:1.0 214:1.0 259:0.5 342:1.0 600:0.09090909090909091 898:0.06666666666666667 1538:1.0 2124:0.3333333333333333 2972:1.0 3478:1.0 3516:0.02857142857142857 3530:0.047619047619047616 3543:1.0 3586:1.0 3631:0.25 3680:1.0 4684:1.0 4786:1.0 5527:1.0
18 8:0.058823529411764705 17:0.3333333333333333 51:1.0 88:0.5 91:1.0 101:1.0 129:0.5 134:0.5 164:1.0 193:2.0 196:1.0 214:1.0 259:0.25 281:0.5 576:1.0 898:0.13333333333333333 949:1.0 2613:1.0 2972:1.0 3352:1.0 3478:1.0 3516:0.014285714285714285 3530:0.047619047619047616 3588:1.0 3654:0.05263157894736842 3769:1.0 3879:1.0 4778:1.0 5559:1.0 6549:1.0
18 45:1.0 61:1.0 165:0.5 214:4.0 898:0.06666666666666667 1128:1.0 1864:1.0 3516:0.04285714285714286 3526:1.0 3986:1.0 4043:1.0 4322:1.0 5649:1.0 6653:1.0
18 8:0.058823529411764705 95:0.5 99:0.5 214:2.0 259:0.25 263:1.0 461:1.0 477:0.2 2095:1.0 3511:0.5 3516:0.014285714285714285 3517:0.5 3528:1.0 3530:0.047619047619047616 3568:0.04 3618:1.0 3787:1.0 3819:0.5 3853:1.0 4148:1.0 4199:1.0 4360:1.0 4800:1.0 4810:1.0 5466:1.0 5467:1.0 6447:1.0
18 17:0.3333333333333333 45:1.0 99:0.5 161:1.0 214:2.0 399:1.0 1135:1.0 3516:0.02857142857142857 3528:2.0 3530:0.047619047619047616 3822:1.0 3834:1.0 3853:1.0 4160:1.0 4217:1.0 4312:1.0 4861:1.0 5376:1.0 6056:1.0 6057:1.0
18 14:1.0 91:1.0 98:1.0 116:1.0 129:0.5 160:1.0 161:1.0 169:0.25 174:0.09090909090909091 181:0.07692307692307693 214:1.0 260:1.0 298:1.0 326:0.5 2219:4.0 3516:0.02857142857142857 3526:3.0 3528:1.0 3579:1.0 3580:1.0 3711:0.5 3986:1.0 4062:2.0 4063:1.0 4322:1.0 5323:1.0 5353:1.0 6543:1.0
18 214:1.0 600:0.09090909090909091 2310:1.0 3516:0.02857142857142857 3535:1.0 3602:1.0 3612:1.0 3659:2.0 3702:1.0 3767:1.0 3787:1.0 3792:1.0 3835:2.0 4140:0.3333333333333333 4863:1.0 5630:1.0 5631:1.0 5632:1.0 5711:1.0 6560:1.0 6805:1.0 6890:1.0
18 45:1.0 162:1.0 214:2.0 409:0.3333333333333333 600:0.09090909090909091 631:0.5 2330:1.0 3291:1.0 3355:1.0 3528:1.0 3554:0.5 3568:0.04 3596:1.0 3602:1.0 3620:0.1 3636:0.25 3658:1.0 3660:1.0 3718:1.0 4307:1.0 4426:1.0 4553:1.0 4978:1.0 5280:1.0 6429:1.0
18 7:0.3333333333333333 12:0.5 21:0.5 128:0.2 187:1.0 209:1.0 214:2.0 259:0.5 328:0.25 342:2.0 600:0.09090909090909091 1151:1.0 2124:0.3333333333333333 3478:1.0 3516:0.014285714285714285 3530:0.09523809523809523 3568:0.04 3580:1.0 3625:1.0 3636:0.25 3654:0.02631578947368421 3857:1.0 4128:1.0 4176:1.0 4312:1.0 4950:1.0 6660:1.0 6974:1.0
18 14:1.0 45:1.0 88:0.5 193:0.5 214:2.0 347:0.5 477:0.2 2428:0.3333333333333333 3516:0.02857142857142857 3528:1.0 3579:1.0 3580:1.0 3636:0.5 3654:0.02631578947368421 3756:1.0 3780:2.0 3787:1.0 3799:0.5 3835:1.0 3844:1.0 4102:1.0 4128:1.0 4168:1.0 4175:1.0 4177:0.5 4360:1.0 4477:1.0 5237:1.0 5975:1.0 5976:1.0 6006:1.0 6541:1.0
18 8:0.058823529411764705 161:1.0 214:3.0 2905:1.0 2972:1.0 3515:1.0 3526:1.0 3528:2.0 3568:0.04 3620:0.1 3654:0.02631578947368421 3855:1.0 3879:1.0 4315:1.0 4793:1.0 4886:1.0 5445:1.0
18 7:0.3333333333333333 99:0.5 214:1.0 898:0.06666666666666667 919:1.0 3420:1.0 3511:0.5 3516:0.014285714285714285 3526:1.0 3530:0.047619047619047616 3702:1.0 3835:2.0 3867:1.0 4654:1.0 5466:1.0 5467:1.0
18 17:0.3333333333333333 88:0.5 214:6.0 600:0.09090909090909091 698:1.0 799:1.0 1128:1.0 1598:3.0 1807:1.0 2179:1.0 3261:1.0 3516:0.02857142857142857 3528:2.0 3568:0.08 3578:1.0 3616:1.0 3625:1.0 3645:1.0 3832:1.0 3847:1.0 3899:1.0 4462:1.0 4684:1.0 4839:1.0 4966:1.0 6174:1.0
18 17:0.6666666666666666 91:1.0 193:0.5 204:1.0 214:5.0 453:0.5 514:1.0 1598:2.0 1807:1.0 3478:1.0 3530:0.047619047619047616 3568:0.04 3578:1.0 3612:1.0 3616:1.0 3636:0.5 3659:1.0 3694:0.058823529411764705 3857:1.0 3899:1.0 3928:1.0 4005:1.0 4115:0.5 4128:1.0 4684:1.0 4839:1.0 5740:1.0 6581:1.0 6771:1.0
18 7:0.3333333333333333 8:0.058823529411764705 51:1.0 123:1.0 184:1.0 193:0.5 214:3.0 266:1.0 461:1.0 1807:1.0 3289:1.0 3516:0.02857142857142857 3528:1.0 3612:1.0 3791:1.0 3847:1.0 3849:1.0 3899:1.0 3922:0.5 3945:1.0 4034:1.0 4297:1.0 4360:1.0 4863:1.0 5376:1.0 5560:1.0
18 165:0.5 214:2.0 1128:1.0 1807:1.0 3511:0.5 3514:1.0 3516:0.014285714285714285 3568:0.04 3616:1.0 3647:1.0 3694:0.058823529411764705 3835:1.0 3847:1.0 3850:1.0 3949:1.0 4360:1.0 4477:1.0 4862:1.0 5457:1.0 5769:1.0 6696:1.0 6805:1.0
18 8:0.058823529411764705 21:0.5 45:1.0 51:1.0 54:0.5 99:0.5 101:1.0 165:1.0 214:3.0 305:1.0 522:1.0 523:0.5 698:1.0 1128:1.0 3204:1.0 3511:0.5 3516:0.014285714285714285 3526:1.0 3528:1.0 3530:0.047619047619047616 3636:0.25 3706:1.0 3707:1.0 3715:1.0 3721:1.0 3999:1.0 4128:1.0 4946:1.0 5369:1.0 5828:1.0 6097:1.0 6357:1.0
18 12:0.5 107:1.0 193:0.5 214:5.0 259:0.5 295:1.0 1826:1.0 2310:1.0 3291:1.0 3512:1.0 3516:0.05714285714285714 3528:1.0 3596:1.0 4165:1.0 4952:1.0
18 45:1.0 58:0.1111111111111111 59:1.0 214:2.0 2428:0.3333333333333333 3511:0.5 3516:0.02857142857142857 3528:1.0 3588:1.0 3636:0.25 4062:1.0 5893:1.0
18 14:1.0 17:0.3333333333333333 22:0.6666666666666666 45:2.0 86:1.0 88:0.5 99:1.0 123:2.0 199:1.0 214:2.0 259:0.5 263:1.0 600:0.09090909090909091 759:1.0 898:0.06666666666666667 1064:1.0 2428:0.3333333333333333 3227:1.0 3355:1.0 3516:0.014285714285714285 3526:1.0 3539:1.0 3956:0.5 4128:1.0 4162:1.0 4621:1.0 5191:1.0
18 14:1.0 54:0.5 128:0.2 214:2.0 281:0.5 477:0.2 898:0.06666666666666667 3511:0.5 3516:0.02857142857142857 3522:1.0 3525:1.0 3526:1.0 3530:0.047619047619047616 3535:1.0 3612:1.0 3625:1.0 3636:0.25 3832:1.0 3928:1.0 4004:1.0 4030:1.0 4039:1.0 4128:1.0 4252:1.0 4966:1.0 5084:1.0 5594:1.0
18 8:0.058823529411764705 17:0.3333333333333333 21:0.5 45:3.0 58:0.1111111111111111 61:1.0 93:1.0 134:1.0 141:1.0 164:1.0 214:2.0 230:1.0 298:1.0 453:0.5 461:1.0 523:0.5 692:1.0 698:1.0 866:1.0 898:0.06666666666666667 1795:1.0 1807:1.0 2060:1.0 2124:0.3333333333333333 2428:0.3333333333333333 3516:0.02857142857142857 3526:2.0 3530:0.047619047619047616 3571:1.0 3692:0.2 3826:0.5 3978:1.0 4621:1.0 5191:1.0
18 51:1.0 95:0.5 134:0.5 214:2.0 295:1.0 1149:1.0 1257:1.0 1439:0.5 1598:1.0 3514:1.0 3516:0.02857142857142857 3526:2.0 3568:0.08 3591:0.5 3612:1.0 3625:1.0 3636:0.25 3654:0.02631578947368421 3928:1.0 4027:1.0 4315:1.0 4493:1.0 4575:1.0 4863:1.0 4886:1.0 5448:1.0
18 14:1.0 31:0.25 45:2.0 58:0.1111111111111111 91:1.0 161:1.0 165:0.5 169:0.25 193:0.5 214:4.0 461:1.0 898:0.06666666666666667 937:1.0 1128:1.0 1716:1.0 2170:1.0 2215:1.0 2428:0.3333333333333333 3511:0.5 3516:0.02857142857142857 3528:2.0 3636:0.25 3694:0.058823529411764705 3756:1.0 3836:1.0 4003:1.0 4649:1.0 5161:1.0 5191:1.0 6810:1.0
18 8:0.35294117647058826 14:1.0 45:2.0 77:0.5 88:0.5 99:0.5 123:1.0 141:1.0 162:1.0 164:1.0 195:1.0 214:2.0 286:1.0 328:0.25 588:1.0 706:1.0 725:1.0 788:1.0 866:2.0 898:0.06666666666666667 937:1.0 1060:1.0 1746:1.0 2428:0.3333333333333333 3204:1.0 3450:1.0 3516:0.014285714285714285 3528:2.0 3581:1.0 3891:1.0 4004:1.0 4182:0.5 4183:1.0 6146:1.0 6959:1.0
18 8:0.058823529411764705 45:1.0 145:0.2 214:1.0 305:1.0 795:1.0 1157:1.0 1342:1.0 2219:1.0 2268:1.0 3516:0.014285714285714285 3528:1.0 3535:1.0 3614:1.0 3625:1.0 4131:1.0 4360:1.0 5332:0.5 5576:1.0
18 31:0.25 45:1.0 55:1.0 88:0.5 128:0.2 161:1.0 162:1.0 214:2.0 652:1.0 691:0.5 1265:1.0 1670:1.0 2142:1.0 2655:1.0 3291:1.0 3421:1.0 3516:0.02857142857142857 3526:1.0 3528:1.0 3535:1.0 3826:2.5 4206:3.0 4453:1.0 4797:1.0 4826:1.0 4912:1.0 5013:1.0 5173:2.0 5252:1.0 5498:1.0
18 31:0.5 45:1.0 54:0.5 95:0.5 128:0.2 214:3.0 232:1.0 295:1.0 531:1.0 1110:1.0 1608:1.0 1979:1.0 2330:1.0 2806:1.0 3515:1.0 3516:0.05714285714285714 3568:0.04 3579:1.0 3580:1.0 3625:1.0 3633:1.0 3661:1.0 3780:1.0 3928:1.0 4041:1.0 4183:1.0 4185:1.0 4648:1.0 5313:1.0 5401:1.0 6287:1.0
18 7:0.3333333333333333 14:1.0 31:0.25 44:1.0 45:1.0 95:0.5 187:1.0 190:1.0 212:1.0 214:2.0 328:0.25 347:0.5 379:1.0 1664:1.0 3204:1.0 3511:0.5 3516:0.014285714285714285 3526:2.0 3528:1.0 3568:0.04 3579:1.0 3580:1.0 3615:1.0 3633:1.0 3740:1.0 3853:1.0 4262:1.0 4315:1.0 4591:1.0 5015:1.0 5039:1.0 5252:1.0 5370:1.0 5663:1.0 6179:1.0 6456:1.0 6511:1.0
18 8:0.058823529411764705 14:1.0 54:0.5 95:0.5 123:1.0 161:1.0 195:1.0 214:2.0 305:2.0 1671:1.0 3516:0.014285714285714285 3528:1.0 3530:0.047619047619047616 3535:1.0 3584:1.0 3625:1.0 3636:0.25 3654:0.02631578947368421 3938:1.0 4549:1.0 4975:1.0 5099:1.0 5336:1.0 5468:1.0 5935:1.0 6560:1.0 6711:1.0
|
51e94643f43b6621b5d53d9e28cf896ee1f8b657 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1367/CH6/EX6.4/6_4.sce | 31328632c78797833ef3a623ef681dcaf4467c8c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 526 | sce | 6_4.sce | //Find Elastic Strain Energy
//Ex:6.4
clc;
clear;
close;
v=0.31;//poisson's ratio
bv=.25*10^-9;//burger's vector in m
ri=1.1*10^-9;//in m
r0=10^5*bv;//in m
sm=45*10^9;//shear modulous in n/sqm
gb_2=sm*bv^2;
u_ed=(gb_2/(4*3.14*(1-v)))*log(r0/ri);
disp(u_ed,"Elastic Strain Energy of Edge dislocation (in J/m) = ");
u_sd=(gb_2/(4*3.14))*log(r0/ri);
disp(u_sd,"Elastic Strain Energy of Screw dislocation (in J/m) = ");
r=u_ed/u_sd;//ratio
disp(r,"Ratio of energies of edge dislocation over screw dislocation = "); |
33293b2fd639618734ee36e5808e5949f708c7c9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3808/CH4/EX4.1/Ex4_1.sce | 67e8c11b7448ba116f01b547c3da1d536c98e4fb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 463 | sce | Ex4_1.sce | //Chapter 04:Number Theory and Cryptography
clc;
clear all;
//To find the quotient and remainder
dividend=101
divisor=11
quotient=int(dividend/divisor) //To find quotient
remainder=modulo(dividend,divisor) //To find remainder
dividend_a=(divisor *quotient)+remainder //To find dividend
mprintf("The quotient when %d is divided by %d is %d = %d div %d and the remainder is %d = %d mod %d",dividend,divisor,quotient,dividend,divisor,remainder,dividend,divisor)
|
a35ca0bc9b3cfd273ee5f45d066145324f368306 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3204/CH22/EX22.2/Ex22_2.sce | f0b99440a9c79b55330720cfed2a02aa1de2d858 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 541 | sce | Ex22_2.sce | // Initilization of variables
s=1 // m
mu=0.192 // coefficient of static friction
g=9.81 // m/s^2
// Calculations
// The maximum angle of the inclined plane is given as,
theta=atand(3*mu) // degree
a=(2/3)*g*sind(theta) // m/s^2 // by solving eq'n 4
v=sqrt(2*a*s) // m/s
// Let the acceleration at the centre be A which is given as,
A=g*sind(theta) // m/s^2 // from eq'n 1
// Results
clc
printf('(a) The acceleration at the centre is %f m/s^2 \n',A)
printf('(b) The maximum angle of the inclined plane is %f degree \n',theta)
|
253824f929a6ebd74b4da78d68a14b34781eccd2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1544/CH3/EX3.19/Ch03Ex19.sce | 3f97143bd34c714a376b599d5b6e8467775bc347 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 917 | sce | Ch03Ex19.sce | // Scilab code Ex3.19: Pg 101-102 (2008)
clc; clear;
C = 270e-12; // Capacitance, F
A = 60e-04; // Cross-sectional area of plate, m^2
E = 350e03; // Dielectric strength, V/m
epsilon_r = 2.1; // Relative pemittivity
epsilon_o = 8.854e-12; // Permittivity of free space
// Part (a)
// Since formula for capacitance, C = ((epsilon_o)*(eplison_r)*A)/d, solving for d
d = ((epsilon_o)*(epsilon_r)*A)/C; // Thickness of dielectric, m
// Part (b)
// Since E = V/d, solving for V
V = E*d; // Maximum possible working voltage, V
printf("\nThe thickness of Teflon sheet required = %5.4f mm", d/1e-03);
printf("\nThe maximum possible working voltage for the capacitor = %5.1f V", V);
// Result
// The thickness of Teflon sheet required = 0.413 mm
// The maximum possible working voltage for the capacitor = 144.6 V
|
c28ccd500b010a532b40662e880959d23a95c148 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3392/CH16/EX16.2/Ex16_2.sce | dd10cb42995e746cfb7bba8dc1cbee07df213d3c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 416 | sce | Ex16_2.sce | clc
// initialization of variables
clear
b=10 //mm
M=1
t=50 //mm
rho=5 //mm
h=25 //mm
c=60 //mm
SF=4.0
//part (a)
S_cc=2.8
q=0.94
S_ce=1+q*(S_cc-1)
// M is not known. take it as unity
S_n=3*M*t/(2*h*(c^3-t^3))
S_e=S_ce*S_n
printf('part (a)')
printf('\n Effective stress = %.1e M',S_e)
//part (b)
S_max=172 //MPa
S_w=S_max/SF
M=S_w/S_e
printf('\n part (b)')
printf('\n M =%.1f N.m',M/10^3)
|
5bac0c9d107566e3e55fbc647c8784b9a6902cfa | 676ffceabdfe022b6381807def2ea401302430ac | /solvers/CompressibleFlowSolver/Tests/Nozzle_Quasi1D_P6.tst | ceb0a47050b3c5c6008f584c88f35e8ed6b5030d | [
"MIT"
] | permissive | mathLab/ITHACA-SEM | 3adf7a49567040398d758f4ee258276fee80065e | 065a269e3f18f2fc9d9f4abd9d47abba14d0933b | refs/heads/master | 2022-07-06T23:42:51.869689 | 2022-06-21T13:27:18 | 2022-06-21T13:27:18 | 136,485,665 | 10 | 5 | MIT | 2019-05-15T08:31:40 | 2018-06-07T14:01:54 | Makefile | UTF-8 | Scilab | false | false | 866 | tst | Nozzle_Quasi1D_P6.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>Euler, quasi 1D nozzle, stagnation inflow bc</description>
<executable>CompressibleFlowSolver</executable>
<parameters>Nozzle_Quasi1D_P6.xml</parameters>
<files>
<file description="Session File">Nozzle_Quasi1D_P6.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value variable="rho" tolerance="1e-12">3.87376</value>
<value variable="rhou" tolerance="1e-12">3.89851</value>
<value variable="E" tolerance="1e-12">790564</value>
</metric>
<metric type="Linf" id="2">
<value variable="rho" tolerance="1e-12">1.22627</value>
<value variable="rhou" tolerance="1e-12">2.95978</value>
<value variable="E" tolerance="1e-12">250372</value>
</metric>
</metrics>
</test> |
0a240443a43d4230f125fd28a3e6afc22853cad7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2534/CH4/EX4.4/Ex4_4.sce | 2612e9b13530707f201fd6166f0a53d58409f4f9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 506 | sce | Ex4_4.sce | //Ex4_4
clc
A = 4*10^-6
W = 1.5*10^-6
apsilent_r = 16//for germanium
apsilent_not = 8.85*10^-12//permitivity in vaccum
disp("A = "+string(A)+"m_sq")//cross sectional are
disp("W = "+string(W)+"m")//width of depletion layer
disp("apsient_r = "+string(apsilent_r))//relative permittivity
disp("CT = apsilent*A/W")//transition capacitance
disp(" = "+string(apsilent_r*apsilent_not*A/W)+"F")
// note: units given in textbook in the solution for cross sectional area and width are misprinted.
|
e46faf7b5df1dcebc109cc30e9095122d80d8b10 | 717ddeb7e700373742c617a95e25a2376565112c | /1340/CH6/EX6.4/6_4.sce | 0c494884e8fbc00e38e594a01cc60c8d14f9b374 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 1,051 | sce | 6_4.sce | clc;// in-built fuction routh_t can be used to generate the routh table
s = poly(0,'s');
tf = syslin('c',10/(s^5+7*s^4+6*s^3+42*s^2+8*s+56));
deno = denom(tf);
coef = coeff(deno);
routh = [coef([6,4,2]);coef([5,3,1])];
// we will get a row of all zeroes
T = routh(2,:)/7;
coef1 = coeff(T);
// auxillary polynomial s^2+6*s+8 generation
second = poly([coef1(3) 0 coef1(2) 0 coeff(1)],"s","coeff");disp(second);
aux = derivat(second);//auxillary polynomial
len = coeff(aux);
routh = [routh;len(4) len(2) 0];
disp(routh);
t = routh(2:3,1:3);
det1 = det(t(1:2,1:2))/t(2,1);
det2 = -(t(1,1)*t(2,3)-t(2,1)*t(1,3))/t(2,1);
routh = [routh;-det1 det2 0];
t1 = routh(3:4,1:2);
det3 = det(t1(1:2,1:2))/t1(2,1);
routh = [routh;-det3 0 0];
t2 = routh(4:5,1:2);
det4 = det(t2(1:2,1:2))/t2(2,1);
routh = [routh;-det4 0 0];
disp(routh)
c = 0;
for k = 1:length(coef)
if(routh(k,1)<0)
c =c +1;
end
end
if(c>=1)
printf("system is unstable")
else printf("system is stable,hence no poles in RHP")
end
|
c82cdf25d6f2c0c8e41a08af1845c218727936a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH2/EX2.4/Chapter2_Example4.sce | 3002c430c4451f6d54bb2da11c93aa3dab43d84c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,272 | sce | Chapter2_Example4.sce | //Chapter-2, Illustration 4, Page 58
//Title: Gas Power Cycles
//=============================================================================
clc
clear
//INPUT DATA
rv=9.5;//Compression ratio
P1=100;//Air pressure in kPa
T1=290;//Air temperature in K
V1=600*(10^-6);//Volume of air in m^3
T4=800;//Final temperature in K
R=287;//Universal gas constan in J/kg.K
Cv=0.718;//Specific heat at constant volume in kJ/kg.K
y=1.4;//Ratio of specific heats
//CALCULATIONS
T3=T4*(rv^(y-1));//Temperature at the end of constant volume heat addition in K
P2=P1*(rv^y);//Pressure at point 2 in kPa
T2=T1*(rv^(y-1));//Temperature at point 2 in K
P3=P2*(T3/T2);//Pressure at point 3 in kPa
m=(P1*1000*V1)/(R*T1);//Specific mass in kg/s
Q=m*Cv*(T3-T2);//Heat transferred in kJ
n=(1-(1/rv^(y-1)))*100;//Thermal efficiency
Wnet=(n*Q)/100;//Net workdone in kJ
MEP=Wnet/(V1*(1-(1/rv)));//Mean effective pressure in kPa
//OUTPUT
mprintf('Maximum pressure of the cycle is %3.2f kPa \n Maximum temperature of the cycle is %3.1f K \n Amount of heat transferred is %3.2f kJ \n Thermal efficiency is %3.1f percent \n Mean effective pressure is %3.1f kPa',P3,T3,Q,n,MEP)
//==============================END OF PROGRAM=================================
|
84c5307e98b059bb2dcc2880bd4f043f2fecd1a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3637/CH1/EX1.10/Ex1_10.sce | 95e8549a900412d918ad045ff405b56a3a6c2f14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 283 | sce | Ex1_10.sce | //Example 10 Page No: 1.86
//given
inb1=22e-6;//A
inb2=26e-6;//A
//determine input offset current input base current
i1=inb2-inb1;
i2=(inb2+inb1)/2;
format(10);
disp('Input offset current = '+string(i1*10^6)+' μA');
disp('Input base current = '+string(i2*10^6)+' μA');
|
9992989e541776dddf3c868eb94e2f03ba667b68 | 449d555969bfd7befe906877abab098c6e63a0e8 | /797/CH3/EX3.2.s/3_02_solution.sce | c487614c3b5888b587a9684709a160021058d0d2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 309 | sce | 3_02_solution.sce | //Soultion 3-02
WD=get_absolute_file_path('3_02_solution.sce');
datafile=WD+filesep()+'3_02_example.sci';
clc;
exec(datafile)
h = h / 1000; //converting height of Hg column from [mm] to [m]
P = rho * g * h; //Basic pressure eqaution [Pa]
P = P / 1000;
//result
printf("Atmospheric pressure is %1.1f kPa", P);
|
2de022afd78944079712a6c9e251156e7713f826 | 449d555969bfd7befe906877abab098c6e63a0e8 | /60/CH3/EX3.17.a/ex_17_a.sce | 37b01c0359d0c9f2b01fdad9f31d1353facd51fc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 555 | sce | ex_17_a.sce | //example(3.17)
c=[51200 0 -39712 0 7392 0 -170 0 1 ]
p8=poly(c,'x','coeff')
roots(p8)
xset('window',0);
x=-11:01:11; // defining the range of x.
deff('[y]=f(x)','y=x^8-170*x^6+7392*x^4-39712*x^2+51200'); //defining the cunction
y=feval(x,f);
a=gca();
a.y_location = "origin";
a.x_location = "origin";
plot(x,y) // instruction to plot the graph
title(' y =x^8-170*x^6+7392*x^4-39712*x^2+51200')
|
1d4d7e6528fc8bf917cb103f7d3cdcccde6e09a0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH11/EX11.10/Ch11Ex10.sce | 4533e2610106fb9e21d815744d1e4c97b5d36315 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 708 | sce | Ch11Ex10.sce | // Scilab Code Ex 11.10: Page-568 (2011)
clc;clear;
function s = sine(x)
s = x - x^3/factorial(3) + x^5/factorial(5) - x^7/factorial(7) + x^9/factorial(9);
endfunction
function s = cosine(x)
s = 1 - x^2/factorial(2) + x^4/factorial(4) - x^6/factorial(6) + x^8/factorial(8);
endfunction
k = 1; // For simplicity assume constant of proportionality to be unity, units
for theta = 1:1:45
alpha = k*cosd(theta);
b = k*sind(theta);
if alpha == b then
phi = atand(b/alpha);
break;
end
end
//printf("\nThe phase difference between electric and magentic field vectors = %4.2f rad", phi);
// Result
// The skin depth of an EM-wave in Al = 0.000010 m
|
670e44d916fddd8d0e5b31858cc4bdc65739583e | 12d519f18a15ef7423dffa1727cb877966fcf913 | /scilab/irr.sci | af2d25bdadafe934b17cfd6c2df6259d7f93450a | [] | no_license | gviolato/gviolato.github.io | e9b799bf61dd345fe06760ebc296f49f467347b7 | 190748c14c115f63e366d2244a572de08daa7e5e | refs/heads/master | 2021-01-17T15:29:43.924914 | 2017-01-25T23:33:53 | 2017-01-25T23:33:53 | 22,399,267 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,190 | sci | irr.sci | function [r, allrates] = irr(cf)
//IRR Internal rate of return.
//
// R = IRR(CF)
// [R, ALLRATES] = IRR(CF)
//
// Inputs:
// CF - A vector containing a stream of periodic cash flows. The
// first entry in CF is the initial investment. If CF is a
// matrix, each column of CF is treated as a separate cash-flow
// stream.
//
// Outputs:
// R - An internal rate of return associated to CF. If CF is a
// matrix, then R is a vector whose entry j is an internal rate
// of return for column j in CF.
//
// Optional Outputs:
// ALLRATES - A vector containing all the internal rates of return
// associated to CF. If CF is a matrix, then ALLRATES is also a
// matrix, with the same number of columns as CF, and one fewer
// row, and column j in ALLRATES contains all the rates of return
// associated to column j in CF (including complex-valued rates).
//
// Conventions:
// * If one or multiple (warning if multiple) strictly positive rates
// are found, R is set to the minimum
// * If no strictly positive rates, but one or multiple (warning if
// multiple) non-positive rates are found, R is set to the maximum
// * If no real-valued rates are found, R is set to NaN (no warnings)
//
// Examples:
//
// 1) A simple investment with a unique positive rate of return
//
// Suppose an initial investment of $100,000 is made, and the following
// cash flows represent the yearly income realized by the investment:
//
// Year 1 $10,000
// Year 2 $20,000
// Year 3 $30,000
// Year 4 $40,000
// Year 5 $50,000
//
// To calculate the internal rate of return on the investment, use
//
// r = irr([-100000 10000 20000 30000 40000 50000])
//
// which returns r = 12.01%. If the cash flow payments were monthly,
// the resulting rate of return would be multiplied by 12 for the
// annual rate of return.
//
// 2) Multiple rates of return
//
// Consider now a project with the following cash flows:
//
// CF = [-1000 6000 -10900 5800].
//
// Suppose the market rate is 10%.
// We first call IRR with a single output argument:
//
// R = irr(CF).
//
// It displays a warning ("Warning: Multiple rates of return") and
// returns a 100% rate of return. The 100% rate on the project looks
// very attractive. However, there was a warning. So call IRR again,
// but this time with two output arguments:
//
// [R, ALLRATES] = irr(CF).
//
// The rates of return (in ALLRATES) are -4.88%, 100%, and 204.88%.
// Though some of these rates are lower and some higher than the
// market rate, any of these rates can be used to get a consistent
// recommendation on the project (see [2]), but we recommend to simply
// switch to a present value analysis in these kinds of situations.
// To check the present value of the project, use PVVAR:
//
// PV = pvvar(CF,0.10).
//
// The second argument is the 10% market rate. The present value is
// -196.0932, negative, so the project is not desirable.
//
// It is strongly recommended to always complement the use of IRR with a
// present value analysis, using PVVAR. Some cash-flow streams have a
// unique positive internal rate of return, as in Example (1). However,
// all cash-flow streams have a multiplicity of rates of returns (some of
// which are negative, or complex-valued). Hazen [2] explains how any of
// these rates can be used to get a recommendation on the project that is
// consistent with the present value analysis (therefore, all rates of
// return are valid and consistent). Yet, using the present value directly
// is a simpler way to accomplish the same goal when the rates of return,
// as in Example (2), do not have a straightforward interpretation.
//
// It is good practice to always call IRR with two output arguments, and
// to check the values of all the rates of return, especially when a call
// to IRR displays a warning about multiple rates.
//
// See also MIRR, XIRR, PVVAR.
//
// References:
// [1] Brealey and Myers. Principles of Corporate Finance. Chapter 5.
// [2] Hazen, G. A New Perspective on Multiple Internal Rates of
// Return. The Engineering Economist, 2003, Vol. 48-1, pp. 31-51.
//
// Copyright 1995-2006 The MathWorks, Inc.
// $Revision: 1.8.2.5 $ $Date: 2010/10/08 16:43:29 $
oneRateOut = %T;
[rowcf,colcf] = size(cf);
if rowcf == 1
[rowcf,colcf] = size(cf');
cf = cf(:);
end
multrates = zeros(1,colcf);
r = zeros(1,colcf);
allrates = zeros(rowcf-1,colcf);
for loop = 1:colcf // loop over all cash-flow streams
coef = roots(cf($:-1:1,loop)'); // Find roots of polynomial
rates = ((1)./coef) - 1; // Compute corresponding rates
// Preferred rates are real-valued and positive
ind = find(real(rates) > 0 & abs(imag(rates)) < 1e-6);
nind = length(ind);
if (nind==1)
// One single positive rate
r(loop) = real(rates(ind));
elseif (nind > 1)
// Multiple positive rates; flag stream id and return min rate
multrates(loop) = 1;
r(loop) = min(real(rates(ind)));
else
// Get indices of any other real rates, if any (must be <= 0)
ind = find(abs(imag(rates)) < 1e-6);
nind = length(ind);
if (nind==1)
// One non-positive rate
r(loop) = real(rates(ind));
elseif (nind > 1)
// Multiple non-positive rates; flag stream id and return max rate
multrates(loop) = 1;
r(loop) = max(real(rates(ind)));
else
// No real rates; return NaN
r(loop) = NaN;
end
end
allrates(:,loop) = rates(:);
end // for loop
endfunction
|
eecf408e249240ce6fe14b7b3e0f4d0b7d632424 | 449d555969bfd7befe906877abab098c6e63a0e8 | /978/CH15/EX15.4/Example15_4.sce | 059dd5f1e118fd1a867c966789401117c01a32ef | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 260 | sce | Example15_4.sce | //chapter-15,Example15_4,pg 512
We=7.6*10^-5//speed od gyro
L=490
d=0.094
c=3*10^8
delphi=7.69*10^-5//phase shift
lam=((2*%pi*L*d*We)/(c*delphi))//wavelength of laser light
printf("wavelength of laser light\n")
printf("lam=%.11f m",lam) |
9ad4f48b2ac587bb9651ab68cfdebbd3caa7c585 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /sci2blif/io_info/io_info_rasp30.sce | 49d56db6a024b8470512d05a55854df594fc3b71 | [] | no_license | jhasler/rasp30 | 9a7c2431d56c879a18b50c2d43e487d413ceccb0 | 3612de44eaa10babd7298d2e0a7cddf4a4b761f6 | refs/heads/master | 2023-05-25T08:21:31.003675 | 2023-05-11T16:19:59 | 2023-05-11T16:19:59 | 62,917,238 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 12,043 | sce | io_info_rasp30.sce | //********** 3.0 **********
dac_loc(1,1).entries(1)= '9 0 1 #int[1]'; dac_loc(1,1).entries(2)= '2'; //DAC2
dac_loc(1,2).entries(1)= '9 0 2 #int[2]'; dac_loc(1,2).entries(2)= '3'; //DAC3
dac_loc(1,3).entries(1)= '8 0 5 #int[5]'; dac_loc(1,3).entries(2)= '0'; //DAC0
dac_loc(1,4).entries(1)= '9 0 3 #int[3]'; dac_loc(1,4).entries(2)= '4'; //DAC4
dac_loc(1,5).entries(1)= '9 0 4 #int[4]'; dac_loc(1,5).entries(2)= '5'; //DAC5
dac_loc(1,6).entries(1)= '9 0 5 #int[5]'; dac_loc(1,6).entries(2)= '6'; //DAC6
dac_loc(1,7).entries(1)= '10 0 0 #int[0]'; dac_loc(1,7).entries(2)= '7'; //DAC7
dac_loc(1,8).entries(1)= '10 0 1 #int[1]'; dac_loc(1,8).entries(2)= '8'; //DAC8
dac_loc(1,9).entries(1)= '10 0 2 #int[2]'; dac_loc(1,9).entries(2)= '9'; //DAC9
dac_loc(1,10).entries(1)= '9 0 0 #int[0]'; dac_loc(1,10).entries(2)= '1'; //DAC1
dac_loc(1,11).entries(1)= '10 0 3 #int[3]'; dac_loc(1,11).entries(2)= '10'; //DAC10
dac_loc(1,12).entries(1)= '10 0 4 #int[4]'; dac_loc(1,12).entries(2)= '11'; //DAC11
//********** 3.0 **********
dac_buf_loc(1,1).entries='10 0 5 #int[5]';
dac_buf_loc(1,2).entries='11 0 0 #int[0]';
dac_buf_loc(1,3).entries='11 0 1 #int[1]';
dac_buf_loc(1,4).entries='11 0 2 #int[2]';
//********** 3.0 **********
gpin_loc(1,1).entries(1)='13 0 1 #int[1]'; gpin_loc(1,1).entries(2)='0'; //west GPIO proc to arrat
gpin_loc(1,2).entries(1)='13 0 2 #int[2]'; gpin_loc(1,2).entries(2)='1'; //west
gpin_loc(1,3).entries(1)='13 0 3 #int[3]'; gpin_loc(1,3).entries(2)='2'; //west
gpin_loc(1,4).entries(1)='13 0 4 #int[4]'; gpin_loc(1,4).entries(2)='3'; //west
gpin_loc(1,5).entries(1)='13 0 5 #int[5]'; gpin_loc(1,5).entries(2)='4'; //west
gpin_loc(1,6).entries(1)='14 0 0 #int[0]'; gpin_loc(1,6).entries(2)='5'; //west
gpin_loc(1,7).entries(1)='14 0 1 #int[1]'; gpin_loc(1,7).entries(2)='6'; //west
gpin_loc(1,8).entries(1)='14 0 2 #int[2]'; gpin_loc(1,8).entries(2)='7'; //west
gpin_loc(1,9).entries(1)='14 0 3 #int[3]'; gpin_loc(1,9).entries(2)='8'; //west
gpin_loc(1,10).entries(1)='14 0 4 #int[4]'; gpin_loc(1,10).entries(2)='9'; //west
gpin_loc(1,11).entries(1)='14 0 5 #int[5]'; gpin_loc(1,11).entries(2)='10'; //west
gpin_loc(1,12).entries(1)='15 1 0 #int[0]'; gpin_loc(1,12).entries(2)='11'; //west
gpin_loc(1,13).entries(1)='15 1 1 #int[1]'; gpin_loc(1,13).entries(2)='12'; //west
gpin_loc(1,14).entries(1)='15 1 2 #int[2]'; gpin_loc(1,14).entries(2)='13'; //west
gpin_loc(1,15).entries(1)='15 1 3 #int[3]'; gpin_loc(1,15).entries(2)='14'; //west
gpin_loc(1,16).entries(1)='15 1 4 #int[4]'; gpin_loc(1,16).entries(2)='15'; //west
//********** 3.0 **********
adc_locin(1,1).entries='5 0 5 #int[5]'; //adc in 0
adc_locin(1,2).entries='6 0 0 #int[0]'; //adc in 1
//********** 3.0 **********
adc_loc(1,1).entries='7 0 2 #int[2]'; //adc out0 0
adc_loc(1,2).entries='7 0 1 #int[1]'; //adc out0 1
adc_loc(1,3).entries='7 0 0 #int[0]'; //adc out0 2
adc_loc(1,4).entries='6 0 5 #int[5]'; //adc out0 3
adc_loc(1,5).entries='6 0 4 #int[4]'; //adc out0 4
adc_loc(1,6).entries='6 0 3 #int[3]'; //adc out0 5
adc_loc(1,7).entries='6 0 2 #int[2]'; //adc out0 6
adc_loc(1,8).entries='6 0 1 #int[1]'; //adc out0 7
adc_loc(1,9).entries='8 0 4 #int[4]'; //adc out1 0
adc_loc(1,10).entries='8 0 3 #int[3]'; //adc out1 1
adc_loc(1,11).entries='8 0 2 #int[2]'; //adc out1 2
adc_loc(1,12).entries='8 0 1 #int[1]'; //adc out1 3
adc_loc(1,13).entries='8 0 0 #int[0]'; //adc out1 4
adc_loc(1,14).entries='7 0 5 #int[5]'; //adc out1 5
adc_loc(1,15).entries='7 0 4 #int[4]'; //adc out1 6
adc_loc(1,16).entries='7 0 3 #int[3]'; //adc out1 7
//********** 3.0 **********
iopad_loc(1,13).entries='1 0 3 #'; //west
iopad_loc(1,14).entries='2 0 3 #'; //west
iopad_loc(1,9).entries='3 0 0 #'; //west
iopad_loc(1,10).entries='3 0 3 #'; //west
iopad_loc(1,11).entries='4 0 0 #'; //west
iopad_loc(1,12).entries='4 0 3 #'; //west
iopad_loc(1,1).entries='9 0 0 #'; //west
iopad_loc(1,2).entries='11 0 0 #'; //west
iopad_loc(1,3).entries='12 0 0 #'; //west
iopad_loc(1,4).entries='12 0 3 #'; //west
iopad_loc(1,5).entries='13 0 0 #'; //west
iopad_loc(1,6).entries='13 0 3 #'; //west
iopad_loc(1,7).entries='14 0 0 #'; //west
iopad_loc(1,8).entries='14 0 3 #'; //west
iopad_loc(1,15).entries='1 15 0 #'; //east
iopad_loc(1,16).entries='1 15 3 #'; //east
iopad_loc(1,17).entries='2 15 0 #'; //east
iopad_loc(1,18).entries='2 15 3 #'; //east
iopad_loc(1,19).entries='3 15 0 #'; //east
iopad_loc(1,20).entries='9 15 3 #'; //east
iopad_loc(1,21).entries='9 15 0 #'; //east
iopad_loc(1,22).entries='10 15 3 #'; //east
iopad_loc(1,23).entries='10 15 0 #'; //east
iopad_loc(1,24).entries='11 15 3 #'; //east
iopad_loc(1,25).entries='11 15 0 #'; //east
iopad_loc(1,26).entries='12 15 0 #'; //east
iopad_loc(1,27).entries='15 1 5 #'; //south
iopad_loc(1,28).entries='15 1 2 #'; //south
iopad_loc(1,29).entries='15 2 5 #'; //south
iopad_loc(1,30).entries='15 2 2 #'; //south
iopad_loc(1,31).entries='15 3 5 #'; //south
iopad_loc(1,32).entries='15 4 2 #'; //south
iopad_loc(1,33).entries='15 11 5 #'; //south
iopad_loc(1,34).entries='15 12 2 #'; //south
iopad_loc(1,35).entries='15 12 5 #'; //south
iopad_loc(1,36).entries='15 13 2 #'; //south
iopad_loc(1,37).entries='15 13 5 #'; //south
iopad_loc(1,38).entries='15 14 2 #'; //south
iopad_loc(1,39).entries='15 14 5 #'; //south
iopad_loc(1,40).entries='13 0 1 #int[1]'; //west GPIO proc to arrat
iopad_loc(1,41).entries='13 0 2 #int[2]'; //west
iopad_loc(1,42).entries='13 0 3 #int[3]'; //west
iopad_loc(1,43).entries='13 0 4 #int[4]'; //west
iopad_loc(1,44).entries='13 0 5 #int[5]'; //west
iopad_loc(1,45).entries='14 0 0 #int[0]'; //west
iopad_loc(1,46).entries='14 0 1 #int[1]'; //west
iopad_loc(1,47).entries='14 0 2 #int[2]'; //west
iopad_loc(1,48).entries='14 0 3 #int[3]'; //west
iopad_loc(1,49).entries='14 0 4 #int[4]'; //west
iopad_loc(1,50).entries='14 0 5 #int[5]'; //west
iopad_loc(1,51).entries='15 1 0 #int[0]'; //west
iopad_loc(1,52).entries='15 1 1 #int[1]'; //west
iopad_loc(1,53).entries='15 1 2 #int[2]'; //west
iopad_loc(1,54).entries='15 1 3 #int[3]'; //west
iopad_loc(1,55).entries='15 1 4 #int[4]'; //west
iopad_loc(1,56).entries='15 1 5 #int[5]'; //south GPIO array to proc
iopad_loc(1,57).entries='15 2 0 #int[0]'; //south
iopad_loc(1,58).entries='15 2 1 #int[1]'; //south
iopad_loc(1,59).entries='15 2 2 #int[2]'; //south
iopad_loc(1,60).entries='15 2 3 #int[3]'; //south
iopad_loc(1,61).entries='15 2 4 #int[4]'; //south
iopad_loc(1,62).entries='15 2 5 #int[5]'; //south
iopad_loc(1,63).entries='15 3 0 #int[0]'; //south
iopad_loc(1,64).entries='15 3 1 #int[1]'; //south
iopad_loc(1,65).entries='15 3 2 #int[2]'; //south
iopad_loc(1,66).entries='15 3 3 #int[3]'; //south
iopad_loc(1,67).entries='15 3 4 #int[4]'; //south
iopad_loc(1,68).entries='15 3 5 #int[5]'; //south
iopad_loc(1,69).entries='15 4 0 #int[0]'; //south
iopad_loc(1,70).entries='15 4 1 #int[1]'; //south
iopad_loc(1,71).entries='15 4 2 #int[2]'; //south
iopad_loc(1,72).entries='15 12 5 #int[5]'; //Vg _array_gate sel
iopad_loc(1,73).entries='0 11 2 #int[2]'; //Vg _array_gate sel
iopad_loc(1,74).entries='9 15 3 #int[3]'; //east Analog_memory_Vout<0>
iopad_loc(1,75).entries='0 12 5 #int[5]'; //north Analog_memory_pbias<0>
iopad_loc(1,76).entries='4 15 1 #int[1]'; //east Analog_memory_nbias<0>
iopad_loc(1,77).entries='14 15 5 #int[5]'; //east mem_in<0>
iopad_loc(1,78).entries='15 11 4 #int[4]'; //south am clk
iopad_loc(1,79).entries='0 6 4 #int[4]'; //north barrel_shiftter_out<0>
iopad_loc(1,80).entries='0 6 3 #int[3]'; //north barrel_shiftter_out<0>
iopad_loc(1,81).entries='0 6 2 #int[2]'; //north barrel_shiftter_out<0>
iopad_loc(1,82).entries='0 6 1 #int[1]'; //north barrel_shiftter_out<0>
iopad_loc(1,83).entries='0 6 0 #int[0]'; //north barrel_shiftter_out<0>
iopad_loc(1,84).entries='0 5 5 #int[5]'; //north barrel_shiftter_out<0>
iopad_loc(1,85).entries='0 5 4 #int[4]'; //north barrel_shiftter_out<0>
iopad_loc(1,86).entries='0 5 3 #int[3]'; //north barrel_shiftter_out<0>
iopad_loc(1,87).entries='0 5 2 #int[2]'; //north barrel_shiftter_out<0>
iopad_loc(1,88).entries='0 5 1 #int[1]'; //north barrel_shiftter_out<0>
iopad_loc(1,89).entries='0 5 0 #int[0]'; //north barrel_shiftter_out<0>
iopad_loc(1,90).entries='0 4 5 #int[5]'; //north barrel_shiftter_out<0>
iopad_loc(1,91).entries='0 4 4 #int[4]'; //north barrel_shiftter_out<0>
iopad_loc(1,92).entries='0 4 3 #int[3]'; //north barrel_shiftter_out<0>
iopad_loc(1,93).entries='0 4 2 #int[2]'; //north barrel_shiftter_out<0>
iopad_loc(1,94).entries='0 4 1 #int[1]'; //north barrel_shiftter_out<0>
iopad_loc(1,95).entries='0 4 0 #int[0]'; //north barrel_shiftter_out<0>
iopad_loc(1,96).entries='0 3 5 #int[5]'; //north barrel_shiftter_out<0>
iopad_loc(1,97).entries='0 3 4 #int[4]'; //north barrel_shiftter_out<0>
iopad_loc(1,98).entries='0 3 3 #int[3]'; //north barrel_shiftter_out<0>
iopad_loc(1,99).entries='0 3 2 #int[2]'; //north barrel_shiftter_out<0>
iopad_loc(1,100).entries='0 3 1 #int[1]'; //north barrel_shiftter_out<0>
iopad_loc(1,101).entries='0 3 0 #int[0]'; //north barrel_shiftter_out<0>
iopad_loc(1,102).entries='0 2 5 #int[5]'; //north barrel_shiftter_out<0>
iopad_loc(1,103).entries='0 2 4 #int[4]'; //north barrel_shiftter_out<0>
iopad_loc(1,104).entries='0 2 3 #int[3]'; //north barrel_shiftter_out<0>
iopad_loc(1,105).entries='0 2 2 #int[2]'; //north barrel_shiftter_out<0>
iopad_loc(1,106).entries='0 2 1 #int[1]'; //north barrel_shiftter_out<0>
iopad_loc(1,107).entries='0 2 0 #int[0]'; //north barrel_shiftter_out<0>
iopad_loc(1,108).entries='0 1 5 #int[5]'; //north barrel_shiftter_out<0>
iopad_loc(1,109).entries='0 1 4 #int[4]'; //north barrel_shiftter_out<0>
iopad_loc(1,110).entries='0 1 3 #int[3]'; //north barrel_shiftter_out<31>
iopad_loc(1,111).entries='0 1 2 #int[2]'; //north barrel_shiftter_in<0>
iopad_loc(1,112).entries='0 1 1 #int[1]'; //north barrel_shiftter_in<0>
iopad_loc(1,113).entries='0 1 0 #int[0]'; //north barrel_shiftter_in<0>
iopad_loc(1,114).entries='1 0 0 #int[0]'; //east barrel_shiftter_in<0>
iopad_loc(1,115).entries='1 0 1 #int[1]'; //east barrel_shiftter_in<0>
iopad_loc(1,116).entries='1 0 2 #int[2]'; //east barrel_shiftter_in<0>
iopad_loc(1,117).entries='1 0 3 #int[3]'; //east barrel_shiftter_in<0>
iopad_loc(1,118).entries='1 0 4 #int[4]'; //east barrel_shiftter_in<0>
iopad_loc(1,119).entries='1 0 5 #int[5]'; //east barrel_shiftter_in<0>
iopad_loc(1,120).entries='2 0 0 #int[0]'; //east barrel_shiftter_in<0>
iopad_loc(1,121).entries='2 0 1 #int[1]'; //east barrel_shiftter_in<0>
iopad_loc(1,122).entries='2 0 2 #int[2]'; //east barrel_shiftter_in<0>
iopad_loc(1,123).entries='2 0 3 #int[3]'; //east barrel_shiftter_in<0>
iopad_loc(1,124).entries='2 0 4 #int[4]'; //east barrel_shiftter_in<0>
iopad_loc(1,125).entries='2 0 5 #int[5]'; //east barrel_shiftter_in<0>
iopad_loc(1,126).entries='3 0 0 #int[0]'; //east barrel_shiftter_in<0>
iopad_loc(1,127).entries='3 0 1 #int[1]'; //east barrel_shiftter_in<0>
iopad_loc(1,128).entries='3 0 2 #int[2]'; //east barrel_shiftter_in<0>
iopad_loc(1,129).entries='3 0 3 #int[3]'; //east barrel_shiftter_in<0>
iopad_loc(1,130).entries='3 0 4 #int[4]'; //east barrel_shiftter_in<0>
iopad_loc(1,131).entries='3 0 5 #int[5]'; //east barrel_shiftter_in<0>
iopad_loc(1,132).entries='4 0 0 #int[0]'; //east barrel_shiftter_in<0>
iopad_loc(1,133).entries='4 0 1 #int[1]'; //east barrel_shiftter_in<0>
iopad_loc(1,134).entries='4 0 2 #int[2]'; //east barrel_shiftter_in<0>
iopad_loc(1,135).entries='4 0 3 #int[3]'; //east barrel_shiftter_in<0>
iopad_loc(1,136).entries='4 0 4 #int[4]'; //east barrel_shiftter_in<0>
iopad_loc(1,137).entries='4 0 5 #int[5]'; //east barrel_shiftter_in<0>
iopad_loc(1,138).entries='5 0 0 #int[0]'; //east barrel_shiftter_in<0>
iopad_loc(1,139).entries='5 0 1 #int[1]'; //east barrel_shiftter_in<0>
iopad_loc(1,140).entries='5 0 2 #int[2]'; //east barrel_shiftter_in<0>
iopad_loc(1,141).entries='5 0 3 #int[3]'; //east barrel_shiftter_in<0>
iopad_loc(1,142).entries='5 0 4 #int[4]'; //east barrel_shiftter_in<0>
iopad_loc(1,143).entries='13 0 0 #int[0]'; //east dco_clk
|
ce4b4be827e4dd96cd679a9abcb44b4cdb1389e9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1484/CH3/EX3.2/3_2.sce | f67cd83083162962b1a3deb0765945ec2ee2a182 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 3_2.sce | clc
//initialisation of variables
d1= 4 //ft
d2= 2 //ft
h1= 50 //ft
h2= 45 //ft
g= 32.2 //ft/sec^2
//CALCULATIONS
r= (d1^2/d2^2)
v1= sqrt((h1-h2)*2*g/(r^2-1))
Q= v1*%pi*d1^2/4
//RESULTS
printf ('discharge through pipe= %.2f cubic feet per second ',Q)
|
2f446d9e31e5ebf4ac6f1603f608ab808ddc494b | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH10/EX10.4/example10_4.sce | 8489968237c929bc4a5ab9459ac09fe6253ba11c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 629 | sce | example10_4.sce | //clc()
Nflue = 100;//kmoles
NCO2 = 9.05;
NCO = 1.34;
NO2 = 9.98;
NN2 = 79.63;
PCO2F = 9.2;//% ( Feed )
PCOF = 21.3;//%
PH2F = 18;//%
PCH4F = 2.5;//%
PN2F = 49;//%
//Taking carbon balance,
F = (NCO2 + NCO )/ ( (PCO2F + PCOF + PCH4F)/100);
//Nitrogen balance gives,
Nair = (NN2 - F*PN2F/(100) )* 100 / 79;
R = Nair/F;
disp(R,"(a)molar Ratio of air to fuel = ")
Oexcess = NO2 - NCO / 2;
Pexcess = Oexcess *100/ (Nair*21/100 - Oexcess);
disp("%",Pexcess,"(b)Percent excess of air = ")
NN2F = F * PN2F / 100;
PN2F = NN2F *100/ NN2;
disp("%",PN2F,"(c)Percent of nitrogen in the flue gas that came from fuel = ") |
73661a38ea6b4cfd30e6cd5b16ae407b94065605 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3710/DEPENDENCIES/fpround.sci | 8aaf5b57d5012c4d5abfc353aed6b057bff3a50a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 132 | sci | fpround.sci | // Function to round a floating point number x to n decimal places
function [f]= fpround(x,n)
f=round(x*10^n)/10^n;
endfunction
|
79c21721c52006376f14c3abaae435417ce02a37 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/macros/percent/%log2for.sci | e4919414d59177171f43543033b61204b11da198 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 232 | sci | %log2for.sci | //[stk,nwrk,txt,top]=%log2for(nwrk)
//
//!
txt=[]
iop=evstr(op(2))
s2=stk(top);s1=stk(top-1);top=top-1
if s2(2)='2' then s2(1)='('+s2(1)+')',end
if s1(2)='2' then s1(1)='('+s1(1)+')',end
stk=list(s1(1)+ops(iop,1)+s2(1),'1')
//end
|
e3e7af9cda528d0a697136048fca6d0fa6502bae | 449d555969bfd7befe906877abab098c6e63a0e8 | /2966/CH1/EX1.72/1_72.sce | d22c3667dc9e587ab04e168a76dd507a1242c31a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 489 | sce | 1_72.sce | //water//
//page 1.90 example 5//
clc
volume_hardwater=15000//in litres//
volume_NaCl=120//Volume of NaCl in litres//
Wt_per_Litre=30//% NaCl consumed by zeolite bed//
total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed//
CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)//
H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)//
Hardness=H*1000//Hardness of water(mg/lit) or ppm//
printf("\nHardness of water sample is %.1f ppm",Hardness); |
4d1109d70e78ad726c0e1cfa111ae3be7c0fb742 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH9/EX9.5/Ex9_5.sce | 4daefea05036af77586f2cb186308eb4e4482c58 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,414 | sce | Ex9_5.sce | clc
Psat = 3.973 // Saturation pressure in MPa
vf = 0.0012512 // specific volume of fluid in m^3/kg
vg = 0.05013 // Specific volume of gas in m^3/kg
hf = 1085.36 // Specific enthalpy of fluid in kJ/kg
hfg = 1716.2 // Latent heat of vaporization in kJ/kg
sf = 2.7927 // Specific entropy of fluid in kJ/kgK
sfg = 3.2802 // Entropy change due to vaporization in kJ/kgK
mf = 9 // Mass of liquid in kg
V = 0.04 // Volume of vessel in m^3
// at T = 250
uf = 1080.39 //Specific internal energy in kJ/kg
ufg = 1522// Change in internal energy due to vaporization in kJ/kg
printf("\n Example 9.5")
Vf = mf*vf // volume of fluid
Vg = V-Vf // volume of gas
mg = Vg/vg // mass of gas
m = mf+mg // mass if mixture
x = mg/m // quality of steam
v = vf+x*(vg-vf) // specific volume of mixture
h = hf+x*hfg // enthalpy of mixture
s = sf+(x*sfg) // entropy of mixture
u = h-Psat*1e6*v*1e-03 // Internal energy of mixture
u_ = uf+x*ufg // Internal energy at 250 degree Celsius
printf("\n The pressure is %f MPa",Psat)
printf("\n The total mass of mixture is %f kg",m)
printf("\n Specific volume is %f m3/kg",v)
printf("\n Enthalpy is is %f kJ/kg",h)
printf("\n The entropy is %f kJ/kg K",s)
printf("\n The internal energy is %f kJ/kg",u)
printf("\n At 250 degree Celsius, internal energy is %fkJ/kg",u_) //The answer provided in the textbook is wrong
//The answers vary due to round off error
|
c703fbc1b93b554d5f24179df2df08601d730143 | 1db0a7f58e484c067efa384b541cecee64d190ab | /macros/rceps.sci | 8b4d89ac284f37d2a87a8dd3b463b8d273bbaa43 | [] | no_license | sonusharma55/Signal-Toolbox | 3eff678d177633ee8aadca7fb9782b8bd7c2f1ce | 89bfeffefc89137fe3c266d3a3e746a749bbc1e9 | refs/heads/master | 2020-03-22T21:37:22.593805 | 2018-07-12T12:35:54 | 2018-07-12T12:35:54 | 140,701,211 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,045 | sci | rceps.sci | function [y, xm]= rceps(x)
//Produce the cepstrum of the signal x, and if desired, the minimum phase reconstruction of the signal x.
//Calling Sequence
//[y, xm] = rceps(x)
//Parameters
//x: real or complex vector input
//Produce the cepstrum of the signal x, and if desired, the minimum phase reconstruction of the signal x. If x is a matrix, do so for each column of the matrix.
//Examples
// f0 = 70; Fs = 10000; # 100 Hz fundamental, 10kHz sampling rate
// a = poly (0.985 * exp (1i*pi*[0.1, -0.1, 0.3, -0.3])); # two formants
// s = 0.005 * randn (1024, 1); # Noise excitation signal
// s(1:Fs/f0:length(s)) = 1; # Impulse glottal wave
// x = filter (1, a, s); # Speech signal in x
// [y, xm] = rceps (x .* hanning (1024)); # cepstrum and min phase reconstruction
funcprot(0)
lhs= argn(1)
rhs= argn(2)
if(rhs <1 | rhs> 1 )
error("Wrong number of Input Arguments");
end
if(lhs<2 | lhs>2)
error("Wrong number of Output Arguments")
end
[y,xm]= callOctave("rceps",x);
endfunction
|
c5f41c9cf9a2d9a03b2df0a2d07eed8ddd207275 | b80969c9d72c732b0153d0de2b8fd28dc10d8a16 | /Biologie/Site/sauvegarde/28.07.2016/www/Documents/simulation/equationDifferentielle/chapitre4/revision.sce | 770962b673551ac3f6f9602c74b6eea560713209 | [] | no_license | adamdepossylux/stem_cells | 6a2596a0734e3604b570cfdaa1e6cb798d13d7b7 | e1ffdf24a223fea3a3606a0bd262067edc81f5b9 | refs/heads/master | 2020-04-01T17:26:21.772875 | 2017-05-10T15:15:09 | 2017-05-10T15:15:09 | 61,795,551 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 599 | sce | revision.sce | N=100000;
clf
x=rand(1,N);
u=1+4*rand(1,N);
mu=sum(u)/N
mu1=mean(u)
clf
x=-2+4*rand(1,N);
y=-2+4*rand(1,N);
plot(x,u,".")
clf
x=-2+4*rand(1,N);
y=-2+4*rand(1,N);
I=find((x.^2+y.^2)<=1);
plot(x(I),y(I),".")
//find retourne le vecteur des indices i pour lesquels x(i) est "vrai"
clf
x=-2+4*rand(1,N);
y=-2+4*rand(1,N);
I=find((x.^2+y.^2)<=1);
pi=(length(I)/N)*16
clf
x=rand(1,N);
y=rand(1,N);
a=min(x,y);
b=max(x,y)-min(x,y);
c=1-max(x,y);
I=find(a+b>c & a+c>b & b+c>a);
p=length(I)/N
plot(x(I),y(I),".")
clf
x=ceil(rand(1,N)*6);
mx=mean(x)
mx1=sum(x)/N
mx2=cumsum(x)./[1:N];
plot([1:N],mx2)
|
a6e37fb010db39261558214ddcb18b34a91dcd8d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3648/CH7/EX7.5/Ex7_5.sce | 2ad5a181b7f6eb0d189c24decdaf16cbf8ae6c58 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 469 | sce | Ex7_5.sce | //Example 7_5
clc();
clear;
//To find the angular acceleration and angular velocity of one wheel
vtf=20 //units in meters/sec
r=0.4 //units in meters
wf=vtf/r //units in rad/sec
vf=20 //units in meters/sec
v0=0 //units in meters/sec^2
t=9 //units in sec
a=(vf-v0)/t //units in meters/sec^2
alpha=a/r //units in rad/sec^2
printf("Angular accelertion is a=%.2f meters/sec^2\n",a)
printf("Angular velocity is alpha=%.2f rad/sec^2",alpha)
|
0a162ef2d4d65a31c67459b19e7a168775000b57 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2912/CH10/EX10.6/Ex10_6.sce | 97ab27deb8e46a57753af41d8d43a7d17c6164a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 496 | sce | Ex10_6.sce | // chapter 10
// example 10.6
// calculate frequency of EM waves
// page 314
clear;
clc;
// given
V=8.50; // in micro V (voltage across Josephson junction )
e=1.6E-19; // in C (charge of electron)
h=6.626E-34; // in J/s (Planck’s constant)
//calculate
V=V*1E-6; // changing unit from V to microVolt
v=2*e*V/h; // calculation of frequency of EM waves
printf('\nThe frequency of EM waves is \tv=%1.3E Hz',v);
// Note: the answer in the book is wrong due to calculation misatke
|
6d27082c5e5e098fdc80e2b6fad4e83e0a3aa974 | 717ddeb7e700373742c617a95e25a2376565112c | /608/CH21/EX21.21/21_21.sce | 2cc2c0368eb6fa3b3623c8e27fb8d4cea2bef108 | [] | 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 | 919 | sce | 21_21.sce | //Problem 21.21: A 200 V, d.c. shunt-wound motor has an armature resistance of 0.4 ohm and at a certain load has an armature current of 30 A and runs at 1350 rev/min. If the load on the shaft of the motor is increased so that the armature current increases to 45 A, determine the speed of the motor, assuming the flux remains constant.
//initializing the variables:
Ia1 = 30; // in Amperes
Ia2 = 45; // in Amperes
Ra = 0.4; // in ohm
n1 = 1350/60; // in Rev/sec
V = 200; // in Volts
//calculation:
//The relationship E proportional to (Phi*n) applies to both generators and motors. For a motor,
//E = V - (Ia*Ra)
E1 = V - (Ia1*Ra)
E2 = V - (Ia2*Ra)
//The relationship, E1/E2 = Phi1*n1/Phi2*n2, applies to both generators and motors. Since the flux is constant, Phi1 = Phi2
Phi2 = Phi1
n2 = E2*Phi1*n1/(Phi2*E1)
printf("\n\n Result \n\n")
printf("\n the speed of the motor is %.2f rev/sec ",n2) |
fe5fef8fc6256f515253fccdc0776b4946a15443 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1955/CH9/EX9.12/example12.sce | 70856897e3c04fb72dfca5169cbf6a31eca6eee5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,594 | sce | example12.sce | clc
clear
//input data
P=330//Power output from the turbine is kW
H=70//Head of operating turbine in m
N=750//Speed of the turbine in rpm
nH=0.94//Hydraulic efficiency
n0=0.85//Overall efficiency
FR=0.15//Flow ratio
BR=0.1//Breadth ratio
D1D2=2//Ratio inner and outer diameter of runner
g=9.81//Acceleration due to gravity in m/s^2
dw=1000//Density of water in kg/m^3
//calculations
Cr1=FR*(2*g*H)^(1/2)//Flow velocity at inlet in m/s
Q=(P*10^3)/(dw*g*H*n0)//Discharge at outlet in m^3/s
D1=(Q/(nH*3.1415*BR*Cr1))^(1/2)//Runner inlet diameter in m
b1=BR*D1//Height of the runner vanes at inlet in m
U1=(3.1415*D1*N)/60//Runner tip speed at inlet in m/s
Cx1=(nH*g*H)/(U1)//Velocity of whirl at inlet in m/s
a11=atand(Cr1/Cx1)//Guide blade angle in degree
b11=atand(Cr1/(Cx1-U1))//Runner vane angle at inlet in degree
D2=D1/D1D2//Runner outlet diameter in m
U2=(3.1415*D2*N)/60//Runner tip speed at outlet in m/s
Cr2=Cr1//Flow velocity at outlet in m/s
b22=atand(Cr2/U2)//Runner vane angle at outlet in degree
b2=D1*b1/D2//Width at outlet in m
//output
printf('(a)Flow velocity at inlet is %3.2f m/s\n(b)Discharge at outlet is %3.3f m^3/s\n(c)Runner inlet diameter is %3.3f m\n(d)Height of the runner vanes at inlet is %3.4f m\n(e)Guide blade angle is %3.2f degree\n(f) Runner vane angle at inlet is %3.2f degree\n Runner vane angle at outlet is %3.2f degree\n(g)Runner outlet diameter is %3.4f m\n(h)Width at outlet is %3.4f m\n(i)Runner tip speed at inlet is %3.2f m/s\n(j)Velocity of whirl at inlet is %3.f m/s',Cr1,Q,D1,b1,a11,b11,b22,D2,b2,U1,Cx1)
|
ed4f1383e7fe34da9110f1bb7122cd8fc485d5b6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3269/CH2/EX2.13/Ex2_13.sce | cb61ce2541fca7d504ef65b956ffa6d37e3f4513 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 641 | sce | Ex2_13.sce | // Example 2.13
clear all;
clc;
// Given data
rho_NaCl = 2.17; // Density of Sodium Chloride(NaCl) in gram/cm^3
// From standard data table
NA = 0.6022*10^24; // Avogodro number
M_Na = 22.99; // Atomic weight of Sodium(Na)
M_Cl = 35.453; // Atomic weight of Chlorine(Cl)
M_NaCl = M_Na+M_Cl; // Molecular weight of Sodium Chloride(NaCl)
// Calculation
N = rho_NaCl*NA/M_NaCl;
// As in NaCl, there is one atom of Na and Cl
N_Na = N;
N_Cl = N;
// Result
printf(" Atom density of Sodium and Chlorine = %5.4E molecules/cm^3 \n",N);
|
9b57129312eaf8c0c004d6434fe255beedb07d2b | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/macros/scicos/c_pass2.sci | 18ad75561e17008e491eed0ba705e41aae69ff22 | [
"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 | 32,379 | sci | c_pass2.sci | function cpr=c_pass2(bllst,connectmat,clkconnect,cor,corinv)
// cor ; correspondance table with initial block ordering
//
// bllst: list with nblk elts where nblk denotes number of blocks.
// Each element must be a list with 12 elements:
// 1- function name (in string form if fortran routine)
// 2- vector of number of inputs
// 3- vector of number of ouputs
// 4- vector of number of clock inputs
// 5- vector of number of clock outputs
// 6- vector (column) of continuous initial condition
// 7- vector (column) of discrete initial condition
// 8- vector (column) of real parameters
// 9- vector (column) of integer parameters
// 10- string: 'z' if zero-crossing,
// 'l' logical
// 11- vector of size <number of clock outputs> including
// preprogrammed event firing times (<0 if no firing)
// or [for backward compatibility]
// boolean vector: i-th entry %t if initially output is fired
// 12- boolean vector (1x2): 1st entry for dependence on u, 2nd on t
//
// connectmat: nx4 matrix. Each row contains, in order, the block
// number and the port number of an outgoing scicopath,
// and the block number and the port number of the target
// ingoing scicopath.
//
// clkconnect: same as connectmat but for clock scicopaths.
//
// define some constants
// Copyright INRIA
show_trace=%f
if show_trace then disp('c_pass1:'+string(timer())),end
if bllst==list() then
message(['No block can be activated'])
cpr=list()
ok=%f;
return
end
clkptr=1,cliptr=1,typ_l=[],dep_ut=[]
nblk=size(bllst)
//take care of the heritage
[bllst,inplnk,outlnk,clkptr,cliptr,inpptr,outptr,..
dep_ut,typ_l,typ_r,typ_m,tblock,typ_cons,ok]=mini_extract_info(bllst,..
connectmat,clkconnect)
if show_trace then disp('c_pass20:'+string(timer())),end
//if ~ok then
// heritage block !
[outoin,outoinptr]=conn_mat(inpptr,outptr,inplnk,outlnk)
[clkconnect,exe_cons]=pak_ersi(connectmat,clkconnect,dep_ut,typ_r,..
typ_l,outoin,outoinptr,tblock,typ_cons,clkptr)
//end
if show_trace then disp('c_pass21:'+string(timer())),end
done=%f
while ~done
//replace all synchro (l) blocks recursively
[clkptr,cliptr,typ_l,dep_ut,typ_m]=make_ptr(bllst,clkptr,cliptr,typ_l,..
dep_ut,typ_m)
if show_trace then disp('c_pass3001:'+string(timer())),end
clkconnect=cleanup(clkconnect)
if show_trace then disp('c_pass3011:'+string(timer())),end
[ok,done,bllst,connectmat,clkconnect,typ_l,typ_m,corinv]=paksazi(bllst,..
connectmat,clkconnect,corinv,clkptr,cliptr,typ_l,typ_m,dep_ut)
if show_trace then disp('c_pass300011:'+string(timer())),end
if ~ok then
cpr=list()
return
end
end
if show_trace then disp('c_pass31:'+string(timer())),end
//extract various info from bllst
[lnkptr,inplnk,outlnk,clkptr,cliptr,inpptr,outptr,..
xptr,zptr,rpptr,ipptr,xc0,xd0,rpar,ipar,dep_ut,..
typ_z,typ_s,typ_x,typ_m,funs,funtyp,initexe,labels,..
bexe,boptr,blnk,blptr,ok]=extract_info(bllst,..
connectmat,clkconnect)
if ~ok then
cpr=list()
return,
end
if ~or(typ_x) & or(typ_z) then
message(['For using treshold, you need to have'
'a continuous system with state in your diagram.';
'You can include DUMMY CLSS block (linear palette)'
'in your diagram.']);
cpr=list()
ok=%f;
return
end
if show_trace then disp('c_pass41:'+string(timer())),end
//form a matrix which gives destinations of each block
[outoin,outoinptr]=conn_mat(inpptr,outptr,inplnk,outlnk)
[evoutoin,evoutoinptr]=synch_clkconnect(typ_s,clkconnect)
//
if show_trace then disp('c_pass50:'+string(timer())),end
//
// discard duplicate calls to the same block port
// and group calls to different ports of the same block
// to compute execution table and its pointer.
[ordptr1,execlk,execlk0,execlk_cons]=..
discard(clkptr,cliptr,clkconnect,exe_cons)
clkconnect=[];exe_cons=[]
if show_trace then disp('c_pass501:'+string(timer())),end
// Set execution scheduling tables
[ordptr,ordclk,cord,iord,oord,zord,critev,ok]=scheduler(inpptr,..
outptr,clkptr,execlk,execlk0,execlk_cons,ordptr1,outoin,outoinptr,..
evoutoin,evoutoinptr,typ_z,typ_x,typ_s,bexe,boptr,blnk,blptr);
if ~ok then
cpr=list()
return,
end
if show_trace then disp('c_pass51:'+string(timer())),end
//form scicos arguments
izptr=ones(nblk+1,1)
ztyp=0*ones(typ_z)
ztyp(typ_z)=1
simtp=['scs','funs','xptr','zptr','izptr','inpptr','outptr','inplnk',..
'outlnk','lnkptr','rpar','rpptr',..
'ipar','ipptr','clkptr','ordptr','execlk','ordclk','cord','oord',..
'zord','critev','nb','nblk','ztyp','ndcblk','subscr','funtyp',..
'iord','labels']
subscr=[]
ncblk=0;nxblk=0;ndblk=0;ndcblk=0;
sim=tlist(simtp,funs,xptr,zptr,izptr,..
inpptr,outptr,inplnk,outlnk,..
lnkptr,rpar,rpptr,ipar,ipptr,clkptr,..
ordptr,execlk,ordclk,cord,oord,zord,..
critev(:),size(typ_z,'*'),ztyp,nblk,ndcblk,subscr,funtyp,iord,labels);
//initialize agenda
[tevts,evtspt,pointi]=init_agenda(initexe,clkptr)
if show_trace then disp('c_pass61:'+string(timer())),end
statetp=['xcs','x','z','iz','tevts','evtspt','pointi','outtb']
outtb=0*ones(lnkptr($)-1,1)
iz0=[]
state=tlist(statetp,xc0,xd0,iz0,tevts,evtspt,pointi,outtb);
cpr=list(state,sim,cor,corinv)
if show_trace then disp('c_pass71:'+string(timer())),end
/////////////////////////////////////////////////////////////////////
function [ordptr2,ordclk,cord,iord,oord,zord,critev,ok]=..
scheduler(inpptr,..
outptr,clkptr,execlk,execlk0,execlk_cons,ordptr1,outoin,outoinptr,..
evoutoin,evoutoinptr,typ_z,typ_x,typ_s,bexe,boptr,blnk,blptr);
//
nblk=size(typ_x,1)
if execlk0<>[] then
//compute cord
t_var_blk=execlk0(:,1)
wec=zeros(1,nblk)
wec(t_var_blk')=execlk0(:,2)'
vec=-ones(1,nblk)
vec(t_var_blk)=0*t_var_blk' // time varying blocks
[r,ok]=new_tree2(vec,outoin,outoinptr,dep_ut)
cord=[r,wec(r)']
else
cord=[]
end
//
//compute iord
if execlk_cons<>[] then
vec=-ones(1,nblk)
no_tu_dep=execlk_cons(:,1)
wec=zeros(1,nblk)
wec(no_tu_dep')=execlk_cons(:,2)'
vec(no_tu_dep)=0*no_tu_dep'
[r,ok]=new_tree2(vec,outoin,outoinptr,dep_ut)
iord=[r,wec(r)']
else
iord=[]
end
//
if ~ok then
message('Algebraic loop detected; cannot be compiled.');
ordptr2=[],ordclk=[],cord=[],iord=[],oord=[],zord=[],critev=[]
return,
end
ordclk=[]
ordptr2=ordptr1
for o=1:clkptr(nblk+1)-1
vec=-ones(1,nblk);
wec=zeros(1,nblk);
vec(execlk(ordptr1(o):ordptr1(o+1)-1,1)')=..
zeros(execlk(ordptr1(o):ordptr1(o+1)-1,1))';
wec(execlk(ordptr1(o):ordptr1(o+1)-1,1)')=..
execlk(ordptr1(o):ordptr1(o+1)-1,2)';
[r,ok]=new_tree2(vec,outoin,outoinptr,dep_ut)
if ~ok then
message('Algebraic loop detected; cannot be compiled.');
ordptr2=[],ordclk=[],cord=[],iord=[],oord=[],zord=[],critev=[]
return,
end
//
r=[r,wec(r)']
ordptr2(1+o)=size(r,1)+ordptr2(o)
ordclk=[ordclk;r]
end
if ordptr1<>ordptr2 then disp("serious bug,report");pause;end
//ordptr=[ordptr1,ordptr2];
zord=cord
oord=cord
n=size(cord,1)
vec=-ones(1,nblk);
vec(cord(:,1))=0;
// [ext_cord,ok]=new_tree3(vec,dep_ut,typ_s);
typp=zeros(typ_s);typp(typ_s)=1
[ext_cord,ok]=new_tree3(vec,dep_ut,typp);
if ~ok then disp('serious bug, report.');pause;end
ext_cord=ext_cord(n+1:$);
for iii=n:-1:1
i=cord(iii,1)
fl=%f
fz=%f
// if typ_s(i) then fz=%t;fl=%t; end
for ii=[outoin(outoinptr(i):outoinptr(i+1)-1,1)',..
evoutoin(evoutoinptr(i):evoutoinptr(i+1)-1,1)']
//ii est un block affecte par changement de sortie du
//i-eme block de oord
// if ii<=nxblk | ii>nb then fz=%t;end
if typ_z(ii) then fz=%t;end
if typ_x(ii) then fl=%t;end
if fl&fz then break,end
//si ii est un block integre (continu avec etat)
//il faut garder i
// for l=iii+1:n
//si ii est un block qu'on a decide de garder
//il faut garder i
if or(ii==[zord(iii+1:$,1)',ext_cord]) then fz=%t; end
if or(ii==[oord(iii+1:$,1)',ext_cord]) then fl=%t; end
// if fl&fz then break,end
// end
if fl&fz then break; end
end
//mettre a zero si block doit etre supprimer
if ~fl&~typ_x(i) then oord(iii,1)=0; end
if ~fz&~typ_z(i) then zord(iii,1)=0; end
end
//supprimer les blocks a supprimer
oord=oord(oord(:,1)<>zeros(oord(:,1)),:);
zord=zord(zord(:,1)<>zeros(zord(:,1)),:)
//critev: vecteur indiquant si evenement est important pour tcrit
//ordclk_fut et ordptr3 sont l'analogue de ordclk et ordptr2 sauf
//pour le fait que la dependance en temps n'est pas pris en compte.
//Donc les blocks indiques sont des blocks susceptibles de produire
//des discontinuites quand l'evenement se produit
// 1: important; 0:non
n=clkptr(nblk+1)-1 //nb d'evenement
//a priori tous les evenemets sont non-importants
critev=zeros(n,1)
for i=1:n
fl=%f
for hh=ordptr1(i):ordptr1(i+1)-1
jj= ordclk(hh,1) //block excite par evenement i
if ~(ordclk(hh,2)==0) then
for ii=[outoin(outoinptr(jj):outoinptr(jj+1)-1,1)',..
evoutoin(evoutoinptr(jj):evoutoinptr(jj+1)-1,1)']
//block excite par block excite par evenement i
//si il est integre, i est important
if typ_x(ii) | typ_z(ii) then fl=%t;break; end
end
end
if fl then break;end
end
if fl then critev(i,1)=1; end
end
function [ord,ok]=tree3(vec,dep_ut,typ_l)
//compute blocks execution tree
ok=%t
nb=size(vec,'*')
for j=1:nb+2
fini=%t
for i=1:nb
if vec(i)==j-1&typ_l(i)<>-1 then
if j==nb+2 then
message('algebraic loop detected');ok=%f;ord=[];return;
end
if typ_l(i)==1 then
fini=%f;
kk=bexe(boptr(i):boptr(i+1)-1)';
else
kk=[];
for ii=blnk(blptr(i):blptr(i+1)-1)'
if vec(ii)>-1 & (dep_ut(ii,1) | (typ_l(ii)==1)) then
fini=%f;
kk=[kk ii];
end
end
end
vec(kk)=j*ones(kk) ; //disp(vec)
end
end
if fini then break;end
end
[k,ord]=sort(-vec);
ord(find(k==1))=[];
function [okk,done,bllst,connectmat,clkconnect,typ_l,typ_m,corinv]=..
paksazi(bllst,connectmat,clkconnect,corinv,clkptr,cliptr,..
typ_l,typ_m,dep_ut)
okk=%t
nblk=length(bllst)
nblkorg=nblk
if ~or(typ_l) then
done=%t;
return
end
change=%f
for lb=find(typ_l)
indx=find(clkconnect(:,3)==lb)
if indx==[] then
message(['A synchro block is inactive';'cannot be compile']);
okk=%f;return
end
if or(clkconnect(indx,1)==lb) then
message(['Algebraic loop detected';'on activation links']);
okk=%f;return
end
nn=size(indx,'*')
if nn>=2 then
indxo=find(clkconnect(:,1)==lb)
indy=find(connectmat(:,3)==lb)
if size(indy,'*')>1 then
disp('Synchro block cannot have more than 1 input')
end
for k=2:nn
clkconnect(indx(k),3)=nblk+1;
bllst(nblk+1)=bllst(lb);
corinv(nblk+1)=corinv(lb);
tmp=clkconnect(indxo,:);
yek=ones(tmp(:,1))
clkconnect=[clkconnect;[yek*(nblk+1),tmp(:,[2 3 4])]]
nblk=nblk+1
end
onn=ones(nn-1,1)
connectmat=[connectmat;..
[onn*connectmat(indy,[1 2]),[nblkorg+1:nblk]',onn]]
change=%t
nblkorg=nblk
end
end
if change then done=%f;return; end
//
clkconnecttmp=clkconnect;
clkconnect=clkconnecttmp(find(clkconnecttmp(:,1)<>0),:);
clkconnect0=clkconnecttmp(find(clkconnecttmp(:,1)==0),:);
bclkconnect0=clkconnect0(:,[1 3]);
con0=zeros(clkconnect0(:,1));
texeclk0=bclkconnect0(find(bclkconnect0(:,1)==0),2);
con=clkptr(clkconnect(:,1))+clkconnect(:,2)-1;
[junk,ind]=sort(-con);con=-junk;
clkconnect=clkconnect(ind,:);
//
bclkconnect=clkconnect(:,[1 3]);
boptr=1;
bexe=[];
for i=1:nblk
r=bclkconnect(find(bclkconnect(:,1)==i),2);
bexe=[bexe;r];
boptr=[boptr;boptr($)+size(r,1)];
end
//
bconnectmat=connectmat(:,[1 3]);
blptr=1;
blnk=[];
for i=1:nblk
r=bconnectmat(find(bconnectmat(:,1)==i),2);
blnk=[blnk;r];
blptr=[blptr;blptr($)+size(r,1)];
end
//
tclkconnect=clkconnect(~typ_l(clkconnect(:,1)),:);
tcon=clkptr(tclkconnect(:,1))+tclkconnect(:,2)-1;
texeclk=tclkconnect(:,[3 4]);
ordptr1=1;
for i=1:clkptr($)-1
tmp=find(tcon<=i);
if tmp==[] then
ordptr1(i+1)=ordptr1(i);
else
ordptr1(i+1)=max(tmp)+1;
end
end
//
clkconnect=[clkconnect0;clkconnect];
con=[con0;con];
//
pointer=[];
for o=0:clkptr($)-1
if o==0 then texeclki=texeclk0; else texeclki=texeclk(ordptr1(o):ordptr1(o+1)-1,1);end
if texeclki<>[] then
vec=-ones(1,nblk);
vec(texeclki')=zeros(texeclki)';
// [r,ok]=new_tree3(vec,dep_ut,typ_l);
typ_lm=zeros(typ_l);typ_lm(typ_l)=1;typ_lm(typ_m)=-1;
[r,ok]=new_tree3(vec,dep_ut,typ_lm);
if ~ok then
message('Algebraic loop detected; cannot be compiled.');
bllst=[];connectmat=[];clkconnect=[];typ_l=[];corinv=[]
okk=%f;done=%t;return,
end
pointer=find(con==o)
for bl=r
if typ_l(bl) then
mod=bllst(bl);mod(10)='s',bllst(bl)=mod,typ_l(bl)=%f
pointer=pointer(find(clkconnect(pointer,3)<>bl));
yek=ones(pointer');
clkconnect(pointer,:)=..
[yek*bl,yek,clkconnect(pointer,[3 4])];
//connect all the event outputs of the logical block to ....
for bl_out=2:clkptr(bl+1)-clkptr(bl)
clkconnect=[clkconnect;[yek*bl,bl_out*yek,clkconnect(pointer,[3 4])]];
end
//
ok=%f,return
else
pointer=pointer(find(clkconnect(pointer,3)<>bl))
end
end
end
if pointer<>[] then warning('problem1');pause;end
end;
//
if or(typ_l) then warning('problem2');pause;end
//
okk=%t;done=%t;
function [ordptr1,execlk,clkconnectj0,clkconnectj_cons]=..
discard(clkptr,cliptr,clkconnect,exe_cons)
if exe_cons<>[] then
clkconnectj=exe_cons
mma=maxi(clkconnectj(:,2))+1
con=mma*(clkconnectj(:,1))+clkconnectj(:,2)
[junk,ind]=sort(-con);con=-junk
clkconnectj=clkconnectj(ind,:)
// discard duplicate calls to the same block port
if size(con,'*')>=2 then
clkconnectj(find(con(2:$)-con(1:$-1)==0),:)=[]
end
// group calls to different ports of the same block.
clkconnectj=[clkconnectj(:,1),2^(clkconnectj(:,2)-ones(clkconnectj(:,2)))]
clkconnectj=int(clkconnectj)
con=clkconnectj(:,1)
clkconnectj_cons=[]
if size(con,'*')>=2 then
iini=[find(con(2:$)-con(1:$-1)<>0),size(clkconnectj,1)]
else
iini=1
end
for ii=iini
clkconnectj_cons=[clkconnectj_cons;[clkconnectj(ii,1),..
mysum(clkconnectj(find(clkconnectj(:,1)==clkconnectj(ii,1)),2))]]
end
else
clkconnectj_cons=[]
end
clkconnecttmp=clkconnect
clkconnect=clkconnecttmp(find(clkconnecttmp(:,1)<>0),:)
clkconnect0=clkconnecttmp(find(clkconnecttmp(:,1)==0),:)
if clkconnect0<>[] then
clkconnectj=[clkconnect0(:,3),clkconnect0(:,4)]
// con=cliptr(clkconnectj(:,1))+clkconnectj(:,2)-ones(clkconnectj(:,2))
mma=maxi(clkconnectj(:,2))+1
con=mma*clkconnectj(:,1)+clkconnectj(:,2)
//
[junk,ind]=sort(-con);con=-junk
clkconnectj=clkconnectj(ind,:)
// discard duplicate calls to the same block port
if size(con,'*')>=2 then
clkconnectj(find(con(2:$)-con(1:$-1)==0),:)=[]
end
// group calls to different ports of the same block.
clkconnectj=[clkconnectj(:,1),2^(clkconnectj(:,2)-ones(clkconnectj(:,2)))]
clkconnectj=int(clkconnectj)
con=clkconnectj(:,1)
clkconnectj0=[]
if size(con,'*')>=2 then
iini=[find(con(2:$)-con(1:$-1)<>0),size(clkconnectj,1)]
else
iini=1
end
for ii=iini
clkconnectj0=[clkconnectj0;[clkconnectj(ii,1),..
mysum(clkconnectj(find(clkconnectj(:,1)==clkconnectj(ii,1)),2))]]
end
else
clkconnectj0=[]
end
con=clkptr(clkconnect(:,1))+clkconnect(:,2)-1
[junk,ind]=sort(-con);con=-junk
clkconnect=clkconnect(ind,:)
//
ordptr1=1
for i=1:clkptr($)-1
tmp=find(con<=i)
if tmp==[] then
ordptr1(i+1)=ordptr1(i)
else
ordptr1(i+1)=max(tmp)+1
end
end
execlk=[]
new_ordptr1=1
if show_trace then disp('c_pass50001:'+string(timer())),end
for j=1:clkptr($)-1
if ordptr1(j)<>ordptr1(j+1) then
clkconnectj=[clkconnect(ordptr1(j):ordptr1(j+1)-ones(ordptr1(j+1)),3),..
clkconnect(ordptr1(j):ordptr1(j+1)-1,4)]
// con=cliptr(clkconnectj(:,1))+clkconnectj(:,2)-ones(clkconnectj(:,2))
mma=maxi(clkconnectj(:,2))+1
con=mma*clkconnectj(:,1)+clkconnectj(:,2)
[junk,ind]=sort(-con);con=-junk
clkconnectj=clkconnectj(ind,:)
// discard duplicate calls to the same block port
if size(con,'*')>=2 then
clkconnectj(find(con(2:$)-con(1:$-1)==0),:)=[]
end
// group calls to different ports of the same block.
clkconnectj=[clkconnectj(:,1),2^(clkconnectj(:,2)-ones(clkconnectj(:,2)))]
clkconnectj=int(clkconnectj)
con=clkconnectj(:,1)
clkconnectjj=[]
if size(con,'*')>=2 then
iini=[find(con(2:$)-con(1:$-1)<>0),size(clkconnectj,1)]
else
iini=1
end
for ii=iini
clkconnectjj=[clkconnectjj;[clkconnectj(ii,1),..
mysum(clkconnectj(find(clkconnectj(:,1)==clkconnectj(ii,1)),2))]]
end
else
clkconnectjj=[]
end
execlk=[execlk;clkconnectjj]
new_ordptr1=[new_ordptr1;new_ordptr1($)+size(clkconnectjj,1)]
end
ordptr1=new_ordptr1
function a=mysum(b)
if b<>[] then a=sum(b), else a=[], end
function [lnkptr,inplnk,outlnk,clkptr,cliptr,inpptr,outptr,..
xptr,zptr,rpptr,ipptr,xc0,xd0,rpar,ipar,dep_ut,..
typ_z,typ_s,typ_x,typ_m,funs,funtyp,initexe,labels,..
bexe,boptr,blnk,blptr,ok]=extract_info(bllst,..
connectmat,clkconnect)
ok=%t
nbl=length(bllst)
clkptr=zeros(nbl+1,1);clkptr(1)=1
cliptr=clkptr;inpptr=cliptr;outptr=inpptr;
//clkptr=1;cliptr=1;
//inpptr=1;outptr=1;
xptr=1;zptr=1;
rpptr=clkptr;ipptr=clkptr;
//rpptr=1;ipptr=1;
//
xc0=[];xd0=[];rpar=[];ipar=[];
fff=ones(nbl,1)==1
dep_ut=[fff,fff];typ_z=fff;typ_s=fff;typ_x=fff;typ_m=fff;
initexe=[];
funs=list();
funtyp=zeros(typ_z)
labels=[]
//
//
for i=1:nbl
ll=bllst(i)
if type(ll(1))==15 then
funs(i)=ll(1)(1)
funtyp(i,1)=ll(1)(2)
else
funs(i)=ll(1);
funtyp(i,1)=0;
end
if funtyp(i,1)>999 then
if ~c_link(funs(i)) then
x_message(['A C or Fortran block is used but not linked';
'You can save your compiled diagram and load it';
'This will automatically link the C or Fortran function'])
end
end
inpnum=ll(2);outnum=ll(3);cinpnum=ll(4);coutnum=ll(5);
//
inpptr(i+1)=inpptr(i)+size(inpnum,'*')
outptr(i+1)=outptr(i)+size(outnum,'*')
cliptr(i+1)=cliptr(i)+size(cinpnum,'*')
clkptr(i+1)=clkptr(i)+size(coutnum,'*')
//
xc0=[xc0;ll(6)(:)]
xptr(i+1)=xptr(i)+size(ll(6),'*')
if funtyp(i,1)==3 then //sciblocks
xd0k=var2vec(ll(7))
else
xd0k=ll(7)(:)
end
xd0=[xd0;xd0k]
zptr(i+1)=zptr(i)+size(xd0k,'*')
//
if funtyp(i,1)==3 then //sciblocks
rpark=var2vec(ll(8))
else
rpark=ll(8)(:)
end
rpar=[rpar;rpark]
rpptr(i+1)=rpptr(i)+size(rpark,'*')
if type(ll(9))==1 then
ipar=[ipar;ll(9)(:)]
ipptr(i+1)=ipptr(i)+size(ll(9),'*')
else
ipptr(i+1)=ipptr(i)
end
//
typ_z(i)=ll(10)=='z'
typ_s(i)=ll(10)=='s'
typ_x(i)=ll(6)<>[]
typ_m(i)=ll(10)=='m'
dep_ut(i,:)=(ll(12)(:))'
//
if ll(5)<>[] then
ll11=ll(11)
prt=find(ll11>=zeros(ll11))
nprt=prod(size(prt))
initexe=[initexe;..
[i*ones(nprt,1),matrix(prt,nprt,1),matrix(ll11(prt),nprt,1)]];
end
if size(ll)>=13 then
if type(ll(13))==10 then
labels=[labels;ll(13)(1)]
else
labels=[labels;' ']
end
else
labels=[labels;' ']
end
end
clkconnect=clkconnect(find(clkconnect(:,1)<>0),:);
con=clkptr(clkconnect(:,1))+clkconnect(:,2)-1;
[junk,ind]=sort(-con);con=-junk;
clkconnect=clkconnect(ind,:);
//
bclkconnect=clkconnect(:,[1 3]);
boptr=1;
bexe=[];
for i=1:nbl
r=bclkconnect(find(bclkconnect(:,1)==i),2);
bexe=[bexe;r];
boptr=[boptr;boptr($)+size(r,1)];
end
//
bconnectmat=connectmat(:,[1 3]);
blptr=1;
blnk=[];
for i=1:nbl
r=bconnectmat(find(bconnectmat(:,1)==i),2);
blnk=[blnk;r];
blptr=[blptr;blptr($)+size(r,1)];
end
//
[ok,bllst]=adjust_inout(bllst,connectmat)
nlnk=size(connectmat,1)
inplnk=zeros(inpptr($)-1,1);outlnk=zeros(outptr($)-1,1);ptlnk=1;
lnkbsz=[]
for jj=1:nlnk
ko=outlnk(outptr(connectmat(jj,1))+connectmat(jj,2)-1)
ki=inplnk(inpptr(connectmat(jj,3))+connectmat(jj,4)-1)
if ko<>0 & ki<>0 then
if ko>ki then
outlnk(outlnk>ko)=outlnk(outlnk>ko)-1
outlnk(outlnk==ko)=ki
inplnk(inplnk>ko)=inplnk(inplnk>ko)-1
inplnk(inplnk==ko)=ki
ptlnk=-1+ptlnk
lnkbsz(ko)=[]
elseif ki>ko
outlnk(outlnk>ki)=outlnk(outlnk>ki)-1
outlnk(outlnk==ki)=ko
inplnk(inplnk>ki)=inplnk(inplnk>ki)-1
inplnk(inplnk==ki)=ko
ptlnk=-1+ptlnk
lnkbsz(ki)=[]
end
elseif ko<>0 then
inplnk(inpptr(connectmat(jj,3))+connectmat(jj,4)-1)=ko
elseif ki<>0 then
outlnk(outptr(connectmat(jj,1))+connectmat(jj,2)-1)=ki
else
outlnk(outptr(connectmat(jj,1))+connectmat(jj,2)-1)=ptlnk
inplnk(inpptr(connectmat(jj,3))+connectmat(jj,4)-1)=ptlnk
lnkbsz=[lnkbsz;bllst(connectmat(jj,1))(3)(connectmat(jj,2))]
ptlnk=1+ptlnk
end
end
lnkptr=cumsum([1;lnkbsz])
//store unconnected outputs, if any, at the end of outtb
unco=find(outlnk==0);
if unco==[] then return;end
siz_unco=0
for j=unco
m=maxi(find(outptr<=j))
n=j-outptr(m)+1
siz_unco=maxi(siz_unco,bllst(m)(3)(n))
end
lnkptr=[lnkptr;lnkptr($)+siz_unco]
outlnk(unco)=maxi(outlnk)+1
function [outoin,outoinptr]=conn_mat(inpptr,outptr,inplnk,outlnk)
outoin=[];outoinptr=1
nblk=size(inpptr,1)-1
for i=1:nblk
k=outptr(i):outptr(i+1)-1
ii=[]
for j=outlnk(k)'
ii=[ii,find(inplnk==j)]
end
outoini=[];jj=0
for j=ii
m=maxi(find(inpptr<=j))
n=j-inpptr(m)+1
outoini=[outoini;[m,n]]
jj=jj+1
end
outoinptr=[outoinptr;outoinptr($)+jj]
outoin=[outoin;outoini]
end
function [clkptr,cliptr,typ_l,dep_ut,typ_m]=..
make_ptr(bllst,clkptr,cliptr,typ_l,dep_ut,typ_m)
nblk0=size(clkptr,'*')
nbl=size(bllst)
if nbl<nblk0 then return; end
i=nblk0;ll=bllst(i)
cliptr1=zeros(nbl-nblk0,1);clkptr1=cliptr1;
cliptr1(1)=cliptr($)+sum(ll(4))
clkptr1(1)=clkptr($)+sum(ll(5))
typ_l1=cliptr1==1;dep_ut1=[typ_l1,typ_l1];
typ_l1(1)=ll(10)=='l';typ_m1(1)=ll(10)=='m';dep_ut1(1,:)=ll(12);
j=1
for i=nblk0+1:nbl
j=j+1
ll=bllst(i)
cliptr1(j)=cliptr1(j-1)+sum(ll(4))
clkptr1(j)=clkptr1(j-1)+sum(ll(5))
typ_l1(j)=ll(10)=='l'
typ_m1(j)=ll(10)=='m'
dep_ut1(j,:)=ll(12)
end
cliptr=[cliptr;cliptr1]
clkptr=[clkptr;clkptr1]
typ_l=[typ_l;typ_l1]
typ_m=[typ_m;typ_m1]
dep_ut=[dep_ut;dep_ut1];
function [ord,ok]=tree2(vec,outoin,outoinptr,dep_ut)
//compute blocks execution tree
ok=%t;
nb=size(vec,'*');
for j=1:nb+2
fini=%t
for i=1:nb
if vec(i)==j-1 then
if j==nb+2 then
message('algebraic loop detected');ok=%f;ord=[];return;
end
// kk=[];
for k=outoinptr(i):outoinptr(i+1)-1
ii=outoin(k,1);
if dep_ut(ii,1)&vec(ii)>-1 then
fini=%f;
// kk=[kk ii];
vec(ii)=j;
end
end
// vec(kk)=j*ones(kk) ;
end
end
if fini then break;end
end
[k,ord]=sort(-vec);
ord(find(k==1))=[];
ord=ord(:)
function [ok,bllst]=adjust_inout(bllst,connectmat)
nlnk=size(connectmat,1)
for hhjj=1:length(bllst)
for hh=1:length(bllst)
ok=%t
for jj=1:nlnk
nout=bllst(connectmat(jj,1))(3)(connectmat(jj,2))
nin=bllst(connectmat(jj,3))(2)(connectmat(jj,4))
if (nout>0&nin>0) then
if nin<>nout then
bad_connection(corinv(connectmat(jj,1)),connectmat(jj,2),nout,..
corinv(connectmat(jj,3)),connectmat(jj,4),nin)
ok=%f;return
end
elseif (nout>0&nin<0) then
ww=find(bllst(connectmat(jj,3))(2)==nin)
bllst(connectmat(jj,3))(2)(ww)=nout
ww=find(bllst(connectmat(jj,3))(3)==nin)
bllst(connectmat(jj,3))(3)(ww)=nout
elseif (nin>0&nout<0) then
ww=find(bllst(connectmat(jj,1))(3)==nout)
bllst(connectmat(jj,1))(3)(ww)=nin
ww=find(bllst(connectmat(jj,1))(2)==nout)
bllst(connectmat(jj,1))(2)(ww)=nin
elseif (nin==0) then
ww=bllst(connectmat(jj,3))(3)(:)
if mini(ww)>0 then
if nout>0 then
if sum(ww)==nout then
bllst(connectmat(jj,3))(2)(connectmat(jj,4))=nout
else
bad_connection(corinv(connectmat(jj,3)))
ok=%f;return
end
else
bllst(connectmat(jj,3))(2)(connectmat(jj,4))=sum(ww)
ok=%f
end
else
nww=ww(find(ww<0))
if norm(nww-nww(1),1)==0 & nout>0 then
bllst(connectmat(jj,3))(2)(connectmat(jj,4))=nout
k=(nout-sum(ww(find(ww>0))))/size(nww,'*')
if k==int(k) then
bllst(connectmat(jj,3))(3)(find(ww<0))=k
else
bad_connection(corinv(connectmat(jj,3)))
ok=%f;return
end
else
ok=%f
end
end
elseif (nout==0) then
ww=bllst(connectmat(jj,1))(2)(:)
if mini(ww)>0 then
if nin>0 then
if sum(ww)==nin then
bllst(connectmat(jj,1))(3)(connectmat(jj,2))=nin
else
bad_connection(corinv(connectmat(jj,1)))
ok=%f;return
end
else
bllst(connectmat(jj,1))(3)(connectmat(jj,2))=sum(ww)
ok=%f
end
else
nww=ww(find(ww<0))
if norm(nww-nww(1),1)==0 & nin>0 then
bllst(connectmat(jj,1))(3)(connectmat(jj,2))=nin
k=(nout-sum(ww(find(ww>0))))/size(nww,'*')
if k==int(k) then
bllst(connectmat(jj,1))(2)(find(ww<0))=k
else
bad_connection(corinv(connectmat(jj,1)))
ok=%f;return
end
else
ok=%f
end
end
else
//case where both are negative
ok=%f
end
end
if ok then return, end
end
message('Not enough information to determine port sizes');
for jj=1:nlnk
nout=bllst(connectmat(jj,1))(3)(connectmat(jj,2))
nin=bllst(connectmat(jj,3))(2)(connectmat(jj,4))
if nout<=0&nin<=0 then
ninnout=under_connection(corinv(connectmat(jj,1)),connectmat(jj,2),nout,..
corinv(connectmat(jj,3)),connectmat(jj,4),nin)
if ninnout==[] then ok=%f;return;end
if ninnout<=0 then ok=%f;return;end
bllst(connectmat(jj,1))(3)(connectmat(jj,2))=ninnout
bllst(connectmat(jj,3))(2)(connectmat(jj,4))=ninnout
end
end
end
function ninnout=under_connection(path_out,prt_out,nout,path_in,prt_in,nin)
// alert for badly connected blocks
// path_out : Path of the "from block" in scs_m
// path_in : Path of the "to block" in scs_m
//!
lp=mini(size(path_out,'*'),size(path_in,'*'))
k=find(path_out(1:lp)<>path_in(1:lp))
path=path_out(1:k(1)-1) // common superbloc path
path_out=path_out(k(1)) // "from" block number
path_in=path_in(k(1)) // "to" block number
if path==[] then
hilite_obj(scs_m(path_out))
if or(path_in<>path_out) then hilite_obj(scs_m(path_in)),end
ninnout=evstr(dialog(['Hilited block(s) have connected ports ';
'with sizes that cannot be determiend by the context';
'what is the size of this link'],'1'))
hilite_obj(scs_m(path_out))
if or(path_in<>path_out) then hilite_obj(scs_m(path_in)),end
else
mxwin=maxi(winsid())
for k=1:size(path,'*')
hilite_obj(scs_m(path(k)))
scs_m=scs_m(path(k))(3)(8);
scs_show(scs_m,mxwin+k)
end
hilite_obj(scs_m(path_out))
if or(path_in<>path_out) then hilite_obj(scs_m(path_in)),end
ninnout=evstr(dialog(['Hilited block(s) have connected ports ';
'with sizes that cannot be determiend by the context';
'what is the size of this link'],'1'))
for k=size(path,'*'):-1:1,xdel(mxwin+k),end
scs_m=null()
unhilite_obj(scs_m(path(1)))
end
function [clkconnect,exe_cons]=pak_ersi(connectmat,clkconnect,..
dep_ut,typ_r,typ_l,outoin,outoinptr,tblock,typ_cons,clkptr)
//add every event to the time event because time includes all events
all_out=[]
for k=1:size(clkptr,1)-1
if ~typ_l(k) then
kk=[1:(clkptr(k+1)-clkptr(k))]'
all_out=[all_out;[k*ones(kk),kk]]
end
end
all_out=[all_out;[0,0]]
//add time event if needed
ind=find(tblock)
ind=ind(:)
for k=ind'
clkconnect=[clkconnect;[all_out,ones(all_out)*[k,0;0,0]]]
end
if show_trace then disp('c_pass4444:'+string(timer())),end
ind1=find(typ_cons)
ind=[ind;ind1(:)]
exe_cons=[ind,zeros(ind)]
vec=-ones(1,nblk);
vec(ind)=0
[r,ok]=new_tree4(vec,outoin,outoinptr,typ_r)
exe_cons=[exe_cons;r]
if show_trace then disp('c_pass4445:'+string(timer())),end
[clkr,clkc]=size(clkconnect);
mm=maxi(clkconnect)+1;
cll=clkconnect(:,1)*mm+clkconnect(:,2);
[cll,ind]=sort(-cll);
clkconnect=clkconnect(ind,:);
cll=[-1;-cll;mm];
ii=find(cll(2:$)-cll(1:$-1)<>0)
for k=1:size(ii,'*')-1
oo=[ii(k):ii(k+1)-1]
vec=-ones(1,nblk);
vec(clkconnect(oo,3))=0
[r,ok]=new_tree4(vec,outoin,outoinptr,typ_r)
m=size(r,1)
r=[clkconnect(ii(k),1)*ones(m,1),clkconnect(ii(k),2)*ones(m,1),r]
clkconnect=[clkconnect;r]
end
if show_trace then disp('c_pass4446:'+string(timer())),end
function [r,ok]=tree4(vec,outoin,outoinptr,typ_r)
//compute blocks which inherit
ok=%t;
nb=size(vec,'*');
r=[];
for j=1:nb-1
fini=%t
for i=1:nb
if vec(i)==j-1 then
for k=outoinptr(i):outoinptr(i+1)-1
ii=outoin(k,1);
if (vec(ii)>-1)|typ_r(ii) then
fini=%f;
vec(ii)=j;
end
if typ_r(ii) then
r=[r;outoin(k,:)]
end
end
end
end
if fini then break;end
end
function [bllst,inplnk,outlnk,clkptr,cliptr,inpptr,outptr,..
dep_ut,typ_l,typ_r,typ_m,tblock,typ_cons,ok]=mini_extract_info(bllst,..
connectmat,clkconnect)
ok=%t
nbl=length(bllst)
clkptr=zeros(nbl+1,1);clkptr(1)=1
cliptr=clkptr;inpptr=cliptr;outptr=inpptr;
//clkptr=1;cliptr=1;inpptr=1;outptr=1;
fff=ones(nbl,1)==1
dep_ut=[fff,fff];typ_l=fff;typ_r=fff;typ_cons=fff;typ_m=fff;
tblock=fff
//dep_ut=[];typ_l=[];typ_r=[];typ_cons=[]
//tblock=[] // specifies blocks that must be connected to time event.
//
for i=1:nbl
ll=bllst(i)
inpnum=ll(2);outnum=ll(3);cinpnum=ll(4);coutnum=ll(5);
//
if cinpnum==[]&ll(10)<>'z' then
// this block inherits
ok=%f
typ_r(i)=~ll(12)(2)
tblock(i)=ll(12)(2)
//if block depends on time but has no event input port
if ~ll(12)(2) then
//inherits from the inputs
cinpnum=ones(inpnum)
bllst(i)(4)=cinpnum //XXXXXXXXXXXXXXXXXXXXX
end
//
else
tblock(i)=ll(12)(2);typ_r(i)=%f
end
inpptr(i+1)=inpptr(i)+size(inpnum,'*')
outptr(i+1)=outptr(i)+size(outnum,'*')
cliptr(i+1)=cliptr(i)+size(cinpnum,'*')
clkptr(i+1)=clkptr(i)+size(coutnum,'*')
//
typ_l(i)=ll(10)=='l';typ_m(i)=ll(10)=='m';dep_ut(i,:)=(ll(12)(:))';
typ_cons(i)=[cinpnum==[]&inpnum==[]&~ll(12)(2)]
//
end
if show_trace then disp('c_pass22222222:'+string(timer())),end //'
nlnk=size(connectmat,1)
inplnk=zeros(inpptr($)-1,1);outlnk=zeros(outptr($)-1,1);ptlnk=1;
for jj=1:nlnk
ko=outlnk(outptr(connectmat(jj,1))+connectmat(jj,2)-1)
ki=inplnk(inpptr(connectmat(jj,3))+connectmat(jj,4)-1)
if ko<>0 & ki<>0 then
if ko>ki then
outlnk(outlnk>ko)=outlnk(outlnk>ko)-1
outlnk(outlnk==ko)=ki
inplnk(inplnk>ko)=inplnk(inplnk>ko)-1
inplnk(inplnk==ko)=ki
ptlnk=-1+ptlnk
elseif ki>ko
outlnk(outlnk>ki)=outlnk(outlnk>ki)-1
outlnk(outlnk==ki)=ko
inplnk(inplnk>ki)=inplnk(inplnk>ki)-1
inplnk(inplnk==ki)=ko
ptlnk=-1+ptlnk
end
elseif ko<>0 then
inplnk(inpptr(connectmat(jj,3))+connectmat(jj,4)-1)=ko
elseif ki<>0 then
outlnk(outptr(connectmat(jj,1))+connectmat(jj,2)-1)=ki
else
outlnk(outptr(connectmat(jj,1))+connectmat(jj,2)-1)=ptlnk
inplnk(inpptr(connectmat(jj,3))+connectmat(jj,4)-1)=ptlnk
ptlnk=1+ptlnk
end
end
//store unconnected outputs, if any, at the end of outtb
unco=find(outlnk==0);
if unco==[] then return;end
outlnk(unco)=maxi(outlnk)+1
function [evoutoin,evoutoinptr]=synch_clkconnect(typ_s,clkconnect)
nblk=size(typ_s,'*')
evoutoin=[];evoutoinptr=1
for i=1:nblk
if typ_s(i) then
dd=clkconnect(clkconnect(:,1)==i,3)
else
dd=[]
end
evoutoin=[evoutoin;dd]
evoutoinptr=[evoutoinptr;evoutoinptr($)+size(dd,'*')]
end
function clkconnect=cleanup(clkconnect)
mm=maxi(clkconnect)+1
cc=clkconnect(:,4)+mm*clkconnect(:,3)+clkconnect(:,2)*mm^2+..
clkconnect(:,1)*mm^3
[cc1,ind]=sort(-cc)
clkconnect=clkconnect(ind,:)
ind=find(cc1(2:$)-cc1(1:$-1)==0)
clkconnect(ind,:)=[]
function [r,ok]=new_tree2(vec,outoin,outoinptr,dep_ut)
dd=zeros(dep_ut);dd(dep_ut)=1;
[r,ok2]=sci_tree2(vec,outoin,outoinptr,dd)
ok=ok2==1
function [r,ok]=new_tree3(vec,dep_ut,typ_l)
dd=zeros(dep_ut);dd(dep_ut)=1;
//ddd=zeros(typ_l);ddd(typ_l)=1;
[r2,ok2]=sci_tree3(vec,dd,typ_l,bexe,boptr,blnk,blptr)
r=r2'
ok=ok2==1
function [r,ok]=new_tree4(vec,outoin,outoinptr,typ_r)
nd=zeros(size(vec,'*'),(max(outoin(:,2))+1));
ddd=zeros(typ_r);ddd(typ_r)=1;
[r1,r2]=sci_tree4(vec,outoin,outoinptr,nd,ddd)
r=[r1',r2']
ok=%t
|
442c28d5650f499c10d04ff20065e694308058de | cc3bff70280a1ee19aaf881e852ab1d5a8a1014d | /Experiment No.6 - Generation of PSK waveforms.sce | 6f57e669856ddf3adc8792a3e5b03323e8c96218 | [] | no_license | imdeepak27/Digital-Communication-Systems | 814380444ff466fdbd693318fdc25815abd85347 | e35a99437a63bb023e2d6468ecfb92633d6049e5 | refs/heads/master | 2022-06-18T01:07:37.718079 | 2020-05-13T04:26:12 | 2020-05-13T04:26:12 | 263,524,581 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | sce | Experiment No.6 - Generation of PSK waveforms.sce | t=[0:0.01:5*%pi];
A=5;
wc=2;
Vm=A.*squarewave(t);
Vc=A.*sin(wc.*t);
Vp=Vm.*Vc;
subplot(3,1,1);
plot(t,Vm,'black');
subplot(3,1,2);
plot(t,Vc,'black');
subplot(3,1,3);
plot(t,Vp,'black');
|
fb9507bd403bb57f9b813f2f0b517a450a0d8f9c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH8/EX3.8.1/Ex3_8_1.sce | 6a805703c353338cb43f16d36b327b98c135aad1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 270 | sce | Ex3_8_1.sce | //Section-3,Example-1,Page no.-EC.19
//To calculate the BOD of the sample.
clc;
DO_b=840
DO_i=230
ml_ad=80 //ml. of sample after dilution
ml_bd=50 //ml. of sample before dilution
BOD=((DO_b-DO_i)*(ml_ad/ml_bd))
disp (BOD,'Biological Oxygen Demand (ppm)')
|
bffd004ad502ae42a2462307b4503301ae8190fd | 449d555969bfd7befe906877abab098c6e63a0e8 | /125/CH7/EX7.27/Fig7_27.sce | b59432f68553231dd5c501b6734b8838a7caa3ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 554 | sce | Fig7_27.sce | //Caption: Scilab code for Edge Detection using Different Edge detectors
//[1]. Sobel [2].Prewitt [3].Log [4].Canny
//Fig7.27
//page389
close;
clc;
a = imread('E:\DIP_JAYARAMAN\Chapter7\sailing.jpg');
a = rgb2gray(a);
c = edge(a,'sobel');
d = edge(a,'prewitt');
e = edge(a,'log');
f = edge(a,'canny');
ShowImage(a,'Original Image')
title('Original Image')
figure
ShowImage(c,'Sobel')
title('Sobel')
figure
ShowImage(d,'Prewitt')
title('Prewitt')
figure
ShowImage(e,'Log')
title('Log')
figure
ShowImage(f,'Canny')
title('Canny') |
d59f900104b9030b8fc46f7049a29f66ad8a2ff2 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.7_5.tst | cd75bf2a4cfbd9ef882ec3d53131ba45d4903d4c | [] | 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 | 24,082 | tst | bow.7_5.tst | 7 7:0.5 8:0.2 12:0.5 17:0.4 20:0.5 23:1.0 24:0.4 25:1.0 26:0.03076923076923077 43:0.3333333333333333 48:1.0 55:0.2857142857142857 64:0.2 134:0.14285714285714285 185:1.0 197:0.5 209:1.0 311:1.0 483:1.0 499:2.0 1232:1.0 1708:1.0 1764:1.0 2428:1.0 2577:1.0 2737:1.0 3297:1.0 3300:1.0 3307:0.3333333333333333 3310:1.0 3701:1.0 5086:1.0
7 7:0.5 12:2.0 38:1.0 48:1.0 64:0.4 121:0.020833333333333332 134:0.14285714285714285 137:1.0 205:1.0 269:1.0 891:1.0 1253:1.0 1298:1.0 1975:1.0 2243:1.0 2914:1.0 3730:1.0 3937:1.0 4187:1.0 5495:1.0
7 7:0.5 8:0.2 12:0.5 18:0.25 54:2.0 64:0.2 100:0.1111111111111111 308:1.0 727:1.0 1030:1.0 3060:1.0 3284:0.06666666666666667 3782:0.3333333333333333 4408:1.0
7 7:0.5 17:0.2 19:0.05263157894736842 20:0.25 24:0.2 26:0.015384615384615385 55:0.14285714285714285 100:0.1111111111111111 112:1.0 134:0.2857142857142857 162:1.0 347:1.0 442:1.0 484:1.0 694:1.0 2983:1.0 3307:0.3333333333333333 3326:1.0 3333:1.0 3361:1.0 5593:1.0 5853:1.0 5856:1.0
7 7:0.5 12:0.5 20:0.25 42:0.5 45:1.0 46:0.5 75:0.5 134:0.14285714285714285 240:1.0 312:1.0 354:0.5 1208:1.0 3994:1.0 5311:1.0
7 12:0.5 17:0.2 20:0.5 24:0.2 64:0.4 67:0.25 88:1.0 93:0.08333333333333333 97:0.5 98:0.14285714285714285 134:0.14285714285714285 137:1.0 285:1.0 1065:0.5 1525:1.0 1792:1.0 3284:0.06666666666666667 3298:1.0 3828:1.0 4608:1.0 4977:1.0 5644:1.0
7 8:0.2 12:0.5 20:0.25 21:0.2 24:0.2 38:1.0 48:1.0 64:0.4 67:0.25 88:1.0 95:1.0 176:1.0 236:1.0 279:0.5 375:1.0 596:1.0 647:1.0 862:1.0 1016:0.5 1128:1.0 1370:1.0 1490:1.0 3300:1.0 3307:0.3333333333333333 3510:1.0 3577:1.0 3697:1.0 4624:1.0 5086:1.0
7 20:0.25 24:0.2 48:2.0 55:0.2857142857142857 64:0.2 134:0.14285714285714285 137:1.0 281:0.5 298:1.0 366:0.3333333333333333 406:1.0 621:1.0 1001:0.25 1058:1.0 1227:1.0 1767:1.0 2340:1.0 3466:1.0 3496:1.0 3865:1.0 4171:1.0 4971:1.0 5794:1.0
7 8:0.2 12:0.5 17:0.2 20:0.5 21:0.2 24:0.2 26:0.015384615384615385 43:0.3333333333333333 64:0.2 97:0.5 100:0.1111111111111111 137:1.0 181:1.0 236:1.0 308:1.0 311:1.0 312:1.0 488:1.0 1087:0.2 1372:1.0 2177:0.5 2362:1.0 2699:1.0 3297:1.0 3300:1.0 3307:0.3333333333333333 3815:1.0 4624:1.0 5994:1.0
7 8:0.2 12:0.5 18:0.25 20:0.5 21:0.2 24:0.4 38:1.0 43:0.3333333333333333 55:0.14285714285714285 64:0.2 88:1.0 98:0.14285714285714285 100:0.1111111111111111 117:0.14285714285714285 134:0.14285714285714285 137:2.0 231:1.0 273:1.0 308:1.0 621:2.0 669:1.0 727:1.0 1837:1.0 2133:1.0 3326:1.0 3336:1.0 3478:1.0 3496:0.5 3893:1.0 4323:0.5 4487:1.0 4627:1.0 4819:1.0 5704:1.0 5994:1.0
7 4:0.5 7:0.5 12:0.5 17:0.4 18:0.25 21:0.2 24:0.2 38:1.0 62:0.2 126:0.3333333333333333 176:1.0 198:0.5 203:0.14285714285714285 550:0.5 601:0.3333333333333333 885:1.0 996:1.0 1120:1.0 1414:1.0 1965:1.0 2292:1.0 3237:1.0 3248:1.0 3300:2.0 3337:1.0 3383:0.25 3400:1.0 3511:1.0 4003:1.0 5994:1.0
7 7:0.5 24:0.2 26:0.015384615384615385 38:1.0 46:1.0 62:0.2 134:0.14285714285714285 236:1.0 298:1.0 314:1.0 354:0.5 1048:0.5 1093:1.0 1625:1.0 2422:1.0 3307:0.5 3361:1.0 3537:0.25 5417:1.0
7 7:0.5 17:0.4 19:0.05263157894736842 26:0.015384615384615385 38:1.0 43:0.3333333333333333 80:1.0 126:0.3333333333333333 133:0.5 198:0.5 212:1.0 274:1.0 281:0.5 383:1.0 483:1.0 1361:0.5 1728:1.0 3307:0.5 3309:0.3333333333333333 3651:0.5 3731:1.0 4213:1.0 4321:1.0
7 20:0.5 48:2.0 68:1.0 199:0.5 265:1.0 442:1.0 694:1.0 1016:0.5 1126:0.25 1360:1.0 1812:1.0 2527:1.0 3296:1.0 3300:1.0 3472:0.5 3731:1.0 5154:1.0 5781:1.0 5997:1.0
7 4:0.5 8:0.2 12:1.5 15:0.09090909090909091 20:0.5 21:0.2 26:0.015384615384615385 38:1.0 48:2.0 64:0.8 68:1.0 75:0.5 98:0.14285714285714285 100:0.1111111111111111 110:0.5 114:1.0 153:1.0 182:0.5 246:0.5 249:1.0 251:1.0 273:1.0 281:0.5 308:1.0 437:1.0 442:1.0 457:1.0 488:1.0 596:1.0 1016:0.5 1193:1.0 1329:0.5 1588:1.0 1721:1.0 2390:1.0 3058:1.0 3063:1.0 3300:2.0 3307:0.16666666666666666 3416:1.0 3755:0.25 3766:1.0 3835:1.0 3893:1.0 4119:0.5 4414:1.0 5710:1.0
7 12:2.0 14:1.0 26:0.015384615384615385 38:1.0 46:0.5 55:0.14285714285714285 62:0.2 100:0.1111111111111111 121:0.020833333333333332 127:1.0 137:1.0 181:1.0 194:1.0 446:0.3333333333333333 502:1.0 534:1.0 1235:1.0 1968:1.0 2527:1.0 3307:0.3333333333333333 3614:1.0 3828:1.0 4916:1.0
7 17:0.4 19:0.10526315789473684 26:0.015384615384615385 38:2.0 43:0.3333333333333333 55:0.2857142857142857 127:1.0 134:0.14285714285714285 188:1.0 345:1.0 353:1.0 446:0.3333333333333333 457:1.0 499:1.0 537:1.0 3307:0.16666666666666666 3309:0.3333333333333333 3421:0.5 3535:1.0 3537:0.25 5474:1.0
7 12:1.5 24:0.4 26:0.03076923076923077 48:1.0 55:0.14285714285714285 134:0.2857142857142857 194:1.0 215:0.25 389:1.0 1070:1.0 1361:0.5 1362:0.5 3298:1.0 3300:1.0 3307:0.5 3310:1.0 3315:1.0 4703:1.0 5483:1.0
7 8:0.2 26:0.015384615384615385 38:1.0 48:1.0 80:1.0 88:1.0 141:0.14285714285714285 296:1.0 347:1.0 675:1.0 694:1.0 934:1.0 1269:1.0 2792:1.0 3307:0.16666666666666666 3341:1.0 3537:0.25 4571:1.0 5103:1.0 5149:1.0
7 8:0.2 12:1.5 17:0.2 18:0.25 21:0.4 46:0.5 48:1.0 51:1.0 55:0.14285714285714285 64:0.2 88:1.0 97:0.5 98:0.14285714285714285 121:0.020833333333333332 134:0.14285714285714285 203:0.14285714285714285 236:3.0 265:1.0 279:0.5 1837:1.0 2390:1.0 2405:1.0 3300:1.0 3665:1.0 3701:1.0 3747:0.5 3764:1.0 5430:1.0 5504:1.0 5665:1.0
7 8:0.2 26:0.046153846153846156 38:1.0 98:0.14285714285714285 231:1.0 1016:0.5 2307:1.0 3307:0.5 3361:1.0 3482:1.0 3600:1.0 4062:1.0 5229:1.0
7 26:0.03076923076923077 64:0.4 134:0.14285714285714285 139:1.0 647:1.0 715:1.0 3074:1.0 3300:1.0 3307:0.6666666666666666 3383:0.25 3496:0.5
7 8:0.2 12:0.5 17:0.2 20:0.25 21:0.2 38:2.0 80:1.0 87:0.5 126:0.3333333333333333 285:1.0 289:0.16666666666666666 387:0.5 534:1.0 908:0.3333333333333333 1332:1.0 1333:1.0 1863:1.0 2228:1.0 2428:1.0 2549:2.0 3300:1.0 3307:0.16666666666666666 3684:1.0 4745:1.0
7 62:0.2 143:1.0 146:1.0 513:0.5 1854:1.0 2228:1.0 2549:1.0 3472:0.5 4318:1.0
7 8:0.2 20:0.5 38:2.0 42:0.5 43:0.3333333333333333 48:1.0 100:0.1111111111111111 126:0.3333333333333333 134:0.42857142857142855 158:0.25 197:0.5 203:0.14285714285714285 219:1.0 289:0.16666666666666666 387:0.5 484:1.0 727:1.0 878:1.0 1967:1.0 3036:1.0 3478:1.0 3809:1.0 4487:1.0 4798:1.0
7 8:0.2 11:0.5 20:0.25 38:1.0 43:0.3333333333333333 55:0.14285714285714285 93:0.08333333333333333 100:0.1111111111111111 137:1.0 141:0.14285714285714285 181:1.0 201:1.0 203:0.14285714285714285 209:1.0 219:1.0 298:1.0 431:1.0 1637:1.0 1837:1.0 2292:1.0 2390:1.0 3307:0.3333333333333333 3336:1.0 3364:1.0 4323:0.5 4338:1.0 5430:1.0 6013:1.0
7 8:0.2 12:0.5 17:0.2 20:0.5 38:4.0 41:1.0 43:0.3333333333333333 48:1.0 54:2.0 55:0.14285714285714285 57:1.0 58:0.3333333333333333 87:0.5 88:2.0 98:0.14285714285714285 101:0.5 158:0.25 182:0.5 265:2.0 567:1.0 1294:1.0 1637:1.0 1721:2.0 2738:1.0 3307:0.16666666666666666 3309:0.3333333333333333 3472:1.0 3535:1.0 3537:0.25 3662:1.0 3994:1.0 4484:1.0 4653:0.5 4680:1.0 4695:2.0
7 12:0.5 55:0.2857142857142857 64:0.2 199:1.0 913:1.0 1476:2.0 2029:0.5 2280:1.0 3074:3.0 3153:1.0 3309:0.3333333333333333
7 7:1.5 12:1.5 19:0.05263157894736842 24:0.2 38:1.0 44:0.3333333333333333 48:1.0 51:2.0 54:1.0 55:0.14285714285714285 97:0.5 98:0.14285714285714285 126:0.3333333333333333 134:0.14285714285714285 141:0.14285714285714285 142:0.3333333333333333 236:1.0 534:1.0 675:2.0 1063:2.0 1199:1.0 1235:1.0 1389:0.5 1632:1.0 2408:1.0 3300:2.0 3307:0.16666666666666666 3356:1.0 3379:1.0 4943:1.0 5325:1.0
7 7:0.5 8:0.2 20:0.5 38:1.0 55:0.2857142857142857 62:0.2 98:0.14285714285714285 134:0.14285714285714285 176:1.0 190:0.16666666666666666 250:2.0 367:1.0 550:0.5 652:1.0 1001:0.25 1030:1.0 1837:1.0 2489:1.0 3284:0.06666666666666667 3307:0.16666666666666666 3552:1.0 3759:1.0 3992:1.0 3994:1.0 5086:1.0 5434:1.0
7 8:0.2 20:0.25 25:1.0 26:0.015384615384615385 48:2.0 134:0.14285714285714285 176:1.0 185:1.0 293:0.5 339:1.0 529:1.0 641:1.0 814:1.0 1372:1.0 1829:1.0 3307:0.16666666666666666 3361:1.0 3404:1.0 3472:1.0 5377:1.0
7 5:0.1 12:0.5 20:0.25 24:0.2 38:1.0 46:0.5 55:0.14285714285714285 88:1.0 95:1.0 110:0.5 121:0.020833333333333332 136:1.0 1251:1.0 3284:0.06666666666666667 3300:1.0 3711:1.0 5086:1.0
7 8:0.4 17:0.4 20:0.25 23:1.0 38:2.0 64:0.2 94:0.5 117:0.14285714285714285 121:0.020833333333333332 137:1.0 181:1.0 236:1.0 281:1.0 315:0.5 366:0.3333333333333333 487:0.5 534:2.0 641:1.0 667:1.0 669:3.0 814:1.0 1269:1.0 1558:1.0 3123:1.0 3284:0.06666666666666667 3296:1.0 3300:1.0 3307:0.3333333333333333 3651:0.5 4294:1.0
7 7:0.5 17:0.4 24:0.2 26:0.015384615384615385 46:1.0 55:0.14285714285714285 64:0.2 93:0.08333333333333333 95:1.0 112:1.0 118:1.0 133:0.5 281:0.5 502:1.0 596:1.0 1001:0.25 3300:1.0 3307:0.3333333333333333 3633:0.5 4465:1.0
7 93:0.08333333333333333 121:0.020833333333333332 203:0.14285714285714285 3284:0.06666666666666667 3308:1.0 3364:1.0 3711:1.0 3789:1.0
7 26:0.015384615384615385 64:0.2 127:1.0 307:0.3333333333333333 311:1.0 442:1.0 1016:0.5 1541:1.0 1564:1.0 1629:1.0 1764:1.0 3307:0.16666666666666666 3332:1.0 3636:1.0 3637:1.0 3812:1.0 4753:1.0 5098:1.0 5653:1.0
7 4:0.5 12:0.5 62:0.2 387:0.5 1048:0.5 1764:1.0 2133:1.0 3309:0.3333333333333333
7 12:0.5 20:0.5 48:1.0 80:1.0 100:0.1111111111111111 105:1.0 134:0.14285714285714285 253:1.0 286:1.0 387:0.5 621:1.0 641:1.0 746:1.0 1233:1.0 1235:1.0 3132:1.0 3300:1.0 3636:1.0 3697:1.0 3717:1.0 3743:1.0 3812:1.0 4146:1.0 4581:0.3333333333333333
7 6:0.25 8:0.6 12:1.5 20:0.5 26:0.015384615384615385 38:1.0 46:0.5 48:3.0 54:2.0 98:0.2857142857142857 121:0.020833333333333332 131:1.0 134:0.14285714285714285 142:0.3333333333333333 165:1.0 203:0.14285714285714285 209:1.0 244:1.0 279:1.0 293:0.5 336:1.0 385:1.0 483:1.0 487:0.5 669:1.0 979:1.0 1249:1.0 1405:1.0 1742:0.5 2000:1.0 2227:1.0 3300:1.0 3307:0.3333333333333333 3361:1.0 3472:0.5 3552:1.0
7 8:0.4 20:0.75 24:0.2 48:1.0 62:0.2 64:0.2 71:1.0 100:0.1111111111111111 121:0.020833333333333332 137:1.0 141:0.14285714285714285 183:0.5 185:1.0 248:1.0 281:1.0 292:0.25 308:1.0 366:0.3333333333333333 428:1.0 437:1.0 519:1.0 534:1.0 970:1.0 1087:0.6 1149:1.0 1228:0.5 2075:1.0 3154:1.0 3296:1.0 3400:1.0 3698:1.0 5687:1.0 5787:1.0
7 8:0.4 12:2.0 20:0.25 46:0.5 48:1.0 55:0.14285714285714285 62:0.2 64:0.2 126:0.3333333333333333 197:0.5 386:1.0 1250:1.0 1468:1.0 1574:1.0 1738:1.0 2752:1.0 3761:0.5 5470:1.0 5606:1.0
7 8:0.2 12:0.5 20:0.25 64:0.2 93:0.08333333333333333 121:0.020833333333333332 231:1.0 235:1.0 307:0.3333333333333333 442:1.0 449:1.0 1087:0.2 1192:1.0 3364:1.0 3496:1.0 3943:1.0 3944:1.0 5034:1.0 5698:1.0 5921:1.0
7 17:0.2 48:1.0 596:1.0 1765:1.0 3307:0.16666666666666666 3364:1.0 3789:1.0 4273:1.0
7 8:0.4 12:1.0 20:0.25 37:0.3333333333333333 48:1.0 87:0.5 134:0.14285714285714285 141:0.14285714285714285 156:1.0 197:0.5 292:0.25 296:1.0 336:1.0 360:1.0 483:1.0 529:1.0 596:1.0 1830:1.0 1990:1.0 2044:1.0 3383:0.25 3633:0.5 4367:1.0 4782:1.0 5458:1.0
7 7:0.5 8:0.2 12:0.5 15:0.09090909090909091 20:0.5 48:1.0 75:0.5 100:0.1111111111111111 121:0.020833333333333332 134:0.42857142857142855 178:0.5 236:1.0 246:0.5 281:0.5 483:1.0 487:0.5 529:1.0 934:1.0 1432:1.0 2340:1.0 3127:1.0 3902:1.0 4198:1.0 4282:1.0 5137:1.0 5332:1.0
7 20:0.25 21:0.2 93:0.08333333333333333 121:0.020833333333333332 134:0.14285714285714285 179:1.0 952:1.0 1126:0.25 1361:0.5 1898:1.0 2437:1.0 3284:0.06666666666666667 3307:0.16666666666666666 3364:1.0 3664:1.0 3789:1.0
7 12:0.5 38:1.0 88:1.0 121:0.020833333333333332 190:0.16666666666666666 215:0.25 246:0.5 281:0.5 621:1.0 651:1.0 1269:1.0 1432:1.0 2340:1.0 2790:1.0 3775:1.0 3944:1.0 4198:1.0 4581:0.3333333333333333 5647:1.0 5996:1.0
7 7:0.5 8:0.2 12:0.5 14:1.0 20:0.75 38:1.0 55:0.14285714285714285 117:0.14285714285714285 137:1.0 187:1.0 202:0.25 251:1.0 330:1.0 401:1.0 437:1.0 484:1.0 679:1.0 1001:0.25 1198:1.0 1369:1.0 2057:1.0 2122:1.0 2177:0.5 3300:1.0 3307:0.16666666666666666 3326:1.0 3496:0.5 3614:1.0 3893:1.0 4595:1.0 5699:1.0
7 8:0.2 12:1.0 17:0.2 19:0.05263157894736842 20:0.25 21:0.2 26:0.015384615384615385 38:2.0 98:0.14285714285714285 116:0.2 121:0.020833333333333332 246:0.5 529:1.0 1372:1.0 2223:1.0 2292:1.0 3300:1.0 3361:1.0 3600:1.0 3662:1.0 4146:1.0
7 12:1.0 26:0.015384615384615385 38:1.0 116:0.2 126:0.3333333333333333 137:1.0 534:1.0 715:1.0 1269:1.0 1270:1.0 2227:1.0 2845:1.0 3300:1.0 3307:0.3333333333333333 3502:1.0 3662:1.0 3675:1.0
7 8:0.2 12:1.5 26:0.015384615384615385 38:2.0 48:1.0 137:1.0 231:1.0 2239:0.5 2394:0.5 3172:1.0 3190:1.0 3300:1.0 3307:0.16666666666666666 3421:0.5 3675:1.0 4235:1.0 4514:1.0 4810:1.0 5751:1.0
7 12:0.5 20:0.25 38:2.0 63:1.0 134:0.14285714285714285 216:1.0 236:1.0 281:0.5 650:1.0 1117:1.0 1588:1.0 1632:1.0 2223:1.0 3431:1.0 3502:1.0 3809:1.0 3869:1.0 4847:1.0
7 8:0.2 38:2.0 44:0.3333333333333333 51:1.0 116:0.2 205:1.0 292:0.25 650:1.0 870:1.0 1228:1.0 1588:1.0 1816:1.0 1970:1.0 2133:1.0 3184:1.0 3361:1.0 3502:1.0 3675:1.0 4591:1.0 4672:1.0
7 4:0.5 8:0.4 12:1.0 48:1.0 51:1.0 63:1.0 64:0.6 181:1.0 236:2.0 667:1.0 1016:0.5 1048:0.5 1639:1.0 1708:1.0 3421:0.5 3662:1.0 3680:1.0 3839:1.0 4111:1.0 5871:1.0
7 8:0.2 12:1.0 19:0.05263157894736842 21:0.2 38:2.0 44:0.3333333333333333 46:0.5 48:2.0 55:0.2857142857142857 134:0.14285714285714285 197:0.5 236:1.0 293:0.5 488:1.0 1251:1.0 2223:1.0 2845:1.0 3017:1.0 3117:1.0 3472:0.5 3501:1.0 3634:1.0 4793:1.0 4817:1.0 5190:1.0
7 12:1.0 20:0.25 26:0.015384615384615385 38:1.0 43:0.3333333333333333 48:1.0 55:0.14285714285714285 64:0.2 98:0.14285714285714285 101:0.5 134:0.2857142857142857 238:1.0 366:0.6666666666666666 543:1.0 790:1.0 999:1.0 1016:0.5 1067:1.0 1369:1.0 1564:1.0 3291:1.0 3307:0.16666666666666666 3337:1.0 3421:0.5 3761:0.5 3931:1.0 4121:1.0 4307:1.0 5098:1.0 5456:0.5
7 12:1.0 20:0.5 24:0.4 25:1.0 38:1.0 48:1.0 63:1.0 82:1.0 112:1.0 126:0.3333333333333333 147:1.0 198:0.5 210:1.0 253:1.0 379:1.0 401:1.0 449:1.0 647:1.0 689:1.0 828:1.0 1016:0.5 1225:1.0 2447:1.0 3300:1.0 3326:1.0 3421:0.5 3651:0.5 3940:1.0 4388:1.0 4646:1.0 4941:1.0 5470:1.0 5795:1.0
7 12:0.5 20:0.25 21:0.2 24:0.2 63:1.0 68:1.0 137:1.0 379:1.0 483:1.0 1146:1.0 1814:1.0 3060:1.0 3472:0.5 3733:1.0 3803:1.0 4062:1.0 4184:1.0
7 6:0.25 12:0.5 20:0.25 21:0.2 55:0.42857142857142855 64:0.4 188:1.0 241:1.0 249:1.0 279:0.5 311:1.0 437:1.0 611:0.3333333333333333 1269:1.0 3297:1.0 3300:1.0 3307:0.3333333333333333 3309:0.3333333333333333 3486:1.0 3502:1.0 4235:1.0 4795:1.0
7 4:0.5 11:0.5 12:0.5 17:0.2 20:0.25 24:0.2 48:1.0 141:0.14285714285714285 165:1.0 314:1.0 1059:1.0 1087:0.2 1588:1.0 3466:1.0 3698:1.0 3978:1.0 4021:1.0 4027:1.0
7 7:0.5 12:0.5 20:0.25 24:0.2 44:0.3333333333333333 48:1.0 63:1.0 64:0.4 71:1.0 75:0.5 121:0.020833333333333332 126:0.3333333333333333 134:0.14285714285714285 176:1.0 197:0.5 209:1.0 212:1.0 215:0.25 269:1.0 534:1.0 1721:1.0 3761:0.5 3893:1.0 4767:1.0 4875:1.0 5034:1.0 5650:1.0
7 8:0.2 11:0.5 17:0.2 24:0.2 121:0.020833333333333332 188:1.0 241:1.0 424:1.0 437:1.0 1083:1.0 1228:0.5 2792:1.0 3300:1.0 3511:1.0 3573:0.14285714285714285 3740:1.0 4618:1.0
7 7:1.0 9:0.16666666666666666 12:1.0 20:0.25 26:0.015384615384615385 38:1.0 55:0.14285714285714285 62:0.2 71:1.0 93:0.08333333333333333 100:0.1111111111111111 134:0.14285714285714285 141:0.14285714285714285 240:1.0 248:1.0 386:1.0 593:1.0 1750:1.0 2033:1.0 2063:1.0 2143:1.0 2177:0.5 2228:1.0 3074:1.0 3307:0.6666666666666666 3361:1.0 3364:1.0 3803:1.0 3994:1.0
7 44:0.3333333333333333 46:0.5 51:2.0 64:0.2 97:0.5 98:0.2857142857142857 121:0.020833333333333332 231:1.0 281:0.5 1235:1.0 1237:0.3333333333333333 1329:0.5 1414:1.0 1758:1.0 1950:1.0 2292:1.0 3300:1.0 3766:1.0 4003:1.0 4487:1.0 4778:0.5 4903:1.0
7 6:0.25 8:0.2 12:0.5 19:0.10526315789473684 24:0.2 25:1.0 121:0.020833333333333332 141:0.14285714285714285 218:1.0 669:1.0 1431:1.0 1764:1.0 1993:1.0 2143:1.0 2890:1.0 3300:1.0 3307:0.3333333333333333 3835:1.0 3874:1.0 4218:0.5 4731:1.0 5129:1.0 5220:1.0
7 8:0.2 12:1.5 20:0.25 48:2.0 57:1.0 64:0.2 121:0.020833333333333332 254:1.0 483:1.0 814:1.0 1235:1.0 1629:0.5 3307:0.16666666666666666 3308:1.0 3974:1.0 4534:1.0
7 12:1.5 20:0.25 24:0.2 48:1.0 64:0.2 97:0.5 117:0.14285714285714285 194:1.0 197:1.0 310:0.5 1372:1.0 1629:0.5 2841:1.0 3326:1.0 3497:1.0 3974:1.0
7 12:0.5 1548:1.0 3284:0.06666666666666667 3307:0.16666666666666666 4663:1.0 5722:1.0
7 4:0.5 7:0.5 8:0.2 9:0.16666666666666666 15:0.09090909090909091 17:0.2 26:0.015384615384615385 46:0.5 98:0.14285714285714285 118:1.0 183:0.5 197:0.5 212:1.0 218:1.0 236:2.0 354:0.5 579:1.0 1059:1.0 2301:1.0 3248:1.0 3307:0.16666666666666666 3606:1.0 3760:1.0 3893:1.0
7 12:0.5 55:0.14285714285714285 100:0.1111111111111111 134:0.14285714285714285 137:1.0 203:0.14285714285714285 236:1.0 238:1.0 246:0.5 442:1.0 827:0.5 1064:1.0 1421:1.0 3060:1.0 3307:0.16666666666666666 3515:1.0 3866:1.0
7 12:0.5 15:0.09090909090909091 17:0.2 19:0.05263157894736842 38:1.0 48:1.0 246:0.5 333:1.0 401:1.0 495:1.0 1126:0.25 1231:0.5 3300:1.0 3417:1.0 3421:0.5
7 7:0.5 12:1.0 20:0.25 22:1.0 24:0.2 45:1.0 48:2.0 64:0.2 88:1.0 98:0.14285714285714285 110:0.5 236:2.0 240:1.0 265:1.0 495:1.0 621:2.0 746:1.0 2177:0.5 2245:1.0 3297:1.0 3303:1.0 3307:0.16666666666666666
7 8:0.4 48:1.0 54:1.0 55:0.14285714285714285 80:1.0 93:0.08333333333333333 121:0.020833333333333332 134:0.14285714285714285 401:1.0 781:1.0 1764:1.0 1985:1.0 2577:1.0 2632:1.0 3309:0.3333333333333333 3661:1.0 3761:0.5 3856:1.0 3959:0.5 4767:1.0
7 12:1.0 20:0.25 51:1.0 133:0.5 134:0.14285714285714285 181:1.0 401:1.0 442:1.0 621:1.0 1863:1.0 1985:1.0 2133:1.0 3074:1.0 3472:0.5 4581:0.3333333333333333
7 8:0.6 19:0.05263157894736842 20:0.25 24:0.4 45:1.0 48:1.0 156:1.0 211:1.0 231:1.0 269:1.0 375:1.0 387:0.5 424:0.5 558:1.0 1213:1.0 1415:0.5 1580:1.0 2143:1.0 3062:1.0 3300:2.0 3307:0.5 3361:1.0 3416:1.0 3472:0.5 3651:0.5 4003:1.0 4334:1.0 4767:2.0 5126:1.0
7 6:0.25 7:0.5 19:0.05263157894736842 21:0.4 26:0.015384615384615385 38:1.0 40:1.0 98:0.14285714285714285 121:0.041666666666666664 134:0.14285714285714285 279:1.0 429:1.0 446:0.3333333333333333 3298:1.0 3300:1.0 3307:0.16666666666666666 3651:0.5 3974:1.0 4876:1.0
7 15:0.09090909090909091 17:0.2 20:0.25 22:1.0 38:1.0 68:1.0 96:0.16666666666666666 134:0.14285714285714285 138:1.0 176:1.0 596:1.0 1011:1.0 1726:1.0 1900:1.0 2029:1.0 2577:1.0 2967:1.0 3300:2.0 4091:0.5 4888:1.0
7 8:0.2 12:1.0 19:0.05263157894736842 20:0.25 38:1.0 46:0.5 55:0.2857142857142857 101:0.5 117:0.14285714285714285 121:0.020833333333333332 134:0.5714285714285714 153:1.0 194:1.0 198:0.5 205:1.0 210:1.0 216:1.0 359:0.5 401:1.0 437:1.0 548:0.5 579:1.0 791:1.0 2057:1.0 2133:1.0 2239:0.5 2695:1.0 3412:1.0 3472:0.5 3658:1.0 3974:1.0 4304:1.0 4318:1.0 5421:1.0 5422:1.0
7 6:0.25 7:0.5 12:2.0 17:0.2 45:1.0 121:0.041666666666666664 289:0.16666666666666666 402:2.0 487:0.5 548:0.5 872:1.0 981:1.0 1126:0.25 1250:1.0 2134:1.0 3284:0.06666666666666667 3300:1.0 3308:1.0 4823:0.5 5186:1.0
7 4:1.0 7:0.5 12:0.5 23:1.0 24:0.2 26:0.015384615384615385 48:1.0 55:0.14285714285714285 181:1.0 218:1.0 385:1.0 1329:0.5 1830:1.0 2249:1.0 3250:1.0 3284:0.06666666666666667 3300:2.0 3307:0.16666666666666666 3310:1.0 3369:1.0 3766:1.0 4380:1.0 4616:1.0
7 7:1.0 38:1.0 44:0.3333333333333333 64:0.2 97:0.5 98:0.2857142857142857 121:0.041666666666666664 134:0.14285714285714285 158:0.25 235:1.0 387:0.5 432:1.0 442:1.0 446:0.3333333333333333 479:1.0 534:1.0 682:1.0 1937:1.0 3296:1.0 3307:0.16666666666666666 3585:1.0 4146:1.0
7 7:0.5 8:0.2 11:0.5 12:0.5 15:0.09090909090909091 48:1.0 100:0.2222222222222222 121:0.020833333333333332 194:1.0 269:1.0 487:0.5 1001:0.25 1315:1.0 1346:0.2 1721:1.0 2099:1.0 2769:1.0 3074:1.0 3307:0.16666666666666666 3510:1.0 3684:1.0 4254:1.0 4548:1.0 4968:1.0 5352:1.0
7 7:0.5 12:0.5 17:0.2 46:0.5 51:1.0 62:0.2 64:0.2 98:0.14285714285714285 121:0.0625 127:1.0 134:0.14285714285714285 136:1.0 137:1.0 141:0.14285714285714285 181:1.0 231:1.0 265:1.0 296:1.0 359:0.5 387:0.5 410:1.0 446:0.3333333333333333 487:0.5 534:1.0 682:1.0 938:1.0 1049:1.0 1235:1.0 1361:0.5 3296:1.0 3307:0.16666666666666666 3421:0.5 3510:1.0 3639:1.0 3675:2.0 4487:1.0 4624:1.0 4977:1.0 5890:0.5
7 12:0.5 17:0.4 20:0.25 38:1.0 43:0.3333333333333333 51:1.0 117:0.14285714285714285 219:1.0 231:1.0 281:0.5 483:1.0 1001:0.25 1235:1.0 2283:1.0 3284:0.06666666666666667 3296:1.0 3300:1.0 4616:1.0 4695:1.0 5981:1.0
7 20:0.75 38:1.0 64:0.4 98:0.14285714285714285 100:0.1111111111111111 126:0.3333333333333333 153:1.0 269:1.0 310:0.5 652:1.0 664:0.5 1081:1.0 1253:1.0 1372:1.0 1549:0.5 2157:1.0 2838:1.0 3074:2.0 3300:1.0 3307:0.6666666666666666 3472:0.5 3496:0.5 3755:0.25
7 8:0.4 12:1.0 20:0.25 22:1.0 42:0.5 55:0.14285714285714285 64:0.2 88:1.0 122:0.5 176:1.0 190:0.16666666666666666 197:0.5 201:1.0 399:1.0 538:1.0 1270:1.0 1452:3.0 1632:1.0 2390:1.0 2438:1.0 3062:1.0 3300:1.0 3337:1.0 3765:1.0 5320:1.0 5362:1.0
7 6:0.25 7:0.5 12:1.0 38:1.0 48:1.0 51:1.0 55:0.14285714285714285 68:1.0 126:0.3333333333333333 137:1.0 218:1.0 281:1.0 307:0.3333333333333333 401:1.0 429:1.0 534:1.0 621:1.0 740:1.0 814:2.0 1043:0.5 1069:1.0 1269:1.0 1764:1.0 2177:0.5 2292:1.0 3300:1.0 3307:0.3333333333333333 3361:1.0 3416:1.0 3510:1.0 3940:1.0 4062:1.0 4819:1.0 5682:1.0
7 7:0.5 8:0.2 12:0.5 17:0.2 19:0.05263157894736842 20:0.25 24:0.2 25:1.0 62:0.2 64:0.2 93:0.08333333333333333 121:0.020833333333333332 134:0.14285714285714285 205:1.0 401:1.0 708:1.0 1117:1.0 1250:1.0 1985:1.0 2292:1.0 2301:1.0 2635:1.0 3307:0.3333333333333333 3326:1.0 3364:1.0 4547:1.0
7 12:0.5 21:0.2 46:0.5 48:1.0 51:1.0 64:0.4 95:1.0 121:0.020833333333333332 126:0.3333333333333333 134:0.14285714285714285 137:1.0 141:0.14285714285714285 185:1.0 190:0.16666666666666666 387:0.5 410:1.0 891:1.0 1233:1.0 1235:1.0 2177:0.5 3300:1.0 3361:1.0 3421:0.5 3510:1.0 3701:1.0 3761:0.5 3909:1.0 4130:1.0 4487:1.0 4567:1.0 4704:1.0 5034:1.0
7 12:1.0 55:0.14285714285714285 81:1.0 134:0.14285714285714285 137:1.0 387:0.5 621:1.0 1415:0.5 3296:1.0 3584:1.0 3795:1.0 3798:1.0 3799:1.0 4323:0.5
7 6:0.25 7:0.5 8:0.8 20:0.25 38:2.0 64:0.2 121:0.041666666666666664 129:1.0 140:1.0 188:1.0 196:0.5 284:1.0 442:2.0 443:0.5 483:1.0 740:1.0 1192:1.0 1202:1.0 3297:1.0 3300:1.0 3496:0.5 3999:1.0 4760:1.0
7 7:0.5 12:1.0 15:0.09090909090909091 19:0.05263157894736842 26:0.015384615384615385 38:2.0 46:0.5 64:0.2 117:0.14285714285714285 134:0.14285714285714285 154:0.3333333333333333 176:1.0 307:0.3333333333333333 384:1.0 386:2.0 401:1.0 442:1.0 790:1.0 827:0.5 875:1.0 907:1.0 1372:1.0 1402:1.0 1632:1.0 1943:1.0 2177:0.5 3300:1.0 3307:0.3333333333333333 3361:1.0 4308:1.0 4502:1.0 4600:1.0 4760:1.0 5472:1.0
7 6:0.25 8:0.2 12:1.5 20:0.5 45:1.0 48:1.0 64:0.4 73:1.0 112:1.0 122:0.5 136:1.0 153:1.0 201:1.0 429:1.0 442:1.0 529:1.0 550:0.5 651:1.0 703:1.0 1081:1.0 1253:1.0 2462:1.0 3292:1.0 3300:2.0 3307:0.16666666666666666 3331:1.0 3421:0.5 3519:1.0 3614:1.0 3620:0.125 3780:1.0 4556:1.0
7 12:1.0 18:0.25 20:1.0 24:0.2 58:0.3333333333333333 64:0.2 112:1.0 127:1.0 129:1.0 137:2.0 188:1.0 236:1.0 367:1.0 423:1.0 429:1.0 446:0.3333333333333333 593:1.0 621:1.0 715:1.0 878:1.0 1069:1.0 1084:1.0 1109:1.0 1269:1.0 1837:1.0 3298:1.0 3307:0.6666666666666666 3308:1.0 3326:2.0 3416:1.0 5238:1.0
7 12:0.5 18:0.25 26:0.015384615384615385 38:1.0 64:0.6 197:0.5 432:1.0 506:0.5 548:0.5 611:0.3333333333333333 1016:0.5 1943:1.0 2165:1.0 3307:0.3333333333333333 5680:1.0
7 26:0.015384615384615385 197:0.5 380:1.0 519:1.0 3307:0.16666666666666666 3398:1.0 4045:1.0
7 17:0.2 26:0.015384615384615385 43:0.3333333333333333 1421:1.0 2422:1.0 2834:1.0 3307:0.3333333333333333 3537:0.25 3647:1.0 3748:1.0 3870:1.0 4045:1.0
7 8:0.2 12:0.5 17:0.2 20:0.25 21:0.2 25:1.0 38:1.0 46:0.5 55:0.14285714285714285 122:0.5 134:0.14285714285714285 158:0.25 354:0.5 387:0.5 429:1.0 814:1.0 886:1.0 1880:1.0 2177:0.5 3248:1.0 3284:0.06666666666666667 3307:0.16666666666666666 3369:1.0 3818:1.0 5029:1.0
7 7:0.5 11:0.5 12:0.5 15:0.09090909090909091 19:0.05263157894736842 21:0.2 26:0.015384615384615385 38:2.0 64:0.2 88:1.0 121:0.020833333333333332 126:0.3333333333333333 181:2.0 212:1.0 236:1.0 293:0.5 356:1.0 499:1.0 534:1.0 656:1.0 814:1.0 2292:1.0 3074:1.0 3300:1.0 3307:0.3333333333333333 3327:1.0 3328:1.0 3371:1.0 4062:1.0 4487:1.0 4888:1.0 5411:1.0 5871:1.0
7 7:0.5 8:0.4 19:0.05263157894736842 46:0.5 126:0.3333333333333333 333:1.0 561:1.0 827:0.5 1232:1.0 1346:0.2 1434:1.0 2064:1.0 3307:0.16666666666666666 3361:1.0 3510:1.0 4027:1.0 4062:1.0 4130:1.0 5130:1.0
|
19aed547a0e3e99d7cba024337cafde5eb9f7abe | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH3/EX3.16/Ch03Ex16.sce | cdf254579273e566aca260e7810c604c0ebc2077 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 863 | sce | Ch03Ex16.sce | // Scilab code Ex3.16 : Pg:121 (2008)
clc;clear;
R = 20; // Radius of curvature of the spherical surface, cm
mu = 1.5; // Refractive index of the material
h = 5; // First height of the incident ray from the principal axis, cm
delta_f_h = h^2/(2*mu*(mu - 1)*R); // Spherical aberration of the spherical surface, cm
printf("\nFor h = %d, the Spherical aberration of the spherical surface = %4.2f cm", h, delta_f_h);
h = 7; // Second height of the incident ray from the principal axis, cm
delta_f_h = h^2/(2*mu*(mu - 1)*R); // Spherical aberration of the spherical surface, cm
printf("\nFor h = %d, the Spherical aberration of the spherical surface = %4.2f cm", h, delta_f_h);
// Result
// For h = 5, the Spherical aberration of the spherical surface = 0.83 cm
// For h = 7, the Spherical aberration of the spherical surface = 1.63 cm |
167fa8151a961918e0645ce5840e8e711d7f109c | b667735486117d0c7bb30d616ee6ed37032e947d | /online/labca3_7/documentation/xmlhelp/en_US/lcaNewMonitorValue.sci | 2dc3a0717774ff29a9b7c74d98c65081191039b9 | [
"EPICS",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | KIT-IBPT/MML | 6b8093aec421162c56ada56daa2d43a1b6977e62 | 4ad8cbb61a36a8b145cc6b17e0b5a3a6b4213c26 | refs/heads/master | 2021-08-28T07:39:45.693497 | 2021-08-04T13:14:01 | 2021-08-04T13:14:01 | 226,303,582 | 0 | 0 | null | 2019-12-06T10:28:11 | 2019-12-06T10:28:11 | null | UTF-8 | Scilab | false | false | 2,333 | sci | lcaNewMonitorValue.sci | function lcaNewMonitorValue
// Check if monitored PVs need to be read, i.
//
// Calling Sequence
//
//[flags] = lcaNewMonitorValue(pvs, type)
//
// Description
//
// Check if monitored PVs need to be read, i.e, if fresh data are
// available (e.g., due to initial connection or changes in value and/or
// severity status). Reading the actual data must be done using [1]lcaGet.
//
// Parameters
//
// pvs
// Column vector (in matlab: m x 1 cell- matrix) of m strings.
//
// type
// (optional argument) A string specifying the data type to be used
// for the channel access data transfer. The native type is used by
// default. See [2]here for more information.
//
// Note that monitors are specific to a particular data type and
// therefore lcaNewMonitorValue will only report the status for a
// monitor that had been established (by [3]lcaSetMonitor) with a
// matching type. Using the ``native'' type, which is the default,
// for both calls satisfies this condition.
//
// flags
// Column vector of flag values. A value of zero indicates that no
// new data are available - the monitored PV has not changed since
// it was last read (the data, that is, not the flag). A value of
// one indicates that new data are available for reading (lcaGet).
//
// NOTE: As of labCA version 3 the flags no longer report error
// conditions. Errors are now reported in the [4]standard way,
// i.e., by aborting the labCA call. Errors can be caught by the
// standard scilab try-catch-end construct. The [5]lcaLastError
// routine can be used to obtain status information for individual
// channels if lcaNewMonitorValue fails on a vector of PVs.
//
// See also [6]lcaNewMonitorWait.
//
// Examples
//
//try and(lcaNewMonitorValue(pvvec))
// vals = lcaGet(pvvec)
//catch
// errs = lcaLastError()
// handleErrs(errs)
//end
// __________________________________________________________________
//
//
// till 2018-02-28
//
//See also
//
// lcaGet 1. lcaGet
// lcaGet 2. lcaGet
// lcaSetMonitor 3. lcaSetMonitor
// Error 4. Error
// lcaLastError 5. lcaLastError
// lcaNewMonitorWait 6. lcaNewMonitorWait
endfunction
|
2d4bd76be8a924e43ce442eb2418044869038e58 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1172/CH3/EX3.14/Example3_14.sce | 9c3653a2b91c4d60d5e9ae0100fba5425ef5a69e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 599 | sce | Example3_14.sce | clc
//Given that
lambda1 = 6560 // wavelength in Angstrom
n1 = 1 // transition state no
n2 = 2 // transition state no
n3 = 3 // transition state no.
//Sample Problem 14 page No. 141
printf("\n\n\n # Problem 14 # \n")
printf("\n Standard formula Used \n\n For Balmer Series \n 1/lambda = R*(1-(1/n)^2) \n\n For Lyman series \n 1/lambda = R*((1/2)^2 -(1/n)^2)")
lambda2 = (n2^2 * n1^2) *(n3^2 - n2^2) /( (n2^2 - n1^2) * (n3^2 * n2^2)) * lambda1 //calculation of Wavelength of first line of Lyman series
printf ("\n \nWavelength of first line of Lyman series is %f Angstrom. ", lambda2 )
|
d91bc3930d2eedecdcc7c4180ad889dec76d9cf5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2204/CH4/EX4.9/ex4_9.sce | 38da5260cab1ba855730de048dbb6f6523aea0fb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 404 | sce | ex4_9.sce | //Exa 4.9
clc;
clear;
close;
// Given data
Vin=5;// in V
R1= 1;// in kΩ
R1= R1*10^3;// in Ω
CF= 0.1;// in µF
CF= CF*10^-6;// in F
f= 1;// in kHz
f= f *10^3;// in Hz
T= 1/f;// in sec
delta_Vout= Vin*T/(2*R1*CF);// in V
disp(delta_Vout,"The maximum change in output voltage in volts is : ")
S= 2*%pi*f*Vin;// in V/sec
disp(S*10^-6,"The minimum slew rate required in V/micro-sec is : ")
|
036360cf40d8649c94cf358d649927170dc40cc2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2175/CH16/EX16.15/16_15.sce | 151c739d6c4f04143c8b5493be1e3bb9de1493dc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 123 | sce | 16_15.sce | clc;
delta_t=277-17;
d=0.15;
alpha=1.32*(delta_t/d)^0.25;
disp("heat transfer coefficient=");
disp("W/m^2 K",alpha);
|
977b8e012137039b85cb54c18f75a67e70608dc0 | 9f9364e082d4bc2f7ee5cbd7a489642615821873 | /src/testCases/test2-10.tst | b42ce421f97e4cbc84796777b6ff26ab15b45b18 | [] | no_license | abrageddon/DLX-Opt | 4602617f83ddf8cb0fea83fecd2faa362849dfcd | 20038078f11a7ae67e7ab336e551e23966551290 | refs/heads/master | 2021-01-01T05:49:33.218016 | 2013-03-14T06:08:45 | 2013-03-14T06:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 492 | tst | test2-10.tst | main
var i, r;
function pow(b, e);
var t;
{
if e == 0 then return 1 fi;
if e == 1 then return b fi;
let t <- call pow(b, e / 2);
let t <- t * t;
if 2 * (e / 2) != e then
let t <- t * b
fi;
return t
};
function sumpow(b, n);
var i, s;
{
let s <- 0;
let i <- 0;
while i <= n do
let s <- s + call pow(b, i);
let i <- i + 1
od;
return s
};
{
call outputnum(call sumpow(2, 10));
call outputnum(call sumpow(3, 7));
call outputnum(call sumpow(5, 3))
}.
|
94400fc6cf1e08c1979477356f5d021610a233e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3311/CH16/EX16.4/Ex16_4.sce | 06b0cedd2956072e7c3493aafdac8c012dceab82 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,060 | sce | Ex16_4.sce | // chapter 16
// example 16.4
// Determine dc supply voltage and charging current
// page-997
clear;
clc;
// given
num_cell=18; // number of cells
AH_output=90; // in AH (AH output per cell)
T=10; // in Hrs
charging_time=8; // in Hrs
AH_efficiency=85; // in %
V_cell=2.4; // in V (voltage per cell)
r=0.1; // in ohm (internal resistance of battery)
// calculate
// since AH_efficiency=AH_output/AH_input, therefore we get
AH_input=AH_output/(AH_efficiency/100); // calculation of input AH per cell
// since AH_input=charging_current*charging_time, therefore we get
charging_current=AH_input/charging_time; // calculation of charging current
V_total=num_cell*V_cell; // calculation of total terminal voltage of 18 cells
V_drop=r*charging_current; // calculation of voltage drop across internal resistance
Edc=V_total+V_drop; // calculation of dc supply voltage
printf("\nThe charging current is \t %.2f A",charging_current);
printf("\nThe dc supply voltage is \t %.3f V",Edc);
// Note: the answers vary slightly due to precise calculation |
1fb587c3ca5448428556d8bdf5d7ea7751d757ab | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH18/EX18.18/Ex18_18.sce | addf75d75f56bb50d0eab74e4ad8f6e5e6f8c660 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 395 | sce | Ex18_18.sce | //Initilization of variables
m=50 //kg
vo=4 //m/s
vf=8 //m/s
t=6 //s
g=9.8 //m/s^2
r=0.8 //m
u=0.25 //coefficient of friction
I=30 //kg-m^2
//Calculations
Na=m*g //N
F=u*Na //N
//Angular Speeds
wo=vo/r //rad/s
wf=vf/r //rad/s
//Applying impulse momentum theorem
mb=(I*wf+m*vf*r-I*wo-m*vo*r+F*r*t)/(vo*r+g*r*t-vf*r) //kg
//Result
clc
printf('The mass of block B is %f kg',mb)
|
d15ad0da6137d5f21237925144c2ce1a1cf762f4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2054/CH1/EX1.64/ex1_64.sce | 62169c7455492ed482a09dbcc9c7aa8d3308ca64 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 299 | sce | ex1_64.sce | //Exa:1.64
clc;
clear;
close;
T_L=600;//in N-m
T_m=450;//in N-m
N=600;//in rpm
w_o=2*%pi*N/60;//in rad/sec
s=0.08;//slip
w=s*w_o;//in rad/sec
K=w/T_m;//Torque constant
J=(-10/K)/log(0.25);//in Kg-m^2
J_m=10;//in Kg-m^2
J_F=J-J_m;
disp(J_F,'Moment Of Inertia Of Flywheel (in Kg-m^2)='); |
51b82f9d944bb86efcd54cf20f1558977cdf6c1b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1958/CH9/EX9.1/Chapter9_example1.sce | 9bd2390443bcdc7a5ec5c449b20b9c835128334c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 418 | sce | Chapter9_example1.sce | clc
clear
//Input data
t=0.2//Thickness of film in micro m
r=1.25//Refractive index of liquid
w=[4000,5000]//Range of wavelength in Angstrom
q=35//Angle observed in degrees
//Calculations
u=asind(sind(q)/r)//Angle of reflection in degrees
w1=(2*t*10^-6*r*cosd(u))/10^-10//Wavelength in Angstrom
w2=w1/2//Wavelength in Angstrom
//Output
printf('Wavelength absent in reflected light is %i Angstrom',w2)
|
649a43a2d2832dd88656ac83449c11d35e2b98d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2561/CH8/EX8.10/Ex8_10.sce | 1425a94fb8bab6fe8a42cd72efd908733e762da6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 596 | sce | Ex8_10.sce | //Ex8_10
clc
fo=150
disp("fo= "+string(fo)+" Hz")//Central frequency of band pass filter
BW=15
disp("BW= "+string(BW)+" Hz")// Upper cut-off frequency or 3-dB bandwidth
Q=fo/BW // Quality factor
disp("Q= "+string(Q))
C=0.05*10^(-6) // Choosing value of capacitor same as in book
disp("C="+string(C)+"farad")
R=sqrt(2)/(2*%pi*fo*C)
disp("R=sqrt(2)/(2*%pi*fo*C)="+string(R)+ " ohm") // resistance value for filter design
Am=5-(sqrt(2)/Q) // formulae
disp("Am=5-(sqrt(2)/Q)="+string(Am)) // Midband gain
Abp=Am/(5-Am)
disp("Abp=Am/(5-Am)="+string(Abp)) // Central frequency gain
|
be41da5f0927b7fe7e0b3269a988f6d768bc25fe | 449d555969bfd7befe906877abab098c6e63a0e8 | /1691/CH2/EX2.28/exmp2_28.sce | a6935cd00a90666ff4bd506fef6423b445627c76 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 193 | sce | exmp2_28.sce | //Example 2.28
clc
leq=500+5000+600
format(5)
disp(leq,"L_eq(in uH) = L1 + L2 + 2M =")
f=(1/(2*%pi*sqrt(150*6100*10^-18)))*10^-3
format(9)
disp(f,"f(in kHz) = 1 / 2*pi*sqrt(C*L_eq) =")
|
a56d81864c9c11ed071a56bddbe12f78ca73f11f | 19499d51e6cb102cb79dfaac1988c6d08b5e8403 | /src/Maple/GeoProver.tst | 2d51ed48c242feb6cb0952ea6c8b130dcbff3ba0 | [] | no_license | hg-graebe/GeoProver | d9a5858a4c26dd2720ca6542bd409623d979ab4f | 94adbfdd0308d92fbfca8c88698c226bfe1fa662 | refs/heads/master | 2021-01-16T18:45:21.145047 | 2018-04-02T08:08:11 | 2018-04-02T08:08:11 | 10,639,777 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 9,437 | tst | GeoProver.tst | # GeoProver test file for Maple, created on Jan 18 2003
read("GeoProver.mpl"):
read("supp.mpl"):
with(geoprover):
interface(prettyprint=0):
# Example Arnon
#
# The problem:
# Let $ABCD$ be a square and $P$ a point on the line parallel to $BD$
# through $C$ such that $l(BD)=l(BP)$, where $l(BD)$ denotes the
# distance between $B$ and $D$. Let $Q$ be the intersection point of
# $BF$ and $CD$. Show that $l(DP)=l(DQ)$.
#
# The solution:
vars_:=List(x1, x2, x3);
# Points
A_:=Point(0,0); B_:=Point(1,0); P_:=Point(x1,x2);
# coordinates
D_:=rotate(A_,B_,1/2);
C_:=par_point(D_,A_,B_);
Q_:=varpoint(D_,C_,x3);
# polynomials
polys_:=List(on_line(P_,par_line(C_,pp_line(B_,D_))),
eq_dist(B_,D_,B_,P_), on_line(Q_,pp_line(B_,P_)));
# conclusion
con_:=eq_dist(D_,P_,D_,Q_);
# solution
gb_:=geo_gbasis(polys_,vars_);
result_:=geo_normalf(con_,gb_,vars_);
# Example CircumCenter_1
#
# The problem:
# The intersection point of the midpoint perpendiculars is the
# center of the circumscribed circle.
#
# The solution:
parameters_:=List(a1, a2, b1, b2, c1, c2);
# Points
A_:=Point(a1,a2);
B_:=Point(b1,b2);
C_:=Point(c1,c2);
# coordinates
M_:=intersection_point(p_bisector(A_,B_),
p_bisector(B_,C_));
# conclusion
result_:=List( eq_dist(M_,A_,M_,B_), eq_dist(M_,A_,M_,C_) );
# Example EulerLine_1
#
# The problem:
# Euler's line: The center $M$ of the circumscribed circle,
# the orthocenter $H$ and the barycenter $S$ are collinear and $S$
# divides $MH$ with ratio 1:2.
#
# The solution:
parameters_:=List(a1, a2, b1, b2, c1, c2);
# Points
A_:=Point(a1,a2);
B_:=Point(b1,b2);
C_:=Point(c1,c2);
# coordinates
S_:=intersection_point(median(A_,B_,C_),median(B_,C_,A_));
M_:=intersection_point(p_bisector(A_,B_),
p_bisector(B_,C_));
H_:=intersection_point(altitude(A_,B_,C_),altitude(B_,C_,A_));
# conclusion
result_:=List(is_collinear(M_,H_,S_), sqrdist(S_,fixedpoint(M_,H_,1/3)));
# Example Brocard_3
#
# The problem:
# Theorem about the Brocard points:
# Let $\Delta\,ABC$ be a triangle. The circles $c_1$ through $A,B$ and
# tangent to $g(AC)$, $c_2$ through $B,C$ and tangent to $g(AB)$, and
# $c_3$ through $A,C$ and tangent to $g(BC)$ pass through a common
# point.
#
# The solution:
parameters_:=List(u1, u2);
# Points
A_:=Point(0,0);
B_:=Point(1,0);
C_:=Point(u1,u2);
# coordinates
M1_:=intersection_point(altitude(A_,A_,C_),p_bisector(A_,B_));
M2_:=intersection_point(altitude(B_,B_,A_),p_bisector(B_,C_));
M3_:=intersection_point(altitude(C_,C_,B_),p_bisector(A_,C_));
c1_:=pc_circle(M1_,A_);
c2_:=pc_circle(M2_,B_);
c3_:=pc_circle(M3_,C_);
P_:=other_cc_point(B_,c1_,c2_);
# conclusion
result_:= on_circle(P_,c3_);
# Example Feuerbach_1
#
# The problem:
# Feuerbach's circle or nine-point circle: The midpoint $N$ of $MH$ is
# the center of a circle that passes through nine special points, the
# three pedal points of the altitudes, the midpoints of the sides of the
# triangle and the midpoints of the upper parts of the three altitudes.
#
# The solution:
parameters_:=List(u1, u2, u3);
# Points
A_:=Point(0,0);
B_:=Point(u1,0);
C_:=Point(u2,u3);
# coordinates
H_:=intersection_point(altitude(A_,B_,C_),altitude(B_,C_,A_));
D_:=intersection_point(pp_line(A_,B_),pp_line(H_,C_));
M_:=intersection_point(p_bisector(A_,B_),
p_bisector(B_,C_));
N_:=midpoint(M_,H_);
# conclusion
result_:=List( eq_dist(N_,midpoint(A_,B_),N_,midpoint(B_,C_)),
eq_dist(N_,midpoint(A_,B_),N_,midpoint(H_,C_)),
eq_dist(N_,midpoint(A_,B_),N_,D_) );
# Example FeuerbachTangency_1
#
# The problem:
# For an arbitrary triangle $\Delta\,ABC$ Feuerbach's circle (nine-point
# circle) is tangent to its 4 tangent circles.
#
# The solution:
vars_:=List(x1, x2);
parameters_:=List(u1, u2);
# Points
A_:=Point(0,0);
B_:=Point(2,0);
C_:=Point(u1,u2);
P_:=Point(x1,x2);
# coordinates
M_:=intersection_point(p_bisector(A_,B_), p_bisector(B_,C_));
H_:=intersection_point(altitude(A_,B_,C_),altitude(B_,C_,A_));
N_:=midpoint(M_,H_);
c1_:=pc_circle(N_,midpoint(A_,B_));
Q_:=pedalpoint(P_,pp_line(A_,B_));
# polynomials
polys_:=List(on_bisector(P_,A_,B_,C_), on_bisector(P_,B_,C_,A_));
# conclusion
con_:=is_cc_tangent(pc_circle(P_,Q_),c1_);
# solution
gb_:=geo_gbasis(polys_,vars_);
result_:=geo_normalf(con_,gb_,vars_);
# Example GeneralizedFermatPoint_1
#
# The problem:
# A generalized theorem about Napoleon triangles:
# Let $\Delta\,ABC$ be an arbitrary triangle and $P,Q$ and $R$ the third
# vertex of isosceles triangles with equal base angles erected
# externally on the sides $BC, AC$ and $AB$ of the triangle. Then the
# lines $g(AP), g(BQ)$ and $g(CR)$ pass through a common point.
#
# The solution:
vars_:=List(x1, x2, x3, x4, x5);
parameters_:=List(u1, u2, u3);
# Points
A_:=Point(0,0);
B_:=Point(2,0);
C_:=Point(u1,u2);
P_:=Point(x1,x2);
Q_:=Point(x3,x4);
R_:=Point(x5,u3);
# polynomials
polys_:=List(eq_dist(P_,B_,P_,C_),
eq_dist(Q_,A_,Q_,C_),
eq_dist(R_,A_,R_,B_),
eq_angle(R_,A_,B_,P_,B_,C_),
eq_angle(Q_,C_,A_,P_,B_,C_));
# conclusion
con_:=is_concurrent(pp_line(A_,P_), pp_line(B_,Q_), pp_line(C_,R_));
# solution
sol_:=geo_solve(polys_,vars_);
result_:=geo_eval(con_,sol_);
# Example TaylorCircle_1
#
# The problem:
# Let $\Delta\,ABC$ be an arbitrary triangle. Consider the three
# altitude pedal points and the pedal points of the perpendiculars from
# these points onto the the opposite sides of the triangle. Show that
# these 6 points are on a common circle, the {\em Taylor circle}.
#
# The solution:
parameters_:=List(u1, u2, u3);
# Points
A_:=Point(u1,0);
B_:=Point(u2,0);
C_:=Point(0,u3);
# coordinates
P_:=pedalpoint(A_,pp_line(B_,C_));
Q_:=pedalpoint(B_,pp_line(A_,C_));
R_:=pedalpoint(C_,pp_line(A_,B_));
P1_:=pedalpoint(P_,pp_line(A_,B_));
P2_:=pedalpoint(P_,pp_line(A_,C_));
Q1_:=pedalpoint(Q_,pp_line(A_,B_));
Q2_:=pedalpoint(Q_,pp_line(B_,C_));
R1_:=pedalpoint(R_,pp_line(A_,C_));
R2_:=pedalpoint(R_,pp_line(B_,C_));
# conclusion
result_:=List( is_concyclic(P1_,P2_,Q1_,Q2_),
is_concyclic(P1_,P2_,Q1_,R1_),
is_concyclic(P1_,P2_,Q1_,R2_));
# Example Miquel_1
#
# The problem:
# Miquels theorem: Let $\Delta\,ABC$ be a triangle. Fix arbitrary points
# $P,Q,R$ on the sides $AB, BC, AC$. Then the three circles through each
# vertex and the chosen points on adjacent sides pass through a common
# point.
#
# The solution:
parameters_:=List(c1, c2, u1, u2, u3);
# Points
A_:=Point(0,0);
B_:=Point(1,0);
C_:=Point(c1,c2);
# coordinates
P_:=varpoint(A_,B_,u1);
Q_:=varpoint(B_,C_,u2);
R_:=varpoint(A_,C_,u3);
X_:=other_cc_point(P_,p3_circle(A_,P_,R_),p3_circle(B_,P_,Q_));
# conclusion
result_:=on_circle(X_,p3_circle(C_,Q_,R_));
# Example PappusPoint_1
#
# The problem:
# Let $A,B,C$ and $P,Q,R$ be two triples of collinear points. Then by
# the Theorem of Pappus the intersection points $g(AQ)\wedge g(BP),
# g(AR)\wedge g(CP)$ and $g(BR)\wedge g(CQ)$ are collinear.
#
# Permuting $P,Q,R$ we get six such {\em Pappus lines}. Those
# corresponding to even resp. odd permutations are concurrent.
#
# The solution:
parameters_:=List(u1, u2, u3, u4, u5, u6, u7, u8);
# Points
A_:=Point(u1,0);
B_:=Point(u2,0);
P_:=Point(u4,u5);
Q_:=Point(u6,u7);
# coordinates
C_:=varpoint(A_,B_,u3);
R_:=varpoint(P_,Q_,u8);
# conclusion
result_:=is_concurrent(pappus_line(A_,B_,C_,P_,Q_,R_),
pappus_line(A_,B_,C_,Q_,R_,P_),
pappus_line(A_,B_,C_,R_,P_,Q_));
# Example IMO/36_1
#
# The problem:
# Let $A,B,C,D$ be four distinct points on a line, in that order. The
# circles with diameters $AC$ and $BD$ intersect at the points $X$ and
# $Y$. The line $XY$ meets $BC$ at the point $Z$. Let $P$ be a point on
# the line $XY$ different from $Z$. The line $CP$ intersects the circle
# with diameter $AC$ at the points $C$ and $M$, and the line $BP$
# intersects the circle with diameter $BD$ at the points $B$ and
# $N$. Prove that the lines $AM, DN$ and $XY$ are concurrent.
#
# The solution:
vars_:=List(x1, x2, x3, x4, x5, x6);
parameters_:=List(u1, u2, u3);
# Points
X_:=Point(0,1);
Y_:=Point(0,-1);
M_:=Point(x1,x2);
N_:=Point(x3,x4);
# coordinates
P_:=varpoint(X_,Y_,u3);
Z_:=midpoint(X_,Y_);
l_:=p_bisector(X_,Y_);
B_:=line_slider(l_,u1);
C_:=line_slider(l_,u2);
A_:=line_slider(l_,x5);
D_:=line_slider(l_,x6);
# polynomials
polys_:=List(is_concyclic(X_,Y_,B_,N_), is_concyclic(X_,Y_,C_,M_),
is_concyclic(X_,Y_,B_,D_), is_concyclic(X_,Y_,C_,A_),
is_collinear(B_,P_,N_), is_collinear(C_,P_,M_));
# constraints
nondeg_:=List(x5-u2,x1-u2,x6-u1,x3-u1);
# conclusion
con_:=is_concurrent(pp_line(A_,M_),pp_line(D_,N_),pp_line(X_,Y_));
# solution
sol_:=geo_solveconstrained(polys_,vars_,nondeg_);
result_:=geo_eval(con_,sol_);
# Example IMO/43_2
#
# The problem:
#
# No verbal problem description available
#
# The solution:
vars_:=List(x1, x2);
parameters_:=List(u1);
# Points
B_:=Point(-1,0);
C_:=Point(1,0);
# coordinates
O_:=midpoint(B_,C_);
gamma_:=pc_circle(O_,B_);
D_:=circle_slider(O_,B_,u1);
E_:=circle_slider(O_,B_,x1);
F_:=circle_slider(O_,B_,x2);
A_:=sym_point(B_,pp_line(O_,D_));
J_:=intersection_point(pp_line(A_,C_), par_line(O_, pp_line(A_,D_)));
m_:=p_bisector(O_,A_);
P1_:=pedalpoint(J_,m_);
P2_:=pedalpoint(J_,pp_line(C_,E_));
P3_:=pedalpoint(J_,pp_line(C_,F_));
# polynomials
polys_:=List(on_line(E_,m_), on_line(F_,m_));
# constraints
nondegs_:=List(x1-x2);
# conclusion
con_:=List(eq_dist(J_,P1_,J_,P2_), eq_dist(J_,P1_,J_,P3_));
# solution
sol_:=geo_solveconstrained(polys_,vars_,nondegs_);
result_:=geo_simplify(geo_eval(con_,sol_));
quit;
|
7fa36df29ac9e68ca474f33cb38f006f3545df45 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1394/CH21/EX21.3.1/Ex21_3_1.sce | dbd8ffa2a0ee8c572022e12dfe6e1e1306814870 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 335 | sce | Ex21_3_1.sce |
clc
//initialization of variables
d =1000 // kg/m^3
h = 30 // W/m^2-C-sec
Hvap = 2300*10^3 // J/kg
T = 75 // C
Ti = 31 // C
l = 0.04 // m
epsilon = 0.36
c = 3600 // sec/hr
t1 = (Hvap/h)*(1/(T-Ti))*(l*epsilon*d)// sec
t = t1/c // in hr
//Results
printf("The time taken for drying is %.f hr",t)// answer wrong in textbook
|
2d0c3fe0b5f13a77f1c744e39558c2fc3bb05005 | 361bde95a22190692c954b03dcc9add9c73f6646 | /ASSIGNMENT-3/LSF.sce | c86b89b0f6412903feca9cd0eabb641c16e6037d | [] | no_license | madhuri1234567/SCILAB | ad80337ea4211ce7c2fc2f8dc44763cdc34738c0 | 29a6a879f90e679ce5b4f560436fe4b186257052 | refs/heads/master | 2020-12-29T21:13:27.352657 | 2020-04-11T09:01:18 | 2020-04-11T09:01:18 | 238,733,957 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 339 | sce | LSF.sce | clc;clear;close
// FOR ANY SYSTEM AX=B & FOR ANY NO. OF EXPERIMENTS
A=input("enter the matrix")
disp(A,'A=');
Y=input("enter the column matrix")
disp(Y,'Y=');
X=((A'*A)^-1)*(A'*Y); //FROM NORMAL EQ.
disp(X,'X=');
M=X(1,1);
C=X(2,1);
disp(M,'M=');
disp(C,'C=');
disp('The line of best fit is Y=MT+C');
|
8a3c91ed2113e23b2d4d2e4fbb0b38b4a0229c22 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2273/CH5/EX5.11/ex5_11.sce | 21cd8ec1be51c1058c7da30a2c3c0964a555e1e7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,077 | sce | ex5_11.sce | //find sending end voltage and current and power and efficiency
clear;
clc;
//soltion
//FUNCTIONS
function [z]=rxr(A,B)//Function for the multiplication of rectangular
z(1)=A(1)*B(1)
z(2)=A(2)+B(2)
endfunction
function [a]=r2p(z)//Function for rectangular to polar
a=z(1)*complex(cosd(z(2)),sind(z(2)))
endfunction
//given
P=50*10^6;//VA
Vrl=110*1000;//V
pf=0.8//power factir
Vr=[Vrl/sqrt(3) 0];
Ir=[P/(sqrt(3)*Vrl) -acosd(pf)];
A=[0.98 3];
B=[110 75];
C=[0.0005 80];
D=[0.98 3];
Z1=rxr(A,Vr);
Z2=rxr(B,Ir);
AV=r2p(Z1);
BI=r2p(Z2);
Vs=AV+BI;
theta1=atand((imag(Vs)/real(Vs)));
printf("Sending end voltage= %.0f V\n",abs(Vs));
Y1=rxr(C,Vr);
Y2=rxr(D,Ir);
CV=r2p(Y1);
DI=r2p(Y2);
Is=CV+DI;
theta2=atand(imag(Is)/real(Is));
printf("Magnitude of sending end current= %d A\n",abs(Is));
phis=theta2-theta1;
Ps=3*abs(Vs)*abs(Is)*cosd(phis);
printf("Sending end power=%.1fMW\n",floor(Ps/10^5)/10);
Pr=P*pf;
n=Pr*100/(floor(Ps/10^5)*10^5);
printf("Transmission Efficiency= %.1f percent",n);
//The value of voltage is 87427 V
|
649ae4d02eeb4afbafba4a92089dbe80b1d7a7ee | 1882776b738d554e2d186ea80d031b9fd423c9be | /Makefile.tst | 02b8f57d5b09d4f852cb33fb5446a6ea99953fdf | [] | no_license | tokenrove/dentata-beta | 2571a3657db944da5908d56cf7a91aace7190fab | 20c6e9266e5710a63e62940b08dcd4dc0579dc75 | refs/heads/master | 2021-01-20T09:41:51.005495 | 2017-02-13T02:09:23 | 2017-02-13T02:09:23 | 14,069,809 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 779 | tst | Makefile.tst | #
# Makefile.tst
# Created: Mon Jan 8 07:33:59 2001 by tek@wiw.org
# Revised: Tue Jun 26 20:53:10 2001 by tek@wiw.org
# Copyright 2001 Julian E. C. Squires (tek@wiw.org)
# This program comes with ABSOLUTELY NO WARRANTY.
# $Id$
#
#
TESTTOOLS=./tests/test-set
GENERATEDTESTS=./tests/memcptst ./tests/imagetst ./tests/colortst
TESTS=./tests/test-set.sh
PROFILES=
check: $(TESTTOOLS) $(TESTS) $(GENERATEDTESTS)
profile: $(PROFILES)
$(TESTS) $(PROFILES): libdentata.a
./$@
$(GENERATEDTESTS): %: %.o libdentata.a
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ldentata
./$@
$(TESTTOOLS): %: %.o libdentata.a
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -ldentata
testsclean:
$(RM) ./tests/*~ ./tests/*.o
testsdistclean: testsclean
$(RM) $(GENERATEDTESTS) $(TESTTOOLS)
# EOF Makefile.tst
|
34bf2b4cc1f5564be5449332680bbb853d2011f7 | 717ddeb7e700373742c617a95e25a2376565112c | /3044/CH10/EX10.12/Ex10_12.sce | 744a0da33f9f646b977b3120b69cef8a38d5aab8 | [] | 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 | 692 | sce | Ex10_12.sce | // Variable declaration
alpha = 0.05
n = 400
chi_sq_thr = 16.919
// Calculation
q = [22.4,42.8,65.2,74.8,69.2,52.8,34.8,20.0,10.0,8.0] // list of expected frequency
p = [18,47,76,68,74,46,39,15,9,8] // list of entries
chi_sq_prt = 0
for i = 1:10
chi_sq_prt = chi_sq_prt + (p(i)-q(i))^2/q(i)
end
// Result
printf ( "Practical chi square value: %.3f",chi_sq_prt)
if(chi_sq_thr > chi_sq_prt) then
printf ( "null hypothesis can not be rejected")
printf ( "Poisson distribution provides a good fit at level alphha=0.05")
else
printf ( "null hypothesis must be rejected")
printf ( "Poisson distribution does not provide a good fit at level alphha=0.05")
end
|
07f9e380314854bac3c76f363002ab5108fb0564 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/DEPENDENCIES/Example2_1b.sce | 9d9923e9d5ca9f507e02445454c57bebed489ff1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 287 | sce | Example2_1b.sce | exec('Example2_1a.sce', -1)
clc
//Sample Problem 2-1b
printf("\n**Sample Problem 2-1b**\n")
time = distance_covered / velocity //in hr
delta_t = time + next_time /60 //in hr
printf("Time interval from the begining of the drive to the arrival at the station is %f hr", delta_t) |
a4ea7d86b6b69e389cf2151a89fe4d6c06df8f10 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.12_13.tst | 6ecfb47d6ecaa2368bb553f7e44653073cc5503d | [] | 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 | 20,609 | tst | bow.12_13.tst | 12 4:1.0 15:0.038461538461538464 28:0.14285714285714285 29:0.5 60:0.03125 78:1.0 256:0.5 505:0.25 614:1.0 653:0.3333333333333333 657:1.0 1127:1.0 3267:1.0
12 13:0.05263157894736842 14:0.5 15:0.038461538461538464 18:1.0 36:1.0 39:0.2 57:1.0 60:0.03125 164:1.0 180:0.25 192:1.0 218:1.0 505:0.25 517:1.0 518:1.0 603:0.5 660:1.0 755:1.0 798:1.0 899:1.0 1318:1.0 1659:1.0 3377:1.0 3582:1.0 4009:1.0 4015:1.0
12 39:0.2 57:2.0 421:0.5 442:1.0 1240:1.0 1962:1.0
12 1:0.25 15:0.038461538461538464 26:0.08333333333333333 30:1.0 39:0.2 57:1.0 96:0.2 210:0.5 253:0.2 343:1.0 419:1.0 439:1.0 543:1.0 633:1.0 649:1.0 1348:1.0 1503:1.0 1638:1.0 1706:1.0 1983:0.5 2010:0.5 2675:1.0 2867:1.0 3438:1.0 3805:1.0 4130:1.0 5031:1.0
12 12:1.0 13:0.05263157894736842 14:1.0 15:0.038461538461538464 34:0.08333333333333333 57:1.0 135:1.0 210:0.5 327:1.0 706:1.0 1498:1.0 2296:1.0 4601:1.0
12 4:1.0 13:0.05263157894736842 15:0.07692307692307693 36:1.0 39:0.2 55:1.0 57:1.0 60:0.03125 87:0.25 217:0.3333333333333333 218:1.0 262:0.5 291:0.5 348:0.25 359:0.3333333333333333 381:0.25 493:0.3333333333333333 516:1.0 595:1.0 606:0.3333333333333333 611:0.5 681:1.0 706:1.0 1321:1.0 2343:0.5 3400:1.0 3428:1.0 5179:1.0 5252:1.0
12 1:0.25 14:0.5 23:1.0 39:0.2 55:0.5 60:0.03125 135:1.0 160:1.0 263:0.25 704:1.0 952:1.0 1264:1.0 1809:1.0 2084:1.0 2386:1.0 5252:1.0
12 4:1.0 28:0.14285714285714285 30:1.0 34:0.08333333333333333 55:1.0 74:0.14285714285714285 87:0.5 129:0.25 151:0.25 184:1.0 198:1.0 487:0.3333333333333333 490:2.0 505:0.25 677:1.0 679:1.0 953:1.0 1817:1.0 2058:1.0 3208:1.0 3413:1.0 3870:1.0
12 1:0.25 4:1.0 28:0.14285714285714285 35:0.6666666666666666 39:0.2 96:0.2 182:1.0 254:0.07692307692307693 263:0.25 304:0.5 452:1.0 586:1.0 657:1.0 1254:0.5 1541:0.5 2555:1.0 4175:1.0
12 13:0.05263157894736842 15:0.11538461538461539 39:0.2 75:1.0 102:0.09090909090909091 134:0.5 154:1.0 160:1.0 260:0.5 653:0.3333333333333333 677:1.0 679:1.0 701:1.0 898:0.25 899:1.0 946:1.0 1247:1.0 1700:1.0
12 4:1.0 28:0.14285714285714285 57:1.0 217:0.3333333333333333 218:1.0 628:2.0 2960:1.0 5297:1.0
12 14:0.5 15:0.07692307692307693 34:0.08333333333333333 37:0.25 57:1.0 96:0.4 151:0.25 227:1.0 263:0.25 772:1.0 870:1.0 946:1.0 1310:1.0 1448:0.5 2081:1.0 3803:1.0 4636:1.0
12 1:0.125 14:1.0 30:1.0 34:0.08333333333333333 39:0.2 75:1.0 160:1.0 180:0.25 218:1.0 293:1.0 400:1.0 475:0.5 493:0.3333333333333333 738:1.0 1354:1.0 1700:1.0 2062:1.0
12 15:0.07692307692307693 30:1.0 37:0.25 55:0.5 60:0.03125 95:1.0 194:1.0 256:0.5 266:1.0 359:0.3333333333333333 394:1.0 398:0.2 429:1.0 439:1.0 468:1.0 632:0.3333333333333333 1210:1.0 1321:1.0 1483:1.0 1521:1.0 1545:1.0 2062:1.0 2106:1.0 2973:1.0 3226:1.0 3896:1.0
12 1:0.125 4:1.0 13:0.05263157894736842 15:0.07692307692307693 19:0.5 37:0.25 55:0.5 60:0.03125 87:0.5 108:1.0 207:1.0 246:0.5 256:0.5 259:1.0 348:0.5 452:1.0 546:0.3333333333333333 632:0.3333333333333333 704:1.0 1126:1.0 1427:0.5 1573:1.0 1595:1.0 2081:3.0 2321:1.0 2335:1.0 2537:1.0
12 1:0.25 13:0.05263157894736842 39:0.2 55:0.5 130:0.5 157:1.0 183:0.5 355:0.5 409:0.1 452:1.0 635:0.5 660:1.0 898:0.25 899:1.0 965:1.0 1037:1.0 2271:1.0 2374:0.5
12 4:1.0 13:0.05263157894736842 14:0.5 15:0.07692307692307693 39:0.2 55:1.5 60:0.03125 72:0.3333333333333333 246:0.5 313:1.0 352:0.3333333333333333 548:1.0 801:1.0 831:0.5 899:1.0 942:1.0 1151:1.0 1254:0.5 1321:1.0 1563:0.3333333333333333 2245:1.0 2263:1.0
12 1:0.125 4:1.0 28:0.14285714285714285 35:0.3333333333333333 36:1.0 55:0.5 60:0.03125 76:0.2 96:0.4 102:0.09090909090909091 180:0.25 217:0.3333333333333333 218:1.0 297:0.3333333333333333 336:0.5 788:1.0 1227:1.0 1234:1.0 1503:1.0 1825:1.0 2151:1.0 2371:1.0 4164:1.0 4531:1.0 5346:1.0
12 15:0.038461538461538464 62:1.0 64:0.5 76:0.2 352:0.3333333333333333 635:0.5 1195:1.0 1267:1.0 1391:1.0 1815:1.0 2263:1.0
12 1:0.125 14:0.5 15:0.038461538461538464 29:0.5 55:0.5 64:0.5 109:1.0 198:1.0 217:0.3333333333333333 218:1.0 254:0.07692307692307693 262:0.5 326:0.5 755:1.0 954:1.0 1033:1.0 1689:1.0 3351:1.0 3480:0.5
12 14:0.5 57:1.0 151:0.25 189:1.0 253:0.2 606:0.3333333333333333 607:0.3333333333333333 1554:1.0 2879:1.0 3456:1.0 3612:1.0
12 4:1.0 13:0.05263157894736842 15:0.038461538461538464 35:0.3333333333333333 37:0.25 39:0.2 76:0.2 80:0.4 129:0.5 140:1.0 151:0.25 157:1.0 158:1.0 189:1.0 198:1.0 260:0.5 721:1.0 1526:1.0 1961:1.0 2068:1.0 3789:1.0
12 1:0.125 4:1.0 15:0.07692307692307693 35:0.3333333333333333 39:0.2 55:1.0 64:0.5 76:0.4 87:0.25 129:0.25 189:1.0 253:0.2 254:0.07692307692307693 290:1.0 291:0.5 331:1.0 332:1.0 359:0.3333333333333333 607:0.3333333333333333 741:1.0 994:1.0 1508:1.0 1952:1.0 2319:1.0 2320:1.0 2851:1.0 3575:1.0 3667:1.0 5168:1.0
12 6:0.5 14:0.5 26:0.08333333333333333 30:1.0 39:0.6 74:0.14285714285714285 87:0.25 96:0.2 134:0.5 135:2.0 148:1.0 160:2.0 189:1.0 231:0.3333333333333333 294:0.3333333333333333 348:0.25 483:1.0 607:0.3333333333333333 660:1.0 693:1.0 1260:1.0 1847:1.0 2063:1.0 3714:0.5 3960:0.3333333333333333 3961:1.0
12 1:0.25 4:1.0 14:0.5 15:0.07692307692307693 26:0.08333333333333333 36:1.0 55:0.5 76:0.4 129:0.25 140:1.0 180:0.25 253:0.2 254:0.07692307692307693 255:1.0 256:0.5 294:0.3333333333333333 395:0.5 867:1.0 977:1.0 1130:0.5 1310:1.0 3463:1.0 3648:1.0 4077:1.0
12 1:0.125 4:2.0 12:1.0 15:0.07692307692307693 42:0.3333333333333333 55:1.0 96:0.2 132:0.5 151:0.25 159:0.14285714285714285 217:0.3333333333333333 218:1.0 293:1.0 606:0.3333333333333333 1037:1.0 1294:1.0 1458:1.0 2163:1.0 2187:1.0 3908:1.0 3958:1.0
12 4:1.0 14:0.5 15:0.07692307692307693 28:0.14285714285714285 29:0.5 30:1.0 60:0.03125 64:0.5 198:1.0 199:0.5 330:1.0 381:0.25 844:1.0 1102:1.0 1379:1.0 1700:1.0 2042:1.0 2409:0.5 3700:1.0 3714:0.5
12 1:0.125 15:0.038461538461538464 37:0.25 55:0.5 163:1.0 194:1.0 215:0.3333333333333333 263:0.25 457:0.1111111111111111 506:1.0 1094:0.3333333333333333 1130:0.5 1398:1.0 1497:1.0
12 1:0.125 29:0.5 55:0.5 256:0.5 297:0.3333333333333333 341:2.0 409:0.1 1563:0.3333333333333333 3789:1.0
12 14:1.0 15:0.038461538461538464 26:0.16666666666666666 55:0.5 132:0.5 195:0.3333333333333333 294:0.3333333333333333 974:1.0 1541:0.5 1787:1.0 1849:1.0 2100:1.0 2397:1.0 2878:1.0 4236:1.0 5149:1.0
12 1:0.125 5:0.2 35:0.3333333333333333 55:0.5 76:0.2 87:0.25 147:1.0 160:1.0 207:1.0 246:0.5 507:1.0 677:1.0 735:1.0 775:1.0 2320:1.0 2515:1.0 5422:1.0
12 1:0.25 4:2.0 6:0.5 15:0.038461538461538464 18:1.0 26:0.08333333333333333 39:0.2 55:0.5 87:0.25 96:0.2 180:0.25 199:0.5 217:0.3333333333333333 218:1.0 256:0.5 258:1.0 348:0.25 439:1.0 493:0.3333333333333333 742:1.0 937:1.0 1213:1.0 1321:1.0 1426:1.0 1508:1.0 1604:1.0 1996:1.0 2527:1.0 2831:1.0 2923:0.5 3013:1.0 3018:1.0 3528:1.0 5135:1.0
12 14:0.5 15:0.038461538461538464 28:0.14285714285714285 87:0.25 291:0.5 294:0.3333333333333333 503:1.0 512:1.0 702:0.5 1132:0.5 1138:1.0 1787:1.0 2058:1.0 2069:1.0 3099:1.0 4011:1.0 4122:1.0 4531:1.0 5422:1.0
12 12:1.0 15:0.038461538461538464 76:0.2 144:0.3333333333333333 228:1.0 306:1.0 920:0.5 2061:1.0 2534:1.0
12 13:0.05263157894736842 26:0.16666666666666666 35:0.3333333333333333 55:2.0 60:0.03125 76:0.2 96:0.4 180:0.25 185:0.5 279:1.0 290:1.0 301:0.5 348:0.25 359:0.3333333333333333 778:0.25 781:0.3333333333333333 787:1.0 1358:1.0 1451:1.0 1476:1.0 2220:1.0 3321:1.0 3961:1.0 5341:1.0
12 1:0.25 14:0.5 15:0.038461538461538464 19:0.5 30:1.0 55:0.5 160:1.0 177:1.0 180:0.25 381:0.25 416:1.0 1386:1.0 1498:1.0 2296:1.0 3612:1.0
12 1:0.375 14:0.5 39:0.2 72:0.3333333333333333 76:0.2 81:0.5 130:0.5 140:3.0 184:1.0 256:0.5 266:1.0 359:0.3333333333333333 493:0.6666666666666666 546:0.3333333333333333 849:0.5 1029:1.0 1436:1.0 1750:1.0 2161:1.0 2319:1.0 3027:1.0
12 15:0.07692307692307693 52:1.0 86:0.25 87:0.25 96:0.2 160:1.0 258:1.0 348:0.25 388:1.0 496:1.0 569:1.0 570:0.3333333333333333 660:1.0 691:1.0 702:0.5 977:1.0 1213:1.0 1224:1.0 1326:1.0 1706:1.0 1956:1.0 3099:1.0 3597:1.0 4601:1.0 4649:1.0
12 4:1.0 5:0.2 13:0.15789473684210525 15:0.038461538461538464 39:0.2 55:0.5 60:0.03125 87:0.25 96:0.2 129:0.25 134:0.5 159:0.14285714285714285 207:1.0 258:1.0 259:2.0 359:0.3333333333333333 388:1.0 438:0.125 487:0.3333333333333333 496:1.0 497:1.0 635:0.5 693:1.0 738:1.0 977:1.0 1218:1.0 1407:1.0 1706:1.0
12 13:0.05263157894736842 35:0.3333333333333333 86:0.25 87:0.5 149:0.3333333333333333 159:0.14285714285714285 163:1.0 263:0.25 273:1.0 372:1.0 438:0.125 489:0.25 875:1.0 898:0.25 987:1.0 2058:1.0
12 1:0.125 86:0.25 151:0.25 160:1.0 347:1.0 348:0.25 349:1.0 404:1.0 439:1.0 546:0.3333333333333333 565:1.0 692:0.5 910:1.0 915:1.0 2069:1.0 3073:1.0
12 15:0.038461538461538464 30:1.0 45:1.0 86:0.25 160:1.0 404:1.0 3073:1.0 5437:1.0
12 1:0.25 5:0.2 52:1.0 55:0.5 88:1.0 96:0.2 109:1.0 159:0.14285714285714285 608:1.0 1358:1.0 2046:1.0 2960:1.0
12 57:1.0 1266:1.0
12 15:0.038461538461538464 18:1.0 34:0.08333333333333333 36:1.0 55:1.0 159:0.14285714285714285 301:0.5 336:0.5 348:0.25 389:1.0 457:0.1111111111111111 493:0.3333333333333333 898:0.25 902:0.3333333333333333 937:1.0 987:0.5 2486:0.5
12 12:1.0 14:1.0 15:0.038461538461538464 35:0.3333333333333333 51:1.0 52:1.0 55:1.5 80:0.2 96:0.2 139:1.0 141:1.0 159:0.14285714285714285 222:1.0 256:0.5 342:1.0 437:0.25 438:0.125 594:0.5 1353:1.0 1400:1.0 1859:1.0 1893:1.0 5106:1.0
12 1:0.125 4:1.0 12:1.0 15:0.07692307692307693 26:0.08333333333333333 35:0.3333333333333333 55:0.5 60:0.03125 76:0.2 80:0.2 96:0.2 112:1.0 135:1.0 139:1.0 154:1.0 159:0.14285714285714285 166:1.0 348:0.25 548:1.0 568:1.0 639:0.5 649:1.0 946:1.0 1254:0.5 1310:1.0 1538:1.0 2004:1.0 2095:1.0 3202:1.0 3862:1.0
12 1:0.125 15:0.038461538461538464 39:0.2 72:0.3333333333333333 87:0.25 173:0.5 214:0.3333333333333333 348:0.25 383:1.0 452:1.0 645:0.5 646:1.0 849:0.5 913:1.0 1424:1.0 1565:1.0 2409:0.5
12 15:0.038461538461538464 57:2.0 61:1.0 87:0.5 167:0.3333333333333333 214:0.3333333333333333 253:0.2 254:0.07692307692307693 256:0.5 348:0.5 439:1.0 493:0.3333333333333333 653:0.3333333333333333 693:1.0 738:1.0 844:1.0 919:0.5 1221:1.0 2058:1.0 3304:1.0 4913:1.0
12 1:0.125 12:1.0 15:0.07692307692307693 55:0.5 60:0.03125 78:1.0 87:0.25 134:0.5 144:0.6666666666666666 161:0.16666666666666666 256:0.5 259:1.0 267:1.0 278:1.0 324:1.0 342:1.0 355:0.5 439:1.0 487:0.3333333333333333 505:0.25 603:0.5 608:1.0 621:0.5 635:0.5 692:0.5 781:0.3333333333333333 1241:1.0 1818:1.0 4788:1.0
12 4:3.0 15:0.038461538461538464 24:0.5 60:0.0625 87:0.25 134:0.5 180:0.25 231:0.3333333333333333 293:1.0 297:0.3333333333333333 452:1.0 531:1.0 543:1.0 656:1.0 1103:1.0 1538:1.0 1781:1.0 3330:1.0 3533:1.0 3997:1.0
12 13:0.05263157894736842 15:0.038461538461538464 24:0.5 76:0.2 86:0.25 96:0.6 152:0.5 160:1.0 173:0.5 187:1.0 294:0.3333333333333333 304:0.5 399:1.0 632:0.3333333333333333 691:1.0 765:1.0 766:1.0 898:0.25 973:0.5 974:1.0 1448:0.5 1706:1.0 2580:1.0 2923:0.5 3407:2.0
12 1:0.125 10:0.25 13:0.05263157894736842 15:0.038461538461538464 52:1.0 55:0.5 60:0.03125 76:0.2 214:0.3333333333333333 247:1.0 260:0.5 279:1.0 348:0.25 457:0.1111111111111111 611:0.5 635:0.5 727:1.0 821:1.0 1103:1.0 1526:1.0 2960:1.0 4690:1.0
12 1:0.25 4:1.0 13:0.05263157894736842 60:0.03125 72:0.3333333333333333 79:0.2 87:0.25 96:0.2 139:1.0 180:0.25 293:2.0 348:0.25 570:0.3333333333333333 942:1.0 1236:1.0 1721:1.0 2047:1.0 2114:1.0 2343:0.5 2885:1.0 3381:1.0 3489:1.0 4147:1.0
12 1:0.125 13:0.05263157894736842 15:0.07692307692307693 18:1.0 36:1.0 55:0.5 194:1.0 204:0.3333333333333333 215:0.3333333333333333 246:0.5 291:0.5 306:1.0 348:0.25 452:1.0 481:1.0 546:0.3333333333333333 635:0.5 1120:1.0 1213:1.0 1675:1.0 1983:0.5 2923:0.5 3262:1.0 3476:1.0
12 1:0.125 4:1.0 13:0.05263157894736842 57:1.0 96:0.2 253:0.2 343:1.0 496:1.0 635:0.5 1451:1.0
12 4:1.0 10:0.25 15:0.038461538461538464 18:1.0 28:0.14285714285714285 29:0.5 30:1.0 39:0.2 72:0.3333333333333333 87:0.25 159:0.14285714285714285 266:1.0 348:0.25 657:1.0 1846:1.0 2052:1.0 2135:1.0 2315:1.0 2994:1.0 4145:1.0 5486:1.0
12 4:1.0 14:0.5 15:0.038461538461538464 52:1.0 57:1.0 87:0.25 96:0.2 254:0.07692307692307693 256:0.5 266:1.0 438:0.25 648:1.0 1321:1.0 2168:1.0 2285:1.0 2841:1.0
12 1:0.125 10:0.25 13:0.05263157894736842 37:0.25 76:0.4 194:1.0 352:0.3333333333333333 565:1.0 738:2.0 1670:1.0 2063:1.0 2857:1.0 3896:1.0 4750:1.0 4854:1.0 5138:1.0
12 13:0.05263157894736842 14:0.5 15:0.038461538461538464 26:0.08333333333333333 57:1.0 144:0.3333333333333333 159:0.14285714285714285 215:0.3333333333333333 1675:1.0 1922:1.0 2422:1.0 3511:1.0
12 1:0.125 13:0.05263157894736842 15:0.07692307692307693 37:0.25 52:1.0 55:2.0 79:0.2 151:0.25 177:1.0 183:0.5 184:1.0 246:0.5 256:0.5 263:0.25 398:0.2 452:1.0 457:0.1111111111111111 491:0.5 515:1.0 608:1.0 610:1.0 1175:1.0 1508:1.0 1774:1.0 2068:1.0 2225:1.0 2397:1.0 2519:2.0 3922:1.0
12 1:0.25 13:0.05263157894736842 37:0.5 39:0.6 55:0.5 57:1.0 87:0.25 90:1.0 109:1.0 151:0.25 184:1.0 244:0.5 253:0.2 259:1.0 359:0.3333333333333333 398:0.2 443:1.0 457:0.1111111111111111 491:0.5 517:1.0 608:1.0 653:0.3333333333333333 928:1.0 1203:1.0 1541:0.5 2271:1.0 2368:1.0 3922:1.0 4365:1.0
12 13:0.05263157894736842 14:0.5 15:0.038461538461538464 39:0.4 55:0.5 57:1.0 98:1.0 477:1.0 831:0.5 1604:1.0 1916:1.0 4019:1.0
12 6:0.5 15:0.038461538461538464 34:0.08333333333333333 35:0.6666666666666666 52:1.0 55:1.5 79:0.2 80:0.6 86:0.25 87:0.5 96:0.4 180:0.25 184:1.0 199:0.5 297:0.3333333333333333 307:1.0 355:0.5 452:1.0 459:1.0 505:0.25 610:1.0 1037:1.0 1680:1.0 2209:1.0 2636:1.0
12 4:1.0 12:1.0 15:0.07692307692307693 29:0.5 57:1.0 80:0.2 96:0.2 132:0.5 159:0.14285714285714285 160:1.0 198:1.0 486:1.0 794:1.0 977:1.0 1509:1.0 1965:1.0 3013:1.0
12 37:0.25 55:1.5 61:1.0 79:0.2 87:0.75 160:1.0 199:0.5 253:0.2 254:0.07692307692307693 313:1.0 348:0.25 359:0.3333333333333333 457:0.1111111111111111 493:0.3333333333333333 505:0.25 645:0.5 693:1.0 738:1.0 973:0.5 974:1.0 3523:1.0
12 15:0.038461538461538464 306:1.0 326:0.5 546:0.3333333333333333 920:0.5 1120:1.0 1216:1.0 2209:1.0
12 1:0.125 14:0.5 15:0.038461538461538464 35:0.3333333333333333 55:1.0 76:0.2 87:0.25 96:0.2 135:1.0 348:0.25 398:0.2 506:1.0 717:1.0 736:1.0 831:0.5 1098:0.5 1120:1.0 1375:1.0 1747:1.0 2031:1.0 2417:1.0 3042:1.0 3643:1.0 5218:1.0
12 13:0.05263157894736842 15:0.038461538461538464 37:0.25 52:1.0 55:0.5 60:0.0625 76:0.2 87:0.5 96:0.2 149:0.6666666666666666 325:1.0 594:0.5 2910:1.0 3827:1.0 3829:1.0
12 86:0.25 87:0.25 325:1.0 348:0.25 1094:0.3333333333333333 2020:1.0 2343:0.5
12 12:1.0 37:0.25 86:0.25 87:0.25 96:0.2 134:0.5 159:0.14285714285714285 183:0.5 586:1.0 898:0.25 2440:1.0 2494:1.0 3124:1.0 4263:0.5
12 35:0.3333333333333333 75:1.0 80:0.2 86:0.25 87:0.25 159:0.14285714285714285 161:0.16666666666666666 183:0.5 1310:1.0 2653:1.0 4001:1.0
12 1:0.125 6:0.5 55:0.5 80:0.4 86:0.25 87:0.25 96:0.4 129:0.25 148:1.0 151:0.25 158:1.0 244:0.5 452:1.0 493:0.3333333333333333 536:1.0 766:1.0 776:0.5 787:1.0 920:0.5 1996:1.0 2970:1.0 5422:1.0
12 1:0.125 86:0.25 87:0.25 96:0.2 159:0.14285714285714285 160:1.0 199:0.5 268:1.0 348:0.25 364:1.0 389:2.0 606:0.3333333333333333 1503:1.0
12 1:0.125 15:0.038461538461538464 29:0.5 35:0.3333333333333333 86:0.25 87:0.75 102:0.09090909090909091 199:0.5 254:0.07692307692307693 263:0.25 297:0.3333333333333333 607:0.3333333333333333 766:1.0 1471:1.0 1965:1.0
12 15:0.038461538461538464 52:1.0 87:0.25 108:1.0 246:0.5 254:0.07692307692307693 260:0.5 424:1.0 5199:1.0
12 4:1.0 6:0.5 14:0.5 15:0.038461538461538464 26:0.08333333333333333 37:0.25 39:0.2 134:0.5 135:1.0 140:1.0 149:0.3333333333333333 159:0.14285714285714285 253:0.2 293:1.0 314:1.0 546:0.3333333333333333 568:1.0 652:1.0 766:1.0 1051:1.0 1076:0.5 1538:1.0 1541:0.5 1580:1.0 1610:1.0 3533:1.0
12 60:0.03125 88:1.0 159:0.14285714285714285 199:0.5 294:0.3333333333333333 635:0.5 845:1.0 1804:1.0 2040:1.0 2991:1.0
12 13:0.05263157894736842 86:0.25 96:0.2 159:0.14285714285714285 218:1.0 452:1.0 487:0.3333333333333333 736:1.0 2192:1.0 4236:1.0
12 1:0.25 12:1.0 14:1.0 15:0.11538461538461539 26:0.08333333333333333 39:0.2 57:1.0 96:0.2 98:1.0 159:0.14285714285714285 166:2.0 218:1.0 231:0.3333333333333333 348:0.25 457:0.2222222222222222 496:1.0 603:0.5 607:0.3333333333333333 676:1.0 677:1.0 706:1.0 766:1.0 1463:1.0 1680:1.0 1896:1.0 2060:1.0 2663:1.0 4019:1.0 5105:2.0
12 1:0.125 12:1.0 15:0.038461538461538464 26:0.08333333333333333 60:0.03125 87:0.25 159:0.14285714285714285 172:1.0 258:1.0 297:0.3333333333333333 350:1.0 543:1.0 607:0.3333333333333333 766:1.0 898:0.25 1427:0.5 1463:1.0 1896:1.0 2547:1.0
12 1:0.125 15:0.07692307692307693 28:0.14285714285714285 57:1.0 96:0.6 102:0.09090909090909091 108:1.0 134:0.5 160:1.0 246:0.5 256:0.5 306:1.0 348:0.5 551:0.5 607:0.3333333333333333 656:1.0 685:1.0 698:1.0 1120:1.0 1245:1.0 1260:1.0 1774:1.0 1981:1.0 2069:1.0 2673:1.0 2674:1.0 2841:1.0 2923:0.5 5218:1.0
12 1:0.125 13:0.05263157894736842 39:0.2 57:1.0 60:0.03125 87:0.25 96:0.2 134:0.5 217:0.3333333333333333 218:2.0 222:1.0 238:1.0 256:0.5 304:0.5 330:1.0 350:1.0 509:1.0 521:1.0 590:1.0 603:0.5 651:1.0 704:1.0 1024:1.0 1072:1.0
12 1:0.125 10:0.25 13:0.05263157894736842 15:0.07692307692307693 76:0.2 96:0.2 159:0.14285714285714285 198:1.0 565:1.0 588:1.0 603:0.5 633:1.0 755:1.0 831:0.5 1006:1.0 2668:1.0
12 1:0.125 18:2.0 35:0.3333333333333333 55:0.5 87:0.25 96:0.2 129:0.25 159:0.14285714285714285 160:1.0 163:1.0 185:0.5 210:0.5 256:0.5 359:0.3333333333333333 509:1.0 633:1.0 901:1.0 1102:1.0 3545:1.0 3789:1.0 4585:1.0
12 1:0.125 4:2.0 10:0.25 12:1.0 13:0.10526315789473684 14:1.0 15:0.038461538461538464 28:0.14285714285714285 60:0.03125 86:0.25 87:0.5 96:0.4 129:0.25 132:0.5 160:1.0 184:1.0 194:1.0 199:0.5 218:1.0 297:0.3333333333333333 372:1.0 788:1.0 1185:0.5 1729:1.0 2093:0.5
12 10:0.25 13:0.05263157894736842 15:0.038461538461538464 80:0.2 86:0.25 87:0.25 96:0.2 929:1.0 999:1.0 1402:1.0 4180:1.0 4838:1.0
12 15:0.038461538461538464 28:0.14285714285714285 60:0.03125 96:0.4 159:0.14285714285714285 173:0.5 256:0.5 286:0.125 766:1.0 1196:1.0 1285:1.0 2347:1.0 2841:1.0
12 1:0.25 4:1.0 14:0.5 18:1.0 36:1.0 55:1.0 57:1.0 87:0.25 96:0.4 160:1.0 199:0.5 304:0.5 377:1.0 438:0.125 439:1.0 632:0.3333333333333333 849:0.5 1059:1.0 1245:1.0 1735:1.0 2254:1.0 2923:0.5 3092:1.0 3312:1.0
12 1:0.125 15:0.038461538461538464 76:0.2 96:0.2 159:0.14285714285714285 198:1.0 409:0.1 536:1.0 588:1.0 633:1.0 1653:1.0
12 14:0.5 28:0.14285714285714285 37:0.25 61:1.0 76:0.2 129:0.25 389:1.0 465:1.0 1120:1.0
12 4:1.0 14:0.5 15:0.038461538461538464 28:0.14285714285714285 37:0.25 61:1.0 218:1.0 389:1.0 465:1.0 1006:1.0 1120:1.0 3135:1.0
12 1:0.25 14:0.5 15:0.038461538461538464 18:1.0 34:0.08333333333333333 37:0.25 57:1.0 60:0.03125 80:0.2 96:0.2 129:0.25 160:1.0 200:1.0 256:0.5 258:1.0 265:0.25 293:1.0 330:1.0 359:0.3333333333333333 438:0.125 546:0.3333333333333333 651:1.0 891:1.0 1120:1.0 1245:1.0 1604:1.0 2040:1.0 2080:1.0 4902:1.0 5199:1.0 5422:1.0
12 35:0.3333333333333333 37:0.25 42:0.3333333333333333 96:0.2 254:0.07692307692307693 300:1.0 359:0.3333333333333333 409:0.1 2040:1.0 2818:1.0
12 1:0.125 4:1.0 14:0.5 15:0.038461538461538464 18:1.0 35:0.3333333333333333 76:0.2 160:1.0 198:1.0 214:0.3333333333333333 277:1.0 348:0.25 438:0.125 607:0.3333333333333333 920:0.5 1245:1.0 2040:1.0 4001:1.0
12 13:0.10526315789473684 14:0.5 15:0.038461538461538464 18:1.0 52:1.0 57:1.0 60:0.03125 130:0.5 144:0.3333333333333333 198:1.0 415:1.0 439:1.0 755:1.0 946:1.0 1445:1.0 1498:1.0 1565:1.0 1859:1.0 3810:1.0
12 1:0.25 4:2.0 15:0.11538461538461539 39:0.2 60:0.09375 72:0.3333333333333333 87:0.25 90:1.0 129:0.25 149:0.3333333333333333 150:1.0 151:0.25 166:2.0 192:1.0 260:0.5 266:1.0 297:0.3333333333333333 348:0.5 361:1.0 603:0.5 635:0.5 653:0.3333333333333333 774:1.0 1037:1.0 1076:0.5 1358:1.0 1524:1.0 1565:1.0 2267:1.0 4116:1.0
12 1:0.25 4:1.0 6:0.5 13:0.05263157894736842 14:0.5 15:0.038461538461538464 37:0.25 39:0.2 55:1.5 78:1.0 80:0.6 102:0.09090909090909091 129:0.25 148:1.0 166:1.0 246:0.5 326:0.5 424:1.0 443:1.0 445:1.0 452:1.0 486:1.0 496:1.0 653:0.3333333333333333 831:0.5 946:1.0 1331:1.0 1348:1.0 1359:0.5 1497:1.0 2319:1.0 2320:1.0 2609:1.0 3714:0.5 4044:1.0 4118:1.0
12 1:0.25 10:0.5 12:1.0 15:0.038461538461538464 30:1.0 34:0.16666666666666666 55:1.0 61:1.0 64:0.5 79:0.2 80:0.2 87:0.25 135:2.0 138:0.3333333333333333 148:1.0 173:1.0 215:0.3333333333333333 253:0.2 254:0.07692307692307693 293:2.0 297:0.3333333333333333 457:0.1111111111111111 487:0.3333333333333333 504:1.0 992:1.0 1145:1.0 1151:1.0 1288:0.5 1427:0.5 1595:1.0 1810:1.0 1957:0.5 2167:1.0 2209:1.0 2320:1.0 2552:1.0 3783:1.0 3960:0.3333333333333333
12 1:0.25 4:2.0 5:0.2 14:1.0 15:0.038461538461538464 26:0.08333333333333333 30:1.0 52:1.0 57:1.0 84:1.0 108:1.0 246:0.5 254:0.07692307692307693 256:1.0 293:1.0 348:0.25 496:2.0 611:0.5 1044:1.0 1051:1.0 1706:1.0 2063:2.0 2206:0.5 2319:1.0 2320:1.0 3515:1.0 4263:0.5
|
696d12c080eb3e2bbbb0d8d5b97044d16464196c | 449d555969bfd7befe906877abab098c6e63a0e8 | /812/CH3/EX3.04/3_04.sce | 4030fcd5182f730ccd8bb3625f0f21bb9b00ce64 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,766 | sce | 3_04.sce | //temperature and pressure//
pathname=get_absolute_file_path('3.04.sce')
filename=pathname+filesep()+'3.04-data.sci'
exec(filename)
//Assuming temperature varies linearly with altitude:
//Temperature gradient(in F/ft):
m=(T1-T2)/(z2-z1)
//Value of g/(m*R):
v=g/m/R/32.2
//Pressure at Vail Pass(in inches of Hg):
p12=p1*((T2+460)/(T1+460))^v
//Percentage change in density:
pc1=(p12/p1*(T1+460)/(T2+460)-1)*100
//Assuming density is constant:
//Pressure at Vail Pass(in inches of Hg):
p22=p1*(1-(g*(z2-z1)/(R*32.2)/(T1+460)))
//Percentage change in density:
pc2=0;
//Assuming temperature is constant:
//Pressure at Vail Pass(in inches of Hg):
p32=p1*%e^(-g*(z2-z1)/(R*32.2)/(T2+460))
//Percentage change in density:
pc3=(p32/p1*(T1+460)/(T1+460)-1)*100
//For an adiabatic atmosphere:
p42=p1*((62+460)/(80+460))^(k/(k-1))
//Percentage change in density:
pc4=(p42/p1*(T1+460)/(T2+460)-1)*100
printf("\n\nRESULTS\n\n")
printf("\n\n1) If temperature varies linearly with altitude\n\n")
printf("\n\n\tAtmospheric pressure at Vail Pass: %f inches of Hg\n\n",p12)
printf("\n\n\tPercentage change in density wrt Denver: %f percent\n\n",pc1)
printf("\n\n2) If density is constant\n\n")
printf("\n\n\tAtmospheric pressure at Vail Pass: %f inches of Hg\n\n",p22)
printf("\n\n\tPercentage change in density wrt Denver: %f percent\n\n",pc2)
printf("\n\n3) If temperature is constant\n\n")
printf("\n\n\tAtmospheric pressure at Vail Pass: %f inches of Hg\n\n",p32)
printf("\n\n\tPercentage change in density wrt Denver: %f percent\n\n",pc3)
printf("\n\n4) For an adiabatic atmosphere\n\n")
printf("\n\n\tAtmospheric pressure at Vail Pass: %f inches of Hg\n\n",p42)
printf("\n\n\tPercentage change in density wrt Denver: %f percent\n\n",pc4)
|
6c035c33f1eadfc9f693910a04771bbfc3c07e54 | 0812f3bb6f3cc038b570df68ccee4275da04b11f | /models/complexity_1000/Applied_Thermodynamics_and_Engineering/CH7/EX7.2/7_2.sce | 43751b0616b2e18f8ae6d44f1a24b97d3bfc6f0d | [] | no_license | apelttom/20-semester_PhD_thesis | edc0b55580bae9d364599932cd73cf32509f4b7a | ff28b115fcf5e121525e08021fa0c02b54a8e143 | refs/heads/master | 2018-12-26T22:03:38.510422 | 2018-12-14T20:04:11 | 2018-12-14T20:04:11 | 106,552,276 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 977 | sce | 7_2.sce | clc;
//part I
%H2=0.494;
%CO=0.18;
%CH4=0.2;
%C4H4=0.02;
%O2=0.004;
%N2=0.062;
%CO2=0.04;
O_H2=%H2/2;
O_CO=%CO/2;
O_CH4=%CH4*2;
O_C4H4=%C4H4*6;
O_O2=-%O2*1;
C_CO=%CO;
C_CH4=%CH4;
C_C4H8=4*%C4H4;
C_CO2=%CO2;
H_H2=%H2;
H_CH4=2*%CH4;
H_C4H8=4*%C4H4;
O_Tot=O_C4H4+O_CH4+O_CO+O_H2+O_O2;
C_Tot=C_CO+C_CH4+C_C4H8+C_CO2;
H_Tot=H_H2+H_CH4+H_C4H8;
AF=O_Tot/0.21;
disp(AF,"stoichiometric A/F ratio is:")
//partII
actual_AF=AF+0.2*AF;
Ass_N2=0.79*actual_AF;
Exs_O2=(0.21*actual_AF)-O_Tot;
N2_Tot=Ass_N2+%N2;
Tot_wet=H_Tot+C_Tot+Exs_O2+N2_Tot;
Tot_dry=C_Tot+Exs_O2+N2_Tot;
C_dry=(C_Tot)/Tot_dry*100;
O_dry=(Exs_O2)/Tot_dry*100;
N_dry=(N2_Tot)/Tot_dry*100;
C_wet=(C_Tot)/Tot_wet*100;
O_wet=(Exs_O2)/Tot_wet*100;
N_wet=(N2_Tot)/Tot_wet*100;
H_wet=(H_Tot)/Tot_wet*100;
disp("Analysis by volume of the wet product of CO2,H2O,O2,N2 respectively is:");
disp(N_wet,O_wet,H_wet,C_wet)
disp("Analysis by volume of the dry product of CO2,O2,N2 respectively is:");
disp(N_dry,O_dry,C_dry)
|
768d4d2d4d787dfa8568a7dc7ecb95ff6633cf0d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2609/CH4/EX4.9/ex_4_9.sce | 2d1689658f11f3575f258d5863ee8948c6f68a54 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex_4_9.sce | ////Ex 4.9
clc;
clear;
close;
format('v',5);
I2=1;//mA
Rf=4.7;//kohm
//Case 1st
I1=500;//micro A
Vout1=-I1*10^-6*Rf*10^3;//V
disp(Vout1,"For 500 micro A current, Output Voltage(V)");
//Case 2nd
I2=1;//mA
Vout2=-I2*10^-3*Rf*10^3;//V
disp(Vout2,"For 1 mA current, Output Voltage(V)");
deltaVout=Vout2-Vout1;//V
disp(deltaVout,"Variation in Output Voltage(V)");
|
69031b69d83d39d37f38a9c461251e781fc8b8f4 | ecd2d931395f0b1280d01efdf8fd451286106a32 | /data/out/LoadAndVerify.sce | 9514b89ce529c50c3a41ea5e9678eda11201f14d | [] | no_license | MaxRCC/TDB32 | 90c079862496647b9e6f9630fe7040263cd92429 | 4b5910b24c2126b2dd6ce672f5c01f1a5d4216aa | refs/heads/master | 2022-01-06T08:46:25.206207 | 2018-09-03T18:41:17 | 2018-09-03T18:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,217 | sce | LoadAndVerify.sce | clf;
clear all;
//str = 'Pos_0.txt';
str = 'Pos_3.txt';
//str = 'tbOutData.txt';
tbdata = csvRead(str,ascii(9), [], 'string');
fs = 250000;
[n m]=size(tbdata);
data= bin2dec(tbdata);
mat = []
N = length(data)/61;
for k=0:N-1
beam = data(k*61+1: (k+1)*61) - 2^17;
mat = [mat abs(beam)]
end
D = 512
mat = mat(:,48:1024);
[x,y] = size(mat)
t = 0:1/fs:(y-1)/fs;
theta = -30:1:30;
t = t*1000;
mat = mat./max(mat);
mat = D*mat;
mat = int(mat)
scf(0)
plot3d(theta,t,mat)
h=get("hdl") //get handle on current entity (here the surface)
a=gca(); //get current axes
a.rotation_angles=[35,-30];
a.box="off"
//a.grid=[1 1 1];
//make grids
a.axes_visible="on";
//axes are hidden a.axes_bounds=[.2 0 1 1];
f=get("current_figure");
//get the handle of the parent figure
//f.color_map=bonecolormap(512)
//f.color_map=coppercolormap(512);
//f.color_map=hotcolormap(128);
f.color_map=jetcolormap(D);
//change the figure colormap
h.color_flag=1;
//color according to z
h.color_mode=-1;
//remove the facets boundary
h.color_flag=1;
//color according to given colors
//h.data.color=[1+modulo(1:400,64),1+modulo(1:400,64)];
//shaded
h.color_flag=1;
outstr = str + '.svg'
xs2svg(0, outstr)
//csvWrite(mat', "angle0.txt");
|
4c5238516afb5268e088aae9fbdfe3d3f10fcfec | 262ac6443426f24d5d9b13945d080affb0bd6d9b | /opgaves/vpw-pizzabonnen+/inputs.sce | e79432468882ab6c1747a964d06e2ab36a92cc8f | [] | no_license | slegers/Scilab | 9ebd1d486f28cf66e04b1552ad6e94ea4bc98a0b | 1b5dc3434def66355dafeb97c01916736a936301 | refs/heads/master | 2021-01-12T01:42:01.493578 | 2017-01-09T10:54:09 | 2017-01-09T10:54:09 | 78,420,343 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7,158 | sce | inputs.sce | pizzas0 = []
bonnen0 = []
pizzas1 = [4813,1719,3762,9829,6090,4,2511,7053,2252,1708,487,8406,9927,6621,7305,2112,8230,6189,2691,8394,964,6144,7224,5138,9654,4833,3985,4846,1301,7094,5873,4544,3873,5177,1674,9210,9359,6573,6267,9117,3432,7815,8318,2343,853,1392,8598,8925,6933,4256,250,4136,7105,3898,4725,3122,788,4864,5203,3932,4495,8877,8865,4409,6169,9491,1240,9652,6698,4558,2314,4093,834,3370,8911,7580,1177,3794,7786,6511,5348,4691,551,5543,9365,3487,7395,5449,1905,6811,5229,6843,1120,480,897,3253,1216,2209,1525,7174,6600,6140,2474,3504,9516,8684,1023,929,2969,2129,1715,8037,2787,9575,7170,3946,6829,8458,2941,1057,7689,6026,1086,2918,1066,4963,8237,228,8421,3760,5140,7161,7481,1442,999,9959,5866,6627,3922,1004,3476,1067,1999,5185,3050,8722,8693,3597,7321,2897,8617,5618,3753,1610,2250,2890,8144,3832,9776,8084,7083,1460,8978,4988,434,7780,986,5510,276,2091,4415,7344,1314,3466,4420,8574,5852,4140,7294,9988,7790,7238,1649,2855,6462,1412,7501,243,7679,8921,899,5954,3236,7580,4586,3511,6449,8872,2176,6017,2687,9745,8769,6851,2977,7108,6621,6751,9361,8060,9814,2505,1427,4941,2266,816,1752,4130,4682,5422,9784,9491,2833,7857,7223,6211,388,8874,7043,2301,7232,7872,4879,8020,9190,3227,2829,2311,611,926,2674,1532,2254,1668,5313,3672,4304,2384,3317,6308,7547,9222,8141,4218,8881,5006,6268,2284,6644]
pizzas1=[pizzas1,1207,3131,7927,1412,861,6761,242,496,7280,1109,1990,4593,4553,7891,1811,4889,4571,1351,4839,3202,645,6734,5098,9942,136,2850,5350,4631,4637,7578,5599,7356,8535,9870,1745,6195,928,1532,5525,3546,3829,7696,1793,8737,3175,1022,6309,4221,4607,6997,8590,5623,6053,3880,1463,3429,1722,7165,3263,5610,3,6493,5018,5086,8133,4936,3051,880,7680,2770,3726,5859,9629,5907,8290,3429,2149,883,7394,3077,470,1761,991,3256,2205,4250,8625,3026,3802,6903,4168,2205,2215,2360,9245,5285,2020,9319,733,2907,8400,2418,5030,3545,3776,8737,6682,2680,5375,9059,6056,7876,4933,4571,7194,1093,1393,7309,399,4238,6512,5022,4001,5868,9987,1574,5827,6986,8434,8343,6796,5945,2802,996,8218,5985,3003,8808,3697,2325,695,9164,6290,5827,4385,8838,6801,6967,6070,4189,5958,6519,6264,9338,4879,168,6230,4553,5363,3270,1438,2663,5099,9388,1660,1198,483,5000,9669,7555,3817,9776,9116,6921,8054,3920,8541,6961,2009,7618,9318,4853,6645,6090,1735,5075,9295,420,1739,1546,282,988,3485,6030,9221,3580,7184,2807,2190,8532,8753,5811,1366,4782,8298,4875,9647,5583,9730,9954,6518,5421,6116,9641,6366,2410,5113,8334,3262,3348,1527,1261,1031,9350,8397,4405,7001,8575,8365,9032,5045,8196,492,4243,5291,8111,3790,4626,3557,6871,1295,2313,2968,1795,7321,7967,5045,8946,5749,6862,2616,7992,899,3080,6445,5130,1595,2060,6047,7662,1374,145,116,7162,3306,7204,213,156,2372,3621,5040,2281,358,9047,1987,5239,7635,1367,2238,902,2535,2534,95,2691,4915,5892,9591,2970,2697,2235,7327,7270,5636,3930,3816,1265,9891,3449,6955,2773,6598,9904,1068,8276,8039,6748,531,1078,787,7988,9059,9209,9178,3117,5628,8787,7774,1982,2953,1142,2248,3402,5025,3942,6799,7852,8375,7996,5596,6399,6211,2889,6532,1117,1621,7105,4815,7787,5079,3259,551,478,7107,6411,9005,4385,8169,7328,3682,4250,1803,7412,7057,4211,7327,2436,5979,9630,7028,5940,2923,5156,3099]
pizzas1=[pizzas1,2940,2021,1457,1902,2942,7864,6868,8000,8019,9094,9450,1362,581,5050,266,7795,1421,2736,9906,628,7850,6386,6957,606,5136,7599,1786,7180,2431,1897,8802,4926,9845,9590,3633,4004,6907,9981,9459,9634,5460,6281,8184,2045,7651,9943,1838,9487,2657,6204,8143,2368,2193,4891,79,2138,2101,9225,6633,9913,663,9840,2619,5134,4702,5749,2844,9056,6204,7990,6423,8743,572,2635,4697,8119,4184,4770,6885,5999,2701,743,8578,7104,6564,7132,9610,8398,4274,982,7410,6122,4710,6626,633,3291,5393,9920,7380,5571,7816,8368,6792,8928,6628,4292,8484,8478,7470,9488,8629,8530,7595,378,5971,2838,6933,6602,3987,9575,5832,3172,8201,7008,6074,83,4699,394,836,413,8061,7940,7060,5432,4769,4176,2983,857,3735,3331,8621,341,56,5005,7277,3109,2110,2453,764,1397,6655,2969,5078,4091,7665,8301,6049,4635,2437,5211,8947,41,9276,1046,7757,7848,5863,8736,3052,6242,4251,1660,369,6795,1006,3471,7951,1373,7273,4919,8612,2793,7263,5304,8113,7105,910,2406,8104,8377,4231,2534,916,276,6518,5736,9563,8865,5372,8429,4344,2455,7685,1118,5145,9867,45,186,5969,7070,4741,4677,5939,5081,7277,7430,1577,1319,5423,3579,6079,3796,7797,225,1913,4723,5741,4215,5763,7961,3162,3249,5333,6543,1404,7079,2404,6724,3336,7839,8858,6469,7824,7976,2997,8032,3932,8810,7947,1416,5295,9625,183,7684,2686,2948,1575,6726,4056,9097,7199,9774,4472,3229,8409,128,7668,3262,7686,9177,7094,8484,4445,2977,5717,4265,4591,3474,49,1650,2000,8047,937,777,2432,1493,9792,5076,4447,6339,2925,7588,4009,8581,7156,7075,772,4581,8022,2961,5954,3124,4481,9100,5179,96,4033,9292,8712,6880,1739,8940,1682,2886,3291,4880,5722,9897,7035,143,6989,8699,8091,9462,6772,9704,9589,2907,7672,4843,3949,3689,2708,9048,5947,972,6558,4752,7968,2935,7888,4269,9003,6038,8235,5166,4947,2199,5958,9879,8203,9930,1371,7874,8503,2488,9051,1390,440,2911,8304,1145,6539,6474,4581,3895,1202,6414,1275,7825,453,648,3351,6577,3115,8245,2745,1709]
bonnen1 = [ 3,2; 7,1; 1,3; 3,3; 7,1; 9,1; 0,4; 5,0 ]
pizzas2 = [2082,680,8965,175,9025,7761,7662,1767,8559,8067,9968,5103,4137,9380,4366,4035,3284,4696,491,8978,631,1513,3581,8094,1323,4853,8561,519,2898,5172,3498,4677,6576,4642,9335,7885,987,9008,9513,1790,6288,6543,3898,8774,1983,5442,3993,9568,6637,4732,4281,8170,489,751,1845,2848,9845,2505,2345,7366,7743,4214,9112,2716,9552,1364,6734,4293,2385,9203,979,9510,5341,435,9461,7948,6821,8104,4360,5244,7654,6392,8490,8542,2473,2862,8526,2377,7004,9130,1764,6332,9844,2352,1438,6329,7366,4912,7213,805,1869,2123,7236,8821,2222,7505,441,3009,4445,5766,9741,9802,7868,9460,2112,9813,2758,2242,737,5113,2874,9523,1277,7324,8382,5662,3088,8607,374,1100,6638,1570,7379,1258,5713,466,8375,3824,3249,8382,8533,6993,3090,1557,1337,7018,4158,3605,8462,3132,302,9438,9638,6915,6825,2009,6960,3736,7058,9862,1975,7876,8882,1925,4470,8780,5219,8167,9437,2189,5345,9372,7230,7356,1198,3726,8147,4729,1396,5014,6958,9336,4634,2290,4351,8298,7773,3311,6574,809,8377,8352,9153,354,4418,9186,198,6718,8776,3673]
bonnen2 = [2,9;5,3;2,9;5,3;5,3;2,9;2,9;2,9;5,3;2,9;2,9;5,3;5,3;5,3;2,9;5,3;2,9;5,3]
pizzas3 = [145,749,706,209,747,909,378,274,316,895,580,428,754,650,900,866,481,829,761,250,732,813,554,128,172,372,862,778,697,10,119,806,192,76,881,116,902,154,620,518,663,728,804,463,785,862,55,160,350,634,536,699,925,200,913,990,758,848,926,123,805,750,390,611,325,304,459,710,644,502,303,639,771,957,743,763,289,995,516,218,414,873,281,831,847,928,34,164,966,234,953,973,928,106,233,678,537,160,246,566]
bonnen3 = [3,1;3,1;3,1;3,1;3,1;3,1;3,1;3,1;3,1;3,1;5,2;5,2;5,2;5,2;5,2;5,2;5,2;5,2;5,2;5,2;10,5]
pizzas4 = [145,749,706,209,747,909,378,274,316,895,580,428,754,650,900,866,481,829,761,250,732,813,554,128,172,372,862,778,697,10,119,806,192,76,881,116,902,154,620,518,663,728,804,463,785,862,55,160,350,634,536,699,925,200,913,990,758,848,926,123,805,750,390,611,325,304,459,710,644,502,303,639,771,957,743,763,289,995,516,218,414,873,281,831,847,928,34,164,966,234,953,973,928,106,233,678,537,160,246,566]
bonnen4 = [3,1;3,1;3,1;3,1;3,1;3,1;3,1;3,1;3,1;3,1;5,2;5,2;5,2;5,2;5,2;5,2;5,2;5,2;5,2;5,2;10,5;10,5;10,5;10,5;10,5;10,5;10,5;10,5;10,5;10,5]
|
0a25cebee285980fb8aa7f541d1f0675c6eb3e66 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2129/CH5/EX5.13.9/ex5_13_9.sce | 37ef9427ff5f5ccb68aad2b15de6dab7f54d37a0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 631 | sce | ex5_13_9.sce | //Exa 5.13.9
clc;
clear;
close;
//Given data
bita = 100;
V_CE = 0.2;//in V
V_BE = 0.8;// in V
R_C= 500;// in Ω
R_B= 44*10^3;// in Ω
R_E= 1*10^3;// in Ω
V_CC= 15;// in V
V_GE= -15;// in V
// Applying KVL to collector circuit
// V_CC-V_GE - I_Csat*R_C-V_CE-I_E*R_E=0, but I_Csat= bita*I_Bmin and I_E= 1+bita
I_Bmin= (V_CC-V_GE-V_CE)/(R_C*bita+(1+bita)*R_E);// in A
// Applying KVL to the base emitter circuit
// V_BB-I_Bmin*R_B-V_BE-I_E*R_E + V_CC=0
V_BB= I_Bmin*R_B + V_BE + (1+bita)*I_Bmin*R_E-V_CC;// in V
disp(I_Bmin*10^3,"The value of I_B(min) in mA is : ")
disp(V_BB,"The value of V_BB in volts is : ")
|
d880a3f1e0afa9eab6dbe9bcaa91cde061bc14ec | 449d555969bfd7befe906877abab098c6e63a0e8 | /2120/CH4/EX4.1/ex4_1.sce | 3352f8ca0e3d66a477227103c73aac0c7e499104 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 267 | sce | ex4_1.sce | // Exa 4.1
clc;
clear;
close;
// Given data
p = 1.0;// in MPa
p = p * 10^6;// in N per m^2
del_v = 1.5;// in m^3 per min
del_v = del_v * 60;// in m^3 per h
W = p * del_v;// in J
W = W * 10^-6;// in MJ
disp(W,"Work done by the pump upon the water in MJ");
|
b191de3e84cac2cdbfd127318a20e37310d055a1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH5/EX5.7/Chapter5_Example7.sce | acd4347c6d6efd61988f882e08cc89c61c39c87c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,663 | sce | Chapter5_Example7.sce | //Chapter-5, Illustration 7, Page 255
//Title: Air Compressors
//=============================================================================
clc
clear
//INPUT DATA
D=0.2;//Bore in m
L=0.3;//Stroke in m
r=0.05;//Ratio of clearance volume to stroke volume
P1=97;//Pressure at entry in kN/(m^2)
P4=P1;//Pressure at point 4 in kN/(m^2)
T1=293;//Temperature at point 1 in K
P2=550;//Compression Pressure in kN/(m^2)
P3=P2;//Pressure at point 3 in kN/(m^2)
n=1.3;//Adiabatic gas constant
N=500;//Speed of compressor in rpm
Pa=101.325;//Air pressure in kN/(m^2)
Ta=288;//Air temperature in K
//CALCULATIONS
x=(n-1)/n;//Ratio
DV=(3.147*L*(D^2))/4;//Difference in volumes in m^3
V3=r*DV;//Clearance volume in m^3
V1=V3+DV;//Volume at point 1 in m^3
V4=V3*((P3/P4)^(1/n));//Volume at point 4 in m^3
Vs=V1-V4;//Effective swept volume in m^3
EVs=Vs*N;//Effective swept volume per min
Va=(P1*EVs*Ta)/(Pa*T1);//Free air delivered in (m^3)/min
nV=((V1-V4)/(V1-V3))*100;//Volumetric effciency
T2=T1*((P2/P1)^x);//Air delivery temperature in K
t2=T2-273;//Air delivery temperature in oC
W=(n*P1*(V1-V4)*(((P2/P1)^x)-1))*N/((n-1)*60);//Cycle power in kW
Wiso=P1*V1*(log(P2/P1));//Isothermal workdone
P=(n*P1*V1*(((P2/P1)^x)-1))/(n-1);//Cycle power neglecting clearance
niso=(Wiso/P)*100;//Isothermal efficiency
//OUTPUT
mprintf('Free air delivered is %3.3f (m^3)/min \n Volumetric efficiency is %3.0f percent \n Air delivery temperature is %3.1f oC \n Cycle power is %3.0f kW \n Isothermal efficiency is %3.1f percent',Va,nV,t2,W,niso)
//==============================END OF PROGRAM=================================
|
f2c5d5255ec3832e1a46c9b9add47203b797783a | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/optim/aplat.sci | cedd23f630b540252fc2f46824f1235ba38c9a07 | [
"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 | 504 | sci | aplat.sci | function [r,ind]=aplat(l,r)
//flattens a list. If l is constant it puts it in a list
//ind contains the list structure
// Copyright INRIA
if type(l)==1|type(l)==5 then r=list(l);ind=-1;return;end
n=size(l)
[lhs,rhs]=argn(0)
if rhs==1 then r=list(),nr=0,end
ind=list()
i=0
nind=0
for li=l
i=i+1
if type(li)==15 then
[r,ind1]=aplat(li,r)
ni=size(ind1)
for j=1:ni,nind=nind+1;ind(nind)=[i,ind1(j)];end
nr=size(r)
else
nr=nr+1
r(nr)=li
nind=nind+1
ind(nind)=i
end
end
|
103a8fcaf2e7af9828a7012f002eb2a16b457c04 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2873/CH5/EX5.18/Ex5_18.sce | abfb86a814234506763ef2448820fa7a72bc79b9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,602 | sce | Ex5_18.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh Chapter 5 Example 18")
T1_a=800;//temperature of reservoir a in K
T1_b=700;//temperature of reservoir b in K
T1_c=600;//temperature of reservoir c in K
T2=320;//temperature of sink in K
W=20;//work done in KW
Q2=10;//heat rejected to sink in KW
disp("let heat supplied by reservoir at 800 K,700 K,600 K be Q1_a , Q1_b , Q1_c")
disp("here Q1-Q2=W")
disp("so heat supplied by source(Q1)=W+Q2 in KW")
Q1=W+Q2
disp("also given that,Q1_a=0.7*Q1_b.......eq 1")
disp("Q1_c=Q1-(0.7*Q1_b+Q1_b)")
disp("Q1_c=Q1-1.7*Q1_b........eq 2")
disp("for reversible engine")
disp("Q1_a/T1_a+Q1_b/T1_b+Q1_c/T1_c-Q2/T2=0......eq 3")
disp("substitute eq 1 and eq 2 in eq 3 we get, ")
disp("heat supplied by reservoir of 700 K(Q1_b)in KJ/s")
disp("Q1_b=((Q2/T2)-(Q1/T1_c))/((0.7/T1_a)+(1/T1_b)-(1.7/T1_c))")
Q1_b=((Q2/T2)-(Q1/T1_c))/((0.7/T1_a)+(1/T1_b)-(1.7/T1_c))
disp("so heat supplied by reservoir of 800 K(Q1_a)in KJ/s")
disp("Q1_a=0.7*Q1_b")
Q1_a=0.7*Q1_b
disp("and heat supplied by reservoir of 600 K(Q1_c)in KJ/s")
disp("Q1_c=Q1-1.7*Q1_b")
Q1_c=Q1-1.7*Q1_b
disp("so heat supplied by reservoir at 800 K(Q1_a)")
Q1_a
disp("so heat supplied by reservoir at 700 K(Q1_b)")
Q1_b
disp("so heat supplied by reservoir at 600 K(Q1_c)")
Q1_c=-Q1_c
disp("NOTE=>answer given in book for heat supplied by reservoir at 800 K,700 K,600 K i.e Q1_a=61.94 KJ/s,Q1_b=88.48 KJ/s,Q1_c=120.42 KJ/s is wrong hence correct answer is calculated above.")
|
93897285f63383d073649a8ea4793c5916e5f32b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1850/CH1/EX1.12/exa_1_12.sce | 919f28f5968da7bbc45cfbfb44c898216c3ff5c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 713 | sce | exa_1_12.sce | // Exa 1.12
clc;
clear;
close;
// Given data
V_D1=0.7;// in volt
V_D2=V_D1;
V_BE= 0.7;// in volt
Bita= 100;
R3=180;// in ohm
V_EE= 15;// in volt
V_CC=15;// in volt
R_C=470;// in ohm
V_B3= -V_EE+V_D1+V_D2;// in volt
V_E3= V_B3-V_BE;// in volt
I_E3= (V_E3-(-V_EE))/R3;// in amp
// Part (i)
I_CQ= I_E3/2;// in amp
I_CQ= I_CQ*10^3;// in mA
I_CQ= ceil(I_CQ);
I_E=I_CQ;
disp(I_CQ,"Quiescent current in mA")
V_CEQ= V_CC + V_BE - I_CQ*10^-3*R_C;// in volt
disp(V_CEQ,"Value of V_CEQ in volt");
re_desh= 26/I_E;// in ohm
// Part(ii)
A_d = R_C/(re_desh);
disp(A_d,"Differential Voltage gain");
// part(iii)
R_in1= 2*Bita*re_desh;// in ohm
disp(R_in1*10^-3,"Input resistance in k ohm");
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.