blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 6 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 87 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 15 values | visit_date timestamp[us]date 2016-08-04 09:00:04 2023-09-05 17:18:33 | revision_date timestamp[us]date 1998-12-11 00:15:10 2023-09-02 05:42:40 | committer_date timestamp[us]date 2005-04-26 09:58:02 2023-09-02 05:42:40 | github_id int64 436k 586M ⌀ | star_events_count int64 0 12.3k | fork_events_count int64 0 6.3k | gha_license_id stringclasses 7 values | gha_event_created_at timestamp[us]date 2012-11-16 11:45:07 2023-09-14 20:45:37 ⌀ | gha_created_at timestamp[us]date 2010-03-22 23:34:58 2023-01-07 03:47:44 ⌀ | gha_language stringclasses 36 values | src_encoding stringclasses 17 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 15 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71cf5263fbd143d082143be69b84830637cde714 | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH14/EX14.8/example14_8.sce | daff94a62fb8c1523cec7c50b2fe0d67f9241f7b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,093 | sce | example14_8.sce | //Chapter 14
//Example 14_8
//Page 369
clear;clc;
v=400;
vl=230;
ia=70;
ib=84;
ic=33;
im=200;
pf=0.2;
//part 1
printf("LAMP LOAD ALONE: \n");
//Refering to the phasor diagram in the book
hc=ib*cos(30*%pi/180)-ic*cos(30*%pi/180);
vc=ia-ib*cos(60*%pi/180)-ic*cos(60*%pi/180);
in=sqrt(hc^2+vc^2);
printf("Resultant horizontal component = %.2f A \n", hc);
printf("Resultant vertical component = %.2f A \n", vc);
printf("Neutral component = %.2f A \n\n", in);
//part 2
printf("BOTH LAMP AND MOTOR LOAD: \n");
ac=im*pf;
rc=im*sin(acos(pf));
Ir=sqrt((ac+ia)^2+rc^2);
Iy=sqrt((ac+ib)^2+rc^2);
Ib=sqrt((ac+ic)^2+rc^2);
printf("Nuetral current remains the same, ie In = %.2f A \n", in);
printf("Active component of motor current = %.0f A \n", ac);
printf("Reactive component of motor current = %.0f A \n", rc);
printf("\t Ir = %.2f A \n", Ir);
printf("\t Iy = %.2f A \n", Iy);
printf("\t Ib = %.2f A \n\n", Ib);
//part 3
printf("POWER SUPPLIED: \n");
pl=vl*(ia+ib+ic);
pm=sqrt(3)*v*im*pf;
printf("Power supplied to lamps = %.0f W \n", pl);
printf("Power supplied to motor = %.0f W \n", pm);
|
678e584d86e14acb8547b7e3d120db8d205f49c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3761/CH4/EX4.10/Ex4_10.sce | 56bfc658e57c81bdecf7a3fcd08fd49fbc1a0ea1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 550 | sce | Ex4_10.sce | disp("Example 4.10")
disp("Grade of Steel,fy = Fe250","Grade of Concrete,fck = M20","D=600mm","d=550mm","b=300mm","Bars used = 4 - 25 dia")
b=300
d=550
D=600
fck=20
Ast=%pi*4*25*25/4
disp("mm^2",Ast,"Ast=")
disp("For Fe415 Steel,")
Es=2*10^5
fy=250
Est=0.87*fy/Es
xumaxd=(0.0035/(0.0055+Est))
disp(xumaxd,"xumax/d")
xumax=xumaxd*d
disp("mm",xumax,"xu,max=")
disp("Assuming, xu</xu,max and applying the force equilibrium condition Cu=Tu")
xu= (0.87*fy*Ast)/(0.362*fck*b)
disp("mm",xu,"xu")
disp("mm",xu,"xu<xu,max, therefore xu=")
|
84b089a93ffb8e5b9699bef5bef085d197fe144a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH40/EX40.4/Example40_4.sce | e315d65dc29a3a2abb3bde8d212ec7becc73b7b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,247 | sce | Example40_4.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART IV : UTILIZATION AND TRACTION
// CHAPTER 2: HEATING AND WELDING
// EXAMPLE : 2.4 :
// Page number 728
clear ; clc ; close ; // Clear the work space and console
// Given data
w_brass = 1000.0 // Weight of brass(kg)
time = 1.0 // Time(hour)
heat_sp = 0.094 // Specific heat
fusion = 40.0 // Latent heat of fusion(kcal/kg)
T_initial = 24.0 // Initial temperature(°C)
melt_point = 920.0 // Melting point of brass(°C)
n = 0.65 // Efficiency
// Calculations
heat_req = w_brass*heat_sp*(melt_point-T_initial) // Heat required to raise the temperature(kcal)
heat_mel = w_brass*fusion // Heat required for melting(kcal)
heat_total = heat_req+heat_mel // Total heat required(kcal)
energy = heat_total*1000*4.18/(10**3*3600*n) // Energy input(kWh)
power = energy/time // Power(kW)
// Results
disp("PART IV - EXAMPLE : 2.4 : SOLUTION :-")
printf("\nAmount of energy required to melt brass = %.f kWh", energy)
|
596ca9b04a5c50a0aaf877a54c1e8efaaa31f42a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2102/CH2/EX2.10/exa_2_10.sce | 5a31e9fe5b6d38765f2c2a127a7d1fe7335554e8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 904 | sce | exa_2_10.sce | // Exa 2.10
clc;
clear;
close;
// Given data
ni= 1.8*10^15;// in /m^3
rho= 2*10^5;// in Ωm
q=1.6*10^-19;// in C
dopingConcentration= 10^25;// in /m^3
n=dopingConcentration;
MCC= ni^2/dopingConcentration; // Minority carrier concentration per cube meter
miu_n= 1/(2*rho*q*ni);// in m^3/Vs
disp(miu_n,"The value of µn in m^3/Vs is : ")
// Part (b)
sigma= q*n*miu_n;//in (Ωm)^-1
rho= 1/sigma;// in Ωm
disp(rho,"Resistivity in Ωm is : ")
// Part(c)
kT= 26*10^-3;//in V
no= n;// in /m^3
Shift_inFermiLevel= kT*log(no/ni);// in eV
disp(Shift_inFermiLevel,"Shift in Fermi level due to doping in eV is :")
disp("Hence, E_F lies "+string(Shift_inFermiLevel)+" eV above Fermi level Ei")
// Part (d)
MCC= ni^2/dopingConcentration; // Minority carrier concentration per cube meter
disp(MCC,"Minority carrier concentration per cube meter when its temperature is increased is : ")
|
19d3a019204247641a96803f7da98c43e9eb41de | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH9/EX9.3/example9_3.sce | bf8476f0d7a78bf5a2300270686ee588f874d2be | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 278 | sce | example9_3.sce | //clc()
F1 = 6*1000;//L/s
BOD1 = 3 * 10^-5;//g/L
BOD2 = 5 * 10^-3;//g/L
V = 16 * 10^3;//m^3/day
v = V * 10^3 / (24 * 3600);//L/s
//Let BOD of the effluent be BODeff,
BODeff = (BOD2 * (F1 + v) - BOD1 * F1) / ( v );
disp("g/L",BODeff,"BOD of the effluent of the plant = ") |
fe743da575ebc26cdcac70e7ff9b5f7eb3b1b87e | 19fd40cb94855327f6f4db1330b2ccec188b13cb | /Aulas/Aula_8_P1S/P1S.sce | be29bf42aa5ba58e5e070ed40fcdc43f619ea36e | [] | no_license | Afcam/Materiais-Eletricos-Magneticos | 6e22194419f2704f5e49c4dc9f5b282ccabafc11 | 0fb3c8847a7c5a8ee9d46d7be1280eceefe08c79 | refs/heads/master | 2023-07-24T21:50:12.675217 | 2018-05-11T13:27:25 | 2018-05-11T13:27:25 | 126,596,938 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,361 | sce | P1S.sce | //programa: P1S.sce
//Semestre:1/2018
clear;
format('e',10);
//Constantes
e = 1.602e-19; //[C]
h = 6.6262e-34; //[J.s]
c = 3e8; //[m/s]
kb = 1.38e-23; //[J/K]
//Questão-1
lambda = 500e-9; //[m]
p = h/lambda;
Ec = p*c; //[J]
ec = Ec/e; //[eV]
disp('Q1a: p = ');
disp(p); //[kg.m/s]
disp('Q1b: ec = ');
disp(ec); //[eV]
//Questão-2
Nd = 1e16; //[cm^-3]
n0 = Nd;
Rh = -1/(e*n0); //[cm^3/C]
disp('Q2a: n0 = ');
disp(n0); //[cm^-3]
disp('Q2b: Rh = ');
disp(Rh); //[cm^3/C]
//Questão-3
L = 1; //[cm]
W = 0.1; //[cm]
t = 1e-4; //[cm]
//T = 300;//[K]
mi_n = 1350; //[cm^2/V.s]
mi_p = 480; //[cm^2/V.s]
//n = p = ni
ni = 1.5e10; //[cm^-3]
s = e*ni*(mi_n + mi_p); //condutividade [S/cm]
disp('Q3a: s = ');
disp(s); //[Siemens/cm]
A = t*W; //[cm^2]
R = L/(A*s); //[ohms]
disp('Q3b: R = ');
disp(R); //[ohms]
//Questão-4
Vldr = [2 3]; //[volts]
Ildr = [1e-3 30e-3]; //[amp]
Iled = [0 10e-3]; //[amp]
C2 = Ildr(1)/Vldr(1); //[Siemens]
C1 = (Ildr(2) - C2*Vldr(2))/(Iled(2)*Vldr(2));
//C1 = [Siemens/A]ou[1/V]ou[A/W]
disp('Q4a: C1 = ');
disp(C1);
disp('Q4b: C2 = ');
disp(C2);
//Questão-5
T1 = 300;
Is1 = 1e-8; //[amp] T1 = 300 K
Is2 = 3e-8; //[amp] T2 = ?
Va = 1.2; //[volt]
Vb = 0.7; //[volt]
Vc = 0;
I = Is1*(exp((e/(kb*T1))*(Va-Vb))-1);//[amp]
T2 = (e*(Vb-Vc))/(kb*log(I/Is2 + 1)); //[K]
disp('Q5a: T2 = ');
disp(T2); //[K]
disp('Q5b: I = ');
disp(I); //[amp]
|
591e491c946ea57a40b9cdc4e6df9679934b0aa5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3638/CH8/EX8.8/Ex8_8.sce | 0bdab9bd127a16f30b6cff82e20e9272b2013eac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 643 | sce | Ex8_8.sce | //Introduction to Fiber Optics by A. Ghatak and K. Thyagarajan, Cambridge, New Delhi, 1999
//Example 8.8
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;
//given
lambda0=1.3e-6;//operating wavelength of single mode fiber in m
thetah=2.74;//angle corresponding to 3 dB point in degrees
k0=2*%pi/lambda0;//free space wave number in rad/m
omega=sqrt(2*log(2))/(k0*sind(2.74));//corresponding spot size of fiber in m
d=2*omega;//corresponding value of Gaussian mode field diameter in m
mprintf("Corresponding mode field diameter=%f um",d/1e-6)//division by 1e-6 to convert in um
//The answer provided in the textbook is wrong
|
7ac8e30bbd2df6f7b4c655682b8e5a4a2e363f97 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2141/CH5/EX5.12/Ex5_12.sce | 9680e9df27c396a7b8f2a34b088acad74a2a5fba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 185 | sce | Ex5_12.sce |
clc
//initialisation of variables
h=20.2 //lbf/in^2
T=40 //F
//CALCULATIONS
Cp=h/T//Btu/lbm F
//RESULTS
printf('The constant pressure specific heat of steam =% f Btu/lbm',Cp)
|
a534b3d1914b9e1e4884751c39fc4bfe1ff956ca | 1db0a7f58e484c067efa384b541cecee64d190ab | /macros/sigmoid_train.sci | 534a370a9df593b5de76a9644d45e2bb4f31b65d | [] | 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 | 3,311 | sci | sigmoid_train.sci | <<<<<<< HEAD
function y = sigmoid_train(t, ranges, rc)
// Evaluate a train of sigmoid functions at T.
//Calling Sequence
//y = sigmoid_train(t, ranges, rc)
//Parameters
//t: integer
//ranges: matrix
//rc:timeconstant
//Description
//The number and duration of each sigmoid is determined from RANGES. Each row of RANGES represents a real interval, e.g. if sigmoid 'i' starts at 't=0.1' and ends at 't=0.5', then 'RANGES(i,:) = [0.1 0.5]'. The input RC is an array that defines the rising and falling time constants of each sigmoid. Its size must equal the size of RANGES.
//Examples
//sigmoid_train(0.1,[1:3],4)
//Output :
// ans =
//
// 0.2737470
funcprot(0);
//**************************************************************************************************
//______________________________________________version1 code (not working)_________________________
//__________________________________________________________________________________________________
//**************************************************************************************************
//rhs=argn(2);
//if (rhs<3 | rhs>3) then
// error("Wrong number of input arguments");
//end
//
//select(rhs)
//case 3 then
// y=callOctave("sigmoid_train", t, ranges, rc)
//end
//**************************************************************************************************
//______________________________________________version2 code ( working)____________________________
//__________________________________________________________________________________________________
//**************************************************************************************************
nRanges = size (ranges, 1);
if isscalar (rc)
rc = rc * ones (nRanges,2);
elseif or( size(rc) ~= [1 1])
if length(rc) ~= nRanges
error('signalError','Length of time constant must equal number of ranges.')
end
if isrow (rc)
rc = rc';
end
rc = repmat (rc,1,2);
end
flag_transposed = %F;
if iscolumn (t)
t = t.';
flag_transposed = %T;
end
[ncol nrow] = size (t);
T = repmat (t, nRanges, 1);
RC1 = repmat (rc(:,1), 1, nrow);
RC2 = repmat (rc(:,2), 1, nrow);
a_up = (repmat (ranges(:,1), 1 ,nrow) - T)./RC1;
a_dw = (repmat (ranges(:,2), 1 ,nrow) - T)./RC2;
Y = 1 ./ ( 1 + exp (a_up) ) .* (1 - 1 ./ ( 1 + exp (a_dw) ) )
y = max(Y,'r');
if flag_transposed
y = y.';
end
=======
function y =sigmoid_train(t, ranges, rc)
// Evaluate a train of sigmoid functions at T.
//Calling Sequence
//y = sigmoid_train(t, ranges, rc)
//Parameters
//t: integer
//ranges: matrix
//Description
//The number and duration of each sigmoid is determined from RANGES. Each row of RANGES represents a real interval, e.g. if sigmoid 'i' starts at 't=0.1' and ends at 't=0.5', then 'RANGES(i,:) = [0.1 0.5]'. The input RC is an array that defines the rising and falling time constants of each sigmoid. Its size must equal the size of RANGES.
//Examples
//sigmoid_train(0.1,[1:3],4)
//ans =
// 0.27375
funcprot(0);
rhs=argn(2);
if (rhs<3 | rhs>3) then
error("Wrong number of input arguments");
end
select(rhs)
case 3 then
y=callOctave("sigmoid_train", t, ranges, rc)
end
>>>>>>> 6bbb00d0f0128381ee95194cf7d008fb6504de7d
endfunction
|
987ec31ed00cdd94db50cbea1dae0d7155c13193 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1388/CH8/EX8.3/8_3.sce | a2a1bb2c533eca0956cc537b079970a57ca42db9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 363 | sce | 8_3.sce | clc
//initialisation of variables
h= 6.6234*10^-27 //ergs sec
m= 2.59 //gms
v= 3.35*10^4 //cm sec ^-1
e= 4.8*10^-10 //ev
V= 40000 //volts
M= 300 //gms
L= 1836 //A
N= 6*10^23 //molecules
//CALCULATIONS
p= m*v
l= h/p
E= V*e/M
P= sqrt(2*E*(1/(L*N)))
L1= h*10^8/P
//RESULTS
printf (' wavelength = %.2e cm',l)
printf (' \n wavelength = %.4f cm',L1)
|
cbdcd0c2032dde50741b3dde79a0ad66609e613f | 449d555969bfd7befe906877abab098c6e63a0e8 | /23/CH10/EX10.5/Example_10_5.sce | 26fc52c853b35b31691d6d3789491c0acb91bb7d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,025 | sce | Example_10_5.sce | clear;
clc;
//To find Approx Value
function[A]=approx(V,n)
A=round(V*10^n)/10^n;//V-Value n-To what place
funcprot(0)
endfunction
//Example 10.5
//Caption : Program to Find L V {xi} and {yi} for a System
z1=0.45;
z2=0.35;
z3=0.2;
P=110;//[KPa]
T=353.15;//[K]
P1_sat=195.75;//[KPa]
P2_sat=97.84;//[KPa]
P3_sat=50.32;//[KPa]
//BUBL Calculation
x1=z1;
x2=z2;
x3=z3;
P_BUBL=(x1*P1_sat)+(x2*P2_sat)+(x3*P3_sat);
//DEW Calculation
y1=z1;
y2=z2;
y3=z3;
P_Dew=1/((y1/P1_sat)+(y2/P2_sat)+(y3/P3_sat));
//Since P_Bubl<P<P_dew
//Flash Calculation
K1=P1_sat/P;
K2=P2_sat/P;
K3=P3_sat/P;
//Finding V from Eqn(10.17)
//E((zi*Ki)/(1+(V*(Ki-1))))=1
x=0;
F_x=(((z1*K1)/(1+((K1-1)*x)))+((z2*K2)/(1+((K2-1)*x)))+((z3*K3)/(1+((K3-1)*x)))-1);
F_a=F_x;
x=0.9;
F_x=(((z1*K1)/(1+((K1-1)*x)))+((z2*K2)/(1+((K2-1)*x)))+((z3*K3)/(1+((K3-1)*x)))-1);
F_b=F_x;
A=0;
B=0.9;
i=1;
while(i==1)
a=A;
F_a=(((z1*K1)/(1+((K1-1)*a)))+((z2*K2)/(1+((K2-1)*a)))+((z3*K3)/(1+((K3-1)*a)))-1);
b=B;
F_b=(((z1*K1)/(1+((K1-1)*b)))+((z2*K2)/(1+((K2-1)*b)))+((z3*K3)/(1+((K3-1)*b)))-1);
x1=((a*F_b)-(b*F_a))/(F_b-F_a);
F_x1=(((z1*K1)/(1+((K1-1)*x1)))+((z2*K2)/(1+((K2-1)*x1)))+((z3*K3)/(1+((K3-1)*x1)))-1);
if((F_a*F_x1)<0) then
flag=1;
A=a;
B=x1;
else((F_x1*F_b)<0)
flag=2;
A=x1;
B=b;
end
x1_a=approx(x1,4);
b_a=approx(b,4);
a_a=approx(a,4);
if(x1_a==b_a)
V=approx(x1,4);
i=0;
break;
elseif(x1_a==a_a)
root=approx(x1,4);
i=0;
break;
end
end
disp(V,'Hence By solving the polynomial V = ')
L=1-V;
//from eqn 10.16
//yi=(zi*Ki)/(1+(V*(Ki-1)))
y1=approx((z1*K1)/(1+((K1-1)*V)),4);
y2=approx((z2*K2)/(1+((K2-1)*V)),4);
y3=approx((z3*K3)/(1+((K3-1)*V)),4);
x1=approx(y1/K1,4);
x2=approx(y2/K2,4);
x3=approx(y3/K3,4);
y=[y1 y2 y3];
x=[x1 x2 x3];
disp(L,'Moles Of liquid')
disp(V,'Moles Of vapor')
disp(x,'Mole fraction Of liquid')
disp(y,'Mole fraction Of vapor')
//End |
7e9b015036bb3276b6f2417cd78f943a7d90f7f3 | e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4 | /New LSTMAttn Model/.data/form-split/DEVELOPMENT-LANGUAGES/oto-manguean/xty.tst | 26aaa1ce03e523bbcbdcfaadc13cdca5c7886421 | [] | no_license | davidgu13/Lemma-vs-Form-Splits | c154f1c0c7b84ba5b325b17507012d41b9ad5cfe | 3cce087f756420523f5a14234d02482452a7bfa5 | refs/heads/master | 2023-08-01T16:15:52.417307 | 2021-09-14T20:19:28 | 2021-09-14T20:19:28 | 395,023,433 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 14,275 | tst | xty.tst | ta³ndaʔ³a⁴ V;PFV;LGSPEC1
ta¹xin¹ V;IRR
ku³-ta⁴tan⁴ V;PFV;LGSPEC2
nda³-chaʔ⁴bi³ V;IRR
ku³-ni³ni³ V;PFV;LGSPEC2
niʔ¹i⁴ V;IRR;NEG
ka³ka³ V;PFV;LGSPEC1
ya³tan³ V;IPFV
nda³-ya¹⁴kun² V;IRR;NEG
ta¹⁴ni³ V;IPFV
ta³xaʔ⁴a⁴ V;IRR;NEG
ku³-xi⁴ni⁴ V;PFV;LGSPEC1
nda³-kwi³so³, ndi³-kwi³so³ V;PFV;LGSPEC2
ki³taʔ⁴an⁴ V;IRR;NEG
nda³ndo³o³ V;IRR;NEG
ku³un³ V;IRR
ku³-i³tun⁴ V;PFV;LGSPEC1
nda³-tu¹u³ V;IRR
ka³sun² V;PFV;LGSPEC2
ku³-naʔ³a⁴ V;IRR;NEG
kaʔ³bi³ V;PFV;LGSPEC1
ku³ni² V;PFV;LGSPEC2
ku³-ndo³so⁴ V;IPFV
ka³tu⁴ V;PFV;LGSPEC1
ka³na³ V;PFV;LGSPEC1
xo⁴kwi¹in¹ V;PFV;LGSPEC1
xi³kwiʔ⁴na⁴ V;IRR;NEG
kaʔ¹a¹ V;IPFV
xa³nda⁴ V;IRR
nda³-ki³si³ V;PFV;LGSPEC1
ka³ndwaʔ¹a³ V;IRR
tiʔ³bi³ V;IRR;NEG
nda³kaʔ¹nu¹ V;PFV;LGSPEC1
xi¹ni³ V;IPFV
ku³-ndo³so⁴ V;IRR
ku³u² V;PFV;LGSPEC2
ka³ni² V;PFV;LGSPEC1
ko³o³ V;IPFV
taʔ¹yu¹ V;IRR
nda³-ta³ba⁴ V;IRR
ku¹ndaʔ¹a³ V;PFV;LGSPEC1
kwi¹so³ V;IRR;NEG
sa⁴-yuʔ³bi² V;PFV;LGSPEC1
kwi³nda²a² V;PFV;LGSPEC1
ke³-baʔ¹a³ V;IRR;NEG
ta³xi³kwaʔ⁴a⁴ V;IRR
ko¹ko³ V;PFV;LGSPEC2
chi³chin⁴ V;IPFV
ku³-ndaʔ¹yu¹ V;IPFV
nda³ka³ni³ni² V;PFV;LGSPEC2
ku³-xaʔ³an² V;PFV;LGSPEC2
ka³sa³ V;IRR
nda³-ko³to³ V;PFV;LGSPEC1
ta¹ni¹ V;IRR
chi³pa⁴chi¹ V;IRR
xa¹a¹ V;PFV;LGSPEC1
nda³sa³ V;IRR
kaʔ³ni⁴ V;PFV;LGSPEC1
tu³un² V;PFV;LGSPEC2
sa³ña⁴ V;IRR
kwa³chi³ V;PFV;LGSPEC2
sa⁴-kwi³ko⁴ V;IPFV
xi³kwe⁴nda² (alto es xo³kwe⁴nda²) V;IRR;NEG
chi³nduʔ⁴u⁴ V;PFV;LGSPEC1
ndu³-ka⁴xi³ V;PFV;LGSPEC1
ndo¹o³ V;IRR
taʔ³bi⁴ V;PFV;LGSPEC2
kwi¹i⁴ V;IRR;NEG
tu³u⁴ V;PFV;LGSPEC1
a³sa³ V;PFV;LGSPEC1
ya¹ni³ V;IPFV
ku³-xiʔ³na³ V;PFV;LGSPEC1
nda³kwi³in³ V;IPFV
nda³kwi³in³ V;IRR
ku³-nda³si⁴ V;PFV;LGSPEC2
chi³pa⁴chi¹ V;PFV;LGSPEC2
ta¹ni¹ V;IRR;NEG
ku³-ndi³chi² V;PFV;LGSPEC1
ka³si² V;IPFV
ndu³-tu¹u¹ V;PFV;LGSPEC1
niʔ¹i⁴ V;PFV;LGSPEC2
ndo¹o³ V;IRR;NEG
ndu³-ku³na⁴ V;IRR
ku³-ti¹ki³xin⁴ V;IPFV
xi¹nu³ V;IRR;NEG
nda³-ka³na³ V;IRR
nda³kuʔ³u⁴ V;PFV;LGSPEC2
ka¹sun¹ V;PFV;LGSPEC2
ndo³ko³o⁴ V;PFV;LGSPEC2
nda³kwe¹ta³ V;PFV;LGSPEC2
ku³-ti³saʔ⁴ma³ V;IRR
nu¹ma¹ V;PFV;LGSPEC2
naʔ¹na¹ V;PFV;LGSPEC1
ku³-ndi³xi³ V;IRR;NEG
kaʔ³ma³ V;PFV;LGSPEC1
xa¹xa¹ V;IRR;NEG
nda³chi³i⁴ V;PFV;LGSPEC1
kaʔ³a³ V;PFV;LGSPEC1
nda³ka³ba³ V;IPFV
nda³i³ni² V;IPFV
ku³-na³mi⁴ V;IPFV
ta³kweʔ³e² V;IRR
ndu³ku³xa³ V;IRR;NEG
ka³kwi¹in¹ V;IPFV
ka³ndi⁴xa³ V;IRR
nda³-kwi¹in¹ V;PFV;LGSPEC1
nda³chi⁴ V;IPFV
ki¹ni⁴ V;PFV;LGSPEC2
ku³-nda³si⁴ V;IRR
tu³xi⁴ V;IPFV
chioʔ¹o⁴ V;PFV;LGSPEC1
nda³kwaʔ¹a³ V;PFV;LGSPEC2
ndaʔ³a² V;IRR;NEG
nda³ka³ba³ V;IRR;NEG
chi³chin⁴ V;IRR
ku³-nda⁴a⁴ V;PFV;LGSPEC1
tu¹xuʔ⁴u² V;IRR
ku³-nda³si⁴ V;IPFV
taʔ³bi⁴ V;PFV;LGSPEC1
sa⁴-na³na³ V;IPFV
ka³ti¹in³ V;PFV;LGSPEC2
ndu¹xin¹ V;IRR
ndo³o³ V;IPFV
ka¹xan⁴ V;IPFV
ku³-nda³tu³ V;IRR
tiʔ³bi⁴ V;PFV;LGSPEC1
su³ku⁴ V;PFV;LGSPEC1
i¹chi¹ V;PFV;LGSPEC1
ki¹ni⁴ V;IRR
ku³ndu³ndu² V;PFV;LGSPEC1
nda³-naʔ¹a¹ V;PFV;LGSPEC1
nda³chi⁴ V;IRR;NEG
ki³ni⁴ V;PFV;LGSPEC2
ta¹xi⁴ V;IRR
sa⁴-ndo³to³ V;IRR;NEG
kaʔ¹a¹ V;PFV;LGSPEC2
ndiʔ³i³ V;IRR
ku³u² V;IPFV
ke¹e³ V;PFV;LGSPEC2
sa⁴-to¹o³ V;IPFV
nda³ta⁴ V;IRR;NEG
ndu³-ma¹ni¹ V;IRR
nda³-taʔ³bi⁴ V;IPFV
xi³kwiʔ⁴na⁴ V;IPFV
ku³-nuʔ³ni² V;IRR
ndu³-baʔ¹a³ V;IRR
ki³si³ V;PFV;LGSPEC1
ndu³toʔ³ni³ V;IRR;NEG
chuʔ³u⁴ V;IPFV
ko¹yo³ V;PFV;LGSPEC2
ta³an⁴ V;IPFV
ta³seʔ⁴e² V;IRR
nda³tuʔ⁴un⁴ V;PFV;LGSPEC2
ku³-laʔ⁴la¹ V;IPFV
ku³-ta³ka³a³ V;PFV;LGSPEC1
ka³ko¹o³ V;PFV;LGSPEC2
kaʔ³a³ V;IRR
nde¹e³ V;IRR;NEG
ta³xi³ V;PFV;LGSPEC1
ku³nda³si² V;PFV;LGSPEC1
ka³si² V;PFV;LGSPEC1
sa⁴-yuʔ³bi² V;IRR;NEG
ndu³-ka⁴xi³ V;IRR;NEG
ku³xi³ V;IRR
su¹kun¹ V;IPFV
kaʔ³ni⁴ V;IRR;NEG
nda³-ki³si³ V;IPFV
ta³xaʔ⁴a⁴ V;PFV;LGSPEC1
xiʔ¹⁴ñu³ V;PFV;LGSPEC2
sa³na³ V;IRR
ke¹yu⁴ V;PFV;LGSPEC2
xa³xa⁴ V;IRR
taʔ³bi⁴ V;IRR
nda³ka³ni³ni² V;PFV;LGSPEC1
ku³-ñu³u⁴² V;PFV;LGSPEC2
nda³-ka³na³ V;PFV;LGSPEC2
ka¹ña¹ V;IRR;NEG
nduʔ¹u⁴ V;IRR
sa⁴-ka³xan⁴ V;IRR;NEG
kaʔ³bi³ V;IRR
sa⁴-kiʔ³in³ V;PFV;LGSPEC2
nda³ndi³i⁴ V;PFV;LGSPEC1
ya¹⁴kun² V;IPFV
ndi³kweʔ³e² V;PFV;LGSPEC2
ndu³-i⁴ta⁴ V;PFV;LGSPEC2
ka³ba⁴ V;IRR
nda³kwaʔ¹a³ V;IPFV
kwi¹in¹ V;PFV;LGSPEC2
kwi¹in¹ V;IPFV
ku³nduʔ⁴u⁴ V;IPFV
sa⁴-ka³sun² V;PFV;LGSPEC1
ku³na¹⁴ni³ V;PFV;LGSPEC2
ndu³-si¹i⁴ V;IRR
kaʔ³yu⁴ V;IRR
ndu³ta³ V;IPFV
ko³nda²a² V;IPFV
ko¹ko³ V;IPFV
ku³-laʔ⁴la¹ V;PFV;LGSPEC2
nda³-ka³a⁴ V;PFV;LGSPEC2
ko³ko³ V;PFV;LGSPEC1
kaʔ³ndi² V;PFV;LGSPEC1
ku³si⁴ki²⁴ V;IRR;NEG
nda³-ki³si³ V;PFV;LGSPEC2
sa³-kwe⁴nda² V;IPFV
ku³-nu¹mi⁴ V;IPFV
ku³tu³ V;PFV;LGSPEC1
nda³keʔ³e⁴ V;IRR
ndo³ko³o⁴ V;IRR;NEG
kaʔ³bi³ V;IPFV
sa⁴-ndaʔ³bi² V;IRR;NEG
ndu³i³ko⁴ / ndu³kwi³ko⁴ V;IRR
nda³-xa³a³ V;IRR;NEG
kwe³e² V;IRR
ndu³ku³xa³ V;IRR
nda³xin³ V;IRR
nda³xiʔ³i⁴ V;IRR;NEG
tu¹un¹ V;PFV;LGSPEC2
kaʔ¹an¹ V;IRR;NEG
ku³-chi³tu⁴ V;IPFV
ku³u² V;PFV;LGSPEC1
ka¹kan¹ V;PFV;LGSPEC2
nda³xiʔ³i⁴ V;PFV;LGSPEC1
xi¹⁴ko³ V;IRR
su³-kwe⁴nda² V;IRR;NEG
ti³so⁴ V;PFV;LGSPEC2
nda³ndi³so³ V;IRR
nda³kuʔ³u⁴ V;IPFV
kwiʔ¹in³ V;IRR;NEG
kwiʔ¹in³ V;IPFV
ki³ni⁴ V;PFV;LGSPEC1
nda³i³ni² V;PFV;LGSPEC1
nda³-sa¹ka¹ V;PFV;LGSPEC2
taʔ¹bi⁴ V;IRR;NEG
nda³ka¹tuʔ⁴un⁴ V;IPFV
nda³a³ V;IRR
cha³ka³ta⁴ V;IPFV
ka³nda²a² V;PFV;LGSPEC2
ndu³-bi⁴chi⁴ V;PFV;LGSPEC1
nda³i³chi² V;PFV;LGSPEC2
ndu³-yaʔ⁴bi³ V;IRR
ku³-na³a⁴ V;PFV;LGSPEC2
ndu³-ndi³i⁴ V;IRR
nda³ta³a³ V;IRR
sa¹a⁴ V;IPFV
ndu³-si¹i⁴ V;PFV;LGSPEC2
ku³ma¹ni⁴ V;IRR;NEG
nda³-ko¹o³ V;PFV;LGSPEC1
nda³-ya¹⁴kun² V;IRR
ya¹⁴kun² V;PFV;LGSPEC1
chuʔ³u⁴ V;PFV;LGSPEC2
ya¹⁴kun² V;IRR;NEG
kaʔ¹nu¹ V;IRR
xi¹⁴ko³ V;PFV;LGSPEC1
nda³-ndu³ku⁴/ndu³ku⁴ V;IRR;NEG
ka³ni² V;IRR;NEG
xi¹⁴ko³ V;IRR;NEG
ko³-nde³e⁴ V;PFV;LGSPEC2
ku³-yaʔ⁴bi³ V;IPFV
nda³ka³ta³ V;PFV;LGSPEC1
ku³-xaʔ¹a¹ V;IRR;NEG
ndu³-yaʔ⁴bi³ V;IRR;NEG
ka³ni² V;IPFV
sa⁴-sa¹a⁴ V;IRR;NEG
ndo¹o³ V;PFV;LGSPEC2
ti¹⁴bi³ V;IPFV
ndu³-kwa¹chi³ V;IPFV
na³na³ V;IRR;NEG
ya¹⁴kun² V;PFV;LGSPEC2
nda³kin² V;IRR;NEG
chi³ka² V;IPFV
ku³-niʔ³i³ V;IRR
ndaʔ¹yu¹ V;PFV;LGSPEC1
nda³ko⁴ V;PFV;LGSPEC1
kuʔ¹un¹ V;IRR
ka¹tu⁴ V;IPFV
niʔ¹i⁴ V;IPFV
ka¹sun¹ V;IRR;NEG
ka¹kan¹ V;IRR;NEG
na³na³ V;PFV;LGSPEC2
ka³ti¹in³ V;IPFV
ta³ya² V;IRR;NEG
xi³kwaʔ⁴a⁴ V;IPFV
yuʔ¹⁴bi² V;IRR
ko³ndoʔ³o³ V;IPFV
ka³-ta³ni³ V;IRR;NEG
kwaʔ³nu³ V;IRR;NEG
ko³ndoʔ³o³ V;IRR;NEG
kuʔ³u² V;IRR;NEG
sa⁴-ndaʔ³bi² V;PFV;LGSPEC2
ti³chaʔ⁴ni³ V;IRR;NEG
kwa¹xin³ V;IRR
ko³ko³ V;IRR;NEG
ku³-ti¹sun¹ V;PFV;LGSPEC2
ku¹un⁴ V;PFV;LGSPEC2
tiʔ³nu³ V;IRR
chi³ndaʔ³a⁴ V;IPFV
nda³-tu¹u⁴ V;PFV;LGSPEC1
xi¹ni³ V;PFV;LGSPEC1
ndu³-ndi³i⁴ V;IRR;NEG
ku³-nde³ta³ V;IRR;NEG
sa¹ña⁴ V;IRR
su¹kun¹ V;PFV;LGSPEC2
ki³xa²a² V;PFV;LGSPEC2
ka³-taʔ³nu³ V;IRR;NEG
ku³-nuʔ³ni² V;PFV;LGSPEC1
ka³ta³ V;IPFV
kwi¹ya⁴ V;IRR
tu¹u³ V;PFV;LGSPEC1
ndu³-ku³na⁴ V;PFV;LGSPEC1
kwi¹ko⁴ V;IRR;NEG
ku¹nuʔ¹u⁴ V;IRR;NEG
ku³-naʔ³a⁴ V;PFV;LGSPEC1
ku³-le³ke³ V;IRR;NEG
kiaʔ³bi¹³ V;IPFV
ka¹ba¹ V;IRR
ko³seʔ⁴e² V;PFV;LGSPEC1
ka³ndiʔ³i³ V;IPFV
nda³kwi³in³ V;PFV;LGSPEC1
ndu³-xi¹nu¹ V;IPFV
ku³chi³ V;IPFV
xa¹⁴ni² V;IRR;NEG
ku³nduʔ⁴u⁴ V;IRR;NEG
keʔ³e⁴ V;IRR
ke³e³ V;PFV;LGSPEC2
kaʔ¹a¹ V;IRR;NEG
nda³ka¹a¹ V;IPFV
nda³-chi³kun² V;PFV;LGSPEC2
ku³-xi⁴ni⁴ V;IPFV
ku³-ta³ni³ V;PFV;LGSPEC1
ta³xi³kwaʔ⁴a⁴ V;PFV;LGSPEC2
ke¹nu³ V;IRR;NEG
sa⁴-ka³xan⁴ V;IPFV
nda³ku³ni² V;PFV;LGSPEC1
ku³-ta³ni³ V;PFV;LGSPEC2
si⁴-kwe¹kun¹ (sa⁴-kwe¹kun¹) V;IRR
ku³-yaʔ⁴bi³ V;PFV;LGSPEC2
ti³su⁴ku²⁴ V;IRR
ka³si⁴ V;PFV;LGSPEC2
xiʔ¹⁴ni³ V;PFV;LGSPEC1
ku³-chaʔ¹mba⁴ V;IPFV
koʔ³ni⁴ V;IRR;NEG
ndu³-ndi³kun² V;IPFV
cha³ka³ba³ V;PFV;LGSPEC2
sa⁴-ndo³to³ V;PFV;LGSPEC2
sa⁴-nda³ba³ V;IRR;NEG
ko¹ko³ V;IRR
tu¹u³ V;IPFV
ka³kiʔ¹i³ V;IRR
keʔ³e⁴ V;PFV;LGSPEC1
kwi³ko⁴ V;IPFV
sa⁴-nda³ba³ V;PFV;LGSPEC2
xi³kwaʔ⁴a⁴ V;IRR;NEG
ti³nda²a² V;IPFV
ku¹ndaʔ¹a³ V;IRR
ka³kwi¹in³ V;PFV;LGSPEC1
nda³ka³ni² V;PFV;LGSPEC1
ku³-ba³ta⁴ V;PFV;LGSPEC1
ndu³-tiʔ⁴bi³ V;IRR
nda³i³ni² V;IRR
ku³-ni³ni³ V;IPFV
ndu³-bi³ta⁴² V;PFV;LGSPEC2
ka³ba⁴ V;IPFV
kuʔ¹un¹ V;PFV;LGSPEC1
ku³un³ V;IRR;NEG
taʔ¹nda¹ V;PFV;LGSPEC2
cha³ka³ta⁴ V;IRR;NEG
ndu³-ku³tu⁴ V;PFV;LGSPEC1
ku³-yo⁴ko¹ V;IRR
xi³i² V;IPFV
chi³kun² V;IRR
ndu³su⁴ku²⁴ V;IRR
ka³xaʔ⁴an² V;IRR;NEG
sa⁴-xi¹nu³ / ja⁴-xi¹nu³ V;PFV;LGSPEC1
ka³tu⁴ V;IPFV
kwe³ta³ V;IRR
ta¹ku¹ V;IRR
ndo³ko³to² V;PFV;LGSPEC1
sa⁴-kwi³ko⁴ V;PFV;LGSPEC1
chi³kun² V;PFV;LGSPEC2
ka³nda³ba³ V;IRR
ku³-ñu³u⁴² V;PFV;LGSPEC1
kwa³ku³ V;PFV;LGSPEC1
ka³ndi³chi² V;STAT
ka¹sun¹ V;IRR
ka³kiʔ¹i³ V;IPFV
ka³xaʔ⁴ni³ V;PFV;LGSPEC2
ndu³-ku³nduʔ⁴u⁴ V;PFV;LGSPEC1
ndu³kwi³ko⁴ V;PFV;LGSPEC2
ku³-kaʔ³an³ V;IRR;NEG
ku¹sun¹ V;IRR
ku³-laʔ⁴la¹ V;PFV;LGSPEC1
ku³-chaʔ¹mba⁴ V;PFV;LGSPEC2
tu³un² V;PFV;LGSPEC1
xo⁴kwi¹in¹ V;IPFV
ku³-xi⁴ni⁴ V;IRR
nda³-na¹ma³ V;PFV;LGSPEC2
ya³tan³ V;IRR
ndu³su⁴ku²⁴ V;IRR;NEG
ndu³-ku³nduʔ⁴u⁴ V;IRR;NEG
ndu³-ndi³xi³ V;IRR;NEG
kaʔ³ma³ V;IRR;NEG
ku³-baʔ¹a³ V;IRR
ka¹sun¹ V;PFV;LGSPEC1
na³ma⁴ V;IPFV
naʔ¹na¹ V;IRR;NEG
ka³niʔ¹i³ V;PFV;LGSPEC1
ka³ndi⁴xa³ V;PFV;LGSPEC2
ndu³-baʔ¹a³ V;IRR;NEG
sa⁴-ti¹⁴bi³ V;IPFV
nda³-tiʔ³bi³ V;IRR;NEG
cha³kwi³in³ V;STAT
ka³si² V;IRR
ko³nde³e³ V;PFV;LGSPEC1
chi³keʔ⁴le¹ V;IRR;NEG
xa³a³ V;PFV;LGSPEC1
ku³-ñu³u³ V;IPFV
nda³nuʔ³u³ V;PFV;LGSPEC2
chi³i³ V;IRR;NEG
ki¹⁴tu³ V;IPFV
ku³-nda¹a⁴ V;PFV;LGSPEC1
nda³kwe¹ta³ V;PFV;LGSPEC1
nda³-ndu³ku⁴/ndu³ku⁴ V;IPFV
ka³sa³chiu⁴un⁴ V;PFV;LGSPEC1
ti³so⁴ V;IRR;NEG
sa⁴-ndiʔ¹i³ V;IPFV
ta³xi³kwaʔ⁴a⁴ V;PFV;LGSPEC1
sa¹ña⁴ V;PFV;LGSPEC1
nda³koʔ³ma⁴ V;IRR;NEG
nda³-tu¹u⁴ V;PFV;LGSPEC2
ka³ta³ V;PFV;LGSPEC1
ka³xi⁴ V;IRR;NEG
nda³ndi³i⁴ V;IRR
taʔ¹bi⁴ V;PFV;LGSPEC1
xa³ka³ V;IPFV
kwi¹ta¹ V;IPFV
chi³kuʔ³ba² V;PFV;LGSPEC1
ka³ndi³so³ V;PFV;LGSPEC1
ki³ni⁴ V;IRR;NEG
nda³kuʔ³u⁴ V;IRR;NEG
tu³u⁴ V;IPFV
ka³sun² V;IRR
ko³ndo³ V;IRR
sa⁴-kaʔ³a³ V;IPFV
xi³kwaʔ⁴a⁴ V;PFV;LGSPEC1
ki³xa²a² V;IPFV
taʔ¹yu¹ V;IPFV
tu³tu⁴ V;PFV;LGSPEC1
ti¹in³ V;IPFV
ta¹nda³² V;IRR;NEG
ku³-su⁴ku²⁴ V;PFV;LGSPEC2
ka³-ta³ni³ V;PFV;LGSPEC2
tiʔ³bi³ V;PFV;LGSPEC2
ndi³ko³ V;IRR;NEG
na³ma³ V;PFV;LGSPEC2
nda³ba³ V;IRR;NEG
ndo³ko³o⁴ V;IPFV
ta³chi⁴ñu³ V;IPFV
nda³ndi³i³ V;PFV;LGSPEC2
kwa¹ñu¹ V;IRR;NEG
nda³-nu¹na⁴ V;PFV;LGSPEC1
ke¹ta³ V;IRR;NEG
xi¹⁴nda² V;PFV;LGSPEC2
nda³sa¹ma³ V;IPFV
xiʔ¹⁴ñu³ V;IPFV
sa⁴-chuʔ¹⁴ma¹ V;IRR;NEG
ndu³naʔ³a² (tu⁴ni¹) V;PFV;LGSPEC1
xi³i² V;IRR;NEG
sa⁴-ndu¹xin¹ V;IRR
ndu³-ka⁴chi¹ V;IRR;NEG
nda³ka¹xin³ V;PFV;LGSPEC1
sa⁴-chuʔ¹⁴ma¹ V;STAT
ka³ko¹o³ V;IRR
chuʔ¹⁴ma¹ V;PFV;LGSPEC1
ka³ndi³so³ V;IRR
ku³-nda¹a⁴ V;IRR;NEG
ka³nduʔ⁴u⁴ V;IPFV
ke¹nu³ V;PFV;LGSPEC1
ku¹ndaʔ¹a³ V;IRR;NEG
choʔ¹ma⁴ V;PFV;LGSPEC2
ta³ba⁴ V;IRR;NEG
ndu³-yaʔ⁴bi³ V;PFV;LGSPEC2
nda³chi³i⁴ V;PFV;LGSPEC2
nda³-ka¹ya¹ V;PFV;LGSPEC2
nda³ndi³so³ V;PFV;LGSPEC2
sa⁴-nde³ta³ V;PFV;LGSPEC2
chi³nde³e⁴ V;PFV;LGSPEC2
ka³ni⁴nu³ V;IRR
ndaʔ³ba² V;PFV;LGSPEC2
ku³-su⁴ku²⁴ V;IPFV
tu¹xi⁴ V;IRR
sa³ka⁴ V;PFV;LGSPEC1
nda³ka³ti³ V;PFV;LGSPEC2
chuʔ¹⁴ma¹ V;PFV;LGSPEC2
ndi³kweʔ³e² V;IRR
ku³-yu⁴ma⁴ V;IPFV
ku³-nde³ta³ V;PFV;LGSPEC2
xiʔ¹⁴ni³ V;IRR
naʔ¹ma¹ V;PFV;LGSPEC1
xa³a³ V;IPFV
nda³-xa³a³ V;IRR
ku³i³ni² V;PFV;LGSPEC1
ndu³ku⁴ V;IRR
nda³ka³ta³ V;IRR
ta¹bi¹ V;PFV;LGSPEC1
kiʔ³in³ V;IRR;NEG
ka¹ña¹ V;PFV;LGSPEC1
xa¹⁴bi² V;PFV;LGSPEC2
ka³kiʔ¹i³ V;IRR;NEG
kwiʔ¹in³ V;IRR
chi³ka² V;PFV;LGSPEC2
ku³-yo⁴ko¹ V;PFV;LGSPEC2
ka³ndiʔ³i³ V;PFV;LGSPEC1
ka³ba³ V;IPFV
nda³ku³ V;IPFV
ndi¹ko³ V;IPFV
ka³ta³ V;PFV;LGSPEC2
ta³bi³ V;IRR;NEG
chi³chin⁴ V;PFV;LGSPEC2
ka³na³nu³ V;IRR;NEG
ku³-so³ko² V;IRR;NEG
ki³taʔ⁴ni³ V;IRR;NEG
ku³-nde³ta³ V;PFV;LGSPEC1
kwa³ku³ V;IPFV
ku³-ti¹sun¹ V;IRR
nda³ndi¹ka¹ V;IRR
tu³xi⁴ V;PFV;LGSPEC1
sa³ka⁴ V;IRR;NEG
ki³taʔ⁴an⁴ V;IPFV
ndi³kwi¹kun¹ V;PFV;LGSPEC1
ku¹sun¹ V;PFV;LGSPEC1
nda³-sa¹ka¹ V;IRR
nda³ndi¹ka¹ V;PFV;LGSPEC2
nda³ndo³o³ V;PFV;LGSPEC2
kaʔ¹nu¹ V;PFV;LGSPEC1
xi³kwaʔ⁴a⁴ V;IRR
ku³-xaʔ³an² V;IPFV
ka³sa³chiu⁴un⁴ V;PFV;LGSPEC2
xi³ka⁴ba¹³ V;PFV;LGSPEC2
ka¹xan⁴ V;PFV;LGSPEC1
nda³ka³ti³ V;IRR
kaʔ³nda² V;IRR;NEG
nda³keʔ³e⁴ V;IPFV
tu³teʔ⁴e⁴ V;IRR
ku³-nuʔ³ni² V;IRR;NEG
tu³teʔ⁴e⁴ V;PFV;LGSPEC1
sa⁴-sa¹a⁴ V;IPFV
nda³a³ V;IPFV
nda³ko¹so⁴ V;IRR
nda³-ki³nde³e⁴ V;IRR
ka³ta⁴ V;PFV;LGSPEC2
ma¹ni⁴ V;IRR
ku³tu⁴ V;IRR;NEG
ndi³ki³taʔ⁴an⁴ V;PFV;LGSPEC2
ka¹ba¹ V;IRR;NEG
ku³-xaʔ³an² V;IRR
chi³kun² V;IPFV
kwi¹in¹ V;IRR
sa⁴-naʔ¹a¹ V;IRR;NEG
tiʔ³nu³ V;IRR;NEG
sa⁴-nda³ba³ V;IRR
ta³kweʔ³e² V;PFV;LGSPEC2
nda³-ta³ku² V;PFV;LGSPEC1
nda³ndo⁴so²⁴ V;IRR
ku¹un⁴ V;IRR
choʔ¹ma⁴ V;IPFV
nda³ke³e⁴ V;PFV;LGSPEC2
ndu³-kwa¹chi³ V;IRR;NEG
nda³ko⁴ V;PFV;LGSPEC2
nda³ndo⁴so²⁴ V;IPFV
ku³-naʔ¹a¹ V;IRR
nda³xi⁴ V;IRR
kaʔ¹yu¹ V;IRR
ndaʔ¹ba¹ V;PFV;LGSPEC1
ko³-nde³e⁴ V;IRR
sa³na³ V;PFV;LGSPEC1
ku³chi⁴ V;PFV;LGSPEC1
sa⁴-na³na³ V;IRR;NEG
ka¹ku³ V;IRR
ta³seʔ⁴e² V;PFV;LGSPEC1
koʔ¹ni⁴ V;IRR;NEG
ku³-nu¹mi⁴ V;IRR
ka³-ta³ni³ V;STAT
ka¹nda¹ V;IRR
kwiʔ¹ña¹ V;IRR;NEG
nu¹ma¹ V;PFV;LGSPEC1
kwi¹in¹ V;PFV;LGSPEC1
ku³ndi³to³ V;IRR
taʔ¹nda¹ V;PFV;LGSPEC1
ka³xi⁴ta³ V;PFV;LGSPEC1
nda³-ko³to³ V;IRR;NEG
sa⁴-kaʔ³a³ V;PFV;LGSPEC1
ku³i³ni² V;IRR
nda³koʔ³ma⁴ V;PFV;LGSPEC1
chi³ndaʔ³a⁴ V;PFV;LGSPEC2
ku³-kaʔ³an³ V;IRR
sa⁴-naʔ¹a¹ V;IPFV
nda³-chi³kun² V;IPFV
ko¹so¹ V;PFV;LGSPEC1
ku³-tu³un³ V;PFV;LGSPEC1
chi³pa⁴chi⁴ V;IRR;NEG
|
ce3274111c5a325975d616763ed9787aa370d38e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH6/EX6.44/Ex6_44.sce | a73fecad58284920f22b21e484c01b2a1cfa1ca3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 885 | sce | Ex6_44.sce | clc;
p=6; // number of poles
m=3; // number of phases
f=50; // frequency of motor
P=40000; // rated power of induction motor
v=400; // rated voltage of induction motor
// results of blocked rotor test
vb=200; // applied voltage
ib=110; // applied current
pf=0.4; // power factor
f1=45; // frequency at starting torque is to be determined
e=380; // voltage at starting torque is to be determined
vbp=vb/sqrt(3); // per phase voltage during blocked rotor test
zb=vbp/ib; // total impedance referred to stator
R=zb*pf; // net resistance referred to stator
X=zb*(sqrt(1-pf^2)); // net reactance referred to stator
X=X*(f1/f); // net reactance at frequency=45
Z=R+X*%i; // impedance at frequency=45
v1=e/sqrt(3); // per phase stator
is=v1/(Z); // starting current
ws=(4*%pi*f)/p; // synchronous speed
T=(3/ws)*abs(is)^2*(R/2);
printf('Starting torque is %f Nm',T);
|
72120b964ff957a776e7cf8faee7a701bcb2b956 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH44/EX44.05/44_05.sce | 56499c4d405a05c591d7036538ba38da69fc6f6b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 593 | sce | 44_05.sce | //Problem 44.05: The voltages at the input and at the output of a transmission line properly terminated in its characteristic impedance are 8.0 V and 2.0 V rms respectively. Determine the output voltage if the length of the line is doubled.
//initializing the variables:
Vs = 8; // in Volts
VR = 2; // in Volts
x = 2;
//calculation:
// receiving end voltage VR = Vs*e^(-nr)
//e^-nr = p
p = VR/Vs
//If the line is doubled in length, then
VR = Vs*(p)^2
printf("\n\n Result \n\n")
printf("\n Receiving end voltage If the line is doubled in length, VR is %.2f +(%.2f)i V",real(VR), imag(VR))
|
42425a31da24b432346b8a72ca2e41aa79fc98b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2204/CH5/EX5.17/ex5_17.sce | 451731113471375d2bf1a59547d1e81788d98875 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex5_17.sce | // Exa 5.17
clc;
clear;
close;
// Given data
alpha = 1.732;
k_f = 1.274;
C1 = 1;// in F
C2 = C1;// in F
R1 = alpha/2;// in ohm
R2 = 2/alpha;// in ohm
R_F = R2;// in ohm
f_3dB = 2;// in kHz
f_3dB = f_3dB * 10^3;// in Hz
f_c = f_3dB/k_f;// in Hz
Omega_c = 2*%pi*f_c;// in rad/sec
R1 = R1/Omega_c;// in ohm
R1 = R1 * 10^8;// in ohm
R2 = R2/Omega_c;// in ohm
R2 = R2 * 10^8;// in ohm
R_F = R2;// in ohm
C1 = C1/10^8;// in F
disp(R1*10^-3,"The value of R1 in kΩ is : ")
disp(R2*10^-3,"The value of R2 and R_F in kΩ is : ")
disp(C1*10^9,"The value of C1 and C2 in nF is : ")
|
68bbf6efa6050e959bafca33ff6b6c551edf3d07 | 449d555969bfd7befe906877abab098c6e63a0e8 | /323/CH2/EX2.58/ex2_58.sci | aef064e14276321096a75c0a91f939225ae99c09 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 378 | sci | ex2_58.sci | //Chapter 2,Ex2.58,Pg 2.74
clc;
disp("Refer to the diagram shown in the figure")
A=[7 -2;-2 10]
B=[20;-12]
I=A\B
printf("\n I2= %.2f A \n",I(2))
printf("\n In=%.2f A \n",-I(2))
//Calculation of Rn
Rn=(5*2/(5+2))+8
printf("\n Rn=%.2f ohms \n",Rn)
//Calculation of Il
Il=0.67*(Rn/(Rn+10)) //Current is short circuit current calculated
printf("\n Il=%.2f A \n",Il)
|
2b6ac86bf3f41016a00c028aeb2b7266bea1feb7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /991/CH21/EX21.1/Example21_1.sce | df9589b0d38272f483a0cacec90efd8071b4aba1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 116 | sce | Example21_1.sce | //Example 21.1.
clc
format(6)
u=10*200 // in cm^2/V-s
disp(u,"The electron mobility, un(cm^2/V-s) = sigma*RH =") |
ad2619d427bc93f99941e8e8ac6225351ec3e655 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH4/EX4.3/Ex4_3.sce | 249f84300b29b7012dad3cc274a0efa034ece519 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 569 | sce | Ex4_3.sce | //Initilization of variables
F=[100;50;-150] //Force vector N
a=2 //m
b=2 //m
c=3 //m
d=2 //m
e=4 //m
f=8 //m
//Calculations
R=F(1,1)+F(2,1)+F(3,1) //N
M_x=-F(1,1)*a+F(2,1)*b-F(3,1)*c //N-m
M_z=F(1,1)*d+F(2,1)*e+F(3,1)*f //N-m
C=sqrt(M_x^2+M_z^2) //N-m
thetax=atand(-M_x/M_z) //degrees
//result
clc
printf('The resultant is %f N \n',R)
printf('The moment about x axis is %f N.m \n',M_x)
printf('The moment about z axis is %f N.m\n',M_z)
printf('The couple acting is %f N.m\n',C)
printf('The trace makes an angle with x axis of %f degrees',thetax)
|
3f1f80db06f65a251fb689b92fe546700fd8db04 | e41b69b268c20a65548c08829feabfdd3a404a12 | /3DCosmos/Data/Scripts/_Movie/scene_nacht.SCI | 9d0de1c9a08d034477d45cc7c6877cdfeaada07d | [
"LicenseRef-scancode-khronos",
"MIT"
] | permissive | pvaut/Z-Flux | 870e254bf340047ed2a52d888bc6f5e09357a8a0 | 096d53d45237fb22f58304b82b1a90659ae7f6af | refs/heads/master | 2023-06-28T08:24:56.526409 | 2023-03-01T12:44:08 | 2023-03-01T12:44:08 | 7,296,248 | 1 | 1 | null | 2023-06-13T13:04:58 | 2012-12-23T15:40:26 | C | UTF-8 | Scilab | false | false | 8,044 | sci | scene_nacht.SCI |
codeblock readtextfile(ScriptDir+"\_TOOLS.sci");
codeblock readtextfile(ScriptDir+"\_SSYS.sci");
codeblock readtextfile(ScriptFilePath+"\_PlanetariumTools.sci");
codeblock readtextfile(ScriptFilePath+"\_Colors.sci");
#=================================================================================
# SETUP
#=================================================================================
mydata=map;
mydata.scfac=100;
mydata.starsizefrac=0.004;
mydata.longit=(3+43/60.0)/180*Pi;
mydata.lattit=(51+3/60.0)/180*Pi;
mydata.camh=0.1;
InitPlanetarium(ref(mydata));
CreatePlanetariumClock;
root.SC.Universe.ClockFrame.Clock1.size=0.1;
root.SC.Universe.ClockFrame.Clock1.position=point(0.11,0.11);
root.SC.Universe.ClockFrame.Clock2.visible=false;
CreateBackDropGent(ref(mydata));
root.SC.Universe.SolarSystem.Earth.Inclin.Globe.ViewerFrame.Grid.visible=false;
root.SC.Universe.SolarSystem.Earth.Inclin.Globe.ViewerFrame.Directions.visible=false;
Planetarium_CreateViewPort_Earth(ref(mydata));
vpearth=mydata.viewport_earth;
vpearth.EraseBackground=true;
ratio=root.Viewports.main.aspectratio;
sz=0.4;offset=0.03;
vpearth.XMinFrac=1-offset-sz;
vpearth.YMaxFrac=1.0-offset*ratio;
vpearth.XMaxFrac=1-offset;
vpearth.YMinFrac=vpearth.YMaxFrac-sz*ratio;
vpearth.active=false;
dist=14000000;
dist=10000000;
vpearth.FocalDistance=2.0*dist;
vpearth.cameradir=vecnorm(vector(-1,0,-0.5));
vpearth.camerapos=point(0,0,0)-dist*vpearth.cameradir;
vpearth.Aperture=60/180*Pi;
vpearth.nearclipplane=0.4*dist;
vpearth.FrameSize=0.015;
vpearth.FrameColor=color(0.2,0.2,0.2);
root.SC.Universe.SolarSystem.Earth.PlanetsIndicators.visible=false;
root.SC.Universe.SolarSystem.Earth.MoonHalo.visible=false;
root.SC.Universe.SolarSystem.Earth.StarGlobeFrame.StarglobeFront.linesize=0;
#enhanced texture on Earth
eglobe=GetPlanetBodyFrame("Earth");
etx2=eglobe.CreateTexture("Earth2",DataDir+"\textures\earth_3.jpg");
eglobe.GlobeRendering.Earth.Texture=etx2.name;
############################### Create Ptolemaeus viewport
try { DelObject(root.Viewports.Ptol); }
displayname=ReadSetting("DisplayName","");
if displayname=="" then displayname="\\.\DISPLAY1";
vp2=CreateNewViewPort(0.55,0.3,1,1);
vp2.name="Ptol";
vp2.Framesize=0.003;
vp2.start;
vp2.setscene(root.SC);
vp2.FocalDistance=90000000;
vp2.cameradir=vecnorm(vector(1,0,0));
vp2.camerapos=point(0,0,0)-0.5*vp2.FocalDistance*vp2.cameradir;
vp2.cameraupdir=vector(0,0,1);
vp2.enableusernavigation=root.Viewports.main.enableusernavigation;
vp2.EnableUserTimeControl=root.Viewports.main.EnableUserTimeControl;
vp2.NearClipPlane=0.1*vp2.FocalDistance;
vp2.FarClipPlane=40*vp2.FocalDistance;
vp2.Aperture=40/180*Pi;
vp2.XMinFrac=offset;
vp2.YMaxFrac=1.0-offset*ratio;
vp2.XMaxFrac=offset+sz;
vp2.YMinFrac=vp2.YMaxFrac-sz*ratio;
#vp2.EraseBackground=true;
vp2.FrameSize=0.015;
vp2.FrameColor=color(0.2,0.2,0.2);
vp2.FrameSize=0;
vp2.active=false;
root.SC.Universe.StarBackFrame.addignoreviewport("Ptol");
root.SC.Universe.SolarSystem.Earth.Inclin.Globe.ViewerFrame.addignoreviewport("Ptol");
root.SC.Universe.ClockFrame.addignoreviewport("Ptol");
root.SC.Universe.SolarSystem.Earth.PlanetsIndicators.addignoreviewport("Ptol");
root.SC.Universe.SolarSystem.Earth.SunHalo.addignoreviewport("Ptol");
root.SC.Universe.SolarSystem.Earth.MoonHalo.addignoreviewport("Ptol");
root.SC.Universe.SolarSystem.Earth.Luna.addignoreviewport("Ptol");
root.SC.Universe.SolarSystem.Earth.StarGlobeFrame.addignoreviewport("Ptol");
globeframe=root.SC.Universe.SolarSystem.Earth.addsubframe("StarGlobe");
globeframe.addignoreviewport("main");
globeframe.addignoreviewport("Earth");
globeradius=4*root.SC.Universe.SolarSystem.Earth.Inclin.Globe.GlobeRendering.Earth.radius;
#create halo
halfcircle=FlatContourSet;
haloframe=globeframe.addviewdirframe(point(0,0,0),"haloframe");
halfcircle.generate(functor("point("+str(globeradius)+"*sin(a),"+str(globeradius)+"*cos(a),0)","a"),Pi,0,40);
halo=haloframe.add("SolidObject","Name":"Halo");
halo.Revolve(halfcircle,40);
halo.BlendType=BlendTransparent;
halo.RenderBack=true;
halo.DepthMask=DepthMaskDisable;
halo.EnableLight=false;
halo.GenerateVertexProperty(functor("color(0,0,1/(1+5*sqr(p.z/"+str(globeradius)+")),0.2)","p"),VertexPropertyColor);
halo.canbuffer=true;
#Star globe
tx=globeframe.createtexture("star",DataDir+"\textures\star4.bmp");
st1=globeframe.add("StarGlobe","Name":"StarglobeFront");
st1.radius=globeradius;
st1.texture="star";
st1.StarSize=0.013*globeradius;
st1.LineSize=0;#0.01*globeradius;
st1.linecolor=color(0,0.5,1,0.4);
st1.renderback=false;
st2=globeframe.add("StarGlobe","Name":"StarGlobeBack");
st2.radius=globeradius;
st2.texture="star";
st2.StarSize=0.007*globeradius;
st2.LineSize=0;#0.01*globeradius;
st2.renderfront=false;
st2.linecolor=color(0,0.5,1,0.4);
st2.color=color(1,1,1,0.15);
#Create milky way
#galactic pole
glong=179.32095/180*Pi;
glatt=29.811954/180*Pi;
ez=-1*vector(cos(glong)*cos(glatt),sin(glong)*cos(glatt),sin(glatt));
#galactic center
glong=266.14097/180*Pi;
glatt=-5.52967943/180*Pi;
ex=vector(cos(glong)*cos(glatt),sin(glong)*cos(glatt),sin(glatt));
ey=vecnorm(ez*ex);
mwf=globeframe.addsubframe("MilkyWay");
mwf.transf.Xaxis=-1*ex;
mwf.transf.Yaxis=-1*ey;
mwf.transf.Zaxis=ez;
tx=mwf.createtexture("MilkyWay",DataDir+"\textures\milkyway.png");
mw=mwf.add("sphere","EnableLight":false);
mw.color=color(0.3,0.5,1,0.45);
mw.texture=tx.name;
mw.BlendType=BlendTransparent;mw.DepthMask=DepthMaskDisable;
mw.renderback=false;mw.renderfront=true;
mw.radius=globeradius;
linew=25;
crossframe=root.SC.Universe.addscreenframe("CrossFrame");
crossframe.addignoreviewport("main");
crossframe.addignoreviewport("earth");
ln1=crossframe.add("Curve","Color":GetColor("Red"),"Size":linew);
csz=0.12;coffs=0.03;
ln1.makeline(point(coffs,1-coffs,0),point(coffs+csz,1-coffs-csz,0));
ln1=crossframe.add("Curve","Color":GetColor("Red"),"Size":20);
ln1.makeline(point(coffs,1-coffs-csz,0),point(coffs+csz,1-coffs,0));
crossframe.visible=false;
ext=linew/5000;
checkframe=root.SC.Universe.addscreenframe("CheckFrame");
checkframe.addignoreviewport("main");
checkframe.addignoreviewport("Ptol");
ln1=checkframe.add("Curve","Color":color(0,0.75,0),"Size":linew);
csz=0.14;sz1=0.06;sz2=0.12;
ln1.makeline(point(coffs,1-coffs-sz2+sz1,0),point(coffs+sz1+ext,1-coffs-sz2-ext,0));
ln1=checkframe.add("Curve","Color":color(0,0.75,0),"Size":20);
ln1.makeline(point(coffs+sz1,1-coffs-sz2,0),point(coffs+sz1+sz2,1-coffs,0));
checkframe.visible=false;
############################### End Create Ptolemaeus
root.time=time(2012,1,1,17,40,0);
myviewport=T_getviewport;
myviewport.FocalDistance=0.06*mydata.scfac;
myviewport.Aperture=80/180*Pi;
myviewport.cameradir=vecnorm(vector(0.92526291, 0.08590846, 0.369470278-0.05));
#=================================================================================
# ANIMATION
#=================================================================================
root.TimeSpeedFactor=0;
FadeViewportsIn;
animate(4);
Cam_RotateHor(myviewport,-0.6*Pi,14);
animate(18);
root.TimeSpeedFactor=700;
animate(6);
Cam_RotateHor(myviewport,-0.6*Pi,10);
animate(12);
PointHighlight_Start("Pole",color(1,0.5,0), 40.5,89.3);
animate(6);
ConstellHighlight_Stop("Pole");
animate(4);
root.Viewports.Ptol.active=true;
animate(10);
root.Viewports.Ptol.EraseBackground=true;
root.Viewports.Ptol.FrameSize=0.015;
vpearth.active=true;
animate(3);
root.SC.Universe.CrossFrame.visible=true;
root.SC.Universe.CrossFrame.blinkperiod=0.4;root.SC.Universe.CrossFrame.maxblinkcount=4;
root.SC.Universe.CheckFrame.visible=true;
root.SC.Universe.CheckFrame.blinkperiod=0.4;root.SC.Universe.CheckFrame.maxblinkcount=4;
animate(10);
FadeViewportsOut;
stop;
|
215512866c88594340d22d593fc9dfc17b4a4d1d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH2/EX2.27/EX_2_27.SCE | 7446bfb9282c41db8dbb48aa44c11bd768abfc0e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 428 | sce | EX_2_27.SCE | // Example 2.27: Find R
clc;
clear;
close;
Vcc=24;// Colector voltage in volts
Beta=45;
Rc=10;// Collector resistance in killo ohms
Re= 0.27;// in kilo ohms
Vce=5;// Collector to emitter voltage in volts
Vbe=0.6;// Base to emitter voltage in volts
Ib=(Vcc-Vce)/((1+Beta)*(Rc+Re));//in milli ampere
Ic=Ib/Beta;// in micro ampere
R=(Vce-Vbe)/Ib;// Resistance in killo ohms
disp (R,"Base resistance in killo ohms")
|
a258ab5800612f96a8d2373fea0961b42dd06f65 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH5/EX5.4/Chapter5_Example4.sce | 298382980098a8387c79c8d0c41db743d755ff45 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,154 | sce | Chapter5_Example4.sce | //Chapter-5, Illustration 4, Page 252
//Title: Air Compressors
//=============================================================================
clc
clear
//INPUT DATA
x=0.05;//Ratio of clearance volume to swept volume
P1=1;//Pressure at point 1 in bar
T1=310;//Temperature at point 1 in K
n=1.2;//Adiabatic gas constant
P2=7;//Pressure at point 2 in bar
Pa=1.01325;//Atmospheric pressure in bar
Ta=288;//Atmospheric temperature in K
//CALCULATIONS
V1=1+x;//Ratio of volume of air sucked to stroke volume
V4=((P2/P1)^(1/n))/20;//Ratio of volume delivered to stroke volume
DV=V1-V4;//Difference in volumes
nv1=DV*100;//Volumetric efficiency
V=(P1*DV*Ta)/(T1*Pa);//Ratio of volumes referred to atmospheric conditions
nv2=V*100;//Volumetric efficiency referred to atmospheric conditions
W=(n*0.287*T1*((P2/P1)^((n-1)/n)-1))/(n-1);//Work required in kJ/kg
//OUTPUT
mprintf('Volumetric efficiency is %3.1f percent \n Volumetric efficiency referred to atmospheric conditions is %3.1f percent \n Work required is %3.1f kJ/kg',nv1,nv2,W)
//==============================END OF PROGRAM=================================
|
f9b0436718d917fe216cbd17ce82715d4b20394f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH22/EX22.2/22_2.sce | b27f951e3d12804a91b9f32f670d56bb4fa19bde | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 692 | sce | 22_2.sce | //1 m radius wheel
//refer fig. 22.4(a),(b),(c),(d),(e) and (f)
vA=1*5 //m/sec
aA=1*4 //m/sec^2
vBA=1*5 //m/sec
vB=vA+vBA //m/sec
aBA=1*4 //m/sec^2
an=5^2 //m/sec^2
aB=sqrt((8^2)+(25^2)) //m/sec^2
theta=atand(25/8) //degree
//Consider rotation of point D
vDx=5+3*sind(60) //m/sec
vDy=3*cosd(60) //m/sec
vD=7.745 //m/sec
//inclination to horizontal
theta2=atand(1.5/7.598) //degree
vDA=0.6*5 //m/sec^2
aD=sqrt((14.190^2)+(1.422^2)) //m/sec^2
theta3=atand(14.190/1.422) //degree
printf("\nAt B\naB=%.3f m/sec^2\ntheta=%.2f degree\nvB=%.3f m/sec\nAt D\nvD=%.3f m/sec^2\ntheta2=%.2f degree\naD=%.3f m/sec^2\ntheta3=%.2f degree",aB,theta,vB,vD,theta2,aD,theta3)
|
f3692493ce2a9c98b700e2b81e869a7834395fad | 53938ad1172790849e9fc4c5db5bec8478c91bc7 | /Newton-Raphson.sci | aa5507bcb02434a07daa050d11a557ecbfe68c48 | [] | no_license | JonasBarcat/metodos-numericos | ef1a8696d4d699011b44d7c49de2e4885c67797c | cb57c49e426e7d41374a40cb9f93713071c0fe31 | refs/heads/master | 2020-08-09T21:32:27.424462 | 2019-11-29T13:34:32 | 2019-11-29T13:34:32 | 214,179,750 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 613 | sci | Newton-Raphson.sci | // metodo de Newton-Raphson
// "inicio" indica el valor x para el cual comenzar
// ATENCION!!!!!! ANTES DE USAR EL METODO SE DEBE ACLARAR LA FUNCION A UTILIZAR
function f=newtonRaphson(xcero,iteraciones)
for i=1: iteraciones
disp(" ^^^ITERACION ",i)
f=xcero-(miFuncion(xcero)/miFuncionDerivada(xcero))
xcero=f
disp(f)
end
endfunction
function y=miFuncion(x) //aqui especificar FUNCION
y=2*x^3+6*x^2+6*x-1
disp('valor f(x) ',y)
endfunction
function d=miFuncionDerivada(x) //aqui especificar FUNCION
d=6*x^2+12*x+6
disp('valor df(x)',d)
endfunction
|
33c8177dd3b480099b65fe8428169064a62e356f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2438/CH6/EX6.13/Ex6_13.sce | 6a0ec4b51bd90207009f1567d2c5ee78d5dd73db | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 966 | sce | Ex6_13.sce | //===============================================================================================================================================
// chapter 6 example 13
clc;
clear;
//input data
a = 110*10^-3; //area in m^2
d = 2; //thickness in mm
er = 5; //relative permitivity
E = 12.5*10^3; //electric field strength in V/mm
e0 = 8.854*10^-12; //charge of electron in coulombs
//calculations
A = a*a; //area in m^2
C = e0*((er*A)/(d*10^-3)) //capacitance in F
V = E*(d);
Q = (C)*(V) //charge on capacitor in C
// result
mprintf('capacitance =%3.2e.F\n',C);
mprintf(' charge=%3.4e C\n',Q);
//==============================================================================================================================================
|
24aa1eb8fca55df5f23a58aa589b8dccefca738f | 449d555969bfd7befe906877abab098c6e63a0e8 | /991/CH10/EX10.1/Example10_1.sce | 0cb977309f62ac3e1fd4a7a0864e1721316bd737 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 3,590 | sce | Example10_1.sce | //Example 10.1. refer fig.10.8.
clc
format(6)
hie=1600
hfe=60
hre=5*10^-4
hoe=25*10^-6
hic=1600
hfc=-61
hrc=1
hoc=25*10^-6
disp("The AC equivalent circuit of the CE-CC amplifier is shown in fig.10.9(a)")
disp("The Second Stage :")
disp("Current gain :")
disp("The current gain of a particular stage is given by")
disp(" AI = -hf / (1 + ho*ZL)")
disp("For the second stage ZL = RE2 and the current gain of the second stage is")
RE2=4000
AI2=-hfc/(1+(hoc*RE2))
disp(AI2," AI2 = -Ie2 / Ib2 = -hfc / (hoc*RE2) =")
disp("The input impedance Ri of a particular stage is given by")
disp(" Ri = hi + hf*AI*ZL")
disp("For the second stage,")
Ri2 = hic + (hrc*AI2*RE2)
Ri22=Ri2*10^-3
disp(Ri22," Ri2(k-ohm) = hic + (hrc*AI2*RE2) =")
disp("Thus, the CC stage has a high input impedance.")
disp("The voltage gain of a particular stage is")
disp(" AV = (AI*ZL) / Zi")
disp("For the second stage,")
Re2=4000
AV2=(AI2*Re2)/Ri2
disp(AV2," AV2 = Vo/V2 = (AI2*Re2) / Ri2")
disp("The First Stage :")
RC1=4000
format(5)
RL1=(RC1*Ri2)/(RC1+Ri2)
RL11=RL1*10^-3
disp(RL11," RL1(k-ohm) = RC1 || Ri2 =")
disp("Current gain,")
AI1= -hfe/(1+(hoe*RL1))
disp(AI1," AI1 = -IC1/Ib1 = -hfe/(1+(hoe*RL1)) =")
disp("The input impedance of the first stage, which is also the input impedance of the cascaded amplifier is")
Ri1=hie +(hre*AI1*RL1) // answer in textbook is wrong
Ri11=Ri1*10^-3
disp(Ri11," Ri1(k-ohm) = hie + hre*AI1*RL1 =")
disp("The voltage gain of the first stage is")
format(7)
AV1=(AI1*RL1)/Ri1 // answer in textbook is wrong
disp(AV1," AV1 = V2/V1 = (AI1*RL1) / Ri1 =")
disp("The output admittance of the first transistor Q1")
RS=600
format(5)
Yo1=hoe-((hfe*hre)/(hie+RS))
Yo0=Yo1*10^6
disp(Yo0," Yo1(uA/V) = hoe - ((hfe*hre) / (hie+RS)) =")
disp("The output impedance of the first stage")
format(6)
Ro1=1/Yo1
Ro0=Ro1*10^-3
disp(Ro0," Ro1(k-ohm) = 1 / Yo1 =")
disp("The output impedance taking RC1 into account is")
format(5)
Rot1=(Ro1*RC1)/(Ro1+RC1)
Rott=Rot1*10^-3
disp(Rott," Rot1(k-ohm) = Ro1 || RC1 =")
disp("This is the effective source resistance RS2 of the second stage")
disp("The output admittance of the second stage")
format(7)
Yo2=hoc-((hfc*hrc)/(hic+Rot1))
disp(Yo2," Yo2(A/V) = hoc-((hfc*hrc) / (hic+Rot1)) =")
disp("Output impedance,")
format(4)
RO2=1/(11.525*10^-3)
disp(RO2," RO2(ohm) = 1 / Yo2 =")
disp("The amplifier output impedance taking RE2 into account is RO2 || RE2")
format(6)
Ro2=(87*4000)/(87+4000)
disp(Ro2,"Hence, Ro2(ohm) = (RO2*RE2) / (RO2+RE2) =")
disp("Overall current gain :")
disp("The output or total current gain of both the stages is")
disp(" AI = -Ie2 / Ib1 = (-Ie2/Ib2)(Ib2/IC1)(IC1/Ib1)")
disp(" = -AI2*(Ib2/Ic1)*AI1")
disp("From fig.10.9(b),")
disp(" Ib2 = (-IC1)(Rc1 / Rc1+Ri2)")
Rc1=4000
format(7)
x=(-Rc1)/ (Rc1+Ri2)
disp(x," Ib2/Ic1 = -Rc1/ Rc1+Ri2 =")
format(6)
AI=-AI2*x*AI1
disp(AI," AI = -AI2*AI1*(Rc1 / Ri2+Rc1) =")
disp("The overall voltage gain of the amplifier,")
disp(" AV = Vo / V1 = (Vo/V2)(V2/V1)")
AV=AV2*AV1
disp(AV," AV = AV2*AV1 =") // answer in textbook is wrong
disp("The overall voltage gain taking the source impedance into account,")
format(4)
AVs=AV*(Ri1/(Ri1+RS))
disp(AVs," AVs = Vo/Vs = Av(Ri1 / Ri1+Rs) =") // answer in textbook is wrong |
7825ea1ab81cb858088b9ca7d9172d6996f00d10 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3556/CH12/EX12.6/Ex12_6.sce | 2b0f056e9e387424be8540fc59bc10dc79f4aa37 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,594 | sce | Ex12_6.sce | clc
// Fundamental of Electric Circuit
// Charles K. Alexander and Matthew N.O Sadiku
// Mc Graw Hill of New York
// 5th Edition
// Part 2 : AC Circuits
// Chapter 12 : Three Phase Circuit
// Example 12 - 6
clear; clc; close;
//
// Given data
Vp_mag = 110.0000;
Vp_angle = 0.0000;
Ip_mag = 6.8100;
Ip_angle = -21.8000;
Z1 = complex(10,8);
Z2 = complex(5,-2);
//
// Calculations Complex Power Absorbed by The Source
S_s_mag = -3*Vp_mag*Ip_mag;
S_s_angle = Vp_angle + (-1*Ip_angle);
P_s = S_s_mag * cosd(S_s_angle);
Q_s = S_s_mag * sind(S_s_angle);
// Calculations Complex Power Absorbed By Load 1
Z1_mag = norm(Z1);
Z1_real = real(Z1);
Z1_imag = imag(Z1);
Z1_angle = atand(Z1_imag,Z1_real)
S_1_mag = 3*(Ip_mag)^2.00*Z1_mag
S_1_angle = Z1_angle
P_1 = S_1_mag * cosd(S_1_angle);
Q_1 = S_1_mag * sind(S_1_angle);
// Calculations Complex Power Absorbed By Load 2
Z2_mag = norm(Z2);
Z2_real = real(Z2);
Z2_imag = imag(Z2);
Z2_angle = atand(Z2_imag,Z2_real)
S_2_mag = 3*(Ip_mag)^2.00*Z2_mag
S_2_angle = Z2_angle
P_2 = S_2_mag * cosd(S_2_angle);
Q_2 = S_2_mag * sind(S_2_angle);
//
disp("Example 12-6 Solution : ");
printf(" \n S_s_mag = Magnitude of Complex Power Absorbed by The Source = %.3f VA",S_s_mag)
printf(" \n S_s_Angle = Angle of Complex Power Absorbed by The Source = %.3f Degree",S_s_angle)
printf(" \n P_s = Real Power Absorbed by The Source = %.3f Watt",P_s)
printf(" \n Q_s = Reactive Power Absorbed by The Source = %.3f Var",Q_s)
printf(" \n S_1_mag = Magnitude of Complex Power Absorbed by The Load 1 = %.3f VA",S_1_mag)
printf(" \n S_1_Angle = Angle of Complex Power Absorbed by The Load 1 = %.3f Degree",S_1_angle)
printf(" \n P_1 = Real Power Absorbed by The Load 1 = %.3f Watt",P_1)
printf(" \n Q_1 = Reactive Power Absorbed by The Load 1 = %.3f Var",Q_1)
printf(" \n S_2_mag = Magnitude of Complex Power Absorbed by The Load 2 = %.3f VA",S_2_mag)
printf(" \n S_2_Angle = Angle of Complex Power Absorbed by The Load 2 = %.3f Degree",S_2_angle)
printf(" \n P_2 = Real Power Absorbed by The Load 2 = %.3f Watt",P_2)
printf(" \n Q_2 = Reactive Power Absorbed by The Load 2 = %.3f Var",Q_2)
|
791b1457d3f72095302bd14c1ca17d413bc3b869 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/Programming/testmode.sce | 838a16c01515be3bf99471f20b6b9036c527061b | [] | no_license | markusmorawitz77/Scilab | 902ef1b9f356dd38ea2dbadc892fe50d32b44bd0 | 7c98963a7d80915f66a3231a2235010e879049aa | refs/heads/master | 2021-01-19T23:53:52.068010 | 2017-04-22T12:39:21 | 2017-04-22T12:39:21 | 89,051,705 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 225 | sce | testmode.sce | mode(1) //execution mode with echo
A=[1 2;3 4];y=[3;5];
x1=linsolve(A,-y); //not displayed, even "with echo"
x2=A^(-1)*y //displayed if "with echo"
disp(x1,'x=') //displayed even "with no echo"
|
278c19d1cf08d1a4001ffc7141610e9da6f9bf02 | da5b40d917ec2982828bd9bdf06b18b7bf189f26 | /sim/scripts/pfr2.tst | d0df7a7633bc733b2e9ac2cd75063df0a681f220 | [] | no_license | psy007/NNPC-CHEMICAL-SIM- | 4bddfc1012e0bc60c5ec6307149174bcd04398f9 | 8fb4c90180dc96be66f7ca05a30e59a8735fc072 | refs/heads/master | 2020-04-12T15:37:04.174834 | 2019-02-06T10:10:20 | 2019-02-06T10:10:20 | 162,587,144 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,445 | tst | pfr2.tst |
$thermo = VirtualMaterials.Advanced_Peng-Robinson
/ -> $thermo
thermo + n-BUTANE ISOBUTANE
pfr = KineticReactor.PFR()
pfr.In.T = 330 K
pfr.In.P = 3000 kPa
pfr.In.Fraction = 0.9 0.1
pfr.In.MoleFlow = 163
pfr.Length = 12.9 m
pfr.Diameter = 0.6 m
pfr.OutQ = 0
pfr.NumberSections = 40
pfr.NumberRxn = 1
pfr.Rxn0.Formula = theRxn0:1.0*ISOBUTANE-1.0*!'n-BUTANE'
pfr.CustomEquationUnitSet = sim42
pfr.Rxn0.ReactionRateEq = """
#The following are plain Python lines with the final goal of defining a variable called r
#which will be interpreted as the reaction rate in the CustomEquationUnitSet units.
#Define some constants
E = 65700.0 #J/mol = kJ/kmol
T1 = 360.0 #K
kRef = 31.1 #1/h
#R is automatically loaded in sim42 units as kJ/kmolK
k = kRef*exp( (E/R)*(1.0/T1 - 1/T) ) #1/h
T2 = 60.0 + 273.15 #K
KcRef = 3.03
Kc = KcRef*exp( (-6900.0/R)*(1/T2 - 1/T) )
#The unit set defined is sim42, hence concentration comes in kmol/m3
r = k*(rxnCmp['n-BUTANE'].Concentration - rxnCmp['ISOBUTANE'].Concentration/Kc)
#The unit set defined is sim42, hence r has to be returned in kmol/(s*m3)
r = r/3600.0 #kmol/(s*m3)
"""
pfr.DeltaP = 0.0
pfr.T
pfr.f
pfr.r
pfr.Ignored = 1
#Now solve it by providing r in different units
pfr.CustomEquationUnitSet = Field
pfr.Rxn0.ReactionRateEq = """
#The following are plain Python lines with the final goal of defining a variable called r
#which will be interpreted as the reaction rate in the CustomEquationUnitSet units.
#Define some constants
E = 65700.0 * 0.43 #Btu/lbmol
T1 = 360.0 * 1.8 #R
kRef = 31.1 #1/h
#T came in F. Make it R
T = T + 459.67 #R
#R is automatically loaded in Field units as psia-ft3/lbmolR
R = 1.987 #Btu/lbmolR
k = kRef*exp( (E/R)*(1.0/T1 - 1/T) ) #1/h
T2 = (60.0 + 273.15) * 1.8 #R
KcRef = 3.03
Kc = KcRef*exp( ((-6900.0*0.43)/R)*(1/T2 - 1/T) )
#The unit set defined is sim42, hence concentration comes in lbmol/ft3
r = k*(rxnCmp['n-BUTANE'].Concentration - rxnCmp['ISOBUTANE'].Concentration/Kc)
#The unit set defined is Field, hence r has to be returned in lbmol/(s*ft3)
r = r/3600.0 #lbmol/(s*ft3)
"""
pfr.Ignored = None
pfr.T
pfr.f
pfr.r
copy /pfr
paste /
pfrClone.T
pfrClone.f
pfrClone.r
|
9b6caa433c7d3c517889d1e3d164de8896d90441 | c28130b62911f5891f14826350089c73c907d3b5 | /exo7_slaplacien.sci | b3d3e6c20a22c22496b7482802f3e7f91807fbd9 | [
"MIT"
] | permissive | zyron92/Simulation_of_Cardiac_Excitation | f1709d032613f49427a72716b4e258c3b578b739 | 66813dc24128d9cb171e77d4f780b6bf54011d15 | refs/heads/master | 2021-01-19T10:25:43.810588 | 2017-02-16T12:58:38 | 2017-02-16T12:58:38 | 82,180,177 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,381 | sci | exo7_slaplacien.sci | function[res]=slaplacien(D,n)
if n>1 then
h=1/(n-1)
//Définir T1 & Tn sous forme de matrice creuse
T1=sparse(-3*eye(n,n)+diag(ones(n-1,1),1)+diag(ones(n-1,1),-1))
T1(1,1)=T1(1,1)+1
T1(n,n)=T1(n,n)+1
T1=(1/(h*h))*T1
//Définir Tk sous forme de matrice creuse
Tk=sparse(-4*eye(n,n)+diag(ones(n-1,1),1)+diag(ones(n-1,1),-1))
Tk(1,1)=Tk(1,1)+1
Tk(n,n)=Tk(n,n)+1
Tk=(1/(h*h))*Tk
//Définir A sous forme de matrice creuse
A=sparse(zeros(n*n,n*n)+(1/(h*h))*diag(ones(n*(n-1),1),n)+(1/(h*h))*diag(ones(n*(n-1),1),-n))
k=1
//Affecter les T1
i= indice_i(k,n)
j= indice_j(k,n)
A([ i : j ],[ i : j ])=T1
k=k+1
//Affecter les Tk
while(k<=n-1),
i= indice_i(k,n)
j= indice_j(k,n)
A([ i : j ],[ i : j ])=Tk
k=k+1
end
//Affecter les T1 au bout de k=n => Tn
if k==n then
i= indice_i(k,n)
j= indice_j(k,n)
A([ i : j ],[ i : j ])=T1
end
//Renvoyer la matrice creuse résultante de (n*n ; n*n)
res=D.*A
else
res=0
end
endfunction
//Calcul de l'indice i de sous-matrice
function[res]=indice_i(k,n)
res=(n*(k-1))+1
endfunction
//Calcul de l'indice j de sous-matrice
function[res]=indice_j(k,n)
res=k*n
endfunction
//-- L'Exemple --//
n=3
D=2
res=slaplacien(D,n)
|
ca081b6d1b7446f629679c554662aa5564d66600 | e0124ace5e8cdd9581e74c4e29f58b56f7f97611 | /3432/CH7/EX7.22/Ex7_22.sce | 8f054f133b97defd8295adf6a41ceed8aecf58dd | [] | no_license | psinalkar1988/Scilab-TBC-Uploads-1 | 159b750ddf97aad1119598b124c8ea6508966e40 | ae4c2ff8cbc3acc5033a9904425bc362472e09a3 | refs/heads/master | 2021-09-25T22:44:08.781062 | 2018-10-26T06:57:45 | 2018-10-26T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,328 | sce | Ex7_22.sce | //Example 7.22
// SRL design for satellite attitude control
xdel(winsid())//close all graphics Windows
clear;
clc;
//------------------------------------------------------------------
//Transfer function for satellite attitude control system
s=poly(0,'s');
nums=1;
dens=s^2;
num_s=1;
den_s=(-s)^2;
G0s=syslin('c',nums/dens); //G0(s)
G0_s=syslin('c',num_s/den_s); //G0(-s)
//evans(G0s*G0_s)
evans(1/s^4)
zoom_rect([-3 -3 3 3])
f=gca();
f.x_location = "origin"
f.y_location = "origin"
xset("color",2);
h=legend('');
h.visible = "off"
//Title, labels and grid to the figure
exec .\fig_settings.sci; //custom script for setting figure properties
title('Symmetric root locus for the satellite','fontsize',3);
//------------------------------------------------------------------
//Root locus design
//choose rho=4.07 that places pole at -1+-j
rho=4.07;
chr_eqn=(1+rho*G0s*G0_s)
p=[-1+%i, -1-%i];
sig=real(p);
omega=imag(p);
plot(sig,omega,'ro')
xstring(-2.2,0.5,["pole locations at";"$\rho=4.07$"])
//------------------------------------------------------------------
//pole-placement design;
sys=tf2ss(G0s);
exec('acker_dk.sci', -1);
K=acker_dk(sys.A,sys.B,p);
syscl=syslin('c',(sys.A-sys.B*K),sys.B, sys.C, sys.D)
disp(spec(syscl.A),"Closed loop eigen values");
//------------------------------------------------------------------ |
b0005888b0470f08096bd7b1e92a52b1367689d1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2522/CH19/EX19.8/exm19_8.sce | 11f59b7280736047fcb3e86feaa95a63e23864de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 894 | sce | exm19_8.sce | // page no 629
// example no A.8
// SUBTRACTION OF SIGNED NUMBERS
clc;
printf('Part a \n \n')
printf('Minuend= FAH \n \n');
printf('It is a negative no since D7= 1 for FAH, this must be represented in \n2s compliment form. \n');
// finding 2's complement of subtrahend (FAH);
m=hex2dec(['FA']);
x=hex2dec(['62']);
y=bitcmp(m,8); // 1's compliment of FAH
z=y+1; // 2's compliment of FAH
printf('2s compliment of minuend is= ');
disp(z);
printf('\n \n Subtrahend= 62H \n');
printf('It is a positive no since D7= 0 for 62H. \n');
// subtraction can be represented as
// FAH-62H= (-06H)-(+62H)
s=-x-z;
a=-s;
d=dec2hex(a);
printf('Subtraction= ');
disp(s);
disp(d);
printf('in hexadecimal with a negative sign \n \n');
g=bitcmp(a,8); // 1's compliment of result
q=g+1; // 2's compliment of result
e=dec2hex(q);
printf('2s compliment of result would be= ');
disp(e);
|
50f8651411099f16d5e734e801f8585c4d2147ed | e0a67b34837bcf9fc346d1f280becd88d39bfa10 | /MMN.InstructionsDE.sce | 77622a11b4dc04dfb32c139c438b0e7e38bdcaee | [] | no_license | danchesse/HarmonizationDE | 938e0838be5d87baa16e2744d9108e4f86758fb3 | e5e04a6fc68f5629110116711cc01b0fc872595a | refs/heads/master | 2020-09-17T01:29:55.378413 | 2016-09-22T18:55:59 | 2016-09-22T18:55:59 | 67,238,107 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,815 | sce | MMN.InstructionsDE.sce | scenario = "Visual Oddball Instructions (German Version)";
scenario_type = trials;
# sets the default text font
default_font = "Arial";
default_font_size = 14;
default_text_color = 0,0,0; # sets text to black
# sets the background colour to white (default is black)
default_background_color = 255,255,255;
#center the text
default_text_align = align_center;
begin;
bitmap { filename = "SleepLookCircle.bmp";} NoSleep;
bitmap { filename = "SleepLook.bmp";} Sleep;
bitmap { filename = "IncorrectLookCircle.bmp";} NoLookAway;
bitmap { filename = "IncorrectLook.bmp";} LookAway;
bitmap { filename = "CorrectLookCircle.bmp";} YesLook;
bitmap { filename = "CorrectLook.bmp";} Look;
bitmap { filename = "BlankSubject.bmp";} sub;
bitmap { filename = "F.pcx";} F;
bitmap { filename = "T.pcx";} T;
bitmap { filename = "default.pcx";} blankPCX;
wavefile { filename = "nvmmn_instructionsDE.wav"; } visInstruct;
sound {
wavefile visInstruct;
attenuation = 0.2;
} visualInstruction;
picture {
bitmap blankPCX;
x = 0; y = 0;
} default;
trial {
trial_duration = 58000;
sound visualInstruction;
time = 0;
picture {bitmap sub;
x = 0; y = 0;
};
time = 1000;
duration = 8000;
picture {bitmap F;
x = 0; y = 0;
};
time= 9000; # 9 secs
duration = 6000;
picture {bitmap T;
x = 0; y = 0;
};
time = 16000; # 16 secs
duration = 6000;
picture {bitmap T;
x = 0; y = 0;
};
time = 28000; # 28 secs
duration = 2000;
picture {bitmap sub;
x = 0; y = 0;
};
time = 34000; # 34 secs
duration = next_picture;
picture {bitmap Look;
x = 0; y = 0;
};
time = 40200; #40.2 secs
duration = next_picture;
picture {bitmap YesLook;
x = 0; y = 0;
};
time = 40400; #40.4 secs
duration = next_picture;
picture {bitmap Look;
x = 0; y = 0;
};
time = 40600; #50.4 secs
duration = next_picture;
picture {bitmap YesLook;
x = 0; y = 0;
};
time = 40800;
duration = next_picture;
picture {bitmap Look;
x = 0; y = 0;
};
time = 41000;
duration = next_picture;
picture {bitmap YesLook;
x = 0; y = 0;
};
time = 41200;
duration = next_picture;
picture {bitmap sub;
x = 0; y = 0;
};
time = 44200;
duration = next_picture;
picture {bitmap LookAway;
x = 0; y = 0;
};
time = 444000;
duration = next_picture;
picture {bitmap NoLookAway;
x = 0; y = 0;
};
time = 44800;
duration = next_picture;
picture {bitmap LookAway;
x = 0; y = 0;
};
time = 46000;
duration = next_picture;
picture {bitmap NoLookAway;
x = 0; y = 0;
};
time = 46200;
duration = next_picture;
picture {bitmap LookAway;
x = 0; y = 0;
};
time = 46400;
duration = next_picture;
picture {bitmap NoLookAway;
x = 0; y = 0;
};
time = 46600;
duration = next_picture;
picture {bitmap sub;
x = 0; y = 0;
};
time = 46800;
duration = next_picture;
picture {bitmap Sleep;
x = 0; y = 0;
};
time = 55000;
duration = next_picture;
picture {bitmap NoSleep;
x = 0; y = 0;
};
time = 55200;
duration = next_picture;
picture {bitmap Sleep;
x = 0; y = 0;
};
time = 55400;
duration = next_picture;
picture {bitmap NoSleep;
x = 0; y = 0;
};
time = 55600;
duration = next_picture;
picture {bitmap Sleep;
x = 0; y = 0;
};
time = 55800;
duration = next_picture;
picture {bitmap NoSleep;
x = 0; y = 0;
};
time = 56000;
duration = next_picture;
picture {bitmap sub;
x = 0; y = 0;
};
time = 49000;
duration = next_picture;
};
|
9a29fe1ef3d87f40ad3434a2df357e14baf8292e | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/polyscale/polyscale4.sce | 69aacfa39ef874ddb146381263559c95dad932f7 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 238 | sce | polyscale4.sce | //i/p arg a is negative
x=[12 3 4 5 6 7 8 9];
a=-5;
y=polyscale(x,a);
disp(y);
//output
//
// column 1 to 5
//
// 12. - 15. 100. - 625. 3750.
//
// column 6 to 8
//
// - 21875. 125000. - 703125.
|
6ca0c0cf862213c276c3f72587bdf46bf9b7445b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3434/CH9/EX9.2.ii/Ex9_2_ii.sce | fca953e7c8ebc52954b2fcedc4e6344f438f3caa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 630 | sce | Ex9_2_ii.sce | clc
// given data
w=0.6 // in km
h2=2.5 // in km
p=5/100.0 // porosity
rhor=3000.0 // density of sediment in kg/m^3
cr=750.0 // specific heat of sediment in J/kg-K
rhow=1000.0 // density of water in kg/m^3
cw=4200.0 // specific heat of water in J/kg-K
G=35.0 // temperature gradient in degree C/km
T1=45.0 // temp 1 in degree celsius
T0=12.0 // temp 2 in degree celsius
Q=0.75 // water extraction rate in m^3/sec-km^2
tau=((p*rhow*cw+(1-p)*rhor*cr)*w*1000**3/(Q*rhow*cw))/(60*60*24*365) // in years
printf( "Time constant is %.1f years",tau)
// the answer is different in textbook due to wrong calculations
|
9d77a11f40b523a14e474a9877aa8fe91f8afbad | 676ffceabdfe022b6381807def2ea401302430ac | /solvers/IncNavierStokesSolver/Tests/PPF_R15000_Arpack_NoImagShift_LM.tst | 9b4dfd20b15ef9002f7f3b0eaebb8a24cb10b331 | [
"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 | 623 | tst | PPF_R15000_Arpack_NoImagShift_LM.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>Linear stability with coupled solver (LM with Arpack and Real Shift): ChannelMax Ev = (0.00248682 -0.158348i) </description>
<executable>IncNavierStokesSolver</executable>
<parameters> -P nvec=4 -P kdim=32 -P imagShift=0.0 -I ArpackProblemType=LargestMag PPF_R15000_3D.xml</parameters>
<files>
<file description="Session File">PPF_R15000_3D.xml</file>
</files>
<metrics>
<metric type="Eigenvalue" id="0">
<value tolerance="0.001">-0.000201531,0</value>
</metric>
</metrics>
</test>
|
2cf1ad316152e2242de9fe52fca9251650bfc5bd | 449d555969bfd7befe906877abab098c6e63a0e8 | /199/CH6/EX6.3/Example_6_3.sce | 2014dbb4f9a712687f51fa4e9088d282f7b0ad2c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 860 | sce | Example_6_3.sce | // Chapter6
// Page.No-193, Figure.No-6.5(a)
// Example_6_3
// Components of peak amplifier
// Given
clear;clc;
fp=16*10^3; // Peak frequency
Af=10; // Gain at peak frequency
C=0.01*10^-6; // Assume
L=1/(((2*%pi*fp)^2)*10^-8); // Simplifying fp=1/(2*pi*sqrt(L*C))
printf("\n Inductance is = %.4f H \n",L)
L=10*10^-3; // Approximate
R=30; // Assume the value of internal resistance of the inductor
Xl=2*%pi*fp*L; // Inductive reactance
Qcoil=Xl/R; // Figure of merit of the coil
printf("\n Figure of merit of the coil is = %.1f \n",Qcoil)
Rp=(Qcoil)^2*R; // Parallel resistance of the tank circuit
printf("\n Parallel resistance of the tank circuit is = %.1f ohm \n",Rp)
R1=100; // Assume the value of internal resisrance of the coil
Rf=-Rp/(1-(Rp/(Af*R1))); // Simplifying Af=(Rf||Rp)/R1
printf("\n Feedback resistance is = %.1f ohm \n",Rf) |
95566643b0377bf7f1e1d8d65f53ee538a3e6304 | 8fd5474ab7779b552e5f198a3ce4afc4d82cb47f | /bin/libGeo/GetBoundingBox.sci | aa88a26963e807465a2fc114b2f0ad9b315015e1 | [] | no_license | 2-BiAs/UCASI_ALIGNMENT_SCAN | 807353741517c084007cdf978b149f34f8a13dae | 85b8d79f50e23051cbf365385b49e05293827941 | refs/heads/master | 2020-06-21T10:26:29.419281 | 2017-05-19T02:01:27 | 2017-05-19T02:01:27 | 74,790,458 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 277 | sci | GetBoundingBox.sci | function rectOutput = GetBoundingBox(plPoints)
xMin = min(plPoints(:,1));
xMax = max(plPoints(:,1));
yMin = min(plPoints(:,2));
yMax = max(plPoints(:,2));
rectOutput = [xMin, yMax; xMax - xMin, yMax - yMin]; //[Left Top; Width Hieght]
endfunction
|
93dadd455b208fc57867528a868925997d21dfd1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1736/CH3/EX3.5/Ch03Ex5.sce | 2d828dbf4ccda00fff277bfc692c0baeb048c701 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 400 | sce | Ch03Ex5.sce | // Scilab Code Ex3.5: Page-89 (2006)
clc; clear;
k = 1.38e-023; // Boltzmann constant, J/K
theta_D = 1440; // Debye temperature for Be, K
h = 6.626e-034; // Planck's constant, Js
f_D = k*theta_D/h; // Debye cut off frequency of Be, Hz
printf("\nThe Debye cut off frequency of Be = %g per sec", f_D);
// Result
// The Debye cut off frequency of Be = 2.99909e+013 per sec
|
733f29babd8f7e70c7689cb391c3b1c65da148c0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2579/CH3/EX3.18/Ex3_18.sce | 9cfce5a72117486210f14ff45fbd56ad53b2f41b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 241 | sce | Ex3_18.sce | //Ex:3.18
clc;
clear;
close;
n=10;// number of isotropic elements
// d=y/4
// Do=1.789(4n*(d/y))
// Do=1.789(4n*(y/4y)=2n(1/4))
Do=1.789*(4*n*(1/4));
D0=10*log(Do)/log(10);// Directivity in db
printf("the Directivity = %f dB", D0); |
5c55af7bb1dc8b1b14230723cb30956be53fa29c | 19ab1125bc636cc70f042f43473be7b74961928f | /activities/readme.tst | d75df5f0427a234064d13dc40d7fed6a22db1a32 | [] | no_license | jytesaluna19/progcon | 243d9eb7008225842380f98b5b680e9992ee9740 | 4ddde984fc29cde417fd6441a55458d99346e7f0 | refs/heads/master | 2020-08-29T22:23:43.473593 | 2020-01-23T04:48:16 | 2020-01-23T04:48:16 | 218,189,037 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 112 | tst | readme.tst | welcome to my activities:
A1 - Flowcharts & Pseudocodes
A2 - Flow-charting Exercise
A3 - Pseudo-code Exercises
|
456b14190cab23b6bb0b91e3a174fd02ff099bf1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1319/CH8/EX8.2/8_2.sce | 5011b1189e70d6c99894a4809ee087b97de49372 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 342 | sce | 8_2.sce | //To calculate motor speed and its slip
clc;
clear;
f=50;
sf=3/2;
s=sf/f;
p=8;
N=120*f/8;
Nr=poly([0 1],'Nr','c'); // Actual Speed Variable
x=(750*s)-(750-Nr); // Equation To find the Actual Speed
Nr=roots(x); // Actual Speed Constant
printf('The motor runs at a speed of %g rpm and has a slip of %g \n',ceil(Nr),s)
|
38854d9ad45eea3ddf78e9661b191a084a484af4 | 967cbf597f7de24f4a55e7a8ca4270b270903a07 | /test.txt.tst | 328100aff98e671e3dd1431375b0c9a61d8e1eed | [] | no_license | silencelot0/first_test | a3488648c8418f12c99843ced29cf0572b426346 | 869ad121b8c32cf8957980a35fc39206fd62cec9 | refs/heads/master | 2020-03-20T20:07:03.567678 | 2018-06-17T16:52:36 | 2018-06-17T16:52:36 | 137,670,887 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 34 | tst | test.txt.tst | This is the first test for github. |
e1a528164ff66543e00e9247da1dbf23a9bd1a6a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH6/EX6.14/EX_6_14.sce | b7c1e9a223d1e1ba92971be6448b6ebde7afba30 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 551 | sce | EX_6_14.sce | // Example 6.14;//voltage gain ,input & output resistance
clc;
clear;
close;
A= 500;// open voltage gain
Beta=0.01;// feedback ratio
Ri=3;//input resistance without feedback in kiilo ohms
Ro=20;//output resistance without feedback in kiilo ohms
Af=(A/(1+A*Beta));//Voltage gain is
Rif= (1+A*Beta)*Ri;//input RESISTANCE with feedback in kiilo ohms
Rof=(Ro/(1+Beta*A));//output resistance with feedback in killo ohms
disp(Rif,"input resistance with feedback in kiilo ohms is ")
disp(Rof,"output resistance with feedback in killo ohms is ")
|
25e99d8a9fcbf831f604a17ee396279365743224 | 817f2178b7e89c26c650444100ebeb803301f493 | /fuzzy/carro.sce | 70d26c18beff0949b8534df2b142cfcb458d035f | [] | no_license | neiva098/AI---Lab | 3151a448dabf27762c7fc2ec2ac90ef1cd1a43a0 | e6b891f4a9562ca489fca4d62d1691c04b810c0d | refs/heads/main | 2023-05-28T21:44:14.817617 | 2021-06-13T20:48:18 | 2021-06-13T20:48:18 | 373,568,786 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 362 | sce | carro.sce | clc;
close;
fls=loadfls('carro-maxmin'); //carrega o arquivo carro2.fls diretamente no workspace para a variável chamada 'fls'
figure(1);
plotvar(fls,"input",[1 2]);
figure(2);
plotvar(fls,"output",1);
figure(3);
plotsurf(fls,[1 2], 1);
//scf();clf();
//plotsurf(fls,[1 2],1);
//scf();clf();
//plotsurf(fls,1,1,[0 50]);
//scf();clf();
//plotsurf(fls)
|
1b47af0a9d463027cf58b1394ea7c859c8e3c646 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1730/CH1/EX1.3/Exa1_3.sce | 437f0cc3d1231e46f9256611023cefd73b07dfb5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 540 | sce | Exa1_3.sce | //Exa3
clc;
clear;
close;
//given data
//atomic radius
r=1.278; //in Angstrum
//atomic weight
aw=63.5;
//Avogadro's number
an=6.023*10^23;
//copper has FCC structure for which
a=(4*r)/sqrt(2);// in Angstrum
a=a*10^-10;//in m
//Mass of one atom
m=aw/an;//in gm
m=m*10^-3;//in kg
//volume of one unit cell of copper crystal,
V=a^3;//in meter cube
//Number of atoms present in one unit cell of Cu(FCC Structure),
n=4;
//Density of crystal
rho=(m*n)/V;//in kg/m^3
disp("Density of crystal is : "+string(rho)+"kg/m^3");
|
a49b74a5075438926f5b6691ee21ddd5fb737d7a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1385/CH12/EX12.5/12_5.sce | 26ec093da65ebea4f5438dab8022d831eed7bcdb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 280 | sce | 12_5.sce | clc
//initialisation of variables
T= 90 //C
T1= 25 //C
Cp= 6.9 //cal per mole per degree
Cp1= 7.05 //cal per mole per degree
Cp2= 18 //cal per mole per degree
H= -68.37 //kcal
//CALCULATIONS
H1= H+(Cp2-Cp-0.5*Cp1)*((T-T1)/1000)
//RESULTS
printf (' heat of formation= %.2f cal',H1) |
ef5441a5dc9576345718fd62666df3ab37f9e853 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpic2escifiles6/Setmarklen.sci | a17c9e95060cb781aa7bd0f6e30f98f6ea7cd2c8 | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 321 | sci | Setmarklen.sci | //
// 09.02.27
// 14.03.05 MARKLEN
function Setmarklen(varargin)
global MARKLEN MARKLENInit MARKLENNow;
Nargs=length(varargin);
if Nargs==0
Tmp=MARKLEN/MARKLENInit;
Tmp=round(Tmp*100)/100;
disp(Tmp);
return;
end;
Size=varargin(1);
MARKLEN=MARKLENInit*Size;
MARKLENNow=MARKLEN;
endfunction
|
00bb92da856b668fe275b5ce1f94697d420c2216 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/X12H.prev.tst | 529cf58da7f74f8f52d660a3dbf29cf450356172 | [
"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 | 3,740 | tst | X12H.prev.tst | # start Dutch.X12 - 2*m + 6*m^2 - 14*m^3 + 4*m^4 + 1
# start Dutch.X12 2*m - 6*m^2 - 4*m^3 + 5*m^4 - 1
# start Dutch.X12 3*m + 3*m^4
# start Dutch.X12 - 3*m + 9*m^2 - 9*m^3 + 6*m^4
Dutch.X12 [0] 0 - 2*M + 6*M^2 - 14*M^3 + 4*M^4 + 1
Dutch.X12 [0] 1 2*M - 6*M^2 - 4*M^3 + 5*M^4 - 1
Dutch.X12 [0] 2 3*M + 3*M^4
Dutch.X12 [0] 3 - 3*M + 9*M^2 - 9*M^3 + 6*M^4
Dutch.X12 [1] 0 - 16*M - 12*M^2 + 2*M^3 + 4*M^4 - 5
Dutch.X12 [1] 1 - 2*M + 12*M^2 + 16*M^3 + 5*M^4 - 4
Dutch.X12 [1] 2 15*M + 18*M^2 + 12*M^3 + 3*M^4 + 6
Dutch.X12 [1] 3 12*M + 18*M^2 + 15*M^3 + 6*M^4 + 3
Dutch.X12 [-1] 0 - 72*M + 72*M^2 - 30*M^3 + 4*M^4 + 27
Dutch.X12 [-1] 1 - 18*M + 36*M^2 - 24*M^3 + 5*M^4
Dutch.X12 [-1] 2 - 9*M + 18*M^2 - 12*M^3 + 3*M^4
Dutch.X12 [-1] 3 - 72*M + 72*M^2 - 33*M^3 + 6*M^4 + 27
Dutch.X12 [2] 0 - 18*M + 18*M^2 + 18*M^3 + 4*M^4 - 27
Dutch.X12 [2] 1 90*M + 90*M^2 + 36*M^3 + 5*M^4 + 27
Dutch.X12 [2] 2 99*M + 72*M^2 + 24*M^3 + 3*M^4 + 54
Dutch.X12 [2] 3 117*M + 99*M^2 + 39*M^3 + 6*M^4 + 54
Dutch.X12 [-2] 0 - 322*M + 186*M^2 - 46*M^3 + 4*M^4 + 205
Dutch.X12 [-2] 1 - 182*M + 138*M^2 - 44*M^3 + 5*M^4 + 83
Dutch.X12 [-2] 2 - 93*M + 72*M^2 - 24*M^3 + 3*M^4 + 42
Dutch.X12 [-2] 3 - 339*M + 207*M^2 - 57*M^3 + 6*M^4 + 210
Dutch.X12 [3] 0 88*M + 96*M^2 + 34*M^3 + 4*M^4 - 5
Dutch.X12 [3] 1 398*M + 228*M^2 + 56*M^3 + 5*M^4 + 248
Dutch.X12 [3] 2 327*M + 162*M^2 + 36*M^3 + 3*M^4 + 252
Dutch.X12 [3] 3 456*M + 252*M^2 + 63*M^3 + 6*M^4 + 315
Dutch.X12 [-3] 0 - 848*M + 348*M^2 - 62*M^3 + 4*M^4 + 763
Dutch.X12 [-3] 1 - 610*M + 300*M^2 - 64*M^3 + 5*M^4 + 452
Dutch.X12 [-3] 2 - 321*M + 162*M^2 - 36*M^3 + 3*M^4 + 234
Dutch.X12 [-3] 3 - 948*M + 414*M^2 - 81*M^3 + 6*M^4 + 819
Dutch.X12 [4] 0 398*M + 222*M^2 + 50*M^3 + 4*M^4 + 217
Dutch.X12 [4] 1 1042*M + 426*M^2 + 76*M^3 + 5*M^4 + 935
Dutch.X12 [4] 2 771*M + 288*M^2 + 48*M^3 + 3*M^4 + 780
Dutch.X12 [4] 3 1173*M + 477*M^2 + 87*M^3 + 6*M^4 + 1092
Dutch.X12 [-4] 0 - 1746*M + 558*M^2 - 78*M^3 + 4*M^4 + 2025
Dutch.X12 [-4] 1 - 1422*M + 522*M^2 - 84*M^3 + 5*M^4 + 1431
Dutch.X12 [-4] 2 - 765*M + 288*M^2 - 48*M^3 + 3*M^4 + 756
Dutch.X12 [-4] 3 - 2043*M + 693*M^2 - 105*M^3 + 6*M^4 + 2268
Dutch.X12 [5] 0 1008*M + 396*M^2 + 66*M^3 + 4*M^4 + 891
Dutch.X12 [5] 1 2142*M + 684*M^2 + 96*M^3 + 5*M^4 + 2484
Dutch.X12 [5] 2 1503*M + 450*M^2 + 60*M^3 + 3*M^4 + 1890
Dutch.X12 [5] 3 2412*M + 774*M^2 + 111*M^3 + 6*M^4 + 2835
Dutch.X12 [-5] 0 - 3112*M + 816*M^2 - 94*M^3 + 4*M^4 + 4411
Dutch.X12 [-5] 1 - 2738*M + 804*M^2 - 104*M^3 + 5*M^4 + 3464
Dutch.X12 [-5] 2 - 1497*M + 450*M^2 - 60*M^3 + 3*M^4 + 1860
Dutch.X12 [-5] 3 - 3768*M + 1044*M^2 - 129*M^3 + 6*M^4 + 5115
Dutch.X12 [6] 0 2014*M + 618*M^2 + 82*M^3 + 4*M^4 + 2365
Dutch.X12 [6] 1 3818*M + 1002*M^2 + 116*M^3 + 5*M^4 + 5411
Dutch.X12 [6] 2 2595*M + 648*M^2 + 72*M^3 + 3*M^4 + 3906
Dutch.X12 [6] 3 4317*M + 1143*M^2 + 135*M^3 + 6*M^4 + 6138
Dutch.X12 [-6] 0 - 5042*M + 1122*M^2 - 110*M^3 + 4*M^4 + 8437
Dutch.X12 [-6] 1 - 4678*M + 1146*M^2 - 124*M^3 + 5*M^4 + 7115
Dutch.X12 [-6] 2 - 2589*M + 648*M^2 - 72*M^3 + 3*M^4 + 3870
Dutch.X12 [-6] 3 - 6267*M + 1467*M^2 - 153*M^3 + 6*M^4 + 10062
Dutch.X12 [7] 0 3512*M + 888*M^2 + 98*M^3 + 4*M^4 + 5083
Dutch.X12 [7] 1 6190*M + 1380*M^2 + 136*M^3 + 5*M^4 + 10352
Dutch.X12 [7] 2 4119*M + 882*M^2 + 84*M^3 + 3*M^4 + 7224
Dutch.X12 [7] 3 7032*M + 1584*M^2 + 159*M^3 + 6*M^4 + 11739
Dutch.X12 [-7] 0 - 7632*M + 1476*M^2 - 126*M^3 + 4*M^4 + 14715
Dutch.X12 [-7] 1 - 7362*M + 1548*M^2 - 144*M^3 + 5*M^4 + 13068
Dutch.X12 [-7] 2 - 4113*M + 882*M^2 - 84*M^3 + 3*M^4 + 7182
Dutch.X12 [-7] 3 - 9684*M + 1962*M^2 - 177*M^3 + 6*M^4 + 17955
|
8f29dd57dd4938d2cf251c48ff8855ea78559e89 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3772/CH6/EX6.5/Ex6_5.sce | 3d7e0a958c7d99bb22ce79e29a1facdf8f328df2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 606 | sce | Ex6_5.sce | // Problem no 6.5,Page No.157
clc;clear;
close;
b=0.1 //m //width
d=0.2 //m //depth
L=2 //m //Length of beam
L_1=1 //m //Length from free end
E=210*10**9
W=1*10**3 //N //Concentrated Load
w=2*10**3 //N/m
//Calculations
I=b*d**3*12**-1 //m**4 //M.I of the beam section
//Slope at free end
theta=W*L**2*(2*E*I)**-1+w*L**3*(6*E*I)**-1-w*(L-L_1)**3*(6*E*I)**-1
//Deflection at free end
y_b=(W*L**3*(3*E*I)**-1+w*L**4*(8*E*I)**-1-w*(L-L_1)**4*(8*E*I)**-1-w*(L-L_1)**3*L_1*(6*E*I)**-1)*10**3
//Result
printf("Slope at free end is %.5f radian",theta)
printf("\n Deflection at free end is %.2f mm",y_b)
|
0cabcfd97f9a804261aaac576ec4128ee5d786c5 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.3_15.tst | 12d167bed8938c9d6684d92e4decf0342bde24c0 | [] | 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 | 31,747 | tst | bow.3_15.tst | 3 15:0.06666666666666667 17:0.25 23:0.2222222222222222 37:0.2 82:0.14285714285714285 95:1.0 96:0.1111111111111111 97:0.6666666666666666 114:0.3333333333333333 115:1.0 116:2.0 128:0.2 145:1.0 171:0.5 272:1.0 350:0.125 531:0.5 561:0.5 622:1.0 641:1.0 809:1.0 892:1.0 938:1.0 1168:1.0 1430:1.0 1618:1.0 1742:1.0 1947:0.5 1959:1.0 1992:1.0 2297:1.0 2550:1.0 2721:1.0 3667:1.0 4220:1.0 4227:1.0
3 5:0.5 23:0.3333333333333333 42:0.25 96:0.1111111111111111 97:1.3333333333333333 100:0.25 105:0.5 143:0.25 147:0.5 165:0.1 171:0.5 177:0.5 219:0.3333333333333333 368:1.0 373:0.25 622:2.0 644:1.0 897:1.0 1058:1.0 1163:1.0 1618:1.0 1742:1.0 1780:0.5 1867:1.0 1869:1.0 1947:0.5 2188:1.0 2194:1.0 2550:1.0 2886:1.0 2942:1.0 3121:1.0 3183:1.0 3667:1.0
3 1:0.125 4:1.0 5:0.5 6:0.043478260869565216 23:0.1111111111111111 34:0.09090909090909091 37:0.2 40:1.0 42:0.25 116:1.0 146:1.0 147:0.5 150:0.04 258:1.0 373:0.25 399:0.5 441:1.0 517:1.0 667:1.0 1109:1.0 1377:1.0 1438:1.0 1644:0.3333333333333333 2573:1.0 5019:1.0 5300:1.0
3 6:0.2608695652173913 15:0.13333333333333333 17:0.25 34:0.18181818181818182 42:0.125 56:0.3333333333333333 63:1.0 73:0.09090909090909091 75:0.2857142857142857 82:0.14285714285714285 105:0.5 114:0.3333333333333333 145:1.0 190:1.0 215:0.16666666666666666 219:0.3333333333333333 249:0.5 350:0.125 477:1.0 534:0.2 1154:1.0 1568:0.5 1993:1.0 2276:1.0 2515:1.0 2599:1.0 2970:1.0 2987:1.0 4003:1.0 4112:2.0 5019:1.0 5058:1.0 6269:1.0
3 5:0.5 23:0.2222222222222222 42:0.125 97:0.6666666666666666 116:2.0 157:1.0 275:1.0 311:1.0 312:0.5 373:0.25 397:1.0 423:1.0 1657:2.0 1698:1.0 1740:0.5 2547:1.0 3000:0.5 3391:1.0 4451:1.0
3 6:0.043478260869565216 17:0.25 23:0.1111111111111111 34:0.09090909090909091 42:0.125 56:0.3333333333333333 97:0.3333333333333333 114:1.0 143:0.25 146:1.0 165:0.1 169:1.0 190:1.0 191:0.25 215:0.16666666666666666 219:0.3333333333333333 261:0.05555555555555555 409:0.3333333333333333 644:1.0 1132:1.0 1176:1.0 1319:1.0 1492:1.0 1867:1.0 1993:1.0 2187:1.0 2974:1.0 3171:1.0 5081:1.0 5575:1.0 7858:1.0
3 5:0.5 6:0.08695652173913043 15:0.06666666666666667 34:0.18181818181818182 37:0.2 56:0.3333333333333333 94:2.0 96:0.1111111111111111 97:0.6666666666666666 107:0.5 116:1.0 128:0.2 157:1.0 165:0.1 167:1.0 190:2.0 191:0.5 235:1.0 461:1.0 561:0.5 1064:1.0 2524:1.0 3375:1.0 4146:1.0
3 4:1.0 6:0.17391304347826086 15:0.2 34:0.09090909090909091 37:0.4 42:0.125 63:1.0 75:0.42857142857142855 82:0.14285714285714285 98:0.5 150:0.04 158:1.0 165:0.1 185:1.0 189:1.0 191:0.25 206:0.3333333333333333 281:1.0 295:1.0 311:1.0 319:0.07142857142857142 340:1.0 367:1.0 443:1.0 660:1.0 693:1.0 1030:1.0 1033:1.0 1298:1.0 1424:1.0 1719:1.0 2017:1.0 2462:1.0 3605:1.0 4006:1.0 4102:0.5 5095:1.0
3 6:0.043478260869565216 17:0.25 34:0.09090909090909091 37:0.2 94:1.0 95:1.0 96:0.1111111111111111 114:0.6666666666666666 139:1.0 150:0.12 165:0.1 206:0.3333333333333333 238:0.14285714285714285 295:1.0 320:0.5 409:0.3333333333333333 443:1.0 654:0.1111111111111111 982:1.0 1424:1.0 1947:0.5 2033:1.0 2211:1.0 2320:2.0 3855:1.0
3 1:0.125 34:0.09090909090909091 35:1.0 36:1.0 42:0.125 44:1.0 63:1.0 89:1.0 177:0.5 197:0.3333333333333333 215:0.16666666666666666 311:1.0 314:1.0 417:1.0 496:1.0 654:0.1111111111111111 800:0.3333333333333333 1671:1.0 2688:1.0 4185:1.0 4370:2.0
3 1:0.125 4:1.0 6:0.13043478260869565 23:0.1111111111111111 33:1.0 34:0.09090909090909091 35:1.0 36:1.0 42:0.125 56:0.3333333333333333 146:1.0 181:0.25 307:1.0 550:1.0 647:1.0 1266:1.0 1616:1.0 1671:1.0 2231:1.0 2444:1.0 2462:1.0 2609:1.0 6047:1.0 8585:1.0 8617:1.0
3 6:0.043478260869565216 17:0.25 34:0.2727272727272727 37:0.4 42:0.25 56:0.3333333333333333 63:1.0 96:0.1111111111111111 107:0.5 146:1.0 150:0.04 191:0.5 201:1.0 206:0.3333333333333333 219:0.3333333333333333 231:1.0 388:0.5 424:1.0 443:1.0 461:1.0 473:0.5 563:1.0 728:1.0 892:1.0 1139:0.5 1147:1.0 1161:1.0 1267:1.0 1404:1.0 1422:1.0 1438:1.0 1538:1.0 2041:1.0 2331:1.0 2376:1.0 2409:1.0 2695:1.0 3567:1.0 3661:1.0 7554:1.0 8617:1.0
3 6:0.043478260869565216 14:0.07692307692307693 15:0.13333333333333333 56:0.3333333333333333 63:1.0 82:0.14285714285714285 97:0.3333333333333333 100:0.25 191:0.25 219:0.3333333333333333 261:0.05555555555555555 287:1.0 320:0.5 373:0.25 399:0.5 477:1.0 507:1.0 728:1.0 817:1.0 872:1.0 1399:1.0 1693:1.0 1790:1.0 2695:1.0 3128:1.0 3216:1.0 3255:1.0 3659:1.0 3661:1.0 8912:1.0
3 1:0.125 5:0.5 6:0.08695652173913043 17:0.5 23:0.1111111111111111 33:1.0 34:0.09090909090909091 35:1.0 36:1.0 37:0.2 115:1.0 140:0.5 191:0.25 204:1.0 416:0.25 417:1.0 443:1.0 473:0.25 646:0.5 1126:1.0 1181:1.0 2557:1.0 2801:1.0 3515:1.0 3870:1.0 4049:1.0 4651:1.0 6268:1.0
3 6:0.043478260869565216 17:0.25 34:0.09090909090909091 37:0.2 96:0.1111111111111111 106:1.0 128:0.2 201:1.0 223:1.0 327:0.16666666666666666 441:1.0 442:1.0 443:1.0 531:1.0 561:0.5 654:0.1111111111111111 689:1.0 850:1.0 1075:1.0 1217:1.0 1275:0.5 1426:1.0 1428:1.0 1438:1.0 1936:1.0 2294:1.0 3686:1.0 3981:1.0 4109:1.0 4341:1.0 4532:1.0 4911:1.0 7973:1.0
3 5:1.0 34:0.09090909090909091 51:0.5 56:0.3333333333333333 63:1.0 88:1.0 94:1.0 98:0.5 102:0.5 107:0.5 127:1.0 167:1.0 173:1.0 185:1.0 191:0.5 215:0.16666666666666666 222:1.0 223:0.5 226:2.0 353:1.0 373:0.25 438:0.3333333333333333 480:1.0 482:1.0 598:1.0 646:0.5 689:1.0 737:1.0 829:1.0 1693:1.0 1716:1.0 1867:1.0 3175:1.0 3770:1.0 3828:1.0 4497:1.0 6814:1.0 8746:1.0
3 5:0.5 6:0.08695652173913043 17:0.25 34:0.09090909090909091 42:0.125 56:0.3333333333333333 82:0.14285714285714285 96:0.1111111111111111 97:0.3333333333333333 102:0.5 108:0.5 129:1.0 150:0.04 165:0.1 191:0.25 210:1.0 339:1.0 350:0.125 454:1.0 488:2.0 561:0.5 595:1.0 597:1.0 689:1.0 816:0.3333333333333333 1295:1.0 1404:1.0 1669:1.0 1867:1.0 1885:1.0 2123:1.0 2538:1.0 3197:1.0 3593:1.0 3671:1.0 3686:1.0 4497:1.0 8746:1.0
3 6:0.08695652173913043 94:1.0 147:1.0 311:1.0 425:1.0 511:0.5 1127:1.0 1571:1.0 2856:1.0 3259:1.0
3 6:0.043478260869565216 16:0.2 56:0.3333333333333333 60:1.0 82:0.14285714285714285 97:0.3333333333333333 128:0.2 150:0.04 155:0.09090909090909091 163:1.0 226:1.0 281:1.0 327:0.16666666666666666 336:0.5 399:0.5 473:0.25 1904:1.0 2055:1.0 2607:1.0 2721:1.0 2973:0.3333333333333333 3663:1.0 4237:1.0 4246:1.0 4404:1.0
3 1:0.125 5:1.0 6:0.08695652173913043 34:0.09090909090909091 42:0.125 45:1.0 75:0.14285714285714285 89:1.0 120:1.0 150:0.08 275:1.0 327:0.16666666666666666 353:1.0 367:1.0 441:1.0 448:1.0 929:1.0 1127:1.0 1241:0.5 1382:0.5 1671:2.0 2015:1.0 2158:1.0 2313:1.0 2370:1.0 2530:1.0 2770:1.0 3392:1.0 3817:2.0 4051:1.0 4523:1.0 5400:1.0
3 5:1.5 6:0.043478260869565216 14:0.07692307692307693 51:0.25 56:0.3333333333333333 73:0.09090909090909091 94:1.0 114:0.3333333333333333 135:0.3333333333333333 138:0.14285714285714285 146:1.0 147:0.5 150:0.04 169:1.0 185:1.0 275:1.0 359:0.5 367:1.0 379:1.0 427:1.0 483:1.0 531:0.5 536:1.0 549:0.5 583:2.0 609:1.0 661:1.0 747:0.5 846:1.0 897:1.0 1035:1.0 1295:1.0 1397:1.0 1412:1.0 1426:1.0 1671:1.0 2082:1.0 2721:1.0 2789:1.0 2819:1.0 3794:1.0 4054:0.5 4261:1.0 4463:1.0 4465:1.0 4480:1.0 4635:1.0
3 1:0.125 5:2.0 15:0.26666666666666666 34:0.09090909090909091 37:0.2 42:0.25 56:0.3333333333333333 73:0.09090909090909091 82:0.42857142857142855 123:1.0 128:0.2 180:1.0 191:0.25 261:0.05555555555555555 286:1.0 287:1.0 350:0.125 373:0.25 405:1.0 411:1.0 461:1.0 473:0.5 477:1.0 483:1.0 878:1.0 1095:1.0 1753:1.0 1910:1.0 2078:1.0 2295:1.0 2313:1.0 2941:1.0 2980:1.0 4723:1.0 5070:1.0 5956:1.0
3 5:0.5 6:0.043478260869565216 15:0.26666666666666666 17:0.25 23:0.1111111111111111 35:1.0 42:0.875 53:1.0 82:0.2857142857142857 96:0.1111111111111111 97:0.3333333333333333 135:0.3333333333333333 155:0.09090909090909091 181:0.25 249:0.5 251:0.3333333333333333 270:1.0 272:0.5 289:1.0 441:1.0 443:1.0 534:0.6 560:1.0 561:0.5 577:1.0 615:1.0 644:1.0 717:0.5 735:1.0 1035:1.0 1160:1.0 1445:0.5 1473:1.0 1474:1.0 1538:1.0 1655:1.0 1719:1.0 1868:1.0 1992:1.0 2263:0.5 2582:1.0 2751:1.0 2752:1.0 2776:1.0 2821:1.0 3096:1.0 3144:1.0 3146:1.0 3628:2.0 3832:0.5 5237:1.0 5537:1.0 7114:1.0
3 5:1.5 6:0.043478260869565216 15:0.06666666666666667 23:0.2222222222222222 34:0.2727272727272727 56:0.3333333333333333 63:1.0 64:0.5 71:1.0 73:0.09090909090909091 82:0.14285714285714285 96:0.1111111111111111 97:0.3333333333333333 116:1.0 143:0.25 147:0.5 169:1.0 176:1.0 185:1.0 191:0.5 201:1.0 245:1.0 281:1.0 319:0.07142857142857142 410:1.0 443:1.0 499:1.0 587:1.0 613:1.0 644:1.0 763:1.0 840:1.0 1102:1.0 1219:1.0 1690:1.0 1710:1.0 1910:1.0 2015:1.0 2045:1.0 2721:1.0 3064:1.0 3552:1.0 3584:1.0 3636:1.0 4306:1.0 5370:1.0 9002:1.0 9626:1.0
3 5:0.5 6:0.13043478260869565 14:0.07692307692307693 23:0.1111111111111111 97:0.3333333333333333 165:0.1 169:1.0 191:0.25 220:1.0 241:1.0 328:1.0 397:1.0 424:1.0 473:0.25 533:0.25 1275:0.5 1700:1.0 2018:1.0 2235:1.0 3639:1.0 3840:1.0 3842:1.0 4385:1.0
3 5:1.0 6:0.21739130434782608 15:0.13333333333333333 17:0.25 23:0.1111111111111111 34:0.18181818181818182 42:0.125 45:1.0 82:0.14285714285714285 89:1.0 96:0.1111111111111111 97:0.6666666666666666 140:1.0 150:0.04 327:0.16666666666666666 339:1.0 410:1.0 430:1.0 443:1.0 473:0.25 623:1.0 927:0.5 1397:1.0 1399:1.0 1655:1.0 2716:1.0 2992:1.0 6113:0.5 8615:1.0
3 5:0.5 23:0.1111111111111111 42:0.25 89:1.0 97:0.3333333333333333 135:0.3333333333333333 143:0.25 147:1.0 150:0.12 155:0.09090909090909091 165:0.1 215:0.16666666666666666 327:0.16666666666666666 350:0.125 359:0.5 367:1.0 379:1.0 473:0.25 583:1.0 717:0.5 747:0.5 857:1.0 879:1.0 1180:1.0 1436:0.5 1637:1.0 2518:1.0 2672:1.0 4492:1.0
3 1:0.375 5:0.5 23:0.2222222222222222 34:0.09090909090909091 36:1.0 96:0.1111111111111111 97:1.0 150:0.08 215:0.16666666666666666 409:0.3333333333333333 423:1.0 617:1.0 695:1.0 941:1.0 1293:1.0 1295:1.0 1568:0.5 2183:1.0 3123:1.0 3405:1.0 3543:1.0
3 1:0.25 4:2.0 6:0.043478260869565216 17:0.5 33:1.0 56:0.6666666666666666 75:0.14285714285714285 81:1.0 97:0.3333333333333333 105:0.5 114:1.0 169:1.0 180:1.0 190:1.0 223:0.5 289:1.0 300:1.0 327:0.16666666666666666 399:0.5 473:0.5 482:1.0 491:1.0 511:0.5 587:1.0 615:1.0 790:1.0 1123:1.0 1154:1.0 1241:0.5 1275:0.5 1389:0.5 1959:2.0 2178:1.0 3437:1.0 3947:1.0 5484:1.0
3 1:0.125 5:0.5 15:0.06666666666666667 17:0.25 23:0.1111111111111111 34:0.09090909090909091 35:1.0 36:1.0 37:0.2 42:0.125 60:1.0 73:0.09090909090909091 82:0.2857142857142857 190:1.0 215:0.16666666666666666 228:0.5 235:1.0 340:1.0 423:1.0 496:1.0 664:1.0 714:1.0 769:1.0 1423:1.0 1538:1.0 1655:1.0
3 15:0.06666666666666667 25:0.5 42:0.25 56:0.3333333333333333 95:1.0 145:1.0 223:0.5 319:0.07142857142857142 443:1.0 531:0.5 534:0.2 566:1.0 595:1.0 618:1.0 622:1.0 623:1.0 671:1.0 795:1.0 1295:1.0 1407:1.0 1853:1.0 1998:0.5 2532:1.0 4616:1.0 4877:1.0 5147:0.5
3 1:0.125 5:0.5 6:0.043478260869565216 15:0.13333333333333333 16:0.2 34:0.09090909090909091 56:0.3333333333333333 82:0.14285714285714285 88:1.0 114:0.3333333333333333 123:1.0 138:0.14285714285714285 243:1.0 261:0.05555555555555555 275:1.0 386:0.5 511:0.5 857:1.0 1009:1.0 1032:2.0 1155:1.0 1244:1.0 1295:1.0 1433:1.0 1998:0.5 2353:1.0 2609:1.0 3800:1.0 4540:1.0 6320:1.0 9526:1.0
3 1:0.125 5:1.0 6:0.043478260869565216 11:1.0 42:0.125 51:0.25 56:0.3333333333333333 128:0.4 146:1.0 147:0.5 150:0.04 155:0.09090909090909091 181:0.5 185:1.0 226:2.0 284:1.0 327:0.16666666666666666 350:0.125 409:0.3333333333333333 443:1.0 473:0.25 588:1.0 714:1.0 1105:1.0 1109:1.0 1202:1.0 1225:1.0 1349:1.0 1538:1.0 1655:1.0 1768:1.0 1939:1.0 2059:1.0 2409:1.0 2553:1.0 2910:1.0 2930:1.0 3085:1.0 6268:1.0
3 37:0.2 56:0.3333333333333333 97:0.6666666666666666 147:1.0 235:1.0 261:0.05555555555555555 266:1.0 272:0.5 287:1.0 340:1.0 375:0.5 785:1.0 1109:2.0 2716:1.0 3270:1.0 3976:1.0
3 6:0.043478260869565216 15:0.13333333333333333 17:0.5 37:0.4 42:0.125 73:0.09090909090909091 114:0.3333333333333333 147:0.5 169:1.0 206:0.3333333333333333 261:0.05555555555555555 295:1.0 542:0.5 615:1.0 911:1.0 1109:1.0 1354:0.5 1448:1.0 1538:1.0 1572:1.0 1655:1.0 1826:1.0 2378:0.25 2524:1.0 3539:1.0
3 4:1.0 5:0.5 15:0.13333333333333333 23:0.1111111111111111 42:0.25 73:0.09090909090909091 97:0.6666666666666666 150:0.08 164:1.0 169:1.0 171:1.0 190:1.0 204:1.0 215:0.16666666666666666 226:1.0 261:0.05555555555555555 484:1.0 681:0.25 785:1.0 794:1.0 911:1.0 1126:1.0 1261:1.0 1785:1.0 1947:0.5 2723:1.0 3332:1.0 3473:1.0 4782:1.0
3 4:1.0 5:0.5 6:0.13043478260869565 34:0.09090909090909091 42:0.25 56:0.3333333333333333 63:1.0 82:0.14285714285714285 95:1.0 105:0.5 107:0.5 135:0.3333333333333333 192:1.0 261:0.05555555555555555 327:0.16666666666666666 376:1.0 473:0.5 488:1.0 531:1.0 534:0.6 542:0.5 561:1.0 785:1.0 1241:0.5 1261:1.0 1780:0.5 2614:1.0 3790:1.0 3838:1.0 4182:1.0
3 6:0.08695652173913043 34:0.09090909090909091 42:0.125 69:0.5 114:0.3333333333333333 117:0.0625 143:0.25 146:1.0 147:0.5 165:0.1 170:1.0 253:1.0 261:0.05555555555555555 279:1.0 336:0.5 350:0.125 484:1.0 587:1.0 892:1.0 908:1.0 1351:1.0 1382:0.5 1487:1.0 2221:1.0 2263:0.5 5030:1.0
3 1:0.125 5:0.5 15:0.13333333333333333 30:0.5 37:0.4 64:0.5 69:0.5 88:1.0 116:1.0 128:0.2 146:1.0 147:0.5 165:0.1 228:0.5 284:1.0 299:1.0 350:0.125 373:0.5 452:1.0 484:1.0 488:1.0 561:0.5 587:1.0 747:0.5 1003:1.0 1091:1.0 1326:1.0 1327:1.0 1885:1.0 1936:1.0 2243:1.0 2403:1.0 2626:1.0 3584:1.0
3 1:0.125 6:0.043478260869565216 23:0.1111111111111111 34:0.09090909090909091 42:0.125 49:1.0 56:0.3333333333333333 82:0.42857142857142855 96:0.1111111111111111 106:3.0 139:1.0 145:1.0 146:1.0 162:1.0 165:0.2 169:1.0 188:1.0 189:1.0 328:1.0 353:1.0 393:0.5 443:1.0 488:1.0 524:1.0 618:1.0 644:1.0 671:1.0 892:1.0 1075:1.0 1103:0.5 1241:0.5 1275:0.5 1681:1.0 1780:0.5 1885:1.0 1923:1.0 2591:0.3333333333333333 2807:0.5 4462:1.0 9002:1.0
3 5:0.5 6:0.043478260869565216 14:0.07692307692307693 34:0.09090909090909091 42:0.125 82:0.2857142857142857 96:0.1111111111111111 102:0.5 201:1.0 204:1.0 223:0.5 373:0.25 441:1.0 461:1.0 1003:1.0 1220:1.0 1278:1.0 1572:1.0 1596:1.0 2068:1.0 2441:1.0 2591:0.3333333333333333 4965:1.0
3 4:1.0 14:0.07692307692307693 69:0.5 82:0.14285714285714285 138:0.14285714285714285 169:1.0 170:1.0 204:1.0 206:0.3333333333333333 219:0.3333333333333333 255:1.0 367:1.0 756:1.0 1936:1.0 2539:1.0
3 6:0.043478260869565216 14:0.07692307692307693 15:0.06666666666666667 37:0.2 49:1.0 97:0.3333333333333333 105:0.5 138:0.14285714285714285 177:0.5 215:0.16666666666666666 224:1.0 424:1.0 443:1.0 542:0.5 858:1.0 930:1.0 2474:1.0 2591:0.3333333333333333
3 5:0.5 6:0.043478260869565216 14:0.07692307692307693 42:0.125 82:0.14285714285714285 146:1.0 228:0.5 505:1.0 573:1.0 1091:1.0 1199:1.0 1538:1.0 1847:1.0 3605:1.0 9336:1.0
3 5:1.0 6:0.043478260869565216 69:0.5 95:1.0 106:1.0 114:0.3333333333333333 135:0.3333333333333333 147:0.5 261:0.05555555555555555 336:0.5 353:1.0 534:0.2 955:1.0 1057:1.0 1087:1.0 1104:1.0 1430:1.0 2030:1.0 3550:1.0 3584:1.0 3849:1.0
3 15:0.06666666666666667 17:0.25 23:0.1111111111111111 42:0.125 82:0.2857142857142857 97:0.3333333333333333 108:0.5 134:1.0 139:1.0 154:1.0 155:0.2727272727272727 201:1.0 215:0.5 272:0.5 338:1.0 359:0.5 440:0.5 482:1.0 560:1.0 1040:1.0 1219:1.0 1241:0.5
3 6:0.13043478260869565 15:0.06666666666666667 17:0.25 63:1.0 73:0.09090909090909091 105:1.0 108:0.5 167:1.0 215:0.16666666666666666 253:1.0 295:1.0 305:1.0 328:1.0 359:0.5 407:0.3333333333333333 441:1.0 461:1.0 522:1.0 615:1.0 958:1.0 959:1.0 960:1.0 1045:1.0 1275:0.5 1423:1.0 1445:0.5 1464:1.0 1569:0.3333333333333333 1621:1.0 1671:1.0 2175:0.5 2282:1.0 3013:1.0 3535:1.0 4774:1.0 9372:1.0
3 5:1.0 6:0.043478260869565216 26:1.0 34:0.09090909090909091 37:0.2 42:0.25 56:0.3333333333333333 63:1.0 64:0.5 69:0.5 108:0.5 146:1.0 150:0.08 169:1.0 181:0.25 215:0.16666666666666666 359:1.5 443:1.0 558:1.0 681:0.25 696:1.0 768:0.3333333333333333 1006:1.0 1215:1.0 1521:1.0 1651:0.5 1923:1.0 1929:1.0 1939:1.0 2683:1.0 2770:1.0 2942:1.0 3151:1.0 3379:1.0 4076:1.0 4104:1.0
3 34:0.09090909090909091 37:0.2 42:0.25 54:1.0 56:0.3333333333333333 63:1.0 64:1.0 75:0.14285714285714285 82:0.14285714285714285 108:0.5 150:0.08 169:1.0 181:0.25 201:1.0 250:1.0 251:0.3333333333333333 350:0.125 359:1.0 373:0.25 399:0.5 443:1.0 447:1.0 511:0.5 681:0.25 768:0.3333333333333333 795:1.0 1058:1.0 1192:1.0 1332:1.0 1582:1.0 1923:1.0 1929:1.0 2016:1.0 2770:1.0 2942:1.0 4076:1.0 4242:1.0
3 34:0.09090909090909091 82:0.14285714285714285 97:0.3333333333333333 143:0.25 145:1.0 150:0.08 238:0.14285714285714285 328:1.0 329:0.5 367:1.0 370:1.0 664:1.0 1097:1.0 1296:1.0 1669:1.0 1929:1.0 2370:2.0 3663:1.0
3 5:1.5 6:0.08695652173913043 15:0.13333333333333333 23:0.1111111111111111 34:0.09090909090909091 37:0.4 42:0.125 44:1.0 56:0.3333333333333333 64:1.0 97:0.3333333333333333 106:2.0 147:0.5 226:1.0 253:1.0 350:0.125 367:1.0 373:0.25 424:1.0 441:1.0 449:1.0 473:0.5 488:2.0 545:1.0 561:0.5 989:1.0 1143:1.0 1260:0.5 1263:1.0 1452:1.0 1511:1.0 1569:0.3333333333333333 1707:1.0 1867:1.0 2013:1.0 2248:1.0 2288:1.0 2485:1.0 3582:1.0 3745:1.0 5619:1.0 7032:1.0 7172:1.0 7391:1.0
3 5:1.0 6:0.043478260869565216 42:0.25 69:0.5 73:0.09090909090909091 97:0.3333333333333333 106:1.0 108:0.5 146:1.0 165:0.1 204:1.0 250:1.0 368:1.0 402:1.0 445:1.0 450:1.0 483:1.0 735:1.0 1066:1.0 1161:1.0 1266:1.0 1281:1.0 1386:1.0 1445:0.5 1651:0.5 1847:1.0 1867:2.0 2297:1.0 3121:1.0 3567:1.0 4335:1.0 8318:1.0
3 1:0.125 3:1.0 5:0.5 6:0.13043478260869565 15:0.06666666666666667 17:0.25 34:0.09090909090909091 56:0.3333333333333333 69:0.5 82:0.14285714285714285 98:0.5 106:1.0 114:0.3333333333333333 123:1.0 139:1.0 146:1.0 162:1.0 165:0.1 226:1.0 353:1.0 388:0.5 587:1.0 641:1.0 717:0.5 1057:1.0 1109:1.0 1522:1.0 1743:1.0 2332:1.0 3098:1.0 3661:1.0 4262:1.0 4555:1.0 4853:1.0 4889:1.0 7525:1.0
3 1:0.125 5:0.5 6:0.043478260869565216 15:0.2 17:0.25 23:0.1111111111111111 34:0.09090909090909091 54:1.0 56:0.3333333333333333 74:1.0 75:0.14285714285714285 82:0.14285714285714285 105:0.5 123:1.0 135:0.3333333333333333 147:0.5 169:1.0 219:0.3333333333333333 238:0.14285714285714285 260:1.0 326:1.0 394:1.0 418:0.5 460:0.5 509:1.0 553:1.0 566:1.0 573:1.0 695:1.0 1083:1.0 1109:1.0 1221:1.0 1317:1.0 1332:1.0 1333:1.0 1692:1.0 1716:1.0 1717:1.0 2564:1.0 2721:1.0 3330:1.0 4275:1.0 4669:1.0 4703:1.0 5093:1.0 7116:1.0 8434:1.0 9138:1.0
3 17:0.25 25:0.5 138:0.14285714285714285 284:1.0 1332:1.0 4274:1.0 4275:1.0
3 5:1.0 6:0.043478260869565216 42:0.25 82:0.14285714285714285 98:0.5 102:0.5 150:0.04 169:1.0 175:1.0 177:0.5 228:0.5 350:0.125 366:1.0 409:0.3333333333333333 411:1.0 443:1.0 648:1.0 768:0.3333333333333333 1421:0.3333333333333333 1434:1.0 1671:1.0 1719:1.0 1752:1.0 2694:1.0 6269:1.0 7392:1.0
3 5:0.5 6:0.043478260869565216 23:0.1111111111111111 37:0.2 42:0.125 146:1.0 150:0.04 165:0.1 169:1.0 191:0.5 347:0.5 350:0.125 393:0.5 473:0.5 484:1.0 534:0.2 609:1.0 716:1.0 776:1.0 908:1.0 2532:1.0 2614:1.0 2678:1.0 3663:1.0 4571:1.0
3 5:1.0 23:0.1111111111111111 42:0.25 49:1.0 56:0.3333333333333333 82:0.2857142857142857 94:2.0 98:0.5 128:0.2 131:0.5 165:0.1 176:1.0 249:0.5 263:1.0 292:1.0 350:0.125 366:1.0 367:1.0 373:0.25 411:1.0 441:1.0 457:1.0 460:0.5 473:0.5 477:1.0 767:1.0 776:1.0 829:1.0 911:1.0 1580:1.0 1614:1.0 2054:1.0 2729:1.0 3030:1.0 4599:1.0 6008:1.0 6553:1.0 8315:1.0 9492:1.0
3 1:0.25 15:0.06666666666666667 17:0.5 34:0.18181818181818182 35:1.0 37:0.2 56:0.3333333333333333 63:1.0 71:1.0 96:0.2222222222222222 97:0.3333333333333333 143:0.25 150:0.08 226:1.0 284:1.0 300:1.0 331:1.0 402:1.0 416:0.25 417:1.0 418:0.5 561:0.5 595:1.0 3241:1.0 3998:1.0 4238:1.0 4562:1.0 5484:1.0
3 5:0.5 6:0.08695652173913043 17:0.25 117:0.0625 138:0.14285714285714285 146:1.0 595:1.0 1920:1.0 2138:1.0 2384:0.5 4425:1.0 4789:1.0 5055:1.0
3 6:0.08695652173913043 15:0.06666666666666667 17:0.25 23:0.1111111111111111 30:0.5 34:0.18181818181818182 37:0.2 42:0.25 82:0.14285714285714285 97:0.3333333333333333 98:0.5 105:0.5 135:0.3333333333333333 145:1.0 169:1.0 175:1.0 180:1.0 191:0.25 211:0.5 286:1.0 328:1.0 340:1.0 367:2.0 385:1.0 389:1.0 411:1.0 511:0.5 542:0.5 617:1.0 620:1.0 622:1.0 624:1.0 671:1.0 695:2.0 747:0.5 811:1.0 1123:1.0 1280:1.0 2158:1.0 2219:1.0 2534:1.0 2970:1.0 3072:1.0 3330:1.0 3331:1.0 3671:1.0 3742:1.0 9336:1.0
3 5:0.5 6:0.043478260869565216 14:0.07692307692307693 15:0.06666666666666667 16:0.2 34:0.09090909090909091 44:1.0 56:0.3333333333333333 96:0.1111111111111111 275:1.0 320:0.5 587:1.0 595:1.0 681:0.25 866:1.0 1387:1.0 1403:1.0 2101:1.0 2478:0.3333333333333333 2504:1.0 3330:1.0 3353:1.0 3410:1.0 3653:0.5 4498:1.0
3 5:0.5 6:0.043478260869565216 15:0.06666666666666667 25:0.5 42:0.125 54:1.0 56:0.3333333333333333 73:0.09090909090909091 75:0.14285714285714285 98:0.5 185:1.0 245:1.0 320:0.5 367:1.0 399:0.5 423:1.0 543:0.5 717:0.5 813:1.0 866:1.0 999:1.0 1139:0.5 1373:1.0 1445:0.5 1675:1.0 1785:1.0 2688:1.0 3450:1.0 4376:1.0 4498:1.0 4612:1.0
3 5:1.0 6:0.043478260869565216 14:0.07692307692307693 42:0.125 73:0.09090909090909091 95:1.0 97:0.3333333333333333 191:0.5 251:0.3333333333333333 305:2.0 328:1.0 350:0.25 353:1.0 494:1.0 506:1.0 531:0.5 585:1.0 586:1.0 618:1.0 1017:1.0 1018:1.0 1066:1.0 1389:0.5 1496:1.0 1535:5.0 2786:1.0 4483:1.0 4893:1.0 8620:1.0
3 6:0.08695652173913043 31:1.0 35:1.0 36:1.0 91:1.0 92:1.0 150:0.04 190:2.0 261:0.05555555555555555 275:1.0 359:0.5 496:1.0 785:1.0 911:1.0 1436:0.5 1810:1.0 2059:1.0 3031:1.0 9632:1.0
3 6:0.043478260869565216 14:0.07692307692307693 15:0.06666666666666667 56:0.3333333333333333 73:0.09090909090909091 150:0.04 261:0.05555555555555555 263:1.0 359:0.5 445:1.0 644:1.0 785:1.0 3870:1.0 7206:1.0 8251:1.0
3 5:0.5 14:0.07692307692307693 34:0.09090909090909091 42:0.125 97:0.3333333333333333 147:0.5 155:0.09090909090909091 158:1.0 201:1.0 219:0.3333333333333333 220:1.0 261:0.05555555555555555 367:1.0 373:0.25 375:0.5 441:1.0 563:1.0 785:1.0 1241:0.5 1479:1.0 1564:1.0 1896:1.0 1941:1.0 2342:1.0
3 5:0.5 6:0.08695652173913043 34:0.09090909090909091 56:0.3333333333333333 73:0.09090909090909091 82:0.2857142857142857 114:0.3333333333333333 128:0.2 146:1.0 155:0.09090909090909091 216:1.0 308:1.0 473:0.25 648:1.0 1298:1.0 1430:1.0 1611:1.0 1654:1.0 3006:1.0 3267:1.0
3 14:0.07692307692307693 37:0.2 56:0.3333333333333333 319:0.07142857142857142 375:0.5 566:1.0 587:1.0 1432:1.0 1921:1.0 2330:2.0 2649:1.0
3 5:0.5 6:0.043478260869565216 7:0.5 15:0.06666666666666667 17:0.25 34:0.09090909090909091 37:0.2 64:0.5 82:0.14285714285714285 97:0.3333333333333333 128:0.2 135:0.3333333333333333 165:0.1 181:0.25 220:1.0 223:0.5 275:1.0 300:1.0 347:0.5 373:0.25 440:0.5 441:1.0 587:1.0 654:0.1111111111111111 1423:1.0 1471:1.0 1695:1.0 1779:1.0 2519:1.0 2675:1.0 2959:1.0 3391:1.0 5095:1.0
3 5:0.5 6:0.043478260869565216 14:0.07692307692307693 17:0.25 45:2.0 56:0.3333333333333333 128:0.2 138:0.14285714285714285 240:1.0 319:0.07142857142857142 399:0.5 417:1.0 511:0.5 549:0.5 561:0.5 587:1.0 647:1.0 4185:1.0 4237:1.0 8323:2.0
3 1:0.125 6:0.043478260869565216 42:0.25 56:0.3333333333333333 96:0.1111111111111111 97:0.3333333333333333 98:0.5 101:1.0 135:0.3333333333333333 165:0.1 191:0.25 223:0.5 319:0.07142857142857142 443:1.0 671:1.0 717:0.5 1332:1.0 1333:1.0 1403:1.0 1564:1.0 1926:1.0 2686:1.0 3774:1.0 8000:1.0 8746:1.0
3 23:0.1111111111111111 34:0.18181818181818182 97:0.3333333333333333 117:0.0625 138:0.14285714285714285 165:0.1 181:0.25 190:1.0 531:0.5 1105:1.0 1155:1.0 1667:1.0 1740:0.5 2609:1.0 2610:1.0 2611:1.0 2776:1.0 4059:1.0 4707:1.0 7894:1.0
3 6:0.08695652173913043 7:0.5 14:0.07692307692307693 15:0.06666666666666667 34:0.09090909090909091 42:0.125 56:0.3333333333333333 97:0.3333333333333333 190:1.0 191:0.25 215:0.3333333333333333 275:1.0 384:1.0 711:1.0 1256:1.0 2688:1.0 3212:1.0 3353:1.0 4006:1.0 4707:1.0 7437:0.5 7894:1.0
3 5:0.5 6:0.043478260869565216 15:0.06666666666666667 31:1.0 34:0.09090909090909091 42:0.625 101:1.0 105:0.5 109:1.0 115:1.0 128:0.2 147:0.5 150:0.04 180:1.0 194:1.0 204:1.0 206:0.3333333333333333 215:0.16666666666666666 240:1.0 241:1.0 251:0.3333333333333333 373:0.25 441:1.0 473:1.0 511:0.5 564:1.0 1332:1.0 1569:0.3333333333333333 1670:0.5 1717:1.0 2297:1.0 2691:1.0 2941:1.0 4238:1.0 4241:1.0 4924:1.0 4980:1.0 8514:1.0
3 5:0.5 6:0.13043478260869565 7:0.5 17:0.25 31:1.0 42:0.125 56:0.3333333333333333 63:1.0 75:0.14285714285714285 82:0.14285714285714285 106:1.0 115:1.0 117:0.0625 146:1.0 147:0.5 149:1.0 150:0.04 176:1.0 207:1.0 232:1.0 281:1.0 300:1.0 350:0.125 539:1.0 561:0.5 615:1.0 1161:1.0 1421:0.3333333333333333 1423:1.0 1448:1.0 1719:1.0 2229:1.0 2559:0.5 2803:1.0 3584:1.0 3800:1.0 4311:1.0
3 5:0.5 6:0.043478260869565216 10:1.0 11:1.0 12:1.0 15:0.06666666666666667 31:1.0 34:0.09090909090909091 42:0.25 64:1.0 75:0.14285714285714285 97:0.3333333333333333 150:0.08 201:1.0 235:1.0 261:0.05555555555555555 319:0.07142857142857142 327:0.16666666666666666 380:1.0 488:1.0 587:1.0 785:1.0 1003:1.0 1104:0.5 1281:1.0 1355:1.0 1440:1.0 1661:1.0 2064:0.5 3448:1.0 4370:1.0 4707:1.0
3 5:2.0 7:0.5 30:0.5 31:1.0 42:0.125 88:1.0 97:0.3333333333333333 106:1.0 108:0.5 131:0.5 143:0.25 146:2.0 147:0.5 191:0.25 454:1.0 473:0.25 878:1.0 1085:1.0 1268:1.0 1535:1.0 1661:1.0 1667:1.0 2515:1.0 2591:0.3333333333333333 3416:1.0 3556:2.0 4324:1.0 4406:1.0
3 6:0.17391304347826086 15:0.06666666666666667 23:0.1111111111111111 31:1.0 56:0.3333333333333333 75:0.14285714285714285 82:0.42857142857142855 97:0.3333333333333333 106:1.0 143:0.25 146:1.0 147:0.5 191:0.5 220:1.0 222:1.0 254:1.0 261:0.05555555555555555 300:1.0 367:1.0 386:0.5 409:0.3333333333333333 488:1.0 534:0.2 561:0.5 622:1.0 672:1.0 713:1.0 1332:1.0 1333:1.0 1426:1.0 1546:1.0 1865:1.0 1998:0.5 2317:1.0 2683:1.0 3344:1.0 3870:1.0 4407:1.0 7295:1.0
3 5:1.0 6:0.08695652173913043 17:0.25 29:1.0 31:1.0 42:0.25 82:0.14285714285714285 97:0.6666666666666666 106:1.0 115:1.0 150:0.04 165:0.1 215:0.16666666666666666 238:0.14285714285714285 254:0.5 273:0.25 300:1.0 319:0.07142857142857142 339:1.0 373:0.25 410:1.0 488:1.0 541:1.0 870:1.0 1596:1.0 1667:1.0 2351:1.0 2378:0.25 2694:1.0 3182:1.0 3231:1.0 3770:1.0 3884:1.0 5076:1.0
3 1:0.125 6:0.043478260869565216 24:1.0 34:0.18181818181818182 42:0.125 56:0.3333333333333333 73:0.09090909090909091 82:0.14285714285714285 97:0.3333333333333333 114:0.3333333333333333 146:1.0 181:0.25 221:0.5 223:0.5 225:1.0 226:1.0 251:0.3333333333333333 261:0.05555555555555555 272:0.5 300:1.0 320:0.5 399:0.5 405:1.0 406:1.0 543:0.5 654:0.1111111111111111 995:1.0 1032:1.0 1410:1.0 1667:4.0 1910:1.0 1992:1.0 2876:1.0 2923:1.0 2966:1.0 3087:1.0 3106:1.0 5498:1.0 7391:1.0 7476:2.0
3 5:0.5 6:0.043478260869565216 7:0.5 17:0.25 23:0.1111111111111111 31:1.0 34:0.36363636363636365 54:1.0 56:0.6666666666666666 128:0.2 222:1.0 261:0.05555555555555555 281:1.0 300:1.0 477:1.0 798:1.0 1177:1.0 1332:1.0 1333:1.0 1465:1.0 2113:1.0 2119:2.0 2609:1.0 2876:1.0 5498:1.0 6549:1.0
3 5:1.0 6:0.13043478260869565 15:0.13333333333333333 17:0.25 42:0.125 82:0.14285714285714285 146:1.0 147:0.5 190:2.0 191:0.25 204:1.0 290:1.0 441:1.0 577:1.0 1123:1.0 1569:0.3333333333333333 1904:1.0 2462:1.0 2776:1.0 3208:1.0 3332:1.0 3892:1.0 4155:1.0 4236:1.0 4880:1.0 4980:1.0 7436:1.0 8778:1.0
3 5:0.5 6:0.13043478260869565 14:0.07692307692307693 34:0.09090909090909091 51:0.25 56:0.3333333333333333 145:1.0 201:1.0 204:1.0 255:1.0 367:1.0 1780:0.5 2538:1.0 3183:1.0 3416:1.0
3 5:0.5 6:0.08695652173913043 14:0.07692307692307693 15:0.06666666666666667 23:0.2222222222222222 56:0.3333333333333333 82:0.14285714285714285 106:2.0 146:1.0 147:1.0 155:0.09090909090909091 165:0.2 241:1.0 278:1.0 457:1.0 908:1.0 1248:1.0 1298:1.0 1830:1.0 1923:1.0 1992:2.0 2721:1.0 2722:1.0 3910:1.0 4054:0.5 4490:1.0
3 5:0.5 6:0.043478260869565216 14:0.07692307692307693 17:0.25 97:0.6666666666666666 114:0.3333333333333333 138:0.14285714285714285 165:0.1 232:1.0 275:1.0 290:1.0 491:1.0 647:1.0 724:1.0 927:0.5 988:0.5 1481:1.0 1671:1.0 1888:1.0 2435:1.0 2547:1.0 2626:1.0 4344:1.0 4576:1.0 7072:1.0
3 5:1.0 15:0.06666666666666667 25:0.5 34:0.18181818181818182 177:0.5 290:1.0 407:0.3333333333333333 510:1.0 747:0.5 1064:1.0 1191:1.0 1332:1.0 1333:1.0 1578:1.0 1932:1.0 1994:1.0 2959:1.0 3101:1.0 3567:1.0 4567:1.0
3 1:0.125 6:0.043478260869565216 15:0.2 17:0.25 30:0.5 34:0.18181818181818182 35:1.0 36:1.0 42:0.25 56:0.3333333333333333 96:0.1111111111111111 98:0.5 131:0.5 155:0.09090909090909091 175:1.0 185:1.0 188:1.0 302:1.0 320:0.5 368:1.0 393:0.5 443:1.0 496:1.0 526:1.0 800:0.3333333333333333 857:1.0 1120:1.0 1345:1.0 1349:1.0 1671:1.0 1672:1.0 1708:2.0 1709:2.0 2282:1.0 2828:1.0 4250:1.0 4324:1.0 5661:1.0
3 15:0.06666666666666667 30:0.5 34:0.09090909090909091 42:0.125 44:1.0 82:0.14285714285714285 97:0.3333333333333333 261:0.05555555555555555 281:1.0 373:0.25 743:1.0 1389:0.5 1992:1.0 2539:1.0 2721:1.0 4250:1.0 5379:1.0
3 6:0.17391304347826086 14:0.07692307692307693 15:0.06666666666666667 17:0.25 94:2.0 97:0.6666666666666666 149:1.0 169:1.0 171:1.0 204:1.0 226:1.0 331:1.0 531:0.5 537:1.0 546:1.0 561:0.5 828:0.5 850:1.0 1154:1.0 1183:0.5 1672:1.0 1681:1.0 1780:0.5 2278:1.0 2468:1.0 2968:1.0 3260:1.0 4327:1.0
3 6:0.08695652173913043 34:0.18181818181818182 42:0.125 82:0.14285714285714285 150:0.04 245:1.0 473:0.25 543:0.5 918:1.0 919:1.0 1044:1.0 1256:1.0 1361:1.0 1446:1.0 1569:0.3333333333333333 2041:1.0 2263:0.5 3049:1.0 3410:1.0 3700:1.0
3 5:0.5 6:0.08695652173913043 14:0.07692307692307693 23:0.1111111111111111 26:1.0 42:0.25 54:1.0 97:0.6666666666666666 101:1.0 191:0.25 219:0.3333333333333333 226:1.0 238:0.14285714285714285 255:1.0 272:0.5 329:0.5 371:1.0 441:1.0 1426:1.0 1637:1.0 1992:1.0 2996:1.0 3823:1.0 7744:1.0
3 4:1.0 5:1.0 6:0.08695652173913043 17:0.25 37:0.4 56:0.3333333333333333 75:0.14285714285714285 98:0.5 138:0.14285714285714285 143:0.25 150:0.04 246:1.0 307:1.0 327:0.16666666666666666 350:0.125 394:1.0 896:1.0 981:1.0 1143:1.0 1166:2.0 1332:1.0 1333:1.0 1664:1.0 2478:0.3333333333333333 2500:1.0 2567:1.0 3672:1.0 4141:1.0 4979:1.0 9289:1.0
3 5:0.5 56:0.3333333333333333 117:0.0625 138:0.14285714285714285 215:0.16666666666666666 443:1.0 461:1.0 1295:1.0 1332:1.0 1333:1.0 2680:1.0 2927:1.0 3101:1.0 3241:1.0 3737:1.0 5027:1.0
3 1:0.125 5:1.5 6:0.13043478260869565 15:0.06666666666666667 34:0.09090909090909091 42:0.125 44:1.0 56:0.3333333333333333 73:0.09090909090909091 75:0.14285714285714285 82:0.14285714285714285 97:0.3333333333333333 98:0.5 132:1.0 165:0.1 190:1.0 197:0.3333333333333333 204:1.0 206:0.3333333333333333 211:0.5 215:0.3333333333333333 367:1.0 399:0.5 412:1.0 478:1.0 563:1.0 1116:1.0 1160:1.0 1177:1.0 1222:1.0 1522:1.0 1596:1.0 1661:1.0 1693:1.0 2688:1.0 2843:1.0 3175:1.0 4177:1.0 4317:1.0 4523:1.0 7753:1.0
3 1:0.125 4:1.0 6:0.08695652173913043 16:0.2 25:0.5 34:0.09090909090909091 56:0.3333333333333333 138:0.14285714285714285 164:1.0 386:0.5 654:0.1111111111111111 716:1.0 717:0.5 1222:1.0 2929:1.0
3 5:0.5 34:0.09090909090909091 42:0.125 56:0.3333333333333333 97:0.6666666666666666 101:1.0 128:0.2 191:0.25 261:0.05555555555555555 272:0.5 353:1.0 367:2.0 595:1.0 597:1.0 599:1.0 785:1.0 1241:0.5 1332:1.0 1333:1.0 1389:0.5 1410:1.0 2973:0.3333333333333333 3832:0.5 4158:1.0 4497:1.0
3 6:0.13043478260869565 15:0.06666666666666667 34:0.09090909090909091 42:0.375 56:0.3333333333333333 82:0.14285714285714285 169:1.0 201:1.0 245:1.0 350:0.125 439:1.0 441:1.0 496:1.0 511:0.5 693:1.0 843:1.0 892:1.0 927:0.5 1046:1.0 1116:1.0 1174:1.0 1307:1.0 1332:1.0 1333:1.0 1363:1.0 1569:0.3333333333333333 1719:1.0 2018:1.0 2188:1.0 3208:1.0
3 5:0.5 6:0.17391304347826086 17:0.75 34:0.09090909090909091 42:0.25 44:1.0 56:0.3333333333333333 82:0.42857142857142855 114:0.3333333333333333 138:0.14285714285714285 139:1.0 147:0.5 275:1.0 300:1.0 318:1.0 343:1.0 488:1.0 650:1.0 1028:1.0 1044:1.0 1104:1.0 2017:1.0 2141:1.0 2158:1.0 2161:1.0 2162:1.0 2182:1.0
3 14:0.07692307692307693 15:0.06666666666666667 34:0.09090909090909091 37:0.2 73:0.09090909090909091 165:0.1 240:1.0 290:1.0 297:1.0 298:1.0 399:0.5 418:0.5 449:1.0 473:0.25 635:1.0 1332:1.0 1333:1.0 1596:1.0 1719:1.0 1883:1.0 1992:1.0 2071:0.5 2941:1.0 3031:3.0 3829:1.0 4221:1.0 4924:1.0 8514:1.0
|
5c076ff3c606c3c35e7d2cfadcf586ea3489ce1a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2126/CH1/EX1.32/32.sce | 860a7948f545b756e8c8fde885bcf88b8af243b5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,412 | sce | 32.sce | clc
clear
//Input data
A1=465.125 //Cross sectional area at entry in cm^2
T1=26.66+273 //Static temperature at section-1 in K
P1=3.4473 //Static Pressure at section-1 in bar
C1=152.5 //Velocity at section-1 in m/s
P2=2.06838 //Static Pressure at section-2 in bar
T2=277.44 //Static temperature at section-2 in K
C2=260.775 //Velocity at section-2 in m/s
Cp=1005 //Specific heat capacity at constant pressure in J/kg-K
k=1.4 //Adiabatic constant
R=287 //Specific gas constant in J/kg-k
//Calculations
To1=T1+(C1^2/(2*Cp)) //Stagnation temperature at entry in K
To2=T2+(C2^2/(2*Cp)) //Stagnation temperature at exit in K
//here To1=To2 from answers
d1=(P1*10^5)/(R*T1) //Density at section-1
d2=(P2*10^5)/(R*T2) //Density at section-2
ar=(d2*C2)/(d1*C1) //Ratio of inlet to outlet area
A2=A1/ar //Cross sectional area at exit in cm^2
C_max=sqrt(2*Cp*To1) //Maximum velocity at exit in m/s
m=d1*A1*C1*10^-4 //Mass flow rate in kg/s
F=((P1*10^5*A1*10^-4)-(P2*10^5*A2*10^-4))+(m*(C1-C2)) //Force acting on the duct wall between two sections in N
//Output
printf('(A)Maximum velocity and stagnation temperature at exit are %3.2f m/s and %3.2f K\n (B)Since Stagnation temperature %3i K at entry and %3i K at exit are equal, the flow is adiabatic\n (C)Cross sectional area at exit is %3.2f cm^2\n (D)Force acting on the duct wall between two sections is %3.2f N',C_max,To2,To1,To2,A2,F)
|
22a7830a2d6d49831d2663f0a0d835b6c91bcf18 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2498/CH1/EX1.31/ex1_31.sce | 81b9a5210f60f918e41edd10d719682d7880c532 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 369 | sce | ex1_31.sce | // Exa 1.31
clc;
clear;
close;
format('v',6)
// Given data
R = 1;// in ohm
V = 5;// in V
V1 = 0.5;// in V
R1 = 1;// in k ohm
R1 = R1 * 10^3;// in ohm
// V-(I_D*R1)-(I_D*R) - V1 = 0;
I_D = (V-V1)/(R1+R);// in A
I_D = I_D * 10^3;// in mA
V_D = (I_D*10^-3*R) + V1;// in V
disp("The operating point of the diode is : "+string(V_D)+" V, "+string(I_D)+" mA")
|
224e1cb01059cde299d7024816d632e5af3151ad | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3.1/Unix-Windows/scilab-2.3/tests/demos.tst | 9e21bf316ca02de53a2a1c52b03b6c5f06a14e78 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 671 | tst | demos.tst | mode(-1)
//to Check all the demos
funcprot(0)
clearfun('x_message')
clearfun('x_dialog')
clearfun('x_mdialog')
clearfun('x_choose')
clearfun('mode')
clearfun('xclick')
deff('[]=mode(x)','x=x')
deff('[]=halt( )',' ')
getf('SCI/macros/util/x_matrix.sci','c')
getf('SCI/macros/util/getvalue.sci')
names=read('SCI/macros/scicos/names',-1,1,'(a)')
for k=1:size(names,'r')
getf('SCI/macros/scicos/'+names(k)+'.sci')
end
lines(0)
clearfun('lines')
deff('x=lines(x)','x=0 ')
getf('SCI/tests/dialogs.sci','c')
I=file('open','SCI/tests/demos.dialogs','old')
O=file('open','/dev/null','unknown')
%IO=[I,O]
lines(0)
exec('SCI/demos/alldems.dem')
file('close',I)
file('close',O)
|
46d689cd1270cfb0b25c2d59ad3b5282b7454b0a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1931/CH11/EX11.1/1.sce | f05c769f86fd5d0fa1076493f6769cb0fba0258a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 720 | sce | 1.sce | clc
clear
//INPUT DATA
ni=2.1*10^19//intrinsic charge carriers in m^-3
me=0.4//electron mobility in m^2 V^-1 s^-1
mh=0.2//hole mobility in m^2 V^-1 s^-1
d=4.5*10^23//density of boron in m^-3
e=1.6*10^-19//charge of electron in coulombs
//CALCULATION
C=(ni*e)*(me+mh)//conductivity before adding boron atoms in ohm^-1 m^-1
c=(d*e*mh)/10^4//conductivity after adding boron atoms in ohm^-1 m^-1 *10^4
//OUTPUT
printf('Before adding boron atoms,the semiconductor is an intrinsic semiconductor \n conductivity before adding boron atoms is %3.3f ohm^-1 m^-1 \n Aefore adding boron atoms,the semiconductor becomes a P-type semiconductor \n conductivity after adding boron atoms is %3.2f*10^4 ohm^-1 m^-1',C,c)
|
ae9317a50ae13a9a0a02b85b5378167c30c364c9 | d5bd4b5a4760efd0a3d16d7c39c7b495c5874d28 | /Scripts/Test.sce | 6bd45f18ad83f7918bb810e9f2b43366f7878c71 | [] | no_license | APU-PhasedArrayBeamForming/Array-Based-Beam-Forming | 27a61bc3cf93e544364121e508dc4d140b7e0cb1 | 4cde46b7aa3f4e995297ac72fc5038fa0cdf083d | refs/heads/master | 2021-01-25T08:01:17.468481 | 2017-06-15T18:47:40 | 2017-06-15T18:47:40 | 93,699,808 | 1 | 1 | null | 2017-06-15T18:47:40 | 2017-06-08T02:36:01 | Scilab | UTF-8 | Scilab | false | false | 2,489 | sce | Test.sce | y=wavread("./154997700.wav");
//I/Q data broken apart
f = 154997700 //f is the Am frequency (carrier)
O = 2*%pi*f //O omega (angular frequency)
Q = y(1,:); //Q is the first row of the data
I = y(2,:); //I is the second row of the data
n = size(I,2) //n is the size of I. 5986304
p = floor(log(n)/log(2)); //rounds down result of log(size of matrix)/log(2))=22
n = 2^p //n now is smaller. 419304 2^22
I = I(1:n); //make I only the elements up to n (smaller)
Q = Q(1:n); //make Q only the elements up to n (smaller)
dt = 0.5e-6 //change in time is very small .000005 (time samples)2000000
//Demodulation
t = linspace(0,dt*(n-1),n) //split from 0 to how many samples there are by size.
//creates n evenly spaced pts from 0 to dt*vectorlength-1
//wonder if should be just n.
//t is period (T)
E = I + %i*Q; //E is the whole signal.
D = exp(%i*O*t); //D is e^(i*omega*time) Eulers form (whiteboard) why time?
//D=e^iOt
//D is carrier frequency
//Removes carrier
B = E./D; //B is whole signal divided by carrier frequency.
Br = real(B); //Br is only real values of B. no imaginary stuff.
//B1 = Br.*cos(O*t); //taking real part of Euler.
//Eulers t=x
//plot(abs(fE)); //plot fE
//Fast Fourier Transform
//f=1/t and period is 1/f
//differentiation?
df = 1/(n*dt); //change in f is 1 over number of elements times time.
//amplitude?
m = n //copy n to m
fE = fft(E(1:m), -1); //fE is the fast fourier transform of entire signal,-1 idk
//separate frequency into two halves
for i = 1:m //for entire length of vector,
if(i<(m/2)+1) then //if first half of vector
fr(i) = (i-1)*df; //frequency of i is previous element times df
else //second half of vector
fr(i) = (i-m-1)*df; //subtract length of whole vector and 1 more if in tophalf.
end //creating negative part.
end
//plot(fr,abs(fE)); //plot frequency of fast fourier of entire signal.doesnt work
//plot(fr(1:2000000)',abs(fE(1:2000000))) //same plot but only 1 to 2000000th element
playsnd(Br,2e6) //play sound for real whole signal
//plot fr,t
|
313ed1f4c479d0820db8579bbee6f600b0d3cc30 | 4a1effb7ec08302914dbd9c5e560c61936c1bb99 | /Project 2/Experiments/Ripper-C/results/Ripper-C.balance-10-1tra/result7s0.tst | 8eef5d0702c13b059582368c0a553df57becaefd | [] | no_license | nickgreenquist/Intro_To_Intelligent_Systems | 964cad20de7099b8e5808ddee199e3e3343cf7d5 | 7ad43577b3cbbc0b620740205a14c406d96a2517 | refs/heads/master | 2021-01-20T13:23:23.931062 | 2017-05-04T20:08:05 | 2017-05-04T20:08:05 | 90,484,366 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 544 | tst | result7s0.tst | @relation balance
@attribute Left-weight real[1.0,5.0]
@attribute Left-distance real[1.0,5.0]
@attribute Right-weight real[1.0,5.0]
@attribute Right-distance real[1.0,5.0]
@attribute Balance_scale{L,B,R}
@inputs Left-weight,Left-distance,Right-weight,Right-distance
@outputs Balance_scale
@data
R B
R R
R B
B L
R R
R R
R R
R R
B B
R R
R B
R B
R R
L B
R B
L B
R B
L B
L L
R R
L B
R R
R R
L B
L L
B B
L B
R R
R B
L R
B R
R R
L L
L L
L B
R R
L B
L B
L R
B R
L L
L B
R R
R B
R R
L B
L B
R L
R R
R L
R R
R R
L L
L L
L L
L L
L L
L L
L L
L B
L L
L B
|
f4869b7eababc799bce4d2d6361a6467b245437c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1106/CH8/EX8.5/ex8_5.sce | ffb3b583ba1321f567f8063326e25f9186c26053 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 307 | sce | ex8_5.sce | // Example 8.5, Page No-371
clear
clc
Iadjmax=100*10^-6
R1=240
Vref=1.25
// First case: Vo=4
Vo=4
R2a1=(Vo-Vref)/(Vref/R1 + Iadjmax)
R2a=R2a1/1000
printf('\nR2= %.2f kohm', R2a)
// First case: Vo=12
Vo=12
R2b1=(Vo-Vref)/(Vref/R1 + Iadjmax)
R2b=R2b1/1000
printf('\nR2= %.2f kohm', R2b)
|
edb68b6d11db70cc398b1be494b09758383d5e78 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1439/CH24/EX24.5/24_5.sce | 675c4fbe731369230e024767112e4352f3a6b49a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 176 | sce | 24_5.sce | clc
//initialisation of variables
mr= 2.01474 //amu
mH= 0.00237 //amu
mD= 1.00814 //amu
//CALCULATIONS
mn= mr+mH-mD
//RESULTS
printf ('mass of neutron = %.5f amu',mn)
|
c1b7b85c5c18836fcdff80c4d3790672733d826d | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.3_6.tst | b834b95b91761b56694a1cc4f8c5378d6ee52a1e | [] | 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 | 8,290 | tst | bow.3_6.tst | 3 14:0.021739130434782608 255:1.0 751:1.0
3 5:0.2 13:0.2 14:0.06521739130434782 28:1.0 35:2.0 36:0.1111111111111111 43:0.125 58:0.16666666666666666 72:0.125 79:0.07692307692307693 97:1.0 107:1.0 128:1.0 160:1.0 190:2.0 208:1.0 378:1.0 517:1.0 538:1.0 564:0.5 649:1.0 669:1.0 679:1.0 752:1.0 753:1.0 754:1.0 755:1.0 756:1.0 757:1.0 758:1.0 759:1.0 760:1.0 761:1.0
3 5:0.6 13:0.2 17:0.1111111111111111 20:1.0 43:0.125 64:0.25 108:0.1111111111111111 289:0.3333333333333333 477:1.0 482:1.0 762:1.0 763:1.0 764:1.0 765:1.0 766:1.0 767:1.0 768:1.0 769:1.0 770:1.0 771:1.0 772:1.0 773:1.0 774:1.0 775:1.0
3 13:0.1 17:0.1111111111111111 20:1.0 24:1.0 29:0.14285714285714285 135:1.0 765:1.0 776:1.0 777:1.0 778:1.0 779:1.0 780:1.0
3 13:0.1 17:0.05555555555555555 19:0.5 20:2.0 21:1.0 24:1.0 28:1.0 64:0.125 70:0.3333333333333333 98:0.5 99:1.0 119:0.5 135:2.0 299:1.0 358:1.0 603:1.0 631:1.0 781:1.0 782:0.5 783:1.0 784:1.0 785:1.0 786:1.0
3 5:0.2 14:0.021739130434782608 29:0.14285714285714285 70:0.3333333333333333 108:0.1111111111111111 782:0.5 787:1.0 788:0.2 789:1.0 790:1.0
3 4:0.5 5:0.4 10:1.0 13:0.2 14:0.10869565217391304 20:2.0 26:1.0 32:0.25 48:1.0 55:0.25 58:0.3333333333333333 70:0.3333333333333333 82:1.0 96:0.5 119:1.0 125:1.0 126:0.3333333333333333 135:2.0 168:1.0 205:1.0 214:0.6666666666666666 289:0.3333333333333333 470:2.0 677:1.0 708:1.0 740:1.0 754:1.0 791:1.0 792:1.0 793:1.0 794:1.0 795:1.0 796:1.0 797:1.0 798:1.0 799:1.0 800:1.0 801:1.0 802:1.0
3 4:0.5 5:0.2 14:0.043478260869565216 16:0.5 29:0.14285714285714285 70:0.3333333333333333 85:0.1111111111111111 108:0.2222222222222222 469:0.5 740:1.0 803:1.0 804:1.0 805:1.0 806:1.0
3 5:0.4 14:0.021739130434782608 22:1.0 41:0.5 43:0.125 63:0.14285714285714285 64:0.125 264:1.0 370:1.0 807:1.0 808:1.0 809:1.0 810:1.0 811:1.0
3 4:0.5 5:0.4 13:0.4 14:0.021739130434782608 20:1.0 28:1.0 32:0.25 70:0.3333333333333333 84:1.0 133:2.0 145:0.5 231:1.0 533:1.0 654:1.0 655:1.0 662:1.0 707:0.5 810:1.0 812:1.0 813:1.0 814:1.0 815:1.0 816:1.0 817:1.0 818:1.0 819:1.0 820:1.0 821:1.0 822:1.0 823:1.0 824:1.0
3 4:0.5 5:0.2 13:0.1 17:0.05555555555555555 24:1.0 78:0.3333333333333333 103:1.0 118:0.5 177:0.14285714285714285 194:1.0 207:1.0 245:1.0 416:0.14285714285714285 500:1.0 501:1.0 749:1.0 809:1.0 822:1.0 825:1.0 826:1.0 827:1.0 828:1.0 829:1.0 830:1.0 831:1.0 832:1.0 833:1.0
3 11:1.0 13:0.1 17:0.05555555555555555 22:1.0 29:0.14285714285714285 70:0.3333333333333333 133:1.0 177:0.14285714285714285 245:1.0 265:1.0 319:1.0 469:0.5 694:1.0 834:1.0 835:1.0 836:1.0 837:1.0 838:1.0 839:1.0 840:1.0 841:1.0
3 13:0.2 17:0.2222222222222222 20:1.0 70:0.3333333333333333 71:1.0 133:1.0 180:0.5 369:1.0 533:1.0 566:1.0 810:1.0 820:1.0 842:1.0 843:1.0 844:1.0 845:1.0 846:1.0
3 13:0.1 17:0.16666666666666666 20:1.0 43:0.125 55:0.25 118:0.5 170:1.0 177:0.14285714285714285 369:1.0 390:1.0 451:0.5 500:1.0 657:1.0 761:1.0 847:0.3333333333333333 848:1.0 849:1.0 850:1.0 851:1.0 852:1.0 853:1.0 854:1.0 855:1.0 856:1.0 857:1.0 858:1.0
3 5:0.2 13:0.2 17:0.05555555555555555 24:1.0 43:0.125 55:0.25 58:0.16666666666666666 71:1.0 78:0.3333333333333333 85:0.1111111111111111 118:0.5 177:0.2857142857142857 229:1.0 245:1.0 390:1.0 544:1.0 748:1.0 822:1.0 855:2.0 859:1.0 860:1.0 861:1.0 862:1.0 863:1.0 864:1.0 865:1.0
3 4:1.5 13:0.2 14:0.021739130434782608 17:0.2222222222222222 43:0.375 76:1.0 89:2.0 118:1.0 177:0.2857142857142857 842:1.0 866:1.0 867:1.0 868:1.0 869:1.0 870:1.0 871:1.0 872:1.0 873:1.0 874:1.0 875:1.0 876:1.0 877:1.0
3 13:0.1 14:0.021739130434782608 17:0.16666666666666666 22:1.0 29:0.14285714285714285 43:0.25 133:1.0 708:1.0 878:1.0 879:1.0 880:1.0 881:1.0 882:1.0 883:1.0 884:1.0 885:1.0
3 5:0.2 14:0.021739130434782608 35:1.0 37:1.0 58:0.16666666666666666 118:2.5 530:1.0 638:1.0 886:1.0 887:1.0 888:1.0 889:1.0 890:1.0 891:1.0 892:1.0 893:1.0
3 13:0.1 14:0.021739130434782608 17:0.05555555555555555 22:1.0 35:1.0 41:0.5 64:0.125 79:0.07692307692307693 108:0.1111111111111111 315:1.0 683:1.0 885:1.0 894:1.0 895:1.0
3 13:0.1 70:0.3333333333333333 79:0.07692307692307693 118:0.5 289:0.3333333333333333 292:0.5 416:0.14285714285714285 878:1.0 896:1.0 897:1.0 898:1.0 899:1.0 900:1.0 901:1.0
3 79:0.07692307692307693 180:0.5 902:0.3333333333333333 903:1.0 904:1.0
3 4:0.5 13:0.1 20:1.0 32:0.5 70:0.3333333333333333 76:1.0 79:0.07692307692307693 97:1.0 177:0.14285714285714285 192:0.25 207:1.0 245:1.0 369:1.0 657:3.0 843:1.0 867:1.0 871:1.0 878:1.0 900:1.0 905:1.0 906:2.0 907:1.0 908:1.0 909:1.0 910:1.0
3 4:1.0 13:0.1 14:0.021739130434782608 28:1.0 41:0.5 43:0.125 54:1.0 79:0.07692307692307693 107:1.0 119:0.5 145:0.5 177:0.14285714285714285 212:0.5 214:0.3333333333333333 227:1.0 344:1.0 345:1.0 500:1.0 911:1.0 912:1.0 913:1.0 914:1.0
3 4:0.5 5:0.2 8:0.3333333333333333 13:0.2 17:0.1111111111111111 29:0.14285714285714285 32:0.25 43:0.125 70:0.6666666666666666 79:0.23076923076923078 89:1.0 97:1.0 125:1.0 170:1.0 657:1.0 759:1.0 878:1.0 879:1.0 900:1.0 905:1.0 915:1.0 916:1.0 917:1.0 918:1.0 919:1.0 920:1.0
3 5:0.2 13:0.4 17:0.1111111111111111 20:1.0 28:1.0 43:0.125 55:0.25 79:0.07692307692307693 292:0.5 416:0.14285714285714285 506:1.0 657:1.0 833:1.0 921:1.0 922:1.0 923:1.0 924:1.0 925:1.0 926:1.0 927:1.0 928:1.0 929:1.0 930:1.0
3 17:0.1111111111111111 70:0.3333333333333333 133:1.0 829:1.0 931:1.0 932:1.0 933:1.0
3 4:0.5 13:0.1 14:0.043478260869565216 17:0.16666666666666666 29:0.14285714285714285 35:1.0 43:0.125 58:0.16666666666666666 70:0.3333333333333333 76:1.0 78:0.3333333333333333 177:0.14285714285714285 192:0.5 207:1.0 245:1.0 289:0.6666666666666666 369:1.0 653:1.0 843:1.0 871:1.0 872:1.0 873:1.0 915:1.0 931:2.0 934:1.0 935:1.0 936:1.0 937:1.0 938:1.0 939:1.0 940:1.0 941:1.0 942:1.0
3 4:0.5 5:0.2 13:0.2 14:0.06521739130434782 29:0.14285714285714285 35:1.0 43:0.125 64:0.125 79:0.15384615384615385 85:0.1111111111111111 97:2.0 193:1.0 373:1.0 660:1.0 703:1.0 758:1.0 915:1.0 943:1.0 944:1.0 945:1.0 946:1.0 947:1.0
3 11:1.0 17:0.05555555555555555 133:1.0 192:0.25 872:1.0 948:1.0 949:1.0 950:1.0 951:1.0 952:1.0
3 4:1.0 5:0.2 13:0.1 17:0.05555555555555555 20:1.0 29:0.14285714285714285 31:1.0 85:0.1111111111111111 133:1.0 177:0.2857142857142857 231:1.0 307:1.0 344:1.0 707:1.0 737:1.0 759:1.0 947:1.0 953:1.0 954:1.0 955:1.0 956:1.0
3 4:0.5 13:0.1 14:0.043478260869565216 17:0.05555555555555555 36:0.1111111111111111 43:0.125 64:0.125 79:0.07692307692307693 97:2.0 193:1.0 292:1.0 758:1.0 793:1.0 857:1.0 971:1.0 972:1.0 973:1.0 974:1.0 975:1.0 976:1.0
3 14:0.021739130434782608 17:0.16666666666666666 22:1.0 29:0.14285714285714285 35:1.0 128:1.0 160:1.0 212:0.5 289:0.6666666666666666 308:1.0 315:1.0 399:1.0 790:1.0 899:1.0 977:1.0 978:1.0 979:1.0
3 11:1.0 14:0.021739130434782608 17:0.05555555555555555 22:1.0 35:1.0 58:0.3333333333333333 85:0.1111111111111111 96:0.25 315:1.0 530:1.0 980:1.0 981:1.0 982:1.0 983:1.0 984:1.0
3 4:0.5 13:0.1 14:0.06521739130434782 17:0.05555555555555555 28:1.0 35:1.0 43:0.125 50:0.5 58:0.16666666666666666 64:0.125 85:0.1111111111111111 88:1.0 96:0.25 98:0.5 192:0.25 496:1.0 599:1.0 611:1.0 666:1.0 667:1.0 761:1.0 808:1.0 985:1.0 986:1.0 987:1.0 988:2.0 989:1.0 990:1.0 991:1.0 992:1.0
3 4:1.5 10:1.0 13:0.1 17:0.05555555555555555 31:1.0 33:1.0 58:0.16666666666666666 85:0.1111111111111111 119:0.5 133:2.0 177:0.2857142857142857 214:0.3333333333333333 225:1.0 265:1.0 308:1.0 344:1.0 513:1.0 655:1.0 1097:1.0
3 123:1.0
3 5:0.2 17:0.05555555555555555 58:0.16666666666666666 70:1.0 79:0.15384615384615385 85:0.1111111111111111 96:0.25 123:1.0 133:1.0 170:1.0 436:1.0 603:1.0 834:1.0
3 4:0.5 5:0.2 16:0.5 17:0.05555555555555555 29:0.14285714285714285 58:0.16666666666666666 70:0.6666666666666666 133:1.0 177:0.14285714285714285 192:0.25 265:1.0 333:1.0 611:1.0 740:1.0 790:1.0 794:1.0 1908:1.0
3 4:0.5 5:0.2 13:0.1 17:0.16666666666666666 24:1.0 54:1.0 70:0.3333333333333333 85:0.1111111111111111 116:1.0 177:0.42857142857142855 208:1.0 214:0.3333333333333333 225:1.0 298:0.3333333333333333 311:1.0 369:3.0 530:1.0 533:1.0 810:1.0
3 5:0.2 13:0.1 17:0.1111111111111111 20:2.0 29:0.14285714285714285 32:0.5 39:2.0 53:1.0 55:0.25 58:0.16666666666666666 78:0.3333333333333333 108:0.2222222222222222 118:0.5 133:1.0 177:0.2857142857142857 245:3.0 273:1.0 289:0.3333333333333333 290:1.0 358:1.0 433:1.0 473:1.0 506:2.0 705:2.0 719:1.0 740:3.0 788:0.2 857:1.0 933:1.0 958:1.0
|
6aaa46e3bfdd0c9ca182ddc0716135e14978100c | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH4/EX4.46/46.sce | ed10ee594ca7234e73eac510304cfd0ae3d1b832 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 141 | sce | 46.sce | clc
h1=240; //kJ/kg
h2=192; //kJ/kg
dZ=20; //m
g=9.81; //m/s^2
Q=(h2-h1)+dZ*g/1000;
disp("heat transfer = ")
disp(-Q)
disp("kJ/kg") |
4802f1a0d5107098354177612663a8802bbb0983 | fdf97225e208a6642e1aafddb68b8d3e948f9b9a | /sql/feuerstein/Best_Practices/Code/nocopy.tst | 417542f2a643b6a2eddbeac33298cc44b59d3ede | [] | no_license | jampaniuday/sql_source | 2b47413a50bf419559f6310148f799cf04edb668 | 5c84428161ef58084f8fb25021fd378544ee91db | refs/heads/master | 2021-06-11T14:18:52.676174 | 2017-02-06T21:52:11 | 2017-02-06T21:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,508 | tst | nocopy.tst | SET SERVEROUTPUT ON
CREATE OR REPLACE PACKAGE nocopy_test
IS
PROCEDURE pass_by_value (
nums IN OUT number_varray);
PROCEDURE pass_by_ref (
nums IN OUT NOCOPY number_varray);
END;
/
CREATE OR REPLACE PACKAGE BODY nocopy_test
IS
PROCEDURE pass_by_value (
nums IN OUT number_varray)
IS
BEGIN
FOR indx IN nums.FIRST .. nums.LAST
LOOP
nums(indx) := nums(indx) * 2;
IF indx > 2 THEN RAISE VALUE_ERROR; END IF;
END LOOP;
END;
PROCEDURE pass_by_ref (
nums IN OUT NOCOPY number_varray)
IS
BEGIN
FOR indx IN nums.FIRST .. nums.LAST
LOOP
nums(indx) := nums(indx) * 2;
IF indx > 2 THEN RAISE VALUE_ERROR; END IF;
END LOOP;
END;
END;
/
DECLARE
nums1 number_varray := number_varray (1, 2, 3, 4, 5);
nums2 number_varray := number_varray (1, 2, 3, 4, 5);
PROCEDURE shownums (
str IN VARCHAR2, nums IN number_varray) IS
BEGIN
DBMS_OUTPUT.PUT_LINE (str);
FOR indx IN nums.FIRST .. nums.LAST
LOOP
DBMS_OUTPUT.PUT (nums(indx) || '-');
END LOOP;
DBMS_OUTPUT.NEW_LINE;
END;
BEGIN
shownums ('Before By Value', nums1);
BEGIN
nocopy_test.pass_by_value (nums1);
EXCEPTION
WHEN OTHERS THEN shownums ('After By Value', nums1);
END;
shownums ('Before NOCOPY', nums2);
BEGIN
nocopy_test.pass_by_ref (nums2);
EXCEPTION
WHEN OTHERS THEN shownums ('After NOCOPY', nums2);
END;
END;
/ |
d9a85a353be49fcebf8ded153dc539e572896e12 | 63d888492eb5760997d28f7e464620ab560589cc | /DataStoreTest/Src/C#/Level_0L/Level_0L/DataStore.tst | ed9c2b02c1cd93127b438f6c023d7d2449500e07 | [] | no_license | Samraksh/TestSuite | ef4ea58b7bf844d6263d52ad2a4fe2d91852bf48 | 5a2ad0157ff878e9460fc85d222191ce7dcd595f | refs/heads/master | 2022-10-28T22:51:33.354774 | 2020-03-10T18:29:06 | 2020-03-10T18:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 148 | tst | DataStore.tst | COM_receive file enable testTemp\test_results.txt
sleep 1000
COM_send string start
sleep 900000
COM_receive file disable testTemp\test_results.txt
|
cdaecb602180d0dd8df8dfa7c605c9e5462d96ad | 449d555969bfd7befe906877abab098c6e63a0e8 | /1247/CH5/EX5.28/example5_28.sce | f865e90aabc806e74c03339ab618ec8808449b21 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 384 | sce | example5_28.sce | clear;
clc;
// Stoichiometry
// Chapter 5
// Energy Balances
// Example 5.28
// Page 261
printf("Example 5.28, Page 261 \n \n");
// solution
lv1 = 26694 // kj/kmol
Tc = 466.74
lv2 = lv1*((Tc-298.15)/(Tc-307.7))^.38/1000 // kJ/mol
Hf = -252 // kJ/mol
Hf1 = Hf-lv2 // kJ/kmol
printf("Heat of formation of liquid di ethyl ether = "+string(Hf1)+" kJ/mol.")
|
33916b0982e26f51118b2598ccaa4736e53c4c38 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.1.1/macros/percent/%lssor.sci | e98594776d7d109949c335d9200dbd0b2b5c4946 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 149 | sci | %lssor.sci | //[r]=%lssor(s1,s2)
//%lssor(s1,s2) effectue le test d'egalite entre systemes d'etat et transfert
//correspond a l'operation s1==s2
//!
r=%f
//end
|
0f8e3a314e41f12802d9f42436db832704f6e952 | 348b83f2cd32e6616b86e704a374661890d58cda | /convolution.sce | 4be6d0033d3e2dcd57c746a8e9de65c29a276c9b | [] | no_license | YashGandhi17/Scilab | 012b35caad56d0c7600b9a207956e25774339c66 | 6d509dc17afe2ca32376df795693c84f94e3f360 | refs/heads/master | 2020-04-07T03:13:24.046967 | 2018-11-17T17:24:44 | 2018-11-17T17:24:44 | 157,837,866 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 465 | sce | convolution.sce | x=input("enter sample x(n)");
h=input("enter semple of h(n)");
n_x=input("enter index of x(n)");
n_h=input("enter index of h(n)");
exec('conv.sce');
[y,n_y]=fn_conv(x,n_x,h,n_h);
figure(1);
subplot(3,1,1);
plot2d3(n_x,x);
xlabel("x");
ylabel("n");
title("x(n)");
figure(1);
subplot(3,1,2);
plot2d3(n_h,h);
xlabel("h");
ylabel("n");
title("h(n)");
figure(1);
subplot(3,1,3);
plot2d3(n_y,y);
xlabel("y");
ylabel("n");
title("y(n)");
|
97d8a3032ea1feef62b74d3029ff63d8e879403b | 449d555969bfd7befe906877abab098c6e63a0e8 | /680/CH4/EX4.02/4_02.sce | 7d8c664ea8ce797f84b3d3cac10e1eb6fb390335 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 400 | sce | 4_02.sce | //Problem 4.02:
//initializing the variables:
mdt = 0.15; // in kg/sec
v = 420; // in m/sec
//calculation:
vxin = v
vxout = 0
vyin = 0
vyout = v
Fxgc = mdt*(vxout - vxin)
Fygc = mdt*(vyout - vyin)
Fres = (Fxgc^2 + Fygc^2)^0.5
theta = (atan(Fygc/Fxgc))*180/%pi + 180
printf("\n\nResult\n\n")
printf("\n resultant supporting force is %.1f N and direction is %.0f degree",Fres,theta) |
0fda9a6b620ab8785b1be119755ea881e6765768 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1109/CH2/EX2.8/2_8.sce | 1f6341383262c789694c7fbb378a172663651727 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 2_8.sce | clear;
clc;
Zoc=2000*exp(%i*(-%pi/(180/80)));Zsc=20*exp(%i*(%pi/(180/20)));l=0.5;w=10000;
//value of length of cable as taken in solution
Zo=sqrt(Zoc*Zsc);
C=real(Zo);
D=imag(Zo);
printf("-Zo = %f /_ %f ohms\n",abs(Zo),atan(D,C)*180/%pi);
A=atanh(sqrt(Zsc/Zoc));
P=A/l;
a=real(P);
printf("-a = %f neper/km\n",fix(a*10000)/10000);
b=imag(P);
printf("-b = %f henry/km",round(b*10000)/10000);
|
7fe3bb9b54914563d6a2c6afbab1f3fd60bc290a | 4bbc2bd7e905b75d38d36d8eefdf3e34ba805727 | /ee/contrib/dspic/macros/misc/bode2freq.sci | 28d1d59f924798ac924a3dbad9f5b07f27013ef8 | [] | no_license | mannychang/erika2_Scicos-FLEX | 397be88001bdef59c0515652a365dbd645d60240 | 12bb5aa162fa6b6fd6601e0dacc972d7b5f508ba | refs/heads/master | 2021-02-08T17:01:20.857172 | 2012-07-10T12:18:28 | 2012-07-10T12:18:28 | 244,174,890 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 483 | sci | bode2freq.sci | function f=bode2freq(sys,val,fmin,fmax,typ)
// Interpolation for bode values
f=sqrt(fmin*fmax);
repf=repfreq(sys,[fmin,f,fmax]);
[db,phi]=dbphi(repf);
if typ=='db' then
valf=db;
else
valf=phi;
end
while(abs(val-valf(2))>1000*%eps)
delta=val-valf;
if delta(1)*delta(2) >=0 then
fmin=f;
else
fmax=f;
end
f=sqrt(fmin*fmax);
repf=repfreq(sys,[fmin,f,fmax]);
[db,phi]=dbphi(repf);
if typ=='db' then
valf=db;
else
valf=phi;
end
end
endfunction
|
38c19fc05a77b29ba93daf9ad285f841c223bdd2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3665/CH8/EX8.18/Ex8_18.sce | 8a236f068af297bce59aac22f5cba84eead551be | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 319 | sce | Ex8_18.sce | clc//
//
//
//Variable declaration
I=30; //current(A)
B=1.75; //magnetic field(T)
n=6.55*10^28; //electron concentration(/m^3)
t=0.35*10^-2; //thickness(m)
e=1.6*10^-19;
//Calculation
VH=I*B*10^6/(n*e*t); //hall voltage(micro V)
//Result
printf("\n hall voltage is %0.3f micro V",VH)
|
a2d6fff732cf8f7fef70531e43dfd22febf37de3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3456/CH17/EX17.4/Ex17_4.sce | 5771005a61028c78abd3784287288f8318a31891 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 588 | sce | Ex17_4.sce | //Example 17.4
//Torque and Horsepower
//Page No. 614
clc;clear;close;
w=12; //in inches
hi=0.8; //in inches
hf=0.6; //in inches
D=40; //in inches
N=100; //in rpm
R=D/2;
dh=abs(hf-hi);
e1=log(hi/hf);
r=(hi-hf)/hi;
sigma=20*e1^0.2/1.2;
Qp=1.5; //no unit
P=2*sigma*w*(R*(hi-hf))^(1/2)*Qp/sqrt(3);
a=0.5*sqrt(R*dh);
a=a/12; //conversion to ft
hp=4*%pi*a*P*N*1000/33000;
printf('\nRolling Load = %g\nHorsepower = %g',P,hp);
|
153b67142d9569278fa5a20761d055a8cdafb8dd | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH5/EX5.6.b/5_6_soln.sce | ad5d942a407324a77ef178c465271382e4e04218 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 427 | sce | 5_6_soln.sce | clc;
pathname=get_absolute_file_path('5_6_soln.sce')
filename=pathname+filesep()+'5_6_data.sci'
exec(filename)
// Solutions:
// Theoretical flow rate,
Qt=Qa/(eta_v/100); //gpm
// Area of piston,
A=(%pi/4)*(d^2); //in^2
// tan of offset angle,
T_theta=(231*Qt)/(D*A*N*Y);
// offset angle,
theta=atand(T_theta); //deg
// Results:
printf("\n Results: ")
printf("\n The offset angle of axial piston pump is %.1f deg.",theta)
|
b75f386ac45471ac732a43e08fba17fa5ab53707 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2921/CH17/EX17.5/Ex17_5.sce | 36f6e790c956b46a3a805cf77f775ad95b24dca7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex17_5.sce | clc;
clear;
mprintf('MACHINE DESIGN \n Timothy H. Wentzell, P.E. \n EXAMPLE-17.5 Page No.388\n');
//Deflection
D=0.75;
E=30*10^6;
L=15;
F=96;
I=%pi*D^4/64;
delta=F*L^4/(48*E*I);
delta=floor(100*delta)*10^-2;
Nc=188/sqrt(delta);
mprintf('\n Critical speed = %f rpm.',Nc);
|
f2327408806b63ebb5cd9916f6e4851ff91f92a8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1151/CH1/EX1.49/example49.sce | 8f31d31492e9f653273d28aee72b1763ab6203b6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 426 | sce | example49.sce | //to find transfer function using mason gain formula
printf("syms R1 R2 C1 C2 \n //gains of forward path\n P1=1/(R1*R2*C1*C2*s^2);//forward path1 gain\n //gain of individual loops\n L1=-1/(R1*C1*s);\n L2=-1/(R2*C1*s);\n L3=-1/(R2*C2*s);\n //gain of two non touching loops\n g1=1/(s^2*R1*R2*C1*C2);\n //since all the loops touches the forward path1 so\n d1=1\n d=1-(L1+L2+L3)+g1;\n G=(P1*d1)/d;\n transfer function C/R=G")
|
82333b734104554f9cd89f5b45779be96b96eab8 | e82d1909ffc4f200b5f6d16cffb9868f3b695f2a | /Lista 2/NormaP.sce | 2f30974e6a5c0203fcc78f5e29e765b7500b600f | [] | no_license | AugustoCam95/Computational-Linear-Algebra | eb14307dd3b45ccc79617efe74d1faca639c36c5 | 99b1a1f9499fbc4343bd5c878444e9e281952774 | refs/heads/master | 2020-03-30T22:26:23.790763 | 2018-10-05T03:34:06 | 2018-10-05T03:34:06 | 151,666,289 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 775 | sce | NormaP.sce | // José Augusto Câmara Filho - Matemática Industrial
//ATENÇÃO EXECUTAR ESTÁ FUNÇÃO JUNTO COM A FUNÇÃO AUXILIAR "norma".
function x= NormaP(A,p,m)
[l, c] = size(A);
//Armazena em l e c, o tamanho das linhas e das colunas
v= zeros(1,m);
//inicia um vetor com todos os elementos iguais a zero
for i=1:m
s(:,i)= rand(c,1);
//gera m vetores randômicos de acordo com a entrada do usuário
end
for i=1:m
v(i)= norma(A*s(:,i),p)/norma(s(:,i),p);
//calcula a norma através da função auxiliar "norma" com o p definido pelo usuário e em seguida armazena o valor no vetor v(i)
end
x = max(v);
//pega o maior elemento e armazena na variável x que será o retorno da função
endfunction
|
6fa19cd9447660c44a61db161663e7237ed2896d | 717ddeb7e700373742c617a95e25a2376565112c | /854/CH1/EX1.2/Example1_2.sce | 225fc4169221ba4e117b88d824a2dc7d376cfbaa | [] | 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 | 744 | sce | Example1_2.sce | //clear//
//Caption: Program to find the phase angle between two vectors
//Example1.2
//page 11
clc;
Q = [4,5,2]; //point Q
x = Q(1);
y = Q(2);
z = Q(3);
G = [y,-2.5*x,3]; //vector field
disp(G,'G(rQ) =')
aN = [2/3,1/3,-2/3]; //unit vector- direction of Q
G_dot_aN = dot(G,aN); //dot product of G and aN
disp(G_dot_aN,'G.aN =')
G_dot_aN_aN = G_dot_aN*aN;
disp(G_dot_aN_aN,'(G.aN)aN=')
teta_Ga = Phase_Angle(G,aN) //phase angle between G and unit vector aN
disp(teta_Ga,'phase angle between G and unit vector aN in degrees =')
//Result
// G(rQ) = 5. - 10. 3.
// G.aN = - 2.
// (G.aN)aN = - 1.3333333 - 0.6666667 1.3333333
// phase angle between G and unit vector aN in degrees = 99.956489
|
98b1e6dfe2c44dcaba776c50630e13c5783e4939 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3822/CH6/EX6.10/Ex6_10.sce | 2c4e1e919a7b446ac9350b505bef736b06e83e69 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 511 | sce | Ex6_10.sce |
//OptoElectronics and Fibre Optics Communication, by C.K Sarkar and B.C Sarkar
//Example 6.10
//OS=Windows 10
////Scilab version Scilab 6.0.0-beta-2(64 bit)
clc;
clear;
//given
E=1.15*(1.6e-19);//band gap energy in V
h=6.62e-34;//plank's constant in S.I units
c=3e8;//velocity of light in m/s
lamda_c=(h*c)/(E);//critical wavelength in meter
mprintf("The critical wavelength is=%.2f um",lamda_c*1e6);//multiplication by 1e6 to convert unit from m to um
//the answer vary due to roundingoff
|
9be2e36b860595b579443483ee84d8ec800b35b0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2273/CH4/EX4.15/ex4_15.sce | 8bfe72a5421cfa0253eacb4f72e2398913c6881e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 293 | sce | ex4_15.sce | //Find the capacitance of 3 phase line
clear;
clc;
//soltion
//given
r=1;//cm//radius of the conductor
d=250;//cm//spacing
L=100000;//m//length of the line
Eo=8.854*10^-12//permitivity of the air
C=2*%pi*Eo*L/(log(d/r));
C_=C*10^6;
printf("Capacitance of 100km line= %.4fµF",C_);
|
1ebbbcacbc8eaafd6c26368e9fe9758a08e444bb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1883/CH3/EX3.3.5/Example3_5.sce | b3abfab2f1230c3489fda6d2ad620ddfa8866062 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 413 | sce | Example3_5.sce | //Chapter-3,Example3_3_5,pg 3-7
angle_0=30 //acceptance angle
n1=1.4 //refractive index of core
n2=sqrt(n1^2-sind(angle_0)^2) //Numerical aperture is 'NA^2 = n1^2 - n2^2' also numerical aperture is 'NA=sin(angle_0)'
printf("\nThe refractive index of cladding is n2 = %.4f\n",n2)
|
5a96bfd21f611132e4a1476f518ee1ea1eca6e3b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH4/EX4.44/EX4_44.sce | ecae39e4870f12ed164f7a875244db051b4a67d8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | sce | EX4_44.sce | //EXAMPLE 4-44 PG NO 257
//6I1+14I2=20 I1-I2=-6
I1=-3.2;
I2=2.8;
disp('i) Current(I1) is = '+string (I1) +' A ');
disp('Ii) Current (I2) is = '+string (I2) +' A ');
|
81860b05f9cd650053cc0c87bf790cc82ad30f95 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1247/CH3/EX3.18/example3_18.sce | 81ed6a0c9346909a060c1a7e67975e1ad3531a6d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,001 | sce | example3_18.sce | clear;
clc;
// Stoichiometry
// Chapter 3
// Material Balances Without Chemical Reaction
// Example 3.18
// Page 79
printf("Example 3.10, Page 79 \n \n");
// solution
// Overall balance
// F=R1+P2
// Balance across Module I
// F+R2 = R1+P1 ==> R1+P2+R2 = R1+P1
// balance across module II
// P1 = P2+R2
P2 = 5 //[m^3/h]
P1 = P2/.8 //[m^3/h]
R2 = P1-P2 //[m^3/h]
F = P1/.66 - R2//[m^3/h]
R1 = F-P2 //[m^3/h]
// Overall balance of DS in water
xR1 = (F*4200-P2*5)/R1 //[mg/l]
xP1 = (P2*5)/(.015*P1) // [mg/l]
xR2 = (P1*xP1-P2*5)/R2 //[mg/l]
m1 = F*4200+R2*xR2 //[g] DS mixeed in MF
C1 = m1/(F+R2) // [mg/l]
m2 = R1*xR1 //[g] DS in R1
r = m2*100/m1 // rejection in module in I
m3 = m1-m2 //[g] DS in P1
C2 = m3/P1 // [mg/l]
R = R2/F
R1 = P2*100/F
printf("F = "+string(F)+" m^3/h \nR1 = "+string(R1)+" m^3/h \nP = "+string(P1+P2)+" m^3/h \nR2 = "+string(R2)+" m^3/h \nrecycle ratio = "+string(R)+" \nrejection percentage of salt in module I = "+string(r)+"")
|
ca4381178334d29329f3f5443f10c601f69584be | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH13/EX13.42/Ex13_42.sce | abac4a5a324367321e4892e1f40e47df3e6d5f0f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 221 | sce | Ex13_42.sce | //EX13_42 Pg-23
clc
clear
x=['1010'];
y=['0011'];
//binary to decimal conversion//
x=bin2dec(x)
y=bin2dec(y)
z=x+y;
a=dec2bin(z)//decimal to binary conversion//
printf('the addition of given numbers is: ')
printf("%s",a)
|
961c92f8488839b15ff2dae609fbffbbe86df258 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1151/CH8/EX8.16/example16.sce | b0c3f5898143c461c7bd41fa33d0e45b01d2d8ac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 574 | sce | example16.sce | s=%s ;//convert to state space
TFcont=syslin ('c',2/(s^3+6*s^2+11*s+6))
SScont=tf2ss (TFcont)
[Ac ,Bc ,U, ind ]=canon( SScont( 2 ) , SScont( 3 ) )
disp(Ac,"A=")
disp(Bc,"B=")
C=[1 0 0]
p=cont_mat(Ac,Bc)
disp (p," controllability matrix=");
d=det(p)
if d==0
printf ("matrix is singular, so the system is uncontrollable");
else
printf ("system is controllable ");
end
g= obsv_mat (Ac,C);
disp (g," Observability Matrix=");
i= det(g)
if i ==0
printf ("matrix is singular, so the system is unobservable");
else
printf (" system is observable ");
end
|
f22977c6f9d8836f87ebbeb45881c06701a08a4a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH12/EX12.6/gpc_col.sci | 569718f08a14605ce8982f66db5f5e009b4666db | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 975 | sci | gpc_col.sci | // Calculates the GPC law given by Eq. 12.36 on page 446.
// 12.6
function [K,KH1,KH2,Tc,dTc,Sc,dSc,R1,dR1] = ...
gpc_col(A,dA,B,dB,C,dC,N,k,rho)
D=[1 -1]; dD = 0; AD=convol(A,D); dAD=dA+1; zj=1; dzj=0;
Nu = N+1; G=zeros(Nu,Nu); H1=zeros(Nu,2*k+N-2+dB);
H2 = zeros(Nu,k+N+dA);
for j = 1:Nu,
zj = convol(zj,[0,1]); dzj = dzj + 1;
[Fj,dFj,Ej,dEj] = ...
xdync(zj,dzj,AD,dAD,C,dC);
[Nj,dNj,Mj,dMj] = ...
xdync(zj,dzj,C,dC,1,0);
[Gj,dGj] = polmul(Mj,dMj,Ej,dEj);
[Gj,dGj] = polmul(Gj,dGj,B,dB);
[Pj,dPj] = polmul(Mj,dMj,Fj,dFj);
[Pj,dPj] = poladd(Nj,dNj,Pj,dPj);
j,Fj,Ej,Mj,Nj,Gj,Pj
G(j,1:j) = flip(Gj(1:j));
H1(j,1:dGj-j+1) = Gj(j+1:dGj+1);
H2(j,1:dPj+1) = Pj;
end
K = inv(G'*G+rho*eye(Nu,Nu))*G'
// Note: inverse need not be calculated
KH1 = K * H1; KH2 = K * H2;
R1 = [1 KH1(1,:)]; dR1 = length(R1)-1;
Sc = KH2(1,:); dSc = length(Sc)-1;
Tc = K(1,:); dTc = length(Tc)-1;
endfunction;
|
fcd1e881cf3e4534373f7d939a12aafb23d1fd89 | 449d555969bfd7befe906877abab098c6e63a0e8 | /620/CH20/EX20.12/example20_12.sce | cddb1bd45db28f2fb313c0426f6cf98313f4ca0b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 188 | sce | example20_12.sce | l=0.5;
f=60;
i=0.25;
p=5;
disp("Part a");
r=p/i^2;
disp("the ac resistance (in Ω) of the coil is"); disp(r);
disp("part b");
q=2*%pi*f*l/r;
disp("the Q of the coil is"); disp(q); |
e225663a4ad2e169e48f23daa8b61cb9b6837932 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1922/CH3/EX3.6/3_6.sce | 9493e93b32efe9cfd01bf02d414ab5769142544c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 999 | sce | 3_6.sce | clc
clear
//Initialization of variables
p=[2.75 0.5 0.31 0.31 2.75]
v=[116.17 654.8 654.8 597 110.65]
t=[440 440 170 140 410]
h=[3325 3356 2802.6 2738.5 3257.7]
e=[3005.6 3028.6 2602.6 2553.6 2953.4]
//calculations
dh1=h(2) - h(1)
de1=e(2) - e(1)
q2=e(3) - e(2)
dh2=h(3) - h(2)
dh3=h(4) - h(3)
de3=e(4) - e(3)
W3= p(3) *(v(4) - v(3))
Q3= de3+W3
dh4=h(5) -h(4)
de4=e(5) -e(4)
dh5=h(1) - h(5)
de5= e(1) - e(5)
W5= p(5) *(v(1) - v(5))
q5 = de5+W5
//results
printf("In case 1 , dH = %.1f kJ/kg dE = %.1f kJ/kg W= pDv kJ/kg Q= %.1f + W kJ/kg",dh1,de1,de1)
printf("\n In case 2, W =0 kJ/kg Q = dE = %d kJ/kg dH = %.1f kJ/kg",q2,dh2)
printf("\n In case 3, dH= %.1f kJ/kg dE = %.1f kJ/kg W= %.1f kJ/kg Q = %.1f kJ/kg",dh3,de3,W3,Q3)
printf("\n In case 4, Q= 0 kJ/kg dH = %.1f kJ/kg dE = -W = %.1f kJ/kg",dh4,de4)
printf("\n In case 5, dH = %.1f kJ/kg dE = %.1f kJ/kg W = %.1f kJ/kg Q = %.1f kJ/kg",dh5,de5,W5,q5)
xlabel("Volume (m^3/kg)")
ylabel("Pressure (Mpa)")
plot(v,p)
|
b532c357120094ef75b5b8fe8777a171b2879b6d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1748/CH2/EX2.41/Exa2_41.sce | a697091ca1196ed2191fb12aedea0cb9d46d7657 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 694 | sce | Exa2_41.sce | //Exa 2.41
clc;
clear;
close;
//Given data :
format('v',6);
VL=440;//in volt
f=50;//in Hz
P=6;//no. of poles
phase=3;//no. of phase
Ns=120*f/P;//in rpm
fr=120;//alternations per minute
fr=fr/60;//in Hz
S=fr/f;//slip
disp(S,"Slip : ");
Nr=Ns-S*Ns;//in rpm
disp(Nr,"Rotor speed(in rpm) :");
Rotor_input=80;//in KW
RotorCuLoss=S*Rotor_input;//in KW
disp(RotorCuLoss*10^3/phase,"Rotor Cu Loss per phase(in watts) :");
P_Mechdev=Rotor_input*10^3-RotorCuLoss*10^3;//in watts
P_Mechdev=P_Mechdev/735.5;//in H.P.
disp(P_Mechdev,"Mechanical power devloped(in H.P.) :");
Ir=60;//in Ampere
R2=(RotorCuLoss*10^3/phase)/Ir^2;//in ohm
disp(R2,"Rotor resistance per phase(in ohm) :"); |
bfd523120669491ba59d3b47e32c7311bbc85166 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2276/CH6/EX6.7/chapter6_ex7.sce | be8619b8c03922eba4e7976e51b29f59f7f013fc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,119 | sce | chapter6_ex7.sce | clc
clear
//input
z1=10+(%i*15);//first impedance in ohms
z2=15-(%i*25);//second impeddance in ohms
//impedances 1 and 2 are connected in parallel
//calculations
Z1=(((real(z1)^2)+(imag(z1)^2)))^0.5;//magnitude of impedance 1 in ohms
Z2=(((real(z2)^2)+(imag(z2)^2)))^0.5;//magnitude of impedance 2 in ohms
phi1=(180/%pi)*atan((imag(z1))/real(z1));//phase angle 1 in degrees
phi2=(180/%pi)*atan((imag(z2))/real(z2));//phase angle 1 in degrees
Z=z1+z2;//total impedance in ohms
Zt=(((real(Z)^2)+(imag(Z)^2)))^0.5;//magnitude of total impedance in ohms
PHIt=(180/%pi)*atan((imag(Z))/real(Z));//total phase angle in degrees
ZT=(Z1*Z2)/Zt;//magnitude of equivalent impedance in ohms
PHIT=phi1+phi2-PHIt;//phase angle of equivalent impedance in degrees
p=(PHIT*%pi)/180;// phase angle in radians
Zs=(ZT*cos(p))+(%i*(ZT*sin(p)));//series impedance in ohms
R=real(Zs);//resistance of equivalent series circuit in ohms
X=imag(Zs);//reactance of equivalent series circuit in ohms
//output
mprintf('the resistance and inductive reactance of equivalent series circuit are %3.1f ohm and %3.2f ohm',R,X)
|
9cd2eae7b00418fc16e906bd513cd415b23a324f | ac66d3377862c825111275d71485e42fdec9c1bd | /Resources/res/map/map1109.sce | 68c25fd46a5c494ab0c5fa379a419a2c04129623 | [] | no_license | AIRIA/CreazyBomber | 2338d2ad46218180f822682d680ece3a8e0b46c3 | 68668fb95a9865ef1306e5b0d24fd959531eb7ad | refs/heads/master | 2021-01-10T19:58:49.272075 | 2014-07-15T09:55:00 | 2014-07-15T09:55:00 | 19,776,025 | 0 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 1,665 | sce | map1109.sce | <?xml version="1.0" encoding="UTF-8"?>
<Project Name="map1109" Width="13" Height="9" CellSize="40" BackgroundSize="1" Background="9plus.png">
<Cell Name="丛林图腾2" X="4" Y="1" />
<Cell Name="樱桃树" X="8" Y="1" />
<Cell Name="蘑菇" X="10" Y="1" />
<Cell Name="蘑菇" X="11" Y="1" />
<Cell Name="樱桃树" X="1" Y="2" />
<Cell Name="出生点" X="2" Y="2" />
<Cell Name="蘑菇" X="3" Y="2" />
<Cell Name="丛林图腾2" X="4" Y="2" />
<Cell Name="樱桃树" X="9" Y="2" />
<Cell Name="丛林图腾2" X="10" Y="2" />
<Cell Name="樱桃树" X="2" Y="3" />
<Cell Name="丛林图腾2" X="3" Y="3" />
<Cell Name="丛林图腾2" X="4" Y="3" />
<Cell Name="樱桃树" X="5" Y="3" />
<Cell Name="樱桃树" X="8" Y="3" />
<Cell Name="蜘蛛怪" X="6" Y="4" arg0="3" />
<Cell Name="池塘-左上" X="7" Y="4" />
<Cell Name="池塘-右上" X="8" Y="4" />
<Cell Name="木桩" X="1" Y="5" />
<Cell Name="木偶" X="3" Y="5" arg0="22" />
<Cell Name="丛林图腾2" X="5" Y="5" />
<Cell Name="池塘-左上" X="6" Y="5" />
<Cell Name="池塘-内角左上" X="7" Y="5" />
<Cell Name="池塘-右" X="8" Y="5" />
<Cell Name="通关点-1" X="9" Y="5" />
<Cell Name="猪怪" X="10" Y="5" arg0="5" />
<Cell Name="木桩" X="2" Y="6" />
<Cell Name="樱桃树" X="5" Y="6" />
<Cell Name="池塘-左下" X="6" Y="6" />
<Cell Name="池塘-下" X="7" Y="6" />
<Cell Name="池塘-右下" X="8" Y="6" />
<Cell Name="木桩" X="2" Y="7" />
<Cell Name="樱桃树" X="3" Y="7" />
<Cell Name="木桩" X="6" Y="7" />
<Cell Name="木偶" X="7" Y="7" arg0="22" />
<Cell Name="樱桃树" X="11" Y="7" />
</Project> |
d78fa6967dc1185cf9f7a31db8063306ba1b871f | 449d555969bfd7befe906877abab098c6e63a0e8 | /213/CH13/EX13.19/13_19.sce | 9bf0a278150dec2074f2716b8ef0243120c736e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 828 | sce | 13_19.sce | //To find torque exerted
clc
//Given:
TA=15, TB=20, TC=15
NA=1000 //rpm
Tm=100 //Torque developed by motor, N-m
//Solution:
//Refer Fig. 13.26 and Table 13.21
//Calculating the number of teeth on gears E and D
TE=TA+2*TB
TD=TE-(TB-TC)
//Speed of the machine shaft:
//From the fourth row of the table, x+y = 1000, or y+x = 1000 .....(i)
//Also, y-x*(TA/TE) = 0 .....(ii)
A=[1 1; 1 -TA/TE]
B=[1000; 0]
V=A \ B
y=V(1)
x=V(2)
//Calculating the speed of machine shaft
ND=y-x*(TA/TB)*(TC/TD) //rpm
//Calculating the torque exerted on the machine shaft
Ts=Tm*NA/ND //Torque exerted on the machine shaft, N-m
//Results:
printf("\n\n Speed of machine shaft, ND = %.2f rpm, anticlockwise.\n\n",ND)
printf(" Torque exerted on the machine shaft = %d N-m.\n\n",Ts) |
25a6f93094cfab50cd866a70c85dd7fca8c44075 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1709/CH5/EX5.2/5_2.sce | ae9a735d0248dcd2a9a038c5abf7c734f6ae60e5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 173 | sce | 5_2.sce | clc
//Initialization of variables
N=6
g=4
//calculations
sig=factorial(g+N-1) /(factorial(g-1) *factorial(N))
//results
printf("No. of ways of arranging = %d ",sig)
|
a106ab2b19ab6bffad48460862c0c3c5e4f868e3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /405/CH2/EX2.10/2_10.sce | 0a343866040d189d6aed76aed2ae3a7250af661f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,816 | sce | 2_10.sce | clear;
clc;
printf("\t\t\tExample Number 2.10\n\n\n");
// rod with heat sources
// illustration2.10
// solution
// q_dot is uniform heat source per unit volume
// h is convection coefficient
// k is heat transfer coefficient
// A is area of crossection
// P is perimeter
// Tinf is environment temperature
// we first make an energy balance on the element of the rod shown in figure(2-10)
// energy in left place + heat generated in element = energy out right face + energy lost by convection
// or
// -(k*A*dT_by_dx)+(q_dot*A*dx) = -(k*A(dT_by_dx+(d2T_by_dx2)*dx))+h*P*dx*(T-Tinf)
// simlifying we have
// d2T_by_dx2-((h*P)/(k*A))*(T-Tinf)+q_dot/k = 0
// replacing theta = (T-Tinf) and (square meter) = ((h*P)/(k*A))
// d2theta_by_dx2-(square meter)*theta+q_dot/k = 0
// we can make a further substitution as theta` = theta-(q_dot/(k*(square meter)))
// so that our differential equation becomes
// d2theta`_by_dx2-(square meter)*theta`
// which has the general solution theta` = C1*exp^(-m*x)+C2*exp^(m*x)
// the two end temperatures are used to establish the boundary conditions:
// theta` = theta1` = T1-Tinf-q_dot/(k*(square meter)) = C1+C2
// theta` = theta2` = T2-Tinf-q_dot/(k*(square meter)) = C1*exp^(-m*L)+C2*exp^(m*L)
// solving for the constants C1 and C2 gives
// (((theta1`*exp^(2*m*L)-theta2`*exp^(m*L))*exp^(-m*x))+((theta2`exp^(m*L)-theta1`)exp^(m*x))/(exp^(2*m*L)-1))
printf("the expression for the temperature distribution in the rod is ");
printf("\n theta` = (((theta1`*exp^(2*m*L)-theta2`*exp^(m*L))*exp^(-m*x))+((theta2`exp^(m*L)-theta1`)exp^(m*x))/(exp^(2*m*L)-1))");
printf("\n for an infinitely long heat generating fin with the left end maintained at T1, the temperature distribution becomes ");
printf("\n theta`/theta1 = exp^(-m*x)");
|
5f487eaab63c0f004a0772c0cb1e8bee86a49977 | 734830c483d7180158343b9b5599994878b8b197 | /make-tests/autograder_make07.tst | 6cfc031ee052837ab5dd6659f34931689fdabeda | [] | no_license | aykamko/proj61b | b53a3b569f82522144e010505859aa3ab66585bb | 5f6688b70f907107512267712a325f907e5e627b | refs/heads/master | 2021-01-16T22:08:56.235971 | 2013-12-12T09:19:39 | 2013-12-12T09:19:39 | 13,669,280 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 89 | tst | autograder_make07.tst | java -ea make.Main -f make-tests/autograder_make07.mk -D make-tests/autograder_file07 T1
|
f9d3a7534c54242f52dac0773911eea4093e1115 | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH8/EX8.5.b/8_5_soln.sce | 99712f7a25bf1e2983f7e123e0d9e12953761841 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 505 | sce | 8_5_soln.sce | clc;
pathname=get_absolute_file_path('8_5_soln.sce')
filename=pathname+filesep()+'8_5_data.sci'
exec(filename)
// Solution:
// capacity coefficient in English Units,
Cv=Q/sqrt(del_p/SG_oil); //gpm/sqrt(psi)
// capacity coefficient in Metric Units,
Cv1=Q1/sqrt(del_p1/SG_oil); //Lpm/sqrt(kPA)
// Results:
printf("\n Results: ")
printf("\n The capacity coefficient in English unit is %.2f gpm/sqrt(psi).",Cv)
printf("\n The capacity coefficient in Metric unit is %.2f Lpm/sqrt(kPa).",Cv1)
|
25eae9a2c22d7f59ecdc64c29c102262c083fabb | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH21/EX21.3/Example21_3.sce | 450fb883d553abb8a7ccad3c4963a113611f3040 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 801 | sce | Example21_3.sce | //Given that
TH = 850 //in K
TL = 300 //in K
W = 1200 //in J
t = 0.25 //in sec
//Sample Problem 21-3a
printf("**Sample Problem 21-3a**\n")
eta = 1 - (TL/TH)
printf("The efficiency of the cycle is equal to %f\n", eta)
//Sample Problem 21-3b
printf("\n**Sample Problem 21-3b**\n")
P = W/t
printf("The average power of the cycle is %fW\n", P)
//Sample Problem 21-3c
printf("\n**Sample Problem 21-3c**\n")
QH = W/eta
printf("The heat extracted from the reservoir is equal to %fJ\n", QH)
//Sample Problem 21-3d
printf("\n**Sample Problem 21-3d**\n")
QL = W - QH
printf("The heat delivered to the reservoir is equal to %fJ\n", QL)
//Sample Problem 21-3e
printf("\n**Sample Problem 21-3e**\n")
S = QH/TH + QL/TL
printf("The net entropy change for the cycle is %fJ/k", S) |
3341b56a458e401da5352454074895d625118f15 | af8ca26065263a1cf95761f3e74596deb544072a | /xyrc.tst | fc5d98ddb70190c5bbfc9e336db8f9e36fe5c377 | [] | no_license | drrcool/shwfs | c4d6299c8e639277462838cda9e0883385145f13 | 4101ae0d5ff8562e7d07f3037729e63f186d95a6 | refs/heads/master | 2022-04-27T02:12:47.425256 | 2016-01-22T09:48:55 | 2016-01-22T09:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 14,495 | tst | xyrc.tst | 242.3130035 76.1999969 1.0000000 1.0000000
264.9580078 76.0680008 2.0000000 1.0000000
287.5230103 76.0380020 3.0000000 1.0000000
287.7950134 99.3089981 3.0000000 2.0000000
310.4750061 99.1230011 4.0000000 2.0000000
333.2120056 98.8679962 5.0000000 2.0000000
173.9869995 99.1240005 6.0000000 2.0000000
196.8679962 99.4100037 7.0000000 2.0000000
219.6600037 99.4430008 8.0000000 2.0000000
242.4669952 99.5299988 1.0000000 2.0000000
265.0889893 99.4869995 2.0000000 2.0000000
356.0000000 99.0000000 9.0000000 2.0000000
265.2059937 122.5479965 2.0000000 3.0000000
287.8399963 122.4100037 3.0000000 3.0000000
310.4400024 122.2460022 4.0000000 3.0000000
333.1210022 121.9889984 5.0000000 3.0000000
355.7940063 121.6719971 9.0000000 3.0000000
378.5390015 121.4160004 10.0000000 3.0000000
151.4459991 122.1890030 11.0000000 3.0000000
174.4570007 122.4349976 6.0000000 3.0000000
197.3540039 122.5770035 7.0000000 3.0000000
219.9570007 122.6139984 8.0000000 3.0000000
242.6410065 122.6510010 1.0000000 3.0000000
128.6929932 144.8509979 12.0000000 4.0000000
151.9140015 145.2109985 11.0000000 4.0000000
174.8170013 145.2440033 6.0000000 4.0000000
197.6580048 145.4270020 7.0000000 4.0000000
220.2169952 145.5659943 8.0000000 4.0000000
242.8179932 145.5229950 1.0000000 4.0000000
265.3259888 145.4739990 2.0000000 4.0000000
287.8599854 145.2810059 3.0000000 4.0000000
310.4110107 145.2160034 4.0000000 4.0000000
333.0169983 145.0090027 5.0000000 4.0000000
355.6539917 144.7530060 9.0000000 4.0000000
378.4549866 144.3950043 10.0000000 4.0000000
401.2139893 144.0119934 13.0000000 4.0000000
378.2399902 167.2079926 10.0000000 5.0000000
401.2019958 166.8899994 13.0000000 5.0000000
129.2420044 167.9170074 12.0000000 5.0000000
152.2660065 167.9850006 11.0000000 5.0000000
175.0570068 168.0599976 6.0000000 5.0000000
197.7830048 168.1430054 7.0000000 5.0000000
220.4320068 168.1719971 8.0000000 5.0000000
242.9629974 168.1759949 1.0000000 5.0000000
265.4930115 168.0249939 2.0000000 5.0000000
288.0039978 168.0110016 3.0000000 5.0000000
310.4460144 167.8800049 4.0000000 5.0000000
333.0440063 167.7539978 5.0000000 5.0000000
355.5859985 167.5220032 9.0000000 5.0000000
424.1969910 166.5639954 14.0000000 5.0000000
106.0449982 167.7949982 15.0000000 5.0000000
197.8999939 190.8179932 7.0000000 6.0000000
220.6179962 190.7319946 8.0000000 6.0000000
243.1849976 190.6329956 1.0000000 6.0000000
265.6189880 190.6040039 2.0000000 6.0000000
287.9700012 190.4830017 3.0000000 6.0000000
310.5409851 190.4459991 4.0000000 6.0000000
333.0580139 190.3020020 5.0000000 6.0000000
355.5629883 190.1170044 9.0000000 6.0000000
378.2390137 189.8970032 10.0000000 6.0000000
400.9869995 189.5890045 13.0000000 6.0000000
424.0310059 189.3300018 14.0000000 6.0000000
106.4029999 190.5780029 15.0000000 6.0000000
129.5489960 190.7299957 12.0000000 6.0000000
152.5989990 190.8079987 11.0000000 6.0000000
175.3269958 190.9299927 6.0000000 6.0000000
243.2279968 213.2779999 1.0000000 7.0000000
265.6359863 213.1000061 2.0000000 7.0000000
288.1990051 213.0039978 3.0000000 7.0000000
333.0260010 212.7769928 5.0000000 7.0000000
355.5710144 212.5639954 9.0000000 7.0000000
378.1919861 212.4199982 10.0000000 7.0000000
400.9339905 212.2469940 13.0000000 7.0000000
423.8840027 211.9170074 14.0000000 7.0000000
152.8040009 213.5010071 11.0000000 7.0000000
175.5240021 213.5039978 6.0000000 7.0000000
198.1130066 213.4129944 7.0000000 7.0000000
220.7250061 213.3170013 8.0000000 7.0000000
310.6059875 212.9329987 4.0000000 7.0000000
83.2269974 213.2409973 16.0000000 7.0000000
106.6569977 213.3529968 15.0000000 7.0000000
129.8650055 213.4149933 12.0000000 7.0000000
175.6540070 235.8209991 6.0000000 8.0000000
198.4149933 235.8309937 7.0000000 8.0000000
220.8399963 235.7510071 8.0000000 8.0000000
243.3040009 235.6419983 1.0000000 8.0000000
265.7510071 235.5339966 2.0000000 8.0000000
288.2929993 235.5030060 3.0000000 8.0000000
310.7330017 235.4490051 4.0000000 8.0000000
333.1419983 235.2649994 5.0000000 8.0000000
355.6380005 235.1529999 9.0000000 8.0000000
378.1440125 234.9570007 10.0000000 8.0000000
400.9590149 234.7929993 13.0000000 8.0000000
423.8609924 234.5760040 14.0000000 8.0000000
106.8919983 235.9850006 15.0000000 8.0000000
130.0700073 236.0370026 12.0000000 8.0000000
153.0070038 236.0209961 11.0000000 8.0000000
447.0079956 234.4779968 17.0000000 8.0000000
83.4270020 236.0650024 16.0000000 8.0000000
243.4909973 258.0899963 1.0000000 9.0000000
265.7869873 258.0559998 2.0000000 9.0000000
288.4159851 257.8689880 3.0000000 9.0000000
310.7430115 257.7300110 4.0000000 9.0000000
333.2489929 257.6749878 5.0000000 9.0000000
355.6119995 257.5190125 9.0000000 9.0000000
378.2619934 257.4110107 10.0000000 9.0000000
400.9719849 257.2760010 13.0000000 9.0000000
423.8519897 257.1409912 14.0000000 9.0000000
153.1730042 258.5740051 11.0000000 9.0000000
175.8249969 258.4060059 6.0000000 9.0000000
198.4160004 258.4020081 7.0000000 9.0000000
220.8750000 258.4140015 8.0000000 9.0000000
447.1000061 257.0880127 17.0000000 9.0000000
83.6279984 258.7699890 16.0000000 9.0000000
107.0439987 258.6419983 15.0000000 9.0000000
130.2079926 258.6430054 12.0000000 9.0000000
288.4119873 280.2709961 3.0000000 10.0000000
175.9499969 280.8479919 6.0000000 10.0000000
198.5160065 280.7630005 7.0000000 10.0000000
221.0800018 280.6310120 8.0000000 10.0000000
243.5090027 280.5390015 1.0000000 10.0000000
266.0280151 280.4190063 2.0000000 10.0000000
310.8789978 280.2479858 4.0000000 10.0000000
333.2820129 280.0989990 5.0000000 10.0000000
355.8640137 279.9880066 9.0000000 10.0000000
378.2820129 279.8789978 10.0000000 10.0000000
401.0740051 279.7690125 13.0000000 10.0000000
424.0000000 279.6510010 14.0000000 10.0000000
130.2539978 281.2239990 12.0000000 10.0000000
153.1770020 281.0950012 11.0000000 10.0000000
447.3160095 279.7780151 17.0000000 10.0000000
83.6210022 281.5570068 16.0000000 10.0000000
107.1900024 281.3850098 15.0000000 10.0000000
243.6029968 302.8750000 1.0000000 11.0000000
266.1090088 302.9379883 2.0000000 11.0000000
288.6029968 302.6870117 3.0000000 11.0000000
310.9750061 302.5580139 4.0000000 11.0000000
333.3829956 302.4890137 5.0000000 11.0000000
355.8609924 302.3210144 9.0000000 11.0000000
378.5060120 302.3219910 10.0000000 11.0000000
153.2369995 303.4760132 11.0000000 11.0000000
176.0000000 303.3389893 6.0000000 11.0000000
198.6040039 303.3349915 7.0000000 11.0000000
221.1730042 303.1929932 8.0000000 11.0000000
401.1950073 302.3250122 13.0000000 11.0000000
424.2560120 302.3309937 14.0000000 11.0000000
107.2500000 303.9949951 15.0000000 11.0000000
130.3919983 303.7390137 12.0000000 11.0000000
447.4530029 302.0000000 17.0000000 11.0000000
83.8209991 304.2319946 16.0000000 11.0000000
198.7030029 325.6640015 7.0000000 12.0000000
221.1829987 325.3880005 8.0000000 12.0000000
243.6770020 325.3640137 1.0000000 12.0000000
266.1210022 325.2550049 2.0000000 12.0000000
288.6520081 325.1979980 3.0000000 12.0000000
311.0369873 325.0329895 4.0000000 12.0000000
333.5280151 324.8819885 5.0000000 12.0000000
356.0220032 324.8949890 9.0000000 12.0000000
378.6019897 324.8439941 10.0000000 12.0000000
401.4460144 324.8659973 13.0000000 12.0000000
153.2359924 326.0960083 11.0000000 12.0000000
176.0339966 325.9360046 6.0000000 12.0000000
424.5180054 325.0260010 14.0000000 12.0000000
107.0810013 326.7569885 15.0000000 12.0000000
130.3059998 326.4360046 12.0000000 12.0000000
84.0000000 327.0000000 16.0000000 12.0000000
266.1950073 347.7040100 2.0000000 13.0000000
288.7550049 347.5400085 3.0000000 13.0000000
311.1619873 347.4410095 4.0000000 13.0000000
198.7409973 348.2179871 7.0000000 13.0000000
221.1840057 348.0859985 8.0000000 13.0000000
243.8329926 347.9379883 1.0000000 13.0000000
333.6279907 347.4630127 5.0000000 13.0000000
356.2059937 347.4049988 9.0000000 13.0000000
378.7929993 347.4590149 10.0000000 13.0000000
401.7300110 347.6040039 13.0000000 13.0000000
130.3139954 349.1010132 12.0000000 13.0000000
153.1450043 348.7980042 11.0000000 13.0000000
175.9969940 348.5530090 6.0000000 13.0000000
425.0050049 347.8680115 14.0000000 13.0000000
106.8150024 349.5400085 15.0000000 13.0000000
243.8500061 370.3880005 1.0000000 14.0000000
266.3030090 370.3150024 2.0000000 14.0000000
288.8110046 370.1709900 3.0000000 14.0000000
311.2950134 370.0719910 4.0000000 14.0000000
333.7439880 370.0910034 5.0000000 14.0000000
356.4240112 370.0830078 9.0000000 14.0000000
175.9720001 371.2609863 6.0000000 14.0000000
198.6640015 370.9119873 7.0000000 14.0000000
221.2279968 370.7229919 8.0000000 14.0000000
379.2260132 370.2470093 10.0000000 14.0000000
402.1640015 370.3930054 13.0000000 14.0000000
129.9320068 372.0180054 12.0000000 14.0000000
153.0359955 371.5509949 11.0000000 14.0000000
107.0000000 372.0000000 15.0000000 14.0000000
221.1759949 393.3729858 8.0000000 15.0000000
243.8659973 393.1770020 1.0000000 15.0000000
266.4230042 393.0270081 2.0000000 15.0000000
288.8750000 392.9739990 3.0000000 15.0000000
311.4540100 392.8320007 4.0000000 15.0000000
334.0169983 392.8200073 5.0000000 15.0000000
356.7520142 392.9479980 9.0000000 15.0000000
175.7779999 394.0499878 6.0000000 15.0000000
198.5950012 393.6830139 7.0000000 15.0000000
379.5969849 393.3089905 10.0000000 15.0000000
152.7590027 394.5570068 11.0000000 15.0000000
129.9559937 394.7390137 12.0000000 15.0000000
243.8300018 416.2489929 1.0000000 16.0000000
266.4689941 415.9899902 2.0000000 16.0000000
289.1279907 415.8850098 3.0000000 16.0000000
311.6659851 415.8940125 4.0000000 16.0000000
334.3800049 416.0230103 5.0000000 16.0000000
198.4859924 416.7640076 7.0000000 16.0000000
221.2519989 416.4849854 8.0000000 16.0000000
357.3169861 416.2850037 9.0000000 16.0000000
175.5690002 417.3330078 6.0000000 16.0000000
153.0000000 417.4660034 11.0000000 16.0000000
221.1080017 439.8399963 8.0000000 17.0000000
243.8520050 439.6099854 1.0000000 17.0000000
266.4909973 439.4309998 2.0000000 17.0000000
289.2380066 439.3269958 3.0000000 17.0000000
312.0429993 439.3500061 4.0000000 17.0000000
198.4589996 439.5910034 7.0000000 17.0000000
|
1729a9e55016465c302acfa847243155b8deeb3f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3863/CH2/EX2.1/Ex2_1.sce | 5042378b50ab4746deca55f9c326fd5fd604b85d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 793 | sce | Ex2_1.sce | clear
//
//
//Given
//Variable declaration
L=4*(10**3) //Length of the bar in mm
b=30 //Breadth of the bar in mm
t=20 //Thickness of the bar in mm
P=30*(10**3) //Axial pull in N
E=2e5 //Youngs modulus in N/sq.mm
mu=0.3 //Poisson's ratio
//Calculation
A=b*t //Area of cross-section in sq.mm
long_strain=P/(A*E) //Longitudinal strain
delL=long_strain*L //Change in length in mm
lat_strain=mu*long_strain //Lateral strain
delb=b*lat_strain //Change in breadth in mm
delt=t*lat_strain //Change in thickness in mm
//Result
printf("\n change in length = %0.3f mm",delL)
printf("\n change in breadth = %0.3f mm",delb)
printf("\n change in thickness = %0.3f mm",delt)
|
1f6b1c9a76dc3512f77b3f5e4c47894d140bae43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH11/EX11.21/11Ex21.sce | 7c1b47236fd10443ba33522daf00749576465c7f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 139 | sce | 11Ex21.sce | //Ex 21
clc;
clear;
close;
commonLossGain=16;
lossPercent=(commonLossGain/10)^2;
printf("The loss is %3.2f percent",lossPercent);
|
b88a3c69398bf819150b03448b4c442151ab4ead | 449d555969bfd7befe906877abab098c6e63a0e8 | /2507/CH5/EX5.8/Ex5_8.sce | dd8510634b1bfe23fb23070ff2c20d05aa3a8db3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 632 | sce | Ex5_8.sce | clc
clear
printf("Example 5.8 | Page number 129 \n\n");
//Redo example 5.7 for heat loss 10% of heat transferred
mh = 9.45 // kg/s // flow rate of steam
h_h2 = 140 // kJ/kg // enthalpy of condensate
h_h1 = 2570 // kJ/kg // inlet enthalpy of steam
t1 = 25 // °C //inlet temperature of cooling water
t2 = 36 // °C //exit temperature of cooling water
c = 4.189 // kJ/kg deg // specific heat of water
fractionalheatloss = 0.1 // fractional heat loss
//Solution
mc = -1*((1-fractionalheatloss)*mh*(h_h2-h_h1))/(c*(t2-t1)) // kg/s //mass flow rate of cooling water
printf("Mass flow rate of cooling water = %.1f kg/s",mc)
|
f634b5a4eb29d809e9276a771b21d7a30f18df42 | f6134e0a162a059c42ec3ef8de2a63941d73936c | /Scilab_code/RLG/Geometry/intersectMultIntervals.sci | 871f2a8a0868dc05fc217272b752f68356ab5fc4 | [] | no_license | mxch18/SRL-WRT_pathPlanning | 38a1701934a4a0e919a6c1c7990092b242df72da | 6992febbbe103814d2cef5351a0e8917b183a2b0 | refs/heads/master | 2020-03-23T06:43:54.155192 | 2018-09-26T17:26:56 | 2018-09-26T17:26:56 | 141,226,032 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 844 | sci | intersectMultIntervals.sci | function [bool,intersection] = intersectMultIntervals(intv1,intv2)
//Author : Maxens ACHIEPI
//Space Robotics Laboratory - Tohoku University
//Description:
//
//INPUT
//intv1: matrix of intervals
//intv2: matrix of intervals
//OUTPUT
//intersect: matrix of intervals
//----------------------------------------------------------------------------//
l1 = size(intv1,1);
l2 = size(intv2,1);
intersection = [];
bool = %F;
k = 1;
for i=1:l1
for j=1:l2
[dump,temp] = intersectTwoIntervals(intv1(i,:),intv2(j,:));
if dump then
bool = %T;
intersection(k,:) = temp';
k = k+1;
end
end
if dump then
k = k+1;
end
end
endfunction
|
1a21e61094e69d46e3dd54e2a411ebe85ee9468f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH10/EX10.3/imcsplit.sci | 59e6ef95f9e33d0941111fb8189e9c6c9e9598a0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 719 | sci | imcsplit.sci | // Splitting a polynomial B(z)
// 10.3
// Splits a polynomial B into good, nonminimum with
// positive real & with negative real parts.
// All are returned in polynomial form.
// Gain is returned in Kp and delay in k.
function [Kp,k,Bg,Bnmp,Bm] = imcsplit(B,polynomial)
k = 0;
Kp = 1;
if(polynomial)
rts = roots(B);
Kp = sum(B)/sum(coeff(poly(rts,'z')));
else
rts = B;
end
Bg = 1; Bnmp = 1; Bm = 1;
for i = 1:length(rts),
rt = rts(i);
if rt == 0,
k = k+1;
elseif (abs(rt)<1 & real(rt)>=0)
Bg = convol(Bg,[1 -rt]);
elseif (abs(rt)>=1 & real(rt)>=0)
Bnmp = convol(Bnmp,[1 -rt]);
else
Bm = convol(Bm,[1 -rt]);
end
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.