blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50
values | src_encoding stringclasses 23
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 5 10.4M | extension stringclasses 29
values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75245c92e8396421d6ad1372f3b980b50a503585 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1472/CH8/EX8.6/8_6.sce | f00e8e79875d371801b3097af06ad60f26b11b21 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 196 | sce | 8_6.sce | clc
//initialization of varaibles
T0=540 //R
Q=826 //B/lb
ds=0.534
ds2=0.431
//calculations
tds=T0*ds
tds2=T0*ds2
H=Q-tds2
Loss=tds/H
//results
printf("Loss = %d percent",Loss*100+1)
|
19b086535851cd8c9ee05bca0ec531e76e76ef41 | eec0cb8a9a3987d4e28fc22c89750a158a00ea84 | /Assignment8_team8/ComputerWhile.tst | 60c7e53641a00cc811c6e93f2463710a52d49c7a | [] | no_license | Archaic-Mage/CS2310_LAB_Assignments | 8ac90e0123de95f5cf8db709cd7761962bf8cef2 | e922b59fc1350db3f23b07b8f5986ac54f197c8d | refs/heads/main | 2023-08-29T23:42:07.913682 | 2021-11-16T14:00:05 | 2021-11-16T14:00:05 | 401,640,543 | 1 | 1 | null | 2021-10-01T05:55:36 | 2021-08-31T09:10:15 | Scilab | UTF-8 | Scilab | false | false | 3,541 | tst | ComputerWhile.tst | load Computer.hdl,
output-file ComputerWhile.out,
compare-to ComputerWhile.cmp,
output-list time%S1.4.1 ARegister[0]%D1.7.1 DRegister[0]%D1.7.1 PC[]%D0.4.0 RAM16K[16]%D1.7.1 RAM16K[17]%D1.7.1 RAM16K[18]%D1.7.1;
// Load a program written in the Hack machine language.
ROM32K load while.hack,
output;
// First run (at the beginning PC=0)
repeat 22 {
tick, tock;
}
output;
repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;repeat 22 {
tick, tock;
}
output;
|
ab9a89d947b4052a27d5f8b5c174da2c0f2b7aac | 6b7e9274b9748e4dffc5ede7f068decafb31ee39 | /Common-Core/Basic-numerical-methods/code/src/diff/test-2D.sce | d4b3ec01b6bd81d54fae590df821a56db40c2a64 | [] | no_license | nadir-aitlahmouch/Grenoble-inp-Ensimag | 9ae70296c7ddac221dff9cfeb5b02bb2fc673a4a | ea1ea530ea05420e9caf16db6b3d3e4c306248df | refs/heads/main | 2023-03-12T00:08:33.719439 | 2021-03-04T00:53:39 | 2021-03-04T00:53:39 | 343,920,590 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | sce | test-2D.sce |
Nx=100;
Ny=100;
nu=0.01;
Lx=1;
Ly=1;
Tf=0.5;
kappa=nu
function u=conv(y,x)
alpha=1;
beta=1;
u=beta*[cos(alpha)*x-sin(alpha)*y,sin(alpha)*x+cos(alpha)*y];
endfunction
function z=phi_0(y,x)
p_0=[0.5 0.3];
r_0=0.2;
if (x-p_0(1))**2+(y-p_0(2))**2>r_0**2 then
z=0;
else
z=1-((x-p_0(1))**2+(y-p_0(2))**2)/r_0**2;
end
endfunction
exec("dif-conv-2D.sce")
//clf()
//fig = gcf()
//gcf().color_map = jetcolormap(64)
//colorbar(min(Z),max(Z))
//plot3d1(X,Y,Z)
|
434861edca26ac881185920b4e75e369320da5d8 | 0ae5ae9c08787d2f7c6b2c038618e152e157f553 | /Scripts/Test/MAIN_CALC2.tst | 84caec082f2cd4064599c038f4761ada5b0288ad | [] | no_license | piltatnik/CustomReports | ba8507d929adb23d8f3820d70f095f15802401fc | 2019cdc49bdf56b7beb46df9db3d76df142a1827 | refs/heads/master | 2021-09-13T14:48:10.824111 | 2018-05-01T11:45:23 | 2018-05-01T11:45:23 | 107,878,933 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Scilab | false | false | 12,094 | tst | MAIN_CALC2.tst | PL/SQL Developer Test script 3.0
268
BEGIN
FOR rec IN (WITH head AS
(SELECT 'A' AS transport,
'SCHOOL' AS payment_type,
'BASE' AS category,
6 AS row_num
FROM dual
UNION ALL
SELECT 'A' AS transport,
'SCHOOL' AS payment_type,
'HALF_COST' AS category,
7 AS row_num
FROM dual
UNION ALL
SELECT 'A' AS transport,
'STUDENT' AS payment_type,
'BASE' AS category,
14 AS row_num
FROM dual
UNION ALL
SELECT 'A' AS transport,
'STUDENT' AS payment_type,
'HALF_COST' AS category,
15 AS row_num
FROM dual
UNION ALL
SELECT 'A' AS transport,
'CITY_MIFARE' AS payment_type,
'BASE' AS category,
27 AS row_num
FROM dual
UNION ALL
SELECT 'A' AS transport,
'CITY_MIFARE' AS payment_type,
'HALF_MONTH' AS category,
28 AS row_num
FROM dual
UNION ALL
SELECT 'A' AS transport,
'CITY_MIFARE' AS payment_type,
'ORGANISATION' AS category,
29 AS row_num
FROM dual
UNION ALL
SELECT 'A' AS transport,
'CASH' AS payment_type,
'NONE' AS category,
35 AS row_num
FROM dual
UNION ALL
SELECT 'A' AS transport,
'VISA' AS payment_type,
'NONE' AS category,
36 AS row_num
FROM dual
UNION ALL
SELECT 'T' AS transport,
'SCHOOL' AS payment_type,
'BASE' AS category,
6 AS row_num
FROM dual
UNION ALL
SELECT 'T' AS transport,
'SCHOOL' AS payment_type,
'HALF_COST' AS category,
7 AS row_num
FROM dual
UNION ALL
SELECT 'T' AS transport,
'STUDENT' AS payment_type,
'BASE' AS category,
14 AS row_num
FROM dual
UNION ALL
SELECT 'T' AS transport,
'STUDENT' AS payment_type,
'HALF_COST' AS category,
15 AS row_num
FROM dual
UNION ALL
SELECT 'T' AS transport,
'CITY_MIFARE' AS payment_type,
'BASE' AS category,
27 AS row_num
FROM dual
UNION ALL
SELECT 'T' AS transport,
'CITY_MIFARE' AS payment_type,
'HALF_MONTH' AS category,
28 AS row_num
FROM dual
UNION ALL
SELECT 'T' AS transport,
'CITY_MIFARE' AS payment_type,
'ORGANISATION' AS category,
29 AS row_num
FROM dual
UNION ALL
SELECT 'T' AS transport,
'CASH' AS payment_type,
'NONE' AS category,
35 AS row_num
FROM dual
UNION ALL
SELECT 'T' AS transport,
'VISA' AS payment_type,
'NONE' AS category,
36 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'SCHOOL' AS payment_type,
'BASE' AS category,
9 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'SCHOOL' AS payment_type,
'HALF_COST' AS category,
10 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'SCHOOL' AS payment_type,
'FREE' AS category,
11 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'STUDENT' AS payment_type,
'BASE' AS category,
17 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'STUDENT' AS payment_type,
'HALF_COST' AS category,
18 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'STUDENT' AS payment_type,
'FREE' AS category,
19 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'PRIVILEGE' AS payment_type,
'CITY_PRIVILEGE' AS category,
21 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'PRIVILEGE' AS payment_type,
'FEDERAL_PRIVILEGE' AS category,
22 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'PRIVILEGE' AS payment_type,
'REGIONAL_PRIVILEGE' AS category,
23 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'CITY_MIFARE' AS payment_type,
'BASE' AS category,
31 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'CITY_MIFARE' AS payment_type,
'HALF_MONTH' AS category,
32 AS row_num
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'CITY_MIFARE' AS payment_type,
'ORGANISATION' AS category,
33 AS row_num
FROM dual),
car AS
(SELECT 'AT' AS transport,
'A' AS carrier
FROM dual
UNION ALL
SELECT 'AT' AS transport,
'T' AS carrier
FROM dual),
calc AS
(SELECT head.transport,
head.payment_type,
head.category,
head.row_num,
nvl(car.carrier, head.transport) AS carrier,
cptt.pkg$trep_utility.getCardActiveCount(pBeginDate => :pActivationBeginDate,
pEndDate => :pActivationEndDate,
pTransportShortName => head.transport,
pPaymentShortName => head.payment_type,
pCategoryShortName => head.category) AS active_count,
cptt.pkg$trep_utility.getPassCount(pBeginDate => :pPassBeginDate,
pEndDate => :pPassEndDate,
pTransportShortName => head.transport,
pPaymentShortName => head.payment_type,
pCategoryShortName => head.category,
pTransportCarrierShortName => nvl(car.carrier,
head.transport)) AS pass_count
FROM head,
car
WHERE head.transport = car.transport(+)
ORDER BY head.row_num),
calc_coord AS
(SELECT DISTINCT calc.transport,
calc.payment_type,
calc.category,
calc.carrier,
calc.row_num,
decode(calc.transport,
'AT',
3,
'A',
5,
'T',
6) AS col_num,
'ACTIVE' AS attrib,
calc.active_count AS val
FROM calc
UNION ALL
SELECT calc.transport,
calc.payment_type,
calc.category,
calc.carrier,
calc.row_num,
decode(calc.carrier, 'A', 8, 'T', 9) AS col_num,
'PASS' AS attrib,
calc.pass_count AS val
FROM calc)
SELECT t.name_long AS transport_name,
p.name_long AS payment_name,
cat.name_long AS category_name,
car.name_long AS carrier_name,
decode(calc_coord.attrib, 'ACTIVE', 'Активировал ','Проехал в : ' || car.name_long) as cell_type_name,
calc_coord.row_num,
calc_coord.col_num,
calc_coord.val
FROM calc_coord,
ref$trep_card_transport t,
ref$trep_payment_type p,
ref$trep_card_category cat,
ref$trep_card_transport car
WHERE calc_coord.transport = t.short_name(+)
AND calc_coord.payment_type = p.short_name(+)
AND calc_coord.category = cat.short_name(+)
AND calc_coord.carrier = car.short_name(+)
ORDER BY row_num,
col_num) LOOP
dbms_output.put_line(rpad('Пригоден в транспорте: ' ||
rec.transport_name,
45) ||
rpad(rec.cell_type_name,
25) || rpad(' ' || rec.payment_name, 30) ||
rpad(' ' || rec.category_name, 30) ||
rpad(' ' || rec.row_num, 10) ||
rpad(' ' || rec.col_num, 10) ||
rpad(' ' || rec.val, 10));
END LOOP;
--to_date('01.12.2016 03:00:00', 'dd.mm.yyyy HH24:MI:SS')
END;
4
pActivationBeginDate
1
13.11.2016
12
pActivationEndDate
1
12.12.2016
12
pPassBeginDate
1
01.12.2016 3:00:00
12
pPassEndDate
1
01.01.2017 3:00:00
12
0
|
abdf9b4fe9abc64572f9a5ac2ceaef3f6645fb91 | 717ddeb7e700373742c617a95e25a2376565112c | /1340/CH6/EX6.6/6_6.sce | a24cca1f8d64972596729eaa9e4d1d579368f9fb | [] | 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 | 562 | sce | 6_6.sce | clc;
s = poly(0,"s");
G = syslin('c',200/(s*(s^3+11*s^2+11*s+6)));disp(G,"G(s)=");
CL = G/(1+G);disp(CL,"Closed-loop transfer function:")
deno = denom(CL);
coef = coeff(deno);
routh = routh_t(deno);
disp(routh,"routh:");
c = 0;
for i = 1:length(coef)
if(routh(i,1)<0)
c = c+1;
end
end
disp(c,"Number of negative signs in 1st column:");
if(c >=1)
disp(c+1,"poles in RHP");
printf("no poles on jw- axis,no rows of all zeroes");
printf("\n rest of the poles in LHP");
else
printf("stable system")
end |
46445602ce612d4d9682469361fa99a03d656500 | 449d555969bfd7befe906877abab098c6e63a0e8 | /122/CH9/EX9.15/exa9_15.sce | 5c0a30cb869924eae906b20bb1247b16febd39a8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 275 | sce | exa9_15.sce | // Example 9-15
// Observability
clear; clc;
xdel(winsid()); //close all windows
A = [0 1 0; 0 0 1; -6 -11 -6];
B = [0; 0; 1];
C = [4 5 1];
Ob = obsv_mat(A,C);
disp(Ob,'observability matrix =');
disp(clean(det(Ob)) , 'det(Ob) =');
// system is not completely observable
|
1315118ceb0fab8c563513d72bcaa357e1ec9da6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3638/CH17/EX17.3/Ex17_3.sce | 1790eb175d8cd55197be489f70598701ef1f22c2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 594 | sce | Ex17_3.sce | //Introduction to Fiber Optics by A. Ghatak and K. Thyagarajan, Cambridge, New Delhi, 1999
//Example 17.3
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;
//given
lambda0=633e-9;//Wavelength in m
b=62.5e-6;//Outer radius of silica fiber in m
N=1;//Number of loops formed by the fiber
C=0.133;//Value of constant C for a silica fiber at 633 nm
R=8*%pi*C*(b^2)*N/lambda0;//Radius of the circular loop corresponding to a quarter plate formed by the fiber in m
mprintf("\n R= %.2f cm",R/1e-2);//Division by 10^(-2) to convert into cm
//The answers vary due to round off error
|
2d4f37de0410424b04fdf4ffba820dc0c7bbb45c | 449d555969bfd7befe906877abab098c6e63a0e8 | /695/CH3/EX3.18/Ex3_18.txt | b529aa1b175367a19465a5a57bb02a1fccf1a092 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 489 | txt | Ex3_18.txt | //Caption:Calculate the secondary current at which max efficiency will occur and also calculate the max efficiency at 0.8pf lagging
//Exa:3.18
clc;
clear;
close;
a=1000/200;
R_1=0.25;//in ohms
R_2=0.018;//in ohms
R_O2=R_2+R_1/a^2;
P_i=240;//in watts
I_2=sqrt(P_i/R_2);
disp(I_2,'The secondary current at which max efficiency will occur (in Amperes)=');
P_o=200*I_2*0.8;//in watts
P_t=2*P_i;//in watts
Eff=P_o/(P_o+P_t);
disp(Eff*100,'Max efficiency at 0.8pf lagging(in %)=') |
259cd96616c0ebe9e0479ff732716f9e05169b31 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH14/EX14.9/Ex14_9.sce | cd16f05e0f2fcfe895aeec6839b6051e8dc631c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,270 | sce | Ex14_9.sce | // Example 14_9
clc;funcprot(0);
// Given data
Q_R=422;// kJ/h
Q_F=422;// kJ/h
// Station 1- Compressor inlet
x_1=1.00;// The quality of steam
T_1=-18.0;// °C
h_1=236.53;// kJ/kg
s_1=0.9315;// kJ/kg.K
// Station 2- Compressor outlet
s_2=s_1;// kJ/kg.K
p_sat=0.770;// MPa
p_3=p_sat;// MPa
p_2s=p_3;// MPa
h_2s=271.0;// kJ/kg
// Station 3- Condenser outlet
x_3=0.00;// The quality of steam
T_3=30.0;// °C
p_3=0.770;// MPa
h_3=91.49;// kJ/kg
// Station 4h-Refrigerator evaporator inlet
h_4h=h_3;// kJ/kg
T_4h=4.00;// °C
h_f=55.35;// kJ/kg
h_fg=194.19;// kJ/kg
// Station 5-Refrigerator evaporator outlet
T_5=T_4h;// °C
// Station 6h-Freezer evaporator outlet
T_6h=-18.0;// °C
n_s_c=0.80;// The isentropic efficency of the compressor
// Calculation
// (a)
COP=(h_1-h_4h)/((h_2s-h_1)/n_s_c);// The coefficient of performance
// (b)
m_ref=((Q_R+Q_F)*(1/60))/(h_1-h_4h);// kg/min
// (c)
h_5=h_4h+((Q_R*1/60)/m_ref);// kJ/kg
x_5=((h_5-h_f)/h_fg)*100;// The quality at the exit of the refrigeration evaporator
printf("\n(a)The coefficient of performance,COP=%1.2f \n(b)The mass flow rate of refrigerant required,m_ref=%0.4f kg/min \n(c)The quality at the outlet of the refrigeration evaporator,x_5=%2.1f percentage",COP,m_ref,x_5);
|
2d4d2ff9f6eb37bc8e293a0e74bf77d34b338441 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2762/CH10/EX10.3.1/10_3_1.sce | d5fa7707e2cf253ff6235267dc4f0f2ccc522146 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 599 | sce | 10_3_1.sce | //Transport Processes and Seperation Process Principles
//Chapter 10
//Example 10.3-1
//Stage and continuous Gas-liquid Seperation Processes
//given data
L0=300;//kg mol/h
Ld=L0;
V=100;//kg mol/h
ya2=0.2;
Vd=V*(1-ya2);
//L0*(xa0/(1-xa0))+Vd*(ya2/(1-ya2))=Ld*(xa1/(1-xa1))+Vd*(ya1/(1-ya1))
xa0=0;
LHS=L0*(xa0/(1-xa0))+Vd*(ya2/(1-ya2));
H=0.142*10000;//henrys law constant at 293 K (atm/mol frac)
P=1;//atm
Hd=H/P;
xa1=1.41/10000
ya1=Hd*xa1
L1=Ld/(1-xa1);
V1=Vd/(1-ya1);
mprintf("the outlet liquid flow rate is %f kg/h",L1);
mprintf("the outlet vapour flow rate is %f kg/h",V1);
|
d0bca2f3b87f3ac8ca4b6cf4d421d6c88363a76d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1457/CH9/EX9.3/9_3.sce | 80b3ac7feb32b98d3a9f1efce5141276f6d028a6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 387 | sce | 9_3.sce | clc
//Initialization of variables
k=1.4
R=1773
v=600 //fps
T=660 //K
P=100 //psia
cp=6210
g=32.2
//calculations
c=sqrt(k*R*T)
M=v/c
rho=k*P*144/c^2
Ps=P*144 + 0.5*(rho)*v^2 *(1+ 0.25*M^2)
Ts= (cp/g *T + v^2 /(2*g))*g/cp
//results
printf("Stagnation pressure = %d lb/ft^2",Ps)
printf("\n Stagnation temperature = %d R",Ts)
disp("Please check the units of the answer.")
|
569bae4ae3e2e28a0cf7942de142d45d7dd5c702 | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-MachineLearning/FLLinRegrUdt-NZ-01.tst | e1e425c5b595817f3cf231a2b21011a49e99418a | [] | no_license | kamleshm/intern_fuzzy | c2dd079bf08bede6bca79af898036d7a538ab4e2 | aaef3c9dc9edf3759ef0b981597746d411d05d34 | refs/heads/master | 2021-01-23T06:25:46.162332 | 2017-07-12T07:12:25 | 2017-07-12T07:12:25 | 93,021,923 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 12,560 | tst | FLLinRegrUdt-NZ-01.tst | -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Netezza
--
-- Copyright (c): 2014 Fuzzy Logix, LLC
--
-- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC.
-- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC.
-- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade
-- secret or copyright law. Dissemination of this information or reproduction of this material is
-- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC.
--
--
-- Functional Test Specifications:
--
-- Test Category: Data Mining Functions
--
-- Test Unit Number: FLLinRegrUdt-NZ-01
--
-- Name(s): FLLinRegrUdt
--
-- Description: Stored Procedure which performs Linear Regression and stores the results in predefined tables.
--
-- Applications: Linear regressions can be used in business to evaluate trends and make estimates or forecasts.
--
-- Signature: FLLinRegrUdt(pGroupID INTEGER,
-- pObsID INTEGER,
-- pVarID INTEGER,
-- pValue DOUBLE PRECISION,
-- pReduceVars BYTEINT,
-- pThresholdStdDev DOUBLE PRECISION,
-- pThresholdCorrel DOUBLE PRECISION,
-- pBeginFlag INTEGER,
-- pEndFlag INTEGER)
--
-- Parameters: See Documentation
--
-- Return value: VARCHAR(64)
--
-- Last Updated: 07-10-2017
--
-- Author: <kamlesh.meena@fuzzylogix.com>
-- BEGIN: TEST SCRIPT
\time
DROP TABLE tbllinregrdatadeepTest IF EXISTS;
CREATE TABLE tbllinregrdatadeepTest (
GroupID BIGINT,
ObsID BIGINT,
VarID INTEGER,
Num_Val DOUBLE PRECISION)
DISTRIBUTE ON(ObsID);
---- BEGIN: NEGATIVE TEST(s)
---- Incorrect table name
-- Case 1a:
--Not applicable for Netezza
---- Populate data in table
INSERT INTO tbllinregrdatadeepTest
SELECT a.*
FROM tbllinregrdatadeep a;
---- Incorrect column names
-- Case 2a:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.Obs,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
-- Case 2b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.Var,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
-- Case 2c:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
---- No data in table
-- Case 3a:
DELETE FROM tbllinregrdatadeepTest;
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
---- Insert data without the intercept and dependent variable
-- Case 4a:
INSERT INTO tbllinregrdatadeepTest
SELECT a.*
FROM tbllinregrdatadeep a
WHERE a.VarID > 0;
---- No dependent variable in table
-- Case 4b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
---- Insert dependent variable only for some obs
-- Case 5a:
INSERT INTO tbllinregrdatadeepTest
SELECT a.*
FROM tbllinregrdatadeep a
WHERE a.VarID = -1
AND a.ObsID <= 10000;
---- No dependent variable for all observations
-- Case 5b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
---- Insert intercept variable only for some obs
-- Case 6a:
DELETE FROM tblLinRegrTest;
INSERT INTO tblLinRegrTest
SELECT a.*
FROM tblLinRegr a
WHERE a.VarID <> 0;
INSERT INTO tblLinRegrTest
SELECT a.ObsID,
a.VarID,
CASE WHEN a.ObsID <= 500 THEN 0 ELSE 1 END
FROM tblLinRegr a
WHERE a.VarID = 0
AND a.ObsID <= 10000;
---- No intercept variable for all observations
-- Case 6b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
---- Cleanup the intercept and insert the value 2 for intercept
-- Case 6a:
DELETE FROM tbllinregrdatadeepTest
WHERE VarID = 0;
INSERT INTO tbllinregrdatadeepTest
SELECT a.GroupID,
a.ObsID,
a.VarID,
2
FROM tbllinregrdatadeep a
WHERE a.VarID = 0;
---- Intercept not 0 or 1
-- Case 6b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
---- Cleanup the table
-- Case 7a:
DELETE FROM tbllinregrdatadeepTest;
---- Populate less rows than variables
-- Case 7b:
INSERT INTO tbllinregrdatadeepTest
SELECT a.*
FROM tbllinregrdatadeep a
WHERE a.ObsID <= 100;
---- Number of observations <= number of variables
-- Case 7c:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
---- Cleanup the table and populate the data
-- Case 8a:
DELETE FROM tbllinregrdatadeepTest;
INSERT INTO tbllinregrdatadeepTest
SELECT a.*
FROM tbllinregrdatadeep a;
--- Repeat a row in the table
-- Case 8b:
INSERT INTO tbllinregrdatadeep
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val
FROM tbllinregrdatadeep a
WHERE a.VarID = 10
AND a.ObsID = 26;
---- Repeated data in table
-- Case 8b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
---- Cleanup the table and populate
-- Case 9a:
DELETE FROM tbllinregrdatadeepTest;
INSERT INTO tbllinregrdatadeepTest
SELECT a.GroupID,
a.ObsID,
a.VarID * 2,
a.Num_Val
FROM tbllinregrdatadeep a
WHERE a.VarID > 0
UNION ALL
SELECT a.*
FROM tbllinregrdatadeep a
WHERE a.VarID IN (-1, 0);
---- Non consecutive variable IDs
-- Case 9b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: Fuzzy Logix specific error message
-- END: NEGATIVE TEST(s)
--BEGIN: POSITIVE TEST(s)
---- Cleanup the data and populate again
-- Case 1a:
DELETE FROM tblLinRegrTest;
INSERT INTO tbllinregrdatadeepTest
SELECT a.*
FROM tbllinregrdatadeep a;
---- Perform regression with non-sparse data
-- Case 1b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: standard outputs
---- Cleanup the data and populate again, make the data sparse i.e., non-zero values
---- for all variables except dependent and intercept
-- Case 2a:
DELETE FROM tbllinregrdatadeepTest;
INSERT INTO tbllinregrdatadeepTest
SELECT a.*
FROM tbllinregrdatadeep a
WHERE a.VarID > 0
AND a.Num_Val <> 0
UNION ALL
SELECT a.*
FROM tbllinregrdatadeep a
WHERE a.VarID IN (-1, 0);
---- Perform regression with sparse data
-- Case 2b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsID,
a.VarID,
a.Num_Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: standard outputs
------ Drop and recreate the test table with column names different than that of usual FL deep table naming conventions
-- Case 3a:
DROP TABLE tbllinregrdatadeepTest;
CREATE TABLE tbllinregrdatadeepTest (
GroupID BIGINT,
ObsCol BIGINT,
VarCol INTEGER,
Val DOUBLE PRECISION)
DISTRIBUTE ON(ObsCol);
INSERT INTO tbllinregrdatadeepTest
SELECT a.*
FROM tbllinregrdatadeep a
WHERE a.VarID > 0
AND a.Num_Val <> 0
UNION ALL
SELECT a.*
FROM tbllinregrdatadeep a
WHERE a.VarID IN (-1, 0);
---- Perform regression with sparse data
-- Case 3b:
SELECT f.*
FROM(
SELECT a.GroupID,
a.ObsCol,
a.VarCol,
a.Val,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsCol), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsCol), 1)
AS end_flag
FROM tbllinregrdatadeepTest a
) AS z,
TABLE(FLLinRegrUDT(z.GroupID,z.ObsCol,z.VarCol,z.Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f
ORDER BY 1 ASC, 2 DESC, 5 ASC
LIMIT 20;
-- Result: standard outputs
---DROP the test table
DROP TABLE tbllinregrdatadeepTest;
-- END: POSITIVE TEST(s)
\time
-- END: TEST SCRIPT
|
002826c20307a9afec319e611ca298e9609159c9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1016/CH13/EX13.1/ex13_1.sce | ba7d00a58022f81fd77e465d4e71b1d65751d9ec | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex13_1.sce | clc;clear;
//Example 13.1
//given data
m1=7.0183;//mass of 3Li7 in a.m.u
m2=4.0040;//mass of 2He4 in a.m.u
m3=1.0082;//mass of 1H1 in a.m.u
Na=6.02*10^26;//Avgraodo no. in 1/kg mole
//rxn = 3Li7 + 1H1 = 2He4 + 2He4
//calculations
dm=m1+m3-(2*m2);
E=dm*931;
n=0.1*Na/7;//no of atoms in 100 gm of lithium
TE=n*E;
disp(TE,'Total energy available in MeV') |
4a6c929dc4c58c63a2fd0920e2b09283f1a3ef94 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1571/CH4/EX4.11/Chapter4_Example11.sce | b9536cd5d983bc682b16445d6175b9f862b63964 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | sce | Chapter4_Example11.sce | clc
clear
//INPUT
t1=273;//temperature of the hydrogen molecule in K
t2=373;//temperature of the hydrogen molecule in K
d=0.0000896;//density of the hydrogen molecule in gm/cc
p=76*13.6*981;//pressure of the hydrogen molecule in gm/cm/sec^2
//CALCULATIONS
v0=(3*p/d)^(0.5);//rms velocity at 0deg.C
v100=v0*(t2/t1)^(0.5);//rms velocity at 100deg.C
//OUTPUT
mprintf('the rms velocity at 0deg.C is %3f cm/sec \n the rms velocity at 100deg.C is %3f cm/sec',v0,v100)
|
88f299303c7ae2b49dd53a52e1622a8fed7edfa7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3782/CH5/EX5.15/Ex5_15.sce | a99cbab30a16489cf2d466c00d7c8a6fa7080bcd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 468 | sce | Ex5_15.sce |
//ch-5 page 187 pb-3
//
//
dAB=100
aa=1.875
ab=1.790
le=10
ba=1.630
bb=1.560
td=aa-ab
apd=ba-bb
printf("\n first setting')
printf("\n true difference is %0.3f meters',td)
printf("\n apparent difference of level = %0.3f meters',apd)
printf("\n second setting')
A=ba-td
e1=bb-A
cA=(le/dAB)*e1
cB=((le+dAB)/dAB)*e1
printf("\n collimation error is %0.3f meters',e1)
printf("\n correction at A= %0.3f meters',cA)
printf("\n correction at B= %0.3f meters',cB)
|
4aca7541b9f4c64af5debd82e7b46562f83d01df | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH4/EX4.10/Ch04Ex10.sce | 70b0e4960ae6b6da4a7c4fe1df8a90480ff78b91 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 928 | sce | Ch04Ex10.sce | // Scilab Code Ex4.10: Page-197
clc;clear;
w1 = 0.02;....// Magnitude of the dispersive power of first lens
w2 = 0.04;....// Magnitude of the dispersive power of second lens
// Let 1/f1 = x and 1/f2 = y, then
// The condition for achromatic combination of two lenses, w1/f1 + w2/f2 = 0 => w1*x + w2*y = 0 --- (I)
F = 20;....// Given focal length of achromatic doublet, cm
// Also F = 1/f1 + 1/f2 => F = x + y ---- (II)
A = [w1 w2; 1 1]; // Square matrix
B = [0;1/F]; // Column vector
X = inv(A)*B; // Characteristic roots of the simultaneous equations, cm
f1 = 1/X(1); // Focal length of convex lens, cm
f2 = 1/X(2); // Focal length of concave lens, cm
printf("\nThe focal length of convex lens = %2d cm", ceil(f1));
printf("\nThe focal length of concave lens = %2d cm", ceil(f2));
// Result
// The focal length of convex lens = 10 cm
// The focal length of concave lens = -20 cm
|
d0f102dcaae142ba932b1437efc45cc3f73b1654 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1904/CH10/EX10.4/10_4.sce | 279d26cf992fc7d2d759dea0351ee65936e6e3bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,838 | sce | 10_4.sce | //To Determine the sequence impedance values
//Page 572
clc;
clear;
//Percent Impedances of the substation transformer
Rtp=1;
Ztp=7;
Xtp=sqrt((Ztp^2)-(Rtp^2));
Ztpu=Rtp+(%i*Xtp); //Transformer Impedance
Vll=12.47; //Line to Line voltage in kV
Vln=7.2; //Line to Neutral Voltage
V=240; //Secondary Voltage
St=7500; //Rating of the transformer in kVA
Sts=100; //Rating of Secondary Transformer
Ztp=Ztpu*((Vll^2)*10/St);
SSC=complex(.466,0.0293);
//From Table 10-7
Z1=0.0870+(%i*0.1812);
Z0=complex(0.1653,0.4878);
ZG=((2*Z1)+Z0)/3;//Impedance to Ground
Zsys=0 ; //Assumption Made
Zeq=Zsys+Ztp+ZG; //Equivalent Impedance of the Primary
PZ2=Zeq*((V/(Vln*1000))^2); //Primary Impedance reffered to secondary
//Distribution Tranformer Parameters
Rts=1;
Zts=1.9;
Xts=sqrt((Zts^2)-(Rts^2));
Ztspu=complex(Rts,Xts);
Zts=Ztspu*((V/1000)^2)*10/Sts; //Distribution Transformer Reactance
Z1SL=(60/1000)*SSC; //Impedance for 60 feet
Zeq1=PZ2+Zts+Z1SL; //Total Impedance to the fault in secondary
IfLL=V/abs(Zeq1); //Fault Current At the secondary fault point F
printf('\na) The Impedance of the substation in ohms\n')
disp(Ztp)
printf('b) The Positive And Zero Sequence Impedances in ohms\n')
disp(Z1)
disp(Z0)
printf('c) The Line to Ground impedance in the primary system in ohms\n')
disp(ZG)
printf('d) The Total Impedance through the primary in ohms\n')
disp(Zeq)
printf('e) The Total Primary Impedance referred to the secondary in ohms\n')
disp(PZ2)
printf('f) The Distribution transformer impedance in ohms\n')
disp(Zts)
printf('g) the Impedance of the secondary cable in ohms\n')
disp(Z1SL)
printf('h) The Total Impedance to the fault in ohms\n')
disp(Zeq1)
printf('i) The Single Phase line to line fault for the 120/240 V three-wire service in amperes is %g A\n',IfLL)
|
ebbaa654ad729636302a1598a630e7ea027b7e0a | c557cd21994aaa23ea4fe68fa779dd8b3aac0381 | /test/blob.tst | c81c9824180362e65840c7d2591447a3c088ba31 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | dougsong/reposurgeon | 394001c0da4c3503bc8bae14935808ffd6f45657 | ee63ba2b0786fa1b79dd232bf3d4c2fe9c22104b | refs/heads/master | 2023-03-09T15:22:45.041046 | 2023-02-25T08:33:06 | 2023-02-25T08:33:06 | 280,299,498 | 1 | 0 | NOASSERTION | 2023-02-25T08:33:08 | 2020-07-17T01:45:32 | Go | UTF-8 | Scilab | false | false | 138 | tst | blob.tst | ## Patch a synthetic blob into a repository
read <min.fi
blob <<EOF
The thing that ate Sheboygan.
EOF
:3 add M 100644 :1 creature
write -
|
be6b98b30b7f0145ee66c6df7e73afede0a3625a | 5a05d7e1b331922620afe242e4393f426335f2e3 | /macros/fir1.sci | 636d6f877fbf7698bfef2971e92f6bb2496f8ae8 | [] | no_license | sauravdekhtawala/FOSSEE-Signal-Processing-Toolbox | 2728cf855f58886c7c4a9317cc00784ba8cd8a5b | 91f8045f58b6b96dbaaf2d4400586660b92d461c | refs/heads/master | 2022-04-19T17:33:22.731810 | 2020-04-22T12:17:41 | 2020-04-22T12:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,407 | sci | fir1.sci | function b = fir1(n, w, varargin)
funcprot(0);
if argn(2) < 2 | argn(2) > 5
error("Wrong Number of input arguments");
end
// Assign default window, filter type and scale.
// If single band edge, the first band defaults to a pass band to
// create a lowpass filter. If multiple band edges, the first band
// defaults to a stop band so that the two band case defaults to a
// band pass filter. Ick.
window_in = [];
scale = 1;
ftype = bool2s(length(w)==1);
for i=1:length(varargin)
arg = varargin(i);
if (type(arg)==10)
arg=convstr(arg,"l");
end
if isempty(arg)
continue;
end
select arg
case 'low' then ftype = 1; case 'stop' then ftype = 1; case 'dc-1' then ftype = 1;
case 'high' then ftype = 0; case 'pass' then ftype = 0; case 'bandpass' then ftype = 0; case 'dc-0' then ftype = 0;
case 'scale' then scale=1;
case 'noscale' then scale=0;
else window_in=arg;
end
end
// build response function according to fir2 requirements
bands = length(w)+1;
f = zeros(1,2*bands);
f(2*bands)=1;
f(2:2:2*bands-1) = w;
f(3:2:2*bands-1) = w;
m = zeros(1,2*bands);
m(1:2:2*bands) = modulo([1:bands]-(1-ftype),2);
m(2:2:2*bands) = m(1:2:2*bands);
//Increment the order if the final band is a pass band. Something
// about having a nyquist frequency of zero causing problems.
//
if modulo(n,2)==1 & m(2*bands)==1,
warning("n must be even for highpass and bandstop filters. Incrementing.");
n = n+1;
if isvector(window_in) & isreal(window_in) & ~(type(window_in)==10)
// Extend the window using interpolation
M = length(window_in);
if M == 1,
window_in = [window_in; window_in];
elseif M < 4
window_in = interp1(linspace(0,1,M),window_in,linspace(0,1,M+1),'linear');
else
window_in = interp1(linspace(0,1,M),window_in,linspace(0,1,M+1),'spline');
end
end
end
// compute the filter
b = fir2(n, f, m, [], 2, window_in);
// normalize filter magnitude
if scale == 1
// find the middle of the first band edge
// find the frequency of the normalizing gain
if m(1) == 1
// if the first band is a passband, use DC gain
w_o = 0;
elseif f(4) == 1
// for a highpass filter,
// use the gain at half the sample frequency
w_o = 1;
else
// otherwise, use the gain at the center
// frequency of the first passband
w_o = f(3) + (f(4)-f(3))/2;
end
// compute |h(w_o)|^-1
if ~(isvector(b) | isempty(b)) // Check input is a vector
error('Invalid');
end
x=exp(-1*%i*%pi*w_o)
// z=[1 -exp(-1*%i*%pi*w_o)];
nc = length(b);
if(isscalar(x) & nc>0 & (x~=%inf) & or(b(:)~=%inf))
// Make it scream for scalar x. Polynomial evaluation can be
// implemented as a recursive digital filter.
q=b;
k = filter(1,[1 -real(x)],q);
k=k(nc);
end
k=abs(k);
renorm = 1/k
// normalize the filter
b = renorm*b;
end
endfunction
|
18e7d3fd1c39312c641e9e9bbdff338c1c4a4cdd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2873/CH8/EX8.12/Ex8_12.sce | d089c56a9b25384e6749726a50c662328d04fa9b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 5,250 | sce | Ex8_12.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh Chapter 8 Example 12")
P=100*10^3;//net power output in KW
disp("At inlet to HPT,h2=3373.7 KJ/kg,s2=6.5966 KJ/kg K")
h2=3373.7;
s2=6.5966;
disp("For isentropic expansion between 2-3-4-5,s2=s3=s4=s5")
s3=s2;
s4=s3;
s5=s4;
disp("state 3 lies in superheated region as s3>sg at 20 bar.By interpolation from superheated steam table,T3=261.6oc.Enthalpy at 3,h3=2930.57 KJ/kg")
T3=261.6;
h3=2930.57;
disp("since s4<sg at 4 bar so state 4 and 5 lies in wet region.")
disp("Let dryness fraction at state 4 ans 5 be x4 and x5.")
disp("s4=6.5966=sf at 4 bar+x4*sfg at 4 bar")
disp("from steam tables,at 4 bar,sf=1.7766 KJ/kg K,sfg=5.1193 KJ/kg K")
sf=1.7766;
sfg=5.1193;
disp("x4=(s4-sf)/sfg")
x4=(s4-sf)/sfg
x4=0.941;//approx.
disp("h4=hf at 4 bar+x4*hfg at 4 bar in KJ/kg")
disp("from steam tables,at 4 bar,hf=604.74 KJ/kg,hfg=2133.8 KJ/kg")
hf=604.74;
hfg=2133.8;
h4=hf+x4*hfg
disp("for state 5,")
disp("s5=6.5966=sf at 0.075 bar+x5*sfg at 0.075 bar")
disp("from steam tables,at 0.075 bar,sf=0.5764 KJ/kg K,sfg=7.6750 KJ/kg K")
sf=0.5764;
sfg=7.6750;
disp("x5=(s5-sf)/sfg")
x5=(s5-sf)/sfg
x5=0.784;//approx.
disp("h5=hf at 0.075 bar+x5*hfg at 0.075 bar in KJ/kg")
disp("from steam tables,at 0.075 bar,hf=168.76 KJ/kg,hfg=2406.0 KJ/kg")
hf=168.76;
hfg=2406.0;
h5=hf+x5*hfg
disp("Let mass of steam bled at 20 bar be m1 and m2 per kg of steam generated.")
disp("h10=hf at 20 bar=908.76 KJ/kg,h8=hf at 4 bar=604.74 KJ/kg")
h10=908.76;
h8=604.74;
disp("At trap h10=h11=908.79 KJ/kg")
h11=h10;
disp("At condensate extraction pump,(CEP),h7-h6=v6*(4-0.075)*10^2 in KJ/kg")
disp("here v6=vf at 0.075 bar=0.001008 m^3/kg,h6=hf at 0.075 bar=168.79 KJ/kg")
v6=0.001008;
h6=168.79;
disp("so h7=h6+v6*(4-0.075)*10^2 in KJ/kg")
h7=h6+v6*(4-0.075)*10^2
disp("At feed pump,(FP),h9-h8=v8*(20-4)*10^2 in KJ/kg")
disp("here v8=vf at 4 bar=0.001084 m^3/kg,h8=hf at 4 bar=604.74 KJ/kg")
v8=0.001084;
h8=604.74;
disp("so h9=h8+v8*(20-4)*10^2 in KJ/kg")
h9=h8+v8*(20-4)*10^2
disp("Let us apply heat balance at closed feed water heater,")
disp("m1*h3+h9=m1*h10+4.18*200")
disp("so m1=(4.18*200-h9)/(h3-h10) in kg")
m1=(4.18*200-h9)/(h3-h10)
m1=0.114;//approx.
disp("Applying heat balance at open feed water,")
disp("m1*h11+m2*h4+(1-m1-m2)*h7=h8")
disp("so m2=(h8-m1*h11-h7+m1*h7)/(h4-h7) in kg")
m2=(h8-m1*h11-h7+m1*h7)/(h4-h7)
m2=0.144;//approx.
disp("Net work per kg steam generated,")
disp("w_net=(h2-h3)+(1-m1)*(h3-h4)+(1-m1-m2)*(h4-h5)-{(1-m1-m2)*(h7-h6)+(h9-h8)} in KJ/kg")
w_net=(h2-h3)+(1-m1)*(h3-h4)+(1-m1-m2)*(h4-h5)-{(1-m1-m2)*(h7-h6)+(h9-h8)}
disp("Heat added per kg steam generated,q_add=(h2-h1) in KJ/kg")
h1=4.18*200;
q_add=(h2-h1)
disp("Thermal efficiency=w_net/q_add")
w_net/q_add
disp("in percentage")
w_net*100/q_add
disp("steam generation rate=P/w_net in kg/s")
P/w_net
disp("so thermal efficiency=44.78%")
disp("steam generation rate=87.99 kg/s")
disp("a> For the reheating introduced at 20 bar up to 400oc.The modified cycle representation is shown on T-S diagram by 1-2-3-3_a-4_a-5_a-6-7-8-9-10-11")
disp("At state 2,h2=3373.7 KJ/kg,s2=6.5966 KJ/kg K")
h2=3373.7;
s2=6.5966;
disp("At state 3,h3=2930.57 KJ/kg")
h3=2930.57;
disp("At state 3_a,h3_a=3247.6 KJ/kg,s3_a=7.1271 KJ/kg K")
h3_a=3247.6;
s3_a=7.1271;
disp("At state 4_a and 5_a,s3_a=s4_a=s5_a=7.1271 KJ/kg K")
s4_a=s3_a;
s5_a=s4_a;
disp("From steam tables by interpolation state 4_a is seen to be at 190.96oc at 4 bar,h4_a=2841.02 KJ/kg")
h4_a=2841.02;
disp("Let dryness fraction at state 5_a be x5,")
disp("s5_a=7.1271=sf at 0.075 bar+x5_a*sfg at 0.075 bar")
disp("from steam tables,at 0.075 bar,sf=0.5764 KJ/kg K,sfg=7.6750 KJ/kg K")
disp("so x5_a=(s5_a-sf)/sfg")
x5_a=(s5_a-sf)/sfg
x5_a=0.853;//approx.
disp("h5_a=hf at 0.075 bar+x5_a*hfg at 0.075 bar in KJ/kg")
disp("from steam tables,at 0.075 bar,hf=168.76 KJ/kg,hfg=2406.0 KJ/kg")
h5_a=hf+x5_a*hfg
disp("Let mass of bled steam at 20 bar and 4 bar be m1_a,m2_a per kg of steam generated.Applying heat balance at closed feed water heater.")
disp("m1_a*h3+h9=m1*h10+4.18*200")
disp("so m1_a=(4.18*200-h9)/(h3-h10) in kg")
m1_a=(4.18*200-h9)/(h3-h10)
m1_a=0.114;//approx.
disp("Applying heat balance at open feed water heater,")
disp("m1_a*h11+m2_a*h4_a+(1-m1_a-m2_a)*h7=h8")
disp("so m2_a=(h8-m1_a*h11-h7+m1_a*h7)/(h4_a-h7) in kg")
m2_a=(h8-m1_a*h11-h7+m1_a*h7)/(h4_a-h7)
m2_a=0.131;//approx.
disp("Net work per kg steam generated")
disp("w_net=(h2-h3)+(1-m1_a)*(h3_a-h4_a)+(1-m1_a-m2_a)*(h4_a-h5_a)-{(1-m1_a-m2_a)*(h7-h6)+(h9-h8)}in KJ/kg")
w_net=(h2-h3)+(1-m1_a)*(h3_a-h4_a)+(1-m1_a-m2_a)*(h4_a-h5_a)-{(1-m1_a-m2_a)*(h7-h6)+(h9-h8)}
disp("Heat added per kg steam generated,q_add=(h2-h1)+(1-m1_a)*(h3_a-h3)in KJ/kg")
q_add=(h2-h1)+(1-m1_a)*(h3_a-h3)
disp("Thermal efficiency,n=w_net/q_add")
n=w_net/q_add
disp("in percentage")
n=n*100
disp("% increase in thermal efficiency due to reheating=(0.4503-0.4478)*100/0.4478")
(0.4503-0.4478)*100/0.4478
disp("so thermal efficiency of reheat cycle=45.03%")
disp("% increase in efficiency due to reheating=0.56%")
|
300a806cf94db64d8a322f9b70939c1a4a7cb72c | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronic_Devices_And_Circuits_K._L._Kishore_1511.zip/Electronic_Devices_And_Circuits_K._L._Kishore_1511/CH4/EX4.5/ex4_5.sce | f354008a76ff292c792ade55eb74ec329bc245f0 | [] | no_license | hohiroki/Scilab_TBC | cb11e171e47a6cf15dad6594726c14443b23d512 | 98e421ab71b2e8be0c70d67cca3ecb53eeef1df6 | refs/heads/master | 2021-01-18T02:07:29.200029 | 2016-04-29T07:01:39 | 2016-04-29T07:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 247 | sce | ex4_5.sce | errcatch(-1,"stop");mode(2);// Example 4.5 page no-206
t1=75
t2=25
icbo=2 // at T1=25
icbo2=icbo*2^((t1-t2)/10)
vbe=0.1
vbb=5
Rb=(vbb-vbe)/icbo2
printf("\nIcbo at 75°C = %.0f micro A\nRb = %.1f K-Ohm",icbo2,Rb*1000)
exit();
|
ec8e623b2273229711944aa4c2f03f14d8933597 | e6dd9bbda9de35dd34042e5f90b4ed662cc509b2 | /ConVelo.sce | 4a6086c81a3ce965bff166c6aa7acefd5b5f40a8 | [] | no_license | YuYukick/Main | 5340364a106f7ee2c4db0738882cc952652b17d3 | 305f0b929eaa98ae9451a15d7c426ddb5268bc2d | refs/heads/master | 2021-08-27T21:55:48.453337 | 2017-12-10T12:07:06 | 2017-12-10T12:07:06 | 113,746,053 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,142 | sce | ConVelo.sce | disp("Start plotting")
h_sma = 5;
sample_data = 100;
resolution = 2*%pi / sample_data;
resolution_2 = 1 / sample_data;
x_posi = 0;
x=0;
scf(0)
clf()
for j = 0:sample_data,
disp(j);
x_posi = h_sma * cos(resolution * j);
plot(resolution*j, x_posi,'.')
strf = "041"
//frameflag=4
end
xgrid() //←グリッドの表示
xtitle('Range of motion', 'X axi move area', 'Y axi move area') //←タイトル関連の表示
xs2png(0,'fig1.png');
scf(1)
clf()
// x 初期化
x=[0:0.1:2*%pi]';
plot(x,cos(x))
xs2png(0,'fig2.png');
disp("Finish plotting")
scf(2)
clf()
for j = 0:sample_data,
disp(j);
x_posi = -acos(resolution_2 * j);
plot(resolution_2*j, x_posi,'.')
strf = "041"
//frameflag=4
end
for j = 0:sample_data,
disp(j);
x_posi = -acos(-resolution_2 * j);
plot(-resolution_2*j, x_posi,'.')
strf = "041"
//frameflag=4
end
xgrid() //←グリッドの表示
xtitle('Range of motion', 'X axi move area', 'Y axi move area') //←タイトル関連の表示
scf(3)
clf()
sample_data = sample_data;
for i = 1:5,
disp(i);
for j = 0:sample_data,
disp(j);
x_posi = -h_sma *cos(acos(-resolution_2 * j));
plot(-resolution_2*j+(4*i-1), x_posi,'.')
strf = "041"
//frameflag=4
end
for j = 0:sample_data,
disp(j);
x_posi = -h_sma *cos(acos(resolution_2 * j));
plot(resolution_2*j+(4*i-1), x_posi,'.')
strf = "041"
//frameflag=4
end
for j = 0:sample_data,
disp(j);
x_posi = h_sma *cos(acos(-resolution_2 * j));
plot(-resolution_2*j + (4*i+1), x_posi,'.')
strf = "041"
//frameflag=4
end
for j = 0:sample_data,
disp(j);
x_posi = h_sma *cos(acos(resolution_2 * j));
plot(resolution_2*j+ (4*i+1), x_posi,'.')
strf = "041"
//frameflag=4
end
end
xgrid() //←グリッドの表示
xtitle('Range of motion', 'X axi move area', 'Y axi move area') //←タイトル関連の表示
|
d7e6b62542a0df53850ded4e252bc6c644956d06 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1682/CH4/EX4.5/Exa4_5.sce | 101b88da7a95dc91ff6b36e0a1b1fa70072ed02b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 637 | sce | Exa4_5.sce | //Exa 4.5
clc;
clear;
close;
//Plan 1 :
P0=-1000;//in Rs
P=12000;//in Rs
i=12;//in % per annum
n=15;//in years
//Formula : (P/F,i,n) : 1/((1+i/100)^n)
PW1=P0+P*1/((1+i/100)^n);//in RS
disp(PW1,"The present worth of Plan-1 in RS. : ");
//Plan 2 :
P0=-1000;//in Rs
P=4000;//in Rs
i=12;//in % per annum
n1=10;//in years
n2=15;//in years
//Formula : (P/F,i,n) : 1/((1+i/100)^n)
PW2=P0+P*1/((1+i/100)^n1)++P*1/((1+i/100)^n2);//in RS
disp(PW2,"The present worth of Plan-2 in RS. : ");
disp("The present worth of Plan-1 is more than that of Plan-1. Therefore plan 1 is the best plan from the investors point of view."); |
1ba235796a811ba543ba3dd0b70bdefb0e52344e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH25/EX25.8/Ex25_8.sce | 27e821cbfd982dfa12eb24ad5f4f06bd066ea37c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 67 | sce | Ex25_8.sce | clc;
a=15;
RL=8;
RL1=a**2*RL;
disp('Kohm',RL1*10**-3,"RL1=");
|
1ae46370ced3e33f544e9d8d7859eb650dbd4fba | 449d555969bfd7befe906877abab098c6e63a0e8 | /36/DEPENDENCIES/prob9_20data.sci | 797652de14f7d49fc125b911d36557f164f8edad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 170 | sci | prob9_20data.sci | //problem 9-20 data
//no of processors
nos=4;
//cycle time for 1st situation
tp1=40;
//total no of floating operation
total=400;
//cycle time for 2st situation
tp2=10;
|
a56b8d3b10f507b2af357d9c0063ba13fa070616 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1904/CH2/EX2.10/2_10.sce | 0d502514a941c0370658572ee05dfa22606a4516 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,397 | sce | 2_10.sce | //To calculate thirty min annual maximum demand
//Page 59
clc;
clear;
Fd=1.15;
Pi=[1800,2000,2200]; //Demands of various feeders in kW (Real Power)
PF=[0.95,0.85,0.90]; //Power factor of the respective feeders
Dg=sum(Pi)/Fd;
P=Dg;
theta=acosd(PF);
Q=sum(Pi*(tand(theta))')/Fd;
S=sqrt((P^2)+(Q^2));
LD=sum(Pi)-Dg;
//Transformer sizes
Tp=[2500,3750,5000,7500];
Ts=[3125,4687,6250,9375];
Ol=1.25; //Maximum overload condition
Eol=Ts*Ol; //Overload voltages of the transformer
Ed=abs(Eol-S); // Difference between the overload values of the transformers and the P value of the system
[A,k]=gsort(Ed); // To sort the differences and choose the best match
T=[Tp(k(4)),Ts(k(4))]; //Suitable transformer
g=poly(0,'g');
X=(1+g)-nthroot(2,10); //To find out the fans on rating
R=roots(X);
g=R*100;
n=poly(0,'n');
Sn=9375; // Rating of the to be installed transformer
// Equation (1+g)^n * S = Sn
// a=(1+g)
// b=Sn/S
a=1+R;
b=Sn/S;
n=log(b)/log(a);
printf('a) The 30 mins annual maximum deman on the substation transformer are %g kW and %g kVA respectively\n',P,S)
printf(' b) The load diversity is %g kW\n',LD)
printf(' c) Suitable transformer size for 25 percent short time over loads is %g/%g kVA\n',T(1),T(2))
printf(' d) Fans on rating is %g percent and it will loaded for %g more year if a 7599/9375 kVA transformer is installed\n',g,ceil(n))
|
efcfd7eb597e9283f61516c71206d43dfe96f2cb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1445/CH1/EX1.55/Ex1_55.sce | 48f0ff05fe0131c601bacb8eb948a7cfd311902d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 624 | sce | Ex1_55.sce | //CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS
//Example 55
clc;
disp("CHAPTER 1");
disp("EXAMPLE 55");
//VARIABLE INITIALIZATION
vcd=50; //voltage source in Volts
v=100; //voltage source in Volts
r1=40; //in Ohms
r2=50; //in Ohms
r3=20; //in Ohms
r4=10; //in Ohms
//SOLUTION
res=(vcd/r2)-(v/r3); //'res' (short for result) is used to make calculations easy
vp=res/((1/r2)+(1/r3)+(1/r4));
vba=vp+v;
disp(sprintf("The voltage between A and B is %f V",vba));
//END
|
64a2559467b7b4e37248862406c21ba46b4c2ca4 | b9f1970647ac855ae5864d8b9b5594e03aba67a7 | /vhdl/cpu8bit/tests/avg.tst | c333a8e838e39ce44c7271e229ebd6e4233c32ed | [] | no_license | jrguttenfelder/pub | e806eea19582ff8925db512f026fd8e3d8d2c9ab | 2bc3d13893bf93d6c78b8015435b5ad7e594311f | refs/heads/master | 2020-12-20T13:11:23.723619 | 2020-05-29T20:55:00 | 2020-05-29T20:55:00 | 236,087,241 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 425 | tst | avg.tst | 1000100000001101 LIC 13
1000110000000000 STC 0
1000100000000111 LIC 7
1000110000000001 STC 1
1110000000000000 RDM 0
1110000000000001 RDM 1
1000000000000000 LDA 0
1000010000000001 LDB 1
0000000000000000 ADD
1000110000000011 STC 3
1000100000000010 LIC 2
1000110000000100 STC 4
1000000000000011 LDA 3
1000010000000100 LDB 4
0000110000000000 DIV
1000110000000010 STC 2
1110000000000010 RDM 2
1010010000000000 HLT |
8756872478a3130c4efcffc4d3b9576c039e8277 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1544/CH2/EX2.4/Ch02Ex4.sce | 7e126c13cb0a4ae18a7a1ab614f1a6c1cb5bdc7a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,163 | sce | Ch02Ex4.sce | // scilab code Ex2.4: Pg 39 (2008)
clc; clear;
E = 12; // E.m.f of battery, V
R1 = 6; // Resistance, ohms
R2 = 3; // Resistance, ohms
// Since the two resistances are in parallel, therefore effective resistance of the circuit is equal to the reciprocal of the sum of conductances ( 1/Ressistance) of individual resistances present in the circuit i.e 1/R = 1/R1 + 1/R2, simplifying for R
R = ( R1*R2)/(R1 + R2); // Effective resistance of the circuit, ohms
// Fron Ohm's law, V = I*R, solving for I
I = E/R; // Circuit current, A
I1 = E/R1; // Current through resistance R1, A
I2 = E/R2; // Current thrugh resistance R2, A
printf("\nEffective resistance of the circuit = %1d ohms", R);
printf("\nThe current drawn from the battery = %1d A", I);
printf("\nThe current through resistor R1 = %1d A", I1);
printf("\nThe current through R2 resistor = %1d A", I2);
// Result
// Effective resistance of the circuit = 2 ohms
// The current drawn from the battery = 6 A
// The current through resistor R1 = 2 A
// The current through R2 resistor = 4 A
|
a9c1417bd8149822db64a1949790a6a25f3c0d10 | d145a801b8f64afaf9dd0330b93936ca3343cbdb | /test_suite/esd.tst | ac5b0fd840a0b6b2473ab258bd895f9dcbfe60cf | [] | no_license | ChemCryst/crystals | 0fff27ff8576b7c7199e1eaa671407d50132b98e | 8087c68d7f05b903473cee1cb131c06f819dc660 | refs/heads/master | 2023-08-17T16:36:03.675124 | 2023-06-26T10:54:29 | 2023-06-26T10:54:29 | 152,602,292 | 2 | 0 | null | 2023-06-26T10:54:30 | 2018-10-11T14:09:45 | Roff | UTF-8 | Scilab | false | false | 6,580 | tst | esd.tst | \set time slow
\rele print CROUTPUT:
\ Test esd calculations for combined and linked parameters
\SET MIRROR OFF
\DISK
EXTEND 50
\list 29
\LIST 28
END
\LIST 1
REAL 6.094 5.512 11.762 90 76.12
\LIST 2
CELL 2
SYM X,Y,Z
SYM -X,1/2+Y,1/2-Z
END
\LIST 3
READ 2
SCAT C 0 0 2.13 20.8439 1.02 10.2075 1.5886 .5687 .865 51.6512 .2156
SCAT H 0 0 .493002 10.5109 .322912 26.1257 .140191 3.14236 .04081
CONT 57.7997 .003038
\
\
\LIST 6
READ NCOEFFICIENT = 4, TYPE = COMPRESSED, UNIT = DATAFILE
INPUT H K L /FO/
MULTIPLIERS 1.0 1.0 1.0 1.463694930
END
0 0 2 85 3 61 4 29 5 136 512 1 0 1 928 2 24 3 239 4 96 512 2 0 0 53 1 520 2 75 3
72 4 274 512 3 0 1 226 2 374 3 173 4 15 5 117 512 4 0 0 26 1 101 2 193 3 169 4
12 5 53 512 5 0 1 21 2 87 3 6 4 10 512 6 0 0 60 1 36 2 60 3 14 512
1 1 -5 69 -4 46 -3 66 -2 304 -1 512 0 951 1 776 2 39 3 60 4 179 5 164 512 2 1 -5
76 -4 95 -3 24 -2 483 -1 604 0 25 1 269 2 400 3 130 4 238 5 8 512 3 1 -5 85 -4
58 -3 40 -2 108 -1 253 0 20 1 67 2 231 3 329 4 109 5 76 512 4 1 -5 136 -4 14 -3
12 -1 146 0 227 1 57 2 64 3 37 4 19 5 32 512 5 1 -4 45 -3 19 -2 34 -1 96 0 148 1
29 2 145 3 33 4 18 5 42 512 6 1 -2 51 -1 30 0 15 1 125 2 15 3 16 512
0 2 -5 151 -4 14 -3 219 -2 157 -1 270 0 781 1 814 2 751 512 1 2 -5 142 -4 11 -3
183 -2 414 -1 110 0 589 1 772 2 171 3 219 4 59 512 2 2 -5 68 -4 54 -3 89 -2 519
-1 274 0 32 1 16 2 357 3 72 4 204 5 163 512 3 2 -5 45 -4 159 -3 61 -2 11 -1 458
0 65 1 100 2 155 3 75 4 309 5 10 512 4 2 -5 40 -4 9 -3 110 -2 52 -1 124 0 180 1
25 2 63 3 265 4 31 5 40 512 5 2 -4 31 -3 50 -2 12 -1 59 0 244 1 118 2 88 3 72 4
10 512 6 2 -2 72 -1 91 0 16 1 84 2 21 3 7 512
1 3 -5 172 -4 93 -3 31 -2 295 -1 463 0 53 1 172 2 377 3 340 4 47 512 2 3 -5 44
-4 178 -3 78 -2 55 -1 309 0 62 1 99 2 79 3 103 4 342 5 142 512 3 3 -5 14 -4 56
-3 172 -2 180 -1 260 0 241 1 111 2 43 3 128 4 53 5 66 512 4 3 -5 62 -4 24 -3 164
-2 24 -1 29 0 305 1 110 2 37 3 100 4 62 5 55 512 5 3 -4 93 -3 20 -2 10 -1 43 1
170 2 62 3 70 4 14 5 15 512 6 3 -2 34 -1 79 0 35 1 85 2 94 3 20 512
0 4 -5 264 -4 58 -3 77 -2 14 -1 141 0 999 1 100 2 560 3 672 4 52 5 13 512 1 4 -5
71 -4 178 -3 85 -2 103 -1 415 0 262 1 106 2 391 3 185 4 150 5 45 512 2 4 -5 26
-4 106 -2 142 -1 535 0 50 1 125 2 68 3 82 4 197 512 3 4 -5 5 -4 34 -2 296 -1 12
0 145 1 43 2 46 3 70 4 216 5 131 512 4 4 -5 18 -4 23 -3 145 -2 154 -1 16 0 130 1
7 2 11 3 24 4 34 5 108 512 5 4 -3 148 -2 47 -1 21 0 119 1 132 2 60 3 17 4 14 5
14 512 6 4 -1 68 0 31 1 109 2 63 512
1 5 -5 67 -4 10 -3 179 -2 163 -1 384 0 364 1 130 2 231 3 293 4 156 512 2 5 -5 45
-4 105 -3 71 -2 338 -1 342 0 50 1 83 2 20 4 117 5 96 512 3 5 -5 21 -4 21 -3 61
-2 227 -1 17 0 59 1 69 2 41 3 112 4 86 5 112 512 4 5 -4 24 -3 158 -2 145 -1 33 0
24 1 106 2 163 3 122 4 24 5 23 512 5 5 -3 91 -2 29 -1 8 0 83 1 75 2 94 3 76 512
6 5 -1 12 0 25 1 62 512
0 6 -5 49 -4 42 -3 450 -2 159 -1 10 0 532 1 314 2 202 3 225 4 85 5 42 512 1 6 -5
34 -4 180 -3 45 -2 288 -1 210 0 386 1 163 2 26 3 93 4 125 5 17 512 2 6 -5 28 -4
73 -3 22 -2 187 -1 98 0 43 1 195 2 54 4 126 5 84 512 3 6 -5 29 -4 19 -3 17 -2
177 -1 252 0 51 1 21 2 81 3 98 4 81 5 63 512 4 6 -4 10 -3 32 -2 135 -1 60 0 127
1 19 2 42 3 61 4 28 5 38 512 5 6 -3 44 -2 62 -1 9 0 28 1 19 2 130 3 169 4 39 512
6 6 0 18 1 49 512
1 7 -5 8 -4 81 -3 212 -2 327 -1 37 0 224 1 80 2 211 3 75 4 7 5 7 512 2 7 -5 36
-4 94 -3 33 -2 148 -1 318 0 33 1 134 2 35 3 34 4 59 5 12 512 3 7 -4 38 -3 26 -2
21 -1 63 0 199 1 74 2 93 3 42 4 90 5 23 512 4 7 -3 66 -2 80 0 48 1 7 2 79 3 242
4 61 512 5 7 -2 16 -1 38 0 49 1 57 2 101 4 55 512
0 8 -5 69 -4 24 -3 224 -2 306 -1 44 0 34 1 89 2 317 3 350 4 24 5 41 512 1 8 -5
11 -4 11 -3 106 -2 237 -1 53 0 7 1 84 2 273 3 45 4 32 5 5 512 2 8 -4 35 -3 29 -2
118 -1 181 0 20 1 194 2 168 3 33 4 43 5 25 512 3 8 -4 86 -3 47 -2 53 -1 105 0 18
1 162 2 13 3 67 4 111 5 19 512 4 8 -3 11 -2 9 -1 23 0 199 1 67 2 23 3 24 4 31 5
12 512 5 8 -1 23 1 51 2 42 512
1 9 -4 30 -3 21 -2 101 -1 88 0 71 1 18 2 284 3 228 4 76 5 10 512 2 9 -4 35 -3 24
-2 14 -1 43 0 12 1 237 2 191 3 11 4 81 5 29 512 3 9 -3 44 -2 80 -1 43 0 145 1 92
2 8 3 11 4 25 5 12 512 4 9 -2 86 0 34 1 14 2 68 3 41 4 47 5 10 512 5 9 0 29 1 34
2 12 512
0 10 -3 155 -2 43 -1 70 0 124 2 105 3 317 4 75 5 13 512 1 10 -3 13 -2 35 -1 53 0
144 1 94 2 166 3 64 4 94 5 6 512 2 10 -3 8 -2 50 -1 62 0 12 1 66 2 112 3 21 4 28
5 11 512 3 10 -2 65 -1 37 0 35 1 151 2 159 3 10 4 22 5 6 512 4 10 -1 6 0 37 1 55
2 79 3 45 4 7 512
1 11 -3 105 -2 107 -1 38 0 77 1 120 2 21 3 103 4 19 512 2 11 -2 30 -1 37 0 26 1
105 2 171 4 60 512 3 11 -1 10 0 34 1 26 2 105 3 62 512 4 11 0 22 1 12 2 62 3 85
512
0 12 -2 153 -1 8 0 115 1 73 2 41 3 13 4 15 512 1 12 -2 72 -1 18 0 13 1 72 2 12 3
18 4 49 512 2 12 -1 30 0 7 1 128 2 116 3 19 4 35 512 3 12 0 26 1 32 2 94 3 20
512
1 13 0 14 1 54 2 92 3 31 4 24 512 2 13 2 5 3 18 512
0 14 2 8 3 53 512 1 14 1 25 2 42 3 49 -512
\
\ PUNCHED ON 14-MAY81 AT 10:38:11
\
\LIST 5
READ NATOM = 12, NLAYER = 0, NELEMENT = 0, NBATCH = 0
OVERALL 21.614765 0.050000 0.050000 EXTPARAM = 78.7200928
ATOM C 1.000000 1.000000 0.050000 -0.227045 0.085092 0.066342
ATOM C 2.000000 1.000000 0.050000 -0.133448 0.147490 -0.063166
ATOM C 3.000000 1.000000 0.050000 0.035691 -0.042796 -0.125136
ATOM C 7.000000 1.000000 0.050000 -0.390969 0.281495 0.127377
ATOM H 11.000000 1.000000 0.040772 -0.323728 -0.074517 0.068889
ATOM H 21.000000 1.000000 0.051026 -0.043582 0.302698 -0.065375
ATOM H 22.000000 1.000000 0.078253 -0.258207 0.189268 -0.105489
ATOM H 31.000000 1.000000 0.051099 -0.055482 -0.211626 -0.124210
ATOM H 32.000000 1.000000 0.071408 0.097502 0.000804 -0.206926
ATOM H 71.000000 1.000000 0.082269 -0.288919 0.426858 0.128565
ATOM H 72.000000 1.000000 0.082269 -0.521962 0.328422 0.084547
ATOM H 73.000000 1.000000 0.082269 -0.449482 0.239848 0.205914
END
\SET MIRROR ON
\EDIT
\ perturb the structure
MULT 1.02 C(1,X) UNTIL H(73)
END
\LIST 12
FULL
COMB C(1,X'S) AND C(2,X'S)
PLUS C(3,Z)
LINK C(1,U[ISO]) AND C(2,U[ISO]) AND C(3,U[ISO])
RIDE C(7,X'S,U[ISO]) H(71,X'S,U[ISO]) UNTIL H(73)
\LIST 22
\PRINT 12
\PRINT 22
\SFLS
REFINE LIST=HIGH
END
\DIST
OUT MON=ALL
E.S.D YES
END
\DISK
RESET 5 0 -1
END
\LIST 12
FULL
PLUS C(1,X'S) C(2,X'S)
PLUS C(3,Z)
LINK C(1,U[ISO]) AND C(2,U[ISO]) AND C(3,U[ISO])
RIDE C(7,X'S,U[ISO]) H(71,X'S,U[ISO]) UNTIL H(73)
\LIST 22
\PRINT 22
\SFLS
REFINE LIST=HIGH
END
\DIST
OUT MON=ALL
E.S.D YES
END
\FINI
|
990a607af0cebb5beae31c4b9048d1ac1d57ae9c | e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4 | /New LSTMAttn Model/.data/form-split/GOLD-TEST/gaa.tst | 43091505c23c65256e5e0630c484e6d2da755eb7 | [] | 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 | 3,659 | tst | gaa.tst | jaa jaa V;HAB;PST
du duee V;HAB;NEG;PST
ŋmaa ŋmaaee V;HAB;NEG;FUT
ŋmɔɔ ŋmɔɔ V;HAB;PST
fala falaee V;HAB;NEG;PST
sele sele V;HAB;PST
lɛmɔ lɛmɔee V;HAB;NEG;PST
kai kaiee V;HAB;NEG;FUT
tsine tsine V;HAB;PST
bɛɛ bɛɛ V;HAB;PST
nuu nuu V;NFIN
kwɛ kwɛ V;HAB;PST
mɛ baamɛ V;HAB;FUT
wo wo V;HAB;PST
ŋmɔ baaŋmɔ V;HAB;FUT
taa ŋtaa V;PRS
hia hiaee V;HAB;NEG;PST
nu ŋnu V;PRS
tswa tswaee V;HAB;NEG;FUT
he ŋhe V;PRS
wa wako V;HAB;NEG;PRS
mɛ mɛ V;HAB;PRS
ya ŋya V;PRS
fo foee V;HAB;NEG;PST
diki diki V;HAB;PST
ye nkunim ŋye nkunim V;PRS
ba ba V;HAB;PST
ŋa ŋŋa V;PRS
blɛ blɛee V;HAB;NEG;PST
kpɛtɛ baakpɛtɛ V;HAB;FUT
diki dikiee V;HAB;NEG;FUT
ba baee V;HAB;NEG;PST
taa taa V;HAB;PRS
fo ŋfo V;PRS
kafo baakafo V;HAB;FUT
ba baee V;HAB;NEG;FUT
kpɛtɛ kpɛtɛee V;NEG;PRS
sele seleee V;HAB;NEG;FUT
je je V;HAB;PRS
hɔɔ ŋhɔɔ V;PRS
bo baabo V;HAB;FUT
ya baaya V;HAB;FUT
faa baafaa V;HAB;FUT
shamɔ shamɔko V;HAB;NEG;PRS
ŋmɔ ŋmɔko V;HAB;NEG;PRS
kafo ŋkafo V;PRS
mɔ baamɔ V;HAB;FUT
jaa jaako V;HAB;NEG;PRS
tswa tswako V;HAB;NEG;PRS
kafo kafoko V;HAB;NEG;PRS
nyiɛ nyiɛ V;HAB;PST
nuu ŋnuu V;PRS
mɔ mɔ V;NFIN
kɔ kɔ V;HAB;PST
kota ŋkota V;PRS
kota kotaee V;HAB;NEG;FUT
hiɛ hiɛ V;NFIN
futu ŋfutu V;PRS
tsɔse tsɔse V;HAB;PRS
kota baakota V;HAB;FUT
tsɛ ŋtsɛ V;PRS
fala fala V;HAB;PRS
tawɔ tawɔee V;NEG;PRS
wo woee V;HAB;NEG;PST
kɔ kɔko V;HAB;NEG;PRS
gbele gbeleko V;HAB;NEG;PRS
sɔle ŋsɔle V;PRS
ju ju V;HAB;PST
mi miee V;HAB;NEG;FUT
gblɛ gblɛ V;NFIN
kpɛtɛ kpɛtɛ V;HAB;PRS
tsine baatsine V;HAB;FUT
yɛ yɛee V;NEG;PRS
nyiɛ baanyiɛ V;HAB;FUT
hiɛ hiɛko V;HAB;NEG;PRS
gbo gboee V;HAB;NEG;FUT
tsuku ŋtsuku V;PRS
tsɔse tsɔseko V;HAB;NEG;PRS
ye ye V;HAB;PST
kane kaneee V;HAB;NEG;FUT
ju ŋju V;PRS
yɛ yɛ V;HAB;PST
bɔ bɔ V;HAB;PRS
ŋa ŋa V;HAB;PST
gbee gbeeee V;HAB;NEG;FUT
sumɔ sumɔ V;HAB;PRS
ju ju V;NFIN
ha haee V;NEG;PRS
nu nu V;HAB;PST
wɔdɔi ŋwɔdɔi V;PRS
je jeee V;HAB;NEG;FUT
fɔflɔ ŋfɔflɔ V;PRS
tswa tswaee V;HAB;NEG;PST
ye nkunim ye nkunimee V;HAB;NEG;FUT
ba bako V;HAB;NEG;PRS
fu fu V;HAB;PRS
jɔ jɔ V;HAB;PRS
tsɛ tsɛee V;HAB;NEG;PST
tawɔ tawɔko V;HAB;NEG;PRS
tsine tsineee V;NEG;PRS
mi miee V;HAB;NEG;PST
ha ŋha V;PRS
fɔflɔ baafɔflɔ V;HAB;FUT
kwɛ kwɛko V;HAB;NEG;PRS
tswa tswaee V;NEG;PRS
ye yeee V;HAB;NEG;PST
diki baadiki V;HAB;FUT
shwishwia baashwishwia V;HAB;FUT
je ŋje V;PRS
blɛ blɛee V;HAB;NEG;FUT
mɛ mɛee V;NEG;PRS
fɔflɔ fɔflɔee V;HAB;NEG;FUT
fɔ baafɔ V;HAB;FUT
ŋmaa ŋmaa V;HAB;PRS
futu futu V;HAB;PST
tsi ŋtsi V;PRS
wo wo V;HAB;PRS
jie jieee V;NEG;PRS
gbee gbeeee V;HAB;NEG;PST
daa daa V;HAB;PST
kane baakane V;HAB;FUT
ta ta V;NFIN
gbi gbiko V;HAB;NEG;PRS
hia hia V;HAB;PST
sele ŋsele V;PRS
tsɛmɔ baatsɛmɔ V;HAB;FUT
tsɛmɔ tsɛmɔee V;HAB;NEG;PST
jɔ jɔko V;HAB;NEG;PRS
kase kaseee V;HAB;NEG;PST
nuu nuu V;HAB;PST
da baada V;HAB;FUT
wie ŋwie V;PRS
kpasa kpasako V;HAB;NEG;PRS
ta ta V;HAB;PST
fɔflɔ fɔflɔ V;NFIN
hia hiako V;HAB;NEG;PRS
wɔlɔmɔ wɔlɔmɔee V;HAB;NEG;FUT
nyiɛ nyiɛee V;HAB;NEG;FUT
bɔ bɔee V;HAB;NEG;FUT
tswa ŋtswa V;PRS
diki dikiee V;HAB;NEG;PST
bi bi V;NFIN
tuu tuuee V;HAB;NEG;FUT
jɔ baajɔ V;HAB;FUT
kafo kafoee V;HAB;NEG;PST
tsɛ tsɛ V;HAB;PRS
bo bo V;NFIN
tsu baatsu V;HAB;FUT
jie baajie V;HAB;FUT
yɛ yɛ V;HAB;PRS
gbee gbee V;NFIN
sha shaee V;HAB;NEG;FUT
kase kaseee V;HAB;NEG;FUT
sha sha V;NFIN
bɛɛ bɛɛee V;HAB;NEG;PST
wie wie V;HAB;PST
sele sele V;NFIN
fo foee V;NEG;PRS
tsɔse tsɔseee V;HAB;NEG;PST
gbi gbiee V;HAB;NEG;FUT
futu futu V;HAB;PRS
hi hi V;NFIN
ya yako V;HAB;NEG;PRS
hia hia V;HAB;PRS
daa daaee V;NEG;PRS
gblɛ gblɛee V;NEG;PRS
sha baasha V;HAB;FUT
ŋmaa ŋmaaee V;NEG;PRS
wo ŋwo V;PRS
|
24f29d5e6525d248952b14e92ca4fc1b39faa65f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3665/CH2/EX2.12/Ex2_12.sce | c5873c5b043881abf06793fbf01b001a4fb35402 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 453 | sce | Ex2_12.sce | clc//
//
//
//Variable declaration
mw=23+35.5; //molecular weight of NaCl(gm/mol)
N=6.023*10^23; //avagadro number(per mol)
d=2.18; //mass of unit volume
//Calculation
M=mw/N; //mass of NaCl molecule(gm)
n=2*d/M; //number of atoms per unit volume(atoms/cm^3)
a=(1/n)^(1/3); //distance between 2 adjacent atoms(cm)
//Result
printf("\n distance between 2 adjacent atoms is %e cm = %0.2f angstrom ",a,a*10^8)
|
c256d61ecbb0216f49a384d7d371e83d711e4519 | 1573c4954e822b3538692bce853eb35e55f1bb3b | /DSP Functions/zpklp2bs/test_5.sce | c3cc427f9751f816805f70e5412710fbb4615a4e | [] | no_license | shreniknambiar/FOSSEE-DSP-Toolbox | 1f498499c1bb18b626b77ff037905e51eee9b601 | aec8e1cea8d49e75686743bb5b7d814d3ca38801 | refs/heads/master | 2020-12-10T03:28:37.484363 | 2017-06-27T17:47:15 | 2017-06-27T17:47:15 | 95,582,974 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 315 | sce | test_5.sce | // Test # 5 : When either Input Argument #4 or Input Argument #5 is of complex type
exec('./zpklp2bs.sci',-1);
[z,p,k,n,d]=zpklp2bs(3,0.2,7,2*%i,[0.6,0.8]);
// !--error 10000
//Wo must be real ,numeric and scalar
//at line 43 of function zpklp2bs called by :
//[z,p,k,n,d]=zpklp2bs(3,0.2,7,2*%i,[0.6,0.8]);
|
5bb51dec62ee1bd3f7f60d6473829abd0234186a | 449d555969bfd7befe906877abab098c6e63a0e8 | /773/DEPENDENCIES/ztransfer.sce | 87a5dc9c1c0a2486237df87d00d78ceb562f005d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 144 | sce | ztransfer.sce | //function//
function [Ztransfer]=ztransfer(sequence)
z = poly(0, 'z', 'r')
Ztransfer=sequence*(1/z)^[0:(length(sequence)-1)]'
endfunction
|
fb982ea645f831467f4efecbb99ebdf976be6ed3 | a5f0fbcba032f945a9ee629716f6487647cafd5f | /Development/Preprocessing/Binarization/Binarize.sci | 2c08c6ea7d611e208bbb901c4f465c88e4dabf97 | [] | no_license | SoumitraAgarwal/Scilab-gsoc | 692c00e3fb7a5faf65082e6c23765620f4ecdf35 | 678e8f80c8a03ef0b9f4c1173bdda7f3e16d716f | refs/heads/master | 2021-04-15T17:55:48.334164 | 2018-08-07T13:43:26 | 2018-08-07T13:43:26 | 126,500,126 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 260 | sci | Binarize.sci | // Macro for binarization of dataset -- Scilab
function binarx = binarize(x)
n = length(x)
mi = min(x)
ma = max(x)
for i=1:n
x(i) = 1.0*(x(i) - mi)/(ma - mi);
if(x(i) >= 0.5)
x(i) = 1;
else
x(i) = 0;
end
end
binarx = x
endfunction |
565a1cd964677db43bca59e264e285db7e7d0336 | 9d11e49bc2143a6b680ab8f59b245bb2b4e5f487 | /practicas-programacion/scilab/u4-scinotes/pid-manual-kp.sce | d1d7e4993305c7d246afeb721e3ca86649b6b52b | [] | no_license | AguilarLagunasArturo/school-holder | 61a8be432b0979f7e3332c0ef058421ff34200ee | 373cb31bb8e29e2433fb6269ad45bbdac0f8262e | refs/heads/main | 2023-08-13T18:21:45.177344 | 2021-10-07T05:17:32 | 2021-10-07T05:17:32 | 407,611,773 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | pid-manual-kp.sce | clc;
s = %s;
num = 2;
den = s*(s+1)*(s+2);
g = syslin('c', num/den);
evans(g, 10)
sgrid()
// kp < 3 | tanteando kp = 1.2
ku = 2.998;
wu = 1.414;
tu = (2*%pi)/wu;
kp = 0.6*ku
ki = 1.2*(ku/tu)
kd = (0.6/8)*(ku*tu)
// Manual
// kp = 1.7988
// ki = 0.045
// kd = 1.2
|
ccc5025851388a404a2aebe6ca342e2158d8d06e | 449d555969bfd7befe906877abab098c6e63a0e8 | /182/CH5/EX5.4/example5_4.sce | a2d1fcccd50dea081a7e143f215503163cfbcdfa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | example5_4.sce | // to find the out put frequency in fig 5-10
// example 5-4 in page 130
clc;
//Given data
To=1e-6;//oscillator time period=1 micro-second
N=16;// modulus number of the counter = 16
n=3;// number of counters
//calculations
T=To*(N^n);//out put time period
printf("output frequency=%d hertz",1/T);//output frequency
//result
//output frequency=244 hertz |
e14d4d2e50033470963e93e7f6a71c39104d545c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2381/CH12/EX12.12/ex_12.sce | 648a48c8775428c66db281265a06a39369debb73 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 197 | sce | ex_12.sce | //Example 12//doppler shift and velocity
clc;
clear;
close;
h1=6010;//Å
h2=6000;//Å
ds=h1-h2;//Å
disp(ds,"doppler shift is ,(Å)=")
c=3*10^8;//m/s
v=((ds/h2)*c);//m/s
disp(v,"speed is ,(m/s)=")
|
e5e974da4e679fcc7af95709bcccee36ccd914d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH10/EX10.14/ex10_14.sce | e7186d6d0f1a146dd619677ec222b217d1d05b4a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 339 | sce | ex10_14.sce | // Exa 10.14
clc;
clear;
close;
format('v',7)
// Given data
P = 4;
slots = 144;
phi = 20;// in mWb
phi = phi * 10^-3;// in Wb
N = 720;// in rpm
A = 4;
P =4;
n1 = 2;// in coil/slot
n2 = 2;// in turns/coil
Z = slots*n1*n2;// total number of conductor
Eg = (N*P*phi*Z)/(60*A);// in V
disp(Eg,"The induced voltage in V is");
|
74ae12b20eac9911e23b0ca4818a15c22f747727 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH4/EX4.6/Ch04Ex6.sce | d1b5c8f66f02d4efb5e9031c416c7cdf060f79f4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 374 | sce | Ch04Ex6.sce | // Scilab code Ex4.6: : Pg:146 (2008)
clc;clear;
D = 60; // Distance between the source and the screen, cm
Lambda = 5.9e-05; // Wavelength of light, cm
d = 0.3/2; // Separation between the slits, cm
omega = D*Lambda/(2*d); // Fringe width, cm
printf("\nThe value of fringe width = %6.4f cm", omega);
// Result
// The value of fringe width = 0.0118 cm |
26b9117daa7236a2179b17ba2ec3f966112f56c4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH9/EX9.5/Ex9_5.sce | feb1c574c9340c1c2f36d747047ee57a4279d7a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,019 | sce | Ex9_5.sce | // Example 9_5
clc;funcprot(0);
// Given data
m_a=0.200;// kg/s
T_ain=90.0;// °C
T_aout=75.0;// °C
T_win=20.0;// °C
T_wout=40.0;// °C
U=140;// W/(m^2.K)
c_pa=1.004;// The specific heat of air in kJ/kg.K
c_pw=4.186;// The specific heat of water in kJ/kg.K
// Calculation
// (a) Parallel flow
delT_LMTDa=((T_aout-T_wout)-(T_ain-T_win))/(log((T_aout-T_wout)/(T_ain-T_win)));// K
//(b) Counter flow
delT_LMTDb=((T_aout-T_win)-(T_ain-T_wout))/(log((T_aout-T_win)/(T_ain-T_wout)));// K
Q=abs(m_a*c_pa*10^3*(T_aout-T_ain));// J/s
A_pf=Q/(U*delT_LMTDa);// m^2
A_cf=Q/(U*delT_LMTDb);// m^2
m_w=m_a*(c_pa/c_pw)*((T_ain-T_aout)/(T_wout-T_win));// kg/s
S_p=(m_a*c_pa*10^3*log((T_aout+273.15)/(T_ain+273.15)))+(m_w*c_pw*10^3*log((T_wout+273.15)/(T_win+273.15)));// W/K
printf("\nThe corresponding heat exchanger area for parallel flow,A_parallel flow=%0.3f m^2 \nThe corresponding heat exchanger area for counter flow,A_counter flow=%0.3f m^2 \nThe entropy production rate,S_p=%1.2f W/K",A_pf,A_cf,S_p);
|
b6f7ebf779faafa4d7a99cb1ed6f841458e01cdb | 449d555969bfd7befe906877abab098c6e63a0e8 | /506/CH6/EX6.3.b/Example6_3b.sce | acd1e15d601a5fe7486bb1939763f7c5cf1708e7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 703 | sce | Example6_3b.sce | clear;
clc;
//Caption://To find wether with given conditions NAND gate is satisfied
//Given Data
R=15;//in K
R1=15;//in K
R2=100;//in K
R3=2.2;//in K
V0=0;//in V
V1=12;//in V
Vcc=12;//in V
//If input is at V0=0V
Vb = -Vcc*(R1/(R1+R2));//Base Current in V
//Finding thevenin equivallent fom P to ground
Rd = 1;//in K
Vd=0.7;//in v
Vr=1;//in K
//Thevenin Equivallent Voltage and resistance from P to ground
v = (Vcc*(Rd/(Rd+R)))+(Vd*(R/(R+Rd)));
rs = Rd*(R/(R+Rd));
//Open Circuit Voltage at base of the transistor
Vb1 = (-Vcc*((R1+rs)/(R1+R2+rs))) + (v*(R2/(R1+R2+rs)));
disp('V',Vb1,'Vb1=');
if(Vb1>Vb)
disp('The voltage is adequate to reverse bias Q');
end
//end |
0dad70f13724044414e339a3d6a421ff29a98366 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2141/CH10/EX10.10/Ex10_10.sce | 100427751a12e977ba3ad51200c6fbd5f34a8050 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 484 | sce | Ex10_10.sce |
clc
//initialisation of variables
clear
Pc=708//lbf/in^2
T=549.8//R
P=14.7//lbf/in^2
Pr1=P/Pc//lbf/in^2
Tr1=T/549.8 //F
T=570//F
P2=1000//lbf/in^2
Pr2=P2/Pc//lbf/in^2
h=124.8//Btu/lbm
f1=0.58//lbf/in^2
f2=1.0//lbf/in^2
F1=P2*f1//lbf/in^2
F2=P*f2//lbf/in^2
w=(1.986/30)*T*log(F1/F2)//Btu/lbm
q=-124.8 //lbf/in^2
//CALCULATIONS
Q=q-w//btu/lbm
S=Q/T//Btu/lbm-R
//RESULTS
printf('The work of compression and the heat transfer per pound ethane=% f Btu/lbm-R',S)
|
b14c866d1de1f34f5a0db44d57b62f100e1625ff | 1a00eb132340e145c8a7d8fd0ef79a02b24605a2 | /demos/exemples_livret.dem.gateway.sce | 68d95177adaa782f64c2b4228cf697873efefd8b | [] | no_license | manasdas17/Scilab-Arduino-Toolbox | e848d75dc810cb0700df34b1e5c606802631ada4 | 2a6c9d3f9f2e656e1f201cecccd4adfe737175e7 | refs/heads/master | 2018-12-28T15:51:35.378091 | 2015-08-06T07:22:15 | 2015-08-06T07:22:15 | 37,854,821 | 3 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 1,062 | sce | exemples_livret.dem.gateway.sce | //
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2012-2012 - Scilab Enterprises - Vincent COUVERT
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
//
//
function subdemolist = demo_gateway()
demopath = get_absolute_file_path("exemples_livret.dem.gateway.sce");
subdemolist = ["Example 1", "arduino2.dem.sce" ;
"Example 2", "arduino3.dem.sce" ;
"Example 3", "arduino4.dem.sce" ;
"Example 4", "arduino5.dem.sce" ;
"Example 5", "arduino7.dem.sce" ;
"Example 6", "arduino8.dem.sce" ;
"Example 7", "arduino9.dem.sce" ;
];
subdemolist(:,2) = demopath + subdemolist(:,2);
endfunction
subdemolist = demo_gateway();
clear demo_gateway; // remove demo_gateway on stack
|
1d8f42486a82c35497a52efeae323630c9d942f6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1730/CH1/EX1.7/Exa1_7.sce | 2d731cb19795d1138fc2ddb2b1f3b092b0db54dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 436 | sce | Exa1_7.sce | //Exa7
clc;
clear;
close;
//given data :
lambda=0.842; //in Angstrum
lambda=lambda*10^-10; // in meter
//theta=8degree 35minutes
theta=8+35/60;//in degree
n=1;//(first order)
//Formula n*lamda=2*d*sin(theta)
d=n*lambda/(2*sind(theta))
//For third Order reflection :
//Formula n*lamda=2*d*sin(theta)
n=3;//order
theta=asind(n*lambda/(2*d));
disp(round(theta),"Angle of incidence for third order reflection in degree : "); |
5deba5309501467a224a2713f74b342eab2ef3cb | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH8/EX8.17/8_17.sce | dc4e89384b537c1b969fb8089442e6fa07f74147 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 781 | sce | 8_17.sce | //pathname=get_absolute_file_path('8.17.sce')
//filename=pathname+filesep()+'8.17-data.sci'
//exec(filename)
//State of steam entering HP stage : 10 MPa, 600ºC
//State of steam entering LP stage: 2 MPa, 400ºC
//Condenser pressure: 10 KPa
//Output(in MW):
P=10
//From steam tables:
h1=3625.3 //kJ/kg
s1=6.9029 //kJ/kg.K
s2=s1
s3=s2
h2=3105.08 //kJ/kg
x3=0.834
h3=2187.43
h6=908.79 //kJ/kg
h5=191.83 //kJ/kg
h4=h5
h7=h6
//Steam bled per kg of steam passing through HP stage:
mb=(h6-h5)/(h2-h5)
printf("\n RESULT \n")
printf("\nSteam bled per kg of steam passing through HP stage = %f kg",mb)
//Mass of steam leaving boiler(in kg/s):
m=P*10^3/((h1-h2)+(1-mb)*(h2-h3))
//Heat supplied to the boiler(in kJ/s):
Q=m*(h1-h7)
printf("\nHeat added = %f kJ/s",Q) |
568e1a8a1d8b7914d07e2b8d5a21dc74611bd1f9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH33/EX33.5/Example33_5.sce | 603dacfd9b0eb7ce4dba5b8d991d485e2fd48b56 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 452 | sce | Example33_5.sce | //Given that
C = 15*10^-6 //in Farad
Em = 36.0 //in volts
fd = 60.0 //in Hz
//Sample Problem 33-5a
printf("**Sample Problem 33-5a**\n")
//Vc = Emax*sin(w*t)
printf("The voltage drop across the capacitor is Vc=%1.2f*sin(%1.2f*t)\n", Em, w)
//Sample Problem 33-5b
printf("\n**Sample Problem 33-5b**\n")
//I = -C*(dV/dt)
IcMAX = abs(w*C*Em)
printf("The current in the capacitor as a function of time is Ic=%1.2f*cos(%1.2f*t)", IcMAX, w) |
e2d17a9d4bb4ca0ed770acd42f4e569023031dce | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH3/EX3.1.b/ex_3_1b.sce | 5d9a4585b96ebfa7fb27a49e6c416aec8138b68f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 35 | sce | ex_3_1b.sce | syms t a y
y= -laplace(exp(a*t),t) |
19e36efdb12ef68578a6df9c59c2aac232100d1a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH22/EX22.1/Ex22_1.sce | 54dac36fe08a26f26ad0cf88300f28ddf69d80b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex22_1.sce | clear
//Given
D=1 //m
l=5*10**-7 //m
d=0.1*10**-3 //m
//Calculation
W=(2*D*l)/d
//Result
printf("\n Width of the central maximum is %0.3f cm", W*10**2)
|
611fd78500c0d7fe335f7103ec770a8ca29af273 | 117dfe11397868e23e4177974ee4db6128616157 | /symphony/symphony_input2.sce | d4fa96b8f420838d7e0675fa8521351a3a032a92 | [] | no_license | harpreetrathore/OR-toolbox-test-cases | 161ec31daa75c7bdfe68519e43975b9452d81d30 | ad6fd408ea41e74e56b31a5bc756639e521a20e3 | refs/heads/master | 2021-01-21T08:24:31.441859 | 2015-11-17T16:54:58 | 2015-11-17T16:54:58 | 45,449,825 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 967 | sce | symphony_input2.sce | // Check for size of Objective Coefficient
// A basic case :
// Objective function
c = [350*5,330*3,310*4,280*6,500,450,400,100]';
// Lower Bound of variable
lb = repmat(0,8,1);
// Upper Bound of variables
ub = [repmat(1,4,1);repmat(%inf,4,1)];
// Constraint Matrix
conMatrix = [5,3,4,6,1,1,1,1;
5*0.05,3*0.04,4*0.05,6*0.03,0.08,0.07,0.06,0.03;
5*0.03,3*0.03,4*0.04,6*0.04,0.06,0.07,0.08,0.09;]
// Lower Bound of constrains
conlb = [ 25; 1.25; 1.25]
// Upper Bound of constrains
conub = [ 25; 1.25; 1.25]
// Row Matrix for telling symphony that the is integer or not
isInt = [repmat(%t,1,4) repmat(%f,1,4)];
// Calling Symphony
[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,conMatrix,conlb,conub,1,[],[],[])
// Error
//Symphony: Unexpected number of input arguments : 13 provided while should be in the set [9 10 11]
//at line 158 of function symphony called by :
//[x,f,status,output] = symphony(8,3,c,isInt,lb,ub,conMatrix,conlb,conub,1,[],[],[])
|
8498d23f39629aadc74d340757d7471f17dccf59 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2223/CH2/EX2.1/Ex2_1.sce | 0528ccd2c90323dbf4acc4ab20bbce65492a90e9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 963 | sce | Ex2_1.sce | // scilab Code Exa 2.1 Calculation on a Diffuser
p1=800; // Initial Pressure in kPa
T1=540; // Initial Temperature in K
p2=580; // Final Pressure in kPa
gamma=1.4; // Specific Heat Ratio
cp=1005; // Specific Heat at Constant Pressure in J/(kgK)
R=0.287; // Universal Gas Constant in kJ/kgK
g=9.81; // Gravitational acceleration in m/s^2
sg=13.6; // Specific Gravity of mercury
n=0.95; // Efficiency in %
AR=4; // Area Ratio of Diffuser
delp=(367)*(1e-3)*(g)*(sg); // Total Pressure Loss Across the Diffuser in kPa
pr=p1/p2; // Pressure Ratio
T2s=T1/(pr^((gamma-1)/gamma));
T2=T1-(n*(T1-T2s));
c2=sqrt(2*cp*(T1-T2));
ro2=p2/(R*T2);
c3=c2/AR;
m=0.5*1e-3*ro2*((c2^2)-(c3^2));
n_D=1-(delp/m);
disp ("%",n_D*1e2," Efficiency of the diffuser is")
p3=(p2+n_D*m)*1e-2;
disp("m/s",c2,"the velocity of air at diffuser entry is")
disp("m/s",c3,"the velocity of air at diffuser exit is")
disp("bar",p3,"static pressure at the diffuser exit is")
|
e535f02fdce5a4411039ddf34077e97154d7e156 | 449d555969bfd7befe906877abab098c6e63a0e8 | /69/CH10/EX10.6/10_6.sce | 29721e468327752a91cc96ac56cf67c53c23b380 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 133 | sce | 10_6.sce | clear; clc; close;
Rf = 500*10^(3);
R1 = 100*10^(3);
V1 = 2;
Vo = (1+(Rf/R1))*V1;
disp(Vo,'Output voltage(Volts) = ');
|
730f463c48571e50af446c1534b3f310f6f14652 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1946/CH2/EX2.11.c/Ex_2_11_c.sce | b0a443d8070a51481afdf75767b3b2faa34b813d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 285 | sce | Ex_2_11_c.sce | // Example 2.11.c;Acceptance Angle
clc;
clear;
close;
n1=1.50;//Waveguide Refractive Index
n2=1.47;//Cladding Refractive Index
h= 1.3;// Wavelenght in micrometers
NA=sqrt(n1^2-n2^2);// Numerical Aperture
Oa=asind(NA);//ACCEPTANCE ANGLE
disp(Oa," ACCEPTANCE ANGLE IN DEGREE")
|
724589ab1dc0b51f800aa05983e344cf16164d57 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1967/CH4/EX4.4/4_4.sce | 26d8bf25377bba8c832dbba3bef52bc17c2f6aeb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 237 | sce | 4_4.sce | clc
//initialisation of variables
clear
Cv= 5*4.18*10^7 //ergs deg^-1 mole^-1
T1= 25 //C
P2= 5 //atm
P1= 1 //atm
n= 2/7
//CALCULATIONS
W= Cv*(273+T1)*(1-(P2/P1)^n)
//RESULTS
printf ('Work of expansion = %.2e ergs mole^-1',W)
|
a11e598606b986b80a5ac23d1cb75682e718789a | 1ffd0259451af009bc55a18827746ae10e9da8ef | /task5/lu.sce | 8086359fb78a2edde77ba04cde4971b38aba51bf | [] | no_license | oborovsky/vychmeth | fb7c0f2e77249ec4fea40d7a05dac2740f8e9082 | ccef228095b99798e64946af41029c7b79b505ab | refs/heads/master | 2020-05-31T00:09:44.080491 | 2016-05-05T19:10:18 | 2016-05-05T19:10:18 | 42,015,944 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 418 | sce | lu.sce | x=[0,0.111111,0.222222,0.333333,0.444444,0.555556,0.666667,0.777778,0.888889,1];
y=[0.00131538,0.169062,0.34421,0.493211,0.652135,0.76085,0.866371,0.934396,0.984885,0.999332];
p=poly([-0.0167292,1.85703,-0.827647],'k','c');
xx=0:0.01:1;pp=horner(p,xx);plot(xx,pp,'b');
s=sin((%pi*xx)/2);plot(xx,s,'r');
d1=horner(p,x)-sin(%pi*x/2);
d1=d1.^2;
d=sqrt(sum(d1)/size(d1,2));
plot(x,y,'b*');
xgrid();
xtitle('lu','X', 'Y');
|
294d44332ef0118c3676ab84e5256d00d2beab45 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH2/EX2.2/Ex2_2.sce | 6e764fcb8af58d44c50194294d4aa82142365da3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 670 | sce | Ex2_2.sce |
//Ex2_2
clc;
// Given:
// (a) Be(8)= 2 He(4)
// (b) Kr(80)= 2 Ar(40)
// (c) Cd(108)= 2 Cr(54)
// Solution:
m1=8.0053-2*4.00260;
m2=79.81638-2*39.96238;
m3=107.90418-2*53.93888;
if m1>0 then
printf("\n Case (a) Fission is possible since m1= %f",m1)
else
printf("\n Case (a) Fission is not possiblesince m1= %f",m1)
end
if m2>0 then
printf("\n Case (b) Fission is possible since m2= %f",m2)
else
printf("\n Case (b) Fission is not possible since m2= %f",m2)
end
if m3>0 then
printf("\n Case (c) Fission is possible since m3= %f",m3)
else
printf("\n Case (c) Fission is not possible since m3= %f",m3)
end
|
cc4652c811e406de9cc40092e2a6eacd1e6b3877 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2840/CH1/EX1.7/ex1_7.sce | bd4f457747a76a361e1c83c2750e6c8f5b5dd895 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 287 | sce | ex1_7.sce | clc;
clear all;
l = 7; // Length of rubber cube
n = 2e7; // Rigidity modulus in dyne per cm square
F = 200*1000*981; // Force in dyne
A = 49; // Area in cm square
theta = (F/(A*n));
disp('rad',theta,'Shearing stress is ' ) ;
deltal = l*theta;
disp('cm',deltal, 'Change is' );
|
46beca109c0710017a7f15f793272a4248ed9ead | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH5/EX5.6/Ex5_6.sce | a9a9dee633abd0a24da6f99c22f791940d1b5456 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 579 | sce | Ex5_6.sce | clc
ha = 260 // Enthalpy of air in kJ/kg
hg = 912 // Enthalpy of gas in kJ/kg
Va = 270 // Velocity of air in m/s
wf = 0.0190 // mass of fuel in Kg
wa = 1 // mass of air in Kg
Ef = 44500 // Chemical energy of fuel in kJ/kg
Q = 21 // Heat loss from the engine in kJ/kg
printf("\n Example 5.6")
Eg = 0.05*wf*Ef/(1+wf) // As 5% of chemical energy is not released in reaction
wg = wa+wf // mass of flue gas
Vg = sqrt(2000*(((ha+(Va^2*0.001)/2+(wf*Ef)-Q)/(1+wf))-hg-Eg))
printf("\n Velocity of exhaust gas is %d m/s",Vg)
//Answer given in textbook is wrong
|
322c62abbfe22077f76ea276cd7396b409a7d5a9 | 4bbc2bd7e905b75d38d36d8eefdf3e34ba805727 | /ee_scicoslab/scicos_flex/dspic/macros/flex_blocks/FLEX-Communication/FLEX_802154d_config.sci | cb565d8d4a311b398dff37e3e8e8cf5ee74038d6 | [] | 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 | 2,890 | sci | FLEX_802154d_config.sci | // Expected integer params
// ipar[0] := local_address
// ipar[1] := pan_id
// ipar[2] := channel_id
// ipar[3] := coord_addr
function [x,y,typ] = FLEX_802154d_config(job,arg1,arg2)
x=[];y=[];typ=[];
select job
case 'plot' then
exprs=arg1.graphics.exprs;
local_address=exprs(1);
pan_id=exprs(2);
channel_id=exprs(3);
coord_addr=exprs(4);
standard_draw(arg1)
case 'getinputs' then
[x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then
[x,y,typ]=standard_outputs(arg1)
case 'getorigin' then
[x,y]=standard_origin(arg1)
case 'set' then
x=arg1
model=arg1.model;graphics=arg1.graphics;
exprs=graphics.exprs;
while %t do
[ok, local_address, pan_id, channel_id, coord_addr, exprs]=..
getvalue('802.15.4 Device Params',..
['Local Address [1...255]:';..
'PanID [1...255]';..
'Radio Channel [11...26]';..
'Coordinator Address [1...255]'],..
list('vec',-1,'vec',-1,'vec',-1,'vec',-1),exprs)
if ~ok then break,end
if(local_address<1 | local_address>255) then
warning('Invalid range for Local Address. Keeping previous values.');
break;
end
if(pan_id<1 | pan_id>255) then
warning('Invalid range for PanID. Keeping previous values.');
break;
end
if(channel_id<11 | channel_id>26) then
warning('Invalid range for Radio Channel. Keeping previous values.');
break;
end
if(coord_addr<1 | coord_addr>255) then
warning('Invalid range for Coordinator Address. Keeping previous values.');
break;
end
in=[],
out=[],
// if exists('outport') then out=ones(outport,1), else out=1, end
[model,graphics,ok]=check_io(model,graphics,in,out,1,[])
if ok then
graphics.exprs=exprs;
model.rpar=[];
model.ipar=[local_address; pan_id; channel_id; coord_addr];
model.dstate=[];
x.graphics=graphics;x.model=model
break
end
end
case 'define' then
local_address=2;
pan_id=1;
channel_id=24;
coord_addr=1;
model=scicos_model()
model.sim=list('flex_simple802154_device_config',4)
model.in=[],
model.out=[],
//if exists('outport') then model.out=ones(outport,1), else model.out=1, end
model.evtin=1
model.rpar=[]
model.ipar=[local_address; pan_id; channel_id; coord_addr];
model.dstate=[];
model.blocktype='d'
model.dep_ut=[%t %f]
exprs=[sci2exp(local_address);..
sci2exp(pan_id);..
sci2exp(channel_id);..
sci2exp(coord_addr)]
gr_i=['xstringb(orig(1),orig(2),..
[''FLEX 802.15.4'';..
''DEVICE'';..
''CONFIG''],..
sz(1),sz(2),''fill'');']
x=standard_define([3 2],model,exprs,gr_i)
end
endfunction
|
fb20fd43bf6bbd9539fd0d09e5a537999f0de5e1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /845/CH6/EX6.22/Ex6_22.sce | e1bf6e2bbf5f1aacbdbed49dcd29f0c652da1911 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 768 | sce | Ex6_22.sce | //Example 6.22
clc
clear
x = 3:8;
y = [0.205 0.24 0.259 0.262 0.25 0.224];
n = length(x);
del = %nan*ones(n,5);
del(:,1) = y';
for j = 2:5
for i = 1:n-j+1
del(i,j) = del(i+1,j-1) - del(i,j-1);
end
end
X = poly(0, "X");
x0 = x(1);
y0 = y(1);
h = x(2) - x(1);
p = (X-x0)/h;
del0 = del(1,:);
del0 = round(del0*10^4)/10^4;
del0 = del0(1:find(del0==0)-1);
Y = 0;
for i = 0:length(del0)-1
t = 1;
for j = 1:i
t = t * (p-j+1);
end
Y = Y + t*del0(i+1)/factorial(i);
end
disp(Y,"y = ")
dydx = derivat(Y);
minx = roots(dydx);
miny = round(horner(Y,minx)*10^5)/10^5;
disp(minx,"min_x = ")
disp(miny,"min_y = ")
//min_y value is incorrectly displayed in textbook as 0.25425 instead of 0.26278
|
3e831b74b080c213ab5b725f2fe5d9bcd6f69dcf | 449d555969bfd7befe906877abab098c6e63a0e8 | /1049/CH7/EX7.24/ch7_24.sce | eeea3efaeeed66b4c951f736beeec11044903ff0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 273 | sce | ch7_24.sce | clear;
clc;
tc=.006;
R=10;
L=R*tc;
f=2000;
T=1/f;
V_o=50;
V_s=100;
a=V_o/V_s;
T_on=a*T;
T_off=T-T_on;
dI=V_o*T_off/L;
I_o=V_o/R;
I2=I_o+dI/2; printf("max value of load current=%.3f A",I2);
I1=I_o-dI/2; printf("\nmin value of load current=%.3f A",I1);
|
6f7c790fdd278016b0d8f34a80fe4cbeb20b0681 | 449d555969bfd7befe906877abab098c6e63a0e8 | /842/CH11/EX11.8/Example11_8.sce | ce044e133002ae646354793e24a6d8872c43e321 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 229 | sce | Example11_8.sce | //clear//
//Example 11.8:Nyquist criterion for Discrete Time Systems
//Nyquist Plot
//Discrete Time System
z = %z;
//Open Loop Transfer Function
F = syslin('d',[1/(z*(z+0.5))])
clf;
nyquist(F)
show_margins(F,'nyquist')
|
de4f8808ce94ce9cc3d35ee73b140ca4ecf80633 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2777/CH6/EX6.23/Ex6_23.sce | 0fb8abaf4be5c7d0cfa2d2724a9d59ab376d5810 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,232 | sce | Ex6_23.sce |
// ELECTRICAL MACHINES
// R.K.Srivastava
// First Impression 2011
// CENGAGE LEARNING INDIA PVT. LTD
// CHAPTER : 6 : SYNCHRONOUS MACHINES
// EXAMPLE : 6.23
clear ; clc ; close ; // Clear the work space and console
// GIVEN DATA
p = 4; // Number of the poles in the Alternator
f = 50; // Frequency in Hertz
pkw = 500; // Alternator delivering load in kilo-watts
pkwinc = 1000; // Generator increases its share of the common elictrical in kilo-watts
Kj = 1.5; // Inertia acceleration coefficient for the combined prime mover-alternator in N-m/elec deg/second square
Kd = 12; // Damping torque coefficient in N-m/elec deg/second
delta1 = 9; // Initial value of the Power angle in degree
// CALCULATIONS
delta2 = (pkwinc/pkw)*delta1; // Final value (maximum value) of the Power angle in degree (considering Linear variation)
ws = (4*%pi*f)/p; // Rotational speed in Radians per second
Ts = (pkw*1000)/ws; // Synchornizing torque at 500kW in N-m
Ks = Ts/delta1; // Synchornizing torque cofficient at 500kW in N-m/elec-deg
// Laplace transform of the swing Equation can be written as :- s^2 + ((Kd/Kj)*s) + (Ks/Kj) = 0, s^2 + (12/1.5)s + (353.86/1.5) = 0 and compring with the standard equation s^2 + s(2*zeta*Wn) + Wn^2 = 0 we get:- mentined below (refer page no. 454 and 455)
Wn = sqrt(Ks/Kj); // Natural frequency of oscillations in Radians per second
fn = Wn/(2*%pi); // Frequency of natural oscillations in Hertz
zeta = (1*Kd)/(2*Wn*Kj); // Damping ratio
Wd = Wn*(sqrt(1-zeta^2)); // Frequency of damped oscillations in radians/s
fd = Wd/(2*%pi); // Frequency of damped oscillations in Hertz
ts = 5/(zeta*Wn); // Settling time in second
deltamax = delta1 + 1.42*(delta2-delta1); // The maximum overshoot for damping ratio of 0.2604 is about 42% the maximum appoximate value of the overshoot in terms of 1% tolearance band in Electrical degree
// DISPLAY RESULTS
disp("EXAMPLE : 6.23: SOLUTION :-");
printf("\n (a.1) Final value (maximum value) of the Power angle (considering Linear variation), delta2 = %.f degree \n",delta2)
printf("\n (a.2) Natural frequency of oscillations, Ns = %.2f radians/s \n",Wn)
printf("\n (a.3) Damping ratio, zeta = %.4f \n",zeta)
printf("\n (a.4) Frequency of damped oscillations, Wd = %.2f radians/s \n",Wd)
printf("\n (a.5) Settling time, ts = %.2f seconds \n",ts)
printf("\n (b) The maximum overshoot for damping ratio of 0.2604 is about 42 percent the maximum appoximate value of the overshoot in terms of 1 percent tolearance band is, deltamax = %.2f degree \n",deltamax)
printf("\n\n FOR CASE (C) CANNOT BE DO IT IN THIS BECAUSE AS IT REQUIRES MATLAB SIMULINK \n")
|
9557b798aa9e8b414ad42d1f21cc1692ce806a4c | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects - Kopie/CONT/VW42LKU/ATWM1_Working_Memory_MEG_VW42LKU_Session1/ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run1.sce | bd7be42818dd8d231c837639b48eb4d3d4e13dc4 | [] | no_license | atwm1/Presentation | 65c674180f731f050aad33beefffb9ba0caa6688 | 9732a004ca091b184b670c56c55f538ff6600c08 | refs/heads/master | 2020-04-15T14:04:41.900640 | 2020-02-14T16:10:11 | 2020-02-14T16:10:11 | 56,771,016 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 49,600 | sce | ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run1.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_run1";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monitor_sounds = false;
active_buttons = 2;
response_matching = simple_matching;
button_codes = 10, 20;
default_font_size = 28;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 300; width = 300; color = 0, 0, 0;} frame1;
box { height = 290; width = 290; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 290; width = 290; color = 128, 128, 128;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# Start of experiment (MEG only) - sync with CTF software
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
} expStart;
time = 0;
duration = 1000;
code = "ExpStart";
port_code = 80;
};
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 10000;
#mri_pulse = 1;
code = "BaselinePre";
port_code = 91;
};
TEMPLATE "ATWM1_Working_Memory_MEG.tem" {
trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
43 62 292 292 399 125 2042 2992 2592 fixation_cross gabor_061 gabor_150 gabor_180 gabor_023 gabor_061_alt gabor_150 gabor_180 gabor_023_alt "1_1_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2600_gabor_patch_orientation_061_150_180_023_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_180_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_1_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_180_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1742 2992 2342 fixation_cross gabor_115 gabor_007 gabor_029 gabor_135 gabor_115_alt gabor_007 gabor_029 gabor_135_alt "1_2_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2350_gabor_patch_orientation_115_007_029_135_target_position_2_3_retrieval_position_2" gabor_circ gabor_052_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_2_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_052_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1742 2992 2342 fixation_cross gabor_143 gabor_110 gabor_081 gabor_001 gabor_143 gabor_110_alt gabor_081 gabor_001_alt "1_3_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2350_gabor_patch_orientation_143_110_081_001_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_081_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_3_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_081_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1742 2992 2092 fixation_cross gabor_009 gabor_138 gabor_054 gabor_028 gabor_009_alt gabor_138 gabor_054 gabor_028_alt "1_4_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1750_3000_2100_gabor_patch_orientation_009_138_054_028_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_164_framed blank blank blank blank fixation_cross_target_position_2_3 "1_4_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_164_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1792 2992 1942 fixation_cross gabor_104 gabor_055 gabor_132 gabor_014 gabor_104_alt gabor_055 gabor_132 gabor_014_alt "1_5_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_1950_gabor_patch_orientation_104_055_132_014_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_132_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_5_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_132_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2092 2992 2542 fixation_cross gabor_090 gabor_123 gabor_051 gabor_015 gabor_090 gabor_123 gabor_051_alt gabor_015_alt "1_6_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2550_gabor_patch_orientation_090_123_051_015_target_position_1_2_retrieval_position_2" gabor_circ gabor_168_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_6_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_168_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1992 2992 1892 fixation_cross gabor_102 gabor_078 gabor_054 gabor_027 gabor_102 gabor_078_alt gabor_054_alt gabor_027 "1_7_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_102_078_054_027_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_167_framed blank blank blank blank fixation_cross_target_position_1_4 "1_7_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_167_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2092 2992 2042 fixation_cross gabor_052 gabor_022 gabor_086 gabor_069 gabor_052_alt gabor_022 gabor_086_alt gabor_069 "1_8_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2050_gabor_patch_orientation_052_022_086_069_target_position_2_4_retrieval_position_2" gabor_circ gabor_159_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_8_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_159_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1842 2992 2442 fixation_cross gabor_137 gabor_100 gabor_081 gabor_023 gabor_137_alt gabor_100_alt gabor_081 gabor_023 "1_9_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2450_gabor_patch_orientation_137_100_081_023_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_023_framed blank blank blank blank fixation_cross_target_position_3_4 "1_9_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_023_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1792 2992 1942 fixation_cross gabor_076 gabor_007 gabor_091 gabor_140 gabor_076_alt gabor_007 gabor_091_alt gabor_140 "1_10_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1800_3000_1950_gabor_patch_orientation_076_007_091_140_target_position_2_4_retrieval_position_1" gabor_076_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_10_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_076_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2192 2992 2192 fixation_cross gabor_002 gabor_030 gabor_068 gabor_180 gabor_002 gabor_030_alt gabor_068 gabor_180_alt "1_11_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2200_gabor_patch_orientation_002_030_068_180_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_116_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_11_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_116_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 1892 fixation_cross gabor_136 gabor_068 gabor_111 gabor_094 gabor_136_alt gabor_068 gabor_111_alt gabor_094 "1_12_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_136_068_111_094_target_position_2_4_retrieval_position_2" gabor_circ gabor_068_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_12_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_068_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1892 2992 2292 fixation_cross gabor_110 gabor_174 gabor_048 gabor_154 gabor_110 gabor_174 gabor_048_alt gabor_154_alt "1_13_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2300_gabor_patch_orientation_110_174_048_154_target_position_1_2_retrieval_position_2" gabor_circ gabor_174_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_13_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_174_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 2192 2992 2192 fixation_cross gabor_172 gabor_054 gabor_005 gabor_134 gabor_172_alt gabor_054 gabor_005 gabor_134_alt "1_14_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2200_3000_2200_gabor_patch_orientation_172_054_005_134_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_089_framed blank blank blank blank fixation_cross_target_position_2_3 "1_14_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_089_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2492 fixation_cross gabor_106 gabor_174 gabor_059 gabor_043 gabor_106_alt gabor_174 gabor_059_alt gabor_043 "1_15_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2500_gabor_patch_orientation_106_174_059_043_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_088_framed blank blank blank blank fixation_cross_target_position_2_4 "1_15_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_088_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2042 2992 1892 fixation_cross gabor_156 gabor_133 gabor_004 gabor_118 gabor_156_alt gabor_133_alt gabor_004 gabor_118 "1_16_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_1900_gabor_patch_orientation_156_133_004_118_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_070_framed blank blank blank blank fixation_cross_target_position_3_4 "1_16_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_070_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1842 2992 2142 fixation_cross gabor_007 gabor_063 gabor_097 gabor_033 gabor_007 gabor_063 gabor_097_alt gabor_033_alt "1_17_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2150_gabor_patch_orientation_007_063_097_033_target_position_1_2_retrieval_position_1" gabor_007_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_17_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_007_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 2142 fixation_cross gabor_027 gabor_090 gabor_003 gabor_178 gabor_027 gabor_090_alt gabor_003_alt gabor_178 "1_18_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2150_gabor_patch_orientation_027_090_003_178_target_position_1_4_retrieval_position_1" gabor_027_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_18_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_027_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1792 2992 2542 fixation_cross gabor_092 gabor_013 gabor_164 gabor_134 gabor_092_alt gabor_013_alt gabor_164 gabor_134 "1_19_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1800_3000_2550_gabor_patch_orientation_092_013_164_134_target_position_3_4_retrieval_position_1" gabor_047_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_19_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_047_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1742 2992 2192 fixation_cross gabor_125 gabor_100 gabor_057 gabor_162 gabor_125 gabor_100 gabor_057_alt gabor_162_alt "1_20_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_125_100_057_162_target_position_1_2_retrieval_position_2" gabor_circ gabor_146_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_20_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_146_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 2142 fixation_cross gabor_175 gabor_007 gabor_043 gabor_064 gabor_175 gabor_007_alt gabor_043 gabor_064_alt "1_21_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2150_gabor_patch_orientation_175_007_043_064_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_091_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_21_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_091_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 2492 fixation_cross gabor_005 gabor_173 gabor_122 gabor_064 gabor_005_alt gabor_173 gabor_122_alt gabor_064 "1_22_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2500_gabor_patch_orientation_005_173_122_064_target_position_2_4_retrieval_position_2" gabor_circ gabor_173_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_22_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_173_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1842 2992 2442 fixation_cross gabor_084 gabor_065 gabor_001 gabor_106 gabor_084_alt gabor_065 gabor_001 gabor_106_alt "1_23_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2450_gabor_patch_orientation_084_065_001_106_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_001_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_23_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_001_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1792 2992 1992 fixation_cross gabor_105 gabor_153 gabor_021 gabor_048 gabor_105 gabor_153_alt gabor_021 gabor_048_alt "1_24_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_105_153_021_048_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_071_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_24_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_071_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2192 2992 2342 fixation_cross gabor_027 gabor_160 gabor_141 gabor_093 gabor_027_alt gabor_160 gabor_141 gabor_093_alt "1_25_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2350_gabor_patch_orientation_027_160_141_093_target_position_2_3_retrieval_position_2" gabor_circ gabor_160_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_25_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_160_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 2292 fixation_cross gabor_155 gabor_003 gabor_069 gabor_137 gabor_155_alt gabor_003_alt gabor_069 gabor_137 "1_26_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2300_gabor_patch_orientation_155_003_069_137_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_019_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_26_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_019_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1842 2992 2242 fixation_cross gabor_067 gabor_109 gabor_033 gabor_087 gabor_067_alt gabor_109 gabor_033 gabor_087_alt "1_27_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2250_gabor_patch_orientation_067_109_033_087_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_033_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_27_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_033_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1792 2992 2592 fixation_cross gabor_013 gabor_076 gabor_091 gabor_123 gabor_013_alt gabor_076_alt gabor_091 gabor_123 "1_28_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1800_3000_2600_gabor_patch_orientation_013_076_091_123_target_position_3_4_retrieval_position_1" gabor_153_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_28_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_153_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1942 2992 2142 fixation_cross gabor_157 gabor_052 gabor_174 gabor_003 gabor_157_alt gabor_052_alt gabor_174 gabor_003 "1_29_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1950_3000_2150_gabor_patch_orientation_157_052_174_003_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_003_framed blank blank blank blank fixation_cross_target_position_3_4 "1_29_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_003_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1742 2992 2592 fixation_cross gabor_091 gabor_147 gabor_131 gabor_168 gabor_091 gabor_147 gabor_131_alt gabor_168_alt "1_30_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2600_gabor_patch_orientation_091_147_131_168_target_position_1_2_retrieval_position_1" gabor_091_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_30_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_091_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2242 2992 2242 fixation_cross gabor_126 gabor_111 gabor_141 gabor_065 gabor_126 gabor_111_alt gabor_141 gabor_065_alt "1_31_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2250_gabor_patch_orientation_126_111_141_065_target_position_1_3_retrieval_position_1" gabor_171_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_31_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_171_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 2092 fixation_cross gabor_018 gabor_134 gabor_065 gabor_093 gabor_018_alt gabor_134_alt gabor_065 gabor_093 "1_32_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2100_gabor_patch_orientation_018_134_065_093_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_093_framed blank blank blank blank fixation_cross_target_position_3_4 "1_32_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_093_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1892 2992 2592 fixation_cross gabor_111 gabor_164 gabor_050 gabor_132 gabor_111 gabor_164_alt gabor_050 gabor_132_alt "1_33_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1900_3000_2600_gabor_patch_orientation_111_164_050_132_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_180_framed blank blank blank blank fixation_cross_target_position_1_3 "1_33_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_180_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2242 fixation_cross gabor_147 gabor_009 gabor_165 gabor_059 gabor_147_alt gabor_009_alt gabor_165 gabor_059 "1_34_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2250_gabor_patch_orientation_147_009_165_059_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_025_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_34_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_025_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1992 2992 2242 fixation_cross gabor_180 gabor_151 gabor_094 gabor_071 gabor_180_alt gabor_151 gabor_094 gabor_071_alt "1_35_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2000_3000_2250_gabor_patch_orientation_180_151_094_071_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_045_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_35_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_045_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1792 2992 1992 fixation_cross gabor_048 gabor_025 gabor_135 gabor_109 gabor_048 gabor_025 gabor_135_alt gabor_109_alt "1_36_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_048_025_135_109_target_position_1_2_retrieval_position_2" gabor_circ gabor_070_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_36_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_070_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2042 2992 2342 fixation_cross gabor_142 gabor_174 gabor_025 gabor_069 gabor_142 gabor_174 gabor_025_alt gabor_069_alt "1_37_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2350_gabor_patch_orientation_142_174_025_069_target_position_1_2_retrieval_position_1" gabor_006_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_37_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_006_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1942 2992 2542 fixation_cross gabor_045 gabor_111 gabor_063 gabor_180 gabor_045_alt gabor_111_alt gabor_063 gabor_180 "1_38_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1950_3000_2550_gabor_patch_orientation_045_111_063_180_target_position_3_4_retrieval_position_1" gabor_045_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_38_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_045_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2042 2992 2042 fixation_cross gabor_043 gabor_149 gabor_131 gabor_165 gabor_043_alt gabor_149 gabor_131_alt gabor_165 "1_39_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_043_149_131_165_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_025_framed blank blank blank blank fixation_cross_target_position_2_4 "1_39_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_025_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 2092 fixation_cross gabor_154 gabor_170 gabor_039 gabor_126 gabor_154 gabor_170_alt gabor_039_alt gabor_126 "1_40_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2100_gabor_patch_orientation_154_170_039_126_target_position_1_4_retrieval_position_1" gabor_154_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_40_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_154_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 2042 fixation_cross gabor_160 gabor_027 gabor_074 gabor_008 gabor_160 gabor_027_alt gabor_074_alt gabor_008 "1_41_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2050_gabor_patch_orientation_160_027_074_008_target_position_1_4_retrieval_position_1" gabor_160_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_41_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_160_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1842 2992 2392 fixation_cross gabor_016 gabor_083 gabor_150 gabor_041 gabor_016_alt gabor_083 gabor_150_alt gabor_041 "1_42_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1850_3000_2400_gabor_patch_orientation_016_083_150_041_target_position_2_4_retrieval_position_1" gabor_016_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_42_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_016_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2092 2992 2192 fixation_cross gabor_053 gabor_142 gabor_124 gabor_086 gabor_053_alt gabor_142 gabor_124_alt gabor_086 "1_43_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2200_gabor_patch_orientation_053_142_124_086_target_position_2_4_retrieval_position_2" gabor_circ gabor_142_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_43_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_142_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2092 2992 2392 fixation_cross gabor_142 gabor_035 gabor_159 gabor_075 gabor_142 gabor_035 gabor_159_alt gabor_075_alt "1_44_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2400_gabor_patch_orientation_142_035_159_075_target_position_1_2_retrieval_position_1" gabor_002_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_44_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_002_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2192 2992 1992 fixation_cross gabor_034 gabor_016 gabor_124 gabor_150 gabor_034_alt gabor_016 gabor_124_alt gabor_150 "1_45_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2000_gabor_patch_orientation_034_016_124_150_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_150_framed blank blank blank blank fixation_cross_target_position_2_4 "1_45_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_150_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1892 2992 1942 fixation_cross gabor_088 gabor_066 gabor_137 gabor_024 gabor_088_alt gabor_066 gabor_137_alt gabor_024 "1_46_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1900_3000_1950_gabor_patch_orientation_088_066_137_024_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_137_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_46_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_137_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1892 2992 2042 fixation_cross gabor_168 gabor_010 gabor_094 gabor_123 gabor_168 gabor_010 gabor_094_alt gabor_123_alt "1_47_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2050_gabor_patch_orientation_168_010_094_123_target_position_1_2_retrieval_position_1" gabor_033_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_47_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_033_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2192 2992 2092 fixation_cross gabor_066 gabor_032 gabor_114 gabor_144 gabor_066_alt gabor_032_alt gabor_114 gabor_144 "1_48_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2100_gabor_patch_orientation_066_032_114_144_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_005_framed blank blank blank blank fixation_cross_target_position_3_4 "1_48_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2242 2992 1992 fixation_cross gabor_085 gabor_025 gabor_058 gabor_174 gabor_085_alt gabor_025 gabor_058 gabor_174_alt "1_49_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2000_gabor_patch_orientation_085_025_058_174_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_058_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_49_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_058_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 2492 fixation_cross gabor_084 gabor_008 gabor_065 gabor_124 gabor_084 gabor_008 gabor_065_alt gabor_124_alt "1_50_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2500_gabor_patch_orientation_084_008_065_124_target_position_1_2_retrieval_position_2" gabor_circ gabor_008_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_50_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_008_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1892 2992 2392 fixation_cross gabor_145 gabor_130 gabor_002 gabor_110 gabor_145_alt gabor_130_alt gabor_002 gabor_110 "1_51_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2400_gabor_patch_orientation_145_130_002_110_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_065_framed blank blank blank blank fixation_cross_target_position_3_4 "1_51_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 2242 2992 2092 fixation_cross gabor_174 gabor_084 gabor_133 gabor_118 gabor_174_alt gabor_084 gabor_133 gabor_118_alt "1_52_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2250_3000_2100_gabor_patch_orientation_174_084_133_118_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_118_framed blank blank blank blank fixation_cross_target_position_2_3 "1_52_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_118_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1792 2992 2342 fixation_cross gabor_109 gabor_062 gabor_079 gabor_033 gabor_109_alt gabor_062_alt gabor_079 gabor_033 "1_53_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2350_gabor_patch_orientation_109_062_079_033_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_033_framed blank blank blank blank fixation_cross_target_position_3_4 "1_53_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_033_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1892 2992 2542 fixation_cross gabor_102 gabor_061 gabor_139 gabor_076 gabor_102_alt gabor_061 gabor_139_alt gabor_076 "1_54_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2550_gabor_patch_orientation_102_061_139_076_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_028_framed blank blank blank blank fixation_cross_target_position_2_4 "1_54_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_028_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1742 2992 2292 fixation_cross gabor_119 gabor_079 gabor_101 gabor_011 gabor_119_alt gabor_079 gabor_101 gabor_011_alt "1_55_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2300_gabor_patch_orientation_119_079_101_011_target_position_2_3_retrieval_position_2" gabor_circ gabor_033_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_55_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_033_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2042 2992 2042 fixation_cross gabor_171 gabor_151 gabor_086 gabor_045 gabor_171 gabor_151_alt gabor_086_alt gabor_045 "1_56_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_171_151_086_045_target_position_1_4_retrieval_position_1" gabor_171_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_56_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_171_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1892 2992 2292 fixation_cross gabor_028 gabor_154 gabor_048 gabor_108 gabor_028 gabor_154 gabor_048_alt gabor_108_alt "1_57_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1900_3000_2300_gabor_patch_orientation_028_154_048_108_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_048_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_57_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_048_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2242 2992 2392 fixation_cross gabor_053 gabor_114 gabor_088 gabor_030 gabor_053_alt gabor_114 gabor_088 gabor_030_alt "1_58_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2400_gabor_patch_orientation_053_114_088_030_target_position_2_3_retrieval_position_2" gabor_circ gabor_159_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_58_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_159_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1942 2992 1942 fixation_cross gabor_040 gabor_150 gabor_025 gabor_093 gabor_040 gabor_150 gabor_025_alt gabor_093_alt "1_59_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1950_3000_1950_gabor_patch_orientation_040_150_025_093_target_position_1_2_retrieval_position_1" gabor_040_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_59_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_040_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2242 2992 1942 fixation_cross gabor_118 gabor_053 gabor_008 gabor_080 gabor_118 gabor_053_alt gabor_008_alt gabor_080 "1_60_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_1950_gabor_patch_orientation_118_053_008_080_target_position_1_4_retrieval_position_1" gabor_118_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_60_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_118_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2092 2992 2492 fixation_cross gabor_117 gabor_058 gabor_097 gabor_041 gabor_117 gabor_058 gabor_097_alt gabor_041_alt "1_61_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2500_gabor_patch_orientation_117_058_097_041_target_position_1_2_retrieval_position_1" gabor_164_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_61_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_164_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2042 2992 2192 fixation_cross gabor_052 gabor_131 gabor_082 gabor_164 gabor_052 gabor_131_alt gabor_082_alt gabor_164 "1_62_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2200_gabor_patch_orientation_052_131_082_164_target_position_1_4_retrieval_position_1" gabor_007_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_62_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_007_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 2092 2992 1892 fixation_cross gabor_157 gabor_014 gabor_089 gabor_042 gabor_157 gabor_014 gabor_089_alt gabor_042_alt "1_63_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2100_3000_1900_gabor_patch_orientation_157_014_089_042_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_177_framed blank blank blank blank fixation_cross_target_position_1_2 "1_63_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_177_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 2442 fixation_cross gabor_055 gabor_078 gabor_143 gabor_165 gabor_055_alt gabor_078 gabor_143 gabor_165_alt "1_64_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_055_078_143_165_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_143_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_64_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 2142 2992 1992 fixation_cross gabor_130 gabor_104 gabor_167 gabor_052 gabor_130_alt gabor_104 gabor_167_alt gabor_052 "1_65_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2150_3000_2000_gabor_patch_orientation_130_104_167_052_target_position_2_4_retrieval_position_1" gabor_082_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_65_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_082_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2242 2992 2442 fixation_cross gabor_041 gabor_098 gabor_113 gabor_068 gabor_041_alt gabor_098 gabor_113 gabor_068_alt "1_66_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2450_gabor_patch_orientation_041_098_113_068_target_position_2_3_retrieval_position_2" gabor_circ gabor_098_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_66_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_098_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2142 2992 2292 fixation_cross gabor_006 gabor_154 gabor_119 gabor_035 gabor_006_alt gabor_154_alt gabor_119 gabor_035 "1_67_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2300_gabor_patch_orientation_006_154_119_035_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_084_framed blank blank blank blank fixation_cross_target_position_3_4 "1_67_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_084_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1742 2992 2142 fixation_cross gabor_176 gabor_002 gabor_154 gabor_112 gabor_176_alt gabor_002_alt gabor_154 gabor_112 "1_68_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2150_gabor_patch_orientation_176_002_154_112_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_112_framed blank blank blank blank fixation_cross_target_position_3_4 "1_68_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 1892 fixation_cross gabor_024 gabor_043 gabor_159 gabor_097 gabor_024 gabor_043 gabor_159_alt gabor_097_alt "1_69_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_1900_gabor_patch_orientation_024_043_159_097_target_position_1_2_retrieval_position_1" gabor_070_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_69_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_070_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 2192 2992 2242 fixation_cross gabor_150 gabor_125 gabor_095 gabor_067 gabor_150_alt gabor_125 gabor_095_alt gabor_067 "1_70_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2200_3000_2250_gabor_patch_orientation_150_125_095_067_target_position_2_4_retrieval_position_1" gabor_150_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_70_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_150_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 5000;
code = "BaselinePost";
port_code = 92;
}; |
76130b94c06f0858801c047729855939bb4a9a83 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/macros/util/zeros.sci | e2134a9dd7f94bb3aba06a14d15820a69a523f55 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 118 | sci | zeros.sci | function z=zeros(n,m)
[lhs,rhs]=argn(0)
if rhs==1 then
z=0*ones(n);return;end
if rhs==2 then
z=0*ones(n,m);return;end
|
f0ad1f8b8e58613ad20fb9614714fe2f629f3795 | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-HypothesisTesting/SP_ANCOVA-NZ-01.tst | aefddeda819c7caa024942789c00dd05904e5076 | [] | no_license | kamleshm/intern_fuzzy | c2dd079bf08bede6bca79af898036d7a538ab4e2 | aaef3c9dc9edf3759ef0b981597746d411d05d34 | refs/heads/master | 2021-01-23T06:25:46.162332 | 2017-07-12T07:12:25 | 2017-07-12T07:12:25 | 93,021,923 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,398 | tst | SP_ANCOVA-NZ-01.tst | -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Netezza
--
-- Copyright (c): 2014 Fuzzy Logix, LLC
--
-- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC.
-- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC.
-- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade
-- secret or copyright law. Dissemination of this information or reproduction of this material is
-- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC.
--
--
-- Functional Test Specifications:
--
-- Test Category: Hypothesis Testing Functions
--
-- Test Unit Number: SP_ANCOVA-NZ-01
--
-- Name(s): SP_ANCOVA
--
-- Description: FLAncovaUdt performs Analysis of Covariance (ANCOVA).
-- ANCOVA is used to test if population means of a dependent variable
-- are equal across levels of a categorical independent variable,
-- while controlling for the effects of other continuous variables
-- (known as covariates) that are not of primary interest.
--
-- Applications:
--
-- Signature: FLAncovaUdt (m_id BIGINT,
-- cat VARCHAR(100),
-- num_x DOUBLE PRECISION,
-- num_y DOUBLE PRECISION,
-- Sig DOUBLE PRECISION)
-- RETURNS TABLE (o_m_id BIGINT,
-- ss_between DOUBLE PRECISION,
-- ss_within DOUBLE PRECISION,
-- ss_total DOUBLE PRECISION,
-- df_between BIGINT,
-- df_within BIGINT,
-- df_total BIGINT,
-- ms_between DOUBLE PRECISION,
-- ms_within DOUBLE PRECISION,
-- f_stat DOUBLE PRECISION,
-- p_value DOUBLE PRECISION,
-- crit_fstat DOUBLE PRECISION)
--
-- Parameters: See Documentation
--
-- Return value: Table
--
-- Last Updated: 07-07-2017
--
-- Author: <Joe.Fan@fuzzyl.com>
-- Author: Kamlesh Meena
-- BEGIN: TEST SCRIPT
\time
--.run file=../PulsarLogOn.sql
-- BEGIN: NEGATIVE TEST(s)
---- Initialization
DROP TABLE tblAncovaTest_Pulsar IF EXISTS;
CREATE TABLE tblAncovaTest_Pulsar
(
OBSID INTEGER,
GROUPID VARCHAR(10),
XVAL FLOAT,
YVAL FLOAT)
DISTRIBUTE ON(OBSID);
--The following helps display results correctly but previous analysisID's are lost.
DELETE FROM fzzlANCOVAStats;
-- Case 1: Input validation
-- Case 1a: Empty input table
Exec SP_ANCOVA('tblAncovaTest_Pulsar', 'GROUPID', 'XVAL','YVAL', 0.05);
-- Display result
SELECT *
FROM fzzlANCOVAStats
ORDER BY 1 DESC
LIMIT 1;
-- Result: standard outputs
/*
ERROR [01000] NOTICE: Error occurred while executing PL/pgSQL function SP_ANCOVA
ERROR [01000] NOTICE: line 105 at execute statement
ERROR [HY000] ERROR: cannot EXECUTE NULL query */
-- Case 1b: Negative dataset number
-- Not applicable to Netezza stored process SP_ANCOVA
-- Case 1c: Only 1 GroupID
DELETE FROM tblAncovaTest_Pulsar;
INSERT INTO tblAncovaTest_Pulsar
SELECT ObsID,
'A',
XVal,
YVal
FROM tblAncovaTest;
DELETE FROM fzzlANCOVAStats;
Exec SP_ANCOVA('tblAncovaTest_Pulsar', 'GROUPID', 'XVAL','YVAL', 0.05);
-- Display result
SELECT *
FROM fzzlANCOVAStats
ORDER BY 1 DESC
LIMIT 1;
-- Result: standard outputs
/*
ERROR [01000] NOTICE: Error occurred while executing PL/pgSQL function SP_ANCOVA
ERROR [01000] NOTICE: line 94 at assignment
ERROR [HY000] ERROR: float8div: divide by zero error */
-- Case 1d: bad significance number
DELETE FROM tblAncovaTest_Pulsar;
INSERT INTO tblAncovaTest_Pulsar
SELECT ObsID,
GroupID,
XVal,
YVal
FROM tblAncovaTest;
DELETE FROM fzzlANCOVAStats;
Exec SP_ANCOVA('tblAncovaTest_Pulsar', 'GROUPID', 'XVAL','YVAL', 0);
--Result:
/*ERROR [01000] NOTICE: Error occurred while executing PL/pgSQL function SP_ANCOVA
ERROR [01000] NOTICE: line 98 at assignment
ERROR [HY000] ERROR: Value must be between 0 and 1 */
Exec SP_ANCOVA('tblAncovaTest_Pulsar', 'GROUPID', 'XVAL','YVAL', 1);
--Result:
/*ERROR [01000] NOTICE: Error occurred while executing PL/pgSQL function SP_ANCOVA
ERROR [01000] NOTICE: line 98 at assignment
ERROR [HY000] ERROR: Value must be between 0 and 1 */
Exec SP_ANCOVA('tblAncovaTest_Pulsar', 'GROUPID', 'XVAL','YVAL', -0.05);
--Result:
/*ERROR [01000] NOTICE: Error occurred while executing PL/pgSQL function SP_ANCOVA
ERROR [01000] NOTICE: line 98 at assignment
ERROR [HY000] ERROR: Value must be between 0 and 1 */
Exec SP_ANCOVA('tblAncovaTest_Pulsar', 'GROUPID', 'XVAL','YVAL', 1.05);
--Result:
/*ERROR [01000] NOTICE: Error occurred while executing PL/pgSQL function SP_ANCOVA
ERROR [01000] NOTICE: line 98 at assignment
ERROR [HY000] ERROR: Value must be between 0 and 1 */
-- Display result
SELECT *
FROM fzzlANCOVAStats
ORDER BY 1 DESC;
-- Case 2: YVal = XVal
DELETE FROM tblAncovaTest_Pulsar;
INSERT INTO tblAncovaTest_Pulsar
SELECT ObsID,
GroupID,
XVal,
XVal -- look here
FROM tblAncovaTest;
Exec SP_ANCOVA('tblAncovaTest_Pulsar', 'GROUPID', 'XVAL','YVAL', 0.05);
-- Result:
/*ERROR [01000] NOTICE: Error occurred while executing PL/pgSQL function SP_ANCOVA
ERROR [01000] NOTICE: line 97 at assignment
ERROR [HY000] ERROR: Value must be positive */
---- Wrapup
DROP TABLE tblAncovaTest_Pulsar;
-- END: NEGATIVE TEST(s)
-- BEGIN: POSITIVE TEST(s)
DELETE FROM fzzlANCOVAStats;
-- Case 1: use tblAncovaTest
Exec SP_ANCOVA('tblAncovaTest', 'GROUPID', 'XVAL','YVAL', 0.05);
-- Display result
SELECT *
FROM fzzlANCOVAStats
ORDER BY 1 DESC
LIMIT 1;
-- Result: standard outputs
-- dat = read.table("tblAncovaTest.dat", sep="|", col.names = c("ObsID","GroupID","XVal","YVal"))
-- results=lm(YVal~XVal+GroupID, data=dat)
-- anova(results)
-- END: POSITIVE TEST(s)
\time
-- END: TEST SCRIPT
|
3a68a5714a0c7f83f98419e17f435065f7eb8acc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1499/CH5/EX5.39/s39.sce | c61752cf5adf1a010f50f37869f64f5cecd33536 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 200 | sce | s39.sce | s=%s;
syms k
H=syslin('c',2/(s*(1-2*s)))
// for K/2>-1 or K>-2
nyquist(H)
show_margins(H,'nyquist')
printf("P=1(poles in RHP)")
printf("N=0,hence Z=1")
printf("Therefore,System is unstable")
|
c0aca3344fa2140c322c01c69e70519dbd64ccb8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2579/CH4/EX4.23/Ex4_23.sce | a32cfd858bdfa7e7a48a5253b9ed62565a032116 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 852 | sce | Ex4_23.sce | //Ex:4.23
clc;
clear;
close;
// dl=0.23y, value of dl in E-plane
// dL=0.375y, value of dl in H-plane
// h=15y, height in terms of wavelength y
// L=h^2/8*dl in E-plane
// L=(15*y)^2/8*0.2y=225y^2/1.6y;=140.625y
printf("The value of length L in terms of wavelength y=140.625y");
// OE=atan(h/2L)=atan(15y/2*140.625y)=atan(15/2*140.625)
OE=(atan(15/(2*140.625))*180/%pi);// half flare angle in E-plane in degree
// OH=acos(L/(L+dL))=acos(140.625y/(140.625y+0.375y))=acos(140.625/(140.625+.375))
OH=(acos(140.625/(140.625+0.375))*(180/%pi));// half flare angle in H-plane in degree
//w=2*L*tan(OH)=2*140.625y*tan(4.18)=20.56y, width interms of wavelength y
printf("\n The half flare angle in E-plane = %f degree", OE);
printf("\n The half flare angle in H-plane = %f degree", OH);
printf("\n The width interms of wavelength y= 20.56y"); |
cef7d57b506d66b20db9b9af559491539aea9ce2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3689/CH18/EX18.7/18_7.sce | 289e34aadf542f12dc81bde6d0e5efb314c129d8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 403 | sce | 18_7.sce | ////
//Variable Declaration
T = 22.0 //Temperature of the reaction,°C
k1 = 7.0e-4 //Rate constants for rxn 1, 1/s
k2 = 4.1e-3 //Rate constant for rxn 2, 1/s
k3 = 5.7e-3 //Rate constant for rxn 3, 1/s
//Calculations
phiP1 = k1/(k1+k2+k3)
//Results
printf("\n Percentage of Benzyl Penicillin that under acid catalyzed reaction by path 1: %4.2f ",phiP1*100)
|
349690f2add2036b99a88b251bb8af52792f1b5f | 449d555969bfd7befe906877abab098c6e63a0e8 | /887/CH10/EX10.1/10_1.sce | d0225e7719c89a8fecda95dc368ee4cf40a405eb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 634 | sce | 10_1.sce | clc
//ex10.1
V_ss=2;
R=1*10^3;
V_D=[0:0.001:2];
plot(V_D,10^3*(V_ss-V_D)/R)
xtitle('load line plot','voltage in volts','current in milli-amperes') //milli-10^-3
//we use the equation V_ss=R*i_D+V_D
//at point B
i_D=V_ss/R; //as V_D=0
//at point A
V_D=V_ss; //as i_D=0
//now we see intersection of load line with characteristic and we get following at operating point
V_DQ=0.7; //voltage
I_DQ=1.3*10^-3; //current
//diode characteristic cannot be plotted
disp(V_DQ,'diode voltage at operating point in volts')
disp(I_DQ*10^3,'current at opeating point in milli-amperes') //milli-10^-3
|
332fe942f9c573346cd11c6265931adb862e000c | 7b040f1a7bbc570e36aab9b2ccf77a9e59d3e5c2 | /Scilab/virtual/Self_tuning_controller/ConventionalTuning_Vikas/PIControllerFandisturbance/clientread.sce | f2f1236878e837906c4fb30fbcb0bdba68c17e9f | [] | no_license | advait23/sbhs-manual | e2c380051117e3a36398bb5ad046781f7b379cb9 | d65043acd98334c44a0f0dbf480473c4c4451834 | refs/heads/master | 2021-01-16T19:50:40.218314 | 2012-11-16T04:11:12 | 2012-11-16T04:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 15,633 | sce | clientread.sce | 1742 1310741423839 1310741769406 0.0 251.0 28.1
1743 1310741572227 1310741917781 39.0 50.0 27.3
1744 1310741573215 1310741918781 39.0 50.0 27.4
1745 1310741574216 1310741919781 39.0 50.0 27.3
1746 1310741575216 1310741920796 39.0 50.0 27.4
1747 1310741576206 1310741921781 39.0 50.0 27.5
1748 1310741577216 1310741922781 39.0 50.0 27.6
1749 1310741578215 1310741923781 39.0 50.0 27.7
1750 1310741579214 1310741924765 39.0 50.0 28.0
1751 1310741580200 1310741925781 39.0 50.0 28.3
1752 1310741581214 1310741926765 39.0 50.0 28.6
1753 1310741582216 1310741927781 39.0 50.0 28.9
1754 1310741583216 1310741928781 39.0 50.0 29.4
1755 1310741584216 1310741929781 35.269 50.0 29.8
1756 1310741585216 1310741930796 33.075 50.0 30.5
1757 1310741586216 1310741931781 24.187 50.0 31.4
1758 1310741587216 1310741932781 10.362 50.0 31.9
1759 1310741588215 1310741933781 3.8889 50.0 32.6
1760 1310741589215 1310741934781 0.0 50.0 33.1
1761 1310741590215 1310741935781 0.0 50.0 33.7
1762 1310741591217 1310741936781 0.0 50.0 34.3
1763 1310741592215 1310741937765 0.0 50.0 34.5
1764 1310741593214 1310741938781 0.0 50.0 35.0
1765 1310741594216 1310741939781 0.0 50.0 35.1
1766 1310741595216 1310741940781 0.0 50.0 35.3
1767 1310741596217 1310741941781 0.0 50.0 35.4
1768 1310741597216 1310741942781 0.0 50.0 35.5
1769 1310741598216 1310741943765 0.0 50.0 35.7
1770 1310741599204 1310741944781 0.0 50.0 35.7
1771 1310741600216 1310741945765 0.0 50.0 35.5
1772 1310741601216 1310741946781 3.4014 50.0 35.5
1773 1310741602216 1310741947765 2.8528 50.0 35.4
1774 1310741603220 1310741948781 4.3889 50.0 35.3
1775 1310741604208 1310741949765 6.0347 50.0 35.2
1776 1310741605208 1310741950765 7.7903 50.0 35.1
1777 1310741606210 1310741951781 9.6556 50.0 35.0
1778 1310741607216 1310741952765 11.631 50.0 34.8
1779 1310741608215 1310741953765 15.8 50.0 34.7
1780 1310741609201 1310741954765 18.104 50.0 34.7
1781 1310741610231 1310741955781 18.433 50.0 34.6
1782 1310741611220 1310741956781 20.847 50.0 34.5
1783 1310741612215 1310741957781 23.371 50.0 34.5
1784 1310741613216 1310741958765 23.919 50.0 34.5
1785 1310741614216 1310741959765 24.468 50.0 34.6
1786 1310741615211 1310741960765 22.932 50.0 34.6
1787 1310741616218 1310741961781 23.371 50.0 34.7
1788 1310741617215 1310741962781 21.725 50.0 34.8
1789 1310741618203 1310741963765 19.969 50.0 35.0
1790 1310741619211 1310741964781 16.019 50.0 35.1
1791 1310741620217 1310741965781 13.935 50.0 35.3
1792 1310741621218 1310741966781 9.6556 50.0 35.4
1793 1310741622217 1310741967765 7.2417 50.0 35.7
1794 1310741623218 1310741968781 0.54861 50.0 35.8
1795 1310741624203 1310741969765 0.0 50.0 36.0
1796 1310741625215 1310741970765 0.0 50.0 36.2
1797 1310741626214 1310741971781 0.0 50.0 36.2
1798 1310741627202 1310741972750 0.0 50.0 36.2
1799 1310741628216 1310741973765 0.0 50.0 36.4
1800 1310741629219 1310741974781 0.0 50.0 36.2
1801 1310741630218 1310741975781 2.6333 50.0 36.4
1802 1310741631215 1310741976765 0.0 50.0 36.2
1803 1310741632201 1310741977765 2.6333 50.0 36.1
1804 1310741633215 1310741978765 3.4014 50.0 36.0
1805 1310741634201 1310741979765 4.2792 50.0 35.9
1806 1310741635215 1310741980765 5.2667 50.0 35.8
1807 1310741636216 1310741981765 6.3639 50.0 35.7
1808 1310741637214 1310741982765 7.5708 50.0 35.5
1809 1310741638216 1310741983765 10.972 50.0 35.4
1810 1310741639216 1310741984765 12.508 50.0 35.3
1811 1310741640234 1310741985796 14.154 50.0 35.2
1812 1310741641218 1310741986765 15.91 50.0 35.1
1813 1310741642218 1310741987781 17.775 50.0 35.0
1814 1310741643219 1310741988781 19.75 50.0 34.8
1815 1310741644215 1310741989765 23.919 50.0 34.8
1816 1310741645218 1310741990765 24.139 50.0 35.0
1817 1310741646206 1310741991765 20.189 50.0 35.1
1818 1310741647215 1310741992765 18.104 50.0 35.1
1819 1310741648217 1310741993765 17.994 50.0 35.1
1820 1310741649218 1310741994765 17.885 50.0 35.3
1821 1310741650204 1310741995765 13.606 50.0 35.4
1822 1310741651202 1310741996765 11.192 50.0 35.5
1823 1310741652232 1310741997796 8.6681 50.0 35.8
1824 1310741653212 1310741998765 1.8653 50.0 35.9
1825 1310741654219 1310741999765 0.0 50.0 36.0
1826 1310741655218 1310742000765 0.0 50.0 36.1
1827 1310741656206 1310742001765 0.0 50.0 36.1
1828 1310741657220 1310742002781 0.0 50.0 36.1
1829 1310741658205 1310742003765 0.0 50.0 36.1
1830 1310741659218 1310742004781 0.0 50.0 36.1
1831 1310741660208 1310742005765 0.0 50.0 36.0
1832 1310741661215 1310742006765 0.87778 50.0 36.0
1833 1310741662202 1310742007750 0.0 50.0 35.9
1834 1310741663219 1310742008781 0.9875 50.0 35.7
1835 1310741664220 1310742009781 4.1694 50.0 35.7
1836 1310741665204 1310742010765 3.4014 50.0 35.4
1837 1310741666208 1310742011765 8.8875 50.0 35.4
1838 1310741667214 1310742012765 8.4486 50.0 35.3
1839 1310741668210 1310742013765 10.094 50.0 35.1
1840 1310741669204 1310742014750 13.935 50.0 35.1
1841 1310741670222 1310742015781 13.825 50.0 35.0
1842 1310741671208 1310742016765 15.8 50.0 34.8
1843 1310741672216 1310742017765 19.969 50.0 34.7
1844 1310741673212 1310742018765 22.274 50.0 34.7
1845 1310741674212 1310742019765 22.603 50.0 34.7
1846 1310741675217 1310742020765 22.932 50.0 34.7
1847 1310741676214 1310742021765 23.261 50.0 34.7
1848 1310741677214 1310742022765 23.59 50.0 34.8
1849 1310741678220 1310742023781 21.835 50.0 35.0
1850 1310741679217 1310742024765 17.885 50.0 35.1
1851 1310741680216 1310742025765 15.8 50.0 35.2
1852 1310741681214 1310742026765 13.606 50.0 35.3
1853 1310741682219 1310742027765 11.301 50.0 35.5
1854 1310741683221 1310742028781 6.8028 50.0 35.7
1855 1310741684219 1310742029765 2.0847 50.0 35.8
1856 1310741685205 1310742030765 0.0 50.0 35.9
1857 1310741686221 1310742031781 0.0 50.0 36.1
1858 1310741687220 1310742032781 0.0 50.0 36.2
1859 1310741688221 1310742033765 0.0 50.0 36.2
1860 1310741689204 1310742034750 0.0 50.0 36.2
1861 1310741690220 1310742035765 0.0 50.0 36.2
1862 1310741691220 1310742036765 0.0 50.0 36.1
1863 1310741692221 1310742037781 0.76806 50.0 36.1
1864 1310741693221 1310742038781 0.0 50.0 35.9
1865 1310741694220 1310742039765 2.9625 50.0 35.8
1866 1310741695221 1310742040781 4.0597 50.0 35.8
1867 1310741696221 1310742041781 3.1819 50.0 35.7
1868 1310741697221 1310742042781 4.3889 50.0 35.5
1869 1310741698219 1310742043781 7.7903 50.0 35.4
1870 1310741699220 1310742044765 9.3264 50.0 35.3
1871 1310741700221 1310742045765 10.972 50.0 35.2
1872 1310741701212 1310742046765 12.728 50.0 35.1
1873 1310741702221 1310742047781 14.593 50.0 35.0
1874 1310741703221 1310742048765 16.568 50.0 34.8
1875 1310741704220 1310742049765 20.738 50.0 34.7
1876 1310741705204 1310742050765 23.042 50.0 34.7
1877 1310741706223 1310742051781 23.371 50.0 34.8
1878 1310741707221 1310742052765 21.615 50.0 34.8
1879 1310741708205 1310742053765 21.835 50.0 34.8
1880 1310741709214 1310742054765 22.054 50.0 35.0
1881 1310741710222 1310742055781 18.104 50.0 35.1
1882 1310741711222 1310742056781 16.019 50.0 35.3
1883 1310741712217 1310742057765 11.74 50.0 35.3
1884 1310741713206 1310742058765 11.411 50.0 35.5
1885 1310741714216 1310742059765 6.9125 50.0 35.7
1886 1310741715222 1310742060781 2.1944 50.0 35.8
1887 1310741716221 1310742061781 0.0 50.0 36.0
1888 1310741717220 1310742062781 0.0 50.0 36.1
1889 1310741718221 1310742063781 0.0 50.0 36.1
1890 1310741719215 1310742064781 0.0 50.0 36.2
1891 1310741720218 1310742065781 0.0 50.0 36.2
1892 1310741721206 1310742066765 0.0 50.0 36.1
1893 1310741722224 1310742067781 0.76806 50.0 36.1
1894 1310741723221 1310742068765 0.0 50.0 36.0
1895 1310741724217 1310742069765 0.87778 50.0 36.0
1896 1310741725205 1310742070765 0.0 50.0 35.9
1897 1310741726221 1310742071781 0.9875 50.0 35.7
1898 1310741727223 1310742072781 4.1694 50.0 35.7
1899 1310741728218 1310742073765 3.4014 50.0 35.7
1900 1310741729208 1310742074765 2.6333 50.0 35.5
1901 1310741730220 1310742075765 6.0347 50.0 35.4
1902 1310741731214 1310742076765 7.5708 50.0 35.2
1903 1310741732219 1310742077765 11.301 50.0 35.1
1904 1310741733207 1310742078765 13.167 50.0 35.1
1905 1310741734212 1310742079781 13.057 50.0 35.1
1906 1310741735224 1310742080781 12.947 50.0 35.0
1907 1310741736219 1310742081781 14.922 50.0 34.8
1908 1310741737223 1310742082781 19.092 50.0 34.7
1909 1310741738220 1310742083765 21.396 50.0 34.7
1910 1310741739206 1310742084765 21.725 50.0 34.7
1911 1310741740226 1310742085781 22.054 50.0 34.7
1912 1310741741212 1310742086765 22.383 50.0 34.8
1913 1310741742217 1310742087781 20.628 50.0 34.8
1914 1310741743207 1310742088765 20.847 50.0 35.0
1915 1310741744220 1310742089781 16.897 50.0 35.1
1916 1310741745223 1310742090781 14.812 50.0 35.3
1917 1310741746221 1310742091765 10.533 50.0 35.3
1918 1310741747218 1310742092765 10.204 50.0 35.5
1919 1310741748207 1310742093765 5.7056 50.0 35.8
1920 1310741749224 1310742094781 0.0 50.0 35.9
1921 1310741750218 1310742095765 0.0 50.0 36.0
1922 1310741751219 1310742096765 0.0 50.0 36.1
1923 1310741752220 1310742097765 0.0 50.0 36.2
1924 1310741753208 1310742098765 0.0 50.0 36.2
1925 1310741754208 1310742099765 0.0 50.0 36.1
1926 1310741755223 1310742100781 0.76806 50.0 36.1
1927 1310741756223 1310742101781 0.0 50.0 36.2
1928 1310741757223 1310742102765 0.0 50.0 36.1
1929 1310741758220 1310742103765 0.76806 50.0 36.0
1930 1310741759224 1310742104781 1.6458 50.0 35.9
1931 1310741760224 1310742105781 2.6333 50.0 35.9
1932 1310741761222 1310742106765 1.6458 50.0 35.8
1933 1310741762221 1310742107781 2.7431 50.0 35.7
1934 1310741763224 1310742108765 3.95 50.0 35.4
1935 1310741764224 1310742109781 9.4361 50.0 35.3
1936 1310741765222 1310742110765 11.082 50.0 35.1
1937 1310741766207 1310742111765 14.922 50.0 35.1
1938 1310741767221 1310742112765 14.813 50.0 35.0
1939 1310741768221 1310742113765 16.788 50.0 35.0
1940 1310741769207 1310742114750 16.788 50.0 34.8
1941 1310741770223 1310742115765 20.957 50.0 34.8
1942 1310741771224 1310742116781 21.176 50.0 34.7
1943 1310741772114 1310742117656 23.481 100.0 34.8
1944 1310741772220 1310742117765 21.725 100.0 34.7
1945 1310741773222 1310742118765 24.029 100.0 34.8
1946 1310741774209 1310742119765 22.274 100.0 34.8
1947 1310741775225 1310742120781 22.493 100.0 34.7
1948 1310741776226 1310742121781 24.797 100.0 34.7
1949 1310741777224 1310742122765 25.126 100.0 34.8
1950 1310741778220 1310742123781 23.371 100.0 34.8
1951 1310741779220 1310742124765 23.59 100.0 34.8
1952 1310741780230 1310742125796 23.81 100.0 35.0
1953 1310741781224 1310742126781 19.86 100.0 34.8
1954 1310741782222 1310742127765 24.029 100.0 35.0
1955 1310741783209 1310742128765 20.079 100.0 35.1
1956 1310741784223 1310742129781 17.994 100.0 35.2
1957 1310741785224 1310742130765 15.8 100.0 35.2
1958 1310741786207 1310742131765 15.581 100.0 35.3
1959 1310741787225 1310742132781 13.276 100.0 35.2
1960 1310741788223 1310742133781 15.032 100.0 35.3
1961 1310741789223 1310742134765 12.728 100.0 35.4
1962 1310741790210 1310742135781 10.314 100.0 35.2
1963 1310741791222 1310742136781 14.044 100.0 35.4
1964 1310741792221 1310742137781 9.6556 100.0 35.4
1965 1310741793223 1310742138781 9.2167 100.0 35.3
1966 1310741794209 1310742139781 10.863 100.0 35.3
1967 1310741795226 1310742140781 10.533 100.0 35.2
1968 1310741796226 1310742141781 12.289 100.0 35.1
1969 1310741797226 1310742142781 14.154 100.0 35.1
1970 1310741798224 1310742143765 14.044 100.0 35.1
1971 1310741799223 1310742144781 13.935 100.0 34.8
1972 1310741800226 1310742145781 20.079 100.0 34.8
1973 1310741801215 1310742146781 20.299 100.0 34.8
1974 1310741802226 1310742147781 20.518 100.0 34.6
1975 1310741803226 1310742148781 24.907 100.0 34.5
1976 1310741804225 1310742149765 27.431 100.0 34.5
1977 1310741805224 1310742150765 27.979 100.0 34.5
1978 1310741806208 1310742151765 28.528 100.0 34.5
1979 1310741807231 1310742152781 29.076 100.0 34.5
1980 1310741808226 1310742153796 29.625 100.0 34.5
1981 1310741809226 1310742154781 30.174 100.0 34.4
1982 1310741810224 1310742155781 32.807 100.0 34.8
1983 1310741811226 1310742156781 25.126 100.0 35.0
1984 1310741812222 1310742157781 21.176 100.0 35.1
1985 1310741813225 1310742158765 19.092 100.0 35.3
1986 1310741814210 1310742159765 14.813 100.0 35.4
1987 1310741815207 1310742160765 12.399 100.0 35.5
1988 1310741816223 1310742161765 9.875 100.0 35.8
1989 1310741817218 1310742162781 3.0722 100.0 35.8
1990 1310741818226 1310742163781 2.1944 100.0 35.9
1991 1310741819226 1310742164796 0.0 100.0 35.9
1992 1310741820232 1310742165781 0.0 100.0 35.9
1993 1310741821218 1310742166781 0.0 100.0 35.8
1994 1310741822228 1310742167781 1.0972 100.0 35.7
1995 1310741823227 1310742168765 2.3042 100.0 35.4
1996 1310741824225 1310742169765 7.7903 100.0 35.4
1997 1310741825223 1310742170781 7.3514 100.0 35.2
1998 1310741826226 1310742171781 11.082 100.0 35.0
1999 1310741827228 1310742172781 15.032 100.0 34.8
2000 1310741828220 1310742173765 19.201 100.0 34.6
2001 1310741829226 1310742174781 23.59 100.0 34.4
2002 1310741830225 1310742175765 28.199 100.0 34.4
2003 1310741831227 1310742176781 28.857 100.0 34.4
2004 1310741832227 1310742177781 29.515 100.0 34.4
2005 1310741833212 1310742178781 30.174 100.0 34.3
2006 1310741834221 1310742179781 32.917 100.0 34.3
2007 1310741835226 1310742180765 33.685 100.0 34.3
2008 1310741836227 1310742181781 34.453 100.0 34.3
2009 1310741837227 1310742182765 35.221 100.0 34.4
2010 1310741838211 1310742183765 33.904 100.0 34.5
2011 1310741839232 1310742184781 32.478 100.0 34.7
2012 1310741840226 1310742185765 28.857 100.0 35.0
2013 1310741841210 1310742186750 22.932 100.0 35.2
2014 1310741842228 1310742187781 18.762 100.0 35.4
2015 1310741843228 1310742188781 14.374 100.0 35.7
2016 1310741844228 1310742189781 7.6806 100.0 35.9
2017 1310741845228 1310742190781 2.7431 100.0 36.0
2018 1310741846225 1310742191765 0.0 100.0 36.1
2019 1310741847228 1310742192781 0.0 100.0 36.2
2020 1310741848228 1310742193781 0.0 100.0 36.2
2021 1310741849212 1310742194750 0.0 100.0 36.1
2022 1310741850231 1310742195781 0.76806 100.0 36.1
2023 1310741851228 1310742196781 0.0 100.0 35.9
2024 1310741852223 1310742197781 2.9625 100.0 35.8
2025 1310741853228 1310742198765 4.0597 100.0 35.7
2026 1310741854228 1310742199781 5.2667 100.0 35.4
2027 1310741855228 1310742200781 10.753 100.0 35.2
2028 1310741856226 1310742201781 14.483 100.0 35.1
2029 1310741857228 1310742202781 16.349 100.0 34.7
2030 1310741858227 1310742203781 24.578 100.0 34.6
2031 1310741859222 1310742204781 26.992 100.0 34.5
2032 1310741860227 1310742205781 29.515 100.0 34.3
2033 1310741861211 1310742206750 34.233 100.0 34.1
2034 1310741862229 1310742207796 39.0 100.0 34.1
2035 1310741863228 1310742208781 39.0 100.0 34.1
2036 1310741864212 1310742209750 39.0 100.0 34.1
2037 1310741865229 1310742210796 39.0 100.0 34.3
2038 1310741866232 1310742211781 35.818 100.0 34.4
2039 1310741867216 1310742212765 34.501 100.0 34.5
2040 1310741868211 1310742213750 33.075 100.0 34.8
2041 1310741869228 1310742214781 27.369 100.0 35.0
2042 1310741870229 1310742215781 23.419 100.0 35.3
2043 1310741871224 1310742216765 17.165 100.0 35.5
2044 1310741872119 1310742217671 12.667 100.0 35.8
2045 1310741872212 1310742217750 5.8639 100.0 35.8
2046 1310741873230 1310742218781 4.9861 100.0 36.1
2047 1310741874225 1310742219765 0.0 100.0 36.4
2048 1310741875221 1310742220765 0.0 100.0 36.5
2049 1310741876216 1310742221765 0.0 100.0 36.6
2050 1310741877234 1310742222781 0.0 100.0 36.6
|
5ee26713f4947dcb66d9cfc50f461980529fb7d7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH4/EX4.46/Ex4_46.sce | a3934172b69d339641c765edb4a97bd03541efed | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 753 | sce | Ex4_46.sce | clc;
v=220; // supply voltage
n1=2000; // speed of fan motor
ia1=60; // current corresponding to n=2000 rpm
// flux is directly proportional to exciting current and load torque increase as square of speed
// four field coils are connected in two parallel groups also n^2 is directly proportional to armature current therefore
r=sqrt((2*ia1^2)/n1^2); // ratio of armature current corresponding to n2 and n2 where n2=new speed
// counter EMF are directly proportional to product n*ia and ra(armature resistance) and rs(series) resistance are not given, therefore takig ratio of n1*ia1 and n2*ia2 we can determine value of n2
n2=sqrt((ia1*n1*2)/r);
printf('New speed is %f rpm\n',n2);
ia2=n2*r;
printf('New armature current is %f A\n',ia2);
|
325992056db25ea7894710c262fd90a28f748728 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2453/CH1/EX1.3/1_3.sce | b93c7812eb1efe3c23a09fc4f9d067f3ceff7d96 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 488 | sce | 1_3.sce | //To calculate the bond energy for NaCl molecule
e = 1.602*10^-19;
EA = 3.65; //electron affinity of Cl, eV
IP = 5.14; //ionisation energy of Na, eV
epsilon0 = 8.85*10^-12;
r0 = 236; //equilibrium distance, pm
r0 = r0*10^-12; //equilibrium distance, m
V = (-e^2)/(4*%pi*epsilon0*r0); //potential energy, J
V = V/e; //potential energy, eV
Ue = V;
BE = -Ue - IP + EA; //bond energy, eV
printf("bond energy for NaCl molecule is %5.2f eV",BE);
|
af97f984978a812c5c73c766f41edc5548a8558a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3825/CH5/EX5.12/Ex5_12.sce | 8cdeddbe60025401788654c8ba74eb7a1694282d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 666 | sce | Ex5_12.sce | clc
v1=0.0011145
V=0.05
mliquid=V/v1
mprintf("Mass of liquid=%fkg\n",mliquid)//ans may vary due to roundoff error
h1=719.12
P1=0.792*10^3
u1=h1-(P1*v1)
mprintf("u1=%fkJ/kg\n",u1)//ans may vary due to roundoff error
v2=1/mliquid
mprintf("v2=%fmetre-cube/kg\n",v2)//ans may vary due to roundoff error
u2=u1
T=147.73 //temperature in Kelvin
vf=1.088*10^-3
hf=622.4
vg=0.41845
hg=2742.55
X2=(v2-vf)/(vg-vf)
mprintf("X2=%f\n",X2)//ans vary due to roundoff error
h2=(X2*hg)+(1-X2)*hf
mprintf("h2=%fkJ/kg\n",h2)//ans vary due to roundoff error
P2=4.5*10^5
u2=(h2*10^3)-(P2*v2)
mprintf("u2=%fkJ/kg\n",u2/1000)//ans may vary due to roundoff error
|
20090d7e8ff701a1a33549f9d4cfea83a06a213b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2681/CH8/EX8.13/Ex8_13.sce | a4e4d47d799d5dc188535af5ddcfafb853916f29 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 465 | sce | Ex8_13.sce | //mouth diameter and power gain
//given
clc
NNBW=2//degree//null to null beamwidth
f=4d+9//hertz
v=3d+8//m/s
lemda=v/f//metre//
Da=140*(lemda/NNBW)//degree//beamwidth between first null
gp=6.4*(Da/lemda)^2
gp_decibles=10*log10(gp)//changing to decibles
gp_decibles=round(gp_decibles*100)/100///rounding off decimals
disp(gp_decibles,Da,'the beamwidth between first null and the value of half power beamwidth in decibles and degree')//decibles,degrees
|
5bebbff4290b21e8911db9b2ab7c58e5e2d53532 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1910/CH10/EX10.8/Chapter108.sce | ced3cec6aa12f14bd1c326618194c80d92617068 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,873 | sce | Chapter108.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Introduction to heat transfer by S.K.Som, Chapter 10, Example 8")
//A double pipe heat exchanger of length(L)=0.30m is to be used to heat water(specific heat,cc=4.18kJ/(kg*K)) and mass flow rate(mdotw=2kg/s)
L=0.30;
cc=4.18;
mdotw=2;
//The water enters at temprature(Tci)=25°C and leaves at temprature(Tco)=50°C
//The flow rate of oil is mdoth
Tci=25;
Tco=50;
//The oil used as hot fluid has(specific heat,ch=1.88kJ/(kg*K)) and has inlet temprature(Thi)=100°C
ch=1.88;
Thi=100;
disp("(a)Considering a parallel flow arrangement ")
//For minimum value of mdoth
//The theoretical minimum value of outlet temprature of hot fluid(Tho) under this situation is equal to Tco
Tho=Tco;
//The mass flow rate of oil is given by energy balance as mdoth=(mdotw*cpw*(Tco-Tci))/(cph*(Thi-Tho))
disp("The minimum flow rate required for the oil in kg/s")
mdoth=(mdotw*cc*(Tco-Tci))/(ch*(Thi-Tho))
disp("(b)Theoretical question")
disp("If LMTD--->0,Then for a finite value of heat transfer rate U*A--->infinity.For a given finite length this implies value of U which is not possible.")
disp("(c)Let us consider a counter flow arrangement")
//In this case value of Tho=Tci.
Tho=Tci;
//The mass flow rate of oil is given by energy balance as mdoth=(mdotw*cpw*(Tco-Tci))/(cph*(Thi-Tho))
disp("The minimum flow rate required for the oil in kg/s")
mdoth=(mdotw*cc*(Tco-Tci))/(ch*(Thi-Tci))
//Now Heat capacities are Ch=mdoth*ch and Cc=mdotw*cc
Ch=mdoth*ch;
Cc=mdotw*cc;
Cmin=min(Ch,Cc);//minimum heat capacity in Ch and Cc
//Effectiveness of heat exchanger is eff.
//Tho=Tci for this kind of arrangement
Tho=Tci;
disp("Effectiveness of heat exchanger is ")
eff=(mdoth*ch*(Thi-Tho))/(mdoth*ch*(Thi-Tci))
|
ccdaa229df71cfe08b09d8ea24a4473dd234c358 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2495/CH8/EX8.23.1/Ex8_23_1.sce | 1f28ef5e2e0bad96c5cae7d9a501a183aedfe63e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 181 | sce | Ex8_23_1.sce | clear
clc
E1=-0.277;//in V
E2=-0.744;//in V
Ecell_1=(E2-E1);//in V
printf('Ecell_1=%.3f V',Ecell_1)
Ecell_2=(E1-E2);//in V
printf('\nEcell_2=%.3f V',Ecell_2)
//page 539
|
24de5d0d34cdc97ee49aa8f165d8b23469b51c4d | 449d555969bfd7befe906877abab098c6e63a0e8 | /28/CH6/EX6.2/ex6_2.sce | 8a7652cf04ffa1c48bab0f4cd016f55f334112ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 198 | sce | ex6_2.sce | s=%s;
p=s^4+8*s^3+18*s^2+16*s+5
r=routh_t(p)
m=coeff(p)
l=length(m)
c=0;
for i=1:l
if (r(i,1)<0)
c=c+1;
end
end
if(c>=1)
printf("System is unstable")
else ("Sysem is stable")
end
|
edd87640b60a1cc1a15fc99f02d2d5bfd79db2fe | 449d555969bfd7befe906877abab098c6e63a0e8 | /1019/CH5/EX5.14/Example_5_14.sce | 1d1b03ce63bf827ba42d5579559528d395cd69ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 335 | sce | Example_5_14.sce | //Example 5.14
clear;
clc;
//Given
delGo1=-29.2;//delGo value for hydrolysis of creatine phosphate in kJ
delGo2=-12.4;//delGo value for hydrolysis of glucose phosphate in kJ
//To determine delGo for given reaction
delGo3=delGo2-delGo1;//gibbs free energy in kJ
mprintf('delGo for the given reaction = %f kJ',delGo3);
//end |
691d2cee83ace47b29323dc5444fa82187b8a610 | 449d555969bfd7befe906877abab098c6e63a0e8 | /409/CH12/EX12.4/Example12_4.sce | 48a32626161df4e59f50667199de23aab446b76b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,246 | sce | Example12_4.sce | clear ;
clc;
//Page No.362
// Example 12.4
printf('Example 12.4\n\n');
// Solution fig.E12.4
// Given
F = 100 ;// Overall feed/basis - [kg]
F_com = 0.10 ;// Mass fraction of component in fresh feed
F_w = 0.90 ;// Mass fraction of water in fresh feed
P_w = 0.10 ;// Mass fraction of water in product
P_com = 0.90 ;//Mass fraction of component in product
F_dash_com = 0.03 ;//Mass fraction of component in feed to reactor
W_w = 1 ;// Mass fraction of water in W(waste)
C_con = .40 ;// Fraction of conversion of component in reactor
// By analysis DOF is zero
// Take overall process as system
P = F_com*F/P_com ;//By component balance- Product - [kg]
W = F - P ;// By overall balance - waste(W)- [kg]
//Take reactor plus product recovery unit as system
// Use Eqn. 10.1 for component balance
Rw = (F*F_com - F*F_com*C_con)/C_con ;// Mass of component in recycle(R) - [kg]
// Take mixer a system
F_dash = ( F*F_com + Rw )/F_dash_com ;// By component balance - feed to reactor(F') -[kg]
R = F_dash - F ;// Recycle(R) - By total balance -[kg]
w = Rw/R ;// Mass fraction of component in recycle(R)
printf('Recycle(R) stream- %.0f kg \n',R);
printf(' Mass fraction of component in recycle(R)- %.4f .\n',w); |
ac758b7ff037cda8c2ca2181d42ec120e5691de4 | 96ee2796a0b0d0eafeadd9de6d49acf93f2e710c | /meg_stimuli_scripts/3StimOddball/oddball.sce | b637e5ed2abb21f1cb1e8ab03de197ec885c2120 | [
"CC0-1.0"
] | permissive | nih-megcore/hv_protocol | f8f4cf4b7cdb4ae04d0afe9fddaeee06010a4e18 | 2c914e5f5430877d9ca3c363af0b9da2dfc0b08a | refs/heads/main | 2023-04-11T17:24:00.756146 | 2022-09-26T23:41:41 | 2022-09-26T23:41:41 | 464,975,691 | 6 | 2 | CC0-1.0 | 2023-01-11T16:53:44 | 2022-03-01T16:40:38 | Python | WINDOWS-1252 | Scilab | false | false | 2,258 | sce | oddball.sce | scenario = "oddball";
scenario_type = trials;
pcl_file = "oddball.pcl";
response_matching = simple_matching;
active_buttons = 1;
button_codes = 1;
write_codes = true;
pulse_width = 25;
response_port_output = false;
default_text_color = 0, 0, 0;
default_font_size = 28;
no_logfile = true;
default_background_color = 127, 127, 127;
begin;
sound { wavefile { filename = "std.wav"; }; attenuation = .15; } std;
sound { wavefile { filename = "targ.wav"; }; attenuation = .15; } targ;
sound { wavefile { filename = "white.wav"; }; } white;
picture {
text { caption = "·"; font = "Symbol"; } fixation_mark;
x = 0; y = 0;
} default;
trial {
trial_duration = forever;
trial_type = first_response;
picture {
text { caption = "You will hear a series of brief sounds.
Two will be tones with different pitches
and one will sound like static. Your job is to
press the red button with your thumb when you
hear the higher pitched tone only. Ignore the
lower pitched tone and the static sound."; };
x = 0; y = 0;
};
time = 0;
} instruction_trial;
trial {
trial_duration = forever;
trial_type = first_response;
picture {
text { caption = "You will hear a series of brief sounds.
Two will be tones with different pitches
and one will sound like static. Your job is to
press the red button with your thumb when you
hear the higher pitched tone only. Ignore the
lower pitched tone and the static sound.
We will play you a sample now to test the sound level.
Please practice responding to the higher pitched tone
so that we will know you understand the task."; };
x = 0; y = 0;
};
time = 0;
} practice_trial;
trial {
trial_duration = forever;
trial_type = first_response;
picture {
text { caption = "Localizing head, please hold still..."; };
x = 0; y = 0;
};
time = 0;
} localize_trial;
trial {
stimulus_event {
sound std;
time = 0;
port = 1;
} beep;
} beep_trial;
trial {
trial_duration = forever;
trial_type = first_response;
picture {
text { caption = "Done!"; };
x = 0; y = 0;
};
time = 0;
} done_trial; |
4d10b416e814f1d0629654ff18ee49a5e0569041 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3774/CH6/EX6.5/Ex6_5.sce | 0d22d021b535f838ee7afb894dc485ffd318bd8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 680 | sce | Ex6_5.sce | // exa 6.5 Pg 174
clc;clear;close;
// Given Data
L=1000;// mm
alfa=20;// degree
dg=500;// mm
L1=250;// mm
L2=300;// mm
dp=600;// mm
Wp=2000;// N
F1=2.5*1000;// N
F1BYF2=3;// ratio of tensions
tau_d=42;// MPa
F2=F1/F1BYF2;// N
T=(F1-F2)*dp/2;// N.mm
Ftg=2*T/dg;// N
Frg=Ftg*tand(alfa);// N
F=F1+F2;// N
// Vertical Loads
RAV=(Ftg*(L1+dg)+Wp*L2)/L;// N
RBV=Ftg+Wp-RAV;// N
MCV=RAV*L1;//N.mm
MDV=RBV*L2;// N.mm
// Horizontal Loads
RAH=(Frg*(L1+dg)+F*L2)/L;//N
RBH=Frg+F-RAH;// N
MCH=RAH*L1;// N.mm
MDH=RBH*L2;// N.mm
MD=sqrt(MDV**2+MDH**2);// N.mm
Mmax=MD;//N.mm
Te=MCV+MDV;// N.mm
// d**3 = 16*Te/%pi/tau_d
d = (16*Te/%pi/tau_d)**(1/3);//mm
printf('shaft diameter = %.1f mm.',d)
|
3047b17a337912c6daeece5cfdaeacebe4972a18 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3814/CH5/EX5.3/Ex5_3.sce | c105f1805f1844bc758242807f67f99c90400d44 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,157 | sce | Ex5_3.sce |
// a pelton wheel hydraulic efficiency and over all efficiency
// ex 5.3 pgno. 117
clc
D=1.45 // diameter of the wheel
N=375 // shaft running
u=(%pi*D*N)/60 // peripheral velocity
k=0.9 // coefficient of the bucket
p=3750 //peripherial velocity
hf=200*0.1 // head availabe
mprintf('\n peripherial velocity u =%f m/s',u)
mprintf('\n Total Head = %d m',hf)
h1=200 // total head
l=20 // losses
H=h1-l //effective head
g=9.8 // gravity
mprintf('\n effective head H = %d m',H)
V1=sqrt(2*g*H) // velocity of the jet
mprintf('\n velocity of the jet V1= %f m/s',V1)
S=u/V1 // speed ratio
mprintf('\n Speed Ratio =u/V1= %f',S)
nh=2*((S)*(1-S)*(1-k*cosd(165))) // hydraulic efficiency
mprintf('\n Hydraulic efficiency nh= %f percentage',(nh*100))
E=(u/g)*(V1-u)*(1-(k*cosd(165))) // euler's head
mprintf('\n E =%f m',E)
no=k*nh // realation between
mprintf('\n Relation between n0= %f',no)
hp=p/no // hydraulic power
mprintf('\n hydraulic power = %d kw',hp)
gamma1=9800 // constant gamma
Q=(1000*hp)/(2*gamma1*H) // flow rate
mprintf('\n Flow rate Q = %f m3/s',Q)
d=sqrt((4*Q)/(%pi*V1)) // diameter
mprintf('\n d = %f m',d)
|
5d03b3ca70e242fd8712765690e7d85d4c4fdd14 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1904/CH11/EX11.9/11_9.sce | b77aa9a501d7b33f0a5a6fbb1135e336b076b34e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 677 | sce | 11_9.sce | //To Determine the vector of state probabilities at a specific time
//Page 624
clc;
clear;
P=[0.6,0.4;0.3,0.7]; //One Step Transition Matrix
Po=[0.8,0.2]; //Initial State Probability Vector
//Funtion to determine the Vector of State Probability
deff('x=VSP(y)','x=(Po*(P^y))')
P1=VSP(1); //Vector of State Probability at Time t1
P4=VSP(4); //Vector of State Probability at Time t4
P8=VSP(8); //Vector of State Probability at Time t8
printf('\na) The Vector of State Probability at time t1 is\n')
disp(P1)
printf('\na) The Vector of State Probability at time t4 is\n')
disp(P4)
printf('\na) The Vector of State Probability at time t8 is\n')
disp(P8)
|
b554ede6fde7479eb418309e41f703d0f2abf7da | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH12/EX12.7/12_7.sce | 42375bfe4bea8a5ae3c343569d566f8a5f42cc4f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 314 | sce | 12_7.sce | V=440
ns=1000
ws=2*%pi*ns/60
n=975
s=1-n/ns
Z=1.06+0.576/s+%i*(1.68+0.75)
I2=V/sqrt(3)/Z
Im=-%i*V/sqrt(3)/44.2
I1=Im+I2
pf=real(I1)/norm(I1)
Pin=sqrt(3)*V*norm(I1)*pf
Pout=norm(3*I2*I2*0.576*(1/s-1))-415
effi=Pout/Pin
Tnet=Pout/ws/(1-s)
disp(Tnet)
disp(Pin)
disp(norm(I1))
disp(pf)
disp(effi)
|
1d54160aad90a4d0897100ac8264f38db5f252b0 | 4b70b88a63a9bbb5c92c87b1c670d2c2c83ae2fd | /cunit/aa.tst | dcf196c8aaae82899e177da51c25d99d70c09ce7 | [] | no_license | saulibanez/SO | 34669238dccc15a6fa127693fd2ac651992721cf | 15d6cabba079c000a63f6d60b53b87990a40488e | refs/heads/master | 2021-07-16T09:16:46.405183 | 2018-03-27T11:59:47 | 2018-03-27T11:59:47 | 95,779,591 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 18 | tst | aa.tst | cd /tmp
ls
wc -l
|
f592d5a045048f2a49221ce7fce68abee805d5a1 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set14/s_Material_Science_In_Engineering_Dr._K._M._Gupta_1367.zip/Material_Science_In_Engineering_Dr._K._M._Gupta_1367/CH10/EX10.6/10_6.sce | e439592108985feb760b44d4eac274263ea6f861 | [] | no_license | hohiroki/Scilab_TBC | cb11e171e47a6cf15dad6594726c14443b23d512 | 98e421ab71b2e8be0c70d67cca3ecb53eeef1df6 | refs/heads/master | 2021-01-18T02:07:29.200029 | 2016-04-29T07:01:39 | 2016-04-29T07:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 284 | sce | 10_6.sce | errcatch(-1,"stop");mode(2);//Find Weight fraction of errite and Cementite
//Ex:10.6
;
;
c=0.83;//carbon
f=0;//ferrite
ce=6.67;//cementite
w_a=(ce-c)/(ce-f);
disp(w_a,"Weight fraction of errite = ");
w_b=(c-f)/(ce-f);
disp(w_b,"Weight Fraction of Cementite = ");
exit();
|
85535be34bf94976d35e388dcaf926e21a21f132 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1928/CH3/EX3.17.22/ex_3_17_22.sce | 5f7b6ae396f1159f2ad3e30f3a1fb9725b16efe8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,096 | sce | ex_3_17_22.sce | //Chapter-3,Example3_17_22,pg 3-43
ur=1 //relative permeability of air
u0=4*%pi*10^-7 //permeability of free space
A=6*10^-4 //cross section area of torroid
n=500 //number of turns
r=15*10^-2 //radius of torroid
I=4 //current in coil
l=2*%pi*r //mean circumference of torroid
MMF=n*I
printf("1) MMF (NI) =")
disp(MMF)
printf("AT")
R=l/(u0*ur*A) //Reluctance
printf(" 2) Reluctance (R) =")
disp(R)
printf("AT/Wb")
phi=MMF/R //flux
printf(" 3) Magnetic flux =")
disp(phi)
printf("Wb")
B=phi/A //flux density
printf(" 4) Flux density =")
disp(B)
printf("Wb/m^2")
H=B/(u0*ur) //magnetic field intensity
printf(" 5) Magnetic field intensity =")
disp(H)
printf("A/m")
|
7bee3f6d1f52e730c90e65f808c8bbac2e3f220f | 717ddeb7e700373742c617a95e25a2376565112c | /278/CH9/EX9.17/ex_9_17.sce | 193680bdbbc64929f09e5f47825c1f33a8c1d5bf | [] | 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 | 761 | sce | ex_9_17.sce | //find diameter of rivet
clc
//solution
//given
n=6
P=60000//N
e=200//mm
T=150//N/mm^2
Ps=P/n
//l1=l3=l4=l6
l1=sqrt(75^2+50^2)//mm
l3=sqrt(75^2+50^2)//mm
l4=sqrt(75^2+50^2)//mm
l6=sqrt(75^2+50^2)//mm
l2=50//mm
l5=50//mm
//eqauting the moments equal to each other
//P*e=(F1/l1)*[l1^2+l2^2+l3^2+l4^2+l5^2+l6^2]
//P*e=(F1/l1)*[4*l1^2+2*l2^2]
F1=(P*e*l1)/(4*l1^2+2*l2^2)//N
F2=F1*l2/l1//N
F3=F1*l3/l1//N
F4=F1*l4/l1//N
F5=F1*l5/l1//N
F6=F1*l6/l1//N
//cos(q1)=50/l1=0.555=a
a=0.555
R3=sqrt(Ps^2+F3^2+2*F3*Ps*a)
R2=Ps+F2//N
printf("the value of forces is,%f N\n,%f N\n",R2,R3)
//R3>R2
pi=3.14
P=(pi/4)*d^2*T
//R3=P
d=sqrt(R3/117.8)//mm
printf("the value of diameter is,%f mm\n",d)
printf("the standard diameter of is 19.5 mm ")
|
29653bb257ae686e46acb49e89d749e7b9801aa6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1385/CH20/EX20.1/20_1.sce | 1150572c1db276ee871520cdbef3c3f3eca8f898 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 368 | sce | 20_1.sce | clc
//initialisation of variables
t= 4.5*10^9 //years
t1= 1590 //years
//CALCULATIONS
l= log10(2)/(t*0.4343)
l1= log10(2)/(t1*0.4343)
r= l1/l
r1= t/t1
//RESULTS
printf (' disintegration constant= %.2e yr^-1',l)
printf (' \n disintegration constant= %.2e yr^-1',l1)
printf (' \n relative proportion= %.2e ',r)
printf (' \n relative proportion= %.2e ',r1)
|
d8d6e966fad9cf11691dd14a75061f0b66750c07 | 449d555969bfd7befe906877abab098c6e63a0e8 | /281/CH4/EX4.2/example4_2.sce | dcbf82ffdb14c12fefef179ecf1e721d09d8caf2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 484 | sce | example4_2.sce | disp('chapter 4 ex4.2')
disp('given')
disp('capacitor coupled voltage follower design using BIFET')
disp("lower cut off frequency for the circuit =50Hz")
disp('Rl=3.9kohms')
disp("R1max=1Mohms")
R1=1000000
f1=50
disp("Xc1=R1/10 at F1")
disp("C1=1/(2*pi*f1*(R1/10))")
C1=1/(2*%pi*f1*(R1/10))
disp('farad',C1)
Rl=3900
disp("Xc2=Rl at f1")
disp("C2=1/(2*pi*f1*Rl)")
C2=1/(2*%pi*f1*Rl)
disp('farad',C2)
disp("The circuit voltage should be normally between 9 to 18 volts") |
437ff778a71e38bfba1dd208b0ef2d841aad3b7f | 58c1961f220961e7b4875020646f644d8c3422d9 | /Matriz fundamental.sce | b14da0ba80b19b7b3b965ea1de5601d6e9251095 | [
"MIT"
] | permissive | JandroMejia97/Programas-para-Procesos-Estocasticos | 4b6b3bdef1081ad27143c6c67e5036b7ad08a489 | ba677351ef45160f29f8c737fc09ea8a89285e57 | refs/heads/master | 2021-07-20T05:55:34.463275 | 2017-10-29T04:17:40 | 2017-10-29T04:17:40 | 108,470,746 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,465 | sce | Matriz fundamental.sce | /*Programa que ayuda a calcular la matriz fundamental M la cual denota
el numero promedio de pasos para regresar del estado j al estado i
Este resuelve ingresando la matriz Q a traves del teclado*/
printf("\nIngrese el orden de Q ");
orden=input("\nOrden: ");
printf("La matriz es de orden %d",orden);
I=eye(orden,orden);
Q=zeros(orden,orden);
printf("\nIngresando la matriz Q");
for i=1:orden
for j=1:orden
printf("\nIngrese el valor de la posición (%d,%d)",i,j);
Q(i,j)=input("\nValor =");
end
end
disp(Q);
//Encontrando M
A=I-Q;
M=inv(A);
printf("\nLa matriz Fundamental es");
disp(M);
//Calculo de Mrho
Mrho=zeros(orden,1);
x=0;
for i=1:orden
for j=1:orden
x=x+M(i,j);
end
Mrho(i,1)=x;
x=0;
end
printf("\nLa matriz Mrho es: ")
disp(Mrho);
printf("¿Desea calcular la varianza de M?\nDigite 1. Si o 2. No");
x=input("\nDigite 1 o 2");
if x==1 then
//Calculo de la matriz diagonal de M
x=diag(M);
Mdiag=zeros(orden,orden);
for i=1:orden
for j=1:orden
if j==i then
Mdiag(i,j)=x(i);
end
end
end
printf("\nLa matriz Diagonal de M es: ")
disp(Mdiag);
//Calculo de los cuadrados de M
Mcuad=zeros(orden,orden);
for i=1:orden
for j=1:orden
Mcuad(i,j)=M(i,j)^2;
end
end
printf("\nLos cuadrados de M son: ")
disp(Mcuad);
//Calculo de la varianza V(Nij) de M
Desv=M*(2*Mdiag-I)-Mcuad;
printf("\nLa varianza V(Nij) de M es: ")
disp(Desv);
//Calculo de la varianza V(Ni) de M
Mrhocuad=Mrho^2;
printf("\nLos cuadrados de Mrho son: ");
disp(Mrhocuad);
Mvar=(2*M-I)*Mrho-Mrhocuad;
printf("\nLa varianza V(Ni) de M es: ")
disp(Mvar);
end
printf("\n¿Desea calular la Matriz F?\nDigite 1. Si o 2. No");
x=input("\nDigite 1 o 2");
if x==1 then
printf("\nA continuación ingrese el número de filas y columnas de R")
fil=input("\nIngrese las filas: ");
col=input("\nIngrese las columnas: ");
R=zeros(fil,col);
for i=1:fil
for j=1:col
printf("\nIngrese el dato de la fila (%d,%d)",i,j);
R(i,j)=input("\nIngrese el valor");
end
end
printf("\nMatriz R");
disp(R);
F=M*R;
printf("\nLa Matriz F es: ")
disp(F);
end
printf("Gracias por usar el programa, Exitos en MEP XD");
|
f0a24d626c9db4af4c7b8e8e4e46d3bf32f4185c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1016/CH5/EX5.15/ex5_15.sce | 6dd9b610805f7ef775f9d9b25de412c562857e02 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 320 | sce | ex5_15.sce | clc;clear;
//Example 5.15
//given data
W=6525;//wavelength in angstrom
//calcualation
Vo=12400*((1/4000)-(1/W));
disp(Vo,'Stopping potential in (a) in volts');
Vo=12400*((1/2000)-(1/W));
disp(Vo,'Stopping potential in (b) in volts');
Vo=12400*((1/2000)-(2/W));
disp(Vo,'Stopping potential in (c) in volts') |
215fb5d9ac864d39b03ea72aa86e1ee7e503dc45 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH2/EX2.19/19.sci | 8c8fbba3180cd11f6b460558a5f529ee9ae42d1a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 376 | sci | 19.sci | clc;
clear all;
disp("heat loss rate")
L=0.012;// m
Thf=95;// degree C
Tcf=15;// degree C
k=50;// W/(m*C)
hhf=2850;// W/(m^2*C)
hcf=10;// W/(m^2*C)
U=1/(1/hhf+1/hcf+L/k);
q=U*(Thf-Tcf);
disp("W/m^2",q,"rate of heat loss per m^2 of the tank surface area = ")
//q=hcf*(t2-tcf)
t2=q/hcf+Tcf;
disp("degree C",t2,"temperature of the outside surface of the tank = ")
|
1201848bdeee9cb476422094d1087d3fe0861e04 | 8423ca9ce33d0d3ba30dc05b86e8241e4894d0af | /Crout.sci | aa08fe66ac1c766409da6537d4ee4008b2da7c85 | [
"MIT"
] | permissive | fbarrueta22/TAP-1 | b99581dab6414d93988b708d61ac7e5e6610a6e5 | 61324322191684285df528149c7829b8cfe3dc5f | refs/heads/master | 2022-04-25T18:44:31.343068 | 2020-04-18T17:22:50 | 2020-04-18T17:22:50 | 256,637,464 | 1 | 1 | MIT | 2020-04-18T17:22:51 | 2020-04-18T00:22:58 | Scilab | UTF-8 | Scilab | false | false | 663 | sci | Crout.sci | function ans = Crout(A)
// Obtener dimensiones de la matriz
[m, n] = size(A);
// Comprobar que sea cuadrada
if( m ~= n ) then
error("La matriz debe ser cuadrada")
end
// L se inicializa como una copia de A
L = A
// U se inicializa como una matriz identidad de mxn
U = eye(m,n)
for i = 1:n-1
for j = i+1:n
U(i,j) = L(i,j)/L(i,i) // Se llena la matriz U con los multiplicadores
L(:,j) = L(:,j) - U(i,j)*L(:,i) // Operaciones elementales por columnas
end
end
ans = struct("L", L, "U", U)
endfunction
|
72e72404b752249253532fe02f1132cb5f186190 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.1_15.tst | b15cce2c9a20ee6ac54164a85c362bfe40f02e59 | [] | 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 | 3,805 | tst | bow.1_15.tst | 1 10:0.5 19:0.05555555555555555 30:0.05 66:0.5 149:1.0 203:1.0
1 4:0.07142857142857142 11:1.0 49:0.1111111111111111 249:0.3333333333333333 345:1.0 1564:1.0
1 3:1.0 13:0.5 14:0.06896551724137931 17:0.01818181818181818 28:1.0 30:0.05 84:0.16666666666666666 187:1.0 298:1.0 883:1.0
1 4:0.07142857142857142 6:1.0 10:0.5 14:0.06896551724137931 17:0.03636363636363636 25:1.0 74:0.16666666666666666 84:0.16666666666666666 665:1.0 721:1.0
1 4:0.07142857142857142 84:0.16666666666666666 150:1.0 156:1.0 542:1.0
1 6:1.0 13:0.5 14:0.034482758620689655 19:0.05555555555555555
1 6:1.0 10:0.5 13:0.5 14:0.034482758620689655 17:0.03636363636363636 19:0.05555555555555555 49:0.1111111111111111 68:1.0 69:0.5 137:0.5 181:0.5 517:1.0 1563:1.0
1 14:0.034482758620689655 17:0.03636363636363636 25:1.0 30:0.05 72:1.0 121:0.3333333333333333 404:1.0 469:1.0 475:1.0 698:1.0
1 13:0.5 19:0.1111111111111111 20:1.0 55:0.3333333333333333 74:0.3333333333333333 159:0.1 160:0.5
1 13:0.5 14:0.034482758620689655 17:0.01818181818181818 30:0.05 69:0.25 121:0.3333333333333333 149:1.0 160:1.0 183:0.3333333333333333 226:1.0 249:0.3333333333333333 286:1.0 556:1.0 611:1.0 990:1.0
1 4:0.07142857142857142 6:1.0 10:0.5 14:0.034482758620689655 54:0.3333333333333333 84:0.16666666666666666 86:1.0 93:0.3333333333333333 569:1.0 663:1.0
1 25:1.0 396:1.0 494:1.0 1157:1.0
1 25:1.0 30:0.05 84:0.16666666666666666 148:1.0 286:1.0 326:1.0 409:1.0 1180:1.0
1 3:1.0 6:1.0 13:0.5 14:0.10344827586206896 25:1.0 28:1.0 29:0.5 42:0.25 43:0.3333333333333333 56:0.25 60:1.0 181:0.5 207:0.25 214:2.0 236:0.5 237:1.0 409:1.0 480:0.5 556:1.0 581:0.5 794:1.0 920:1.0
1 54:0.3333333333333333 69:0.25 236:0.5 448:1.0 556:1.0 652:1.0
1 4:0.07142857142857142 14:0.034482758620689655 54:0.3333333333333333 64:1.0 171:0.25 598:1.0
1 4:0.07142857142857142 14:0.034482758620689655 19:0.05555555555555555 25:1.0 69:0.25 542:1.0 851:1.0 1333:1.0
1 349:0.3333333333333333
1 10:0.5 13:0.5 25:1.0 69:0.25 70:1.0 193:0.3333333333333333
1 25:1.0 30:0.05 64:1.0 67:1.0 70:1.0 183:0.3333333333333333 1359:1.0
1 279:1.0 1314:1.0
1 14:0.034482758620689655 69:0.25
1 6:1.0 14:0.034482758620689655 30:0.05 1560:1.0
1 4:0.07142857142857142 19:0.05555555555555555 25:1.0 66:0.5 679:1.0
1 10:0.5 19:0.05555555555555555 25:1.0 66:0.5 199:0.25 237:1.0 394:1.0 1501:1.0
1 19:0.05555555555555555 69:0.25 84:0.16666666666666666 121:0.3333333333333333 189:0.3333333333333333 249:0.3333333333333333 355:1.0 489:1.0 511:1.0 1266:1.0 1455:1.0
1 3:1.0 6:1.0 14:0.06896551724137931 17:0.03636363636363636 19:0.1111111111111111 20:1.0 21:1.0 74:0.16666666666666666 91:1.0 181:0.5 226:1.0 249:0.3333333333333333 274:1.0 602:1.0 705:1.0 856:1.0 911:1.0
1 17:0.03636363636363636 19:0.05555555555555555 837:1.0 842:1.0 1198:1.0 1436:1.0
1 6:1.0 14:0.034482758620689655 17:0.03636363636363636 69:0.5 381:1.0 486:0.5 611:1.0 837:1.0 1198:1.0
1 14:0.034482758620689655 17:0.01818181818181818 20:1.0 30:0.05 184:0.5 250:1.0 349:0.3333333333333333 625:1.0 924:1.0 1052:1.0 1534:1.0
1 3:1.0 4:0.14285714285714285 349:0.3333333333333333 1340:1.0 1403:1.0
1 6:1.0 14:0.06896551724137931 17:0.01818181818181818 30:0.05 133:1.0 226:1.0 377:1.0 465:1.0 1575:1.0
1 25:1.0 167:1.0 901:1.0
1 6:1.0 13:1.0 14:0.10344827586206896 17:0.03636363636363636 19:0.05555555555555555 49:0.1111111111111111 74:0.16666666666666666 84:0.16666666666666666 256:1.0 442:1.0 553:1.0 837:1.0 1142:1.0
1 17:0.01818181818181818 20:1.0 25:1.0 147:1.0 171:0.5 284:1.0 828:1.0 1480:1.0
1 13:0.5 127:1.0 249:0.3333333333333333 441:1.0
1 14:0.034482758620689655 17:0.01818181818181818 475:1.0 883:1.0
1 4:0.07142857142857142 13:0.5 202:0.16666666666666666
1 19:0.05555555555555555 20:1.0 21:1.0 43:0.3333333333333333
1 3:1.0 14:0.06896551724137931 17:0.01818181818181818 25:2.0 28:1.0 84:0.16666666666666666 298:1.0 326:1.0 462:1.0 716:1.0
|
ab86195569dfe63c2e008cf61a7cb2474f850cda | 449d555969bfd7befe906877abab098c6e63a0e8 | /1955/CH3/EX3.6/example6.sce | 9ae4e042536a522e7fbe567bc0bec4d0536d8f34 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,151 | sce | example6.sce | clc
clear
//input data
Dt=0.25//Tip diameter of the eye in m
Dh=0.1//Hub diameter of the eye in m
N=120//Speed of the compressor in rps
m=5//Mass of the air handled in kg/s
P01=102//Inlet stagnation pressure in kPa
T01=335//Inlet total temperature in K
r=1.4//The ratio of specific heats of air
R=287//The universal gas constant in J/kg.K
Cp=1005//The specific heat of air at constant pressure in J/kg.K
//calculations
d1=(P01*10^3)/(R*T01)//Density at the inlet of inducer in kg/m^3
Dm=(Dh+Dt)/2//Mean impeller diameter in m
b=(Dt-Dh)/2//Impeller blade height in m
C1=m/(d1*3.14*Dm*b)//Axial velocity component at the inlet in m/s
T11=T01-((C1^2)/(2*Cp))//Inlet temperature in K
P11=P01*(T11/T01)^(r/(r-1))//Inlet pressure in kPa
d11=(P11*10^3)/(R*T11)//Inlet density with mean impeller diameter an blade height in kg/m^3
C11=m/(d11*3.14*Dm*b)//Axial velocity component at inlet using mean blade values in m/s
T12=T01-((C1^2)/(2*Cp))//Initial temperature using modified axial velocity in K
P12=P01*(T12/T01)^(r/(r-1))//Initial pressure at inlet usin modified axial velocity in kPa
d12=(P12*10^3)/(R*T12)//Inlet density with modified axial velocity in kg/m^3
C12=m/(d12*3.14*Dm*b)//Axial velocity component at inlet using modified axial velocity in m/s
U1=3.14*Dm*N//Peripheral velocity of impeller at inlet in m/s
b1=atand(C12/U1)//The blade angle at impeller inlet in degree
W11=C12/sind(b1)//Relative velocity at inlet in m/s
Mr11=W11/(r*R*T12)^(1/2)//Initial relative mach number
Ca=C12//Axial velocity at IGV in m/s
W12=Ca//Relative velocity at inlet usin IGV in m/s
a1=atand(Ca/U1)//Air angle at IGV exit in degree
C13=Ca/sind(a1)//The velocity of flow of air at inlet in m/s
T13=T01-((C13^2)/(2*Cp))//Initial temperature using IGV in K
Mr12=W12/(r*R*T13)^(1/2)//Initial relative mach number using IGV
//output5
printf('(1)Without using IGV\n (a)The air angle at inlet of inducer blade is %3.2f degree\n (b)The inlet relative mach number is %3.3f\n(2)With using IGV\n (a))The air angle at inlet of inducer blade is %3.2f degree\n (b)The inlet relative mach number is %3.3f',b1,Mr11,a1,Mr12)
|
ac8238b652a60de826d42d32674614c68bca0390 | 449d555969bfd7befe906877abab098c6e63a0e8 | /443/CH17/EX17.18/17_18.sce | e32c05fc0a4c083f6d4c4abb822e02ee3abdf272 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,076 | sce | 17_18.sce | pathname=get_absolute_file_path('17_18.sce')
filename=pathname+filesep()+'17_18_data.sci'
exec(filename)
//Density of air(in kg/m^3)
Pa=p/(R*T)*10^5
//Volume flow rate of air at intake(in m^3/min)
Va=Cd*0.25*%pi*d^2*sqrt(2*g*dHg*(pHg/pa))
//Swept volume(in m^3/s)
Vs=0.25*%pi*D^2*L*N*0.5*(K/60)
//Volumeric efficiency
nv=Va/Vs*100
//Brake power(in kW)
bp=(W*N)/20000
//Brake mean effective pressure(in bar)
pbm=(bp*60000)/(L*0.25*%pi*D^2*N*0.5*K)*10^-5
//Torque(in N-m)
T=bp*60000/(2*%pi*N)
//Mass flow rate of fuel(in kg/h)
mf=(Vf/t)*10^-6*Pf*3600
//Brake specific fuel consumption(in kg/kWh)
bsfc=mf/bp
//O2 required/kg of fuel
O2=C*(32/12)+H*(8/1)
//Air required per kg of fuel
ma=O2/0.233
//Actual mass flow rate of air(in kg/s)
maa=Va*Pa
//Actual mass AF ratio
Afa=maa*3600/mf
//% of excess air
E=((Afa-ma)/ma)*100
printf("\n\nRESULTS\n\n")
printf("\nVolumetric efficiency:%f\n",nv)
printf("\nTorque:%f\n",T)
printf("\nBrake power:%f\n",bp)
printf("\nBrake specific fuel consumption:%f\n",bsfc)
printf("\nPercent of excess air:%f\n",E) |
d5fdf578449a745d5bd50cd9cf0a5e7d109751c9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2873/CH10/EX10.6/Ex10_6.sce | c05cd5febfbbe8aaa2590fc993237f0eb244526f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,484 | sce | Ex10_6.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh Chapter 10 Example 6")
N=3000;//engine rpm
m=5;//fuel consumption in litre/hr
r=19;//air-fuel ratio
sg=0.7;//specific gravity of fuel
V=500;//piston speed in m/min
P_imep=6*10^5;//indicated mean effective pressure in pa
P=1.013*10^5;//ambient pressure in pa
T=(15+273);//ambient temperature in K
n_vol=0.7;//volumetric efficiency
n_mech=0.8;//mechanical efficiency
R=0.287;//gas constant for gas in KJ/kg K
disp("let the bore diameter be (D) m")
disp("piston speed(V)=2*L*N")
disp("so L=V/(2*N) in m")
L=V/(2*N)
L=0.0833;//approx.
disp("volumetric efficiency,n_vol=air sucked/(swept volume * no. of cylinder)")
disp("so air sucked/D^2=n_vol*(%pi*L/4)*N*2 in m^3/min")
n_vol*(%pi*L/4)*N*2
disp("so air sucked =274.78*D^2 m^3/min")
disp("air requirement(ma),kg/min=A/F ratio*fuel consumption per min")
disp("so ma=r*m in kg/min")
ma=r*m*sg/60
disp("using perfect gas equation,P*Va=ma*R*T")
disp("so Va=ma*R*T/P in m^3/min")
Va=ma*R*T*1000/P
disp("ideally,air sucked=Va")
disp("so 274.78*D^2=0.906")
disp("D=sqrt(0.906/274.78) in m")
D=sqrt(0.906/274.78)
disp("indicated power(IP)=P_imep*L*A*N*no.of cylinders in KW")
IP=P_imep*L*(%pi*D^2/4)*(N/60)*2/1000
disp("brake power=indicated power*mechanical efficiency")
disp("BP=IP*n_mech in KW")
BP=IP*n_mech
disp("so brake power=10.34 KW")
|
14e5db45f0f934ca56f84f7c77f2f55a03cda24c | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Functions/new/Hypothesis.tst | d2eef784726ebd03ed6e412ddfd3e4ce17fd5672 | [] | no_license | kamleshm/intern_fuzzy | c2dd079bf08bede6bca79af898036d7a538ab4e2 | aaef3c9dc9edf3759ef0b981597746d411d05d34 | refs/heads/master | 2021-01-23T06:25:46.162332 | 2017-07-12T07:12:25 | 2017-07-12T07:12:25 | 93,021,923 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,559 | tst | Hypothesis.tst | -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Netezza
--
-- Copyright (c): 2016 Fuzzy Logix, LLC
--
-- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC.
-- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC.
-- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade
-- secret or copyright law. Dissemination of this information or reproduction of this material is
-- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC.
--
--
-- Functional Test Specifications:
--
-- Test Category: Hypothesis Testing Functions
--
-- Last Updated: 05-29-2017
--
-- Author: <deept.mahendiratta@fuzzylogix.com>
--
-- BEGIN: TEST SCRIPT
\timing on
-- BEGIN: TEST(s)
-----*******************************************************************************************************************************
---FLAnova1WayUdt
-----*******************************************************************************************************************************
DROP VIEW view_ANOVA1Way;
CREATE VIEW view_ANOVA1Way AS
SELECT s.serialval AS GroupID,
t.City,
t.SalesPerVisit
FROM tblCustData t,
fzzlserial s
WHERE City <> 'Boston'
AND serialval <= 1;
SELECT a.*
FROM(SELECT a.GroupID,
a.City,
a.SalesPerVisit,
NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.City), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.City), 1)
AS end_flag
FROM view_ANOVA1Way a) AS z,
TABLE(FLANOVA1WAYUdt(z.GroupID,
z.City,
z.SalesPerVisit,
z.begin_flag,
z.end_flag)) AS a;
DROP VIEW view_ANOVA1Way;
-----*******************************************************************************************************************************
---SP_Ancova
-----*******************************************************************************************************************************
EXEC SP_ANCOVA('tblAncovaTest',
'GroupID',
'XVAL',
'YVAL',
0.05);
--SELECT a.*
--FROM fzzlANCOVAStats a
--WHERE AnalysisID='ADMIN_137601';
-----*******************************************************************************************************************************
---FLCrossTabUdt
-----*******************************************************************************************************************************
SELECT a.*
FROM(
SELECT 1 AS groupid,
a.tabrowid,
a.tabcolid,
NVL(LAG(0) OVER (PARTITION BY groupid ORDER BY a.tabrowid), 1)
AS begin_flag,
NVL(LEAD(0) OVER (PARTITION BY groupid ORDER BY a.tabrowid), 1)
AS end_flag
FROM tblCrossTab a) AS z,
TABLE(FLCrossTabUdt(z.groupid,
z.tabrowid,
z.tabcolid,
z.begin_flag,
z.end_flag)) AS a;
-----*******************************************************************************************************************************
---FLCrossTabUdt with Large Contingency Tables
-----*******************************************************************************************************************************
SELECT a.HardwareID,
b.MajorID,
FLChiSq('EXP_VAL', a.HardwareID, b.MajorID, c.HardwareID,
c.MajorID, 1) AS Exp_Val,
FLChiSq('CHI_SQ', a.HardwareID, b.MajorID, c.HardwareID, c.MajorID,
1) AS Chi_SQ
FROM tblHardware a,
tblMajor b,
tblStudentCrossRef c
GROUP BY a.HardwareID,b.MajorID
ORDER BY 1, 3;
-----*******************************************************************************************************************************
---SP_KSTest1S
-----*******************************************************************************************************************************
-- Case 1: Both mean and standard deviation are known.
DROP TABLE tblKSTestOut;
CALL SP_KSTest1S('NORMAL',
'tblKSTest',
'Num_Val',
3.5,
11.5,
NULL,
'GROUPID',
'tblKSTestOut');
SELECT *
FROM tblKSTestOut
ORDER BY 1;
-- Case 2: Both mean and standard deviation are unknown.
DROP TABLE tblKSTestOut;
CALL SP_KSTest1S('NORMAL',
'tblKSTest',
'Num_Val',
NULL,
NULL,
NULL,
'GROUPID',
'tblKSTestOut');
SELECT *
FROM tblKSTestOut
ORDER BY 1;
DROP TABLE tblKSTestOut;
-----*******************************************************************************************************************************
---FLtTest1S
-----*******************************************************************************************************************************
SELECT GROUPID,
COUNT(*) AS GRP_COUNT,
FLtTest1S('T_STAT', 0.0, a.Num_Val, 2) As T_STAT,
FLtTest1S ('P_VALUE', 0.0, a.Num_Val, 2) as P_VALUE
FROM tblHypoTest a
WHERE TestType = 'tTest'
GROUP BY GROUPID
ORDER BY 1;
-----*******************************************************************************************************************************
---FLtTest2S
-----*******************************************************************************************************************************
SELECT FLtTest2S('T_STAT', 'UNEQUAL_VAR', a.GroupID,a.Num_Val, 2) AS T_Stat,
FLtTest2S('P_VALUE', 'UNEQUAL_VAR', a.GroupID, a.Num_Val, 2) AS P_Value
FROM tblHypoTest a;
-----*******************************************************************************************************************************
---FLMWTest
-----*******************************************************************************************************************************
SELECT FLMWTest('T_STAT' , x.GroupID, y.FracRank) AS T_STAT,
FLMWTest('P_VALUE' , x.GroupID, y.FracRank) AS P_VALUE
FROM (
SELECT a.GroupID,
RANK() OVER (PARTITION BY 1 ORDER BY a.Num_Val ASC) AS Rank
FROM tblHypoTest a
) AS x,
(
SELECT p.Rank,
FLFracRank(p.Rank, COUNT(*)) AS FracRank
FROM
(
SELECT a.GroupID,
a.ObsID,
RANK() OVER (PARTITION BY 1 ORDER BY a.Num_Val ASC)
FROM tblHypoTest a
) AS p
GROUP BY p.Rank
) AS y
WHERE y.Rank = x.Rank;
-----*******************************************************************************************************************************
---FLzTest1P
-----*******************************************************************************************************************************
SELECT GROUPID, COUNT(*) AS GRP_COUNT,
FLzTest1P('Z_STAT', 0.45, a.Num_Val, 2) AS Z_STAT,
FLzTest1P('P_VALUE', 0.45, a.Num_Val, 2) AS P_VALUE
FROM tblzTest a
GROUP BY GROUPID
ORDER BY 1;
-----*******************************************************************************************************************************
---FLzTest1S
-----*******************************************************************************************************************************
SELECT GROUPID, COUNT(*) AS GRP_COUNT,
FLzTest1S('Z_STAT', 0.45, a.Num_Val, 2) AS Z_STAT,
FLzTest1S('P_VALUE', 0.45, a.Num_Val, 2) AS P_VALUE
FROM tblHypoTest a
WHERE TestType = 'tTest'
GROUP BY GROUPID
ORDER BY 1;
-----*******************************************************************************************************************************
---FLzTest2P
-----*******************************************************************************************************************************
SELECT FLzTest2P('Z_STAT', a.GroupID, a.Num_Val, 2) AS Z_STAT,
FLzTest2P('P_VALUE', a.GroupID, a.Num_Val, 2) AS P_VALUE
FROM tblzTest a;
-----*******************************************************************************************************************************
---FLzTest2S
-----*******************************************************************************************************************************
SELECT FLzTest2S('Z_STAT', a.GroupID, a.Num_Val, 2) AS Z_STAT,
FLzTest2S('P_VALUE', a.GroupID, a.Num_Val, 2) AS P_VALUE
FROM tblHypoTest a
WHERE TestType = 'tTest';
-- END: TEST(s)
-- END: TEST SCRIPT
\timing off
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.