blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50 values | src_encoding stringclasses 23 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 29 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
514ea494407d600aa039de15b1c687e617d35d69 | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH7/EX7.6/example7_6_TACC.sce | 70a4601a46743e8e711966ddd3328586e9bb3ea5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | example7_6_TACC.sce | //example 7.6
clear;
clc;
//section(1)
//Given:
//The energy levels are not degenerate
w=1;//no. of ways of distributing the molecules
k=1.381*10^-23;//Boltzmann constant[J/K]
//To find the entropy of the system
S1=k*log(w);//Entropy of system at 0K
printf("The Entropy of System at 0K and non-degenerate eng level is %f J/K/mol",S1);
//section(2)
//Here the energy levels are degenerate
n=2;
R=8.314;//Universal gas constant[J/K/mol]
//To find the entropy of the system
//S=klog(n^N)=>S=R*log(n)
S2=R*log(n);//Entropy of the system[J/K/mol]
printf("\nThe Entropy of system at 0K and degenerete eng level is %f J/K/mol",S2);
|
fd9f70ea160eaf6c2711850fbab279b1bf78fbe5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2309/CH1/EX1.a.3/A_Ex1_3.sce | a0ae9fbc683585b7aa0c8c77860af6a869a50cfe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 571 | sce | A_Ex1_3.sce | // Chapter 1 addl_Example 3
//==============================================================================
clc;
clear;
//input data
v = 1440; // velocity of ultrasonics in sea water in m/s
t = 0.33 // time taken b/w tx and rx in sec
//Calculations
d = v*t; // distance travelled by ultrasonics
D = d/2; // depth of submerged submarine in m
//output
mprintf('Depth of submerged submarine = %3.1f m',D);
//==============================================================================
|
47bf3dde17816cb4137d8807c15d6375009d79e6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1946/CH4/EX4.13.b/Ex_4_13_b.sce | e315a9f5ea383b637ed3517b92174469c78e1ac5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 250 | sce | Ex_4_13_b.sce | // Example 4.13.b:Despersion per unit length
clc;
clear;
close;
t=0.1*10^-6;//Time in second
L=10;//Distance in Km
dp=(t/L)*10^6;//Despersion per unit length in micro second per Km
disp(dp,"Despersion per unit length in micro second per Km")
|
a9d4d45f2c413fc30e9acd444b3da9dd3110dcb4 | 3b9a879e67cbab4a5a4a5081e2e9c38b3e27a8cc | /Área 2/Aula 7 - Interpolação polinomial/Matriz de Lagrange.sce | bb23a51bb7eddc611c65970212208a76b86b9fc2 | [
"MIT"
] | permissive | JPedroSilveira/numerical-calculus-with-scilab | 32e04e9b1234a0a82275f86aa2d6416198fa6c81 | 190bc816dfaa73ec2efe289c34baf21191944a53 | refs/heads/master | 2023-05-10T22:39:02.550321 | 2021-05-11T17:17:09 | 2021-05-11T17:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 878 | sce | Matriz de Lagrange.sce | //X = Ponto onde a função está sendo calculada
//x = Pontos
//k = Indíce
function y=L(X,x,k)
n = length(x)
y = 1
for j=1:n
if (k <> j) //Calcula o produto apenas quando j != k
y = y.*(X-x(j))/(x(k)-x(j))
end
end
endfunction
x = [1 3 4 6]'
y = sin(x)
//Calcula n pontos com o polinômio de interpolação
X=0.5:0.1:6.5
//P será um vetor com os resultados dos pontos
p = 0
for k=1:n
p = p + y(k)*L(X,x,k)
end
plot(X,p,'b.-')
//Caso queira calcular um ponto específico
L(1,x,2) //ponto do vetor x,todos os pontos,indice que está procurando
L(3,x,2) //ponto do vetor x,todos os pontos,indice que está procurando
L(4,x,2) //ponto do vetor x,todos os pontos,indice que está procurando
L(6,x,2) //ponto do vetor x,todos os pontos,indice que está procurando
//Neste caso todos devem ser zero, menos o 3 que está no indice 2
|
ebbcd720fe9ec8f33969aaea5c714d30fc85ab93 | 420d4bcc40d948804a4370652e50a00cbe639cfe | /Graphs API/trip-tests/travel03.tst | 9b9fb83e69569a6ef14ff2e3e5d5230acd6eeaea | [] | no_license | itsbriantruong/projects | 8cce3eba78a98e598e249f0adffcd9c3b9e3d5ab | 252ad31d3c74ef77e1cee43244e8f51ca47f9b63 | refs/heads/master | 2021-05-29T19:08:04.548321 | 2015-09-09T09:03:16 | 2015-09-09T09:03:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 84 | tst | travel03.tst | java -ea trip.Main -m trip-tests/travel03 <<EOF
Santa_Cruz, C4b, Berkeley, C4a
EOF
|
818ad2732ca4b75dacf06f39325e5ce3ddbe74e7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3808/CH3/EX3.1/Ex3_1.sce | 0b13d0d4293dde4a84010105415741ab8a230309 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 308 | sce | Ex3_1.sce | //Chapter 03: Algorithms
clc;
clear;
ar=[]
max_v=0
n=input('Enter the number of elements in the finite sequence:')
disp('Enter the elements one after the other!')
for i=1:n
ar(i)=input(' ')
end
for i=1:n
if ar(i)>max_v then
max_v=ar(i)
end
end
disp(max_v,'The largest element is:')
|
c7191423025624c054b1da3569ba40fcabe8ba07 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/impzlength/impzlength10.sce | 5a4c48e9f257158bf4435e2bec09ec69b0b4f325 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 284 | sce | impzlength10.sce | //too many i/p args are passed to the functions
clear;
clc;
exec('/home/debdeep/Desktop/TEST NOW!!/impzlength.sci');
b = [1 2 3 4 5 6];
a = [1 -0.9 2 3 4 4];
len = impzlength(b,a,1,1);
disp(len);
//output
//unstable system
//
// Nan
//
//matlab
// Too many i/p arguments
|
52b126124b5a3639a2eedcbef788d1feb41d5aa9 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.2/Unix/scilab-2.2/macros/metanet/strong_connex.sci | bb5f45630b1832639b884725d170832bb77bdd56 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 348 | sci | strong_connex.sci | function [nc,ncomp]=strong_connex(g)
[lhs,rhs]=argn(0)
if rhs<>1 then error(39), end
// g
check_graph(g)
// compute lp and ls
ma=g('edge_number')
n=g('node_number')
if g('directed') == 1 then
[lp,la,ls]=ta2lpd(g('tail'),g('head'),n+1,n)
else
[lp,la,ls]=ta2lpu(g('tail'),g('head'),n+1,n,2*ma)
end
// compute connexity
[nc,ncomp]=compfc(lp,ls,n)
|
d5c3b316bc6533b0cfb25f8fb4553e7e27446dd6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2489/CH14/EX14.2/14_2.sce | 673132f3166c6300d302f154462927f648955d8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 156 | sce | 14_2.sce | clc
//Intitalisation of variables
clear
emf= 1.094 //volt
e1= 0.334 //volt
//CALCULATIONS
Ezn= (emf-e1)
//RESULTS
printf ('Ezn = %.3f volt ',Ezn)
|
9bfe92bb9b285e0d8068dd6b1d867f1c7ae1b790 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1670/CH11/EX11.1/11_1.sce | 3a8c02e2b0d46f793331c6cac1b12ec9409e8a4a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 712 | sce | 11_1.sce | //Example 11.1
//Gauss-Seidel Method
//Page no. 366
clc;clear;close;
U=[50,100,100,50;0,0,0,0;0,0,0,0;0,0,0,0]
A=[4,0,0,-1;0,4,-1,0;0,-1,4,0;-1,0,0,4] //equation matrix
B=[150;150;0;0] //solution matrix
X=inv(A)*B
for i=1:4
printf('\n U%i = %g\n',i,X(i))
end
//Jacobi method
for k=1:2
printf('\n')
p=0;
for i=1:2
for j=1:2
U(i+1,j+1)=X(i+p)
end
p=2;
end
p=3;
for i=2:3
for j=2:3
X(i+j-p)=(U(i,j-1)+U(i,j+1)+U(i-1,j)+U(i+1,j))/4
end
p=2;
end
for i=1:4
printf('\n U%i(%i) = %g\n',i,k,X(i))
end
printf('\n')
end
printf('\nHence the solution is : \n\n')
for i=1:4
printf(' U%i = %g, ',i,X(i))
end |
e46487f1f2e337bf33e69e05d5195f315a326161 | 494b677053e1199325a80808377463794e1003e5 | /experiments/ripper/results/Ignore-MV.Ripper-C.vehicle/result7s0.tst | fc2ccffe442fe1b53167df7e3cbcccb1869acd91 | [] | no_license | kylecblyth/IIS-Project | 92fb0770addced8022817470f974bf5191bfe05d | abf66fd98d9b6c7c3a0fbc254ef4026641338489 | refs/heads/master | 2020-06-12T19:41:02.430510 | 2016-12-07T10:35:31 | 2016-12-07T10:35:31 | 75,764,815 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,868 | tst | result7s0.tst | @relation vehicle
@attribute COMPACTNESS integer[73,119]
@attribute CIRCULARITY integer[33,59]
@attribute DISTANCECIRCULARITY integer[40,112]
@attribute RADIUSRATIO integer[104,333]
@attribute PRAXISASPECTRATIO integer[47,138]
@attribute MAXLENGTHASPECTRATIO integer[2,55]
@attribute SCATTERRATIO integer[112,265]
@attribute ELONGATEDNESS integer[26,61]
@attribute PRAXISRECTANGULAR integer[17,29]
@attribute LENGTHRECTANGULAR integer[118,188]
@attribute MAJORVARIANCE integer[130,320]
@attribute MINORVARIANCE integer[184,1018]
@attribute GYRATIONRADIUS integer[109,268]
@attribute MAJORSKEWNESS integer[59,135]
@attribute MINORSKEWNESS integer[0,22]
@attribute MINORKURTOSIS integer[0,41]
@attribute MAJORKURTOSIS integer[176,206]
@attribute HOLLOWSRATIO integer[181,211]
@attribute class{van,saab,bus,opel}
@inputs COMPACTNESS,CIRCULARITY,DISTANCECIRCULARITY,RADIUSRATIO,PRAXISASPECTRATIO,MAXLENGTHASPECTRATIO,SCATTERRATIO,ELONGATEDNESS,PRAXISRECTANGULAR,LENGTHRECTANGULAR,MAJORVARIANCE,MINORVARIANCE,GYRATIONRADIUS,MAJORSKEWNESS,MINORSKEWNESS,MINORKURTOSIS,MAJORKURTOSIS,HOLLOWSRATIO
@outputs class
@data
van van
bus bus
van van
van opel
saab saab
van van
van van
bus bus
saab saab
bus bus
bus bus
bus bus
van van
saab van
saab opel
bus bus
opel saab
saab opel
saab opel
van van
bus bus
saab opel
van opel
van van
bus bus
van van
opel opel
bus bus
van van
saab saab
bus bus
bus opel
bus opel
van van
opel opel
saab saab
saab opel
saab opel
saab opel
opel opel
opel opel
bus bus
bus bus
bus bus
opel opel
saab opel
saab opel
opel opel
van van
opel opel
opel saab
saab opel
van van
van van
bus bus
van opel
bus van
saab opel
bus bus
opel opel
opel opel
opel opel
opel opel
saab opel
saab van
bus bus
opel opel
opel saab
opel opel
bus bus
saab opel
van van
opel bus
van van
opel opel
van van
bus bus
saab opel
saab opel
bus bus
van van
opel opel
opel saab
opel saab
|
cd9a602289f3a7b9c39730f00fe65dc1ee85e097 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1055/CH9/EX9.3/ch9_3.sce | bc936363a4e1e06acefed9d61fb0455a76f71892 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ch9_3.sce | // To determine the maximum safe working voltage
clear
clc;
r=.5;//radius of conductor(cm)
g1max=34;
er=5;
r1=1;
R=7/2;//external dia(cm)
g2max=(r*g1max)/(er*r1);
V=((r*g1max*log(r1/r))+(r1*g2max*log(R/r1)));
V=V/(sqrt(2));
mprintf("Maximum safe working volltage ,V =%.2f kV r.m.s\n",V);
|
f7c68aa32e17ca1fe8c7163c90052c4e0f0c32f9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH14/EX14.27/example14_27.sce | e611ba0a0d617adf0d98f09310bdcc452c48e48b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 800 | sce | example14_27.sce |
//example 14.27
//design irrigation channel by Kennedy method
clc;funcprot(0);
//given
Q=50; //discharge
r=2.5; //B/D ratio
m=1.1; //critical velocity ratio
N=0.025; //rogosity coefficient
s=0.5; //side slope of channel
//using the equation of Vo and Q=A*V;we get
D=(Q/1.815)^(1/2.64);
B=r*D;
R=(B*D+0.5*D^2)/(B+2.236*D);
Vo=0.55*m*D^0.64;
//applying kutters formula; V=C(RS)^0.5
//where C=(23+1/N+0.00155/S)*(R*S)^0.5/(1+(23+0.00155/S)*N/R^0.5);
//assuming S^0.5=y
y=poly([-3.737D-7,2.46D-5,-0.0199,1],'x','c');
roots(y);
//taking real values of y
S=0.0196171 ^2;
B=round(B*100)/100;
D=round(D*100)/100;
mprintf("Width of channel section=%f m.",B);
mprintf("\nDepth of channel section=%f m.",D);
mprintf("\nBed slope=%f.",S);
|
85243eb72804408042d2267de2e424cf546192af | 449d555969bfd7befe906877abab098c6e63a0e8 | /2621/CH3/EX3.5/Ex3_5.sce | 3451f05ea526331735456fbd1de90d6166f3cdf9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 674 | sce | Ex3_5.sce | // Example 3.5
clc;
clear;
close;
// Given data
format('v',8);
Rin= 2*10^6;// in Ω
Rout= 75;// in Ω
f0= 5;// in Hz
R1= 330;//in Ω
Rf= 3.3*10^3;// in Ω
A= 2*10^5;//unit less
B= R1/(R1+Rf);// feedback fraction
AB= A*B;// feedback factor
Af= -Rf/R1;// colsed-loop voltage gain
Rin_f= R1;// input resistance with feedback in Ω
Rout_f=Rout/(1+AB);// output resistance with feedback in Ω
f_f= f0*(1+AB);// closed-loop bandwidth in Hz
f_f= f_f*10^-3;// in kHz
disp(Af,"The closed-loop voltage gain is : ");
disp(Rin_f,"The input resistance in Ω is : ");
disp(Rout_f,"The output resistance in Ω is : ");
disp(f_f,"The bandwidth in kHz is : ");
|
1d117206b7533160bca11c1fc7dc4efc48c2d02a | 449d555969bfd7befe906877abab098c6e63a0e8 | /405/CH10/EX10.7/10_7.sce | 66503453b027d07e507e55aaea4d46ec2074a496 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,312 | sce | 10_7.sce | clear;
clc;
printf("\t\t\tExample Number 10.7\n\n\n");
// cross flow exchanger with one fluid mixed
// Example 10.7 (page no.-537)
// solution
m_dot = 5.2;// [kg/s] mass flow rate
T1 = 130;// [degree celsius] temperature of entering steam
T2 = 110;// [degree celsius] temperature of leaving steam
t1 = 15;// [degree celsius] temperature of entering oil
t2 = 85;// [degree celsius] temperature of leaving oil
c_oil = 1900;// [J/kg degree celsius] heat capacity of oil
c_steam = 1860;// [J/kg degree celsius] heat capacity of steam
U = 275;// [W/square meter degree celsius] overall heat transfer coefficient
//the total heat transfer may be obtained from an energy balance on the steam
q = m_dot*c_steam*(T1-T2);// [W]
// we can solve for the area from equation (10-13). the value of dT_m is calculated as if the exchanger were counterflow double pipe,thus
dT_m = ((T1-t2)-(T2-t1))/log((T1-t2)/(T2-t1));// [degree celsius]
// t1,t2 is representing the unmixed fluid(oil) and T1,T2 is representing the mixed fluid(steam) so that:
// we calculate
R = (T1-T2)/(t2-t1);
P = (t2-t1)/(T1-t1);
// consulting figure 10-11(page no.-534) we find
F = 0.97;
// so the area is calculated from
A = q/(U*F*dT_m);// [square meter]
printf("surface area of heat exchanger is %f square meter",A);
|
3ed1f5d8420a5760bebb56ee91710ab1ac6366ff | eec3a6e2cd91307fd7a55b7fc83bb86b35f86a6c | /stlfiles/demos/mug_stl.sce | 1e5737daeb38c1354c322fc11790991477010d4f | [] | no_license | Matthieu-71/PowerSubsystemSimulation | d1a5171ff763ca42db9d701f893d3ab257a1b882 | cdcff61d4a11509f5d9023fb295af6b8092a3c66 | refs/heads/master | 2020-03-16T23:33:28.836945 | 2018-05-24T00:10:57 | 2018-05-24T00:10:57 | 133,082,402 | 2 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 302 | sce | mug_stl.sce | clear; clc;
stlpath = get_absolute_file_path("mug_stl.sce")
exec("C:\Users\matth\Documents\SciLab_CelestLab_work\stlfiles\etc\stlfiles.start");
t = stlread(fullfile(stlpath, "Mug.stl"), "binary");
figure
tcolor = 2*ones(1, size(t.x,"c"))
plot3d(t.x,t.y,list(t.z,tcolor));
a = gca()
a.isoview = "on" |
5ae43a6b2619102a362ffdbde0ab421906d46d36 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3811/CH3/EX3.13/Ex3_13.sce | 0d0d57072d76c9bf0080744ca054a457aeb19058 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 604 | sce | Ex3_13.sce | //Book name: Fundamentals of electrical drives by Mohamad A. El- Sharkawi
//chapter 3
//example 3.13
//edition 1
//publisher and place:Nelson Engineering
clc;
clear;
d=.25; //duty ratio
Vdc=150; //source voltage in volts
Vab=((2*d)/3)^(1/2)*Vdc; //rms voltage applied to the motor winding with FWM
disp(Vab,'The rms voltage applied to the motor winding with FWM in volts is:')
Vab1=(Vab/d^(1/2)); //rms voltage applied to the motor winding without FWM
disp(Vab1,'The rms voltage applied to the motor winding without FWM in volts is')
|
80d2674084e2c429b8b49dc35cea96dcda0bedd8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH8/EX8.1/c8_1.sce | 3420f36bafac00d03a4c64cf9643a98452efed69 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 3,733 | sce | c8_1.sce | //(8.1)...Steam is the working fluid in an ideal Rankine cycle. Saturated vapor enters the turbine at 8.0 MPa and saturated liquid exits the condenser at a pressure of 0.008 MPa. The net power output of the cycle is 100 MW. Determine for the cycle (a) the thermal efficiency, (b) the back work ratio, (c) the mass flow rate of the steam, in kg/h, (d) the rate of heat transfer,Qindot , into the working fluid as it passes through the boiler, in MW, (e) the rate of heat transfer,Qoutdot from the condensing steam as it passes through the condenser, in MW, (f) the mass flow rate of the condenser cooling water, in kg/ h, if cooling water enters the condenser at 15C and exits at 35C.
//solution
//variable initialization
p1 = 8 //pressure of saturated vapor entering the turbine in MPa
p3 = .008 //pressure of saturated liquid exiting the condenser in MPa
Wcycledot = 100 //the net power output of the cycle in MW
//analysis
//from table A-3
h1 = 2758.0 //in kj/kg
s1 = 5.7432 //in kj/kg.k
s2 = s1
sf = .5926 //in kj/kg.k
sg = 8.2287 //in kj/kg.k
hf = 173.88 //in kj/kg
hfg = 2403.1 //in kj/kg
v3 = 1.0084e-3 //in m^3/kg
x2 = (s2-sf)/(sg-sf) //quality at state 2
h2 = hf + x2*hfg
//State 3 is saturated liquid at 0.008 MPa, so
h3 = 173.88 //in kj/kg
p4 = p1
h4 = h3 + v3*(p4-p3)*10^6*10^-3 //in kj/kg
//part(a)
//Mass and energy rate balances for control volumes around the turbine and pump give, respectively
wtdot = h1 - h2
wpdot = h4-h3
//The rate of heat transfer to the working fluid as it passes through the boiler is determined using mass and energy rate balances as
qindot = h1-h4
eta = (wtdot-wpdot)/qindot //thermal efficiency)
printf('the thermal efficiency for the cycle is: %f',eta)
//part(b)
bwr = wpdot/wtdot //back work ratio
printf('\n\nthe back work ratio is: %e',bwr)
//part(c)
mdot = (Wcycledot*10^3*3600)/((h1-h2)-(h4-h3)) //mass flow rate in kg/h
printf('\n\nthe mass flow rate of the steam in kg/h is: %e',mdot)
//part(d)
Qindot = mdot*qindot/(3600*10^3) //in MW
printf('\n\nthe rate of heat transfer,Qindot , into the working fluid as it passes through the boiler, in MW is: %f',Qindot)
//part(e)
Qoutdot = mdot*(h2-h3)/(3600*10^3) //in MW
printf('\n\nthe rate of heat transfer,Qoutdot from the condensing steam as it passes through the condenser, in MW is: %f',Qoutdot)
//part(f)
//from table A-2
hcwout = 146.68 //in kj/kg
hcwin = 62.99 //in kj/kg
mcwdot = (Qoutdot*10^3*3600)/(hcwout-hcwin) //in kg/h
printf('\n\nthe mass flow rate of the condenser cooling water, in kg/ h is: %e',mcwdot)
|
c21e782ed6674156d14865d9262db8d83ac12ddd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2321/CH12/EX12.9.3/EX12_9_3.sce | fb2f353386b9da7891ccddddfdc71aeedb148c38 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 508 | sce | EX12_9_3.sce | //Example No. 12.9.3
clc;
clear;
close;
format('v',6);
D=6;//meter(Diameter)
f=10;//GHz(Frequency)
c=3*10^8;//m/s////speed of light
lambda=c/(f*10^9);//m(Wavelength)
GP=6*(D/lambda)^2;//unitless(Power gain)
GP_dB=10*log10(GP);//dB(Power gain)
disp(GP_dB,"Gain in dB : ");
FNBW=140*lambda/D;//degree(FNBW)
disp(FNBW,"FNBW in degree : ");
HPBW=58*lambda/D;//degree(HPBW)
disp(HPBW,"HPBW in degree : ");
K=0.65;//constant
Ao=K*%pi/4*D^2;//m²(Capture area)
disp(Ao,"Capture area in m² : ");
|
add6ec03344d84ca90d0b26ed561441cce88423e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH5/EX5.2/ex5_2.sce | b60769f5e8b82843238fd6596c013e036527f688 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 617 | sce | ex5_2.sce | // Exa 5.2
clc;
clear;
close;
format('v',6)
// Given data
R_Ph = 16;// in ohm
X_L = 12;// in ohm
V_L = 400;// in V
disp(V_L,"The line voltage in V is");
f = 50;// in Hz
V_Ph = V_L/sqrt(3);// in V
disp(V_Ph,"The phase voltage in V is");
Z_Ph = R_Ph + %i*X_L;// in ohm
I_Ph= V_Ph/Z_Ph;// in A
I_L= I_Ph;// in A
phi= atand(imag(I_L),real(I_L));
cos_phi= R_Ph/abs(Z_Ph);
disp(abs(I_L),"The line current in A is : ")
disp(abs(I_Ph),"The line current in A is : ")
disp("Power factor is : "+string(cos_phi)+" lagging")
P= sqrt(3)*V_L*abs(I_L)*cos_phi;// in W
disp(P,"The power absorbed in W is : ")
|
1aa16cd9ad4d130ad6feca17e0ced84ea9338035 | f5da6dd873d514a17c39d7b2b0121919f8433b5b | /Exercise_01.sce | d42ba9b1e277a3b069c6de0d595b5299bb006c07 | [] | no_license | Gotcha17/CompFin_Sheet1 | d7a0a368aa20d7e27d8b5bd03d0ce59171190868 | 92c26627ebd43cb7f37096604cfc4f850f435d3e | refs/heads/master | 2021-01-02T23:01:13.322764 | 2017-08-15T22:20:03 | 2017-08-15T22:20:03 | 99,440,307 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,033 | sce | Exercise_01.sce | clc; clear; //clears all previously stored variables
function Vn = capital(V0, r, n ,c)
if n == 1 then //this is just to check whether there are one or more periods
y=' year'; //so at the function can return a nice solution
else
y=' years';
end
if r <= 0 then //it is controlled for negative rate, and a hint is displayed
disp("Interest rate should be greater then 0%");
Vn=""; //it is needed to assign some value to funtion output
elseif V0 <= 0 then //same as above, only for initial wealth
disp("Initial Value should be greater then 0!");
Vn="";
elseif c == 0 then //since two different ways to calculate are provided, a differention is made between what is the value of c. Of "c" equals 0, then it is calculated with simple rate
Vn = V0*(1+r)^n; //actual calculation of the capital after n year(s)
disp("After "+string(n)+string(y)+" at a rate of "+string(r*100)+"%, capital will be "+string(Vn)+" (discrete calculation)"); //result is displayed
elseif c == 1 then //if "c" eguals 1 it is calculated with continuous rate
Vn = V0*exp(r*n); //actual calculation of the capital after n year(s)
disp("After "+string(n)+string(y)+" at a rate of "+string(r*100)+"%, capital will be "+string(Vn)+" (continuous calculation)"); //result is displayed
else
disp("Please choose calculation method properly: c=0 for discrete and c=1 for continuous calculation!") //if "c" is not specified or specified incorrectly, then there is a message, that explains how "c" can be chosen, respectively to the calculation method
Vn=""; //as above, there needs to be assigned some value to the function resulte, so Scilab does not return an error message.
end
endfunction
V0=1000; r=0.05; n=10; c=0; //prespecified values are assigned to variables
Vn=capital(V0, r, n, c); //function "capital" is called with prespecified values for the variables from above.
|
13edf3c53a77e20e85be12adc80b80faaff0c3f1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1943/CH4/EX4.11/Ex4_11.sce | 0004d7fb9e0e0dd42f352f8d197a6c6d82940930 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,466 | sce | Ex4_11.sce |
clc
clear
//Input data
CO2=13.2;//The volume of carbondioxide present in the partial analysis of dry flue gas in %
O2=3.2;//The volume of oxygen present in the partial analysis of dry flue gas in %
C=88;//The mass of carbon present in the coal according to coal analysis on mass basis in %
H=4.4;//The mass of hydrogen present in the coal according to coal analysis on mass basis in %
A=7.6;//The mass of ash present in the coal according to coal analysis on mass basis in %
M=0;//Moisture present in the fuel was nil
Mc=12;//Molecular weight of the carbon
Mh=2;//Molecular weight of the hydrogen
Mo=32;//Molecular weight of the oxygen
Mho=18;//Molecular weight of water
p=101.325;//Atmospheric pressure in kPa
//Calculations
c=C/Mc;//Equating coefficients of the carbon from the equation
g=H/Mh;//Equating coefficients of the hydrogen from the equation
x=(CO2/100)/(O2/100);//From dry fuel gas analysis (dfg)
d=[[(CO2/100)*(47.5)]-7.333]/[[(CO2/100)*(3.032)]-1];//Coefficient of the carbonmonoxide in the equations product side
b=c-d;//Coefficient of the carbondioxide in the equation product side
a=10.21-(0.742*d);//Coefficient of the oxygen in the reactant side of the equation
e=b/x;//Coefficient of the oxygen in the product side of the equation
f=3.76*a;//Equating coefficients of the nitrogen from the equation
ma=(a*Mo)/0.232;//Mass of air supplied for 100 kg coal in kg
ma1=ma/100;//Mass of air supplied per kg coal in kg
T=b+d+e+f;//Total number of moles of dry flue gas (dfg)
CO21=(b/T)*100;//Carbondioxide by volume in percentage
O21=(e/T)*100;//Oxygen by volume in percentage
CO1=(d/T)*100;//Carbonmonoxide by volume in percentage
N21=(f/T)*100;//Nitrogen by volume in percentage
Mwv=(g*Mho)/100;//Mass of watervapour formed per kg coal in kg
Mf=(g)/(b+d+e+f+g);//Mole fraction of water vapour in flue gas
P=Mf*p;//Partial pressure of water vapour in kPa
D=32.9;//Dew point temperature from steam tables in degree centigrade
//Output
printf('(a)The complete volumetric composition of the dry flue gas is \n Carbondioxide by volume = %3.2f percentage \n Oxygen by volume = %3.2f percentage \n Carbonmonoxide by volume = %3.2f percentage \n Nitrogen by volume = %3.2f percentage \n (b) The actual amount of air supplied per kg coal = %3.2f kg \n (c) Mass of water vapour formed per kg coal = %3.2f kg \n (d) The dew point temperature of the flue gas = %3.2f degree centigrade ',CO21,O21,CO1,N21,ma1,Mwv,D)
|
0d34eb9986d24c6f305f1f1e73cb194e5f947d19 | 573df9bfca39973c9bf2fa36f6e5af2643d7771e | /scilab/lib/exibe_vetor.sci | 2ed3992b73860490d5371e9efe4977f4fa1f39d1 | [] | no_license | DCC-CN/152cn | ef92c691edabe211b1a552dbb963f9fd9ceec94a | 4fe0b02f961f37935a1335b5eac22d81400fa609 | refs/heads/master | 2016-08-13T01:34:17.966430 | 2015-04-07T07:31:58 | 2015-04-07T07:31:58 | 44,502,526 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 193 | sci | exibe_vetor.sci | function exibe_vetor(titulo, formato, vetor)
//
n = length(vetor);
mprintf('%s: ', titulo)
for i = 1:n
mprintf(formato, vetor(i))
end
mprintf(' \n')
endfunction
|
9654984b1aef8d09be3d96d9bf9ad9a7b6e819e1 | b28d322423f92a98c5f668a83528993b114fd3f3 | /macros/cbcmatrixintlinprog.sci | b37f360206b4aaebee8dcc7efc5bea017f9abc75 | [] | no_license | FOSSEE/FOSSEE-Optim-toolbox-development | 6757ca00f521032feb7177531a5143b021ea2fad | c43f04d302bfe9c4b7d11f6af1712dda1c8b38c2 | refs/heads/master | 2020-08-05T13:24:20.604620 | 2016-10-07T11:51:01 | 2016-10-07T11:51:01 | 67,248,229 | 0 | 2 | null | 2016-10-07T11:51:02 | 2016-09-02T19:09:26 | HTML | UTF-8 | Scilab | false | false | 9,682 | sci | cbcmatrixintlinprog.sci | // Copyright (C) 2016 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author: Pranav Deshpande and Akshay Miterani
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function [xopt,fopt,status,output] = cbcmatrixintlinprog (varargin)
// Sci file wrapper for the matrix_cbcintlinprog.cpp file
// To check the number of input and output argument
[lhs , rhs] = argn();
// To check the number of argument given by user
if ( rhs < 4 | rhs == 5 | rhs == 7 | rhs > 9 ) then
errmsg = msprintf(gettext("%s: Unexpected number of input arguments : %d provided while should be in the set [4 6 8 9]"), "cbcintlinprog", rhs);
error(errmsg);
end
c = [];
intcon = [];
A = [];
b = [];
Aeq = [];
beq = [];
lb = [];
ub = [];
options = list();
c = varargin(1)
intcon = varargin(2)
A = varargin(3)
b = varargin(4)
if(size(c,2) == 0) then
errmsg = msprintf(gettext("%s: Cannot determine the number of variables because input objective coefficients is empty"),"cbcintlinprog");
error(errmsg);
end
if (size(c,2)~=1) then
errmsg = msprintf(gettext("%s: Objective Coefficients should be a column matrix"), "cbcintlinprog");
error(errmsg);
end
nbVar = size(c,1);
if ( rhs<5 ) then
Aeq = []
beq = []
else
Aeq = varargin(5);
beq = varargin(6);
end
if ( rhs<7 ) then
lb = repmat(-%inf,1,nbVar);
ub = repmat(%inf,1,nbVar);
else
lb = varargin(7);
ub = varargin(8);
end
if (rhs<9|size(varargin(9))==0) then
options = list();
else
options = varargin(9);
end
//Check type of variables
Checktype("cbcintlinprog", c, "c", 1, "constant")
Checktype("cbcintlinprog", intcon, "intcon", 2, "constant")
Checktype("cbcintlinprog", A, "A", 3, "constant")
Checktype("cbcintlinprog", b, "b", 4, "constant")
Checktype("cbcintlinprog", Aeq, "Aeq", 5, "constant")
Checktype("cbcintlinprog", beq, "beq", 6, "constant")
Checktype("cbcintlinprog", lb, "lb", 7, "constant")
Checktype("cbcintlinprog", ub, "ub", 8, "constant")
// Check if the user gives empty matrix
if (size(lb,2)==0) then
lb = repmat(-%inf,nbVar,1);
end
if (size(intcon,2)==0) then
intcon = [];
end
if (size(ub,2)==0) then
ub = repmat(%inf,nbVar,1);
end
// Calculating the size of equality and inequality constraints
nbConInEq = size(A,1);
nbConEq = size(Aeq,1);
// Check if the user gives row vector
// and Changing it to a column matrix
if (size(lb,2)== [nbVar]) then
lb = lb';
end
if (size(ub,2)== [nbVar]) then
ub = ub';
end
if (size(b,2)== [nbConInEq]) then
b = b';
end
if (size(beq,2)== [nbConEq]) then
beq = beq';
end
for i=1:size(intcon,2)
if(intcon(i)>nbVar) then
errmsg = msprintf(gettext("%s: The values inside intcon should be less than the number of variables"), "cbcintlinprog");
error(errmsg);
end
if (intcon(i)<0) then
errmsg = msprintf(gettext("%s: The values inside intcon should be greater than 0 "), "cbcintlinprog");
error(errmsg);
end
if(modulo(intcon(i),1)) then
errmsg = msprintf(gettext("%s: The values inside intcon should be an integer "), "cbcintlinprog");
error(errmsg);
end
end
//Check the size of inequality constraint which should equal to the number of inequality constraints
if ( size(A,2) ~= nbVar & size(A,2) ~= 0) then
errmsg = msprintf(gettext("%s: The size of inequality constraint is not equal to the number of variables"), "cbcintlinprog");
error(errmsg);
end
//Check the size of lower bound of inequality constraint which should equal to the number of constraints
if ( size(b,1) ~= size(A,1)) then
errmsg = msprintf(gettext("%s: The Lower Bound of inequality constraint is not equal to the number of constraint"), "cbcintlinprog");
error(errmsg);
end
//Check the size of equality constraint which should equal to the number of inequality constraints
if ( size(Aeq,2) ~= nbVar & size(Aeq,2) ~= 0) then
errmsg = msprintf(gettext("%s: The size of equality constraint is not equal to the number of variables"), "cbcintlinprog");
error(errmsg);
end
//Check the size of upper bound of equality constraint which should equal to the number of constraints
if ( size(beq,1) ~= size(Aeq,1)) then
errmsg = msprintf(gettext("%s: The equality constraint upper bound is not equal to the number of equality constraint"), "cbcintlinprog");
error(errmsg);
end
//Check the size of Lower Bound which should equal to the number of variables
if ( size(lb,1) ~= nbVar) then
errmsg = msprintf(gettext("%s: The Lower Bound is not equal to the number of variables"), "cbcintlinprog");
error(errmsg);
end
//Check the size of Upper Bound which should equal to the number of variables
if ( size(ub,1) ~= nbVar) then
errmsg = msprintf(gettext("%s: The Upper Bound is not equal to the number of variables"), "cbcintlinprog");
error(errmsg);
end
if (type(options) ~= 15) then
errmsg = msprintf(gettext("%s: Options should be a list "), "cbcintlinprog");
error(errmsg);
end
if (modulo(size(options),2)) then
errmsg = msprintf(gettext("%s: Size of parameters should be even"), "cbcintlinprog");
error(errmsg);
end
//Check if the user gives a matrix instead of a vector
if (((size(intcon,1)~=1)& (size(intcon,2)~=1))&(size(intcon,2)~=0)) then
errmsg = msprintf(gettext("%s: intcon should be a vector"), "cbcintlinprog");
error(errmsg);
end
if (size(lb,1)~=1)& (size(lb,2)~=1) then
errmsg = msprintf(gettext("%s: Lower Bound should be a vector"), "cbcintlinprog");
error(errmsg);
end
if (size(ub,1)~=1)& (size(ub,2)~=1) then
errmsg = msprintf(gettext("%s: Upper Bound should be a vector"), "cbcintlinprog");
error(errmsg);
end
if (nbConInEq) then
if ((size(b,1)~=1)& (size(b,2)~=1)) then
errmsg = msprintf(gettext("%s: Constraint Lower Bound should be a vector"), "cbcintlinprog");
error(errmsg);
end
end
if (nbConEq) then
if (size(beq,1)~=1)& (size(beq,2)~=1) then
errmsg = msprintf(gettext("%s: Constraint Upper Bound should be a vector"), "cbcintlinprog");
error(errmsg);
end
end
//Changing the inputs in symphony's format
conMatrix = [A;Aeq]
nbCon = size(conMatrix,1);
conLB = [repmat(-%inf,size(A,1),1);beq];
conUB = [b;beq] ;
isInt = repmat(%f,1,nbVar);
// Changing intcon into column vector
intcon = intcon(:);
for i=1:size(intcon,1)
isInt(intcon(i)) = %t
end
objSense = 1.0;
//Changing into row vector
lb = lb';
ub = ub';
c = c';
//Pusing options as required to a double array
optval = [];
if length(options) == 0 then
optval = [0 0 0 0];
else
optval = [0 0 0 0];
for i=1:2:length(options)
select options(i)
case 'IntegerTolerance' then
optval(1) = options(i+1);
case 'MaxNodes' then
optval(2) = options(i+1);
case 'MaxTime' then
optval(3) = options(i+1);
case 'AllowableGap' then
optval(4) = options(i+1);
else
error(999, 'Unknown string argument passed.');
end
end
end
[xopt,fopt,status,nodes,nfpoints,L,U,niter] = sci_matrix_intlinprog(nbVar,nbCon,c,intcon,conMatrix,conLB,conUB,lb,ub,objSense,optval);
//Debugging Prints
//disp(c);disp(intcon);disp(conMatrix);disp(conLB);disp(conUB);disp(lb);disp(ub);disp(Aeq);disp(beq);disp(xopt);
//disp(L);disp(U);
//disp(options);
output = struct("relativegap" , [],..
"absolutegap" , [],..
"numnodes" , [],..
"numfeaspoints" , [],..
"numiterations" , [],..
"constrviolation" , [],..
"message" , '');
output.numnodes=[nodes];
output.numfeaspoints=[nfpoints];
output.numiterations=[niter];
output.relativegap=(U-L)/(abs(U)+1);
output.absolutegap=(U-L);
output.constrviolation = max([0;norm(Aeq*xopt-beq, 'inf');(lb'-xopt);(xopt-ub');(A*xopt-b)]);
select status
case 0 then
output.message="Optimal Solution"
case 1 then
output.message="Primal Infeasible"
case 2 then
output.message="Solution Limit is reached"
case 3 then
output.message="Node Limit is reached"
case 4 then
output.message="Numerical Difficulties"
case 5 then
output.message="Time Limit Reached"
case 6 then
output.message="Continuous Solution Unbounded"
case 7 then
output.message="Dual Infeasible"
else
output.message="Invalid status returned. Notify the Toolbox authors"
break;
end
endfunction
|
625af3e3c1b605b444287708d9acc4c684b40432 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH18/EX18.5/Ex18_5.sce | 90f626e109b54044c5637195b8edea2f2765c6cc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 541 | sce | Ex18_5.sce | //Example 18.5
m=4*10^-15;//Mass of gasoline drop (kg)
g=9.80;//Acceleration due to gravity (m/s^2)
w=m*g;//Weight of the drop (N)
printf('a.Weight of the drop = %0.2e N',w)
q=3.20*10^-19;//Charge (C)
E=3*10^5;//Electric field strength (N/C)
F=q*E;//Electric force (N)
printf('\nb.Electric force on the drop = %0.2e N',F)
F_net=F-w;//Net Force (N)
a=F_net/m;//Acceleration (m/s^2)
printf('\nc.Acceleration of the drop = %0.1f m/s^2',a)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|
5f723ffd7e5bcfe7851df2cc661ceccc82afc733 | f4ae1148ef6ceeae3975451880fa3dd2905b2943 | /source c code/distortion/distortion.sce | c1c822cfe8c6012b4b7669a631a2395b00743d95 | [] | no_license | JerryYanisLuo/Feature-vector-Generation-and-Analysis-for-Speech-Recognition-based-on-VQ | de56f18602b3c300d043ab871b34e82e892f6d61 | 1d38f1dd5180d85612b0a48d4862d7f4e955980a | refs/heads/master | 2022-12-04T12:02:17.124574 | 2020-08-26T22:22:33 | 2020-08-26T22:22:33 | 290,614,362 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 140 | sce | distortion.sce | x = read_csv("E:\College\Courseware\Bachelor Thesis\programme\distortion\distortion.txt");
x = evstr(x);
plot(x,"--k");
plot(x,"kx");
|
b636614f1f4d5da355630e31012f6ace3bdccaae | 449d555969bfd7befe906877abab098c6e63a0e8 | /3872/CH8/EX8.3/EX8_3.sce | 89a919222ac0b6dc3d86858df13d4452619f7f8c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,440 | sce | EX8_3.sce | //Book - Power System: Analysis & Design 5th Edition
//Authors - J. Duncan Glover, Mulukutla S. Sarma, and Thomas J. Overbye
//Chapter - 8 ; Example 8.3
//Scilab Version - 6.0.0 ; OS - Windows
clc;
clear;
Ip = [10; 0; 10*(cos(120*%pi/180)+%i*sin(120*%pi/180))];; //given column vector of phase current in A
function [Ip1]=phaseshift(x1,x2) //Function for shifting the phase
[r theta]=polar(x1);
Ip1=r*(cos(theta+x2*%pi/180)+%i*sin(theta+x2*%pi/180));
endfunction
I0 = (Ip(1,1)+Ip(2,1)+Ip(3,1))/3; //zero sequence current in A
I1 = 1*(Ip(1,1)+(Ip(2,1)+phaseshift(Ip(3,1),240)))/3; //positive sequence current in A
I2 = (Ip(1,1)+Ip(2,1)+phaseshift(Ip(3,1),120))/3; //negative sequence current in A
In = (Ip(1,1)+Ip(2,1)+Ip(3,1)); //neutral current in A
printf('\nThe magnitude of zero sequence current I0 in Ampere is %0.3f and its angle is %0.3f degree',abs(I0), atand(imag(I0), real(I0)));
printf('\nThe magnitude of positive sequence current in Ampere is %0.3f and its angle is %0.3f degree ',abs(I1), atand(imag(I1), real(I1)));
printf('\nThe magnitude of negative sequence current in Ampere is %0.3f and its angle is %0.3f degree',abs(I2), atand(imag(I2), real(I2)));
printf('\nThe magnitude of neutral current in Ampere is %0.3f and its angle is %0.3f degree',abs(In), atand(imag(In), real(In)));
|
39d48fe3b26536f54b22845b0757a7255d9b7b51 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3269/CH7/EX7.7/Ex7_7.sce | c8a28aacfb7a214af3e94e572bdce7fab2f96166 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,449 | sce | Ex7_7.sce | // Example 7.7
clear all;
clc;
// Given data
H = 70; // Height of the cylinder in cm
R = H/2; // Diameter of the cylinder in cm
a = 1.9; // Radius of black control rod in cm
// From Table 6.2, Buckling can be found by
B0 = sqrt((2.405/R)^2+(%pi/H)^2);
// Using the data from Table 5.2 and 5.3
L_TM2 = 8.1; // Diffusion area of water moderator in cm^2
t_TM = 27; // Neutron age of water moderator in cm^2
// Using the data form Table 6.3 at temperature = 20 deg
n_T = 2.065; // Average number of neutrons produced per neutron absorbed in fission
// Using the data from Table 5.2 and Table II.3
D_bar = 0.16; // Thermal neutron diffusion coefficient in cm
SIGMA_t = 3.443; // Total macroscopic cross section in cm^(-1)
f = (1+B0^2*(L_TM2+t_TM))/(n_T+B0^2*L_TM2); // Thermal utilization factor
M_T2 = (1-f)*L_TM2+t_TM; // Thermal migration area in cm^2
d = 2.131*D_bar*(a*SIGMA_t+0.9354)/(a*SIGMA_t+0.5098); // Extrapolation distance
// Calculation
rho_w = (7.43*M_T2*(0.116+log(R/(2.405*a))+(d/a))^(-1))/((1+B0^2*M_T2)*R^2);
// Result
printf(" \n The worth of a black control rod = %.3f or %2.1f percent \n",rho_w,rho_w*100);
|
29ed10a7c787a72ce18da95915ea686c2b814e75 | 3b9a879e67cbab4a5a4a5081e2e9c38b3e27a8cc | /Pack/Exame comentado/q10_catastrofico.sci | cd667b7a85b7e0c580a7ad00facb97e7057e4162 | [
"MIT"
] | permissive | JPedroSilveira/numerical-calculus-with-scilab | 32e04e9b1234a0a82275f86aa2d6416198fa6c81 | 190bc816dfaa73ec2efe289c34baf21191944a53 | refs/heads/master | 2023-05-10T22:39:02.550321 | 2021-05-11T17:17:09 | 2021-05-11T17:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 508 | sci | q10_catastrofico.sci | function y=erro_relativo(x, x1)
y= abs((x-x1) /x)
endfunction
function y=calcula_digse(x, x1)
erro_rel = erro_relativo(x, x1)
y = round(abs(log10(erro_rel)))
endfunction
format(20)
// Atualizar valores de x (valor) e x1 (aproximação de x)
x=111222333444/14-7944452388 // podemos usar isso pois o próprio Scilab tem 16 dígitos de precisão
x_real = 0.85714285714285714285714285714286//esse você calcula na calculadora e copia aqui
disp('Digse:')
DIGSE=calcula_digse(x, x_real)
disp(DIGSE)
|
1a467b23786d3160e1299ad1914a45c3b6e070e7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH1/EX1.56/ex1_56.sce | 26b1004d5cd872ef0921cb8869a45f13a3194d00 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 752 | sce | ex1_56.sce | //Chapter-1, Example 1.56, Page 66
//=============================================================================
clc;
clear;
//INPUT DATA
RAB=6;//Resistance in ohms
RBC=3;//resistance in ohms
RBD=4;//resistance in ohms
V1=25;//source voltage in volts
V2=45;//source voltage in volts
//CALCULATIONS
//applying kirchoff's current law at node B
//-I1-I2+I3=0
//I1=(V1-VB)/RAB
//I2=(V3-VB)/RBC
//I3=VB/RBD
VB=((V1/RAB)+(V2/RBC))/((1/RAB)+(1/RBC)+(1/RBD));
I1=(V1-VB)/(RAB);//current across AB
I2=(V2-VB)/(RBC);//current across BC
I3=(VB)/(RBD);//current across BD
//OUTPUT
mprintf("Thus currents I1,I2,I3 are %1.1f A %1.2f A %1.1f A",I1,I2,I3);
//=================================END OF PROGRAM==============================
|
3179c1d8cfcb0716530dbe64e59e82cb6ca54736 | 4bbc2bd7e905b75d38d36d8eefdf3e34ba805727 | /testcase/common/flex_codegen/batch_simulate.sce | 6dc4d1d755fc66cd1a5a905ba3aa13b22eb3f8a6 | [] | no_license | mannychang/erika2_Scicos-FLEX | 397be88001bdef59c0515652a365dbd645d60240 | 12bb5aa162fa6b6fd6601e0dacc972d7b5f508ba | refs/heads/master | 2021-02-08T17:01:20.857172 | 2012-07-10T12:18:28 | 2012-07-10T12:18:28 | 244,174,890 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 269 | sce | batch_simulate.sce | // Simulate blocks diagram
sim_results = [];
sim_results = scicos_simulate(scs_m,list(),'nw');
if sim_results ~= []
[fd_sim,err] = mopen('simulate_log.txt', 'w');
if err == 0
mfprintf(fd_sim,"Simulation OK!\n");
mclose(fd_sim);
end
end
|
2d7e9199de01715dd354495c9fc5835dbf6a39b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH8/EX8.3.1/Ex8_3.sce | 217eee7fad1facf2a7660f4902b7b44d0840d64d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 310 | sce | Ex8_3.sce | clc
clear
N=300;
D=0.2;
L=0.24;
P1=1.01325;
P2=8*1.01325;
n=1.35;
Et=0.96;
Em=0.85;
Vs=(22/7)*(1/4)*D*D*L;
IP=[n/(n-1)]*[P1*Vs]*[N/60]*[((P2/P1)^((n-1)/n))-1];
printf('Indicated Power= %2.1f kW',IP*100);
printf('\n');
BP=IP/(Et*Em);
printf('Brake Power= %2.1f kW',BP*100);
printf('\n');
|
e6d69b4ad992996e2f4b93156be99ff5f0c1c938 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3717/CH13/EX13.1/Ex13_1.sce | 5d1c6f9311530a1c92931c3b32acd244444d5ffa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 691 | sce | Ex13_1.sce | // Ex13_1 Page:256 (2014)
clc;clear;
H = 1.2e+05; // Magnetic field in silicon, A/m
chi = -4.2e-006; // Magnetic susceptibility
mu_0 = 4*%pi*1e-007; // Magnetic permeability, T-m/A
M = chi*H; // Magnetization of Si, A/m
B = mu_0 *(H + M); // Magnetic flux density in Si, T
mu_r = M/H + 1; // Relative permeability of the material
printf("\nThe magnetization of Si = %5.3f A/m", M);
printf("\nThe magnetic flux density in Si = %5.3f T", B);
printf("\nThe relative permeability of the material = %f", mu_r);
// Result
// The magnetization of Si = -0.504 A/m
// The magnetic flux density in Si = 0.151 T
// The relative permeability of the material = 0.999996 |
d1ad0ad8fddc9e51e19d6653ca539a2b4fb9a361 | ac66d3377862c825111275d71485e42fdec9c1bd | /Resources/res/map/map2106.sce | 6609e915693b9b2af75c8432e4efaa03a899ecd9 | [] | no_license | AIRIA/CreazyBomber | 2338d2ad46218180f822682d680ece3a8e0b46c3 | 68668fb95a9865ef1306e5b0d24fd959531eb7ad | refs/heads/master | 2021-01-10T19:58:49.272075 | 2014-07-15T09:55:00 | 2014-07-15T09:55:00 | 19,776,025 | 0 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 3,885 | sce | map2106.sce | <?xml version="1.0" encoding="UTF-8"?>
<Project Name="map2106" Width="13" Height="15" CellSize="40" BackgroundSize="1" Background="13plus.png">
<Cell Name="木箱" X="3" Y="1" />
<Cell Name="树" X="5" Y="1" />
<Cell Name="怪物帐篷-1" X="7" Y="1" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="8" Y="1" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="木箱" X="9" Y="1" />
<Cell Name="怪物帐篷-1" X="10" Y="1" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="树" X="11" Y="1" />
<Cell Name="出生点" X="1" Y="2" />
<Cell Name="木箱" X="2" Y="2" />
<Cell Name="树" X="3" Y="2" />
<Cell Name="木箱" X="4" Y="2" />
<Cell Name="树" X="6" Y="2" />
<Cell Name="树" X="11" Y="2" />
<Cell Name="树" X="2" Y="3" />
<Cell Name="树" X="5" Y="3" />
<Cell Name="木箱" X="6" Y="3" />
<Cell Name="仓鼠-bt" X="8" Y="3" arg0="44" />
<Cell Name="蘑菇" X="10" Y="3" />
<Cell Name="木箱" X="1" Y="4" />
<Cell Name="木箱" X="2" Y="4" />
<Cell Name="仓鼠-bt" X="3" Y="4" arg0="44" />
<Cell Name="木桩2" X="6" Y="4" />
<Cell Name="木箱" X="8" Y="4" />
<Cell Name="樱桃树" X="10" Y="4" />
<Cell Name="猴怪" X="11" Y="4" arg0="6" />
<Cell Name="树" X="2" Y="5" />
<Cell Name="木箱" X="5" Y="5" />
<Cell Name="怪物帐篷-1" X="7" Y="5" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="8" Y="5" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="9" Y="5" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="10" Y="5" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="1" Y="6" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="2" Y="6" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="3" Y="6" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="木箱" X="4" Y="6" />
<Cell Name="木箱" X="6" Y="6" />
<Cell Name="木箱" X="10" Y="6" />
<Cell Name="猴怪-bt" X="1" Y="7" arg0="29" />
<Cell Name="树" X="3" Y="7" />
<Cell Name="猴怪" X="5" Y="7" arg0="6" />
<Cell Name="樱桃树" X="9" Y="7" />
<Cell Name="樱桃树" X="10" Y="7" />
<Cell Name="树" X="3" Y="8" />
<Cell Name="池塘-左上" X="6" Y="8" />
<Cell Name="池塘-右上" X="7" Y="8" />
<Cell Name="猴怪-bt" X="11" Y="8" arg0="29" />
<Cell Name="树" X="4" Y="9" />
<Cell Name="木桩2" X="5" Y="9" />
<Cell Name="池塘-左下" X="6" Y="9" />
<Cell Name="池塘-右下" X="7" Y="9" />
<Cell Name="树" X="9" Y="9" />
<Cell Name="木箱" X="10" Y="9" />
<Cell Name="樱桃树" X="11" Y="9" />
<Cell Name="怪物帐篷-1" X="1" Y="10" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="2" Y="10" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="3" Y="10" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="樱桃树" X="6" Y="10" />
<Cell Name="通关点-1" X="7" Y="10" />
<Cell Name="树" X="8" Y="10" />
<Cell Name="怪物帐篷-1" X="9" Y="10" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="10" Y="10" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="怪物帐篷-1" X="11" Y="10" arg0="1" arg1="1,1,0,0,0" arg2="1" />
<Cell Name="樱桃树" X="2" Y="11" />
<Cell Name="仓鼠-bt" X="3" Y="11" arg0="44" />
<Cell Name="樱桃树" X="6" Y="11" />
<Cell Name="猴怪" X="7" Y="11" arg0="6" />
<Cell Name="树" X="1" Y="12" />
<Cell Name="木箱" X="4" Y="12" />
<Cell Name="石块" X="5" Y="12" />
<Cell Name="树" X="6" Y="12" />
<Cell Name="石块" X="8" Y="12" />
<Cell Name="猴怪-bt" X="10" Y="12" arg0="29" />
<Cell Name="木桩" X="1" Y="13" />
<Cell Name="树" X="2" Y="13" />
<Cell Name="木箱" X="6" Y="13" />
<Cell Name="木箱" X="7" Y="13" />
<Cell Name="树" X="10" Y="13" />
<Cell Name="木箱" X="11" Y="13" />
</Project> |
77efce97c69259f8107455f5f75b56dec22f98bc | e7aa0cf1a3bad6b43f08dde84693d43618bd7993 | /bower_components/dfw-login/src/test/lisa/login expires at N minutes/Tests/web component login expires at N minutes/NGP-TC-16081 login when session is about to expired.tst | 21c84c0df11e780d2e4115cf84b287d5ffc023a2 | [] | no_license | AshrafSharf/fe | 0a2f5bb41a12e01b9d5c4ed27d9b74344e23ca2a | 2ccc304a16697e0f9ca4756027b79d98f31389ea | refs/heads/master | 2020-04-04T08:51:28.193854 | 2018-05-07T21:57:57 | 2018-05-07T21:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 10,855 | tst | NGP-TC-16081 login when session is about to expired.tst | <?xml version="1.0" ?>
<TestCase name="NGP-TC-16081 login when session is about to expired" version="5">
<meta>
<create version="9.5.1" buildNumber="9.5.1.6" author="admin" date="04/17/2017" host="CACDTL02RK216W" />
<lastEdited version="9.5.1" buildNumber="9.5.1.6" author="admin" date="04/20/2017" host="CACDTL02RK216W" />
</meta>
<id>8C9812B8254F11E7BB12BE2520524153</id>
<Documentation>Put documentation of the Test Case here.</Documentation>
<IsInProject>true</IsInProject>
<sig>ZWQ9NSZ0Y3Y9NSZsaXNhdj05LjUuMSAoOS41LjEuNikmbm9kZXM9LTE4MjA3NTIyNzQ=</sig>
<subprocess>false</subprocess>
<initState>
</initState>
<resultState>
</resultState>
<deletedProps>
</deletedProps>
<Node name="Open the web component login page" log=""
type="lisa.ui.uiMethods.uiMethods"
version="1"
uid="8C9812B9254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Click on Demo" >
<classname>GoToUrl</classname>
<BROWSER>firefox</BROWSER>
<URL>http://radhika.dtveng.net:8080/components/dfw-login/</URL>
<OS>windows</OS>
</Node>
<Node name="Click on Demo" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812BA254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Switching the iframe to xpath" >
<xPath>xPath</xPath>
<actions>click</actions>
<parameter1>{{Demo}}</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Switching the iframe to xpath" log=""
type="lisa.ui.uiMethods.uiMethods"
version="1"
uid="8C9812BB254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Verify Guest Option is there" >
<classname>SwitchToFrameByXpath</classname>
<Xpath>//iframe[@class='style-scope iron-component-page']</Xpath>
</Node>
<Node name="Verify Guest Option is there" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812BC254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Click on login on Demo" >
<!-- Assertions -->
<CheckResult assertTrue="false" name="Ensure Result Contains String~5" type="com.itko.lisa.test.CheckResultContains">
<log>Assertion name: Ensure Result Contains String~5 checks for: false is of type: Result as String Contains Given String.</log>
<then>fail</then>
<valueToAssertKey></valueToAssertKey>
<param>Guest</param>
</CheckResult>
<xPath>xPath</xPath>
<actions>getText</actions>
<parameter1>{{Guest}}</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Click on login on Demo" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812BD254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Send the CSP username" >
<xPath>xPath</xPath>
<actions>click</actions>
<parameter1>{{login}}</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Send the CSP username" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812BE254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Send the CSP password" >
<xPath>id</xPath>
<actions>sendKeys</actions>
<parameter1>idToken1</parameter1>
<parameter2>{{username}}</parameter2>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Send the CSP password" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812BF254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Click on Login on CSP Page" >
<xPath>id</xPath>
<actions>sendKeys</actions>
<parameter1>idToken2</parameter1>
<parameter2>123123a</parameter2>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Click on Login on CSP Page" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812C0254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Verify Welcome,Username message is there" >
<xPath>id</xPath>
<actions>click</actions>
<parameter1>loginButton_0</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Verify Welcome,Username message is there" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812C1254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="waitforfewmins~1" >
<!-- Assertions -->
<CheckResult assertTrue="false" name="Ensure Result Contains String" type="com.itko.lisa.test.CheckResultContains">
<log>Assertion name: Ensure Result Contains String checks for: false is of type: Result as String Contains Given String.</log>
<then>fail</then>
<valueToAssertKey></valueToAssertKey>
<param>{{username}}</param>
</CheckResult>
<xPath>xPath</xPath>
<actions>getText</actions>
<parameter1>{{usernameonloginpage}}</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="waitforfewmins~1" log=""
type="com.itko.lisa.test.UserScriptNode"
version="1"
uid="8C9812C2254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Verify that Warning i sthere" >
<!-- Assertions -->
<CheckResult assertTrue="true" name="Any Exception Then Fail" type="com.itko.lisa.dynexec.CheckInvocationEx">
<log>Assertion name: Any Exception Then Fail checks for: true is of type: Assert on Invocation Exception.</log>
<then>fail</then>
<valueToAssertKey></valueToAssertKey>
<param>.*</param>
</CheckResult>
<onerror>abort</onerror>
<language>BeanShell</language>
<copyProps>TestExecProps</copyProps>
<script>Thread.sleep(360000);</script>
</Node>
<Node name="Verify that Warning i sthere" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812C3254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Get the Warning message" >
<!-- Assertions -->
<CheckResult assertTrue="false" name="Ensure Result Contains String~6" type="com.itko.lisa.test.CheckResultContains">
<log>Assertion name: Ensure Result Contains String~6 checks for: false is of type: Result as String Contains Given String.</log>
<then>fail</then>
<valueToAssertKey></valueToAssertKey>
<param>true</param>
</CheckResult>
<xPath>id</xPath>
<actions>isElementVisible</actions>
<parameter1>plainDialog</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Get the Warning message" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812C4254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Cancel the warning" >
<!-- Assertions -->
<CheckResult assertTrue="false" name="Ensure Non-Empty Result" type="com.itko.lisa.test.CheckResultAny">
<log>Assertion name: Ensure Non-Empty Result checks for: false is of type: Any Non-Empty Result.</log>
<then>fail</then>
<valueToAssertKey></valueToAssertKey>
</CheckResult>
<xPath>xPath</xPath>
<actions>getText</actions>
<parameter1>{{warningmsg}}</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Cancel the warning" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="8C9812C5254F11E7BB12BE2520524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Verify Welcome,Username message is there~1" >
<xPath>xPath</xPath>
<actions>click</actions>
<parameter1>{{warningclick}}</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Verify Welcome,Username message is there~1" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="7BEE1B725F311E7B01D0CB120524153"
think="500-1S"
useFilters="true"
quiet="false"
next="Verify Logout option is there" >
<!-- Assertions -->
<CheckResult assertTrue="false" name="Ensure Result Contains String" type="com.itko.lisa.test.CheckResultContains">
<log>Assertion name: Ensure Result Contains String checks for: false is of type: Result as String Contains Given String.</log>
<then>fail</then>
<valueToAssertKey></valueToAssertKey>
<param>{{username}}</param>
</CheckResult>
<xPath>xPath</xPath>
<actions>getText</actions>
<parameter1>{{usernameonloginpage}}</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="Verify Logout option is there" log=""
type="lisa.ui.actions.uiNode"
version="1"
uid="10CADB6A25F311E7B01D0CB120524153"
think="500-1S"
useFilters="true"
quiet="false"
next="end" >
<!-- Assertions -->
<CheckResult assertTrue="false" name="Ensure Result Contains String~9" type="com.itko.lisa.test.CheckResultContains">
<log>Assertion name: Ensure Result Contains String~9 checks for: false is of type: Result as String Contains Given String.</log>
<then>fail</then>
<valueToAssertKey></valueToAssertKey>
<param>Logout</param>
</CheckResult>
<xPath>xPath</xPath>
<actions>getText</actions>
<parameter1>{{logoutondemo}}</parameter1>
<false>false</false>
<checkboxOnError>false</checkboxOnError>
</Node>
<Node name="end" log=""
type="com.itko.lisa.test.NormalEnd"
version="1"
uid="8C9812CC254F11E7BB12BE2520524153"
think="0h"
useFilters="true"
quiet="true"
next="fail" >
</Node>
<Node name="fail" log=""
type="com.itko.lisa.test.Abend"
version="1"
uid="8C9812CB254F11E7BB12BE2520524153"
think="0h"
useFilters="true"
quiet="true"
next="abort" >
</Node>
<Node name="abort" log=""
type="com.itko.lisa.test.AbortStep"
version="1"
uid="8C9812CA254F11E7BB12BE2520524153"
think="0h"
useFilters="true"
quiet="true"
next="" >
</Node>
</TestCase>
|
5a8f729818878b7b320eb308076ad42f8e516c18 | fec7f3b107ceec13edf1fc16cad48dddc274a41e | /DataTips.sce | 4f9d021a50504ce666c6140f459f97b7f0406c06 | [] | no_license | JarrodOlivier/ControlsScilab | 0b1c197a6a6c36e276848f060d974a349a3affb7 | 49bc695d0d3839a1f88211ce0ba4a3d045911fe7 | refs/heads/master | 2020-03-29T10:25:02.975988 | 2018-09-21T18:47:40 | 2018-09-21T18:47:40 | 149,804,258 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 529 | sce | DataTips.sce | // this examples show how to manage tips by program
x1=linspace(0,1,100)';
y1=x1.^3;
clf();
plot(x1,y1,x1,sinc(10*x1));
e=gce();
p1=e.children(1);//sinc(10*x1)
p2=e.children(2); //x1^3
t=datatipCreate(p1,50);
datatipSetOrientation(t,"lower right")
t=datatipCreate(p1,[0.8 0.5]);
t=datatipCreate(p2,[0.1,0.0]);
t=datatipCreate(p2,[0.8 0.4]);
datatipSetOrientation(t,"upper left")
function str=myfmt(h)
pt = h.data;
str = msprintf('sinc\n%s', sci2exp(round(pt*10)/10))
endfunction
datatipSetDisplay(t,"myfmt")
|
7ce152ab9685af9e17d6efcdf3a8c506c4335a93 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2762/CH9/EX9.7.1/9_7_1.sce | afd8a04952461e774b53cccf527be96ce6a2ae8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 551 | sce | 9_7_1.sce | //Transport Processes and Seperation Process Principles
//Chapter 9
//Example 9.7-1
//Drying of Process Materials
//given data
X=(1/1000)*[195 150 100 65 50 40]
R=0.01*[151 121 90 71 37 27]
Rinv=[]
for i=1:6
Rinv(i)=1/R(1,i);
end
v=inttrap(X,Rinv)
X1=0.38;
X2=0.195;
XC=X2;
Rc=1.51;
A=18.58;
Ls=399;
t1=(Ls/A)*(-v);//as the graph is a decreasing function
t=(X1-X2)*(Ls/(A*Rc))
plot(X,Rinv,rec=[0,0,0.3,5])
xtitle("Graphical Representation of Falling Rate Period","X","1/R")
mprintf("the time for drying= %f h",t+t1)
|
3507f54692fe8af2bc54a9e04b87ec85db0b2fcd | 5bee7340e93b8ea9d588b54e56850d3416c9b860 | /ce2004 lab5/code/zdot.sci | 8584d2f57d65307dc018af206a5ccd7a597b3bb0 | [] | no_license | StevenShi-23/Lab-Report | f2217f466eeff34125127bca48a3a8e8aedc882a | 9510b7cc3b6318d1afaf3bdfc3e118fa2225f064 | refs/heads/master | 2020-07-05T18:46:29.864783 | 2014-04-14T05:35:31 | 2014-04-14T05:35:31 | 73,985,787 | 1 | 0 | null | 2016-11-17T03:17:13 | 2016-11-17T03:17:13 | null | UTF-8 | Scilab | false | false | 341 | sci | zdot.sci | close
title("First one!");
t = 0:0.00001:0.001;
t0 = t(1);
y0 = [0,0];
L = 100;
R = 4.8;
C = 200;
function out = Vin(t)
out = round((sign(t) + 1) / 2)
;
endfunction
function zdot = first(t, y)
zdot(1) = y(2);
zdot(2) = (Vin(t) - y(1) - L*y(2)/R)/(L*C);
endfunction
y = ode(y0, t0, t, first);
plot(t, y) |
44f417d52756122a21476bcfbd3a13520092e2d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2510/CH18/EX18.22/Ex18_22.sce | f2a0c1083f7484eeec02160caa3fd3ce77a3ba55 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,391 | sce | Ex18_22.sce | //Variable declaration:
//From example 18.21:
m = 144206 //Mass flow rate of flue gas (lb/h)
cp = 0.3 //Average heat capacities of the flue gas (Btu/lb F)
T1 = 2050 //Initial temperature of gas ( F)
T2 = 180 //Final temperature of gas ( F)
T3 = 60 //Ambient air temperature ( F)
U = 1.5 //Overall heat transfer coefficient for cooler (Btu/h.ft^2. F)
MW = 28.27 //Molecular weight of gas
R = 379 //Universal gas constant (psia.ft^3/lbmol. R)
v = 60 //Duct or pipe velcity at inlet (2050 F) (ft/s)
pi = %pi
//Calculation:
Q = m*cp*(T1-T2) //Heat duty (Btu/h)
DTlm = ((T1-T3)-(T2-T3))/log((T1-T3)/(T2-T3)) //Log-mean temperature difference ( F)
A1 = round(Q * 10**-5)/10**-5/(U*round(DTlm)) //Radiative surface area (ft^2)
q = m*R*(T1+460)/(T3+460)/MW //Volumetric flow at inlet (ft^3/h)
A2 = q/(v*3600) //Duct area (ft^2)
D = sqrt(A2*4/pi) //Duct diameter (ft)
L = A1/(pi*D) //Length of required heat exchange ducting (ft)
A1 = round(A1*10**-1)/10**-1
//Result:
printf(" The radiative surface area required is : %f ft^2 .",A1)
printf(" The length of required heat exchange ducting is : %.0f ft .",L)
|
79f3c157cf2fef9c07d84474e31dafefbff48257 | 449d555969bfd7befe906877abab098c6e63a0e8 | /911/CH9/EX9.10.a/ex_9_10_a.sce | 148b3cbd07109d3b7b32033f7670302eea4c4d8a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 567 | sce | ex_9_10_a.sce | //example 9.10(a)//
clc
//clears the screen//
clear
//clears all existing variables//
disp('At the end of eigth LOW to HIGH clock transition, the data bits loaded into the register will be 10110010, with ''0'' on the extreme right appearing at the Q7 output. The ninth clock transition will shift this 0 out of the register and the next adjacent bit (i.e.''1'') will take its place on Q7 output. Each subsequent clock pulse will shift the bits one step towards right with the result that at the end of 11th clock transition, the Q7 output will be logic ''0''. ') |
94acf34dbe058a0d8f7efac1dc502a0da319e194 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2273/CH6/EX6.6/ex6_6.sce | 568afa3512415eac6d13b10629208208146413a4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,724 | sce | ex6_6.sce | //calculate Ao and Bo and Co and Do constants
clear;
clc;
//soltion
//FUNCTIONS
function [z]=rxr(A,B)//Function for the multiplication in rectangular form
z(1)=A(1)*B(1)
z(2)=A(2)+B(2)
endfunction
function [z]=rdr(A,B)//Function for the division in rectangular form
z(1)=A(1)/B(1)
z(2)=A(2)-B(2)
endfunction
function [a]=r2p(z)//Function for rectangular to polar
a=z(1)*complex(cosd(z(2)),sind(z(2)))
endfunction
function[a]=p2r(z)//Funtion for polar to rectangular
a(1)=abs(z);
a(2)=atand(imag(z)/real(z));
endfunction
//given
Zt=[100 70];
Yt=[0.0002 -75];
A=[0.92 5.3];
B=[65.3 81];
D=A;
AD_=r2p(rxr(A,D))-1;//A*D-1
AD=[abs(AD_) 180+atand(imag(AD_)/real(AD_))];
C=rdr(AD,B);//(A*D-1)/B
BYt=rxr(Yt,B);
CZt=rxr(C,Zt);
YtZt_=r2p(rxr(Yt,Zt))*2+1;//1+2*Yt*Zt
P=[abs(YtZt_) atand(imag(YtZt_)/real(YtZt_))];//Let P=1+2*Yt*Zt
YtZto=r2p(rxr(Yt,Zt))+1;//1+Yt*Zt
Q=[abs(YtZto) atand(imag(YtZto)/real(YtZto))];//Let Q=1+Yt*Zt
Ao_=r2p(rxr(A,P))+r2p(BYt)+r2p(rxr(CZt,Q));//A*(1+2*Yt*Zt)+B*Yt+C*Zt(1+Yt*Zt)
Ao=[abs(Ao_) atand(imag(Ao_)/real(Ao_))];
printf("Ao = %.4f∠%.2f°\n",Ao(1),Ao(2));
DZt=rxr(D,Zt);//D*Zt
CZt2=rxr(CZt,Zt);//C*Zt^2
Bo_=r2p(B)+2*r2p(DZt)+r2p(CZt2);//2*A*Zt+B+C*Zt^2
Bo=[abs(Bo_) atand(imag(Bo_)/real(Bo_))];
printf("Bo = %.2f∠%.2f° ohm\n",Bo(1),Bo(2));
BYt2=r2p(rxr(BYt,Yt));//B(Yt^2)
AYt=rxr(A,Yt);//A*Yt
AYt_YZt=rxr(p2r(2*r2p(AYt)),p2r(1+YtZto)/2);//2*A*Yt(1+Y*Zt)
YtZt2=rxr(Q,Q);//(1+Yt*Zt)^2
Co_=r2p(AYt_YZt)+BYt2+r2p(rxr(C,YtZt2));//2*A*Yt(1+Y*Zt)+B*Yt^2+C*(1+Yt*Zt)^2
Co=[abs(Co_) atand(imag(Co_)/real(Co_))];;
Do=Ao;
printf("Co = %.4f∠%.1f° siemens\n",Co(1),Co(2));
printf("Do = %.4f∠%.2f°",Do(1),Do(2));
|
9d30e2a2f1a8009ccdd8434f564adfb42e0b132f | 449d555969bfd7befe906877abab098c6e63a0e8 | /45/DEPENDENCIES/donkmapij.sci | e6cb65ee3aecdbdc39874a4ba8fbf949a00f13ed | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 8,598 | sci | donkmapij.sci | //4-Variable KMAP
//returns a string of the minimized expression
//requires noof1.sci
//noof1.sci should be executed before executing this function
function bi = donkmapij(k)
n=4;
k(:,:,2)=zeros(n,n);
var=['I' 'J' 'Bn' 'An'];
p1=['I''J''' 'I''J' 'IJ' 'IJ'''];
p2=['Bn''An''';'Bn''An';'BnAn';'BnAn'''];
cmn4=4;
cmn2=2;
temp=1;
bi= ' ';
disp(k(:,:,1));
for i=1:n
for j=1:n
if(k(i,j)~=1 | k(i,j)~=2)
temp=0;
break;
end
end
end
if(temp==1)
printf("1");
abort;
end
//checking the 8 cells cases
z1=ones(2,4);
z2=ones(4,2);
temp1=['00' '01' '11' '10'];
temp2=temp1';
for i=1:n
if(i==4)
t=1;
else
t=i+1;
end
z=[k(i,:,1);k(t,:,1)];
if(noof1(z,0)==0 & noof1(z,1)>1)
k(i,:,2)=[1 1 1 1];
k(t,:,2)=[1 1 1 1];
a=strsplit(temp2(i,1));
b=strsplit(temp2(t,1));
c=strcmp(a,b);
for in=1:max(size(c))
if(c(in)==0 & a(in)=='0')
bi = strcat([bi var(in) '''']);
bi = strcat([bi " + "]);
break;
else
if(c(in)==0 & a(in)=='1')
bi = strcat([bi var(in)]);
bi = strcat([bi " + "]);
break;
end
end
end
end
end
for j=1:n
if(j==4)
t=1;
else
t=j+1;
end
z=[k(:,j,1) k(:,t,1)];
if(noof1(z,0)==0 & noof1(z,1)>0)
k(:,j,2)=[1;1;1;1];
k(:,t,2)=[1;1;1;1];
a=strsplit(temp1(1,j));
b=strsplit(temp1(1,t));
c=strcmp(a,b);
for in=1:max(size(c))
if(c(in)==0 & a(in)=='0')
bi = strcat([bi var(2+in) '''']);
bi = strcat([bi " + "]);
break;
else
if(c(in)==0 & a(in)=='1')
bi = strcat([bi var(2+in)]);
bi = strcat([bi " + "]);
break;
end
end
end
end
end
//checking the 4 cells cases
z1=ones(1,4);
z2=ones(4,1);
z3=ones(2,2);
temp1=['00' '01' '11' '10'];
temp2=temp1';
for t=1:n
z=k(t,:,1);
no=noof1(k(t,:,2),1);
if(noof1(z,0)==0 & no<cmn4 & noof1(z,1)>0)
k(t,:,2)=z1;
a=strsplit(temp1(1,t));
for in=1:max(size(a))
if(a(in)=='0')
bi = strcat([bi var(in) '''']);
end
if(a(in)=='1')
bi = strcat([bi var(in)]);
end
end
bi = strcat([bi " + "]);
end
end
for t=1:n
z=k(:,t,1);
no=noof1(k(:,t,2),1);
if(noof1(z,0)==0 & no<cmn4 & noof1(z,1)>0)
k(:,t,2)=z2;
a=strsplit(temp2(t,1));
for in=1:max(size(a))
if(a(in)=='0')
bi = strcat([bi var(2+in) '''']);
end
if(a(in)=='1')
bi = strcat([bi var(2+in)]);
end
end
bi = strcat([bi " + "]);
end
end
for i=1:n
for j=1:n
if(i==n)
t1=1;
else
t1=i+1;
end
if(j==n)
t2=1;
else
t2=j+1;
end
z4=[k(i,j,1) k(i,t2,1);k(t1,j,1) k(t1,t2,1)];
z5=[k(i,j,2) k(i,t2,2);k(t1,j,2) k(t1,t2,2)];
no=noof1(z5,1);
if(noof1(z4,0)==0 & no<cmn4 & noof1(z4,1)>0)
k(i,j,2)=1;
k(i,t2,2)=1;
k(t1,j,2)=1;
k(t1,t2,2)=1;
a=strsplit(temp2(i,1));
b=strsplit(temp2(t1,1));
c=strcmp(a,b);
for in=1:max(size(c))
if(c(in)==0 & a(in)=='0')
bi = strcat([bi ,var(in) '''']);
end
if(c(in)==0 & a(in)=='1')
bi = strcat([bi var(in)]);
end
end
a=strsplit(temp1(1,j));
b=strsplit(temp1(1,t2));
c=strcmp(a,b);
for in=1:max(size(c))
if(c(in)==0 & a(in)=='0')
bi = strcat([bi ,var(2+in) '''']);
end
if(c(in)==0 & a(in)=='1')
bi = strcat([bi var(2+in)]);
end
end
bi = strcat([bi " + "]);
end
end
end
//2 cells
z6=[1 1];
z7=z6';
for i=1:n
for j=1:n
if(i==n)
t1=1;
else
t1=i+1;
end
if(j==n)
t2=1;
else
t2=j+1;
end
z8=[k(i,j,1) k(i,t2,1)];
z9=[k(i,j,2) k(i,t2,2)];
no1=noof1(z9,1);
if(noof1(z8,0)==0 & no1<cmn2 & noof1(z8,1)>0)
k(i,j,2)=1;
k(i,t2,2)=1;
a=strsplit(temp1(1,j));
b=strsplit(temp1(1,t2));
c=strcmp(a,b);
for in=1:max(size(c))
if(c(in)==0 & a(in)=='0')
bi = strcat([bi p1(1,i)]);
bi = strcat([bi ,var(2+in) '''']);
bi = strcat([bi " + "]);
end
if(c(in)==0 & a(in)=='1')
bi = strcat([bi p1(1,i)]);
bi = strcat([bi var(2+in)]);
bi = strcat([bi " + "]);
end
end
end
end
end
for i=1:n
for j=1:n
if(i==n)
t1=1;
else
t1=i+1;
end
if(j==n)
t2=1;
else
t2=j+1;
end
z10=[k(i,j,1);k(t1,j,1)];
z11=[k(i,j,2);k(t1,j,2)];
no2=noof1(z11,1);
if(noof1(z10,0)==0 & no2<cmn2 & noof1(z10,1)>0)
k(i,j,2)=1;
k(t1,j,2)=1;
a=strsplit(temp2(i,1));
b=strsplit(temp2(t1,1));
c=strcmp(a,b);
for in=1:max(size(c))
if(c(in)==0 & a(in)=='0')
bi = strcat([bi p2(j,1)]);
bi = strcat([bi var(in) '''']);
bi = strcat([bi " + "]);
end
if(c(in)==0 & a(in)=='1')
bi = strcat([bi p2(j,1)]);
bi = strcat([bi var(in)]);
bi = strcat([bi " + "]);
end
end
end
end
end
//checking the single cell cases
for i=1:n
for j=1:n
if(k(i,j,2)==0 & k(i,j,1)==1)
a=strsplit(temp1(1,j));
b=strsplit(temp2(i,1));
for in=1:max(size(a(:,1)))
if(a(in,1)=='1')
bi = strcat([bi var(in+2)]);
else
if(a(in,1)=='0')
bi = strcat([bi var(2+in) '''']);
end
end
end
for in=1:max(size(b(:,1)))
if(b(in,1)=='1')
bi = strcat([bi var(in)]);
else
if(b(in,1)=='0')
bi = strcat([bi var(in) '''']);
end
end
end
bi = strcat([bi " + "]);
end
end
end
bi = strcat([bi "0 "]);
endfunction |
d0867e8bfdf317a652726617c292133714912d0a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2330/CH9/EX9.2/ex9_2.sce | 8865003c7f2c0fa82b140104168ab1963a5df84c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 613 | sce | ex9_2.sce | // Example 9.2
format('v',5)
clc;
clear;
close;
// given data
V_BE= 0.7;// in V
V_CC= 30;// in V
R_E= 8.2;// in Ω
R1= 22;// in Ω
R2= 47;// in Ω
R_C= 10;// in Ω
R_L= 30;//in Ω
// The base to ground voltage,
V_B= R1*V_CC/(R1+R2);// in V
// The emitter current,
I_E= (V_B-V_BE)/R_E;// in A
// The collector current,
I_CQ= I_E;// in A
// The collector emitter voltage,
V_CEQ= V_CC-I_E*(R_E+R_C);// in V
// The load resistance,
r_L= R_C*R_L/(R_C+R_L);// in Ω
I_Csat= I_E+V_CEQ/r_L;// in A
Vce_cutoff= V_CEQ+I_CQ*r_L;// in V
disp(Vce_cutoff,"The cut off value of V_CE in volts is : ")
|
97105f51ec631b8363566714cf8b4af3e453ab88 | 449d555969bfd7befe906877abab098c6e63a0e8 | /848/CH4/EX4.5/Example4_5.sce | 4bfee7ad293b45c589d62cb347fa643de59dbab3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,132 | sce | Example4_5.sce | //clear//
//Caption :To find out the Internal Quantum Efficiency and Internal Power level of LED source
//Example4.5
//page149
clear;
clc;
tuo_r = 30e-09;//radiative recombination in seconds
tuo_nr =100e-09;//non-radiative recombination in seconds
Etta_internal = 1/(1+(tuo_r/tuo_nr));//internal quantum efficiency
h = 6.6256e-34; //Plank's constant
C = 3e08; //velocity in m/sec
q = 1.602e-19; //electron charge in coulombs
I = 40e-03;//drive current in Amps
Lamda = 1310e-09;// peak wavelength of InGaAsP LED
Pinternal = (Etta_internal*((h*C)/q))*(I/Lamda);//internal power level
disp(Pinternal,'THE INTERNAL POWER GENRATED WITH IN LED SOURCE IN WATTS IS');
disp(Etta_internal,'The internal Quantum efficiency for the given radiative and non-radiative recombination time is');
disp(Etta_internal*100,'Internal Quantum Efficiency in Percentage');
//RESULT
//THE INTERNAL POWER GENRATED WITH IN LED SOURCE IN WATTS IS
//0.0291427
//The internal Quantum efficiency for the given radiative and non-radiative recombination time is 0.7692308
//Internal Quantum Efficiency in Percentage
// 76.923077
|
c65e0b4ee85a3a55c7188c3325060e41a6bc2b95 | 99b88a8b86c9ba133f1838fdb89798ab0121134a | /app/NODELoad.sci | 75e29a42244241238ec6b840e3c1180fea6bc937 | [] | no_license | feng42/Interface_scilab_mbdyn | aae1dd4d7ad13c4440be8ac4e6cb9d5d42cea512 | 604c543f8033fd5e0eed175dc66e5d0e44f5197e | refs/heads/master | 2020-04-26T21:35:30.077586 | 2019-04-27T05:32:31 | 2019-04-27T05:32:31 | 173,845,932 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,937 | sci | NODELoad.sci | function [Label,Data] = NODELoad(FileName)
// MBDynLoad loads MBDyn output files such as MOV, FRC, and JNT files into workspace variables.
// [LABEL,DATA]=MBDynLoad(FILENAME) reads and stores node or element labels in the row
// vector LABEL and all data in the three dimensional array DATA.
// DATA(i,j,k) will contain the j-th component value of the k-th node or element at the i-th time.
// See MBDyn Manual for information about data contained in each output file.
//
// For example, suppose 'sample.mov' is a MOV file output by an MBDyn analysis, then by
//
// [LABEL,DATA]=MBDynLoad('sample.mov')
//
// DATA(:,2,LABEL==5) gives the time sequence of X position of the node 5.
//
// NOTES:
// * Developed for Scilab Version 5.2.2. Modifications may be required for older or newer versions.
// * For information about MBDyn, please visit its official homepage at https://www.mbdyn.org.
// (c) 2010 Sky Engineering Laboratry Inc. (https://www.sky-engin.jp)
// Output variables initialisation (not found in input variables)
Label=[];
Data=[];
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
// Read Output File
fid = mopen(FileName,'r');
M_STR = mgetl(fid);
mclose(fid);
M = [];
for i=1:size(M_STR,"r")
L = strtod(tokens(M_STR(i,:),' '))';
m_L = size(L,"c");
m_M = size(M,"c");
if i>=2 then
if m_L>m_M then
M = [M,zeros(i-1,m_L-m_M)];
elseif m_L<m_M then
L = [L,zeros(1,m_M-m_L)];
else
end
end
M = [M;L];
end
// Make Label
Temp_Label = M(:,1);
Label = [];
while ~isempty(Temp_Label)
Label=[Label,min(Temp_Label)];
Temp_Label=Temp_Label(find(Temp_Label~=min(Temp_Label)));
end;
clear("Temp_Label");
// Make Data
for i = 1:length(Label)
Data(:,:,i)=M(find(M(:,1)==Label(i)),:);
end;
endfunction
|
c2a92c3409eb8efe1f1cb26d9c2869f4c96afa27 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH7/EX7.6.1/Ex7_6.sce | 91ab3f3f80cc764312d28ea731ddc701f92a3690 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 144 | sce | Ex7_6.sce | clc
clear
Pm=600;
A=(22/7)*(1/4)*0.11*0.11*0.14;
n=1000;
IP=(Pm*A*n)/60;
Em=0.8;
BP=Em*IP;
printf('BP= %3.2f kW',BP);
printf('\n');
|
74c1e5003ef469dc0c53daecee5b89ed9ceff4bd | 68e53df229b123d7681a4f7fa4db43b4982d5362 | /pole.sce | 8022bcd8e4251575753b40152421317ac9740165 | [] | no_license | yeoleparesh/Control-system | 06c30e594d51fec7a8ffabc452a7866b38604a23 | dee7fbfd3c2c46cc1d4d0a3cb8af45d918da972b | refs/heads/master | 2021-01-17T12:38:05.661769 | 2019-01-03T12:03:53 | 2019-01-03T12:03:53 | 59,283,431 | 0 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 329 | sce | pole.sce | ////Function:-- pole ///
//transfer function model////////
s=poly(0,'s');
sysa=syslin('c',(s+2)/(s^2+8*s+3));
p=pole(sysa)
z=poly(0,'z');
sys=syslin(0.02,(z+2)/(z^2+2*z+3));
p1=pole(sys)
//MIMO system or cell array
sys1=syslin('c',(s+8)/(s^8+3*s+4));
sysm=[sysa sys1];
r=pole(sysm);
r(1);
r(2);
pp=cell2mat(r(2))
|
4c704c52e4cf79b9afdbf3112f63251048166e80 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3835/CH9/EX9.5/Ex9_5.sce | 3d0f29aca2aeebcbe7054c3e46603e1c53b5df8a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 387 | sce | Ex9_5.sce | clear
//
//given
//the external characteristic of the generator,the combined armature and series field resistance is given by ra+rs
r=0.375 //ra+rs
//case a
i=150
//-0.375+0.4=0.025 the voltage drop
vab=0.025*150
printf("\n when i=150 the voltage drop between points a and b is= %0.1f V",vab)
vab=0.025*45
printf("\n when i=45 the voltage drop between points a and b is= %0.1f V",vab)
|
087a8edd57d9a12ebd2f775e5f8dd3cc37523930 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2072/CH18/EX18.1/EX18_1.sce | 43019b7cd3de5858953dc1770ead9e3ec581dfe1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 182 | sce | EX18_1.sce | //Example 18.1
clc
R1=2
R2=4
R3=5
R4=7
R_eq=R1+R2+R3+R4
v=6//in v
disp("Solution a")
disp(R_eq,"Equivalent resistance in ohm=")
disp("Solution b")
I=v/R_eq
disp(I,"Current in Amps=") |
84c8f286b8dd979a651bf163c4e7b88dd3d9f1bf | 9db1795450f8264dbb89300dd641cd2acfcf1421 | /HelloReact/ClientApp/genModels/_typewriter.tst | e6ca39de3e29c97c9390454969ad920bffbc5120 | [] | no_license | luke1212/HelloReact | 92980bc2f74c5d93609c1ac5bd5f9b6ef51a1134 | 7ed1f51ab2aa9bf9aad589b718ce75cee78b0eb3 | refs/heads/master | 2020-04-05T02:46:03.743800 | 2018-12-25T20:16:55 | 2018-12-25T20:16:55 | 156,489,499 | 1 | 0 | null | 2018-12-25T20:16:56 | 2018-11-07T04:15:59 | C# | UTF-8 | Scilab | false | false | 666 | tst | _typewriter.tst | ${
string Inherit(Class c) {
if (c.BaseClass != null)
return " extends " + c.BaseClass.ToString();
else
return "";
}
string Imports(Class c){
List<string> neededImports = c.Properties
.Where(p => !p.Type.IsPrimitive)
.Select(p => "import { " + p.Type.Name.TrimEnd('[',']') + " } from './" + p.Type.Name.TrimEnd('[',']') + "';").ToList();
if (c.BaseClass != null) {
neededImports.Add("import { " + c.BaseClass.Name +" } from './" + c.BaseClass.Name + "';");
}
return String.Join("\n", neededImports.Distinct());
}
}
$Classes(HelloReact.DomainModels.*)[$Imports
export interface $Name$TypeParameters$Inherit {
$Properties[ $name: $Type;
]}
] |
629ca6074555e9879580486c115ebe20b18d744c | f5f41d427e165a46b51c8b06f6c2010b4213033a | /Scilab/vel_vs_time.sce | 46b019b6f362b2ccdcf110b250aec8a8410b68c1 | [] | no_license | rissuuuu/IT_LAB | a40f6ea5311f5d8012364cfa3d3ad37d83be3afd | 8d0f44a2b8b20ed1101c34a5cb263e6229c200cc | refs/heads/master | 2021-01-03T05:06:49.877644 | 2020-02-12T07:42:44 | 2020-02-12T07:42:44 | 239,934,733 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 316 | sce | vel_vs_time.sce | //19MCMI07
//Rohan Yadav
x=0:5;
y=[8 10 25 36 52 59];
x_new=0:.01:5;
y_new=interp1(x,y,x_new,'linear');
plot(x,y,'d')
disp(x)
plot(x_new,y_new);
title('Velocity versus Time','fontsize',5);
ylabel('Miles per Hour','fontsize',5);
xlabel('Time, seconds','fontsize',5);
legend('Data Points','Linear Interpolation',-1)
|
bcd995b7e8e5cffe21984655c021ed86b8625415 | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH9/EX9.5/example9_5.sce | e4466866ab9c259e34f3050e9ce8737a5efa2a38 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 668 | sce | example9_5.sce | //clc()
//let, W - waste acid, S - Sulfuric acid, N - nitric acid, M - mixed acid
xsh2so4 = 0.95;
xsh2o = 0.5;
xwh2so4 = 0.3;
xwhno3 = 0.36;
xwh2o = 0.34;
xmh2so4 = 0.4;
xmhno3 = 0.45;
xmh2o = 0.15;
xnhno3 = 0.8;
xnh2o = 0.2;
M = 1000;//kg
// total material balance, W + S + N = 1000;
//H2SO4 balance, xwh2so4 * W + xsh2so4 * S = xmh2so4*M
//HNO3 balance, xwhno3 * W + xnhno3 * N = xmhno3*M
//H2O balance, xwh2o*W+xnh2o*N + xsh2o*S = xmh2o*M
//solving the above equations simultaneously, we get,
W = 70.22;//kg
S = 398.88;//kg
N = 530.9;//kg
disp("kg",W,"Waste acid = ")
disp("kg",S,"Concentrated H2SO4 = ")
disp("kg",N,"Concentrated HNO3 = ")
|
8104adc43c8fae0f148829d8c9ec2eab21899c20 | d590546a0877ac197ba2a6c65da314fa1c4a1c12 | /Software/Script/Scilab/ADCAsgard/ISAaltitude.sci | 6251c39137a9308fe04b81c7d99f9f68521931c1 | [
"CC-BY-4.0"
] | permissive | JLJu/AirDataComputer | e0fe19ee9e8aa0b5914d9af8ab62cbc04a42c55d | 8576622349805733bdd1f97c069f8c948b5b8c05 | refs/heads/master | 2019-07-06T06:24:44.612648 | 2019-01-29T15:48:53 | 2019-01-29T15:48:53 | 167,345,821 | 0 | 0 | NOASSERTION | 2019-01-24T10:04:03 | 2019-01-24T10:04:02 | null | UTF-8 | Scilab | false | false | 441 | sci | ISAaltitude.sci | function [h]=ISAaltitude(Ps)
Ps=Ps*0.000295299875080277;//Pa to inHg Conversion
//Using Goodrich 4081 Air data handbook formula
h=(29.92126^0.190255 - Ps^0.190255)*76189.2339431570; //US atmosphere 1962
//Back to SI
h=h*0.3048;
//76189.2339431570*(_p*0.000295299875080277)^0.190255
//Unceratinty
// _uh=4418.19264813511*pow(Ps,-0.809745)*_up*0.000295299875080277;
endfunction
|
46721e2565190862429eedd765556a7c2ace48a5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /29/CH9/EX9.10.10/exa9_10_10.sce | 9707dd3c0faf36b567ff2fa205844ee60a3bb5be | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | exa9_10_10.sce | //caption:obtain_state_matrix
//example 9.10.10
//page 393
s=%s;
g=(s^2+6*s+8)/((s+3)*(s^2+2*s+5));
CL=syslin('c',g);
disp(CL,"C(s)/R(s)=");
SS=tf2ss(CL)
[Ac,Bc,U,ind]=canon(SS(2),SS(3))
disp(SS,"state space matrix=")
disp(Ac,"Ac",Bc,"Bc",U,"U",ind,"ind") |
097635ea7eb38814c5caaafd3b309ba61289ff7a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3020/CH13/EX13.13/ex13_13.sce | e876f444668447a66b72b83b06eb76900c3264fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 843 | sce | ex13_13.sce | clc;
clear all;
a = 4.12e-10; // Lattice constant in meters
h1 = 1; //Miller indices of diffracted plane case1
k1 = 1; //Miller indices of diffracted plane case1
l1 = 1;// Miller indices of diffracted plane case1
d = a/sqrt(h1^2+k1^2+l1^2);// Lattice constant
disp('m',d,'The lattice spacing for plane (1,1,1) is')
h2 = 1; //Miller indices of diffracted plane case2
k2 = 1; //Miller indices of diffracted plane case2
l2 = 2;// Miller indices of diffracted plane case2
d = a/sqrt(h2^2+k2^2+l2^2);// Lattice constant
disp('m',d,'The lattice spacing for plane (1,1,2) is')
h3 = 1; //Miller indices of diffracted plane case3
k3 = 2; //Miller indices of diffracted plane case3
l3 = 3;// Miller indices of diffracted plane case3
d = a/sqrt(h3^2+k3^2+l3^2);// Lattice constant
disp('m',d,'The lattice spacing for plane (1,2,3) is')
|
9565919450965c456c9ae50165bf109975ecc5da | 449d555969bfd7befe906877abab098c6e63a0e8 | /3890/CH3/EX3.1/Ex3_1.sce | afbcb0adf6add75b602f31e4c0238d6142f9b30e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 589 | sce | Ex3_1.sce | //Electric machines and power systems by Syed A Nasar
//Publisher:TataMcgraw Hill
//Year: 2002 ; Edition - 7
//Example 3.1
//Scilab Version : 6.0.0 ; OS : Windows
clc;
clear;
E=220; //Emf of the tranformer in volt
f=60; //Frequency of the transformer in Hz
fl=5*10^-3; //flux in wb
N1=E/(4.44*f*fl); //turns in primary winding
N2=N1/2; //turns in secondary winding
printf('Number of turns in primary winding is %d\n',N1)
printf('Number of turns in secondary winding is %d\n',N2)
|
adabc9fbf1fd9007cc77fdf30014b0123aa1788e | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH2/EX2.70/ex2_70.sce | 3183fd335884f6c08e0587184fb6c533abb6b61b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 128 | sce | ex2_70.sce | clc;
Z=8.66+%i*5; //Assigning values to parameters
Y=1/Z;
G=real(Y);
B=imag(Y);
disp("Mho",G,"G");
disp("Mho",B,"B"); |
f6da8d9e66af61fd7e5b78ff37e986504cae342c | fc97dca636256fc30f018840e244a173c06ec54b | /easy/tests/assignment.tst | cfafb602c18e310f72ce5ba90bc22255bd0d8fa0 | [
"MIT"
] | permissive | tuomasb/compiler | 23fd2190bc6911380a5acf45241c1f2b2580538f | aa366ace6f2c29b5e0080faf8c50dcb7be0b02f4 | refs/heads/master | 2020-05-17T21:51:17.977674 | 2014-06-09T00:24:17 | 2014-06-09T00:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 53 | tst | assignment.tst | main {
int a;
a := 1;
print(a);
return a;
}
|
b8cf8d055fa936f5d43626996c11590ab2c18931 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set12/s_Higher_Engineering_Mathematics_B._S._Grewal_149.zip/Higher_Engineering_Mathematics_B._S._Grewal_149/CH1/EX1.22/ex22.sce | 14e9f14e65ca79589be8bfba3e10e1e232b314e8 | [] | 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 | 139 | sce | ex22.sce | errcatch(-1,"stop");mode(2);
x=poly([0],'x');
p=x^4-6*(x^3)-3*(x^2)+22*x-6
disp("the roots of above equation are ")
roots(p)
exit();
|
b91a9a2c98a32af662117b2ea42c28075fbcb918 | 50d8beb29ad9db96e5fa92983467b1a74e314045 | /Module/Simulation/AOCS/backup/Thruster_Configuration.sce | a6b1fcc5c94b078f84d608260ec0cccdf560c014 | [] | no_license | TheTypoMaster/DOCKing_System | 6779b1aa778a487d7cc3f0b617e1c19151615f73 | 2d0418f3beedcd5f8b3b3b8449c0eeceea64e82a | refs/heads/master | 2021-01-16T00:22:08.900373 | 2015-10-02T13:07:26 | 2015-10-02T13:07:26 | 43,553,238 | 0 | 0 | null | 2015-10-02T13:07:03 | 2015-10-02T13:07:03 | null | UTF-8 | Scilab | false | false | 1,209 | sce | Thruster_Configuration.sce | //Thruster Geometric Configuration
// COM = center of mass
// GC = geometric center
X_COM = 0.01; // X position of the COM with respect to GC
Y_COM = 0.005; // Y position of the COM with respect to GC
Z_COM = 0.008; // Z position of the COM with respect to GC
COM = [X_COM; Y_COM; Z_COM];
// T1, T2, T3, and T4 are the Thruster Torque Orientation with respect to the
// Body frame. We will normalize these vectors in order to get unit vector and
// Then compute the Unit Torque per thruster.
// Thruster 1
T1 = [ 0; -0.259; 0.966]; // Thrust vector
T1 = T1 ./ sqrt(T1' * T1); // Normalized Thrust Vector
OM1 = [0.0305; -0.0419; -0.15275] - COM; // Thruster Position With respect to COM
To1 = cross(OM1, T1); // Torque vector
// Thruster 2
T2 = [0;-0.259;0.966];
T2 = T2 ./ sqrt(T2' * T2);
OM2 = [-0.0305;-0.0419;-0.15275] - COM;
To2 = cross(OM2, T2);
// Thruster 3
T3 = [0;0.259;0.966];
T3 = T3 ./ sqrt(T3' * T3);
OM3 = [-0.0305;0.0419;-0.15275] - COM;
To3 = cross(OM3, T3);
// Thruster 4
T4 = [0;0.259;0.966];
T4 = T4 ./sqrt(T4' * T4);
OM4 = [0.0305;0.0419;-0.15275] - COM;
To4 = cross(OM4, T4);
Ba = [To1, To2, To3, To4];
|
dcb161689f812db7eb4768e3df827cada5a1348f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1949/CH1/EX1.4/1_4.sce | 32f39d480d954b8d9d93cdd05bacab7cce138efa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 441 | sce | 1_4.sce | //Chapter-1,Example 1_4,Page 1-17
clc()
//Given Data:
B=0.1*10^-2 //fringe spacing
lam=5.893*10^-7 //Wavelength of light
u=1.52 //Refractive index of wedge
//Calculations:
//We know, B=lam/(2*u*theta). Here u=1
theta1=lam/(2*u*B) //angle of wedge in radians
theta=theta1*3600*180/%pi //angle of wedge in seconds
printf('Angle of wedge is =%.0f seconds of an arc',theta)
|
8523a9be95f42138badc7dca1e9a11710589826c | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /sci2blif/rasp_design_added_blocks/macrocab_nmirror0.sce | be76f8ef7c6ed32530fced468302575b98f404c3 | [] | no_license | jhasler/rasp30 | 9a7c2431d56c879a18b50c2d43e487d413ceccb0 | 3612de44eaa10babd7298d2e0a7cddf4a4b761f6 | refs/heads/master | 2023-05-25T08:21:31.003675 | 2023-05-11T16:19:59 | 2023-05-11T16:19:59 | 62,917,238 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 214 | sce | macrocab_nmirror0.sce | style.fontSize=12;
style.displayedLabel="<table> <tr> <td><b>In</b></td> <td align=center>N-mirror0</td> <td align=left><b>Out</b></td> </tr> </table>";
pal11 = xcosPalAddBlock(pal11,"macrocab_nmirror0",[],style);
|
bb53e73e22fb0c457ecfb3e852cb92a6fe2ce89a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH19/EX19.18/Ex19_18.sce | 725b39fd6583b48e03dec6ed2a4097d297879328 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 891 | sce | Ex19_18.sce | clc
// Given that
N = 10000 // Speed in RPM
V = 1.2 // Volume flow rate of free air in m^3/s
p1 = 1 // Inlet pressure in bar
t1 = 27 // Inlet temperature in degree centigrade
r = 5 // Pressure ratio
vf = 60 // Velocity flow rate in m/s
sigma = 0.9 // Slip factor
n_iso = 0.85 // Isentropic efficiency
gama = 1.4
R = 0.287
cp = 1.005
printf("\n Example 19.18\n")
T1 = t1+273
T2s = T1*((r)^((gama-1)/gama))
T2 = T1 +(T2s-T1)/n_iso
m = p1*100*V/(R*288)
Wc = m*cp*(T2-T1)
Vb2 = (Wc*1000/(m*sigma))^(1/2)
D = Vb2*60/(%pi*N)
Vb1 = Vb2/2
beta1 = atand(vf/Vb1)
alpha = atand(vf/(sigma*Vb2))
printf("\n The temperature of air at outlet = %f degree centigrade,\n Power input = %f kW,\n Diameter of impeller = %f m, \n Blade inlet angle = %d degree,\n Diffuser inlet angle = %f degree ",T2-273,Wc,D,beta1,alpha)
// The answers given in the book vary due to round off error
|
75d8469e6ce1d0fe69feaffa36207a5ae7824418 | b9602336613b26d0b9c22a09d219c0ed8e158b4e | /Examples/Examples_Mat/truncLog.sce | 577c340012ea94e64961f787a6a4b2d1c6c4f7de | [
"BSD-2-Clause"
] | permissive | CEG-MCA-Scilab-Hackathon/Scilab_Armadillo_Toolbox | d0a366f5f058ee45d3c4be7a41e08ed419d4b7cd | 70c97cda4e0dd54df0a638e9b99f380c09ffa37e | refs/heads/master | 2022-12-11T01:28:28.742041 | 2020-08-26T12:24:27 | 2020-08-26T12:24:27 | 290,481,428 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 111 | sce | truncLog.sce | // Calculating the truncLog.
y = [1.2, 1, 1.9; 4, 2.6, 5; 2.3, 8, 7];
truncLogres = armaMat("truncLog",y)
|
65f71968073b72ad85a99bf44f611d5b6dc7a371 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/CreatingPlots/testzoomrect.sce | ff874a7746b718def01d26eea40d988484dde0e0 | [] | no_license | markusmorawitz77/Scilab | 902ef1b9f356dd38ea2dbadc892fe50d32b44bd0 | 7c98963a7d80915f66a3231a2235010e879049aa | refs/heads/master | 2021-01-19T23:53:52.068010 | 2017-04-22T12:39:21 | 2017-04-22T12:39:21 | 89,051,705 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 325 | sce | testzoomrect.sce | exec('testplot.sce',-1)
A=gca();A.zoom_box
zoom_rect([0.5,0.5,1,1]); // zoom
A.zoom_box
unzoom() // revert to initial plot
A.zoom_box
A.zoom_box=[0.5,0.5,1,1]; // equivalent to zoom_rect
A.zoom_box
unzoom() // revert to initial plot
A.zoom_box
|
b6e4dea81437370c1557bf587b7ce77b19f899c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH3/EX3.9/Ex3_9.sce | 7d2158b17feb4fd408d96eb0fc338e10ab749fd4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 712 | sce | Ex3_9.sce | //determine equilibriant
//two 40 kN forces have no moment about the pulley centre hence can be considered acting at pulley centre
//Accordingly
Rx=20*cosd(45)-30*cosd(60)-50*cosd(30)+40*cosd(20)-40*sind(30) //kN (towards left)
Ry=-20*sind(45)-20+20-30*sind(60)-50*sind(30)-40*sind(20)-40*cosd(30) //kN (Downwards)
R=sqrt(Rx^2+Ry^2) //kN
alpha=atand(Ry/Rx) //degree
//Taking moment about A
MA=20*4-20*4+30*6*sind(60)+50*2*sind(30)-50*2*cosd(30)+40*3*cosd(20)-40*3*sind(30)
//assume that the resultant intersects AB at a distance x from A,then
x=MA/Ry //m
printf("Equilibriant is equal and opposite to resultant.\nR=%.2f kN\nalpha=%.2f degree\nx=%.3f m\nAs shown in fig.3.18 (a)",R,alpha,-x)
|
b3a6af5ecfdc499016f5d2b061afe485dcfec6b1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3433/CH10/EX10.3/Ex10_3.sce | fb2feaec5bc691f600aed5f500e9ce8660878e02 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 376 | sce | Ex10_3.sce | clear;
clc;
funcprot(0);
//given data
d = 30;//tip diameter in m
cx1 = 7.5;//in m/s
cx2 = 10;//in m/s
rho = 1.2;//in kg/m^3
a_ = 1/3;
//Calculations
P1 = 2*a_*rho*(%pi*0.25*d^2)*(cx1^3)*(1-a_)^2;
P2 = 2*a_*rho*(%pi*0.25*d^2)*(cx2^3)*(1-a_)^2;
//Results
printf('(i)With cx1 = %.1f m/s, P = %d kW.',cx1,P1/1000);
printf('\n(ii)With cx1 = %d m/s, P = %.1f kW.',cx2,P2/1000);
|
36b54bc4edf670b335dfb417b2b0a6e24f3ec91e | 449d555969bfd7befe906877abab098c6e63a0e8 | /842/CH9/EX9.7/Example9_7.sce | 9abac173fc30896f055cae1ae2cde39923d6810d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 221 | sce | Example9_7.sce | //clear//
//Example9.7
//Lapalce Transform x(t) = exp(-b.abs(t)).u(t), 0<t<T
//x(t) = exp(-bt).u(t)+exp(bt).u(-t)
syms t s;
b = 3;
y = laplace('%e^(-b*t)-%e^(b*t)',t,s);
disp(y)
//Result
// [1/(s+b)]-[1/(s-b)]
|
8335f5b273bc171729c593f72e006799cebacdcc | e0124ace5e8cdd9581e74c4e29f58b56f7f97611 | /3899/CH9/EX9.11/Ex9_11.sci | b17fba6065423ceb90e595998fb3a73694a3d92b | [] | no_license | psinalkar1988/Scilab-TBC-Uploads-1 | 159b750ddf97aad1119598b124c8ea6508966e40 | ae4c2ff8cbc3acc5033a9904425bc362472e09a3 | refs/heads/master | 2021-09-25T22:44:08.781062 | 2018-10-26T06:57:45 | 2018-10-26T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 200 | sci | Ex9_11.sci | clear all
n=[-10:40];
yp1=0.*n; // initial value of yp
for k=0:3; // sum the harmonics
YP=yp1+(0.25/(1.25-exp(-%i*2*%pi.*k/4))).*exp(-%i*2*%pi.*n.*k/4)
end
disp(YP,'THe response is:')
|
a05d2a939bc5f4ba922a965718f5bc8b96703db6 | 5bc3a272ac3972765259062ed2c4abd8ac31eb84 | /EE 324 controls lab/lab3/q1.sce | 103206b02f0412bd2db58ad621d0b94f14caec60 | [] | no_license | ishan-2404/Duaon-mei-yaad-rakhna-XD | 51a268cb15695d78a1bd086d958f402fe6ee093d | bf702ac84c18f7d677a35f9f850e3bfb63a32625 | refs/heads/main | 2023-07-13T17:10:57.650902 | 2021-08-14T07:06:22 | 2021-08-14T07:06:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,772 | sce | q1.sce | s = poly(0,'s');
// PART a
a_range = -1:.01:1.001;
t = 0:.005:5;
outputs = zeros(length(t), size(a_range)(2)); // length returns length for either col or row vector (more convenient than size fucntion)
for i = 1:size(a_range)(2)
a = a_range(i);
G = (s+5+a)/(s^2+11*s+30);
G = syslin('c',G);
outputs(:,i) = csim('step', t,G);
end
// when plotting multiple y on same plot, individual y must be a col vector
plot2d(t,outputs);
xlabel('Time t (in sec)');
ylabel('Step Response');
title('Step Response with Slight variation in zeros');
show_window(1);
// Explicitly plotting for pole-zero cancellation
G1 = 1/(s+6);
G1 = syslin('c',G1);
plot2d(t, csim('step', t,G1));
xlabel('Time t (in sec)');
ylabel('Step Response');
title('Step response with pole-zero cancelled system i.e. a = 0');
show_window(2);
// PART b
G = 1/(s^2-s-6);
G = syslin('c',G);
y1 = csim('step', t,G);
G_new = (s-3)/(s^2-s-6);
G_new = syslin('c',G_new);
y2 = csim('step', t,G_new);
plot2d(t,[y1',y2']);
xgrid(5, 1, 7); // color, thickness, style
a = gca();
a.data_bounds = [0,0;5,1];
legend(['With Right Half Pole', 'Without Right half Pole'])
xlabel('Time t (in sec)');
ylabel('Step Response');
title('Step responses with and without right half pole');
show_window(3);
t = 0:.005:10;
a_range = -.002:.0002:.002;
outputs = zeros(length(t), length(a_range));
for i = 1:length(a_range)
a = a_range(i);
G = (s-3+a)/(s^2-s-6);
G = syslin('c',G);
outputs(:,i) = csim('step', t,G);
end
plot2d(t,outputs);
a = gca();
a.data_bounds = [0,0;10,1];
xgrid(2);
xlabel('Time t (in sec)');
ylabel('Step Response');
title('Step Responses with zeros very close to RHP pole');
show_window(4);
|
03c3d71439a5a56538a302aeceabfc09a328d311 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2990/CH6/EX6.15/Ex6_15.sce | cbb48221616b7b4fb99fa5976f5f7723f368eedc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex6_15.sce |
clc; funcprot(0);
// Initialization of Variable
d=230.0;//square side in mm
f=152.4//focal length in mm
pl=0.6;//end lap
//calculation
k=(1-pl)*d/f;
V=k/0.15;
disp(V,"vertical exaggeration is")
clear()
|
cdaa7e74de4527b7485214acd89040fce5a937de | 449d555969bfd7befe906877abab098c6e63a0e8 | /2747/CH13/EX13.18/Ex13_18.sce | 702e61f4f7284372f6202c9a01d5eb975702b1b4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 310 | sce | Ex13_18.sce | clc
clear
//Initialization of variables
disp("From psychrometric charts,")
va1=13 //ft^3/lbm dry air
va2=13.88 //ft^3/lbm dry air
flow=2000 //cfm
//calculations
ma1= flow/va1
ma2=flow/va2
t=62.5// F
phi=0.83 //percent
//results
printf("humidity = %.2f ",phi)
printf("\n Temperature = %.1f F",t)
|
0ab3b5f7c066abf2b30c4388d59108e1cb4c74eb | 449d555969bfd7befe906877abab098c6e63a0e8 | /3793/CH3/EX3.6/exp_3_6.sce | a0dee9de9ea4d45eb56ac373fd28071b1aedd94c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 523 | sce | exp_3_6.sce | clear;
clc;
pe=(%pi*(8.85*10^(-12)));
v=33000;
d=1.5//distance
r=.005 //radius in m
h=5;
l=5;
Cab= ((.01206)/log10((d/r)))*(l);
Cn=2*Cab;
I=(2*%pi*50*Cab*v*10^(-6));
ab=sqrt(1+((d^2)/(4*(h^2))))
f=log(d/.050559);
Cbb=((pe/f)*((10^9)*5)/2);
mprintf(" capacitance = %.3f microF\n",Cab);
mprintf(" capacitance to neutral = %.3f microF\n",Cn);
mprintf(" charing current = j%.3f A\n",I);
mprintf(" capacitance with earth cnsideration = %.3f microF\n",Cbb);// capacitance when effect of earth is considered
|
dc63fb97dde1f9159ac5271f11a35514c4671597 | 449d555969bfd7befe906877abab098c6e63a0e8 | /52/CH5/EX5.9/Example5_9.sce | 76cd1d0f8692d3fe82fe9d83665b99e9b63f4826 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 259 | sce | Example5_9.sce | //Example 5.9
//To Design a Chebyshev Filter with Given Specifications
clear;
clc ;
close ;
ap=2.5;//db
as=30;//db
op=20;//rad/sec
os=50;//rad/sec
N=acosh(sqrt((10^(0.1*as)-1)/(10^(0.1*ap)-1)))/acosh(os/op);
disp(ceil(N),'Order of the filter, N ='); |
f9b576f8d3b7f1cf9a98157277cafaf34510e71c | c3f30c57c194640b9ce943b27456d4d7bd7a6706 | /exp6/exp6.1.sce | 6eda20021d35635039bca64602a508418cd24b80 | [] | no_license | dikshitakambri/Image-Processing-Using-Scilab | af7d2f738c271edb0f12c9825b7a044233668f67 | 9cb0a7f2b0ac402c54bd297f28d578a2905c3da8 | refs/heads/master | 2023-04-18T00:11:42.093266 | 2021-04-27T08:23:52 | 2021-04-27T08:23:52 | 362,016,834 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 878 | sce | exp6.1.sce | //Arithmetic Mean Filter
//Dikshita Kambri 118A2044 A3
clc;
clear all;
im = imread("C:\Users\hp\Documents\Image Processing-Scilab\Images\coins.png");
imng = imnoise(im, 'gaussian',0,0.01);
imng = double(imng);
[r c] = size(imng);
//Zero pad the image
imgpad = zeros(r+2,c+2);
out = zeros(r,c);
outp = zeros(r+2,c+2);
rp = r+2;
cp = c+2;
imgpad(2:rp-1,2:cp-1) = imng;
//a=z
//[rp cp] = size(imgpad);
for i=2: rp-1
for j= 2:cp-1
x= imgpad(i-1:i+1, j-1:j+1)
outp(i,j) = sum(x)/9; //arithmetic mean
b(i,j) = (prod(x))^(1/9); //geometric mean
x = gsort(x); //median filter
b1(i,j)= x(5);
end
end
figure(1)
subplot(1,2,1)
//figure(1)
title('Original Image');
imshow(im);
subplot(1,2,2)
//figure(2)
title("Noisy Image");
imshow(uint8(imng);
subplot(1,3,3)
//figure(3)
title("Output Image");
imshow(uint8(outp(2:rp-1, 2: cp-1)));
|
e60471e951491e8d2cba0ae9cf61be6fdbb7b474 | 3ac0ac023b11531abbc3ed0b303423c64c1e9a3d | /TP1/crabe-tp.sce | 65dc57fd18f047ce1fb0805333f3a5d5d9f0154c | [] | no_license | LouisTrezzini/modeliser-alea | c4786ae9abbc741c73e87bfd8e7216c7f63b4555 | a4916f052db8b91f74e2145af7bb686968aa1340 | refs/heads/master | 2021-01-20T02:01:24.686747 | 2017-06-12T11:11:46 | 2017-06-12T11:11:46 | 89,359,812 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,423 | sce | crabe-tp.sce | clear
// Loi normale
function [x]=normale(y,m,s2)
x=%e^(-(y-m).^2/2/s2)/sqrt(2*%pi*s2)
endfunction;
function [proba]=test_chi2(N,p0)
n=sum(N);// taille de l'echantillon observe
// calcul de zeta_ n
zeta_n=n*sum(((N/n-p0).^2)./p0);
// nombre de degres de liberte (= nombre de classes dans N-1)
d= length(N)-1;
// on calcule la proba pour un chi 2 à d-1 degres d'etre superieur a zeta
[p,q]=cdfchi("PQ",zeta_n,d);
proba=q;
endfunction;
// Ouvrir le fichier de données (nombre de crabes par intervalle)
x=fscanfMat('crabe.txt');
x=x;
// intervalles
y=.580+.002+.004*[0:28];
yM=y+.002;
ym=y-.002;
Max=25;
crabe = zeros(sum(x));
xSum = cumsum(x);
for index= 1:29 - 1
crabe(xSum(index) : xSum(index + 1)) = y(index);
end
// Dessiner la loi normale correspondante
X = linspace(0.58, 0.7);
histplot(y, crabe);
crabeNormal = normale(X, mean(crabe), stdev(crabe)^2);
plot(X, crabeNormal, 'r');
alpha = test_chi2(crabe, normale(crabe, mean(crabe), stdev(crabe)^2))
// Données
Npop = 3;
if Npop == 3 then
pi0=[1; 3; 2]/2/2;
pi=pi0;
mu=[.57; .67; .48];
s2=[1; 1; 1]/10000;
end
if Npop == 2 then
pi0=[1; 3]/2/2;
pi=pi0;
mu=[.57; .67];
s2=[1; 1]/10000;
end
rho=ones(Npop, 1000);
// Algorithme EM pour les crabes
//------------------------------
N=1000;
iterMax = 1000;
R=zeros(iterMax + 1, 3 * Npop);
R(1, :) = [mu; pi; s2]';
for iter=1:iterMax
rho_p = zeros(Npop, N);
for k = 1:Npop
rho_p(k, :) = (pi(k) * normale(crabe, mu(k), s2(k)))';
end
norme = sum(rho_p, 'r');
for k = 1:Npop
rho_p(k, :) = rho_p(k, :) ./ norme;
end
// Etape E
pi_star = mean(rho_p, 'c');
// A0 = pi_star' * log(pi);
// A1 = rho_p(1, :) * log(normale(crabe, mu(1), s2(1));
// A1 = rho_p(2, :) * log(normale(crabe, mu(2), s2(2));
// Q = N * A0 + A1 + A2;
// Etape M
mu_star = rho_p * crabe ./ sum(rho_p, 'c');
crabe_mean = zeros(N, Npop);
for k = 1:Npop
crabe_mean(:, k) = crabe - mu_star(k);
end
s2_star = sum(rho_p .* (crabe_mean .^ 2)', 'c') ./ sum(rho_p, 'c');
R(iter + 1, :) = [mu_star; pi_star; s2_star]';
mu = mu_star;
pi = pi_star;
s2 = s2_star;
end
// Affichages
f = scf();
histplot(y, crabe);
crabe_normal = zeros(Npop, size(X, 2));
for k = 1:Npop
crabe_normal(k, :) = pi(k) * normale(X, mu(k), s2(k));
end
plot(X, [sum(crabe_normal, 'r'); crabe_normal]');
|
d86f4b9fa93ecf629545de258780729697e5b0c4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1358/CH6/EX6.10/Example610.sce | 3eb5e57d62f3362b80fe84f459df2fe94bc4fdf5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,032 | sce | Example610.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 6, Example 10")
disp("With the help of alpha1, U and C1, the velocity triangle at the blade inlet can be constructed easily as shown in Fig. Ex610")
disp("Applying the cosine rule to the triangle ABC,")
C1 = 950;
U = 380;
alpha1 = 20;
V1 = (U^2+C1^2-2*U*C1*cos(alpha1*%pi/180))^0.5
disp("Now, applying the sine rule to the triangle ABC,")
disp("V1/sin(alpha1) = C1/sin(180-beta1) = C1/sin(beta1)")
beta1 = asin(C1*sin(alpha1*%pi/180)/V1)*180/%pi
disp("From triangle ACD")
Cw1 = C1*cos(alpha1*%pi/180)
disp("As beta1 = beta2, using triangle BEF and neglecting friction loss, i.e. V1 = V2")
beta2 = beta1;
V2 = V1;
BF = V2 *cos(beta2*%pi/180)
Cw2 = BF-U
disp("Change in velocity of whirl:")
DeltaCw = Cw1+Cw2
disp("Tangential force on blades: in N")
m = 12;
F = m*DeltaCw/60
disp("Horse Power")
P = m*U*DeltaCw/(60*1000*0.746)
|
e4d72cf30ab17526ad654bb6647c62ab7d74db4b | 1573c4954e822b3538692bce853eb35e55f1bb3b | /DSP Functions/zpklp2bs/test_9.sce | 88a90742ee65caab23efb8e011b7e4b03e4bcf2b | [] | no_license | shreniknambiar/FOSSEE-DSP-Toolbox | 1f498499c1bb18b626b77ff037905e51eee9b601 | aec8e1cea8d49e75686743bb5b7d814d3ca38801 | refs/heads/master | 2020-12-10T03:28:37.484363 | 2017-06-27T17:47:15 | 2017-06-27T17:47:15 | 95,582,974 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 835 | sce | test_9.sce | // Test #9 : Valid case
exec('./zpklp2bs.sci',-1);
[z,p,k,n,d]=zpklp2bs([2 4],[8 11],7*%i,0.21,[0.54,0.8]);
disp(d);
disp(n);
disp(k);
disp(p);
disp(z);
//
//Scilab Output
//d = 1. 0.9661716 0.7419182
//n = 0.7419182 0.9661716 1.
//k = 0.3853727i
//p = -0.4659083 + 0.6803740i
// -0.4659083 - 0.6803740i
// -0.4709319 + 0.6901569i
// -0.4709319 - 0.6901569i
//z= -0.3839860 + 0.4869675i
// -0.3839860 - 0.4869675i
// -0.4448192 + 0.6372376i
// - 0.4448192 - 0.6372376i
//
//Matlab Output
//z=-0.3840 + 0.4870i
// -0.3840 - 0.4870i
// -0.4448 + 0.6372i
// -0.4448 - 0.6372i
//p=-0.4659 + 0.6804i
// -0.4659 - 0.6804i
// -0.4709 + 0.6902i
// -0.4709 - 0.6902i
//k=0.0000 + 0.3854i
//n= 0.7419 0.9662 1.0000
//d= 1.0000 0.9662 0.7419
|
5d00d7a74c293069f635909f0039a6ef3ad5383d | 449d555969bfd7befe906877abab098c6e63a0e8 | /858/CH1/EX1.3/example_3.sce | 7edee4da4a1f4954ca7e7ba39fb85692bc695fb4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,044 | sce | example_3.sce | clc
clear
printf("example 1.3 page number 20\n\n")
//to find the average weight, weight composition, gas volume in absence of SO2
y_CO2 = 0.25;
y_CO = 0.002;
y_SO2 = 0.012;
y_N2 = 0.680;
y_O2 = 0.056;
Mm = y_CO2*44+y_CO*28+y_SO2*64+y_N2*28+y_O2*32;
printf ("\n molar mass = %d \n",Mm)
printf("\n finding weight composition \n")
w_CO2 = y_CO2*44*100/Mm;
printf ("\n weight_CO2 = %f \n\n",w_CO2)
w_CO = y_CO*28*100/Mm;
printf ("weight_CO = %f \n\n",w_CO)
w_SO2 = y_SO2*64*100/Mm;
printf ("weight_SO2 = %f \n\n", w_SO2)
w_N2 = y_N2*28*100/Mm;
printf ("weight_N2 = %f \n\n", w_N2)
w_O2 = y_O2*32*100/Mm;
printf ("weight_O2 = %f \n\n", w_O2)
printf("if SO2 is removed \n\n")
v_CO2 = 25;
v_CO = 0.2;
v_N2 = 68.0;
v_O2 = 5.6;
v = v_CO2+v_CO+v_N2+v_O2;
v1_CO2 = (v_CO2*100/98.8);
printf ("volume_CO2 = %f \n\n", v1_CO2)
v1_CO = (v_CO*100/98.8);
printf ("volume_CO = %f \n\n",v1_CO)
v1_N2 = (v_N2*100/98.8);
printf ("volume_N2 = %f \n\n",v1_N2)
v1_O2 = (v_O2*100/98.8);
printf ("volume_O2 = %f \n\n",v1_O2 )
|
3adeb3775b87e7d43eac0aab34560a1603a07bbe | 449d555969bfd7befe906877abab098c6e63a0e8 | /48/CH5/EX5.5/eg_5_5.sce | 906a189985a31a9f8a78f24156f3b3ea41d67f5a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 629 | sce | eg_5_5.sce | clc;
clear;
disp("Given minimal contact network is T(w,x,y,z)=wxy+wxz+w^x^y^z^+w^x^yz");
disp("T(w,x,y,z)=wx(y+z)+w^x^(y^z^+yz)");
disp("Draw the equivalent series parallel circuit of T");
disp("Interchange the locations of contacts of w^ and x^ and connect the nodes");
disp("By connecting in the above manner there is no logical effect since the connection path is not at all used");
disp("now the lower branch of yz+y^z^ can be written as (y+z^)(y^+z) so transfer contacts can be used");
disp("This parallel connection enables us to combine two parallel z contacts and thus the minimum spring connection is obtained"); |
3d2f5805937fb0befa213f92f6c16d3f1090d37b | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH3/EX3.27/ex_3_27.sce | adc5bc911e4aeb2b19875e7d5ead030d3b4ae780 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 117 | sce | ex_3_27.sce | clear;
clc;
syms t s
H1=laplace(%e^(-2*t))
H2=laplace(2*%e^(-t))
H=H1*H2;
h=ilaplace(H)
disp(h*'u(t)',"h(t)=") |
fc10f2606cc33642860c03b7cd29266b86261d67 | 9cb37875b74a713c93c09fa50ccc70ac0f71ecdb | /CostHriFunction/Justin/SCENARIOS_ICRA/baseFixed2_01.sce | 6dc7019e0fd04f2791256436c158d577d13505ce | [] | no_license | jmainpri/move3d-assets | a5b621daaedaaf8784fed0da1e80d029c83f3983 | 939db49d17a14e052bb58324b70e6112803d3105 | refs/heads/master | 2021-01-16T17:48:56.669119 | 2016-02-16T14:04:09 | 2016-02-16T14:04:09 | 20,237,987 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,304 | sce | baseFixed2_01.sce | #************************************************************
# Scenario of Ikea
#
# date : Thu Sep 23 11:54:49 2010
#************************************************************
p3d_sel_desc_name P3D_ENV Ikea
p3d_sel_desc_name P3D_ROBOT HUMAN_ACHILE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.600000 -1.630000 0.760000 -0.060000 0.830000 59.620000 0.000000 0.000000 14.540000 -30.350000 9.770000 7.740000 25.700000 22.460000 24.390000 98.000000 34.110000 -148.270000 -8.210000 -76.970000 30.000000 -4.790000 -34.400000 0.000000 -100.420000 0.000000 4.320000 -80.930000 8.000000 84.360000 0.000000 0.000000 0.000000 4.760000 -83.140000 -0.210000 94.570000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT ROBOT_JUSTIN
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.020000 -0.440000 -53.460000 -50.040000 -5.210000 64.550000 -59.340000 -1.327433 3.871682 -45.000000 -94.000000 -50.000000 115.000000 2.000000 14.000000 40.000000 76.518418 -92.143554 -80.340000 32.254157 99.896771 -10.951267 0.189110 0.650000 -1.700000 1.110000 19.760000 -3.960000 140.690000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.020000 -0.440000 -53.460000 6.170000 -8.760000 69.782708 -61.022708 -1.327433 3.871682 -45.000000 -94.000000 -50.000000 115.000000 2.000000 14.000000 40.000000 16.384129 -108.538328 17.335817 67.811943 -3.786142 -1.941572 38.796726 1.922396 -1.077702 0.927434 14.386138 8.019157 -163.783796
p3d_constraint p3d_kuka_arm_ik 6 18 19 21 22 23 24 1 29 0 3 20 -1 1
p3d_set_cntrt_Tatt 0 -0.982797 0.018403 -0.183754 -0.036039 -0.003530 0.992963 0.118341 -0.346482 0.184640 0.116955 -0.975819 -0.017708
p3d_sel_desc_name P3D_ROBOT Lampe
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.260000 -1.150000 0.770000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Assiette
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.020000 -1.470000 0.787611 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Pommes
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.442478 -1.622419 0.762537 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Verre
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Tabouret
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.360000 0.220000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT sailLamp1
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.060000 -0.690000 2.950000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT sailLamp2
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.060000 -0.390000 2.950000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT sailLamp3
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1.060000 -0.090000 2.950000 0.000000 0.000000 -19.300000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_camera_pos 0.479048 -1.172113 0.062388 4.701375 6.283185 0.674375 0.000000 0.000000 1.000000 0.000000
|
11d9e43aa57fa7ab0ba13f53b8069dbf0797f607 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH3/EX3.4/Ex3_4.sce | a7b3787ddcef67fbe035ec38c3d8668d4ca340f1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 315 | sce | Ex3_4.sce | //Exa 3.4
//To determine distance between transmitter and receiver.
clc;
clear all;
shadow=10; //in dB
Lp=150; //in dB
//solution
disp(" Using equation given in Problem i.e Lp=133.2+40*log(d) we get,");
d=10^((Lp-10-133.2)/40);
printf(" Separation between transmitter and receiver as %.2f km',d);
|
b6f0ff5e730e3ae25e7619341a9399df2f95c687 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1991/CH8/EX8.10/10.sce | 57968e49396717683912d2a7030fd421aa3c4343 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 270 | sce | 10.sce | clc
clear
//input
v=15*10^3 //voltage
p=80*10^3 //power
r=430 //resistence
v1=150*10^3//stepped value
//calculation
i=p/v//cable current
i1=p/v1//stepped up cable current
k=i*i/(i1*i1)//ratio of power loss
//output
printf("the ratio of power loss is %d",k)
|
32654e7118b7efc0dfcd94a69f1ecd7557e4f7a0 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/VF58UMP/ATWM1_Working_Memory_MEG_VF58UMP_Session2/ATWM1_Working_Memory_MEG_Salient_Uncued_Run2.sce | a840e99367853648eb2577981b07d4f4f4e392a0 | [] | 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,405 | sce | ATWM1_Working_Memory_MEG_Salient_Uncued_Run2.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_uncued_run2";
#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;
42 61 292 292 399 125 2142 2992 2492 fixation_cross gabor_038 gabor_102 gabor_022 gabor_128 gabor_038_alt gabor_102_alt gabor_022 gabor_128 "2_1_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2500_gabor_patch_orientation_038_102_022_128_target_position_1_2_retrieval_position_2" gabor_circ gabor_055_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_1_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_055_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2192 2992 1992 fixation_cross gabor_140 gabor_006 gabor_034 gabor_075 gabor_140 gabor_006 gabor_034_alt gabor_075_alt "2_2_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2000_gabor_patch_orientation_140_006_034_075_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_075_framed blank blank blank blank fixation_cross_white "2_2_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_075_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1892 2992 2042 fixation_cross gabor_128 gabor_063 gabor_174 gabor_150 gabor_128 gabor_063 gabor_174_alt gabor_150_alt "2_3_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2050_gabor_patch_orientation_128_063_174_150_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_174_framed gabor_circ blank blank blank blank fixation_cross_white "2_3_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_174_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2042 2992 2342 fixation_cross gabor_165 gabor_083 gabor_037 gabor_098 gabor_165_alt gabor_083 gabor_037_alt gabor_098 "2_4_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2350_gabor_patch_orientation_165_083_037_098_target_position_1_3_retrieval_position_1" gabor_119_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_4_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_119_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2042 2992 2242 fixation_cross gabor_165 gabor_149 gabor_039 gabor_016 gabor_165 gabor_149 gabor_039_alt gabor_016_alt "2_5_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2250_gabor_patch_orientation_165_149_039_016_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_039_framed gabor_circ blank blank blank blank fixation_cross_white "2_5_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_039_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 64 292 292 399 125 1942 2992 2392 fixation_cross gabor_057 gabor_025 gabor_170 gabor_042 gabor_057_alt gabor_025 gabor_170_alt gabor_042 "2_6_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_300_300_399_1950_3000_2400_gabor_patch_orientation_057_025_170_042_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_042_framed blank blank blank blank fixation_cross_white "2_6_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_042_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1742 2992 2242 fixation_cross gabor_120 gabor_180 gabor_091 gabor_015 gabor_120 gabor_180_alt gabor_091 gabor_015_alt "2_7_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2250_gabor_patch_orientation_120_180_091_015_target_position_2_4_retrieval_position_2" gabor_circ gabor_180_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_7_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_180_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2042 2992 2042 fixation_cross gabor_130 gabor_003 gabor_071 gabor_178 gabor_130_alt gabor_003 gabor_071_alt gabor_178 "2_8_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_130_003_071_178_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_022_framed gabor_circ blank blank blank blank fixation_cross_white "2_8_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_022_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1992 2992 2092 fixation_cross gabor_133 gabor_067 gabor_107 gabor_021 gabor_133_alt gabor_067 gabor_107_alt gabor_021 "2_9_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2100_gabor_patch_orientation_133_067_107_021_target_position_1_3_retrieval_position_1" gabor_179_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_9_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1792 2992 2142 fixation_cross gabor_168 gabor_008 gabor_153 gabor_085 gabor_168_alt gabor_008_alt gabor_153 gabor_085 "2_10_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2150_gabor_patch_orientation_168_008_153_085_target_position_1_2_retrieval_position_1" gabor_030_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_10_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_030_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2242 2992 2192 fixation_cross gabor_174 gabor_129 gabor_006 gabor_158 gabor_174_alt gabor_129 gabor_006 gabor_158_alt "2_11_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2200_gabor_patch_orientation_174_129_006_158_target_position_1_4_retrieval_position_1" gabor_039_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_11_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_039_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 64 292 292 399 125 1942 2992 2192 fixation_cross gabor_160 gabor_084 gabor_002 gabor_109 gabor_160 gabor_084_alt gabor_002_alt gabor_109 "2_12_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_300_300_399_1950_3000_2200_gabor_patch_orientation_160_084_002_109_target_position_2_3_retrieval_position_1" gabor_160_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_12_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_160_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1792 2992 2442 fixation_cross gabor_140 gabor_035 gabor_110 gabor_001 gabor_140_alt gabor_035 gabor_110 gabor_001_alt "2_13_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2450_gabor_patch_orientation_140_035_110_001_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_051_framed blank blank blank blank fixation_cross_white "2_13_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_051_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2092 2992 2292 fixation_cross gabor_133 gabor_115 gabor_099 gabor_028 gabor_133_alt gabor_115 gabor_099 gabor_028_alt "2_14_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2300_gabor_patch_orientation_133_115_099_028_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_028_framed blank blank blank blank fixation_cross_white "2_14_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_028_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2242 2992 1942 fixation_cross gabor_116 gabor_096 gabor_180 gabor_007 gabor_116 gabor_096_alt gabor_180_alt gabor_007 "2_15_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_1950_gabor_patch_orientation_116_096_180_007_target_position_2_3_retrieval_position_2" gabor_circ gabor_096_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_15_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_096_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2042 2992 2142 fixation_cross gabor_104 gabor_015 gabor_128 gabor_176 gabor_104_alt gabor_015 gabor_128 gabor_176_alt "2_16_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2150_gabor_patch_orientation_104_015_128_176_target_position_1_4_retrieval_position_1" gabor_104_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_16_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 64 292 292 399 125 2042 2992 2492 fixation_cross gabor_109 gabor_166 gabor_093 gabor_146 gabor_109 gabor_166 gabor_093_alt gabor_146_alt "2_17_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_300_300_399_2050_3000_2500_gabor_patch_orientation_109_166_093_146_target_position_3_4_retrieval_position_1" gabor_109_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_17_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_109_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1792 2992 2142 fixation_cross gabor_129 gabor_064 gabor_013 gabor_099 gabor_129_alt gabor_064 gabor_013 gabor_099_alt "2_18_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2150_gabor_patch_orientation_129_064_013_099_target_position_1_4_retrieval_position_1" gabor_083_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_18_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_083_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1892 2992 2092 fixation_cross gabor_095 gabor_163 gabor_007 gabor_078 gabor_095 gabor_163_alt gabor_007 gabor_078_alt "2_19_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2100_gabor_patch_orientation_095_163_007_078_target_position_2_4_retrieval_position_2" gabor_circ gabor_118_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_19_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_118_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 63 292 292 399 125 1892 2992 2542 fixation_cross gabor_104 gabor_083 gabor_139 gabor_025 gabor_104 gabor_083_alt gabor_139_alt gabor_025 "2_20_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_300_300_399_1900_3000_2550_gabor_patch_orientation_104_083_139_025_target_position_2_3_retrieval_position_1" gabor_058_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_20_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_058_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1742 2992 2542 fixation_cross gabor_103 gabor_026 gabor_146 gabor_076 gabor_103_alt gabor_026 gabor_146_alt gabor_076 "2_21_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2550_gabor_patch_orientation_103_026_146_076_target_position_1_3_retrieval_position_1" gabor_103_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_21_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_103_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1842 2992 2392 fixation_cross gabor_169 gabor_127 gabor_015 gabor_058 gabor_169_alt gabor_127_alt gabor_015 gabor_058 "2_22_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2400_gabor_patch_orientation_169_127_015_058_target_position_1_2_retrieval_position_2" gabor_circ gabor_127_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_22_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_127_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1992 2992 2542 fixation_cross gabor_048 gabor_063 gabor_029 gabor_092 gabor_048_alt gabor_063_alt gabor_029 gabor_092 "2_23_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2550_gabor_patch_orientation_048_063_029_092_target_position_1_2_retrieval_position_2" gabor_circ gabor_063_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_23_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_063_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1992 2992 2592 fixation_cross gabor_154 gabor_170 gabor_047 gabor_022 gabor_154_alt gabor_170 gabor_047_alt gabor_022 "2_24_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2600_gabor_patch_orientation_154_170_047_022_target_position_1_3_retrieval_position_1" gabor_109_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_24_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_109_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1992 2992 1892 fixation_cross gabor_083 gabor_001 gabor_170 gabor_118 gabor_083 gabor_001_alt gabor_170_alt gabor_118 "2_25_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_083_001_170_118_target_position_2_3_retrieval_position_2" gabor_circ gabor_001_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_25_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_001_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 64 292 292 399 125 1742 2992 2192 fixation_cross gabor_006 gabor_092 gabor_030 gabor_165 gabor_006_alt gabor_092 gabor_030_alt gabor_165 "2_26_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_300_300_399_1750_3000_2200_gabor_patch_orientation_006_092_030_165_target_position_1_3_retrieval_position_2" gabor_circ gabor_092_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_26_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_092_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1842 2992 2442 fixation_cross gabor_180 gabor_048 gabor_153 gabor_032 gabor_180 gabor_048 gabor_153_alt gabor_032_alt "2_27_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2450_gabor_patch_orientation_180_048_153_032_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_107_framed gabor_circ blank blank blank blank fixation_cross_white "2_27_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_107_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2242 2992 1892 fixation_cross gabor_102 gabor_122 gabor_079 gabor_033 gabor_102_alt gabor_122 gabor_079 gabor_033_alt "2_28_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_1900_gabor_patch_orientation_102_122_079_033_target_position_1_4_retrieval_position_1" gabor_149_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_28_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_149_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2242 2992 1892 fixation_cross gabor_053 gabor_069 gabor_137 gabor_024 gabor_053_alt gabor_069 gabor_137_alt gabor_024 "2_29_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_1900_gabor_patch_orientation_053_069_137_024_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_137_framed gabor_circ blank blank blank blank fixation_cross_white "2_29_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_137_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 63 292 292 399 125 1742 2992 2092 fixation_cross gabor_011 gabor_101 gabor_167 gabor_136 gabor_011 gabor_101_alt gabor_167 gabor_136_alt "2_30_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_300_300_399_1750_3000_2100_gabor_patch_orientation_011_101_167_136_target_position_2_4_retrieval_position_1" gabor_057_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_30_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_057_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2142 2992 2442 fixation_cross gabor_130 gabor_052 gabor_077 gabor_158 gabor_130_alt gabor_052 gabor_077 gabor_158_alt "2_31_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_130_052_077_158_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_158_framed blank blank blank blank fixation_cross_white "2_31_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_158_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2142 2992 2242 fixation_cross gabor_103 gabor_023 gabor_042 gabor_159 gabor_103_alt gabor_023_alt gabor_042 gabor_159 "2_32_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2250_gabor_patch_orientation_103_023_042_159_target_position_1_2_retrieval_position_2" gabor_circ gabor_071_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_32_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_071_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1942 2992 2342 fixation_cross gabor_041 gabor_131 gabor_009 gabor_162 gabor_041_alt gabor_131 gabor_009_alt gabor_162 "2_33_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2350_gabor_patch_orientation_041_131_009_162_target_position_1_3_retrieval_position_1" gabor_179_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_33_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 63 292 292 399 125 2092 2992 1992 fixation_cross gabor_143 gabor_168 gabor_102 gabor_058 gabor_143 gabor_168 gabor_102_alt gabor_058_alt "2_34_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_300_300_399_2100_3000_2000_gabor_patch_orientation_143_168_102_058_target_position_3_4_retrieval_position_2" gabor_circ gabor_031_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_34_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_031_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2092 2992 2092 fixation_cross gabor_145 gabor_018 gabor_058 gabor_128 gabor_145_alt gabor_018 gabor_058_alt gabor_128 "2_35_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2100_gabor_patch_orientation_145_018_058_128_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_107_framed gabor_circ blank blank blank blank fixation_cross_white "2_35_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_107_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1892 2992 2192 fixation_cross gabor_176 gabor_057 gabor_133 gabor_114 gabor_176 gabor_057_alt gabor_133_alt gabor_114 "2_36_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2200_gabor_patch_orientation_176_057_133_114_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_087_framed gabor_circ blank blank blank blank fixation_cross_white "2_36_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_087_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1892 2992 2392 fixation_cross gabor_095 gabor_056 gabor_167 gabor_112 gabor_095 gabor_056 gabor_167_alt gabor_112_alt "2_37_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2400_gabor_patch_orientation_095_056_167_112_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_027_framed gabor_circ blank blank blank blank fixation_cross_white "2_37_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_027_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1942 2992 1942 fixation_cross gabor_073 gabor_054 gabor_001 gabor_026 gabor_073 gabor_054_alt gabor_001 gabor_026_alt "2_38_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_1950_gabor_patch_orientation_073_054_001_026_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_026_framed blank blank blank blank fixation_cross_white "2_38_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_026_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 64 292 292 399 125 2142 2992 2592 fixation_cross gabor_003 gabor_154 gabor_178 gabor_070 gabor_003 gabor_154_alt gabor_178_alt gabor_070 "2_39_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_300_300_399_2150_3000_2600_gabor_patch_orientation_003_154_178_070_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_070_framed blank blank blank blank fixation_cross_white "2_39_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_070_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1742 2992 2292 fixation_cross gabor_009 gabor_148 gabor_124 gabor_037 gabor_009_alt gabor_148 gabor_124_alt gabor_037 "2_40_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2300_gabor_patch_orientation_009_148_124_037_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_124_framed gabor_circ blank blank blank blank fixation_cross_white "2_40_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_124_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1992 2992 2042 fixation_cross gabor_021 gabor_086 gabor_144 gabor_172 gabor_021_alt gabor_086 gabor_144_alt gabor_172 "2_41_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2050_gabor_patch_orientation_021_086_144_172_target_position_1_3_retrieval_position_1" gabor_021_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_41_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_021_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1992 2992 2242 fixation_cross gabor_110 gabor_170 gabor_026 gabor_004 gabor_110_alt gabor_170_alt gabor_026 gabor_004 "2_42_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2250_gabor_patch_orientation_110_170_026_004_target_position_1_2_retrieval_position_1" gabor_110_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_42_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_110_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2142 2992 2592 fixation_cross gabor_036 gabor_171 gabor_066 gabor_001 gabor_036_alt gabor_171_alt gabor_066 gabor_001 "2_43_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2600_gabor_patch_orientation_036_171_066_001_target_position_1_2_retrieval_position_1" gabor_036_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_43_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_036_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2042 2992 1992 fixation_cross gabor_064 gabor_083 gabor_138 gabor_100 gabor_064_alt gabor_083 gabor_138_alt gabor_100 "2_44_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2000_gabor_patch_orientation_064_083_138_100_target_position_1_3_retrieval_position_1" gabor_015_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_44_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2092 2992 1942 fixation_cross gabor_021 gabor_158 gabor_042 gabor_082 gabor_021 gabor_158_alt gabor_042 gabor_082_alt "2_45_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_1950_gabor_patch_orientation_021_158_042_082_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_082_framed blank blank blank blank fixation_cross_white "2_45_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_082_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2192 2992 2242 fixation_cross gabor_167 gabor_001 gabor_078 gabor_043 gabor_167_alt gabor_001_alt gabor_078 gabor_043 "2_46_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2250_gabor_patch_orientation_167_001_078_043_target_position_1_2_retrieval_position_1" gabor_167_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_46_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_167_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 63 292 292 399 125 1742 2992 1992 fixation_cross gabor_154 gabor_042 gabor_124 gabor_097 gabor_154 gabor_042_alt gabor_124 gabor_097_alt "2_47_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_300_300_399_1750_3000_2000_gabor_patch_orientation_154_042_124_097_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_079_framed gabor_circ blank blank blank blank fixation_cross_white "2_47_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_079_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1942 2992 2142 fixation_cross gabor_168 gabor_013 gabor_036 gabor_124 gabor_168 gabor_013_alt gabor_036 gabor_124_alt "2_48_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2150_gabor_patch_orientation_168_013_036_124_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_078_framed blank blank blank blank fixation_cross_white "2_48_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_078_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1842 2992 2342 fixation_cross gabor_083 gabor_114 gabor_038 gabor_055 gabor_083 gabor_114 gabor_038_alt gabor_055_alt "2_49_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_083_114_038_055_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_055_framed blank blank blank blank fixation_cross_white "2_49_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_055_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2242 2992 2092 fixation_cross gabor_023 gabor_154 gabor_113 gabor_087 gabor_023 gabor_154_alt gabor_113_alt gabor_087 "2_50_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2100_gabor_patch_orientation_023_154_113_087_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_113_framed gabor_circ blank blank blank blank fixation_cross_white "2_50_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_113_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1742 2992 2392 fixation_cross gabor_151 gabor_097 gabor_025 gabor_067 gabor_151 gabor_097 gabor_025_alt gabor_067_alt "2_51_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2400_gabor_patch_orientation_151_097_025_067_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_067_framed blank blank blank blank fixation_cross_white "2_51_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_067_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1892 2992 2492 fixation_cross gabor_176 gabor_052 gabor_003 gabor_136 gabor_176 gabor_052_alt gabor_003 gabor_136_alt "2_52_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2500_gabor_patch_orientation_176_052_003_136_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_088_framed blank blank blank blank fixation_cross_white "2_52_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_088_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 64 292 292 399 125 1892 2992 2292 fixation_cross gabor_024 gabor_162 gabor_055 gabor_092 gabor_024 gabor_162 gabor_055_alt gabor_092_alt "2_53_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_300_300_399_1900_3000_2300_gabor_patch_orientation_024_162_055_092_target_position_3_4_retrieval_position_1" gabor_024_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_53_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_024_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2192 2992 2142 fixation_cross gabor_133 gabor_154 gabor_095 gabor_118 gabor_133 gabor_154_alt gabor_095_alt gabor_118 "2_54_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2150_gabor_patch_orientation_133_154_095_118_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_095_framed gabor_circ blank blank blank blank fixation_cross_white "2_54_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 64 292 292 399 125 2192 2992 2292 fixation_cross gabor_063 gabor_002 gabor_174 gabor_129 gabor_063_alt gabor_002 gabor_174 gabor_129_alt "2_55_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2300_gabor_patch_orientation_063_002_174_129_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_174_framed gabor_circ blank blank blank blank fixation_cross_white "2_55_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_174_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1842 2992 1942 fixation_cross gabor_084 gabor_115 gabor_147 gabor_001 gabor_084_alt gabor_115_alt gabor_147 gabor_001 "2_56_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_1950_gabor_patch_orientation_084_115_147_001_target_position_1_2_retrieval_position_2" gabor_circ gabor_115_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_56_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_115_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2092 2992 2342 fixation_cross gabor_051 gabor_073 gabor_089 gabor_104 gabor_051 gabor_073_alt gabor_089_alt gabor_104 "2_57_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2350_gabor_patch_orientation_051_073_089_104_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_138_framed gabor_circ blank blank blank blank fixation_cross_white "2_57_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_138_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 2142 2992 1892 fixation_cross gabor_009 gabor_041 gabor_058 gabor_086 gabor_009_alt gabor_041_alt gabor_058 gabor_086 "2_58_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_1900_gabor_patch_orientation_009_041_058_086_target_position_1_2_retrieval_position_2" gabor_circ gabor_041_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_58_Retrieval_Working_Memory_MEG_P6_LR_Salient_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;
42 63 292 292 399 125 1792 2992 2192 fixation_cross gabor_169 gabor_093 gabor_034 gabor_115 gabor_169_alt gabor_093 gabor_034 gabor_115_alt "2_59_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_300_300_399_1800_3000_2200_gabor_patch_orientation_169_093_034_115_target_position_1_4_retrieval_position_2" gabor_circ gabor_141_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_59_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_141_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1792 2992 2492 fixation_cross gabor_095 gabor_009 gabor_037 gabor_176 gabor_095_alt gabor_009 gabor_037_alt gabor_176 "2_60_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2500_gabor_patch_orientation_095_009_037_176_target_position_1_3_retrieval_position_1" gabor_095_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_60_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 62 292 292 399 125 1942 2992 1892 fixation_cross gabor_038 gabor_153 gabor_123 gabor_016 gabor_038 gabor_153 gabor_123_alt gabor_016_alt "2_61_Encoding_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_1900_gabor_patch_orientation_038_153_123_016_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_016_framed blank blank blank blank fixation_cross_white "2_61_Retrieval_Working_Memory_MEG_P6_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_016_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1842 2992 2342 fixation_cross gabor_137 gabor_032 gabor_098 gabor_071 gabor_137 gabor_032 gabor_098_alt gabor_071_alt "2_62_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_137_032_098_071_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_050_framed gabor_circ blank blank blank blank fixation_cross_white "2_62_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_050_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1842 2992 2542 fixation_cross gabor_135 gabor_070 gabor_085 gabor_115 gabor_135 gabor_070_alt gabor_085_alt gabor_115 "2_63_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2550_gabor_patch_orientation_135_070_085_115_target_position_2_3_retrieval_position_2" gabor_circ gabor_025_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_63_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_025_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2242 2992 2442 fixation_cross gabor_022 gabor_162 gabor_137 gabor_089 gabor_022_alt gabor_162_alt gabor_137 gabor_089 "2_64_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2450_gabor_patch_orientation_022_162_137_089_target_position_1_2_retrieval_position_1" gabor_072_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_64_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_072_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1792 2992 2042 fixation_cross gabor_093 gabor_011 gabor_031 gabor_159 gabor_093_alt gabor_011 gabor_031_alt gabor_159 "2_65_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2050_gabor_patch_orientation_093_011_031_159_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_077_framed gabor_circ blank blank blank blank fixation_cross_white "2_65_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_077_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 2092 2992 2292 fixation_cross gabor_077 gabor_095 gabor_044 gabor_061 gabor_077_alt gabor_095 gabor_044_alt gabor_061 "2_66_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2300_gabor_patch_orientation_077_095_044_061_target_position_1_3_retrieval_position_1" gabor_127_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_66_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_127_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 63 292 292 399 125 2192 2992 2592 fixation_cross gabor_094 gabor_040 gabor_011 gabor_117 gabor_094 gabor_040 gabor_011_alt gabor_117_alt "2_67_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_300_300_399_2200_3000_2600_gabor_patch_orientation_094_040_011_117_target_position_3_4_retrieval_position_2" gabor_circ gabor_177_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_67_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_177_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1842 2992 1942 fixation_cross gabor_044 gabor_156 gabor_098 gabor_017 gabor_044_alt gabor_156 gabor_098_alt gabor_017 "2_68_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_1950_gabor_patch_orientation_044_156_098_017_target_position_1_3_retrieval_position_1" gabor_179_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_68_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 63 292 292 399 125 2192 2992 2042 fixation_cross gabor_119 gabor_034 gabor_085 gabor_006 gabor_119_alt gabor_034 gabor_085 gabor_006_alt "2_69_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_300_300_399_2200_3000_2050_gabor_patch_orientation_119_034_085_006_target_position_1_4_retrieval_position_2" gabor_circ gabor_169_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_69_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_169_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
42 61 292 292 399 125 1792 2992 1992 fixation_cross gabor_015 gabor_073 gabor_162 gabor_104 gabor_015 gabor_073_alt gabor_162 gabor_104_alt "2_70_Encoding_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_015_073_162_104_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_055_framed blank blank blank blank fixation_cross_white "2_70_Retrieval_Working_Memory_MEG_P6_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_055_retrieval_position_4" 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;
}; |
2e43fe4e9ff7f747f02b8c1cf0ab3863d6c5bf61 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH1/EX0.15/EXI_15.sce | 4b54244e6b6cde5451acb7720ee7e6a8369274b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 292 | sce | EXI_15.sce | // Grob's Basic Electronics 11e
// Chapter No. I
// Example No. I_15
clc; clear;
// Find the squareroot of 4*10^6. Express the answer in scientific notation.
// Given data
A = 4*10^6; // Variable 1
B = sqrt(A);
disp (B,'The squareroot of 4*10^6 is')
disp ('i.e 2*10^3')
|
bc1ac4787e56a451b07d5e6845efe4f50b7bd856 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1640/CH2/EX2.1/2_1.sce | c6083335e80468f01da87a2a87d260e39e7fa9d1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 273 | sce | 2_1.sce | clc
//initialisation of variables
Q= 0.8 //ft^3/sec
w= 62.4 //lb/sec
d1= 3 //in
d2= 1.5 //in
//CALCULATIONS
Q1= Q*w*60/10
a1= %pi*(d1/12)^2/4
a2= %pi*(d2/12)^2/4
v1= Q/a1
v2= Q/a2
//RESULTS
printf ('v1 = %.1f ft/sec ',v1)
printf ('\n v2 = %.1f ft/sec ',v2)
|
95d7faf41d8a058df004db91146877e7264a29f7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2513/CH2/EX2.2/2_2.sce | 603c5a6191525d367b0ada07ed6950cc71e32f0b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 565 | sce | 2_2.sce | clc
//initialisation of variables
m=17.378//mg
h=20//in/sq mile
d=365//in
s=0.75//percent
a=100//sq miles
p=750000//gpd per sq mile
t=180//in
c=150//gpcd
n=64699 //gpd per sq mile
//CALCULATIONS
R=h*m//mg
A=R/d//mgd
S=s*a*t//billion gal
Q=a*p/c//gpd
P=a*n/c//people against
//RESULTS
printf('the surface water sheds and storage requirements=% f mg',R)
printf('the well watered sections of north america=% f billion gal',S)
printf('the average consumpition populations=% f gpd',Q)
printf('the presence of proper storage=% f people against',P)
|
fb1a743187698ff5987e6cac22640435efd1666c | 840f1e99752b293818f56953f47e7c08827b4a71 | /skret.sce | ecb12e7bda6432ba206386e4105bdd54020c47aa | [] | no_license | Ewkaa/FuzzyShip1 | 77e5b2dbc9ef758a31197015ad1439d3f0259c38 | 2902c280635aa5628e4e38b3b86729b7fe066b9b | refs/heads/master | 2020-04-20T12:37:41.361358 | 2019-02-02T15:55:00 | 2019-02-02T15:55:00 | 168,848,261 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,930 | sce | skret.sce |
// -------------------------------------- UTWORZENIE TABLICY ----------------------------
// ZMIENNE
XXmin=0;
XXmax=90;
XXdys=1;
XXtermy=7;
// PROGRAM
XXilosc=(XXmax-XXmin)/XXdys+1;
XX=zeros(XXtermy+1,XXilosc);
for i = 1:XXilosc
XX(1,i)=XXmin-XXdys*(1-i);
end
// ----------------------------------------------- AA ----------------------------------
// ---------------------------------------- KSZTALT TRAPEZU ----------------------------
// ZMIENNE
AAa=0;
AAx1=0;
AAx2=5;
AAb=15;
// PROGRAM
for i = 1:XXilosc
if XX(1,i)>=AAa & XX(1,i)<=AAx1 & AAa<>AAx1
AA=(XX(1,i)-AAa)/(AAx1-AAa);
elseif XX(1,i)>=AAx1 & XX(1,i)<=AAx2
AA=1;
elseif XX(1,i)>=AAx2 & XX(1,i)<=AAb & AAb<>AAx2
AA=(AAb-XX(1,i))/(AAb-AAx2);
else AA=0;
end
XX(2,i) = AA;
end
// ----------------------------------------------- BB ----------------------------------
// --------------------------------------- KSZTALT TROJKATA ----------------------------
// ZMIENNE
BBa=5;
BBx0=15;
BBb=30;
// PROGRAM
for i = 1:XXilosc
if XX(1,i)>=BBa & XX(1,i)<=BBx0 & BBa<>BBx0
BB=(XX(1,i)-BBa)/(BBx0-BBa);
elseif XX(1,i)>=BBx0 & XX(1,i)<=BBb & BBb<>BBx0
BB=(BBb-XX(1,i))/(BBb-BBx0);
else BB=0;
end
XX(3,i) = BB;
end
// ----------------------------------------------- CC ----------------------------------
// --------------------------------------- KSZTALT TROJKATA ----------------------------
// ZMIENNE
CCa=15;
CCx0=30;
CCb=45;
// PROGRAM
for i = 1:XXilosc
if XX(1,i)>=CCa & XX(1,i)<=CCx0 & CCa<>CCx0
CC=(XX(1,i)-CCa)/(CCx0-CCa);
elseif XX(1,i)>=CCx0 & XX(1,i)<=CCb & CCb<>CCx0
CC=(CCb-XX(1,i))/(CCb-CCx0);
else CC=0;
end
XX(4,i) = CC;
end
// ----------------------------------------------- DD ----------------------------------
// --------------------------------------- KSZTALT TROJKATA ----------------------------
// ZMIENNE
DDa=30;
DDx0=45;
DDb=60;
// PROGRAM
for i = 1:XXilosc
if XX(1,i)>=DDa & XX(1,i)<=DDx0 & DDa<>DDx0
DD=(XX(1,i)-DDa)/(DDx0-DDa);
elseif XX(1,i)>=DDx0 & XX(1,i)<=DDb & DDb<>DDx0
DD=(DDb-XX(1,i))/(DDb-DDx0);
else DD=0;
end
XX(5,i) = DD;
end
// ----------------------------------------------- EE ----------------------------------
// --------------------------------------- KSZTALT TROJKATA ----------------------------
// ZMIENNE
EEa=45;
EEx0=60;
EEb=75;
// PROGRAM
for i = 1:XXilosc
if XX(1,i)>=EEa & XX(1,i)<=EEx0 & EEa<>EEx0
EE=(XX(1,i)-EEa)/(EEx0-EEa);
elseif XX(1,i)>=EEx0 & XX(1,i)<=EEb & EEb<>EEx0
EE=(EEb-XX(1,i))/(EEb-EEx0);
else EE=0;
end
XX(6,i) = EE;
end
// ----------------------------------------------- FF ----------------------------------
// --------------------------------------- KSZTALT TROJKATA ----------------------------
// ZMIENNE
FFa=60;
FFx0=75;
FFb=85;
// PROGRAM
for i = 1:XXilosc
if XX(1,i)>=FFa & XX(1,i)<=FFx0 & FFa<>FFx0
FF=(XX(1,i)-FFa)/(FFx0-FFa);
elseif XX(1,i)>=FFx0 & XX(1,i)<=FFb & FFb<>FFx0
FF=(FFb-XX(1,i))/(FFb-FFx0);
else FF=0;
end
XX(7,i) = FF;
end
// ----------------------------------------------- GG ----------------------------------
// ---------------------------------------- KSZTALT TRAPEZU ----------------------------
// ZMIENNE
GGa=75;
GGx1=85;
GGx2=100;
GGb=100;
// PROGRAM
for i = 1:XXilosc
if XX(1,i)>=GGa & XX(1,i)<=GGx1 & GGa<>GGx1
GG=(XX(1,i)-GGa)/(GGx1-GGa);
elseif XX(1,i)>=GGx1 & XX(1,i)<=GGx2
GG=1;
elseif XX(1,i)>=GGx2 & XX(1,i)<=GGb & GGb<>GGx2
GG=(GGb-XX(1,i))/(GGb-GGx2);
else GG=0;
end
XX(8,i) = GG;
end
// ---------------------------------------- WYKRESY------------------------------------
subplot(1,1,1);
plot(XX(1,:),XX(2,:),'r');
mtlb_axis([XXmin XXmax 0 1.2]);
plot(XX(1,:),XX(3,:),'b');
mtlb_axis([XXmin XXmax 0 1.2]);
plot(XX(1,:),XX(4,:),'g');
mtlb_axis([XXmin XXmax 0 1.2]);
plot(XX(1,:),XX(5,:),'r');
mtlb_axis([XXmin XXmax 0 1.2]);
plot(XX(1,:),XX(6,:),'g');
mtlb_axis([XXmin XXmax 0 1.2]);
plot(XX(1,:),XX(7,:),'b');
mtlb_axis([XXmin XXmax 0 1.2]);
plot(XX(1,:),XX(8,:),'r');
mtlb_axis([XXmin XXmax 0 1.2]);
|
da03d403c62af3171069ce7c35dc4103351f7f85 | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-MathematicalFunctions/FLSech-NZ-01.tst | 5c9b0f0398d2cc8e5cd54f4c1b7afc6cb6cace78 | [] | no_license | kamleshm/intern_fuzzy | c2dd079bf08bede6bca79af898036d7a538ab4e2 | aaef3c9dc9edf3759ef0b981597746d411d05d34 | refs/heads/master | 2021-01-23T06:25:46.162332 | 2017-07-12T07:12:25 | 2017-07-12T07:12:25 | 93,021,923 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,584 | tst | FLSech-NZ-01.tst | -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Netezza
--
-- Copyright (c): 2014 Fuzzy Logix, LLC
--
-- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC.
-- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC.
-- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade
-- secret or copyright law. Dissemination of this information or reproduction of this material is
-- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC.
-- Functional Test Specifications:
--
-- Test Category: Math Functions
--
-- Test Unit Number: FLSech-Netezza-01
--
-- Name(s): FLSech
--
-- Description: Scalar function which returns the hyperbolic secant
--
-- Applications:
--
-- Signature: FLSech(N DOUBLE PRECISION)
--
-- Parameters: See Documentation
--
-- Return value: DOUBLE PRECISION
--
-- Last Updated: 11-21-2014
--
-- Author: Surya Deepak Garimella
--
-- BEGIN: TEST SCRIPT
--.run file=../PulsarLogOn.sql
--.set width 2500
-- BEGIN: POSITIVE TEST(s)
---- Positive Test 1: Positive Tests
--- Same Output, Good
SELECT FLSech(0.5) AS sech;
SELECT FLSech(50) AS sech;
---- Positive Test 2: The Output of both should be same
--- Same Output, Good
SELECT FLSech(0.785398163397448) AS sech;
SELECT FLSech(FLDeg2Rad(45))AS sech;
---- Positive Test 3: Positive Tests
--- Return expected results, Good
SELECT FLSech(FLDeg2Rad(45))AS sech;
SELECT FLSech(FLDeg2Rad(-315))AS sech;
---- Positive Test 4: Boundary check for secant
--- Return expected results, Good
SELECT FLSech(FLDeg2Rad(90))AS sech;
SELECT FLSech(FLDeg2Rad(90.000000000001))AS sech;
SELECT FLSech(FLDeg2Rad(89.999999999999))AS sech;
---- Positive Test 5: Same values
--- Return expected results;
SELECT FLSech(3.14 * -1) AS sech;
SELECT FLSech(-3.14 * -1) AS sech;
---- Positive Test 6: Boundary Check
--- Return expected results, Good
SELECT FLSech(1e308) AS sech;
SELECT FLSech(1e-307) AS sech;
SELECT FLSech(-1e308) AS sech;
SELECT FLSech(-1e-307) AS sech;
-- END: POSITIVE TEST(s)
-- BEGIN: NEGATIVE TEST(s)
---- Negative Test 1: Out of Boundary for arguments
--- Return expected error, Good
SELECT FLSech(1e400) AS sech;
SELECT FLSech(1e-400) AS sech;
SELECT FLSech(-1e400) AS sech;
SELECT FLSech(-1e-400) AS sech;
---- Negative Test 3: Invalid Data Type
--- Return expected error, Good
SELECT FLSech(NULL) AS sech;
SELECT FLSech(NULL * -1) AS sech;
-- END: NEGATIVE TEST(s)
-- END: TEST SCRIPT
|
21406164e7fb054edb2504f16930f45d9bd8cf29 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/util/%sp_diag.sci | 9910ea76a2596fcae0d76359327967b0b5458465 | [
"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 | 658 | sci | %sp_diag.sci | function d=%sp_diag(a,k)
// %sp_diag - implement diag function for sparse matrix, rational matrix ,..
// Copyright INRIA
[lhs,rhs]=argn(0)
if rhs==1 then k=0,end
[ij,v,sz]=spget(a)
m=sz(1);n=sz(2)
if m>1&n>1 then
l=find(ij(:,1)==(ij(:,2)-k))
if k<=0 then
mn=mini(m+k,n)
i0=-k
else
mn=min(m,n-k)
i0=0
end
kk=abs(k)
if l==[] then d=sparse([],[],[mn,1]);return;end
d=sparse([ij(l,1)-i0,ones(ij(l,1))],v(l),[mn,1])
else
if m>1 then ij=ij(:,1);else ij=ij(:,2);end
nn = max(m,n)+abs(k)
if ij==[] then
d=sparse([],[],[nn,nn])
else
d=sparse([ij,ij+k],v,[nn,nn])
end
end
|
7a9e121d9aa9a6ce3e96829b52bef7d61e416aec | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH2/EX2.31/2_31.sce | 0dd04a94f79c87f6b6cbf9a0081e647c7f9116ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 390 | sce | 2_31.sce | clc,clear
printf('Example 2.31\n\n')
V=230
R_a=0.15,R_sh=250 //armature and shunt field resistance
I_a1=50, I_a2= 80
N_1=800, N_2=1000
I_sh1= V / R_sh
E_b1 = V - I_a1*R_a
E_b2 = V - I_a2*R_a
I_sh2=I_sh1*(E_b2/E_b1)*(N_1/N_2) //Because N (prop.) E_b/ I_sh
R_x= (V/I_sh2 ) - R_sh //because I_sh2 = V /(R_x+ R_sh)
printf('Resistance to be added is \n\nR_x=%.0f ohms',R_x)
|
8d7d2648d548e50231e8959bed8eca9a37357c93 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2252/CH9/EX9.1/Ex9_1.sce | 6f76c11a17c59cf39858a27d6669c7ac7d454787 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 747 | sce | Ex9_1.sce |
function[r]=mag(A)
x=real(A)
y=imag(A)
r=sqrt(x^2+y^2)
endfunction
j=%i
//considering coils to be star connected
Vl=400//line voltage
Vph=Vl/sqrt(3)
Rph=15//resistance of load
Xl=2*%pi*50*.03//inductive reactance of each coil
Zph=Rph+Xl*j
Iph=Vph/mag(Zph)
Il=Iph
pf=Rph/mag(Zph)//power factor
P=sqrt(3)*Vl*Il*pf
mprintf("In star connected circuit,\nPhase current=%f A,\nLine current=%f A,\nPower absorbed=%f kW\n", Iph, Il,P/10^3)
//considering coils to be delta connected
Vph=Vl
Iph=Vph/mag(Zph)
Il=sqrt(3)*Iph
P=sqrt(3)*Vl*Il*pf
mprintf("In delta connected circuit,\nPhase current=%f A,\nLine current=%f A,\nPower absorbed=%f kW\n", Iph, Il,P/10^3)
//answers vary from the textbook due to round off error
|
ba38d5de0b68277403e762056cd8e7ccfe036277 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3755/CH11/EX11.1/Ex11_1.sce | 412916241b4640e5624cd8142dcb40b02d364502 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex11_1.sce | clear
//
//
//
//Variable declaration
mew0=4*%pi*10^-7;
B=0.2; //magnetic induction(web/m^2)
H=500; //magnetic field intensity(amp/m)
//Calculation
mewr=B/(mew0*H); //relative permeability
chi=mewr-1; //susceptibility
//Result
printf("\n relative permeability is %0.1f ",mewr)
printf("\n susceptibility is %0.1f ",chi)
printf("\n answer in the book varies due to rounding off errors")
|
933c8ca6f2de229858f83e9daa62a3032efd8b08 | 9b68b3d73b63ebcbfe18cc9a4aa8e91c84833a84 | /tests/libs/hdf5/test-h5-wrappers-new/C/H5G/testfiles/110/h5ex_g_iterate.tst | 66a4ae927ff240ea08aec04511468eb4a1b42ba5 | [
"LicenseRef-scancode-llnl",
"LicenseRef-scancode-hdf4",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | openhpc/ohpc | 17515db5082429eb9f250f12bf242b994beb715f | 725a1f230434d0f08153ba1a5d0a7418574f8ae9 | refs/heads/3.x | 2023-08-19T02:15:14.682630 | 2023-08-18T19:33:51 | 2023-08-18T19:34:18 | 43,318,561 | 827 | 247 | Apache-2.0 | 2023-09-14T01:22:18 | 2015-09-28T18:20:29 | C | UTF-8 | Scilab | false | false | 80 | tst | h5ex_g_iterate.tst | Objects in root group:
Dataset: DS1
Datatype: DT1
Group: G1
Dataset: L1
|
d8ad1435549bca15e68f906aa80567a26e57a69f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1523/CH12/EX12.9/ex12_9.sce | f1daea1f8c3bb1068ca0d6cb80f99b5bc48ee258 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 538 | sce | ex12_9.sce | // Network Synthesis : example 12.9 : (pg 12.6)
s=poly(0,'s');
p1=((s^5)+(3*(s^3))+(2*s));
p2=((5*(s^4))+9*(s^2)+2);
[r,q]=pdiv(p1,p2);
[r1,q1]=pdiv(p2,r);
[r2,q2]=pdiv(r,r1);
[r3,q3]=pdiv(r1,r2);
[r4,q4]=pdiv(r2,r3);
printf("\n P(s) = ((s^5)+(3*(s^3))+(2*s))");
printf("\n d/ds.P(s)= ((5*(s^4))+9*(s^2)+2)");
printf("\nQ(s)=P(s)/d/ds.P(s)");
// values of quotients in continued fraction expansion
disp(q);
disp(q1);
disp(q2);
disp(q3);
disp(q4);
printf("\nSince all the quotient terms are positive, P(s) is hurwitz");
|
a05d980818c9279ce6b57cf8827dd525b24421ea | 449d555969bfd7befe906877abab098c6e63a0e8 | /3841/CH4/EX4.6/Ex4_6.sce | c7fa3e404e0f851b2400e7d171b9a9ec519db9d4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 178 | sce | Ex4_6.sce | clear
//given
//compute the gas force action on pistion
//use the figure to compute it
p=500.
D=5**2
//force=pressure*area
area=0.785*D
F=p*area
printf("\n \n force %.2f lb",F)
|
d9f614102d000e3ec53e2ef60ee1d314ce3430b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH20/EX20.4/20_4.sce | 0c24701baafb3acb9152fba7675d58f1ebcd6474 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 381 | sce | 20_4.sce | //Fly-wheel
//theta=200*%pi //radian
omega0=(120*2*%pi)/(60) //rad/sec
omega=(160*2*%pi)/(60) //rad/sec
//Using kinematic relation
alpha=0.0977 //rad/sec^2
//Also
t=(16.755-4*%pi)/0.0977 //sec
//theta' be the total angular displacement in reaching the velocity of 160 rpm
theta=(1436.1)/(2*%pi) //revolution
printf("\nt=%.3f sec\ntheta=%.3f revolution",t,theta)
|
dcbb330400d56683142110322992809aaa4acf57 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3161/CH1/EX1.2/Ex1_2.sce | 076106ac05855f9cc9dd0100f5f6c1e44f5fc6b1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 333 | sce | Ex1_2.sce | clc;
//page 12
//problem 1.2
//Given signal u = 2*sin(0.5*%pi*t)
//Since u is periodic, averaging over -infinity to + infinity will give the same result as averaging over -2 to 2, where 4 is the time period.
t0 = -2;
t1 = 2;
E = integrate('(2*sin(0.5*%pi*t))^2','t',t0,t1)/4;
disp(E,'The power of the signal is ');
|
ef3f5fb4847f4ec16205f7a15f4f71d078d2bf33 | 449d555969bfd7befe906877abab098c6e63a0e8 | /995/CH5/EX5.7/Ex5_7.sce | 00bd931df03844ed5bac47b91618e5e9123b0f30 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 182 | sce | Ex5_7.sce | //Ex:5.7
clc;
clear;
close;
hfe=200
I_c=10*10^-3;
dI_b=I_c/hfe;
dI_c=hfe*dI_b/100;
printf("Base current = %f A ",dI_b);
printf("\nChange in collector current = %f mA",dI_c); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.