blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 6 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 87 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 15 values | visit_date timestamp[us]date 2016-08-04 09:00:04 2023-09-05 17:18:33 | revision_date timestamp[us]date 1998-12-11 00:15:10 2023-09-02 05:42:40 | committer_date timestamp[us]date 2005-04-26 09:58:02 2023-09-02 05:42:40 | github_id int64 436k 586M ⌀ | star_events_count int64 0 12.3k | fork_events_count int64 0 6.3k | gha_license_id stringclasses 7 values | gha_event_created_at timestamp[us]date 2012-11-16 11:45:07 2023-09-14 20:45:37 ⌀ | gha_created_at timestamp[us]date 2010-03-22 23:34:58 2023-01-07 03:47:44 ⌀ | gha_language stringclasses 36 values | src_encoding stringclasses 17 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 15 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7d2997adae3c5f212c8c8ce0ff73f38882e756c | 449d555969bfd7befe906877abab098c6e63a0e8 | /135/CH11/EX11.3/EX3.sce | 608925adad0a35e418499ac9db0178dbb908ff40 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 806 | sce | EX3.sce | // Example 11.3: (a) Output voltage
// (b) Input voltage
clc, clear
B1=36; // Fundamental output in volts
B2=7*B1/100; // Second-harmonic distortion in volts
Vs=0.028; // Input in volts
A=B1/Vs; // Gain
disp("Part (a)");
b=1.2/100; // Amount of feedback in volts
B1f=B1/(1+b*A); // Fundamental output with feedback in volts
B2f=B2/(1+b*A); // Second-harmonic distortion with feedback in volts
disp(B1f,"Fundamental output with feedback (V) =");
disp(B2f,"Second-harmonic distortion with feedback (V) =");
disp("Part (b)");
B1f=36; // Fundamental output with feedback in volts
B2f=1*B1f/100; // Second-harmonic distortion with feedback in volts
T=B2/B2f-1; // Return ratio
AF=A/(1+T); // Feedback gain
Vs=B1f/AF; // Input voltage in volts
disp(Vs,"Input voltage (V) ="); |
c76963648ebfa37beed04508339c967861daa853 | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH6/EX6.12/example6_12.sce | 48457a9eda4dadf69b90192cb1799bf3dc0ee2f4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,706 | sce | example6_12.sce | //Chapter 6
//Example 6_12
//Page 115
clear;clc;
sm=100;
im=200;
pf2=0.707;
n2=0.82;
ll=30;
fc=100;
rc=0.06;
pf1=0.8;
n1=0.93;
printf("(i) When synchronous motor runs at %.1f pf lag:\n\n", pf1);
ip_sm=sm*735.5/n1/1000;
lag1=ip_sm*tan(acos(pf1));
printf("\t Input to synchronous motor = %.2f kW \n", ip_sm);
printf("\t Lagging kVAR taken by synchronous motor = %.2f kVAR \n\n", lag1);
ip_im=im*735.5/n2/1000;
lag2=ip_im*tan(acos(pf2));
printf("\t Input to induction motor = %.2f kW \n", ip_im);
printf("\t Lagging kVAR taken by induction motor = %.2f kVAR \n\n", lag2);
tlag1=lag1+lag2;
tap1=ip_im+ip_sm+ll;
tkva1=sqrt(tlag1^2+tap1^2);
dc1=tkva1*fc;
ec1=tap1*8760;
aec1=ec1*rc;
tab1=aec1+dc1;
printf("\t Total lagging kVAR = %.2f kVAR \n", tlag1);
printf("\t Total active power = %.2f kW \n", tap1);
printf("\t Total kVA = %.2f kVA \n", tkva1);
printf("\t Annual kVA demand charges = Rs. %.2f \n", dc1);
printf("\t Energy consumed per year = %.2f kWh \n", ec1);
printf("\t Annual energy charges = Rs. %.2f \n", aec1);
printf("\t Total annual bill = Rs. %.2f \n\n", tab1);
printf("(ii) When synchronous motor runs at %.1f pf lead:\n\n", pf1);
net=-lag1+lag2;
tap2=ip_im+ip_sm+ll;
tkva2=sqrt(net^2+tap2^2);
dc2=tkva2*fc;
ec2=tap2*8760;
aec2=ec2*rc;
tab2=aec2+dc2;
printf("\t Net lagging kVAR = %.2f kVAR \n", net);
printf("\t Total active power = %.2f kW \n", tap2);
printf("\t Total kVA = %.2f kVA \n", tkva2);
printf("\t Annual kVA demand charges = Rs. %.2f \n", dc2);
printf("\t Energy consumed per year = %.2f kWh \n", ec2);
printf("\t Annual energy charges = Rs. %.2f \n", aec2);
printf("\t Total annual bill = Rs. %.2f \n\n", tab2);
as=tab1-tab2;
printf("Annual saving = Rs. %.0f \n\n", as);
|
6440d16dc660b72ecb7579077c79b549c04e0404 | 4a1effb7ec08302914dbd9c5e560c61936c1bb99 | /Project 2/Experiments/FURIA-C/results/FURIA-C.abalone-10-1tra/result9s0.tst | 624f9b07db045a18f03ded129b5df9d185b5bdb0 | [] | no_license | nickgreenquist/Intro_To_Intelligent_Systems | 964cad20de7099b8e5808ddee199e3e3343cf7d5 | 7ad43577b3cbbc0b620740205a14c406d96a2517 | refs/heads/master | 2021-01-20T13:23:23.931062 | 2017-05-04T20:08:05 | 2017-05-04T20:08:05 | 90,484,366 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,402 | tst | result9s0.tst | @relation abalone
@attribute Sex{M,F,I}
@attribute Length real[0.075,0.815]
@attribute Diameter real[0.055,0.65]
@attribute Height real[0.0,1.13]
@attribute Whole_weight real[0.002,2.8255]
@attribute Shucked_weight real[0.001,1.488]
@attribute Viscera_weight real[5.0E-4,0.76]
@attribute Shell_weight real[0.0015,1.005]
@attribute Rings{15,7,9,10,8,20,16,19,14,11,12,18,13,5,4,6,21,17,22,1,3,26,23,29,2,27,25,24}
@inputs Sex,Length,Diameter,Height,Whole_weight,Shucked_weight,Viscera_weight,Shell_weight
@outputs Rings
@data
10 7
7 6
19 9
16 9
4 4
10 9
14 9
10 9
15 9
7 6
7 6
7 5
10 9
10 9
10 8
15 9
7 6
8 7
5 4
13 9
10 9
9 6
18 9
8 6
16 9
15 9
14 9
16 9
16 9
10 8
8 9
19 9
13 7
14 6
9 9
13 9
16 9
11 8
9 6
6 5
5 4
5 4
17 9
13 9
11 9
15 9
12 8
16 9
3 4
13 7
17 9
13 9
13 8
11 7
20 9
14 8
14 7
9 6
12 9
12 7
9 5
7 4
9 7
11 7
6 6
13 9
22 9
11 7
11 9
15 9
14 9
10 9
9 8
13 9
9 7
9 7
15 9
8 8
9 9
9 9
11 9
10 9
17 9
9 9
7 7
8 8
9 8
8 8
8 8
7 8
7 8
8 9
11 9
11 9
9 9
10 9
6 9
8 9
4 4
7 5
6 7
7 7
6 7
7 8
7 8
8 7
9 8
8 8
8 8
9 8
9 9
10 9
12 9
9 9
12 9
6 6
6 6
5 6
7 6
9 7
8 7
8 7
8 7
8 7
8 8
7 8
9 8
10 8
10 9
10 9
11 9
12 9
10 9
11 9
9 9
11 9
10 9
10 9
13 9
8 7
6 7
9 8
9 8
8 8
9 9
9 9
10 9
8 9
10 9
12 9
11 9
13 9
6 6
7 6
7 6
9 7
8 7
7 8
9 8
9 8
10 8
9 9
9 8
8 9
10 9
9 9
8 9
10 9
10 9
11 9
11 9
11 9
9 9
11 9
14 9
12 9
11 9
10 9
11 9
11 9
12 9
12 9
6 7
10 9
11 9
9 9
10 9
11 9
7 8
11 9
9 9
12 9
12 9
6 6
7 6
7 6
10 7
9 8
9 8
9 8
8 9
7 8
12 9
10 9
10 6
13 9
7 6
10 9
7 6
6 5
8 7
12 9
10 9
10 9
5 5
27 9
7 9
11 9
14 9
14 9
11 9
15 9
9 8
17 9
20 9
13 9
8 7
11 8
12 7
11 7
10 6
17 8
12 8
18 7
6 5
14 9
23 9
14 9
9 7
13 9
11 9
6 7
7 8
9 9
10 9
6 8
8 7
8 8
6 8
7 9
9 9
9 9
13 9
10 9
9 8
11 9
9 9
11 9
13 9
8 6
7 8
8 8
10 8
9 9
10 8
9 9
10 9
11 9
5 4
5 6
9 8
9 8
10 9
9 9
8 9
11 9
7 6
9 9
8 9
8 8
8 9
10 9
9 9
13 9
11 9
12 9
13 9
9 9
12 9
8 9
7 8
8 9
11 9
7 6
8 6
9 6
8 9
10 9
10 8
11 9
9 8
10 9
11 9
8 9
5 5
5 6
10 9
11 9
10 8
21 9
13 9
18 9
8 6
19 9
11 9
14 7
12 7
11 9
15 9
12 8
17 9
10 6
12 7
8 6
12 9
13 9
11 7
12 7
16 9
18 9
9 6
4 4
7 6
7 6
10 8
10 9
9 9
4 4
4 5
6 6
8 7
9 7
9 8
9 8
9 9
10 9
8 9
9 9
12 9
5 6
8 8
8 8
7 8
6 7
9 9
8 8
10 9
10 9
10 9
11 9
11 9
10 9
9 8
10 9
6 6
8 7
9 9
10 9
7 6
6 9
8 7
8 8
9 8
10 9
10 9
11 8
6 6
14 9
9 9
15 9
15 9
7 6
12 8
13 9
12 8
5 6
11 9
10 9
6 6
8 8
8 9
6 4
6 6
8 9
11 9
8 8
7 8
11 8
10 8
9 9
10 9
8 8
6 6
7 6
7 8
8 8
9 9
9 9
11 9
4 6
10 9
11 9
10 9
11 9
6 7
8 7
8 7
|
cf5790e0a915aaec3b28561a883550a997ef8d2d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2420/CH13/EX13.2/13_2.sce | 8f92bcb03ffbf835c3b459eb56100a2cd36df854 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 340 | sce | 13_2.sce | clc
clear
//Initialization of variables
mr=3 //lb
mj=5 //lb
t2=67 //F
t1=60 //lb
ihp=7.25
//calculations
disp("From mollier charts,")
h4=709 //Btu/b
h3=618 //Btu/lb
energyin=ihp*2545/60
energyout=mr*(h4-h3) + mj*(t2-t1)
//results
printf("Energy in = %.1f Btu/min",energyin)
printf("\n Energy out = %.1f Btu/min",energyout)
|
999e8f8fcbb76bef122447f5ee93721813f59f3a | 1218e33055a066314bb364402221c6449cb2b1f9 | /Ipopt-3.12.7/ThirdParty/Mumps/MUMPS/SCILAB/dmumps.sci | 643e2b30dced47763054d79fab1ea19ef97d46b5 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | yueyangdk/CarND-MPC-Project | 1086c912bf8313d34dc47f2020483c7abd1729e4 | a4edcf25a7312ec3a79c04db6cfe66df6f7b1479 | refs/heads/master | 2020-04-06T19:42:43.737116 | 2018-11-15T17:54:14 | 2018-11-15T17:54:14 | 157,746,640 | 1 | 0 | MIT | 2018-11-15T17:16:39 | 2018-11-15T17:16:38 | null | UTF-8 | Scilab | false | false | 2,665 | sci | dmumps.sci | function id=dmumps(id,mat)
//**************************************************************************************************************
// [id] = dmumps(id,mat)
// id is a structure (see details in initmumps.m and MUMPS documentation)
// mat is an optional parameter if the job id.job = -1 or -2
// mat is a square sparse matrix
// informations are return in id fields
//
// *************************************************************************************************************
if (typeof(id) ~= "StructMumps") then
disp("Error. Please call initmumps first.");
return;
end
arithtype=1;
if id.JOB == -2 then
if id.INST==-9999 then
disp('Error. Uninitialized instance. MUMPS should be called with JOB=-1 first.');
return;
end
if id.TYPE ~= arithtype then
disp('Error. You are trying to call z/d version on a d/z instance');
return;
end
// call the C routine dmumpsc
dmumpsc(id.SYM,id.JOB,id.ICNTL,id.CNTL,id.PERM_IN,id.COLSCA,id.ROWSCA,id.RHS,id.VAR_SCHUR,id.INST,id.REDRHS);
id = [];
return;
end
if id.JOB == -1 then
if id.INST~=-9999 then
disp('Error. Already initialized instance.');
return;
end
// call the C routine dmumpsc
[inform,rinform,sol,inst,schu,redrhs,pivnul_list,sym_perm,uns_perm,icntl,cntl] = dmumpsc(id.SYM,id.JOB,id.ICNTL,id.CNTL,id.PERM_IN,id.COLSCA,id.ROWSCA,id.RHS,id.VAR_SCHUR,id.INST,id.REDRHS);
id.INFOG = inform;
id.RINFOG = rinform;
id.SOL = sol;
id.INST = inst;
id.SCHUR = schu;
id.REDRHS = redrhs;
id.PIVNUL_LIST = pivnul_list;
id.SYM_PERM = sym_perm;
id.UNS_PERM = uns_perm;
id.TYPE=arithtype;
id.ICNTL=icntl;
id.CNTL=cntl;
clear inform rinform sol inst schu redrhs pivnul_list sym_perm uns_perm icntl cntl
return;
end
if id.INST ==-9999 then
disp('Uninitialized instance');
return;
end
// call the C routine dmumpsc
if id.TYPE ~= arithtype then
disp('You are trying to call z/d version on a d/z instance');
end
[inform,rinform,sol,inst,schu,redrhs,pivnul_list,sym_perm,uns_perm,icntl,cntl] = dmumpsc(id.SYM,id.JOB,id.ICNTL,id.CNTL,id.PERM_IN,id.COLSCA,id.ROWSCA,id.RHS,id.VAR_SCHUR,id.INST,id.REDRHS, mat);
id.INFOG = inform;
id.RINFOG = rinform;
id.SOL = sol;
id.INST = inst;
if (id.JOB == 2|id.JOB==4|id.JOB==6) then
if id.SYM == 0 then
id.SCHUR=schu';
else
id.SCHUR=triu(schu)+tril(schu',-1);
end
end
id.REDRHS = redrhs;
id.PIVNUL_LIST = pivnul_list;
id.SYM_PERM(sym_perm) = [1:size(mat,1)];
id.UNS_PERM = uns_perm;
id.ICNTL=icntl;
id.CNTL=cntl;
clear inform rinform sol inst schu redrhs pivnul_list sym_perm uns_perm icntl cntl
endfunction
|
c503a1073afc77b22d971344c6620987326f2a5c | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH13/EX13.29/29.sce | 69fc2489112bafff2497dd6926fc7ad0654a1381 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,170 | sce | 29.sce | clc
T1=303; //K
p1=1; //bar
rc=9;
re=5;
n=1.25;
D=0.25; //m
L=0.4; //m
R=287;
cv=0.71;
cp=1;
num=8; //no. 0f cycles/sec
disp("(i) Pressure and temperatures at all salient points =")
p2=p1*(rc)^n;
disp("p2=")
disp(p2)
disp("bar")
T2=T1*(rc)^(n-1);
disp("T2=")
disp(T2)
disp("K")
//T4=1.8*T3
//Heat liberated at constant pressure= 2 × heat liberated at constant volume
//cp*(T4-T3)=2*cv*(T3-T2)
//T4/T3=1.8
rho=rc/re;
T3=1201.9; //K
disp("T3=")
disp(T3)
disp("K")
p3=p2*T3/T2;
disp("p3=")
disp(p3)
disp("bar")
p4=p3;
disp("p4=")
disp(p4)
disp("bar")
T4=1.8*T3;
disp("T4=")
disp(T4)
disp("K")
p5=p4*(1/re)^(n);
disp("p5=")
disp(p5)
disp("bar")
T5=T4*(1/re)^(n-1)
disp("T5=")
disp(T5)
disp("K")
disp("(ii) Mean effective pressure = ")
pm=1/(rc-1)*[p3*(rho-1)+(p4*rho-p5*rc)/(n-1)-(p2-p1*rc)/(n-1)];
disp(pm)
disp("bar")
disp("(iii) Efficiency of the cycle")
Vs=%pi/4*D^2*L;
W=pm*10^5*Vs/1000;
V1=rc/(rc-1)*Vs
m=p1*10^5*V1/R/T1;
Q=m*(cv*(T3-T2) + cp*(T4-T3));
Efficiency=W/Q;
disp("Efficiency =")
disp(Efficiency)
disp("(iv) Power of the engine =")
P=W*num;
disp(P)
disp("kW") |
d0e6ad612c82ad241ad28b586ee0141e8db95e44 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2615/CH8/EX40.3/40.sce | cd823329d0526ed0b604ea5fd3e84003aed3dc33 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 183 | sce | 40.sce | clc
//initialisation of variables
v=60//m/sec
a=30//mm
b=120//mm
//CALCULATIONS
V=v*(b/a)//mm/sec
//RESULTS
printf('the velocity of the follower it the groove=% f mm/sec',V)
|
6695c27121b4a34653d9ef86074e2bce2637ed86 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1808/CH3/EX3.8/Chapter3_Exampl8.sce | f3cfb30c456bf65fc7de8a834521653b7768976a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,089 | sce | Chapter3_Exampl8.sce | clc
clear
//INPUT DATA
p3=20;//Pressure of air in bar
v3=0.2;//volume of air in m^3
Th=500;//engine temprature in Degree C
v23=7;//Isentropic compression ratio
v43=2;//Isentropic volume expansion
v3=0.2;//volume in m^3
//CALCULATIONS
Tl=(Th+273)/((v23)^(1.4-1));//minimum temperature in K
p2=p3/((v23)^(1.4));//pressure in bar
p4=p3*10^2*(1/(v43));//isentropic expansion pressure
p1=((1/(v23))^1.4)*p4;//isentropic compression
s43=(p3*10^2*v3/(Th+273))*log(v43);//Change in entropy in kJ/K
nc=(((Th+273)-Tl)/(Th+273))*100;//Efficiency of carnot cycle in percentage
v1=v43*7*v3;//volume in m^3
vs=v1-v3;//swept volume in m^3
wd=(p3*10^2*v3-p1*v1)*log(2);//workdone in kJ/cycle
P=wd/2.6;//Mean effective pressure in kN/m^2
p=wd*(200/60);//power of engine in kW
//OUTPUT
printf('(a)The minimum temperature in the cycle is %3.2f K \n (b)Change in entropy during isothermal expansion is %3.4f kJ/K \n (c)Thermal efficiency of the cycle is %3.2f percentage \n (d)The mean effective pressure is %3.2f kN/m^2 \n (e)Power of the engine is %3.2f kW',Tl,s43,nc,P,p)
|
49476518b37b9817386f361014babb191318204f | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH7/EX7.10/example_7_10.sce | 2da8f6dcfb2373212a4d0609c9e00c016238f06b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 223 | sce | example_7_10.sce | syms k1 k2 s
T= k1/(s^s+k1*k2*s+k1)
Mp=25 //given
zeta=0.4037
Tp=4
omegaN=%pi/(Tp*(sqrt(1-zeta^2)))
disp(omegaN,"omegaN = ")
k1=omegaN^2
disp(k1," k1 = ")
k2=2*zeta/(sqrt(k1))
disp(k2," k2 = ")
|
3923a7a074710824453cb608e27777aa6707562b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1092/CH12/EX12.9/Example12_9.sce | 26f891b56cebac8340da8434e1eed64f3546a409 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,597 | sce | Example12_9.sce | // Electric Machinery and Transformers
// Irving L kosow
// Prentice Hall of India
// 2nd editiom
// Chapter 12: POWER,ENERGY,AND EFFICIENCY RELATIONS OF DC AND AC DYNAMOS
// Example 12-9
clear; clc; close; // Clear the work space and console.
// Given data
V = 240 ; // Voltage rating of dc shunt motor in volt
I_L = 55 ; // Rated line current in A
S = 1200 ; // Speed in rpm of the dc shunt motor
P_r = 406.4 ; // Rotational losses in W at rated load
R_f = 120 ; // Field resistance in ohm
R_a = 0.4 ; // Armture resistance in ohm
// Calculations
// case a
V_f = V ; // Voltage across field winding in volt
I_f = V_f / R_f ; // Field current in A
I_a = I_L - I_f ; // Rated armature current in A
V_a = V ; // Voltage across armature in volt
E_c = V_a - I_a*R_a ; // back EMF in volt
P_d = E_c * I_a ; // Power developed by the armature in W
// case b
P_o = P_d - P_r ; // Rated output power in W
P_o_hp = P_o / 746 ; // Rated output power in hp
// case c
T_o = (P_o_hp * 5252)/S ; // C in lb-ft
T_o_Nm = T_o * (1.356); // Rated output torque in N-m
// case d
P_in = V*I_L ; // Input power in W
eta = (P_o/P_in)*100 ; // Efficiency at rated load
// case e
// At no-load
P_o_nl = 0 ;
P_r_nl = P_r ; // Rotational losses in W at no load
P_d_nl = P_r_nl ;
I_a_nl = P_d_nl / V_a ; // No-load armature current in A
E_c_nl = V ; // No-load voltage in volt
E_c_fl = E_c ; // Full-load voltage in volt
S_fl = S ; // Full-load speed in rpm
S_nl = (E_c_nl / E_c_fl)*S_fl ; // No-load speed in rpm
// case f
SR = (S_nl - S_fl)/S_fl * 100 ; // Speed regulation
// Display the results
disp("Example 12-9 Solution : ");
printf(" \n a: E_c = %.1f V \n ",E_c );
printf(" \n Power developed by the armature at rated load :\n P_d = %.1f W \n ",P_d);
printf(" \n b: Rated output power :\n P_o = %d W \n ", P_o );
printf(" \n P_o = %d hp \n ",P_o_hp);
printf(" \n c: Rated output torque :\n T_o = %.2f lb-ft ",T_o);
printf(" \n T_o = %.f N-m \n ",T_o_Nm );
printf(" \n d: Efficiency at rated load :\n η = %.1f percent \n ",eta );
printf(" \n e: At no-load, P_o = %d W ; therefore\n\t\tP_d = P_r = EcIa ≅ VaIa = %.1f W \n",P_o_nl,P_r);
printf(" \n No-load armature current :\n I_a(nl) = %.3f A \n ",I_a_nl );
printf(" \n No-load speed :\n S_nl = %f ≃ %.f rpm \n ",S_nl,S_nl );
printf(" \n f: Speed regulation :\n SR = %.1f percent ",SR );
printf(" \n Variation in SR is due to non-approximation of S_nl = %f rpm",S_nl);
printf(" \n while calculating SR in scilab .")
|
a5f86530c09f63b3c11a6cd24096c1fc0e302161 | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfas_oo_aspfin_d/~BivLCM-SR-bfas_oo_aspfin_d-PLin-VLin.tst | 058e0d0e8ccedec86c6194d3e963fed7b1b89dc3 | [] | no_license | psdlab/life-in-time-values-and-personality | 35fbf5bbe4edd54b429a934caf289fbb0edfefee | 7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e | refs/heads/master | 2020-03-24T22:08:27.964205 | 2019-03-04T17:03:26 | 2019-03-04T17:03:26 | 143,070,821 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,974 | tst | ~BivLCM-SR-bfas_oo_aspfin_d-PLin-VLin.tst |
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM.
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.274905D+00
2 -0.206256D-02 0.228290D-02
3 -0.604024D-01 0.402202D-02 0.600153D+00
4 0.333295D-02 -0.266323D-03 -0.883285D-02 0.455070D-02
5 -0.537642D-03 0.233901D-03 0.234790D-02 -0.197397D-03 0.335420D-02
6 -0.413840D-03 -0.173249D-04 -0.156829D-03 -0.103741D-03 -0.223115D-03
7 -0.108548D-02 0.420484D-04 0.303222D-03 -0.143591D-03 -0.120789D-02
8 0.774952D-03 0.810337D-04 -0.326466D-02 0.100603D-03 0.246880D-03
9 -0.366777D+00 0.909217D-02 0.599031D+00 0.958022D-02 0.264765D-01
10 -0.244164D+00 0.191474D-01 0.637876D+00 -0.273118D-01 0.164790D+00
11 0.181923D+00 -0.200659D-01 -0.162662D+00 0.896286D-02 -0.351998D-01
12 -0.275244D+00 0.383010D-02 0.125180D+01 -0.172116D-01 0.904331D-02
13 -0.834346D-01 0.205278D-02 0.789691D-01 -0.135246D-01 -0.248349D-01
14 -0.717307D-01 0.201956D-02 0.275013D+00 -0.170264D-01 -0.596998D-02
15 -0.922631D+00 -0.247456D-01 -0.981021D+00 -0.120219D-01 -0.319585D-01
16 0.410661D-01 -0.135861D-01 -0.233909D-01 -0.200554D-02 0.196987D-03
17 -0.991718D-02 0.321912D-03 0.295665D-02 0.208378D-03 -0.824102D-03
18 -0.404806D+00 -0.776833D-02 -0.310726D-01 -0.111340D-01 0.232021D-01
19 -0.231748D-02 0.129416D-01 0.149205D+00 -0.451191D-02 -0.156720D-02
20 -0.809976D+00 0.317766D-01 0.557580D+01 -0.307736D-01 0.115673D+00
21 -0.123347D-01 -0.152689D-01 -0.161155D+00 0.211836D-02 -0.364309D-03
22 0.447981D-03 0.550928D-05 -0.184459D-02 -0.218269D-03 0.269938D-03
23 -0.324699D-01 0.235908D-02 0.454788D-01 0.142034D-01 0.168478D-02
24 0.653666D-02 -0.407836D-03 -0.119833D-01 0.678015D-03 -0.567120D-03
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 0.636023D-03
7 0.846658D-03 0.447816D-02
8 -0.307472D-03 -0.412572D-03 0.301491D-02
9 -0.840584D-02 -0.521543D-03 -0.137513D-01 0.335721D+02
10 -0.127494D-02 -0.633692D-01 0.126632D-01 0.127551D+01 0.191804D+02
11 0.304653D-02 0.930705D-02 -0.915826D-02 -0.547965D+01 -0.220189D+01
12 -0.306293D-01 -0.400696D-01 0.264613D-01 -0.168288D+01 0.191414D+01
13 0.425017D-01 0.110241D+00 -0.691601D-02 -0.206399D+01 -0.609138D+00
14 -0.189501D-01 -0.173334D-01 0.252384D+00 -0.187221D+01 0.320159D+01
15 0.415967D-02 0.581915D-01 -0.105173D-01 0.453452D+00 -0.771363D+01
16 -0.178078D-03 -0.260564D-02 0.627373D-03 0.361198D+00 -0.787290D-01
17 0.162864D-03 0.335792D-03 -0.186804D-03 -0.869715D-01 -0.196705D-01
18 -0.348019D-01 -0.125894D+00 0.629727D-01 -0.577333D+01 0.172301D+01
19 -0.530331D-02 0.103958D-01 -0.584071D-02 -0.931896D+00 -0.462418D-01
20 -0.810285D-03 -0.247609D-01 -0.298513D+00 0.521858D+01 0.144022D+02
21 0.693902D-02 -0.543117D-02 0.655900D-02 0.679042D+00 0.841637D-01
22 -0.162751D-03 -0.489681D-03 -0.863002D-04 0.656870D-02 0.894449D-02
23 -0.147399D-02 -0.642593D-02 0.921887D-03 0.122857D+00 0.643603D-01
24 0.904603D-04 0.519294D-03 0.156454D-03 0.280496D-01 -0.345600D-01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 0.271461D+02
12 -0.982226D+01 0.146417D+03
13 -0.242810D+01 -0.143602D+01 0.130719D+02
14 0.137961D+01 -0.300355D+01 -0.330771D+01 0.102770D+03
15 -0.658405D+00 -0.293304D+01 0.577258D+00 -0.536709D+01 0.172321D+03
16 -0.283559D-01 0.110773D+00 -0.166692D+00 0.407467D-01 0.203094D+01
17 0.416308D-01 0.571069D-02 0.366092D-01 0.236490D-01 -0.776639D+00
18 0.589312D+01 -0.136257D+01 -0.588679D+01 0.421772D+01 -0.193166D+01
19 0.723904D+00 -0.246954D+01 -0.412970D+00 0.123700D+00 -0.191667D+01
20 -0.880033D+01 -0.141125D+02 0.334962D+01 -0.704090D+02 0.860441D+01
21 0.872368D-01 0.166059D+01 0.627864D+00 0.107206D+00 0.130451D+01
22 -0.105828D+00 0.705862D-01 -0.160818D-01 -0.388939D-02 0.819623D-01
23 -0.251093D+00 0.190127D+01 -0.169773D+00 0.249949D-01 0.399791D+00
24 0.103410D+00 -0.356008D+00 -0.109432D-01 0.401617D-01 -0.108538D+00
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 0.379767D+00
17 -0.317667D-01 0.949485D-02
18 -0.126303D+00 0.907622D-01 0.248868D+03
19 -0.168950D+00 0.355495D-01 0.319231D+01 0.640308D+01
20 0.345912D+00 -0.753840D-01 -0.301857D+02 0.654643D+01 0.833075D+03
21 0.529453D-01 -0.848262D-02 0.242005D+01 -0.541216D+01 -0.802024D+01
22 0.118688D-01 -0.198549D-02 -0.119364D+01 -0.482272D-01 0.831541D-01
23 0.436438D-01 -0.807716D-02 -0.421612D+00 -0.221214D+00 0.673596D+01
24 -0.856156D-02 0.135778D-02 0.227086D+00 -0.254713D-01 -0.379196D+01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 0.626447D+01
22 -0.392698D-01 0.135951D-01
23 -0.422761D-01 0.230744D-01 0.136146D+01
24 0.819725D-01 -0.246506D-02 -0.110452D+00 0.424017D-01
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 1.000
2 -0.082 1.000
3 -0.149 0.109 1.000
4 0.094 -0.083 -0.169 1.000
5 -0.018 0.085 0.052 -0.051 1.000
6 -0.031 -0.014 -0.008 -0.061 -0.153
7 -0.031 0.013 0.006 -0.032 -0.312
8 0.027 0.031 -0.077 0.027 0.078
9 -0.121 0.033 0.133 0.025 0.079
10 -0.106 0.092 0.188 -0.092 0.650
11 0.067 -0.081 -0.040 0.026 -0.117
12 -0.043 0.007 0.134 -0.021 0.013
13 -0.044 0.012 0.028 -0.055 -0.119
14 -0.013 0.004 0.035 -0.025 -0.010
15 -0.134 -0.039 -0.096 -0.014 -0.042
16 0.127 -0.461 -0.049 -0.048 0.006
17 -0.194 0.069 0.039 0.032 -0.146
18 -0.049 -0.010 -0.003 -0.010 0.025
19 -0.002 0.107 0.076 -0.026 -0.011
20 -0.054 0.023 0.249 -0.016 0.069
21 -0.009 -0.128 -0.083 0.013 -0.003
22 0.007 0.001 -0.020 -0.028 0.040
23 -0.053 0.042 0.050 0.180 0.025
24 0.061 -0.041 -0.075 0.049 -0.048
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 1.000
7 0.502 1.000
8 -0.222 -0.112 1.000
9 -0.058 -0.001 -0.043 1.000
10 -0.012 -0.216 0.053 0.050 1.000
11 0.023 0.027 -0.032 -0.182 -0.096
12 -0.100 -0.049 0.040 -0.024 0.036
13 0.466 0.456 -0.035 -0.099 -0.038
14 -0.074 -0.026 0.453 -0.032 0.072
15 0.013 0.066 -0.015 0.006 -0.134
16 -0.011 -0.063 0.019 0.101 -0.029
17 0.066 0.051 -0.035 -0.154 -0.046
18 -0.087 -0.119 0.073 -0.063 0.025
19 -0.083 0.061 -0.042 -0.064 -0.004
20 -0.001 -0.013 -0.188 0.031 0.114
21 0.110 -0.032 0.048 0.047 0.008
22 -0.055 -0.063 -0.013 0.010 0.018
23 -0.050 -0.082 0.014 0.018 0.013
24 0.017 0.038 0.014 0.024 -0.038
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 1.000
12 -0.156 1.000
13 -0.129 -0.033 1.000
14 0.026 -0.024 -0.090 1.000
15 -0.010 -0.018 0.012 -0.040 1.000
16 -0.009 0.015 -0.075 0.007 0.251
17 0.082 0.005 0.104 0.024 -0.607
18 0.072 -0.007 -0.103 0.026 -0.009
19 0.055 -0.081 -0.045 0.005 -0.058
20 -0.059 -0.040 0.032 -0.241 0.023
21 0.007 0.055 0.069 0.004 0.040
22 -0.174 0.050 -0.038 -0.003 0.054
23 -0.041 0.135 -0.040 0.002 0.026
24 0.096 -0.143 -0.015 0.019 -0.040
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 1.000
17 -0.529 1.000
18 -0.013 0.059 1.000
19 -0.108 0.144 0.080 1.000
20 0.019 -0.027 -0.066 0.090 1.000
21 0.034 -0.035 0.061 -0.855 -0.111
22 0.165 -0.175 -0.649 -0.163 0.025
23 0.061 -0.071 -0.023 -0.075 0.200
24 -0.067 0.068 0.070 -0.049 -0.638
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 1.000
22 -0.135 1.000
23 -0.014 0.170 1.000
24 0.159 -0.103 -0.460 1.000
|
ece9629e77eddaba62ae59dce9036a9d155e9c24 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3856/CH14/EX14.3/Ex14_3.sce | b164ed24385020f046b8a4d3e63021ec24cea5c2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 444 | sce | Ex14_3.sce | //Calculate the Wavelength in nanometer for transition in Hydrogen atom
//Example 14.3
clc;
clear;
nf=2; //Quantum number for emmision process (n=4 to 2)
ni=4; //Quantum number for emmision process (n=4 to 20)
RH=109737; //Rydberg constant in cm^-1
new=RH*abs((1/ni^2)-(1/nf^2)); //Frequency in cm^-1
Lemda1=1/new; //Wavelength in cm
Lemda=Lemda1*10^7 //Wavelength in nm
printf("Wavelength = %.0f nm",Lemda);
|
098659a5cf4cc6b7c5b78af77e513ba02c9793c5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2666/CH4/EX4.2/4_2.sce | 555fc16fea97cfd1982be1baacb312e8f15f689e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 329 | sce | 4_2.sce | clc
//initialisation of variables
d=0.24//ft
p1=40//psia
t=240//F
p2=39//psi
t2=70//F
b=26.48//in
f=200//cu ft
h=0.491//ft
w=144//ft
q=53.35//ft
t3=700//ft
//CALCULATIONS
P=p1+h*b//psia
W=(w*P*f)/(q*t3)//lb per min
H=W*d*(t-t2)//Btu per min
//RESULTS
printf('The heat removed from the air =% f Btu per min',H)
|
7aa4bff0678b36eccadb6e423b769bd377209c7c | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/bode.man.tst | 8f33fe85cee01d38011156ef7b619ba47f935cff | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 276 | tst | bode.man.tst | clear;lines(0);
s=poly(0,'s')
h=syslin('c',(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01))
title='(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01)';
bode(h,0.01,100,title);
h1=h*syslin('c',(s^2+2*0.1*15.1*s+228.01)/(s^2+2*0.9*15*s+225))
xbasc()
bode([h1;h],0.01,100,['h1';'h'])
|
94ef24cd44978e89a3b8da21275ad1b8ff2d6470 | 67310b5d7500649b9d53cf62226ec2d23468413c | /tags/archive/TestCaseGenerator-Plugin-OpeningSequenceCoverage/trunk/tests/large-system-tests/inputs/jEdit/ground_truth/OpeningSequenceCoverage/length-1/max-150/t89.tst | bb0155b6932ea5846d313023df381200f8776fbb | [] | no_license | csnowleopard/guitar | e09cb77b2fe8b7e38d471be99b79eb7a66a5eb02 | 1fa5243fcf4de80286d26057db142b5b2357f614 | refs/heads/master | 2021-01-19T07:53:57.863136 | 2013-06-06T15:26:25 | 2013-06-06T15:26:25 | 10,353,457 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 661 | tst | t89.tst | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TestCase>
<Step>
<EventId>e31</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e84</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e62</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e42</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e76</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e20</EventId>
<ReachingStep>false</ReachingStep>
</Step>
</TestCase>
|
e0aaf153fac808e234301402ed3dc9132cefe4e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1370/CH9/EX9.10/example9_10.sce | cde91f1215d682219c0c976c730b7f98b8c95ab9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 228 | sce | example9_10.sce | //example9.10
clc
disp("It can be observed from the Lissajous figures that,")
disp("(y_1)=8 units and, (y_2)=10 units")
s=asind(8/10)
format(6)
disp(s,"Therefore, phi (in degree)= asind((y_1)/(y_2))=asind(8/10)=")
|
f7f3845f820812d73a3a1d031607b03167dd8d64 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3515/CH6/EX6.2/Ex_6_2.sce | a6d80e17f60f00e02df15911b331837d8d0c50f6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 294 | sce | Ex_6_2.sce | // Exa 6.2
format('v',6);
clc;
clear;
close;
// Given data
R1= 50;// in kohm
R1=R1*10^3;// in ohm
R2=R1;// in ohm
R3=R2;// in ohm
C1= 60;// in pF
C1= C1*10^-12;// in F
C2=C1;// in F
C3=C2;// in F
f= 1/(2*%pi*R1*C1*sqrt(6));
disp(f*10^-3,"Frequency of oscilltions in kHz is : ")
|
3e4100fda8b5d6a59df5aa41a8d975a8d61268d2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH3/EX3.2/ex3_2.sce | e1d02d78e37a8576bd25d76742d12c418ad2a34a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 867 | sce | ex3_2.sce | // Exa 3.2
clc;
clear;
close;
// Given data
P = 350;// in kN/m^2
P = P * 10^3;// in N/m^2
m = 1;// in kg
m = m * 10^3;// in gram
V = 0.35;// in m^3
C_p = 1.005;// in kJ/kg-K
C_v = 0.710;// in kJ/kg-K
R = C_p - C_v;// in kJ/kg-K
T = (P*V)/(m*R);// in K
T = T - 273;// in degree C
disp(T,"The intial temperature in degree C is");
T = T + 273;// in K
T1 = 316;// in degree C
T1 = T1 + 273;// in K
P2 = P * (T1/T);// in N/m^2
P2 = P2 * 10^-3;// in kN/m^2
disp(P2,"The final pressure of air in kN/m^2 is");
T = T - 273;// in degree C
T1 = T1 - 273;// in degree C
m = m * 10^-3;// in kg
Q = m * C_v * (T1-T);// in kJ
disp(Q,"Heat added in kJ is");
G = m*C_v * (T1-T);// Gain of internal energy in kJ
disp(G,"Gain of internal energy in kJ is");
G_enthalpy = m*C_p*(T1-T);// Gain of enthalpy in kJ
disp(G_enthalpy,"Gain of enthalpy in kJ is");
|
dc947d80a5b2bdf0f0f9749671c2c185aade4aed | 449d555969bfd7befe906877abab098c6e63a0e8 | /2627/CH5/EX5.1/Ex5_1.sce | 116ca6932248d3fc9539eee024ae19f568f8ad37 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 561 | sce | Ex5_1.sce | //Ex 5.1
clc;clear;close;
format('v',5);
kVA=250;//kVA
V1=11000;//V(Primary voltage)
V2=400;//V(secondary voltage)
f=50;//Hz
N2=80;//no. of turns in secondary
Ifl1=kVA*1000/V1;//A(Full load primay current)
Ifl2=kVA*1000/V2;//A(Full load secondary current)
disp("Part(a)");
disp(Ifl1,"Full load primary current(A)");
disp(Ifl2,"Full load secondary current(A)");
disp("Part(b)");
N1=N2*V1/V2;//no. of turns in secondary
disp(N1,"No. of turns in primary");
disp("Part(c)");
fi_m=V2/(4.44*N2*f);//Wb
disp(fi_m*1000,"Maximum value of flux(mWb)");
|
d9ba09b7470a2b09f061a1da21ba4969eca3a6e2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1967/CH11/EX11.2/11_2.sce | d2a824f006808c3eec6e8b644dcaae197b722715 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 238 | sce | 11_2.sce | clc
//initialisation of variables
clear
T= 95.5 //C
p= 1 //atm
v= 0.0126 //cc g^-1
a= 0.0242 //cal cc^-1 atm^-1
r= 0.035 //K atm^-1
//CALCULATIONS
dH= (273.2+T)*v*a/r
//RESULTS
printf ('Heat of transition = %.1f cal g^-1',dH)
|
be2294bf1c2dd1c4bfec05c649bd998f7a358d4c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH8/EX8.6/Ex8_6.sce | ee84fa5a5d0f545383781a2e880a6b769b3bd758 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,348 | sce | Ex8_6.sce | //Variable declaration
Ro=7.5 //output resistance(ohms)
hfe=50
Ve=20 //voltage given to emitter(V)
Vbe=0.8 //base to emitter voltage(V)
Vc=15 //collector voltage(V)
P=12 //maximum power dissipation(W)
Ib1=5 //for minimum load current Il=0,Ib=5
//Calculations
Io=(Vc/Ro)*10**3 //output current(A)
Il=76 //load current(mA)
Is=Il+5 //supply current(mA)
Ic=Io-Is //collector current(A)
Ib=Ic/hfe //base current(mA)
Ie=Ic-Ib //emitter current(mA)
Pt=(Ve*Ie)-(Vc*Ic) //power dissipated in transistor(W)
Pl=(Ve-Vbe)*Is-Vc*Il //power dissipated in LR
Vimax=(P+Vc*(Ic*10**-3))/(Ie*10**-3) //input voltage maximum
Iomin=hfe*Ib1 //output current minimum(mA)
//Results
printf ("power dissipated in the transistor is %.2f W and in LR is %.3f W",Pt/1E+3,Pl/1E+3)
printf ("maximum permissible input voltage is %.2f V",Vimax)
printf ("minimum load current for load voltage to remain stabalized is %.1f mA",Iomin)
|
8c992b77ecbde2b2ccfa1b1fd2295662c10b97e6 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/YU32PFM/ATWM1_Working_Memory_MEG_YU32PFM_Session1/ATWM1_Working_Memory_MEG_Nonsalient_Uncued_Run1.sce | 5b2f649cc72ef923a07538ef7da6d3191e404b23 | [] | 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 | 48,615 | sce | ATWM1_Working_Memory_MEG_Nonsalient_Uncued_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 = 36;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 382; width = 382; color = 0, 0, 0;} frame1;
box { height = 369; width = 369; 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 = 369; width = 369; color = 42, 42, 42;} 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;
44 61 292 292 399 125 1942 2992 2092 fixation_cross gabor_174 gabor_039 gabor_145 gabor_129 gabor_174_alt gabor_039 gabor_145_alt gabor_129 "1_1_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2100_gabor_patch_orientation_174_039_145_129_target_position_2_4_retrieval_position_2" gabor_circ gabor_085_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_1_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_085_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2042 2992 2092 fixation_cross gabor_173 gabor_141 gabor_021 gabor_093 gabor_173_alt gabor_141 gabor_021 gabor_093_alt "1_2_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2100_gabor_patch_orientation_173_141_021_093_target_position_2_3_retrieval_position_2" gabor_circ gabor_005_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_2_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2242 2992 2542 fixation_cross gabor_064 gabor_113 gabor_138 gabor_172 gabor_064_alt gabor_113 gabor_138_alt gabor_172 "1_3_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2550_gabor_patch_orientation_064_113_138_172_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_032_framed blank blank blank blank fixation_cross_white "1_3_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_032_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2092 2992 2042 fixation_cross gabor_047 gabor_137 gabor_008 gabor_075 gabor_047 gabor_137_alt gabor_008 gabor_075_alt "1_4_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2050_gabor_patch_orientation_047_137_008_075_target_position_1_3_retrieval_position_1" gabor_047_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_4_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_047_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1892 2992 2242 fixation_cross gabor_090 gabor_177 gabor_069 gabor_149 gabor_090_alt gabor_177_alt gabor_069 gabor_149 "1_5_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2250_gabor_patch_orientation_090_177_069_149_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_069_framed gabor_circ blank blank blank blank fixation_cross_white "1_5_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_069_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1892 2992 2392 fixation_cross gabor_077 gabor_016 gabor_152 gabor_046 gabor_077 gabor_016_alt gabor_152_alt gabor_046 "1_6_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2400_gabor_patch_orientation_077_016_152_046_target_position_1_4_retrieval_position_1" gabor_077_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_6_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_077_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 64 292 292 399 125 1742 2992 1942 fixation_cross gabor_070 gabor_098 gabor_114 gabor_176 gabor_070_alt gabor_098_alt gabor_114 gabor_176 "1_7_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1750_3000_1950_gabor_patch_orientation_070_098_114_176_target_position_3_4_retrieval_position_2" gabor_circ gabor_098_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_7_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_098_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1742 2992 2192 fixation_cross gabor_087 gabor_070 gabor_039 gabor_128 gabor_087_alt gabor_070 gabor_039_alt gabor_128 "1_8_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_087_070_039_128_target_position_2_4_retrieval_position_2" gabor_circ gabor_070_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_8_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_070_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2242 2992 2442 fixation_cross gabor_158 gabor_125 gabor_010 gabor_086 gabor_158_alt gabor_125 gabor_010_alt gabor_086 "1_9_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2450_gabor_patch_orientation_158_125_010_086_target_position_2_4_retrieval_position_2" gabor_circ gabor_125_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_9_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_125_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1892 2992 2492 fixation_cross gabor_013 gabor_041 gabor_063 gabor_119 gabor_013 gabor_041 gabor_063_alt gabor_119_alt "1_10_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2500_gabor_patch_orientation_013_041_063_119_target_position_1_2_retrieval_position_2" gabor_circ gabor_041_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_10_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1792 2992 1892 fixation_cross gabor_136 gabor_090 gabor_027 gabor_047 gabor_136_alt gabor_090_alt gabor_027 gabor_047 "1_11_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_1900_gabor_patch_orientation_136_090_027_047_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_047_framed blank blank blank blank fixation_cross_white "1_11_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_047_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1742 2992 2592 fixation_cross gabor_004 gabor_110 gabor_162 gabor_144 gabor_004 gabor_110_alt gabor_162 gabor_144_alt "1_12_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2600_gabor_patch_orientation_004_110_162_144_target_position_1_3_retrieval_position_1" gabor_054_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_12_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_054_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 64 292 292 399 125 2142 2992 1942 fixation_cross gabor_071 gabor_094 gabor_020 gabor_040 gabor_071 gabor_094_alt gabor_020_alt gabor_040 "1_13_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2150_3000_1950_gabor_patch_orientation_071_094_020_040_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_020_framed gabor_circ blank blank blank blank fixation_cross_white "1_13_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_020_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1942 2992 1942 fixation_cross gabor_020 gabor_140 gabor_080 gabor_065 gabor_020 gabor_140 gabor_080_alt gabor_065_alt "1_14_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1950_3000_1950_gabor_patch_orientation_020_140_080_065_target_position_1_2_retrieval_position_2" gabor_circ gabor_140_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_14_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_140_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2042 2992 2142 fixation_cross gabor_009 gabor_123 gabor_084 gabor_066 gabor_009_alt gabor_123 gabor_084 gabor_066_alt "1_15_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2150_gabor_patch_orientation_009_123_084_066_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_035_framed gabor_circ blank blank blank blank fixation_cross_white "1_15_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_035_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1842 2992 2392 fixation_cross gabor_089 gabor_168 gabor_106 gabor_040 gabor_089_alt gabor_168 gabor_106 gabor_040_alt "1_16_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2400_gabor_patch_orientation_089_168_106_040_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_106_framed gabor_circ blank blank blank blank fixation_cross_white "1_16_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_106_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 63 292 292 399 125 2192 2992 2342 fixation_cross gabor_029 gabor_085 gabor_058 gabor_148 gabor_029 gabor_085 gabor_058_alt gabor_148_alt "1_17_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2200_3000_2350_gabor_patch_orientation_029_085_058_148_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_010_framed blank blank blank blank fixation_cross_white "1_17_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_010_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1892 2992 1892 fixation_cross gabor_045 gabor_152 gabor_132 gabor_111 gabor_045 gabor_152_alt gabor_132 gabor_111_alt "1_18_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_1900_gabor_patch_orientation_045_152_132_111_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_082_framed gabor_circ blank blank blank blank fixation_cross_white "1_18_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_082_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2042 2992 2492 fixation_cross gabor_030 gabor_119 gabor_176 gabor_149 gabor_030_alt gabor_119 gabor_176 gabor_149_alt "1_19_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2500_gabor_patch_orientation_030_119_176_149_target_position_2_3_retrieval_position_2" gabor_circ gabor_119_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_19_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_119_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2092 2992 2542 fixation_cross gabor_152 gabor_090 gabor_126 gabor_007 gabor_152_alt gabor_090 gabor_126 gabor_007_alt "1_20_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2550_gabor_patch_orientation_152_090_126_007_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_126_framed gabor_circ blank blank blank blank fixation_cross_white "1_20_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_126_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2192 2992 2042 fixation_cross gabor_015 gabor_148 gabor_101 gabor_082 gabor_015 gabor_148_alt gabor_101 gabor_082_alt "1_21_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2050_gabor_patch_orientation_015_148_101_082_target_position_1_3_retrieval_position_1" gabor_064_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_21_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_064_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 63 292 292 399 125 1992 2992 1942 fixation_cross gabor_057 gabor_177 gabor_012 gabor_120 gabor_057_alt gabor_177_alt gabor_012 gabor_120 "1_22_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2000_3000_1950_gabor_patch_orientation_057_177_012_120_target_position_3_4_retrieval_position_1" gabor_102_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_22_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_102_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1742 2992 2442 fixation_cross gabor_093 gabor_072 gabor_135 gabor_159 gabor_093 gabor_072_alt gabor_135 gabor_159_alt "1_23_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2450_gabor_patch_orientation_093_072_135_159_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_135_framed gabor_circ blank blank blank blank fixation_cross_white "1_23_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_135_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1942 2992 2542 fixation_cross gabor_070 gabor_101 gabor_176 gabor_129 gabor_070_alt gabor_101 gabor_176 gabor_129_alt "1_24_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2550_gabor_patch_orientation_070_101_176_129_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_040_framed gabor_circ blank blank blank blank fixation_cross_white "1_24_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_040_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 63 292 292 399 125 2042 2992 2592 fixation_cross gabor_050 gabor_020 gabor_110 gabor_130 gabor_050 gabor_020 gabor_110_alt gabor_130_alt "1_25_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2050_3000_2600_gabor_patch_orientation_050_020_110_130_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_159_framed gabor_circ blank blank blank blank fixation_cross_white "1_25_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_159_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1942 2992 2042 fixation_cross gabor_097 gabor_173 gabor_019 gabor_049 gabor_097_alt gabor_173 gabor_019 gabor_049_alt "1_26_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2050_gabor_patch_orientation_097_173_019_049_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_065_framed gabor_circ blank blank blank blank fixation_cross_white "1_26_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2042 2992 1992 fixation_cross gabor_015 gabor_045 gabor_122 gabor_069 gabor_015 gabor_045_alt gabor_122 gabor_069_alt "1_27_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2000_gabor_patch_orientation_015_045_122_069_target_position_1_3_retrieval_position_1" gabor_151_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_27_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_151_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1742 2992 2342 fixation_cross gabor_069 gabor_178 gabor_004 gabor_044 gabor_069_alt gabor_178 gabor_004 gabor_044_alt "1_28_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2350_gabor_patch_orientation_069_178_004_044_target_position_2_3_retrieval_position_2" gabor_circ gabor_130_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_28_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_130_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2242 2992 2342 fixation_cross gabor_037 gabor_017 gabor_060 gabor_172 gabor_037 gabor_017_alt gabor_060 gabor_172_alt "1_29_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2350_gabor_patch_orientation_037_017_060_172_target_position_1_3_retrieval_position_1" gabor_087_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_29_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_087_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1842 2992 2292 fixation_cross gabor_043 gabor_101 gabor_082 gabor_119 gabor_043_alt gabor_101 gabor_082 gabor_119_alt "1_30_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2300_gabor_patch_orientation_043_101_082_119_target_position_2_3_retrieval_position_2" gabor_circ gabor_150_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_30_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_150_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1842 2992 2142 fixation_cross gabor_001 gabor_065 gabor_086 gabor_049 gabor_001 gabor_065 gabor_086_alt gabor_049_alt "1_31_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2150_gabor_patch_orientation_001_065_086_049_target_position_1_2_retrieval_position_2" gabor_circ gabor_065_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_31_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1892 2992 2592 fixation_cross gabor_140 gabor_117 gabor_085 gabor_165 gabor_140 gabor_117_alt gabor_085 gabor_165_alt "1_32_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2600_gabor_patch_orientation_140_117_085_165_target_position_1_3_retrieval_position_1" gabor_003_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_32_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_003_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 63 292 292 399 125 1942 2992 2342 fixation_cross gabor_174 gabor_010 gabor_062 gabor_044 gabor_174_alt gabor_010 gabor_062_alt gabor_044 "1_33_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1950_3000_2350_gabor_patch_orientation_174_010_062_044_target_position_2_4_retrieval_position_1" gabor_126_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_33_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_126_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1992 2992 1992 fixation_cross gabor_019 gabor_178 gabor_089 gabor_071 gabor_019 gabor_178_alt gabor_089_alt gabor_071 "1_34_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2000_gabor_patch_orientation_019_178_089_071_target_position_1_4_retrieval_position_1" gabor_019_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_34_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_019_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1842 2992 1892 fixation_cross gabor_164 gabor_111 gabor_057 gabor_002 gabor_164_alt gabor_111 gabor_057_alt gabor_002 "1_35_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_1900_gabor_patch_orientation_164_111_057_002_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_002_framed blank blank blank blank fixation_cross_white "1_35_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_002_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1892 2992 2242 fixation_cross gabor_180 gabor_007 gabor_156 gabor_028 gabor_180 gabor_007 gabor_156_alt gabor_028_alt "1_36_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2250_gabor_patch_orientation_180_007_156_028_target_position_1_2_retrieval_position_1" gabor_180_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_36_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_180_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2142 2992 2592 fixation_cross gabor_090 gabor_105 gabor_173 gabor_152 gabor_090 gabor_105_alt gabor_173 gabor_152_alt "1_37_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2600_gabor_patch_orientation_090_105_173_152_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_173_framed gabor_circ blank blank blank blank fixation_cross_white "1_37_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_173_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 64 292 292 399 125 2142 2992 2142 fixation_cross gabor_087 gabor_151 gabor_062 gabor_043 gabor_087_alt gabor_151 gabor_062_alt gabor_043 "1_38_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2150_3000_2150_gabor_patch_orientation_087_151_062_043_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_062_framed gabor_circ blank blank blank blank fixation_cross_white "1_38_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_062_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1792 2992 1942 fixation_cross gabor_068 gabor_024 gabor_008 gabor_140 gabor_068_alt gabor_024 gabor_008_alt gabor_140 "1_39_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_1950_gabor_patch_orientation_068_024_008_140_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_092_framed blank blank blank blank fixation_cross_white "1_39_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 64 292 292 399 125 1992 2992 2192 fixation_cross gabor_092 gabor_158 gabor_134 gabor_006 gabor_092 gabor_158 gabor_134_alt gabor_006_alt "1_40_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2000_3000_2200_gabor_patch_orientation_092_158_134_006_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_006_framed blank blank blank blank fixation_cross_white "1_40_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_006_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2092 2992 2392 fixation_cross gabor_166 gabor_143 gabor_109 gabor_087 gabor_166_alt gabor_143_alt gabor_109 gabor_087 "1_41_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2400_gabor_patch_orientation_166_143_109_087_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_059_framed gabor_circ blank blank blank blank fixation_cross_white "1_41_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_059_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2192 2992 2442 fixation_cross gabor_165 gabor_104 gabor_025 gabor_140 gabor_165 gabor_104_alt gabor_025 gabor_140_alt "1_42_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2450_gabor_patch_orientation_165_104_025_140_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_025_framed gabor_circ blank blank blank blank fixation_cross_white "1_42_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_025_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2042 2992 2142 fixation_cross gabor_063 gabor_145 gabor_086 gabor_126 gabor_063 gabor_145_alt gabor_086_alt gabor_126 "1_43_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2150_gabor_patch_orientation_063_145_086_126_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_172_framed blank blank blank blank fixation_cross_white "1_43_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_172_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1792 2992 2292 fixation_cross gabor_071 gabor_048 gabor_161 gabor_176 gabor_071 gabor_048 gabor_161_alt gabor_176_alt "1_44_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2300_gabor_patch_orientation_071_048_161_176_target_position_1_2_retrieval_position_2" gabor_circ gabor_048_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_44_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_048_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 63 292 292 399 125 1842 2992 2392 fixation_cross gabor_007 gabor_054 gabor_081 gabor_144 gabor_007_alt gabor_054 gabor_081 gabor_144_alt "1_45_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1850_3000_2400_gabor_patch_orientation_007_054_081_144_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_097_framed blank blank blank blank fixation_cross_white "1_45_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_097_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1792 2992 2442 fixation_cross gabor_120 gabor_057 gabor_010 gabor_093 gabor_120_alt gabor_057 gabor_010_alt gabor_093 "1_46_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2450_gabor_patch_orientation_120_057_010_093_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_141_framed blank blank blank blank fixation_cross_white "1_46_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_141_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1742 2992 2492 fixation_cross gabor_076 gabor_165 gabor_049 gabor_101 gabor_076 gabor_165 gabor_049_alt gabor_101_alt "1_47_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2500_gabor_patch_orientation_076_165_049_101_target_position_1_2_retrieval_position_2" gabor_circ gabor_165_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_47_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_165_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2192 2992 2192 fixation_cross gabor_168 gabor_037 gabor_146 gabor_108 gabor_168 gabor_037 gabor_146_alt gabor_108_alt "1_48_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2200_gabor_patch_orientation_168_037_146_108_target_position_1_2_retrieval_position_2" gabor_circ gabor_082_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_48_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_082_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1992 2992 1992 fixation_cross gabor_080 gabor_118 gabor_062 gabor_150 gabor_080 gabor_118_alt gabor_062_alt gabor_150 "1_49_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2000_gabor_patch_orientation_080_118_062_150_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_150_framed blank blank blank blank fixation_cross_white "1_49_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_150_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1792 2992 2242 fixation_cross gabor_019 gabor_068 gabor_158 gabor_133 gabor_019_alt gabor_068 gabor_158_alt gabor_133 "1_50_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2250_gabor_patch_orientation_019_068_158_133_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_133_framed blank blank blank blank fixation_cross_white "1_50_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_133_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 64 292 292 399 125 2192 2992 2042 fixation_cross gabor_056 gabor_143 gabor_028 gabor_087 gabor_056 gabor_143 gabor_028_alt gabor_087_alt "1_51_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2200_3000_2050_gabor_patch_orientation_056_143_028_087_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_028_framed gabor_circ blank blank blank blank fixation_cross_white "1_51_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_028_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2192 2992 1892 fixation_cross gabor_034 gabor_151 gabor_061 gabor_085 gabor_034_alt gabor_151_alt gabor_061 gabor_085 "1_52_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_1900_gabor_patch_orientation_034_151_061_085_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_015_framed gabor_circ blank blank blank blank fixation_cross_white "1_52_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2092 2992 2192 fixation_cross gabor_020 gabor_046 gabor_163 gabor_081 gabor_020_alt gabor_046 gabor_163 gabor_081_alt "1_53_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2200_gabor_patch_orientation_020_046_163_081_target_position_2_3_retrieval_position_2" gabor_circ gabor_046_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_53_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_046_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 64 292 292 399 125 1842 2992 2342 fixation_cross gabor_141 gabor_089 gabor_023 gabor_059 gabor_141_alt gabor_089 gabor_023 gabor_059_alt "1_54_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1850_3000_2350_gabor_patch_orientation_141_089_023_059_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_059_framed blank blank blank blank fixation_cross_white "1_54_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_059_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1792 2992 1992 fixation_cross gabor_097 gabor_078 gabor_058 gabor_024 gabor_097 gabor_078_alt gabor_058_alt gabor_024 "1_55_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_097_078_058_024_target_position_1_4_retrieval_position_1" gabor_143_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_55_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2242 2992 2042 fixation_cross gabor_133 gabor_156 gabor_180 gabor_048 gabor_133_alt gabor_156 gabor_180 gabor_048_alt "1_56_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2050_gabor_patch_orientation_133_156_180_048_target_position_2_3_retrieval_position_2" gabor_circ gabor_017_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_56_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_017_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2092 2992 2092 fixation_cross gabor_004 gabor_179 gabor_122 gabor_067 gabor_004 gabor_179_alt gabor_122 gabor_067_alt "1_57_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2100_gabor_patch_orientation_004_179_122_067_target_position_1_3_retrieval_position_1" gabor_004_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_57_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_004_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2242 2992 2292 fixation_cross gabor_013 gabor_137 gabor_060 gabor_118 gabor_013 gabor_137 gabor_060_alt gabor_118_alt "1_58_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2300_gabor_patch_orientation_013_137_060_118_target_position_1_2_retrieval_position_2" gabor_circ gabor_092_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_58_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1892 2992 2292 fixation_cross gabor_125 gabor_145 gabor_102 gabor_169 gabor_125 gabor_145_alt gabor_102 gabor_169_alt "1_59_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2300_gabor_patch_orientation_125_145_102_169_target_position_1_3_retrieval_position_1" gabor_125_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_59_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_125_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 64 292 292 399 125 1992 2992 2542 fixation_cross gabor_133 gabor_107 gabor_002 gabor_092 gabor_133 gabor_107_alt gabor_002 gabor_092_alt "1_60_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2000_3000_2550_gabor_patch_orientation_133_107_002_092_target_position_1_3_retrieval_position_2" gabor_circ gabor_107_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_60_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_107_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2142 2992 2242 fixation_cross gabor_158 gabor_042 gabor_096 gabor_027 gabor_158_alt gabor_042 gabor_096_alt gabor_027 "1_61_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2250_gabor_patch_orientation_158_042_096_027_target_position_2_4_retrieval_position_2" gabor_circ gabor_042_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_61_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_042_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2242 2992 2242 fixation_cross gabor_025 gabor_086 gabor_067 gabor_049 gabor_025_alt gabor_086 gabor_067 gabor_049_alt "1_62_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2250_gabor_patch_orientation_025_086_067_049_target_position_2_3_retrieval_position_2" gabor_circ gabor_134_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_62_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_134_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 1742 2992 2192 fixation_cross gabor_013 gabor_096 gabor_178 gabor_061 gabor_013 gabor_096_alt gabor_178 gabor_061_alt "1_63_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_013_096_178_061_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_178_framed gabor_circ blank blank blank blank fixation_cross_white "1_63_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_178_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 63 292 292 399 125 1842 2992 2142 fixation_cross gabor_085 gabor_037 gabor_059 gabor_110 gabor_085_alt gabor_037_alt gabor_059 gabor_110 "1_64_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1850_3000_2150_gabor_patch_orientation_085_037_059_110_target_position_3_4_retrieval_position_2" gabor_circ gabor_174_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_64_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_174_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2142 2992 1992 fixation_cross gabor_146 gabor_037 gabor_083 gabor_059 gabor_146 gabor_037_alt gabor_083_alt gabor_059 "1_65_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2000_gabor_patch_orientation_146_037_083_059_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_013_framed blank blank blank blank fixation_cross_white "1_65_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_013_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 62 292 292 399 125 2092 2992 2292 fixation_cross gabor_001 gabor_177 gabor_089 gabor_054 gabor_001_alt gabor_177 gabor_089 gabor_054_alt "1_66_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2300_gabor_patch_orientation_001_177_089_054_target_position_2_3_retrieval_position_2" gabor_circ gabor_177_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_66_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_177_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1942 2992 2092 fixation_cross gabor_085 gabor_155 gabor_046 gabor_066 gabor_085_alt gabor_155 gabor_046_alt gabor_066 "1_67_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2100_gabor_patch_orientation_085_155_046_066_target_position_2_4_retrieval_position_2" gabor_circ gabor_015_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_67_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 2142 2992 1892 fixation_cross gabor_056 gabor_170 gabor_145 gabor_014 gabor_056 gabor_170 gabor_145_alt gabor_014_alt "1_68_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_1900_gabor_patch_orientation_056_170_145_014_target_position_1_2_retrieval_position_1" gabor_104_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_68_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 61 292 292 399 125 1792 2992 2092 fixation_cross gabor_051 gabor_087 gabor_138 gabor_173 gabor_051 gabor_087_alt gabor_138 gabor_173_alt "1_69_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2100_gabor_patch_orientation_051_087_138_173_target_position_1_3_retrieval_position_1" gabor_005_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_69_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
44 63 292 292 399 125 1992 2992 2492 fixation_cross gabor_125 gabor_178 gabor_013 gabor_058 gabor_125 gabor_178_alt gabor_013_alt gabor_058 "1_70_Encoding_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2000_3000_2500_gabor_patch_orientation_125_178_013_058_target_position_1_4_retrieval_position_2" gabor_circ gabor_040_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_70_Retrieval_Working_Memory_MEG_P2_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_040_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
};
# 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;
}; |
1cdfde56b734f72812ddc1f7ea023285e01bb3aa | 449d555969bfd7befe906877abab098c6e63a0e8 | /2201/CH9/EX9.14/ex9_14.sce | 23a33d54fed4bc0ece7127fc9227eba7b0b510f1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 522 | sce | ex9_14.sce | // Exa 9.14
clc;
clear;
close;
// Given data
I_D = 0.3;// in mA
k = 0.12;// in mA/V^2
V_T = 1;// in V
V_GS = V_T + (sqrt(I_D/k));// in V
V_S = -V_GS;// in V
V_DD = 6;// in V
V_D = 3;// in V
I_DQ = 0.3;// in mA
R_D = (V_DD-V_D)/I_DQ;// in k ohm
disp(R_D,"The value of R_D in k ohm is");
V_DS = V_D - V_S;// in V
disp(V_DS,"The value of V_DS in V is");
V_DSsat = V_GS - V_T;// in V
disp(V_DSsat,"The value of V_DS(sat) in V is");
if V_DS>V_DSsat then
disp("The MOSFET is in saturation region")
end
|
28090934468f40cbe755686c88d6a98d67812023 | 244971ae8af51184d278cdc2be1c80775413adae | /SSSeSourceDirac.sci | 36e81b4a8f6d9c005a1d7645e9395ec41b825298 | [] | no_license | MSCA-SIMFREE/748767 | 5879f1f139b608c7cd2f1bd62325b281c9c1e7d1 | 4726206e514f1e47e939e73b9339c056057866db | refs/heads/master | 2020-12-27T15:21:13.646362 | 2020-02-03T11:40:00 | 2020-02-03T11:40:00 | 237,951,088 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 608 | sci | SSSeSourceDirac.sci | // The code was developed under Horizon2020 Framework Programme
// Project: 748767 — SIMFREE
function y=SSSeSourceDirac()
// Electrical Dirac Impulse
//
// Calling Sequence
// y=SSSeSourceDirac()
//
// Parameters
// y : Electrical Output
//
// Description
// Generates an electrical impulse at the start of the simulation period. The average level over the entire simulation period is one unit.
// This component is useful for testing the response of an electrical sub-system.
//
global MNT;
y=zeros(MNT,1);
y(1,1)=sqrt(MNT);
endfunction
|
7ffbda8345c687feb006cbf5dc9be063f435b02b | 449d555969bfd7befe906877abab098c6e63a0e8 | /569/CH4/EX4.10/4_10.sci | 7b03051fcad2298726e80edc0dd2949964d5c8f2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 169 | sci | 4_10.sci | // Calculate the temperature at a depth of 1000 m
clc;
th0=20;
t=2000;
thr=th0-0.005*(t-50)-0.25*exp(-t/50);
disp(thr,'temperature at a depth of 1000 m (degree C)') |
d9925fed279f3e4cff1e9114766f3d9b1d950e15 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/macros/percent/%psr.sci | ddde4f5fc77eb33914b3e142f248ffcc1c7b58b6 | [
"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 | 258 | sci | %psr.sci | //<f2>=%psr(n1,f2)
// %psr(n1,f2) calcule la soustraction de la matrice de polynome n1 et
//de la matrice de fractions rationnelles f2.
//Cette macro correspond a l'operation n1-f2
//!
[n2,d2]=f2(2:3),
[n2,d2]=simp(n1.*d2-n2,d2)
f2(2)=n2;f2(3)=d2;
//end
|
4db7d67a5f88bade28288287150a580089b4e4b9 | 704a8e9047b24c6e005fdc6206aacf6b3ea623bb | /UE/S1/bin/ANALYSE/myfirst.sce | a0a236c091714719b7402b1e8a7f9b254a7edd95 | [] | no_license | GuangYueCHEN/ENSIIE | e84ffd6be1718b958bc72cef791a77dc49fa057f | f2014c0cf5b1adda3f327d5dd1d39217e703871b | refs/heads/master | 2021-06-30T21:50:49.946086 | 2019-06-18T09:53:36 | 2019-06-18T09:53:36 | 114,696,410 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 100 | sce | myfirst.sce | // my first program Scilab
a=0;b=1;n=100;
x=linspace(a,b,n+1);
y=exp(-x).*sin(4*x);
plot(x,y);
|
53edb7f7f20f7229f0af9d3598c883d074741aa0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1241/CH6/EX6.10/exa6_10.sce | a2fa5cc14ae51b1caeda5f7e78339e6a669a21f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,082 | sce | exa6_10.sce | //Example 6-10//
//Map L=W''X''YZ+WX''YZ''+WX''Y''Z''+W''XYZ//
clc
//clears the console//
clear
//clears all existing variables//
//Mapping the expression//
disp(' C''D'' C''D CD CD'' ')
disp('A''B'' 0 0 1 0 ')
disp('AB'' 0 0 1 0 ')
disp('AB 0 0 0 0 ')
disp('AB'' 1 0 0 1 ')
disp(' From the map, high outputs for 3,7,8,10 ')
a=[0 0 1 1 ; 0 1 1 1 ; 1 0 0 0 ; 1 0 1 0]
disp(a)
for i=1: 4
if a(i,1)==1 then
b(i,1)='W'
else
b(i,1)='W'''
end
if a(i,2)==1 then
b(i,2)='X'
else
b(i,2)='X'''
end
if a(i,3)==1 then
b(i,3)='Y'
else
b(i,3)='Y'''
end
if a(i,4)==1 then
b(i,4)='Z'
else
b(i,4)=' Z'''
end
end
disp(' evaluating expression from truth table and map ')
l=strcat([ b(1,1),b(1,2),b(1,3),b(1,4)])
m=strcat([ b(2,1),b(2,2),b(2,3),b(2,4)])
n=strcat([ b(3,1),b(3,2),b(3,3),b(3,4)])
o=strcat([ b(4,1),b(4,2),b(4,3),b(4,4)])
x=strcat([l"+",m"+",n"+",o ])
disp(x)
//Expression is displayed//
|
05c4e3a579545ba1b4ad16e141497436ee999286 | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/disassembler/cp.instr.tst | 221fc53448e88a86d37bfdc281c219ca0595334a | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,494 | tst | cp.instr.tst | ; @Harness: disassembler
; @Result: PASS
section .text size=0x00000080 vma=0x00000000 lma=0x00000000 offset=0x00000034 ;2**0
section .data size=0x00000000 vma=0x00000000 lma=0x00000000 offset=0x000000b4 ;2**0
start .text:
label 0x00000000 ".text":
0x0: 0x00 0x14 cp r0, r0
0x2: 0x10 0x14 cp r1, r0
0x4: 0x20 0x14 cp r2, r0
0x6: 0x30 0x14 cp r3, r0
0x8: 0x40 0x14 cp r4, r0
0xa: 0x50 0x14 cp r5, r0
0xc: 0x60 0x14 cp r6, r0
0xe: 0x70 0x14 cp r7, r0
0x10: 0x80 0x14 cp r8, r0
0x12: 0x90 0x14 cp r9, r0
0x14: 0xa0 0x14 cp r10, r0
0x16: 0xb0 0x14 cp r11, r0
0x18: 0xc0 0x14 cp r12, r0
0x1a: 0xd0 0x14 cp r13, r0
0x1c: 0xe0 0x14 cp r14, r0
0x1e: 0xf0 0x14 cp r15, r0
0x20: 0x00 0x15 cp r16, r0
0x22: 0x10 0x15 cp r17, r0
0x24: 0x20 0x15 cp r18, r0
0x26: 0x30 0x15 cp r19, r0
0x28: 0x40 0x15 cp r20, r0
0x2a: 0x50 0x15 cp r21, r0
0x2c: 0x60 0x15 cp r22, r0
0x2e: 0x70 0x15 cp r23, r0
0x30: 0x80 0x15 cp r24, r0
0x32: 0x90 0x15 cp r25, r0
0x34: 0xa0 0x15 cp r26, r0
0x36: 0xb0 0x15 cp r27, r0
0x38: 0xc0 0x15 cp r28, r0
0x3a: 0xd0 0x15 cp r29, r0
0x3c: 0xe0 0x15 cp r30, r0
0x3e: 0xf0 0x15 cp r31, r0
0x40: 0x00 0x14 cp r0, r0
0x42: 0x01 0x14 cp r0, r1
0x44: 0x02 0x14 cp r0, r2
0x46: 0x03 0x14 cp r0, r3
0x48: 0x04 0x14 cp r0, r4
0x4a: 0x05 0x14 cp r0, r5
0x4c: 0x06 0x14 cp r0, r6
0x4e: 0x07 0x14 cp r0, r7
0x50: 0x08 0x14 cp r0, r8
0x52: 0x09 0x14 cp r0, r9
0x54: 0x0a 0x14 cp r0, r10
0x56: 0x0b 0x14 cp r0, r11
0x58: 0x0c 0x14 cp r0, r12
0x5a: 0x0d 0x14 cp r0, r13
0x5c: 0x0e 0x14 cp r0, r14
0x5e: 0x0f 0x14 cp r0, r15
0x60: 0x00 0x16 cp r0, r16
0x62: 0x01 0x16 cp r0, r17
0x64: 0x02 0x16 cp r0, r18
0x66: 0x03 0x16 cp r0, r19
0x68: 0x04 0x16 cp r0, r20
0x6a: 0x05 0x16 cp r0, r21
0x6c: 0x06 0x16 cp r0, r22
0x6e: 0x07 0x16 cp r0, r23
0x70: 0x08 0x16 cp r0, r24
0x72: 0x09 0x16 cp r0, r25
0x74: 0x0a 0x16 cp r0, r26
0x76: 0x0b 0x16 cp r0, r27
0x78: 0x0c 0x16 cp r0, r28
0x7a: 0x0d 0x16 cp r0, r29
0x7c: 0x0e 0x16 cp r0, r30
0x7e: 0x0f 0x16 cp r0, r31
start .data:
|
7e3121dd08fad9a154039abba176a1c6bef440d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /491/CH4/EX4.7/4_7.sce | 33f1b235f739260c7563b88702686918fe6b20a1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 261 | sce | 4_7.sce | q = 1 ; // Uniform load intensity in k/ft
M0 = 12 ; // Couple in k-ft
Rb = 5.25 ; // Reaction at B in k
Rc = 1.25 ; // Reaction at C in k
b = 4 ; // Length of section AB in ft
Mb = -(q*(b^2))/2 ; // Moment acting at B
disp("k-ft",Mb,"Bending moment at B") |
69d7fbb89fa696fd9f25c889a908b193834c8229 | 449d555969bfd7befe906877abab098c6e63a0e8 | /503/CH8/EX8.11/ch8_11.sci | e1c1c4155acec9c5681f0e3f8ba38b5d2d9dbd56 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 493 | sci | ch8_11.sci | //to calculate net power op,eff,line current and pf
clc;
j=sqrt(-1);
Zs=(1/3)*(.3+j*6);
phi=atand(imag(Zs)/real(Zs));
Vt=400/sqrt(3);
Ef=600/sqrt(3);
a=sqrt(Vt^2+Ef^2-2*Vt*Ef*cosd(phi));
Ia=a/abs(Zs);disp(Ia,'line current(A)');
B=acosd((Vt^2+a^2-Ef^2)/(2*Vt*a));
phi=90-(90-atand(imag(Zs)/real(Zs)))-B;disp(cosd(phi),'pf');
Pein=Vt*Ia*cosd(phi);
Ra=.1;
b=Ia^2*Ra;
loss=2400;
Pmout=Pein-loss/3-b;disp(Pmout,'net power op(W)');
eff=Pmout/Pein;
disp(eff*100,'efficiency(%)'); |
0055598daa5b880627de3fa406b8a62e8f712e81 | 2ae858a680a4ccf8a2ec89a45a1e48a0292d8eab | /macros/GeometricShearer.sci | 1ebd655c243af2cdd43b4702bc83f1e81d06e6cc | [] | no_license | shreyneil/FOSSEE-Image-Processing-Toolbox | f315a82c325b2d6cbd0611689f3e30071a38490d | dd1cbd0dcbe0c3dd11d6ce1ab205b4b72011ae56 | refs/heads/master | 2020-12-02T16:26:13.755637 | 2017-07-07T19:22:33 | 2017-07-07T19:22:33 | 96,552,147 | 0 | 0 | null | 2017-07-07T15:32:15 | 2017-07-07T15:32:15 | null | UTF-8 | Scilab | false | false | 1,003 | sci | GeometricShearer.sci | function [out] = GeometricShearer(inputimage,direction,value)
// Shear the image
//
// Calling Sequence
// output_image = GeometricShearer(inputimage,direction,value);
//
// Parameters
//
// inputimage : image matrix on which geometric shear has to be applied
// direction : An input string that like. 'Horizontal' to shear the image in horizontal direction or 'Vertical' to shear the image in vertical direction
// value : A scalar value i.e amount to want shift the pixel of image
// output_image : sheared image
//
// Description
// This function returns the sheared image.It shears the image by shifting the rows or columns of image.
//
// Examples
// a = imread('lena.jpeg');
// b = GeometricShearer(a,'Horzontal',5);
// imshow(b);
//
// Authors:
//
//Diwakar Bhardwaj
inputimage1=mattolist(inputimage);
a = raw_GeometricShearer(inputimage1,direction,value);
dimension=size(a)
for i = 1:dimension
out(:,:,i)=a(i);
end
endfunction;
|
59bd8c1c7edf125b53d531b35bfda062a7d36b67 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3773/CH2/EX2.2/Ex2_2.sce | c00b37c4778cf90d281235d6bda7549af8c8f0ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 773 | sce | Ex2_2.sce | //Chapter 2: Antenna Basics
//Example 2-3.2
clc;
//Variable Initialization
e_half_power = 1/sqrt(2) //E(theta) at half power(unitless)
e_null = 0 //E(theta) = 0 at null points (unitless)
theta_1 = 0 //theta' (degrees)
theta = 1 //theta (degrees)
//Calculation
for x=0:2 //loop untill theta = i
theta = 0.5*acos(e_half_power/cos(theta_1*%pi/180)) //theta(radian)
theta_1 = theta*180/%pi //theta(degrees)
end
hpbw = 2*(theta*180/%pi) //Half-power beamwidth (Degrees)
theta = 0.5*acos(e_null) //theta (radians)
fnbw = 2*(theta*180/%pi) //Beamwidth between first null (degrees)
//Result
mprintf("The half power beamwidth is %.2f degrees",hpbw)
mprintf("\nThe beamwidth between first nulls is %d degrees", fnbw)
|
3ee593ab416b7ddd3c7dd17e31acccd8d297605f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2081/CH4/EX4.6/Ex4_6.sce | 56d33ca13bbb248597e24c5fd06545f8b246c18c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 449 | sce | Ex4_6.sce | Asys=4200//area of system
Acell=12//area of cell
N=1001
K=7
Acl=K*Acell//area of cluster
M=Asys/Acl//no. of clusters
disp(M,'no. of clusters')
J=N/K//cell capacity
disp(J,'cell capacity in channels/cell')
C=N*M//system capacity
disp(C,'the system capacity in no. of channels')
k=4
acl=k*Acell
m=Asys/acl
m1=floor(m)
disp(m1,'no. of clusters for reduced cluster size')
c=N*m1
disp(c,'new system capacity for reduced cluster size in no. of channels')
|
17877f26168df990b658135b46f0a2970cc4897b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1076/CH16/EX16.18/16_18.sce | 2aea77dfa5ac4fac0810116c247b8f7cd42eebe0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 428 | sce | 16_18.sce | clear
clc
Vc=220
Z=2*complex(.15, .2)
Z1=.5*Z
Z2=.5*Z
Ib= 60 * exp (%i * -acos (.9))
Ic= 100 * exp (%i * -acos (.8))
Vb=Vc + (Ic * Z2)
Iab=Ib + Ic
Va=Vb + (Iab * Z1)
Vs=abs(Va)
Is= abs(Iab)
pf=cosd(abs(atand(imag(Va)/real(Va))+abs(atand(imag(Iab)/real(Iab)))))
mprintf("\nsending end voltage = %.1f V", Vs)
mprintf("\nsending end current = %.2f A", Is)
mprintf("\nsending end pf = %.3f", pf)
|
4a0c2b3fff41d9cf431640fe3cdd8df87eba0ec2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /476/CH7/EX7.4/Example_7_4.sce | 7fa74165a2ef43fc1e028a971c6491254c6fe397 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,290 | sce | Example_7_4.sce | //A Textbook of Chemical Engineering Thermodynamics
//Chapter 7
//Properties of Solutions
//Example 4
clear;
clc;
//Given:
V1_w = 0.816*10^-3; //partial molar volume of water in 96% alcohol solution
V1_e = 1.273*10^-3; //partial molar volume of ethanol in 96% alcohol solution
V2_w = 0.953*10^-3; //partial molar volume of water in 56% alcohol solution
V2_e = 1.243*10^-3; //partial molar volume of ethanol in 56% alcohol solution
d = 0.997*10^3; //density of water (kg/m^3)
//To calculate the volume of water to be added and volume of dilute alcohol solution
//Basis:
V = 2*10^-3; //volume of alcohol solution (m^3)
V_sp = (0.96*V1_e)+(0.04*V1_w); //volume of 1 kg of laboratory alcohol
m_e = V/V_sp; //mass of 2*10^-3 m^3 alcohol
//(a).
//Let mass of water added be m kg
//Taking an alcohol balance
m = (m_e*0.96)/0.56 - m_e;
v = m/d;
mprintf('\n (a).');
mprintf('\n Mass of water added is %f kg',m);
mprintf('\n Volume of water added is %4.3e cubic m',v);
//(b)
m_sol = m_e + m; //mass of alcohol solution obtained
sp_vol = (0.56*V2_e)+(0.44*V2_w); //specific volume of 56% alcohol
V_dil = sp_vol*m_sol; //volume of dilute alcohol solution
mprintf('\n\n (b)');
mprintf('\n Volume of dilute alcohol solution is %5.4e cubic m',V_dil);
//end |
c224a1710295c0b1b8bd16efd6dff42446b26819 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1955/CH3/EX3.7/example7.sce | 3d89cab828d34285ef1ac0103f75c2fbd9355532 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,229 | sce | example7.sce | clc
clear
//input data
Cr2=28//Radial component of velocity at impeller exit in m/s
ss=0.9//The slip factor
U2=350//The impeller tip speed in m/s
A=0.08//The impeller area in m^2
nc=0.9//Total head isentropic efficiency
T01=288//The ambient air temperature in K
P01=1//The ambient air pressure in bar
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
Cx2=ss*U2//outlet absolute velocity of air in tangential direction in m/s
C2=((Cx2^2)+(Cr2^2))^(1/2)//Axial velocity component at the outlet in m/s
T=(ss*(U2^2))/Cp//Total change in temperature in K
T02=T+T01//The final ambient air temperature in K
T2=T02-((C2^2)/(2*Cp))//The actual final air temperature in K
M2=(C2)/(r*R*T2)^(1/2)//Exit absolute mach number
P=((1+(ss*T/T01))^(r/(r-1)))//The overall pressure ratio
P02=P*P01//The final ambient pressure in bar
P2=P02*(T2/T02)^(r/(r-1))//The absolute final pressure in bar
d2=(P2*10^5)/(R*T2)//The final density of air at exit in kg/m^3
m=d2*A*Cr2//The mass flow rate in kg/s
//output
printf('(a)The exit absolute mach number is %3.4f\n(b)The mass flow rate is %3.4f kg/s',M2,m)
|
b947c55fb08753660c4fb72a926a9dfadb0c0b82 | 449d555969bfd7befe906877abab098c6e63a0e8 | /52/CH4/EX4.19/Example4_19.sce | b76a9781531219bc21c555b9faa2e49e07cbd0d7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 192 | sce | Example4_19.sce | //Example 4.19
//Program to Compute the FFT of given Sequence x[n]=[1,0,0,0,0,0,0,0].
clear;
clc ;
close ;
x = [1,0,0,0,0,0,0,0];
//FFT Computation
X = fft (x , -1);
disp(X,'X(z) = '); |
aad88433bd39b1678196267edf03a3ec7d8e3dd4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /548/DEPENDENCIES/6_1b_data.sci | c265fdb501b6624987d3959aa30108a1ba6b71ce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 512 | sci | 6_1b_data.sci | //for the jet power executive aircraft(CJ-1):
b=16.25;//wingspan(meter)
S=29.54;//wingarea(m^2)
AR=b^2/S;//aspect ratio
D=1.225;//density at sea level(Kg/m^3)
W=88176.75;//normal gross weight(N)
f=1119;//fuel capacity
Tf=16245;//thrust (N) provided by single turbofan engine
Sf=0.102;//specific fuel consumption(N/(hp.h))
Cdo=0.02;//parasite drag coefficient
e=0.81;//oswald efficiency factor
V=linspace(40,300,500);//velocity over which we have to find thrust(40 to 300 m/s and over 500 points)
|
460a65b7bb8c33d1ab70582b234e8a207017620d | 717ddeb7e700373742c617a95e25a2376565112c | /104/CH2/EX2.1/2_1.sce | e1bfef7712d623cf6bfae6a29e1e1bb4e776bf37 | [] | 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 | 90 | sce | 2_1.sce | //laplace transform of unit function
syms t s
y=laplace('1',t,s)
disp(y,"F(s)=")
// test |
4c59fd6ee468d1ca34451c37d08148c9a7e5cdab | d7087cf730b37f76170323e080c090f8094979ac | /test/parser/t2.tst | 015963d64611b56755d7264529b5701f6a128c27 | [] | no_license | VladimirMeshcheriakov/42sh | 025dffe358b86f48eaf7751a5cb08d4d5d5366c4 | 52d782255592526d0838bc40269f6e71f6a51017 | refs/heads/master | 2023-03-15T17:26:20.575439 | 2015-06-26T12:44:05 | 2015-06-26T12:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 99 | tst | t2.tst | <cmd>
../build/42sh</cmd>
<ref>
bash</ref>
<stdin>
if true
then
echo toto | cat -e
fi;
</stdin>
|
16fcf57e7f0a92fba019de3b863f81032d848edb | 7c129ce7f747d44e6c7cedea4c007088e87aa90c | /Programs/Autocorrelation.sce | 92f6c7f7693849a38ac1ff3c79e0053fe45c9890 | [] | no_license | KilariSandhya/Digital-Signal-Processing | 08d97a6d46ff46c533c7a2114c19883980c85e38 | bad9dab8f5e02a8f1638ce20351e9eba1a0a11d0 | refs/heads/master | 2022-11-18T03:23:47.628061 | 2020-07-20T07:46:02 | 2020-07-20T08:00:23 | 281,047,630 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 545 | sce | Autocorrelation.sce | clc;clear;close;
wavread("ibat.wav","size")
[y,Fs,bits]=wavread("ibat.wav");
figure;
//plot(y(1,:));
xtitle('Vowel a');
xlabel('bits');
ylabel('recorded signal');
y=wavread("ibat.wav")
plot(y(1,:));
yconj=conj(y);
l=length(y);
N=2*l-1;
y=[y zeros(1,N-l)];
yconj=[yconj zeros(1,N-l)];
for lag=1:N;
R(lag)=0;
for i=1:N
if(i>=lag)
h(i)=yconj(i-lag+1)*y(i);
R(lag)=R(lag)+h(i);
end
end
end
k=-l+1:l-1
figure;
plot2d(k,R);
xtitle('Auto correlation');
xlabel('lag values');
ylabel('autocorrelation');
|
b0c6e02a3099d23e7d1a19cc2bea177b9a61afda | b2675f983fedb79e5e6f1940962373bda0570ec4 | /HSO WE/WE flows/Tests/ss.tst | a443c0513703ec6638551714226fc217dc1a54f3 | [] | no_license | Meena92/Projects | b854c40b91515bb429c9e13fb0cbc95c03e0a9d6 | 06361e24bf51883ff4140db5c37c3f40836a5752 | refs/heads/master | 2020-03-29T01:45:03.726432 | 2019-06-11T05:26:08 | 2019-06-11T05:26:08 | 149,404,524 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,843 | tst | ss.tst | <?xml version="1.0" ?>
<TestCase name="ss" version="5">
<meta>
<create version="8.2.0" buildNumber="8.2.0.244" author="rkrishn8" date="08/22/2017" host="LP-R9WHCBM" />
<lastEdited version="8.2.0" buildNumber="8.2.0.244" author="rkrishn8" date="08/29/2017" host="LP-R9WHCBM" />
</meta>
<id>27732194871C11E7AD1F2E3720524153</id>
<Documentation>Put documentation of the Test Case here.</Documentation>
<IsInProject>true</IsInProject>
<sig>ZWQ9NSZ0Y3Y9NSZsaXNhdj04LjIuMCAoOC4yLjAuMjQ0KSZub2Rlcz04ODMxNDgzODQ=</sig>
<subprocess>false</subprocess>
<initState>
</initState>
<resultState>
</resultState>
<deletedProps>
</deletedProps>
<Node name="Output Log Message" log=""
type="com.itko.lisa.test.TestNodeLogger"
version="1"
uid="4D82A134871C11E7AD1F2E3720524153"
think="500-1S"
useFilters="true"
quiet="true"
next="Output Log Message" >
<log><trackingNumber>1Z3V891F02264{{=import java.util.Random; new Random().nextInt(100000)}}</log>
</Node>
<Node name="abort" log=""
type="com.itko.lisa.test.AbortStep"
version="1"
uid="27732196871C11E7AD1F2E3720524153"
think="0h"
useFilters="true"
quiet="true"
next="" >
</Node>
<Node name="fail" log=""
type="com.itko.lisa.test.Abend"
version="1"
uid="27732198871C11E7AD1F2E3720524153"
think="0h"
useFilters="true"
quiet="true"
next="abort" >
</Node>
<Node name="end" log=""
type="com.itko.lisa.test.NormalEnd"
version="1"
uid="2773219A871C11E7AD1F2E3720524153"
think="0h"
useFilters="true"
quiet="true"
next="fail" >
</Node>
</TestCase>
|
4a92688f0883f1412f2dddc1f01f330ebe8923eb | 449d555969bfd7befe906877abab098c6e63a0e8 | /275/CH7/EX7.7.41/Ch7_7_41.sce | d25ed1e053f1d9fa5ac7786fd0fb0e562b1cf879 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 537 | sce | Ch7_7_41.sce | clc
disp("Example 7.41")
printf("\n")
disp("sketch the frequency spectrum")
printf("Given\n")
disp("carrier amplitude=10V,carrier frequency=10MHz,Modulating frequency=1Khz,MI=0.5")
Vc=10
fc=10^7
fm=10^3
ma=0.5
wc=2*%pi*fc
wm=2*%pi*fm
t=10^-7
v=Vc*(1+(ma*sin(wm*t)))*cos(wc*t)
Vs=(ma*Vc)/2
flsb=fc-fm
fusb=fc+fm
// take below values just for plotting graph with intial values
f1=9.9989*10^6
v1=0
f=[f1 flsb fc fusb]
a=[v1 Vs Vc Vs]
plot2d3(f,a)
xtitle("Frequency Spectrum")
xlabel("Frequency")
ylabel("Amplitude") |
87aa21a07753ce77f56f332cb33c8686c6ae19e8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3594/CH11/EX11.5/Ex11_5.sce | fd5b35e4a562616bdf83ad86541492c1e574e1e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex11_5.sce |
clc
//given
Tb=27
Tc=30
Td=24
Te=21
k=Te*Tb/(Tc*Td)//k=Nd/Ne
//by applying componendo and dividendo, using Ne=0 and reducing we get
a=(1-k)//where a = Nd/Na
b=1/a
printf("\nThe ratio of the speed of driving shaft to the speed of driven shaft\n\nNa/Nd = %.2f",b)
|
7fb811309666f0e6ac1addbfea119a9320f085d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /69/CH1/EX1.1/1_1.sce | 54dc4c7777666932a2c230654dd1742ecb202db8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 265 | sce | 1_1.sce | clear; clc; close;
t = 273 + 27; //in kelvin
t_new = 273 +100;
k = 1.38*10^(-23);//in J/K
q = 1.6*10^(-19);//C
Vt = k*t/q;
format(10);
disp(Vt,'Thermal voltage for 27''C(in V): ');
Vt = k*t_new/q;
disp(Vt,'Thermal voltage for 100''C(in V): ');
|
dd9476f503eb5819fcbf2b886e59950e21f4c82c | a1f93c5ed7f19ec2dc6e698a305960c7eaacb3fd | /Practica3.2/Ejercicio1.sci | 415192919659da3279d70e1378a16d52d1267716 | [] | no_license | hectoregm/numerico | 813c74b87c976c2af4fe83adf59561a80141ea2f | ca0e16875746ad9d9c17da7ce0635669fc2410ed | refs/heads/master | 2021-01-21T07:53:31.701526 | 2014-12-02T04:42:40 | 2014-12-02T04:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,701 | sci | Ejercicio1.sci | function [Q,R] = qrhouse(A)
// Funcion que realiza la factorizacion QR mediante transformaciones de
// Householder.
// ****************************************************************************
// Entrada
// A (Matriz Real) - Matriz de tamaño m x n con entradas reales.
//
// Salida
// Q (Matriz Real) - Matriz ortogonal de tamaño m x m con entradas reales.
//
// R (Matriz Real) - Matriz triangular superior de tamaño m x n con entradas
// reales.
// ****************************************************************************
funcprot(0)
[m,n] = size(A);
Q = eye(m,m);
R = A;
for k = 1 : min([m,n])
v = R(k:m,k);
aux = length(v);
alpha = -sign(v(1))*norm(v);
v = v - alpha * [1; zeros(aux-1,1)];
v = v/norm(v);
R(k:m,k:n) = R(k:m,k:n) - 2 * v * (v' * R(k:m,k:n));
R(k+1:m,k) = 0;
Q(:,k:m) = Q(:,k:m) - 2 * (Q(:,k:m)* v) * v';
end
endfunction
function x = STS(A,b)
// Autores: Jorge Zavaleta
// Funcion que resuelve el sistema triangular superior (STS) de ecuaciones
// lineales Ax = b (sustitucion hacia atras)
//*****************************************************************************
// -> Entrada
// A (Matriz Real) - Matriz triangular superior de tamaño n x n con entradas
// reales.
//
// b (Vector Real) - Vector de tamaño n con entradas reales.
//
// -> Salida
// x (Vector Real) - Vector de tamaño n con entradas reales que representan la
// solucion al sistema de ecuaciones.
//*****************************************************************************
funcprot(0)
n = size(A,'c');
x = zeros(n,1);
for i = n:-1:1 //(*)
x(i) = (b(i) - A(i,i+1:n)*x(i+1:n))/A(i,i);
end
endfunction
function x = sol_ec_normales(A,b)
// Autores: Hector E. Gomez Morales
// Funcion que resuelve el sistema Ax = b usando ecuaciones normales
//*****************************************************************************
// -> Entrada
// A (Matriz Real) - Matriz de mxn
//
// b (Vector Real) - Vector de tamaño m con entradas reales.
//
// -> Salida
// x (Vector Real) - Vector de tamaño n con entradas reales que representan la
// solucion al sistema de ecuaciones.
//*****************************************************************************
funcprot(0)
At = A'
bp = At*b
B = At*A
chol(B)
disp("Cholesky")
disp(chol(B))
x = inv(B)*bp
endfunction
function x = sol_manual_ecn(epsilon)
// Autores: Hector E. Gomez Morales
// Funcion genera la solucion exacta usando ecuaciones normales, las ecuaciones
// se obtuvieron a mano
//*****************************************************************************
// -> Entrada
// epsilon (Valor Real) - Valor de epsilon en la matriz
//
// -> Salida
// x (Vector Real) - la solucion exacta de la matriz del inciso a)
//*****************************************************************************
funcprot(0)
x = zeros(3,1)
x(3) = (((2*e^2)+e^4)*(1+(e^2)) - 2*e^4) / (((2*e^2 + e^4)*(1 + e^2)^2) - 2*e^4)
x(2) = (e^2 - (e^2*x(3))) / ((2*e^2) + e^4)
x(1) = (1 - x(2) - x(3)) / (1 + e^2)
endfunction
function G = make_givens(v,i,j,n)
// Autores: Hector E. Gomez Morales
// Funcion genera una matriz de rotacion de givens dado un vector, las posicion i y j del vector
// en las cuales se quiere hacer 0 al valor en j. Siendo n el tamaño de la matriz de givens
//*****************************************************************************
// -> Entrada
// v (Vector Real) - Vector al cual se le realiza la rotacion
//
// i (Valor Real) - Elemento i del vector v que es el pivote
//
// j (Valor Real) - Elemento j del vector v que se convertira en un cero al realizar la rotacion
//
// -> Salida
// G (Matriz Real) - Matriz de Givens que realiza la operacion deseada
//*****************************************************************************
G = eye(n,n)
num = sqrt(v(i)^2 + v(j)^2)
c = v(i) / num
s = v(j) / num
G(i,i) = c
G(i,j) = s
G(j,i) = -s
G(j,j) = c
endfunction
function [Q,R] = fac_givens(A)
// Autores: Hector E. Gomez Morales
// Funcion realiza la factorizacion de una matriz usando rotaciones de Givens
//*****************************************************************************
// -> Entrada
// A (Matriz Real) - Matriz a realizar la factorizacion
//
// -> Salida
// Q (Matriz Real) - Parte de la factorizacion es una matriz ortogonal
//
// R (Matriz Real) - Es una matriz triangular superior de tal forma que QR = A
//*****************************************************************************
n = size(A, 'r')
R = A
G = ones(n,n)
for i=1:n-1
for j=i+1:n
v = R(1:4,i)
if R(j,i) ~= 0
GP = make_givens(v,i,j,n)
G = GP*G
R = GP*R
end
end
end
Q = G'
R = triu(R)
endfunction
e = 0.1
A = [1 1 1; e 0 0; 0 e 0; 0 0 e]
b = [1; 0; 0; 0]
disp("Matriz A es:")
disp(A)
disp("El vector b es:")
disp(b)
disp("Epsilon es:")
disp(e)
disp("La solución exacta al problema de mínimos cuadrados lineales de A:")
disp(sol_manual_ecn(e))
disp("Solución del sistema por ecuaciones normales:")
disp(sol_ec_normales(A,b))
disp("Solucion del sistema por factorizacion QR con Householder:")
[Q,R] = qrhouse(A)
y = Q'*b
x = STS(R,y)
disp(x)
[Q,R] = fac_givens(A)
y = Q'*b
x = STS(R,y)
disp("Solucion del sistema por factorizacion por Givens:")
disp(x)
e = 1D-7
A = [1 1 1; e 0 0; 0 e 0; 0 0 e]
b = [1; 0; 0; 0]
disp("Epsilon es:")
disp(e)
disp("La solución exacta al problema de mínimos cuadrados lineales de A:")
disp(sol_manual_ecn(e))
disp("Solución del sistema por ecuaciones normales:")
disp(sol_ec_normales(A,b))
disp("Solucion del sistema por factorizacion QR con Householder:")
[Q,R] = qrhouse(A)
y = Q'*b
x = STS(R,y)
disp(x)
[Q,R] = fac_givens(A)
y = Q'*b
x = STS(R,y)
disp("Solucion del sistema por factorizacion por Givens:")
disp(x)
e = %eps
A = [1 1 1; e 0 0; 0 e 0; 0 0 e]
b = [1; 0; 0; 0]
disp("Epsilon es:")
disp(e)
disp("La solución exacta al problema de mínimos cuadrados lineales de A:")
disp(sol_manual_ecn(e))
disp("Solucion del sistema por factorizacion QR con Householder:")
[Q,R] = qrhouse(A)
y = Q'*b
x = STS(R,y)
disp(x)
[Q,R] = fac_givens(A)
y = Q'*b
x = STS(R,y)
disp("Solucion del sistema por factorizacion por Givens:")
disp(x)
e = sqrt(%eps)
A = [1 1 1; e 0 0; 0 e 0; 0 0 e]
b = [1; 0; 0; 0]
disp("Epsilon es:")
disp(e)
disp("La solución exacta al problema de mínimos cuadrados lineales de A:")
disp(sol_manual_ecn(e))
disp("Solucion del sistema por factorizacion QR con Householder:")
[Q,R] = qrhouse(A)
y = Q'*b
x = STS(R,y)
disp(x)
[Q,R] = fac_givens(A)
y = Q'*b
x = STS(R,y)
disp("Solucion del sistema por factorizacion por Givens:")
disp(x) |
8d2b6fcaaacc8c812132012394ff053fb6ff5d5c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2465/CH5/EX5.2/Example_2.sce | e1d46239825f23fe5af9b6e54b96194955903ec2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 382 | sce | Example_2.sce | //Chapter-5,Example 2,Page 122
clc();
close();
t=[7.18 18 27.05] //time in minute
r=[ 21.4 17.7 15] //rotation in degrees
r_0=24.09
r_a=-10.74
k=(1 ./t).*log10((r_0-r_a)./(r-r_a))
printf('values of k')
disp(k)
printf('since k values are fairly constant by putting in 1nd order rate equation. \nHence hydrolysis of methyl acetate is of 1st order.')
|
2aedc6bdbcbec237862eefecd1c2019714a96396 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH15/EX14.5/EX14_5.sce | b6367abe789ae2489cd88db0e9aaaeb27fc0e18c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 507 | sce | EX14_5.sce | // Grob's Basic Electronics 11e
// Chapter No. 14
// Example No. 14_5
clc; clear;
// A magnetic material has a ur of 500. Calculate the absolute u as B/H (a) in CGS units and (b) in SI units.
// Given data
ur = 500; // ur=500
uoa = 1; // uo for CGS Units=1
uob = 1.26*10^-6; // uo for SI Units=1.26 u
ua = ur*uoa;
disp (ua,'The Absolute u as B/H in CGS in (G/Oe)')
ub = ur*uob;
disp (ub,'The Absolute u as B/H in SI in (T/(A.t/m))')
disp ('i.e 630*10^-6 T/(A.t/m)')
|
aecc0306bbbd4068b70d8aa1272336d4c9a775e5 | fe33c0b16926678447c084c04df084926a9ca29a | /plot2.sce | 5d7234ecf83b9062a0b42ac3cc2ef8d43ee59932 | [] | no_license | askmrsinh/SEM2_AM | bbcf34ce205abe763cb5c85df5f01544cdcdfca5 | da613da5c22f20ab1a814f28315e34b0c2c59a13 | refs/heads/master | 2021-09-28T03:09:19.415553 | 2016-08-18T15:14:23 | 2016-08-18T15:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 108 | sce | plot2.sce | a=1;
x=-1:0.01:1;
y=2*a*sqrt(1-(x^2/a^2))
plot(x,y)
plot(x,-y)
y=sqrt(a^2-x^2)
plot(x,y)
plot(x,-y)
|
7a6cc187a68ffe1ae5194c47b9279f0e26cbd63a | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4/Unix-Windows/scilab-2.4/examples/addinter-examples/ex4c.sce | e3e2a25998058540e029659018a749170bdb9a9f | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 252 | sce | ex4c.sce | // Copyright INRIA
files=G_make(['/tmp/ex4cI.o'],'ex4c.dll') ;
addinter(files,'cdgemmentry','dgemm');
alfa=2;beta=3;m=3;n=4;C=ones(m,n);k=2;A=ones(m,k);B=ones(k,n);
C1=dgemm(alfa,A,B,beta,C);
if norm(C1-(alfa*A*B+beta*C)) > %eps then pause,end
|
7aef2bf80584a45a791d6b274214f8e91ceeb512 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1976/CH2/EX2.2/Ex2_2.sce | d3b65f0d554977ca41440e259672b5de86cb3d99 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,283 | sce | Ex2_2.sce |
//To determine the Demand and supply parameter of four consumers
//Page 74
clc;
clear;
//Maximum Demands of various users
MD1=2*(10^3); //9pm
MD2=2*(10^3); //12 noon
MD3=8*(10^3); //5pm
MD4=4*(10^3); //8pm
MDT=MD1+MD2+MD3+MD4; //Sum of all Maximum Demands
//Demands of various users
D1=1.6*(10^3); //8pm
D2=1*(10^3); //8pm
D3=5*(10^3); //8pm
//The Number after the Alphabets represents the Consumer
//Maximum Demand of the System arises at 8.00 PM
MDS = D1+D2+D3+MD4;
TDF=MDT/MDS; //Diversity Factor
//Given Values
//Average Loads
AL2=500;
AL4=1000;
//Load Factors
LF1=15/100;
LF3=25/100;
//Calculated Values
//Average Loads
AL1=LF1*MD1;
AL3=LF3*MD3;
//Load Factors
LF2=AL2*100/MD2;
LF4=AL4*100/MD4;
ALS=AL1+AL2+AL3+AL4; //Combined Average Loads
LFS=ALS*100/MDS; //Combined Load Factor
printf('i) The Diversity Factor is %g\n',TDF)
printf('ii) The Average load and Load factor of:\n')
printf(' Consumer 1 : %g W and %g percent\n',AL1,LF1*100)
printf(' Consumer 2 : %g W and %g percent\n',AL2,LF2)
printf(' Consumer 3 : %g W and %g percent\n',AL3,LF3*100)
printf(' Consumer 4 : %g W and %g percent\n',AL4,LF4)
printf('iii) The Combined Load Factor and The Combined Average Load is %g percent and %g W respectively\n',LFS,ALS )
|
540aec6f83f67b70a991e8eed0ba7c4f82521c55 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1895/CH11/EX11.54/EXAMPLE11_54.SCE | 9dfaf057b62eda29874bd0be1e980a633ae6be73 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 570 | sce | EXAMPLE11_54.SCE | //ANALOG AND DIGITAL COMMUNICATION
//BY Dr.SANJAY SHARMA
//CHAPTER 11
//Information Theory
clear all;
clc;
printf("EXAMPLE 11.54(PAGENO 537)");
//given
P_x1 = 1/3//probability of first signal
P_x2 = 1/6//probability of second signal
P_x3 = 1/4//probability of third signal
P_x4 = 1/4//probability of fourth signal
//calculations
I_x1 = -log2(P_x1);
I_x2 = -log2(P_x2);
I_x3 = -log2(P_x3);
I_x4 = -log2(P_x4);
H_x = P_x1*I_x1 + P_x2*I_x2 + P_x3*I_x3 + P_x4*I_x4 //entropy
//results
printf("\n\nEntropy of the source = %.5f bits/symbol ",H_x)
|
53b0c95e558b61e0eade4dc923755dcc7083cd30 | e9d5f5cf984c905c31f197577d633705e835780a | /GED/linear/scilab/functions/pmgei_method/problems/ged_P6_sim_pmgei.sce | 0d0b91b6e92e4edf5b8c9f339b2447fa3391c96e | [] | no_license | faiz-hub/dr-ged-benchmarks | 1ad57a69ed90fe7595c006efdc262d703e22d6c0 | 98b250db9e9f09d42b3413551ce7a346dd99400c | refs/heads/master | 2021-05-18T23:12:18.631904 | 2020-03-30T21:12:16 | 2020-03-30T21:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,985 | sce | ged_P6_sim_pmgei.sce | // Data Reconciliation Benchmark Problems From Lietrature Review
// Author: Edson Cordeiro do Valle
// Contact - edsoncv@{gmail.com}{vrtech.com.br}
// Skype: edson.cv
//Rosenberg, J and Mah, R S H and Iordache, C
//Evaluation of Schemes for Detecting and Identifying Gross Errors in Process Data
//Ind. & Eng. Chem. Proc. Des. Dev, Vol., V. 26:555--564
//Bibtex Citation
//@article{Rosenberg1987a,
//author = {Rosenberg, J and Mah, R S H and Iordache, C},
//journal = {Ind. \& Eng. Chem. Proc. Des. Dev, Vol.},
//pages = {555--564},
//title = {{Evaluation of Schemes for Detecting and Identifying Gross Errors in Process Data}},
//volume = {26},
//year = {1987}
//}
//7 Streams
//4 Equipments
getd('../../');
getd('../../../jacobians/');
getd('../method/');
getd('../method/pls');
cd '../../'
clear xr sd sds x_sol xfinal jac jac_col jac_col rj sigma sigam_inv res V V_inv diag_diag_V Wbar gama zr_nt adj zadj Wbar_alt adjustability detect resi Qglr betaglr xchiglr ge_glr op_glr;
clear avti_gt_mt op_gt_mt op_gt_nt_tmp avt1_mt1 avt1_mt2 op_mt1 op_mt2 avti_glr op_glr_mt aee_mt aee_nt_tmp op_glr_nt_tmp avti_glr_nt_tmp avti_gt_mt_tmp op_gt_mt_tmp op_gt_nt avt1_nt1 avt1_nt2 op_nt1 op_nt2 avti_glr_tmp op_glr_mt_tmp aee_mt_tmp aee_nt op_glr_nt avti_glr_nt;
stacksize('max');
//stacksize(149900000)
tic;
// the real values
xr =[5 15 15 5 10 5 5 ]';
szx = size(xr,1);
runsize = 500;
//the variance
sd=[1
1
1
1
1
1
1].^0.5;
//sd = [0.13
//0.38
//0.38
//0.13
//0.25
//0.13
//0.13];
sds = sd;
sds =sd;
var=sd.^2;
jac=jacP6();
jac_col = size(jac,2);
jac_row = size(jac,1);
rj=rank(jac);
sigma=diag(sds.^2);
[adj, detect, V, V_inv, sigma_inv, diag_diag_V, Wbar] = adjust(sigma, jac);
//[xfinal, resRand, resGrossErrorNodalRand]=generate_data(xr, sd, jac, runsize, 2, 7, 0.25, 0.35);
[xfinal, resRand, resGrossErrorNodalRand]=generate_data(xr, sd, jac, runsize, 5, 9, 0.07, 0.15);
resGrossErrorNodalRandFi = [ resRand;resGrossErrorNodalRand];
//observability/redundancy tests
//user can set unmeasured streams here, if this vector is empty, all streams are measured
umeas_P6 = [];
[red_P6, just_measured_P6, observ_P6, non_obs_P6, spec_cand_P6] = qrlinclass(jac,umeas_P6);
measured_P6 = setdiff([1:length(xr)], umeas_P6);
red = measured_P6;//
// to run robust reconciliation,, one must choose between the folowing objective functions to set up the functions path and function parameters:
//WLS analytical = -1 WLS numerical = 0 ; Absolute sum of squares = 1 ; Cauchy = 2 ;Contamined Normal = 3 ; Fair = 4
//Hampel = 5 Logistic = 6 ; Lorenztian = 7 ; Quasi Weighted = 8
// run the configuration functions with the desired objective function type
obj_function_type = 2;
[x_sol] = calc_results_DR(xfinal, jac, sigma, resGrossErrorNodalRandFi, obj_function_type);
[res, gamaMeasuremts,gamaNodal,zr_nt_nodal, zr_nt_nodal_rand, zadj ] = calc_results_index(x_sol, jac, sigma, resGrossErrorNodalRandFi);
[avti_gt_mt, op_gt_mt, op_gt_nt] = global_test(0.105, 0.105, gamaMeasuremts, runsize, rj, jac_col, jac_row);
[avt1_mt1, avt1_mt2, op_mt1, op_mt2] = measurement_test(0.0017, 0.011, zadj, runsize, jac_col);
[avt1_nt1, avt1_nt2, op_nt1, op_nt2] = nodal_test(0.033, 0.125, jac_row, runsize, zr_nt_nodal);
pause
runtime=toc();
//[p9train, p9validate] = generate_trainning(xr, sd, jac, runsize, 2, 3, 1, 7, 0.07, 0.02, 0.15, 0.1, 0.1, 0.134, 0.15, 0.021, 0.116);
// to run robust reconciliation,, one must choose between the folowing objective functions to set up the functions path and function parameters:
//WLS analytical = -1 WLS numerical = 0 ; Absolute sum of squares = 1 ; Cauchy = 2 ;Contamined Normal = 3 ; Fair = 4
//Hampel = 5 Logistic = 6 ; Lorenztian = 7 ; Quasi Weighted = 8
// run the configuration functions with the desired objective function type
//nvalidate = 10; lower_bias = 5; delta_bias = 1; upper_bias = 9; lower_leak = 0.25; delta_leak = 0.2; upper_leak = 0.35;
nvalidate = 10; lower_bias = 5; delta_bias = 1; upper_bias = 9; lower_leak = 0.07; delta_leak = 0.02; upper_leak = 0.15;
alfa_gt_mt = 0.105; alfa_gt_nt = 0.105; alfa_mt1 = 0.0017; alfa_mt2 = 0.011; alfa_nt1 = 0.033; alfa_nt2 = 0.125;
//cauchy
//[avt1_mt1_cauchy, avt1_mt2_cauchy, op_mt1_cauchy, op_mt2_cauchy] = measurement_test(0.00084, 0.006, zadj, runsize, jac_col);
is_multiple = 0;
clear res gamaMeasuremts gamaNodal zr_nt_nodal zr_nt_nodal_rand zadj x_sol resGrossErrorNodalRandFi;
[p6_train, p6_validate,xfinal_train,x_sol_train] = generate_trainning2(xr, sd, jac, runsize, nvalidate, lower_bias, delta_bias, upper_bias, lower_leak,delta_leak,upper_leak, alfa_gt_mt,alfa_gt_nt,alfa_mt1,alfa_mt1, alfa_nt1, alfa_nt2,obj_function_type, is_multiple);
ndatainterval = 5
[list_models_P6, p6_stat] = generate_pls_models_m( 'P6', 7, 4, p6_train, p6_validate, nvalidate,ndatainterval);
[avti_meas, op_meas, selectivity_meas, aee_meas, avti_eqp, op_eqp, selectivity_eqp, aee_eqp] = get_lit_info(p6_stat, jac_col, jac_row)
cd 'pmgei_method/problems';
|
0fe3c338c4fda8c38de8cbc9021ef9de318d75a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3204/CH3/EX3.1/Ex3_1.sce | bbb9837f14f31a73ccbd460db4039372fd700ec9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 344 | sce | Ex3_1.sce | //Initilization of variables
W=1000 //N
Lab=1 //m
Lac=0.6 //m
theta=60 //degree //angle made by the beam with the horizontal
//Calculations
Q=(W*Lac*cosd(theta))/(Lab*cosd(theta)) //N // from eq'n 2
P=W-Q //N // from eq'n 1
//Results
clc
printf('The load taken by man P is %f N \n',P)
printf('The load taken by man Q is %f N \n',Q)
|
0d6c8ad2bbdb726d20fef5c2d2b553d2b44a07a3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3681/CH3/EX3.13/Ex3_13.sce | be0189b29791d30b9a1057e2f5c6aa6347475213 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 764 | sce | Ex3_13.sce | // Calculating the hysteresis loss
clc;
disp('Example 3.13, Page No. = 3.35')
// Given Data
Bm = 1.0;// Maximum flux density in Wb per meter square
f = 50;// Frequency in Hz
SGi = 7.5;// Specific gravity of iron
ph = 4.9;// Hysterseis loss in W per Kg
// Calculation of co-efficient 'n'
Di = 7500;// Density of iron
n = ph/(Di*f*(Bm^(1.7)));//
disp(n,'(a) co-efficient (n)=');
//in book answer is 1307*10^(-6). The answers vary due to round off error
// Calculation of hysteresis loss
Bm = 1.8;// Maximum flux density in Wb per meter square
f = 25;// Frequency in Hz
ph = n*f*Di*Bm^(1.7);// Hysterseis loss in W per Kg
disp(ph,'(b) Hysterseis loss(W per Kg)=');
//in book answer is 6.66 W per Kg. The answers vary due to round off error
|
d3d4f93f955fb2695e47b2726c93af3987e147fc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1847/CH7/EX7.2/Ch07Ex2.sce | 503c1ac4d9275f26b12c8ff5815c68293db5138e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 777 | sce | Ch07Ex2.sce | // Scilab Code Ex7.2:: Page-7.8 (2009)
clc; clear;
n1 = 1.50; // Refractive index of core material of fibre
n2 = 1.47; // Refractive index of cladding material of fibre
phi_C = asind(n2/n1); // Critical angle of optical fibre, degrees
NA = sqrt(n1^2-n2^2); // Numerical aperture for the fibre
theta_Q = asind(sqrt(n1^2-n2^2)); // Acceptance angle of optical fibre, degrees
printf("\nThe critical angle of optical fibre = %4.1f degrees", phi_C);
printf("\nThe numerical aperture for the fibre = %5.3f", NA);
printf("\nThe angle of acceptance cone = %5.1f degrees", theta_Q);
// Result
// The critical angle of optical fibre = 78.5 degrees
// The numerical aperture for the fibre = 0.298
// The angle of acceptance cone = 17.4 degrees
|
3d04e89ff5039bed50f35ff869b2f309d33ad5bf | 449d555969bfd7befe906877abab098c6e63a0e8 | /1670/CH11/EX11.10/11_10.sce | d76d81fde6f5acdc2d46a12e92357ca799c0ecea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 247 | sce | 11_10.sce | //Example 11.10
//Gauss Seidel Method
//Page no. 382
clc;clear;close;
O=0.5;
A=[-8,8,0;2,-8,4;0,4,-8]; //equation matrix
B=[-1;-1;-1]; //solution matrix
Ov=inv(A)*B;
disp(Ov,'Values = ')
Ox=Ov(1)+(Ov(1)-O)/3
disp(Ox,'O* = ') |
bced716e54ea104ecb7092ab7143ae3463b3f5b8 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set14/s_Linear_Integrated_Circuits_J._B._Gupta_1850.zip/Linear_Integrated_Circuits_J._B._Gupta_1850/CH2/EX2.6/exa_2_6.sce | 0fbe94dd21b180017f4b7e699538cadf3d830f9b | [] | 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 | 175 | sce | exa_2_6.sce | errcatch(-1,"stop");mode(2);// Exa 2.6
;
;
// Given data
Ad= 100;
Acm= 0.01;
CMRR= Ad/Acm;
CMRR_desh= 20*log10(CMRR);// in dB
disp(CMRR_desh,"CMRR in dB")
exit();
|
e21d2cc9ebc7f742e2fe8f0af1b257e03bf52a09 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1787/CH1/EX1.6/Exa1_6.sce | f367c89e8baf941378ac4e33551e69b68c63bf4f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 214 | sce | Exa1_6.sce | //Exa 1.6
clc;
clear;
close;
//given data
lambda=1.539;//in Angstrum
theta=22.5;//in degree
n=1;//order unitless
d=n*lambda/(2*sin(theta*%pi/180));//in Angstrum
disp(d,"Interpolar distance in Angstrum : ") |
dafa81b389b16db7516933ff9f43261ca57055d2 | ee448e163bbdfa978366ef29a12478fef0cfeee3 | /euler2.sce | ca2e783689fbc580f93a7bef3ebdbbdfccf704bf | [] | no_license | jerryleandro/ComputacaoNumerica | f3d14bd31e08424fa16dddf21e904e8ee012cd80 | 3e9da09f585c5ded586355b0974e63f3853014da | refs/heads/master | 2021-07-23T22:46:44.703735 | 2020-09-25T02:13:32 | 2020-09-25T02:13:32 | 217,126,491 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 337 | sce | euler2.sce | function [x,y,z] = eula2(a,b,h,y0,z0)
x = a:h:b
y(1) = y0
z(1) = z0
n = length(x)
for i = 2: n
y(i) = y(i-1)+h*df1(y(i-1),z(i-1))
z(i) = z(i-1)+h*df2(y(i-1),z(i-1))
end
endfunction
function g = df1(y ,z)
g = (z)
endfunction
function j = df2(y, z)
j = (12-y-z)
endfunction
|
9575b776954698627b326fd52168a241769040a4 | a8447bb190e75c3452a418bcdffbb356b7f3ec43 | /LTP RAP 3.0napls/comMMNc.sce | 772fa0e628d5ec3452b26d70f85e834e51206983 | [] | no_license | br-bieegl/napls3-erpTasks | d7014b2716bced6d1b70af760b8f0508f02724be | 5d3297776af95b2ba8981fe5ebbb8672831061a0 | refs/heads/master | 2021-01-22T09:58:19.920934 | 2015-02-18T21:10:10 | 2015-02-18T21:10:10 | 25,929,348 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 17,761 | sce | comMMNc.sce | #it does not match the risto "optimum MMN" paper
scenario = "PS3_roving_combination_MMNc_01072015";
#adapted from "nvMMNa5_napls06122009";
#attenuation updated for ER1 insert earphones and X-fi gamer card
#Note: this is based on the baldeweg-style of pitch deviance with
#the additional constraint that a transition be no more than 300Hz
#---
#Modified Jan 2015 to include the new sequences where we have 3, 8, and 33
#standards preceding deviants instead of the previously used 2, 6, and 36
pcl_file = "nvMMNCommands.pcl";
scenario_type = trials ;
write_codes = true ;
response_matching = simple_matching ;
active_buttons = 2;
button_codes = 64, 10;
target_button_codes = 255,11;
pulse_width = 1 ;
default_trial_type = fixed ;
default_background_color = 0,0,0 ;
begin ;
#standard tone:
sound{ wavefile {filename = "s50.wav" ;} ; attenuation = 0.3 ;} s633 ;
#700Hz
sound{ wavefile {filename = "f700Hz.wav" ;} ; attenuation = 0.3 ;} f700Hz ;
#750Hz
sound{ wavefile {filename = "f750Hz.wav" ;} ; attenuation = 0.3 ;} f750Hz ;
#800Hz
sound{ wavefile {filename = "f800Hz.wav" ;} ; attenuation = 0.3 ;} f800Hz ;
#850Hz
sound{ wavefile {filename = "f850Hz.wav" ;} ; attenuation = 0.3 ;} f850Hz ;
#900Hz
sound{ wavefile {filename = "f900Hz.wav" ;} ; attenuation = 0.3 ;} f900Hz ;
#950Hz
sound{ wavefile {filename = "f950Hz.wav" ;} ; attenuation = 0.3 ;} f950Hz ;
#1000Hz
sound{ wavefile {filename = "f1000Hz.wav" ;} ; attenuation = 0.3 ;} f1000Hz ;
#1050Hz
sound{ wavefile {filename = "f1050Hz.wav" ;} ; attenuation = 0.3 ;} f1050Hz ;
#1100Hz
sound{ wavefile {filename = "f1100Hz.wav" ;} ; attenuation = 0.3 ;} f1100Hz ;
#1150Hz
sound{ wavefile {filename = "f1150Hz.wav" ;} ; attenuation = 0.3 ;} f1150Hz ;
#1200Hz
sound{ wavefile {filename = "f1200Hz.wav" ;} ; attenuation = 0.3 ;} f1200Hz ;
#1250Hz
sound{ wavefile {filename = "f1250Hz.wav" ;} ; attenuation = 0.3 ;} f1250Hz ;
#long duration tones:
#700Hz
sound{ wavefile {filename = "f700Hz100ms.wav" ;} ; attenuation = 0.3 ;} f700Hz100ms ;
#750Hz
sound{ wavefile {filename = "f750Hz100ms.wav" ;} ; attenuation = 0.3 ;} f750Hz100ms ;
#800Hz
sound{ wavefile {filename = "f800Hz100ms.wav" ;} ; attenuation = 0.3 ;} f800Hz100ms ;
#850Hz
sound{ wavefile {filename = "f850Hz100ms.wav" ;} ; attenuation = 0.3 ;} f850Hz100ms ;
#900Hz
sound{ wavefile {filename = "f900Hz100ms.wav" ;} ; attenuation = 0.3 ;} f900Hz100ms ;
#950Hz
sound{ wavefile {filename = "f950Hz100ms.wav" ;} ; attenuation = 0.3 ;} f950Hz100ms ;
#1000Hz
sound{ wavefile {filename = "f1000Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1000Hz100ms ;
#1050Hz
sound{ wavefile {filename = "f1050Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1050Hz100ms ;
#1100Hz
sound{ wavefile {filename = "f1100Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1100Hz100ms ;
#1150Hz
sound{ wavefile {filename = "f1150Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1150Hz100ms ;
#1200Hz
sound{ wavefile {filename = "f1200Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1200Hz100ms ;
#1250Hz
sound{ wavefile {filename = "f1250Hz100ms.wav" ;} ; attenuation = 0.3 ;} f1250Hz100ms ;
#silence tone placeholder
sound{ wavefile {filename = "s50.wav" ;} ; attenuation = 1 ;} silence ;
picture{text { caption = "+" ;
font_size = 48 ;
font_color = 255,255,255 ;} ;
x = 0 ; y = 0 ;
} default;
trial {
stimulus_event {
picture{text { caption = "3" ;
font_size = 48 ;
font_color = 255,255,255 ;} ;
x = 0 ; y = 0 ;} ;
duration = 1500 ;
code = "83" ;
port_code = 128 ;
} ;
stimulus_event {
picture{text { caption = "2" ;
font_size = 48 ;
font_color = 255,255,255 ;} ;
x = 0 ; y = 0 ;} ;
time = 2000 ;
duration = 1500 ;
code = "82" ;
} ;
stimulus_event {
picture{text { caption = "1" ;
font_size = 48 ;
font_color = 255,255,255 ;} ;
x = 0 ; y = 0 ;} ;
time = 4000 ;
duration = 1500 ;
code = "81" ;
} ;
} ;
constant_force {
duration = 100;
axes = 7;
direction = 0;
magnitude = 1.0; # constant force for 125 ms
gain = 1.0;
} T;
constant_force {
duration = 100;
axes = 7,8;
direction = 0;
magnitude = 1.0; # constant force for 175 ms
gain = 1.0;
#envelope params
#attack_level = 0.7;
#attack_time = 100;
#fade_level = 0.0;
#fade_time = 100;
} N;
constant_force {
duration = 200;
axes = 8;
direction = 0;
magnitude = 1.0; # constant force for 250 ms
} S;
TEMPLATE "ps3MMNrov400.tem"{
#pic word picPort wordPort targResp picTime wrdTime snd1 s1Port snd2 s2Port snd3 s3Port snd4 s4Port snd5 s5Port snd6 s6Port ;
pic picPort targResp picTime snd1 s1Port snd2 s2Port snd3 s3Port snd4 s4Port;
T 100 1 211 f750Hz 103 f750Hz 2 f750Hz 3 f750Hz 4 ;
S 50 2 47 f750Hz 5 f750Hz 6 f750Hz 7 f750Hz 8 ;
S 50 2 299 f850Hz100ms 1 f850Hz100ms 2 f850Hz100ms 3 f850Hz100ms 4 ;
S 50 2 235 f850Hz100ms 5 f850Hz100ms 6 f850Hz100ms 7 f850Hz100ms 8 ;
S 50 2 348 f1000Hz 1 f1000Hz 2 f1000Hz 3 f1000Hz 4 ;
N 200 2 350 f1000Hz 5 f1000Hz 6 f1000Hz 7 f1000Hz 8 ;
S 50 2 319 f1000Hz 9 f1000Hz 10 f1000Hz 11 f1000Hz 12 ;
S 50 2 17 f1000Hz 13 f1000Hz 14 f1000Hz 15 f1000Hz 16 ;
S 50 2 34 f1000Hz 17 f1000Hz 18 f1000Hz 19 f1000Hz 20 ;
S 50 2 160 f1000Hz 21 f1000Hz 22 f1000Hz 23 f1000Hz 24 ;
T 100 1 265 f1000Hz 25 f1000Hz 26 f1000Hz 27 f1000Hz 28 ;
S 50 2 327 f1000Hz 29 f1000Hz 30 f1000Hz 31 f1000Hz 32 ;
S 50 2 204 f1000Hz 33 f1200Hz100ms 1 f1200Hz100ms 2 f1200Hz100ms 3 ;
S 50 2 410 f1200Hz100ms 4 f1200Hz100ms 5 f1200Hz100ms 6 f1200Hz100ms 7 ;
S 50 2 359 f1200Hz100ms 8 f900Hz 1 f900Hz 2 f900Hz 3 ;
S 50 2 484 f750Hz100ms 1 f750Hz100ms 2 f750Hz100ms 3 f750Hz100ms 4 ;
N 200 2 266 f750Hz100ms 5 f750Hz100ms 6 f750Hz100ms 7 f750Hz100ms 8 ;
S 50 2 163 f1000Hz 1 f1000Hz 2 f1000Hz 3 f1000Hz 4 ;
S 50 2 53 f1000Hz 5 f1000Hz 6 f1000Hz 7 f1000Hz 8 ;
S 50 2 305 f700Hz100ms 1 f700Hz100ms 2 f700Hz100ms 3 f850Hz 1 ;
N 200 2 389 f850Hz 2 f850Hz 3 f850Hz 4 f850Hz 5 ;
S 50 2 212 f850Hz 6 f850Hz 7 f850Hz 8 f850Hz 9 ;
S 50 2 45 f850Hz 10 f850Hz 11 f850Hz 12 f850Hz 13 ;
S 50 2 133 f850Hz 14 f850Hz 15 f850Hz 16 f850Hz 17 ;
T 100 1 77 f850Hz 18 f850Hz 19 f850Hz 20 f850Hz 21 ;
S 50 2 141 f850Hz 22 f850Hz 23 f850Hz 24 f850Hz 25 ;
S 50 2 220 f850Hz 26 f850Hz 27 f850Hz 28 f850Hz 29 ;
S 50 2 264 f850Hz 30 f850Hz 31 f850Hz 32 f850Hz 33 ;
S 50 2 229 f1050Hz100ms 1 f1050Hz100ms 2 f1050Hz100ms 3 f1050Hz100ms 4 ;
N 200 2 438 f1050Hz100ms 5 f1050Hz100ms 6 f1050Hz100ms 7 f1050Hz100ms 8 ;
S 50 2 259 f900Hz 1 f900Hz 2 f900Hz 3 f900Hz 4 ;
S 50 2 472 f900Hz 5 f900Hz 6 f900Hz 7 f900Hz 8 ;
S 50 2 319 f1200Hz100ms 1 f1200Hz100ms 2 f1200Hz100ms 3 f1200Hz100ms 4 ;
N 200 2 479 f1200Hz100ms 5 f1200Hz100ms 6 f1200Hz100ms 7 f1200Hz100ms 8 ;
S 50 2 120 f1200Hz100ms 9 f1200Hz100ms 10 f1200Hz100ms 11 f1200Hz100ms 12 ;
S 50 2 338 f1200Hz100ms 13 f1200Hz100ms 14 f1200Hz100ms 15 f1200Hz100ms 16 ;
S 50 2 145 f1200Hz100ms 17 f1200Hz100ms 18 f1200Hz100ms 19 f1200Hz100ms 20 ;
T 100 1 336 f1200Hz100ms 21 f1200Hz100ms 22 f1200Hz100ms 23 f1200Hz100ms 24 ;
S 50 2 348 f1200Hz100ms 25 f1200Hz100ms 26 f1200Hz100ms 27 f1200Hz100ms 28 ;
S 50 2 34 f1200Hz100ms 29 f1200Hz100ms 30 f1200Hz100ms 31 f1200Hz100ms 32 ;
S 50 2 127 f1200Hz100ms 33 f1100Hz 1 f1100Hz 2 f1100Hz 3 ;
S 50 2 112 f1100Hz 4 f1100Hz 5 f1100Hz 6 f1100Hz 7 ;
T 100 1 334 f1100Hz 8 f1100Hz 9 f1100Hz 10 f1100Hz 11 ;
S 50 2 422 f1100Hz 12 f1100Hz 13 f1100Hz 14 f1100Hz 15 ;
S 50 2 172 f1100Hz 16 f1100Hz 17 f1100Hz 18 f1100Hz 19 ;
N 200 2 390 f1100Hz 20 f1100Hz 21 f1100Hz 22 f1100Hz 23 ;
S 50 2 338 f1100Hz 24 f1100Hz 25 f1100Hz 26 f1100Hz 27 ;
S 50 2 133 f1100Hz 28 f1100Hz 29 f1100Hz 30 f1100Hz 31 ;
N 200 2 301 f1100Hz 32 f1100Hz 33 f850Hz100ms 1 f850Hz100ms 2 ;
S 50 2 193 f850Hz100ms 3 f850Hz100ms 4 f850Hz100ms 5 f850Hz100ms 6 ;
S 50 2 458 f850Hz100ms 7 f850Hz100ms 8 f850Hz100ms 9 f850Hz100ms 10 ;
N 200 2 151 f850Hz100ms 11 f850Hz100ms 12 f850Hz100ms 13 f850Hz100ms 14 ;
S 50 2 231 f850Hz100ms 15 f850Hz100ms 16 f850Hz100ms 17 f850Hz100ms 18 ;
S 50 2 212 f850Hz100ms 19 f850Hz100ms 20 f850Hz100ms 21 f850Hz100ms 22 ;
S 50 2 407 f850Hz100ms 23 f850Hz100ms 24 f850Hz100ms 25 f850Hz100ms 26 ;
N 200 2 453 f850Hz100ms 27 f850Hz100ms 28 f850Hz100ms 29 f850Hz100ms 30 ;
S 50 2 63 f850Hz100ms 31 f850Hz100ms 32 f850Hz100ms 33 f1150Hz 1 ;
S 50 2 457 f1150Hz 2 f1150Hz 3 f1150Hz 4 f1150Hz 5 ;
S 50 2 316 f1150Hz 6 f1150Hz 7 f1150Hz 8 f1000Hz100ms 1 ;
S 50 2 49 f1000Hz100ms 2 f1000Hz100ms 3 f800Hz 1 f800Hz 2 ;
T 100 1 139 f800Hz 3 f700Hz100ms 1 f700Hz100ms 2 f700Hz100ms 3 ;
S 50 2 273 f950Hz 1 f950Hz 2 f950Hz 3 f950Hz 4 ;
S 50 2 479 f950Hz 5 f950Hz 6 f950Hz 7 f950Hz 8 ;
S 50 2 482 f1050Hz100ms 1 f1050Hz100ms 2 f1050Hz100ms 3 f1050Hz100ms 4 ;
S 50 2 79 f1050Hz100ms 5 f1050Hz100ms 6 f1050Hz100ms 7 f1050Hz100ms 8 ;
S 50 2 485 f1050Hz100ms 9 f1050Hz100ms 10 f1050Hz100ms 11 f1050Hz100ms 12 ;
T 100 1 479 f1050Hz100ms 13 f1050Hz100ms 14 f1050Hz100ms 15 f1050Hz100ms 16 ;
S 50 2 243 f1050Hz100ms 17 f1050Hz100ms 18 f1050Hz100ms 19 f1050Hz100ms 20 ;
S 50 2 300 f1050Hz100ms 21 f1050Hz100ms 22 f1050Hz100ms 23 f1050Hz100ms 24 ;
S 50 2 71 f1050Hz100ms 25 f1050Hz100ms 26 f1050Hz100ms 27 f1050Hz100ms 28 ;
N 200 2 211 f1050Hz100ms 29 f1050Hz100ms 30 f1050Hz100ms 31 f1050Hz100ms 32 ;
S 50 2 458 f1050Hz100ms 33 f1200Hz 1 f1200Hz 2 f1200Hz 3 ;
S 50 2 396 f950Hz100ms 1 f950Hz100ms 2 f950Hz100ms 3 f950Hz100ms 4 ;
S 50 2 480 f950Hz100ms 5 f950Hz100ms 6 f950Hz100ms 7 f950Hz100ms 8 ;
S 50 2 328 f950Hz100ms 9 f950Hz100ms 10 f950Hz100ms 11 f950Hz100ms 12 ;
S 50 2 18 f950Hz100ms 13 f950Hz100ms 14 f950Hz100ms 15 f950Hz100ms 16 ;
S 50 2 425 f950Hz100ms 17 f950Hz100ms 18 f950Hz100ms 19 f950Hz100ms 20 ;
N 200 2 467 f950Hz100ms 21 f950Hz100ms 22 f950Hz100ms 23 f950Hz100ms 24 ;
S 50 2 339 f950Hz100ms 25 f950Hz100ms 26 f950Hz100ms 27 f950Hz100ms 28 ;
S 50 2 379 f950Hz100ms 29 f950Hz100ms 30 f950Hz100ms 31 f950Hz100ms 32 ;
T 100 1 372 f950Hz100ms 33 f1050Hz 1 f1050Hz 2 f1050Hz 3 ;
S 50 2 196 f1250Hz100ms 1 f1250Hz100ms 2 f1250Hz100ms 3 f1150Hz 1 ;
S 50 2 328 f1150Hz 2 f1150Hz 3 f1150Hz 4 f1150Hz 5 ;
S 50 2 86 f1150Hz 6 f1150Hz 7 f1150Hz 8 f900Hz100ms 1 ;
S 50 2 353 f900Hz100ms 2 f900Hz100ms 3 f900Hz100ms 4 f900Hz100ms 5 ;
S 50 2 16 f900Hz100ms 6 f900Hz100ms 7 f900Hz100ms 8 f900Hz100ms 9 ;
S 50 2 138 f900Hz100ms 10 f900Hz100ms 11 f900Hz100ms 12 f900Hz100ms 13 ;
T 100 1 23 f900Hz100ms 14 f900Hz100ms 15 f900Hz100ms 16 f900Hz100ms 17 ;
S 50 2 49 f900Hz100ms 18 f900Hz100ms 19 f900Hz100ms 20 f900Hz100ms 21 ;
S 50 2 412 f900Hz100ms 22 f900Hz100ms 23 f900Hz100ms 24 f900Hz100ms 25 ;
T 100 1 347 f900Hz100ms 26 f900Hz100ms 27 f900Hz100ms 28 f900Hz100ms 29 ;
S 50 2 159 f900Hz100ms 30 f900Hz100ms 31 f900Hz100ms 32 f900Hz100ms 33 ;
S 50 2 475 f750Hz 1 f750Hz 2 f750Hz 3 f750Hz 4 ;
S 50 2 17 f750Hz 5 f750Hz 6 f750Hz 7 f750Hz 8 ;
S 50 2 219 f750Hz 9 f750Hz 10 f750Hz 11 f750Hz 12 ;
S 50 2 191 f750Hz 13 f750Hz 14 f750Hz 15 f750Hz 16 ;
S 50 2 383 f750Hz 17 f750Hz 18 f750Hz 19 f750Hz 20 ;
T 100 1 398 f750Hz 21 f750Hz 22 f750Hz 23 f750Hz 24 ;
S 50 2 93 f750Hz 25 f750Hz 26 f750Hz 27 f750Hz 28 ;
S 50 2 245 f750Hz 29 f750Hz 30 f750Hz 31 f750Hz 32 ;
S 50 2 223 f750Hz 33 f1050Hz100ms 1 f1050Hz100ms 2 f1050Hz100ms 3 ;
S 50 2 323 f1050Hz100ms 4 f1050Hz100ms 5 f1050Hz100ms 6 f1050Hz100ms 7 ;
N 200 2 355 f1050Hz100ms 8 f750Hz 1 f750Hz 2 f750Hz 3 ;
S 50 2 377 f850Hz100ms 1 f850Hz100ms 2 f850Hz100ms 3 f850Hz100ms 4 ;
S 50 2 138 f850Hz100ms 5 f850Hz100ms 6 f850Hz100ms 7 f850Hz100ms 8 ;
T 100 1 340 f850Hz100ms 9 f850Hz100ms 10 f850Hz100ms 11 f850Hz100ms 12 ;
S 50 2 328 f850Hz100ms 13 f850Hz100ms 14 f850Hz100ms 15 f850Hz100ms 16 ;
S 50 2 81 f850Hz100ms 17 f850Hz100ms 18 f850Hz100ms 19 f850Hz100ms 20 ;
S 50 2 59 f850Hz100ms 21 f850Hz100ms 22 f850Hz100ms 23 f850Hz100ms 24 ;
N 200 2 249 f850Hz100ms 25 f850Hz100ms 26 f850Hz100ms 27 f850Hz100ms 28 ;
S 50 2 480 f850Hz100ms 29 f850Hz100ms 30 f850Hz100ms 31 f850Hz100ms 32 ;
S 50 2 170 f850Hz100ms 33 f750Hz 1 f750Hz 2 f750Hz 3 ;
S 50 2 293 f950Hz100ms 1 f950Hz100ms 2 f950Hz100ms 3 f950Hz100ms 4 ;
S 50 2 112 f950Hz100ms 5 f950Hz100ms 6 f950Hz100ms 7 f950Hz100ms 8 ;
S 50 2 376 f950Hz100ms 9 f950Hz100ms 10 f950Hz100ms 11 f950Hz100ms 12 ;
S 50 2 128 f950Hz100ms 13 f950Hz100ms 14 f950Hz100ms 15 f950Hz100ms 16 ;
S 50 2 253 f950Hz100ms 17 f950Hz100ms 18 f950Hz100ms 19 f950Hz100ms 20 ;
T 100 1 350 f950Hz100ms 21 f950Hz100ms 22 f950Hz100ms 23 f950Hz100ms 24 ;
S 50 2 445 f950Hz100ms 25 f950Hz100ms 26 f950Hz100ms 27 f950Hz100ms 28 ;
N 200 2 480 f950Hz100ms 29 f950Hz100ms 30 f950Hz100ms 31 f950Hz100ms 32 ;
S 50 2 274 f950Hz100ms 33 f1100Hz 1 f1100Hz 2 f1100Hz 3 ;
T 100 1 69 f1100Hz 4 f1100Hz 5 f1100Hz 6 f1100Hz 7 ;
S 50 2 75 f1100Hz 8 f1100Hz 9 f1100Hz 10 f1100Hz 11 ;
S 50 2 129 f1100Hz 12 f1100Hz 13 f1100Hz 14 f1100Hz 15 ;
S 50 2 420 f1100Hz 16 f1100Hz 17 f1100Hz 18 f1100Hz 19 ;
S 50 2 127 f1100Hz 20 f1100Hz 21 f1100Hz 22 f1100Hz 23 ;
S 50 2 407 f1100Hz 24 f1100Hz 25 f1100Hz 26 f1100Hz 27 ;
S 50 2 122 f1100Hz 28 f1100Hz 29 f1100Hz 30 f1100Hz 31 ;
S 50 2 465 f1100Hz 32 f1100Hz 33 f850Hz100ms 1 f850Hz100ms 2 ;
N 200 2 175 f850Hz100ms 3 f1100Hz 1 f1100Hz 2 f1100Hz 3 ;
S 50 2 98 f1100Hz 4 f1100Hz 5 f1100Hz 6 f1100Hz 7 ;
S 50 2 126 f1100Hz 8 f800Hz100ms 1 f800Hz100ms 2 f800Hz100ms 3 ;
S 50 2 308 f950Hz 1 f950Hz 2 f950Hz 3 f950Hz 4 ;
S 50 2 237 f950Hz 5 f950Hz 6 f950Hz 7 f950Hz 8 ;
S 50 2 176 f950Hz 9 f950Hz 10 f950Hz 11 f950Hz 12 ;
S 50 2 415 f950Hz 13 f950Hz 14 f950Hz 15 f950Hz 16 ;
N 200 2 293 f950Hz 17 f950Hz 18 f950Hz 19 f950Hz 20 ;
S 50 2 275 f950Hz 21 f950Hz 22 f950Hz 23 f950Hz 24 ;
S 50 2 459 f950Hz 25 f950Hz 26 f950Hz 27 f950Hz 28 ;
S 50 2 143 f950Hz 29 f950Hz 30 f950Hz 31 f950Hz 32 ;
T 100 1 379 f950Hz 33 f1250Hz100ms 1 f1250Hz100ms 2 f1250Hz100ms 3 ;
S 50 2 377 f1250Hz100ms 4 f1250Hz100ms 5 f1250Hz100ms 6 f1250Hz100ms 7 ;
S 50 2 190 f1250Hz100ms 8 f1250Hz100ms 9 f1250Hz100ms 10 f1250Hz100ms 11 ;
S 50 2 284 f1250Hz100ms 12 f1250Hz100ms 13 f1250Hz100ms 14 f1250Hz100ms 15 ;
S 50 2 38 f1250Hz100ms 16 f1250Hz100ms 17 f1250Hz100ms 18 f1250Hz100ms 19 ;
S 50 2 27 f1250Hz100ms 20 f1250Hz100ms 21 f1250Hz100ms 22 f1250Hz100ms 23 ;
S 50 2 265 f1250Hz100ms 24 f1250Hz100ms 25 f1250Hz100ms 26 f1250Hz100ms 27 ;
S 50 2 390 f1250Hz100ms 28 f1250Hz100ms 29 f1250Hz100ms 30 f1250Hz100ms 31 ;
S 50 2 467 f1250Hz100ms 32 f1250Hz100ms 33 f1050Hz 1 f1050Hz 2 ;
T 100 1 65 f1050Hz 3 f1050Hz 4 f1050Hz 5 f1050Hz 6 ;
S 50 2 284 f1050Hz 7 f1050Hz 8 f1250Hz100ms 1 f1250Hz100ms 2 ;
S 50 2 235 f1250Hz100ms 3 f1100Hz 1 f1100Hz 2 f1100Hz 3 ;
S 50 2 166 f1100Hz 4 f1100Hz 5 f1100Hz 6 f1100Hz 7 ;
S 50 2 169 f1100Hz 8 f1100Hz 9 f1100Hz 10 f1100Hz 11 ;
N 200 2 81 f1100Hz 12 f1100Hz 13 f1100Hz 14 f1100Hz 15 ;
S 50 2 397 f1100Hz 16 f1100Hz 17 f1100Hz 18 f1100Hz 19 ;
S 50 2 156 f1100Hz 20 f1100Hz 21 f1100Hz 22 f1100Hz 23 ;
S 50 2 264 f1100Hz 24 f1100Hz 25 f1100Hz 26 f1100Hz 27 ;
S 50 2 83 f1100Hz 28 f1100Hz 29 f1100Hz 30 f1100Hz 31 ;
N 200 2 301 f1100Hz 32 f1100Hz 33 f800Hz100ms 1 f800Hz100ms 2 ;
S 50 2 131 f800Hz100ms 3 f1000Hz 1 f1000Hz 2 f1000Hz 3 ;
S 50 2 327 f1150Hz100ms 1 f1150Hz100ms 2 f1150Hz100ms 3 f1150Hz100ms 4 ;
S 50 2 345 f1150Hz100ms 5 f1150Hz100ms 6 f1150Hz100ms 7 f1150Hz100ms 8 ;
N 200 2 374 f900Hz 1 f900Hz 2 f900Hz 3 f900Hz 4 ;
S 50 2 225 f900Hz 5 f900Hz 6 f900Hz 7 f900Hz 8 ;
S 50 2 42 f1200Hz100ms 1 f1200Hz100ms 2 f1200Hz100ms 3 f1100Hz 1 ;
T 100 1 114 f1100Hz 2 f1100Hz 3 f850Hz100ms 1 f850Hz100ms 2 ;
S 50 2 457 f850Hz100ms 3 f850Hz100ms 4 f850Hz100ms 5 f850Hz100ms 6 ;
S 50 2 76 f850Hz100ms 7 f850Hz100ms 8 f700Hz 1 f700Hz 2 ;
S 50 2 413 f700Hz 3 f700Hz 4 f700Hz 5 f700Hz 6 ;
S 50 2 269 f700Hz 7 f700Hz 8 f700Hz 9 f700Hz 10 ;
S 50 2 498 f700Hz 11 f700Hz 12 f700Hz 13 f700Hz 14 ;
S 50 2 39 f700Hz 15 f700Hz 16 f700Hz 17 f700Hz 18 ;
S 50 2 221 f700Hz 19 f700Hz 20 f700Hz 21 f700Hz 22 ;
N 200 2 53 f700Hz 23 f700Hz 24 f700Hz 25 f700Hz 26 ;
S 50 2 481 f700Hz 27 f700Hz 28 f700Hz 29 f700Hz 30 ;
S 50 2 222 f700Hz 31 f700Hz 32 f700Hz 33 f900Hz100ms 1 ;
S 50 2 387 f900Hz100ms 2 f900Hz100ms 3 f900Hz100ms 4 f900Hz100ms 5 ;
T 100 1 409 f900Hz100ms 6 f900Hz100ms 7 f900Hz100ms 8 f1000Hz 1 ;
S 50 2 434 f1000Hz 2 f1000Hz 3 f800Hz100ms 1 f800Hz100ms 2 ;
S 50 2 42 f800Hz100ms 3 f800Hz100ms 4 f800Hz100ms 5 f800Hz100ms 6 ;
S 50 2 200 f800Hz100ms 7 f800Hz100ms 8 f800Hz100ms 9 f800Hz100ms 10 ;
S 50 2 130 f800Hz100ms 11 f800Hz100ms 12 f800Hz100ms 13 f800Hz100ms 14 ;
N 200 2 500 f800Hz100ms 15 f800Hz100ms 16 f800Hz100ms 17 f800Hz100ms 18 ;
S 50 2 216 f800Hz100ms 19 f800Hz100ms 20 f800Hz100ms 21 f800Hz100ms 22 ;
S 50 2 455 f800Hz100ms 23 f800Hz100ms 24 f800Hz100ms 25 f800Hz100ms 26 ;
S 50 2 91 f800Hz100ms 27 f800Hz100ms 28 f800Hz100ms 29 f800Hz100ms 30 ;
S 50 2 132 f800Hz100ms 31 f800Hz100ms 32 f800Hz100ms 33 f1000Hz 1 ;
N 200 2 73 f1000Hz 2 f1000Hz 3 f1000Hz 4 f1000Hz 5 ;
S 50 2 68 f1000Hz 6 f1000Hz 7 f1000Hz 8 f1000Hz 9 ;
S 50 2 435 f1000Hz 10 f1000Hz 11 f1000Hz 12 f1000Hz 13 ;
S 50 2 290 f1000Hz 14 f1000Hz 15 f1000Hz 16 f1000Hz 17 ;
S 50 2 275 f1000Hz 18 f1000Hz 19 f1000Hz 20 f1000Hz 21 ;
S 50 2 72 f1000Hz 22 f1000Hz 23 f1000Hz 24 f1000Hz 25 ;
S 50 2 427 f1000Hz 26 f1000Hz 27 f1000Hz 28 f1000Hz 29 ;
N 200 2 311 f1000Hz 30 f1000Hz 31 f1000Hz 32 f1000Hz 33 ;
S 50 2 175 f1250Hz100ms 1 f1250Hz100ms 2 f1250Hz100ms 3 f1250Hz100ms 4 ;
S 50 2 257 f1250Hz100ms 5 f1250Hz100ms 6 f1250Hz100ms 7 f1250Hz100ms 8 ;
} ;
trial {
stimulus_event {
picture{ text { caption = "+";
font_size = 28;
font_color = 255,255,255;
};
x = 0; y = 0;
};
time = 2000;
duration = 1000;
port_code = 129;
};
}; |
333d82944c9add6cc3b39a00afd52d5f939483da | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set8/s_Elements_Of_Chemical_Reaction_Engineering_H._S._Fogler_800.zip/Elements_Of_Chemical_Reaction_Engineering_H._S._Fogler_800/CH1/EX1.3/1_3.sce | 9bb22ccc76af86c05446eecd99bcd37de5e3e4b1 | [] | 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 | 149 | sce | 1_3.sce | errcatch(-1,"stop");mode(2);////
exec("1.3data.sci");
//CA = 0.1*CA0;
V = (v0/k)*log(1/0.1);
disp("V =")
disp(V)
disp ("dm^3")
exit();
|
038ae02d9ca2455c91150a016aea1e5da636e04e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH4/EX4.8/Ex4_8.sce | cbaed2db68788cdc83b1a425463dc19ee7f116a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 357 | sce | Ex4_8.sce | // Example 4_8
clc;funcprot(0);
// Given data
phi_e=120;// V
R=144;// ohm
t=1.50;// h
// Solution
// (a)
i_e=phi_e/R;// A
W_12=-phi_e*i_e*t;// The electrical current work in W.h
// (b)
W_ec=-phi_e*i_e;// W
printf('\n(a)The electrical current work,W_12=%3.0f W.h \n(b)The electrical power consumption,W_electrical current=%3.0f W',W_12,W_ec);
|
742113d186c268824b69e3ec9b2cfabd0b965355 | 449d555969bfd7befe906877abab098c6e63a0e8 | /605/CH9/EX9.2/9_2.sce | d0a7efa4ba15325b9a3495acb14fafe84ba5ba62 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 224 | sce | 9_2.sce |
foo=2.05*10^6
fc=2*10^6
Zo=75
Wc=2*%pi*2*10^6
L=Zo/Wc*2
C=2/(Zo*Wc)
m=sqrt(1-(fc/foo)^2)
printf("\nm=%.4f",m)
printf("\nm*L/2=%.2e H",m*L/2)
printf("\nm*C=%.3e F",m*C)
printf("\n(1-m^2)*L/4/m=%.2e",(1-m^2)*L/4/m) |
cd6bd0632668caa9632bbbad32f252a94dd68af3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3717/CH9/EX9.4/Ex9_4.sce | 6635d6b2c522578f9bef254cf5a8d89a9ab75087 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 580 | sce | Ex9_4.sce | // Ex9_4 Page:175 (2014)
clc;clear;
PI = 3.14;
u = 1.67e-027; // Mass equivalent of 1 amu, kg/amu
c = 3e+008; // Speed of light in vacuum, m/s
lambda0 = 3.465e-006; // Wavelength of vibrational absorption line of HCl molecule, m
m1 = 1.0087; // Mass of H atom, amu
m2 = 35.453; // Mass of Cl atom, amu
mu = m1*m2/(m1 + m2)*u; // Reduced mass of HCl molecule, kg
k = 4*PI^2*mu*(c/lambda0)^2; // Force constant of H-Cl bond, N/m
printf("\nForce constant of the H-Cl bond = %5.1f N/m", k);
// Result
// Force constant of the H-Cl bond = 484.2 N/m
|
75f4dd6f879698bd0d5154f2b8be12adc63b662a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1928/CH1/EX1.14.20/ex1_14_20.sce | 4c80cbb7718292550ff1926ddff7fdfe634a6a56 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 533 | sce | ex1_14_20.sce | //Chapter-1,Example1_14_20,pg 1-66
n=8 //Diamond structure
ro=2.33*10^3 //density of diamond
M=28.9 //atomic weight of diamond
N=6.023*10^26 //Avogadro's number
a=((n*M)/(N*ro))^(1/3)
printf(" 1) Lattice constant=")
disp(a)
printf("m")
r=sqrt(3)*a/8 //radius of diamond structure
printf(" 2) atomic radius of a metal=")
disp(r)
printf("m")
|
b0e9839c6a59734083160aa0d2dd9dc711b938ba | cb885e915b1817d0e57e8e2919ce696aeb263c6f | /ascii-20_views-olympus-turntable/src/comprehensive_notation/synthdata_trifocal_tangents.sce | 1f1d9fff3e1df1638c50413ad368592535c3946c | [
"CC-BY-4.0",
"CC-BY-2.0"
] | permissive | rfabbri/synthcurves-multiview-3d-dataset | abd044f6d71e3370c7eb32bf1b9c1c8dfb023eda | cc1cce7f68301f2b30ecb103847b8b13a93efed2 | refs/heads/master | 2020-03-29T10:16:29.944334 | 2019-10-31T01:22:13 | 2019-10-31T01:22:13 | 149,797,021 | 2 | 4 | null | null | null | null | UTF-8 | Scilab | false | false | 2,056 | sce | synthdata_trifocal_tangents.sce | // to be included in synthdata_trifocal.sce
T__1 = R_1*T_w_vec;
T__2 = R_21*T__1;
T__3 = R_31*T__1;
// Starting here we treat the 2D vectors as 3D vectors
// Apply the inverse K matrix!
t__1_vec_img = [t__1_vec_img; zeros(1,size(t__1_vec_img,2))]
t__2_vec_img = [t__2_vec_img; zeros(1,size(t__2_vec_img,2))]
t__3_vec_img = [t__3_vec_img; zeros(1,size(t__3_vec_img,2))]
// gama__1_vec = inv(K)*gama__1_vec;
t__1_vec = K\t__1_vec_img;
t__2_vec = K\t__2_vec_img;
t__3_vec = K\t__3_vec_img;
tmpnorm = sqrt(sum(t__1_vec.*t__1_vec,1));
t__1_vec = t__1_vec ./ [tmpnorm;tmpnorm;tmpnorm;];
tmpnorm = sqrt(sum(t__2_vec.*t__2_vec,1));
t__2_vec = t__2_vec ./ [tmpnorm;tmpnorm;tmpnorm;];
tmpnorm = sqrt(sum(t__3_vec.*t__3_vec,1));
t__3_vec = t__3_vec ./ [tmpnorm;tmpnorm;tmpnorm;];
// Sanity check: projected tangents must match
// 3D parametrization relative to view 1 (ie, for g__1 = 1)
// From big notes book draft (6.2.3):
g__2 = zeros(size(point_ids));
g__3 = zeros(size(point_ids));
depth_gradient__1 = zeros(size(point_ids));
depth_gradient__2 = zeros(size(point_ids));
depth_gradient__3 = zeros(size(point_ids));
t__1_proj_vec = zeros(3,size(point_ids,'*'));
for i=point_ids
n_w_1 =norm(T__1(:,i) - T__1(3,i)*gama__1_vec(:,i));
G = depth__1(i) / n_w_1;
g__2(i) = G*norm(T__2(:,i) - T__2(3,i)*gama__2_vec(:,i))/depth__2(i);
g__3(i) = G*norm(T__3(:,i) - T__3(3,i)*gama__3_vec(:,i))/depth__3(i);
depth_gradient__1(i) = G *T__1(3,i);
depth_gradient__2(i) = G *T__2(3,i);
depth_gradient__3(i) = G *T__3(3,i);
// TANGENT EQS
depth_gradient__2(i)*gama__2_vec(:,i) + depth__2(i)*g__2(i)*t__2_vec(:,i) - R_21*(depth_gradient__1(i)*gama__1_vec(:,i) + depth__1(i)*t__1_vec(:,i))
// Just sanity-checking that tangents project to given tangents
t__1_proj_vec(:,i) = T__1(:,i) - T__1(3,i)*gama__1_vec(:,i);
t__1_proj_vec(:,i) = t__1_proj_vec(:,i) / norm(t__1_proj_vec(:,i));
disp 'tangent projection'
t__1_vec(:,i) - t__1_proj_vec(:,i)
end
// TODO: compute area in each image and in 3D of triangle, to guarantee
// nondegeneracy
|
4b1ba02e10d804d90bbba98c680c3932fd3752dd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2309/CH5/EX5.4/Ex5_4.sce | c5e8434f5e1a696c58aaa576b7dffc7da9dd39a9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 872 | sce | Ex5_4.sce | // Chapter 5 Example 4
//==============================================================================
clc;
clear;
//input data
lamda = 1.5418; // wavelength in Å
h = 1; // miller indice
k = 1; // miller indice
l = 1; // miller indice
n = 1; // given first order
theta = 30; // diffraction angle in degrees
// Calculations
theta1 = theta*%pi/180; // degree to radian conversion
// d = (n*lamda)/(2*sinθ); by Braggs law ------------- 1
// d = a/sqrt((h^2)+(k^2)+(l^2)); interplanar distance ------------ 2
// equating 1 and 2
a = (n*lamda*sqrt((h^2)+(k^2)+(l^2))/(2*sin(theta1)))
// Output
mprintf('Interatomic spacing a = %f Å',a);
//==============================================================================
|
1999f2b56ec639484e99d9495eff7c65a199a87d | 090aefac4d8d48efba8d30891bd37b7b82b2ad91 | /LP/haskell-project/tests/1.tst | 934f7ff6cd7df5148624c8e68eb82a195c3bd841 | [
"MIT"
] | permissive | landlockedboat/fib | 04a3818091eeffcdb734c8db968024ac76e70e70 | 5b6c3d3029a49b06740a5ea6be81c39be3ff5173 | refs/heads/master | 2022-05-08T23:25:46.868058 | 2018-08-20T15:04:33 | 2018-08-20T15:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 188 | tst | 1.tst | let seq = (Seq [(Assign ("X") (Const 1)), (Cond (Gt (Var "X") (Const 0)) (Seq [(Assign ("Z") (Const 1))]) (Seq []))])
let symt = (SymTable [])
let ent = []
interpretCommand symt ent seq
|
59f802b194c5f88b0db8f3fea664c323e1869b9e | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH13/EX13.17/example13_17.sce | 40f91da61fe852809d2b0de63e0cbcdb3e70f1e7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 410 | sce | example13_17.sce | //Chapter 13
//Example 13_17
//Page 329
clear;clc;
l=1000;
i=1.25;
r_km=0.05;
r=2*r_km/1000;
I=i*l;
R=r*l;
vd=I*R/8;
//Part 1 is derivation of maximum voltage drop and is not included in the code. Only Part 2 is solved.
printf("(i) Total current supplied by distributor = %d A \n\n", I);
printf("Total resistance of the distributor = %.1f ohm \n\n", R);
printf("Maximum voltage drop = %.2f V \n\n", vd);
|
5f370b868d5cdcdba989519fd10f8ef525586e59 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH14/EX14.8/Ch014Ex8.sce | a1170bbae3172e57b0415009f573ca8a64e6a59b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 532 | sce | Ch014Ex8.sce | // Scilab code Ex14.8 : Pg:723(2011)
clc;clear;
I = 55e-03; // Forward current through Si diode, A
V = 3; // Forward bias across Si diode, V
eta = 2; // Ideality factor for Si diode
R_dc = V/I; // Static diode resistance, ohm
R_ac = 0.026*eta/I; // Dynamic diode resistance, ohm
printf("\nThe static diode resistance = %4.1f ohm", R_dc);
printf("\nThe dynamic diode resistance = %5.3f ohm", R_ac);
// Result
// The static diode resistance = 54.5 ohm
// The dynamic diode resistance = 0.945 ohm
|
aa4e75acf4b648a5ad307aa310839bef767ba2db | 449d555969bfd7befe906877abab098c6e63a0e8 | /416/CH13/EX13.11/example13_11.sce | cfb1e2fdd94f1a1f8e760507ab8f008101a87096 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 402 | sce | example13_11.sce | clc
clear
disp('example 13 11')
n1=5;x=0.4;d=0.1;g=20 //given
mva=(g/x)+(g*(n1-1)/(x+n1*d))
n2=10 //given
mva2=(g/x)+(g*(n2-1)/(x+n2*d))
disp('a')
printf("fault MVA =(g/x)+(g*(n-1)/(x+nd)) \n fault level is to equal to fault MVA if n=infinity")
disp('b')
printf(" MVA=%.2fMVA if n=%d \n MVA=%.2fMVA if n=%d",mva,n1,mva2,n2)
fl=g*((1/x)+(1/d))
disp('c')
printf("\nfault level %dMVA",fl)
|
25150ce9249e345d63285d89c3fbc842f0af1a5e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH6/EX6.31/ex6_31.sce | c7039aa2d381cccbdd025d2d84e226c6dc3cf62d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 429 | sce | ex6_31.sce | // Exa 6.31
clc;
clear;
close;
// Given data
m1 = 3;// in kg
m2 = 2;// in kg
T1 = 10;// in degree C
T2 = 80;// In Degree C
T = ((m1*T1)+(m2*T2))/(m1+m2);// in degree C
T = T + 273;// in K
T1 = T1 + 273;// in K
T2 = T2 + 273;// in K
c_f = 4.188;
del_phi1 = m1 * c_f*log(T/T1);// in kJ/K
del_phi2 = m2 * c_f*log(T/T2);// in kJ/K
Phi = del_phi1 + del_phi2;// in kJ/K
disp(Phi,"Total change in entropy in kJ/K is")
|
93c645d3a0f81b806eac73a59777543e82cd65a8 | 2f213caa34d1d6981b1308de71102bcc84ff38a9 | /8term/Labs/MAMOEFI/Lab1/lab_text_log.sce | 5ddb653185fbb02017a4438c22c05fc374caf60b | [] | no_license | kilel/Study | d38ad39aae77fef92e187b8f30891a3b642095fd | 2d270176f61aaac96d5cab3c342622f5b3b9480d | refs/heads/master | 2021-01-19T08:26:05.142277 | 2014-05-18T21:03:18 | 2014-05-18T21:03:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,878 | sce | lab_text_log.sce | n = 69;
k = 8;
x = [
[1, 1, 1, 50.7, 15.4, 8.2, 0, 1, 0, 15.9];
[1, 3, 1, 88.9, 31.2, 10.7, 0, 1, 0, 27.0];
[1, 1, 1, 45.2, 12.3, 10.7, 0, 1, 12, 13.5];
[1, 1, 1, 50.7, 15.4, 8.5, 0, 1, 12, 15.1];
[1, 2, 1, 71.1, 21.5, 10.7, 0, 1, 12, 21.1];
[1, 3, 1, 97.1, 35.6, 10.7, 0, 1, 12, 28.7];
[1, 3, 1, 93.2, 35.3, 10.7, 0, 0, 0, 27.2];
[1, 3, 1, 96.9, 36.5, 10.4, 0, 0, 0, 28.3];
[1, 4, 1, 179.0, 67.1, 14.6, 0, 1, 0, 52.3];
[1, 1, 1, 52.0, 13.6, 11.0, 1, 1, 8, 22.0];
[1, 2, 1, 68.9, 23.9, 10.0, 1, 1, 8, 28.0];
[1, 3, 1, 111.8, 37.5, 14.0, 1, 1, 8, 45.0];
[1, 4, 1, 127.4, 50.6, 13.0, 1, 1, 8, 51.0];
[1, 2, 1, 81.4, 16.5, 11.0, 1, 1, 0, 34.4];
[1, 1, 1, 58.9, 15.8, 10.4, 1, 1, 8, 24.7];
[1, 2, 1, 73.3, 22.8, 9.4, 0, 1, 8, 30.8];
[1, 1, 1, 48.1, 13.7, 8.3, 0, 1, 0, 15.9];
[1, 3, 1, 87.8, 33.5, 8.3, 0, 1, 0, 29.0];
[1, 1, 1, 48.1, 13.7, 8.3, 0, 1, 3, 15.4];
[1, 3, 1, 89.7, 32.6, 8.3, 0, 1, 3, 28.6];
[1, 1, 1, 52.0, 15.4, 8.3, 0, 0, 0, 15.6];
[1, 3, 1, 89.8, 31.8, 8.3, 0, 1, 0, 27.7];
[1, 2, 1, 88.5, 27.2, 13.0, 1, 1, 20, 34.1];
[1, 2, 1, 97.9, 31.8, 12.1, 1, 1, 20, 37.7];
[1, 3, 1, 108.8, 37.3, 12.1, 1, 1, 20, 41.9];
[1, 1, 1, 63.3, 17.2, 12.4, 1, 1, 20, 24.4];
[1, 1, 1, 51.9, 13.8, 8.1, 1, 0, 0, 21.3];
[1, 2, 1, 89.2, 27.3, 17.0, 1, 1, 12, 36.7];
[1, 1, 1, 50.7, 15.4, 9.2, 1, 0, 0, 21.5];
[1, 2, 1, 63.2, 23.8, 8.0, 1, 0, 0, 26.4];
[1, 3, 1, 127.4, 43.1, 22.0, 1, 0, 0, 53.9];
[1, 2, 1, 89.1, 23.6, 8.3, 1, 1, 6, 34.2];
[1, 2, 1, 92.4, 27.8, 13.3, 1, 1, 6, 35.6];
[1, 3, 1, 88.4, 31.5, 8.0, 1, 1, 12, 34.0];
[1, 1, 1, 49.4, 14.6, 7.4, 1, 1, 12, 19.0];
[1, 2, 1, 121.2, 38.1, 14.0, 1, 1, 12, 46.6];
[1, 3, 1, 152.1, 42.5, 25.0, 1, 1, 12, 58.5];
[1, 1, 2, 54.6, 16.2, 10.2, 1, 0, 12, 24.2];
[1, 2, 2, 80.6, 26.9, 11.0, 1, 0, 12, 35.7];
[1, 3, 2, 115.7, 40.2, 11.5, 1, 1, 12, 51.2];
[1, 4, 2, 171.6, 68.9, 11.0, 1, 1, 12, 75.9];
[1, 1, 2, 53.0, 14.8, 10.1, 1, 1, 6, 21.2];
[1, 2, 2, 77.0, 24.5, 11.2, 1, 1, 6, 30.8];
[1, 3, 2, 85.0, 29.9, 9.3, 1, 1, 6, 34.0];
[1, 2, 2, 78.3, 27.9, 10.9, 1, 1, 12, 31.9];
[1, 3, 2, 106.9, 38.2, 13.8, 1, 1, 12, 43.6];
[1, 3, 2, 127.9, 40.2, 15.3, 1, 1, 12, 52.2];
[1, 3, 3, 99.7, 34.4, 8.0, 1, 1, 0, 43.1];
[1, 1, 3, 50.3, 15.4, 10.2, 1, 1, 6, 25.0];
[1, 2, 3, 73.3, 25.2, 10.1, 1, 1, 6, 35.2];
[1, 3, 3, 99.7, 34.4, 8.0, 1, 1, 6, 40.8];
[1, 1, 3, 50.3, 15.4, 10.2, 1, 0, 0, 18.2];
[1, 1, 3, 54.0, 15.4, 10.2, 1, 1, 0, 20.1];
[1, 2, 3, 63.4, 21.9, 8.0, 1, 0, 0, 22.7];
[1, 2, 3, 74.6, 25.8, 10.1, 1, 1, 0, 27.6];
[1, 3, 3, 99.7, 34.4, 8.0, 0, 1, 0, 36.0];
[1, 1, 4, 48.1, 13.5, 8.3, 0, 1, 7, 17.8];
[1, 2, 4, 70.2, 23.5, 8.3, 0, 1, 7, 25.9];
[1, 3, 4, 88.4, 32.7, 8.3, 0, 1, 7, 32.6];
[1, 1, 4, 52.7, 12.3, 11.0, 0, 1, 3, 19.8];
[1, 2, 4, 79.3, 23.8, 11.0, 0, 1, 3, 29.9];
[1, 3, 4, 104.0, 35.1, 11.0, 1, 1, 3, 39.2];
[1, 1, 4, 67.6, 16.3, 11.2, 1, 1, 18, 22.4];
[1, 2, 4, 101.5, 30.8, 11.6, 1, 1, 18, 35.2];
[1, 3, 4, 119.1, 41.4, 16.0, 0, 0, 18, 41.2];
[1, 1, 4, 51.9, 14.8, 8.4, 0, 1, 6, 17.8];
[1, 2, 4, 73.1, 24.2, 11.1, 0, 1, 6, 25.0];
[1, 3, 4, 102.8, 32.6, 15.5, 0, 1, 6, 35.2];
[1, 4, 4, 119.1, 42.5, 9.4, 0, 1, 6, 40.8]
];
x(:, 4:6) = (log(x(:, 4:6)));
//task 1;
y = log(x(:,k+2));
x = x(:,1:(k+1));
b = (x'*x)^(-1)*x'*y;
//task 2
temp_y = exp(x*b) - exp(y);
ESS = temp_y'*temp_y;
avg_y = (y'*ones(n,1))/n;
temp_y = exp(x*b) - exp(avg_y);
RSS = temp_y'*temp_y;
TSS = RSS + ESS;
R2 = 1 - ESS/TSS
R2_korr = 1 - (n-1)/(n-k-1)*(1-R2);
//task 3
s2 = ESS/(n-k);
s = sqrt(s2);
s2R = TSS/(k-1);
//task 4
avg_x = (ones(1,n)*x/n);
s_beta2 = diag((x'*x)^-1);
t_stat_b = abs(exp(b)./sqrt(s_beta2)/s);
t_krit = log(2.001);
b_not_null = t_stat_b > t_krit;
//task 5
F_model = R2/(1-R2) * (n-k-1)/(k);
F_krit = 3.053;
model_not_bad = F_model > F_krit;
//task 6
b_min_val_abs = t_krit * sqrt(s_beta2) * s;
//task 7
Dx = ones(1,n) * (x.*x)/n - avg_x.*avg_x;
Dy = sum(y.*y)/n - avg_y^2;
r_xx = zeros(k, k);
for i = 2:(k+1)
for j = 2:(k+1)
temp_avg_x1x2 = sum(x(:, i).*x(:, j))/n - avg_x(i)*avg_x(j) ;
//disp(temp_avg_x1x2);
r_xx(i-1,j-1) = temp_avg_x1x2/sqrt(Dx(i)*Dx(j));
end
end
r_xy = zeros(1,k);
for i = 2:(k+1)
temp_avg_xy = sum(x(:, i).*y)/n - avg_x(i)*avg_y;
r_xy(i-1) = temp_avg_xy /sqrt(Dy * Dx(i));
end
//task 8
r_private = zeros(k,1);
for i = 2:(k+1)
temp_x = x;
temp_x(:, i:i) = [];
temp_korr = y;
temp_b = (temp_x' * temp_x)^(-1) * temp_x' * temp_korr;
temp_y1 = temp_x * temp_b - temp_korr;
//
temp_korr = x(:,i);
temp_b = (temp_x' * temp_x)^(-1) * temp_x' * temp_korr;
temp_y2 = temp_x * temp_b - temp_korr;
//
temp_korr = temp_y1' * temp_y2/n - sum(temp_y1)*sum(temp_y2)/n/n;
D1 = temp_y1' * temp_y1/n - sum(temp_y1)*sum(temp_y1)/n/n;
D2 = temp_y2' * temp_y2/n - sum(temp_y2)*sum(temp_y2)/n/n;
r_private(i-1) = temp_korr/sqrt(D1*D2);
end
|
08410d591006cea9f31a2d8224f58b098907f1b4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH8/EX8.4/c8_4.sce | 172e3ded44fd6100a451dcbe9da24ced97725e56 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,566 | sce | c8_4.sce | //(8.4) Reconsider the reheat cycle of Example 8.3, but include in the analysis that each turbine stage has the same isentropic efficiency. (a) If etat = 85%, determine the thermal efficiency. (b) Plot the thermal efficiency versus turbine stage efficiency ranging from 85 to 100%.
//solution
//part (a)
etat = .85 //given efficiency
//From the solution to Example 8.3, the following specific enthalpy values are known, in kJ/kg
h1 = 3348.4
h2s = 2741.8
h3 = 3353.3
h4s = 2428.5
h5 = 173.88
h6 = 181.94
h2 = h1 - etat*(h1 - h2s) //The specific enthalpy at the exit of the first-stage turbine in kj/kg
h4 = h3 - etat*(h3-h4s) //The specific enthalpy at the exit of the second-stage turbine in kj/kg
eta = ((h1-h2)+(h3-h4)-(h6-h5))/((h1-h6)+(h3-h2))
printf('the thermal efficiency is: %f',eta)
//part (b)
x = linspace(.85,1,50);
for i = 1: 50
h2(1,i) = h1 - x(1,i)*(h1 - h2s) //The specific enthalpy at the exit of the first-stage turbine in kj/kg
h4(1,i) = h3 - x(1,i)*(h3-h4s) //The specific enthalpy at the exit of the second-stage turbine in kj/kg
end
for i = 1:50
y(1,i) = ((h1-h2(1,i))+(h3-h4(1,i))-(h6-h5))/((h1-h6)+(h3-h2(1,i)))
end
plot2d(x,y)
xtitle("","isentropic turbine efficiency","cycle thermal efficiency") |
bcc076bebe73e1a55b0f0b98e07548a02b817dd8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1286/CH8/EX8.15/8_15.sce | 0159c4399e1ddc140aa9784033da98c3b7a0f5d4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 8_15.sce | clc
//initialisation of variables
dp=1.01*10^5//Nm^-2
L=4563000*4.2//J
dv=18.7*10^-3//m^3
T=353//k
//CALCULATIONS
dT=(dp*T*dv)/L
//results
printf(' \n change in melting point= % 1f c',dT)
|
40f5f5fbf931b5997ea9eed7dde10162253a9bf1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /172/CH2/EX2.3/ex3.sce | 5f17aadbaf6700dc3c77f7c17bc84f1455b8de9d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 602 | sce | ex3.sce | //example 3
//calculating the required force
clear
clc
Dcyl=0.1 //cylinder diameter in m
Drod=0.01 //rod diameter in m
Acyl=%pi*Dcyl^2/4 //cross sectional area of cylinder in m^2
Arod=%pi*Drod^2/4 //cross sectional area of rod in m^2
Pcyl=250000 //inside hydaulic pressure in Pa
Po=101000 //outside atmospheric pressure in kPa
g=9.81 //acc. due to gravity in m/s^2
mp=25 //mass of (rod+piston) in kg
F=Pcyl*Acyl-Po*(Acyl-Arod)-mp*g //the force that rod can push within the upward direction in N
printf("\n hence,the force that rod can push within the upward direction is F = %.3f N. \n",F) |
4b425e819a58a44f3041015b42ef85244d870549 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH1/EX1.8/Ex1_8.sce | d5192c4a40e29e097077815cb8cdac4d05fa36a6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 930 | sce | Ex1_8.sce | //Example 1_8
clc;
clear;
//To Calculate the Angular position of the 10th maximum and first minimum
//The distance from centre where 10th maximum is obtained by
lamda=5460 //units in angstrom
lamda=5460*10^-10 //units in mts
n=10
d=0.1 //units in mm
d=0.1*10^-3 //units in mts
D=2 //units in mts
x10=(n*lamda*D)/d //units in mts
//angular position with respect to center is
tantheta=(x10/D) //units in radians
z=atan(tantheta)*(180/%pi) //units in degrees
printf("Angular position of 10th maximum is theta=%.3f degrees",z)
x1=(lamda*D)/(2*d) //units n mts
printf("\n The distance from centre where 1st minimum is obtained is %f metres",x1)
tantheta1=(x1/D) //units in radians
z1=atan(tantheta1)*(180/%pi) //units in degrees
printf("\n Angular position with respect to center is theta=%.3f degrees",z1) |
e4e849e736b7f71fd275abb4d91b9d973ccf597f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2138/CH12/EX12.5.a/EX_12_5_a.sce | 81a1b93e1dbdf30f86ac428f09fc2f8e4bfc2e82 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 336 | sce | EX_12_5_a.sce | //Example 12.5.a // power factor
clc;
clear;
close;
w1=4.5;//first reading in kW
w2=3;//second reading in kW , this value is given wrong in question
tw=w1+w2;//in kW
dw=w1-w2;//in kW
pfa=atand(sqrt(3)*(dw/tw));
pf=cosd(pfa);////power factor when both the eadings are positive
disp(pf,"power factor when both the readings are positive")
|
c786ca338ed1d6cedee059d0807eccbebfe4ce12 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1439/CH15/EX15.8/15_8.sce | 13207529716e3bb6f5cc754a0822db5fa19429fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 157 | sce | 15_8.sce | clc
//initialisation of variables
kw= 10^-14
ka= 2.69*10^-5
c= 0.1 //N
//CALCULATIONS
pH= -log10(sqrt(kw*ka/c))
//RESULTS
printf ('pH = %.2f ',pH)
|
74a35fd477ea737eeba8cd3a09af35d8c6828c26 | 417f69e36190edf7e19a030d2bb6aa4f15bb390c | /SMTTests/tests/err_getValueMalformed.tst | 8bf91cc74472e49a23c8d1745de0c30782ac56c7 | [] | no_license | IETS3/jSMTLIB | aeaa7ad19be88117c7454d807a944e8581184a66 | c724ac63056101bfeeb39cc3f366c8719aa23f7b | refs/heads/master | 2020-12-24T12:41:17.664907 | 2019-01-04T10:47:43 | 2019-01-04T10:47:43 | 76,446,229 | 1 | 0 | null | 2016-12-14T09:46:41 | 2016-12-14T09:46:41 | null | UTF-8 | Scilab | false | false | 231 | tst | err_getValueMalformed.tst | ; malformed get-value commands
(set-option :produce-models true)
(set-logic QF_UF)
(declare-fun x () Bool)
(assert true)
(check-sat)
(get-value)
(get-value x)
(get-value x y)
(get-value (x) ) ; OK
(get-value (x) x)
(get-value () )
|
f9f1185a6b79b248a9bc31ce587f0cb97160a4dc | 449d555969bfd7befe906877abab098c6e63a0e8 | /226/CH14/EX14.11/example11_sce.sce | 6a7d6aef45582bf8c0b522ac7f39727fe466abef | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 591 | sce | example11_sce.sce | //chapter 14
//example 14.11
//page 619
printf("\n")
printf("given")
Vi=10*10^-3;Vn=1;R1=33*10^3;R2=300;R5=15*10^3;R4=15*10^3;Vi2=-10*10^-3;R3=R1;R6=15*10^3;R7=R6;
Acl=((2*R1+R2)/R2)*(R5/R4)
disp("at junction of R1 and R2")
Vb=Vi+Vn
disp("at junction of R2 and R3")
Vc=Vi2+Vn
disp(" current through R2")
I2=(Vb-Vc)/R2
disp("at the output of A1")
Va=Vb+(I2*R1)
disp("at output of A2")
Vd=Vc-(I2*R3)
disp("at junction of R6 and R7")
Vf=Vd*(R7/(R6+R7))
disp("at junction of R4 and R5")
Ve=Vf
disp("current through R4")
I4=(Va-Ve)/R4
disp("at output of A3")
Vg=Ve-(I4*R5) |
41957cf29b916682aa2c0d2e975d0269d8e9967e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1928/CH3/EX3.17.18/ex_3_17_18.sce | e519c343524d7ca0f0399d631101a88d353b7f0c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,200 | sce | ex_3_17_18.sce | //Chapter-3,Example3_17_18,pg 3-42
phi=1.5*10^-4 //magnetic flux
ur=900 //relative permeability of material
n=600 //number of turns
u0=4*%pi*10^-7 //permeability of free space
A=5.8*10^-4 //cross section area of ring
d=40*10^-2 //mean diameter of ring
li=%pi*d //mean circumference of ring
la=5*10^-3 //air gap
B=phi/A //flux density
//for air gap
Ha=B/(u0) //magnetic field for air gap
//for iron ring
Hi=B/(u0*ur) //magnetic field for iron ring
//therefore, Amp turn in air gap
Ata=Ha*la //Amp-turns required
//therefore, Amp-turn in ring
Ati=Hi*li //Amp-turns required
//therrfore total mmf required
mmf=Ata+Ati
//Current required
I=mmf/n //current required
printf("Current required =")
disp(I)
printf("Amp") |
2972a8e271bba4bc2fa2abb802efe77df151bad7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH2/EX2.22/Exa_2_22.sce | aa8cdef841bffd8d0bb2a582c32ad55ee0a24964 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 375 | sce | Exa_2_22.sce | //Exa 2.22
clc;
clear;
close;
format('v',7);
//Given Data :
p1=1;//bar
V1=0.14;//m^3
V2=0.07;//m^3
R=287;//KJ/KgK
//p*V=R*k1*V^(-2/5) or p*V^(7/5)=K
K=p1*10^5*V1^(7/5);//Nm/Kg
W=integrate('K*V^(-7/5)','V',V1,V2);//Nm
disp(W,"Work done in Nm : ");
p2=K*V2^(-7/5);//N/m^2
p2=p2/10^5;//bar
disp(p2,"Final pressure in bar : ");
//Ans in the book is wrong.
|
7c76afbc61408a28f49db20f1f70060ee23463d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1226/CH20/EX20.24/EX20_24.sce | 84094267b97813996a3edaeae82cc6c964191ddc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,578 | sce | EX20_24.sce | clc;funcprot(0);//EXAMPLE 20.24
// Initialisation of Variables
p1=1;........//Suction pressure in bar
p2=4;.....//Intermediate pressure in bar
p5=3.8;.......//Pressure of air leaving the interooler in bar
p6=15.2;........//Delivery pressure in bar
t1=300;..........//Suction temperature in K
dlp=0.36;........//Diameter of low pressure cylinder in m
llp=0.4;........//Stroke of low pressure cylinder in m
N=220;........//Compressor rpm
k=0.04;........//Clearance ratio
cp=1.0035;.........//Specific heat at constant pressure in kJ/kgK
n=1.3;........//Compression index
R=0.287;........//Gas constant in kJ/kgK
p8=p5;p3=p2;p7=p6;t5=t1;
//Calculations
Vslp=(%pi/4)*dlp*dlp*llp*N*2;.......//Swept volume in m^3
etavlp=(1+k)-(k*((p2/p1)^(1/n)));.....//Volumetric efficiency
valp=Vslp*etavlp;................//Volume of air drawn in low pressure cylinder in m^3
m=(p1*10^5*valp)/(R*1000*t1);........//Mass of air drawin in kg/min
t2=round(t1*((p2/p1)^((n-1)/n)));
Qr=m*cp*(t2-t5);........//Heat rejected to the intercooler in kJ/min
disp(Qr,"Heat rejected to the intercooler in kJ/min:")
vahp=(m*R*t5*1000)/(p5*10^5);...//Volume of air drawn into high pressure cylinder per min in m^3
Vshp=vahp/etavlp;.........//Swept volume of high pressure cylinder in m^3/min
dhp=sqrt(Vshp/((%pi/4)*2*N*llp));..........//Diameter of high pressure cylinder in m
disp(dhp*1000,"Diameter of high pressure cylinder in mm:")
P=(n/(n-1))*m*(1/60)*R*(t2-t1);.......//Power required for high pressure cylinder in kW
disp(P,"Power required for high pressure cylinder in kW:")
|
7d096bd4c5c58251625cfefa016d9734b3b2ce2b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1820/CH5/EX5.6/Example5_6.sce | 87b052a06b879802cf76c2481279224cabd4aefb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,266 | sce | Example5_6.sce | // ELECTRIC POWER TRANSMISSION SYSTEM ENGINEERING ANALYSIS AND DESIGN
// TURAN GONEN
// CRC PRESS
// SECOND EDITION
// CHAPTER : 5 : UNDERGROUND POWER TRANSMISSION AND GAS-INSULATED TRANSMISSION LINES
// EXAMPLE : 5.6 :
clear ; clc ; close ; // Clear the work space and console
// GIVEN DATA
f = 60 ; // Freq in Hz
V_L_L = 138 ; // Line-to-line voltage in kV
T = 11/64 ; // Thickness of conductor insulation in inches
t = 5/64 ; // Thickness of belt insulation in inches
d = 0.575 ; // Outside diameter of conductor in inches
// CALCULATIONS
// For case (a)
T_1 = (T + t)/d ; // To find the value of geometric factor G for a single-conductor cable
G_1 = 2.09 ; // From table 5.3 , by interpolation
sf = 0.7858 ; // sector factor obtained for T_1 from table 5.3
G = G_1 * sf ; // real geometric factor
// For case (b)
V_L_N = V_L_L/sqrt(3) ; // Line-to-neutral voltage in V
K = 3.3 ; // Dielectric constant of insulation for impregnated paper cable
I_c = 3 * 0.106 * f * K * V_L_N/(1000 * G) ; // Charging current in A/1000ft
// DISPLAY RESULTS
disp("EXAMPLE : 5.6 : SOLUTION :-") ;
printf("\n (a) Geometric factor of cable using table 5.3 , G_1 = %.3f \n",G) ;
printf("\n (b) Charging current , I_c = %.3f A/1000ft \n",I_c) ;
|
95c630ceba482dba6bd05a651202cec7c04daf4e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3523/CH3/EX3.7.14/Ex3_14.sce | 5e6198019430a8cf97a8c2724b2ed44848b4a9d8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 300 | sce | Ex3_14.sce | //Example 14// Ch 3
clc;
clear;
close;
// given data
p=1.01*10^5/760;// 1 torr in N/m2
k=1.38*10^-23;
T=273; //in Kelvin
n=85*10^2;//no of collisions per meter
N=p/(k*T);
printf("no of gas molecules %e atoms/m^3",N)
r_a=sqrt(n/(%pi*N*1));
printf("diameter of argon atom %e m",r_a)
|
a487b220b2b8fcf39c9bb0307c7fd02e8571c6ea | 449d555969bfd7befe906877abab098c6e63a0e8 | /773/CH10/EX10.12/10_12.sci | 28d45e6409d3503abe4232e808a3c384d684527c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 431 | sci | 10_12.sci | //equation//
ieee(2);
syms p K s;
m=s^3+(p*s^2)+(K+3)*s+(2*(K+1))
cof_a_0 = coeffs(m,'s',0);
cof_a_1 = coeffs(m,'s',1);
cof_a_2 = coeffs(m,'s',2);
cof_a_3 = coeffs(m,'s',3);
r=[cof_a_0 cof_a_1 cof_a_2 cof_a_3]
n=length(r);
routh=[r([4,2]);r([3,1])];
routh=[routh;-det(routh)/routh(2,1),0];
t=routh(2:3,1:2); //extracting the square sub block of routh matrix
routh=[routh;-det(t)/routh(3,1),0];
disp(routh,"routh=")
|
30563de7f521f5009ffbadb1e6b21ef33afff5dc | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH20/EX20.3/Ex20_3.sce | 42e009f952de085c71042cc31666c58c30c8045c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 161 | sce | Ex20_3.sce | clear
//Given
I=35
e=5.0 //lumen/watt
//Calculation
//
a=4*%pi*I
P=a/e
//Result
printf("\n Power of the lamp is %0.0f Watt",P)
|
59dee0c8863437bb0c1c87eeba3e0f0d0add2bef | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH13/EX13.20/example13_20.sce | 9990a439a3c81a608d62c04945a4251ffc7415e7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,023 | sce | example13_20.sce | clc
// Given that
lambda = 1.24e-10 // wavelength of X-ray in A
x1 = 1 // coordinate on x axis of first plane
y1 = 0 // coordinate on y axis of first plane
z1 = 0 // coordinate on z axis of first plane
x2 = 1 // coordinate on x axis of second plane
y2 = 1 // coordinate on y axis of second plane
z2 = 0 // coordinate on z axis of second plane
x3 = 1 // coordinate on x axis of third plane
y3 = 1 // coordinate on y axis of third plane
z3 = 1 // coordinate on z axis of third plane
M = 74.5 // molecular weight of KCl
d = 1980 // density of KCl in kg/m^3
N = 6.023e+26 // Avogadro's No per Kg mole
// Sample Problem 20 on page no. 13.31
printf("\n # PROBLEM 20 # \n")
printf(" \n Standard formula used are D = 1/sqrt(x^2+y^2+z^2) and a^3 = n*M/(N*d)")
a = (4*M / (N*d))^(1/3)
D1 = a/sqrt(x1^2 + y1^2 + z1^2)
D2 = a/sqrt(x2^2 + y2^2 + z2^2)
D3 = a/sqrt(x3^2 + y3^2 + z3^2)
printf("\n Inter planner distances are - \n (1) in first case %f A, \n (2) in second case %f A ,\n (3) in third case %f A",D1*10^10,D2*10^10,D3*10^10)
|
1e9e6cdcaa8dc2fb7bfe5b65e293b22827d24cac | 449d555969bfd7befe906877abab098c6e63a0e8 | /2201/CH2/EX2.12/ex2_12.sce | 772f6e8936ef622158ff0c1e7b8f2de557453801 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 343 | sce | ex2_12.sce | // Exa 2.12
clc;
clear;
close;
// Given data
d = 5.32;// in gm/cc
N_A = 6.02*10^23;// in atoms/gm.mole
At = 72.6;//atomic weight
Miu = 3800;// in cm^2/v.s
n_d = (N_A/At) * d;// in /cm^3
n_d = n_d * 10^-8;// in /cc
e = 1.6*10^-19;// in C
Sigma = n_d * Miu * e;// in mho/cm
disp(Sigma,"The conductivity of specimen in mho/cm is");
|
c09a8d5b514ce798298acbc053c0b38955d9d016 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH22/EX22.1/example_22_1.sce | 352d85ab911795f26799f030780923ce9d4bd159 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,443 | sce | example_22_1.sce | clear;
clc;
disp("--------------Example 22.1----------------")
// network addresses
network_address1="180.70.65.192";
network_address2="180.70.65.128";
network_address3="201.4.22.0";
network_address4="201.4.16.0";
network_address5="Any" // Rest of the internet
// masks
mask1="/26";
mask2="/25";
mask3="/24";
mask4="/22";
mask5="Any"; // Rest of the internet
// interfaces
interface1=" m2";
interface2=" m0";
interface3=" m3";
interface4=" m1";
interface5=" m2"; // Rest of the internet
router_address="180.70.65.200"; // Router R1
// next hop addresses
next_hop1=" -";
next_hop2=" -";
next_hop3=" -";
next_hop4=" -";
next_hop5=router_address; // For rest of the universe
// define matrices for the 4 columns of the routing table
mask = [mask1; mask2; mask3; mask4; mask5];
network_address=[network_address1; network_address2; network_address3; network_address4; network_address5];
interface=[interface1; interface2; interface3 ; interface4; interface5];
next_hop=[next_hop1;next_hop2;next_hop3;next_hop4;next_hop5];
// define a matrix for the whole routing table
routing_table=[mask network_address next_hop interface];
// displaying the routing table
printf("\n ROUTING TABLE FOR ROUTER R1\n");
printf("\n!Mask|Network address| Next hop | Interface!\n"); // display the headings
disp(routing_table); // display the routing table matrix
|
34aec78745e5bcf5cc4ccf3ded9d07a0b5453e89 | e463a1b5938cb65a6a9470c4c93a3fb10b05812d | /Codigo controle adptativo(1).sce | d3a2d89ee7b69d5c7d0fba4d4e4ec1e98c0b1b07 | [] | no_license | HilkenM/Sistemas-de-Controle | a7158daf2c700dfd5f580514a2b2a68154bc4dfa | 29958758dcff56b53ec27ea6bf8a4031d9594cc1 | refs/heads/main | 2023-05-20T08:50:13.741512 | 2021-06-13T18:57:32 | 2021-06-13T18:57:32 | 312,902,288 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 878 | sce | Codigo controle adptativo(1).sce | clc
clear
k1 = 1.5
k2 = 1.5
Kp =2
ap =1
//Definição das condições iniciais
e = zeros(1,100000);
p = zeros(1,100000);
i = zeros(1,100000);
u = zeros(1,100000);
r = ones(1,100000);
y = zeros(1,100000);
//Passo
//Cada 10000 amostras correspondem a 1 segundo
h=0.0001;
//condições iniciais do sistema
y(1,1)=0.5
u(1,1) = p(1,1) + i(1,1)
//número de amostras
n = 100000;
//laço rodando toda a planta
k=2;
for k=2:n;
z = k -1
y(1,k) = Kp*u(1,z)*h - ap*y(1,z)*h + y(1,z);
e(1,k)=r(1,k)-y(1,k);
p(1,k) = k1*e(1,k);
i(1,k) = i(1,z) + k2*h*e(1,z);
u(1,k)=p(1,k)+i(1,k);
end
subplot(2,2,1), title("Saída")
plot(y)
subplot(2,2,2), title("Sinal de controle")
plot(u)
subplot(2,2,3), title("Sinal de referência")
plot(r)
subplot(2,2,4), title("Erro")
plot(e)
|
9123c2c1856397383828495346f2b767159a17fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1991/CH2/EX2.7/7.sce | eaee778a78e492d12bff20fd0878eb590393feb4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sce | 7.sce | clc
clear
//input
v=30 //velocity of speedboat
vw=40 //velocity of wind
//calculation
x=(30/40)//angle between original velocity of boat and resultant velocity
y=atand(x)//applying trigonometry
b=90+y//bearing of boat
//output
printf("the bearing of speedboat is %3.3f deg",b)
|
6f34a9d4c9b8c5e819d9bfdd09f18741766f1985 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH2/EX2.66/66.sci | e49770c176f0d6732ddbb8e831991c9fc7e4a820 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 383 | sci | 66.sci | clc;
clear all;
disp("Heat transfer rate")
disp("k=k1+(k2-k1)*(t-t1)/(t2-t1)")
disp("A=4*%pi*r^2")
disp("Q=-k*4*%pi*r^2*dt/dr")
disp("Q=-(k1+(k2-k1)*(t-t1)/(t2-t1))*4*%pi*r^2*dt/dr")
disp("Q*dr/r^2 =-(k1+(k2-k1)*(t-t1)/(t2-t1))*4*%pi*dt ")
disp("By integrating both sides in the limits r1 to r2 and t1 to t2, we get,")
disp("Q = 4*%pi*r1*r2*(k1+k2)*(t1-t2)/(2*(r2-r1))")
|
ae673429cd0241e5db40f97e0bd497391f3ffcb7 | 717ddeb7e700373742c617a95e25a2376565112c | /1514/CH18/EX18.3/18_3.sce | a39d6f2fc9f04c0923b841d6e8595689942f9a6c | [] | 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 | 303 | sce | 18_3.sce | //chapter 18
//example 18.3
//page 569
clear all;
clc ;
//given
E=30;
Vs=10;//supply voltage
Is=500;//ip current
Ih=1.5;//mA
Vf=1;//forward voltage drop
R1max=1000*(E-Vs)/Is;
R1min=(E-Vf)/Ih;
printf("\nmaximum and minimum values of R1 are %d kohm ,%.1f kohm respectively.",R1max,R1min);
|
2ad1299286a05d1d9b17c04b4324e539061ae17c | 449d555969bfd7befe906877abab098c6e63a0e8 | /662/CH7/EX7.7/ex7_7.sci | 2e6087b223f28f4d9f7dfe96645f6ddab5044004 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 236 | sci | ex7_7.sci | //Example 7.7
clc
//determine the larger of two integer quantities
function[] = maximum(x, y)
if (x >= y) then z=x; else z=y;
end
printf("\n\nMaximum value = %d", z);
return;
endfunction
|
aafab150436d2e5a1b226cdb5e35e7a9b2c46bda | 449d555969bfd7befe906877abab098c6e63a0e8 | /758/CH6/EX6.6/Ex_6_6.sce | 73dd97420dbf09155d12f4b75d57242907734c04 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 663 | sce | Ex_6_6.sce | //Example 6.6
clc;clear;close;
x=[1 1 0 1 1];xmin=-2;nx=xmin:length(x)+xmin-1;
h=[1 -2 -3 4];hmin=-3;nh=length(h)+hmin-1;
//Calculation of linear convolution
y=convol(x,h);
ymin=xmin+hmin;ny=ymin:length(y)+ymin-1;
disp(x,'First Sequence is x(n): ');
disp(h,'Second Sequence is h(n): ');
disp(y,'Output sequence is y(n): ');
subplot(3,1,1);
plot2d3(nx,x);
title('First Seqence x[n]:');ylabel('Amplitude-->');xlabel('n-->')
subplot(3,1,2);
plot2d3(nh,h);
title('Second Seqence h[n]:');ylabel('Amplitude-->');xlabel('n-->')
subplot(3,1,3);
plot2d3(ny,y);
title('Convolution Seqence y[n]=x[n]*h[n] :');ylabel('Amplitude-->');xlabel('n-->')
|
52af05563281b56b5d7b38e3ee0e98f499ad73c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3532/CH1/EX1.5.1/Ex1_4.sce | a9383af80f2805e5f94142203d09f0b219b65a89 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex1_4.sce | clc
clear
mprintf('Mechanical vibrations by G.K.Grover\n Example 1.5.1\n')
//given data
//x1=a*sin(W1*t)
//x2=b*sin(W2*t)
//calculations
a=1.90//amplitude of first wave in cm
b=2.00//amplitude of second wave in cm
W1=9.5//frequency of first wave in rad/sec
W2=10.0//frequency of second wave in rad/sec
xmax=b+a//maximum amplitude of motion in cms
xmin=abs(a-b)//minimum amplitude of motion in cms
f=abs(W1-W2)/(2*%pi)//beat frequency in Hz
t=1/f//time period of beat in sec
//output
mprintf('The maximum amplitude of motion is %4.4f cms\nThe minimum amplitude of motion is %4.4f cms\n The beat frequency is %4.4f Hz\n the time period is %4.4f sec',xmax,xmin,f,t)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.