blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
214
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
506d9b82172b90fd07ca90277200fbe9b7fe365b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH17/EX17.4/Ex17_4.sce | 9835a88e31e36eb4008acedf75653e095a4fd13a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,063 | sce | Ex17_4.sce | //Example 17_4 page no:834
clc;
//given
k=500;
fc=10000;
m=0.4;
//Calculating the impedence and capacitance
L=k/(4*%pi*fc);
C=1/(4*%pi*fc*k);
//calculating T-section elements
C1=2*C/m;
L1=L/m;
C2=(4*m)*C/(1-m^2);
C1=C1*10^6;//converting to microFarad
L1=L1*1000;//converting to milliHenry
C2=C2*10^6;//converting to microFarad
disp("the T-section elements are");
disp(C1,"the capacitance between which inductance is connected is (in microFarad)");
disp(L1,"the inducatance connected in parallel is (in mH)");
disp(C2,"the capacitance connected in series is (in microFarad)");
//calculating the pi-section elements
L1=2*L/m;
L2=(4*m)*L/(1-m^2);
C1=C/m;
C1=C1*10^6;//converting to microFarad
L1=L1*1000;//converting to milliHenry
L2=L2*1000;//converting to milliHenry
disp("the value of pi section elements are");
disp(C1,"the capacitance connected in parallel to inductor is(in microFarad)");
disp(L1,"the inductance connected parallel to each other is (in mH)");
disp(L2,"the inductance connected parallel to capacitor is(in mH)");
|
8d7c666730c794917a5c4b8054157905e5acfe86 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3819/CH3/EX3.30/Ex3_30.sce | adeb108e04b9bdcedcf196af1e0c666090978cfa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 544 | sce | Ex3_30.sce | // A Textbook of Fluid Mecahnics and Hydraulic Machines - By R K Bansal
// Chapter 3-Hydrostatic Forces on surfaces
// Problem 3.30
//Data given in the Problem
dens=1000
g=9.81
b=1
y0=9
//Calculations
//1)
h=y0/2
A=y0*1
F_x=dens*g*A*h
mprintf("The thrust is %f N in x direction \n",F_x)
//2)
F_y=dens*g*integrate("2*y^0.5","y",0,9)
mprintf("The thrust is %f N in y direction \n",F_y)
F=(F_x^2+F_y^2)^0.5
theta =(atan(F_y/F_x))*180/%pi
mprintf("The Resultant force is %f kN at an angle of %f degrees \n",F*10^-3,theta)
|
c8e3e6b2e02b97297f619674eb8703ed08b16df3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2863/CH2/EX2.22/ex2_22.sce | 35336dad63bbb44f3186955c90638f86393e1743 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 286 | sce | ex2_22.sce | //chapter 2
printf("\n");
dl=1/40;
Im=125;
Rloss=1;
Rrad=80*(%pi)^2*(dl)^2;
printf("the Radiation resistance is %gohm",Rrad);
Irms=Im/sqrt(2);
Prad=Rrad*(Irms)^2;
printf("\nthe Power radiated is %gW",Prad);
n=Rrad/(Rrad+Rloss);
printf("\nthe radiation efficiency is %g",n);
|
61f11d8e054fb9fdd8fdebcae0f9495b5446d796 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2672/CH2/EX2.17/Ex2_17.sce | d6124090761b5ab0a595518a2c349e801dd9aa78 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 566 | sce | Ex2_17.sce | //Ex_2_17
clc;
clear;
close;
format('v',5);
//given data :
CD=10/100;BE=10/100;AF=10/100;//m
BC=8/100;ED=8/100;AB=8/100;EF=8/100;//m
BCDE=BC+CD+ED;//m
BAFE=AB+BE+EF;//m
A=2*2*10^-4;//m^2
mu_r=1200;///relative permeability
N=800;//turns
fi2=2*10^-3;//Wb
mu0=4*%pi*10^-7;//permeability of air
S2=BAFE/(mu0*mu_r*A);//Wb/m^2
S1=BE/(mu0*mu_r*A);//Wb/m^2
fi1=fi2*S2/S1;//Wb
fi=fi1+fi2;//Wb
AT2=fi*S2;//AT//for portion BAFE
AT1=fi1*S1;//AT//for portion BCDE
AT=AT1+AT2;//AT//Toal AT required
NI=AT;//AT
I=NI/N;//A
disp(I,"Magnetizing current(A)");
|
6284c620beeaef198e7ea5e1ab6d9d6cf33bbbfb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1223/CH8/EX8.3/Ex8_3.sce | c0eecce6ab6ae37aad2e46ae341690bd55e6b750 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 362 | sce | Ex8_3.sce | clear;
clc;
//Example 8.3
Rcsnk=1;//degree celsius per watt
Rsamb=5;//degree celsius per watt
Tjmax=175;//maximum junction temperature
Toc=25;
Tamb=25;
Pr=20;//rated power W
Rdcase=(Tjmax-Toc)/Pr;
printf('\ndevice to case thermal resistance=%.2f °C/W\n',Rdcase)
P=(Tjmax-Tamb)/(Rdcase+Rcsnk+Rsamb);
printf('\nmaximum power dissipation=%.2f W\n',P)
|
54fdfef464a8180eeb1292c3ef9080dfbc2ee2ca | b9c6de66a61d6f9a57edaa44baf92266ccbab3db | /tests/binomial/binocdf.tst | 4a634607aab957f96d06202094a5995b2b088b41 | [] | no_license | papriwalprateek/distfun-scilab | 81b3edef0af1d1908e05472dfb15b0a55f61571d | 82fd34521d1e6ebb6513773264b54a0d48f5f3f9 | refs/heads/master | 2016-09-03T07:08:47.605240 | 2013-10-13T05:53:43 | 2013-10-13T05:53:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,412 | tst | binocdf.tst | // Copyright (C) 2012 - Prateek Papriwal
//
//
// 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
// <-- JVM NOT MANDATORY -->
//
// Check empty matrix
p = distfun_binocdf([],[],[]);
assert_checkequal(p,[]);
// Check with X scalar, N scalar, Pr scalar
//
computed = distfun_binocdf(100,162,0.5);
expected = 0.9989567;
assert_checkalmostequal(computed,expected,1.e-7);
// Check with expanded X
computed = distfun_binocdf([5 15],100,0.05);
expected = [0.6159991 0.9999629];
assert_checkalmostequal(computed,expected,1.e-7);
// Check with expanded N
computed = distfun_binocdf(5,[50 100],0.05);
expected = [0.9622238 0.6159991];
assert_checkalmostequal(computed,expected,1.e-7);
// Check with expanded Pr
computed = distfun_binocdf(5,50,[0.05 0.1]);
expected = [0.9622238 0.6161230];
assert_checkalmostequal(computed,expected,1.e-7);
// Check with two arguments expanded
computed = distfun_binocdf([5 10],[50 100],0.05);
expected = [0.9622238 0.9885276];
assert_checkalmostequal(computed,expected,1.e-7);
computed = distfun_binocdf([5 10],100,[0.05 0.1]);
expected = [0.6159991 0.5831555];
assert_checkalmostequal(computed,expected,1.e-7);
computed = distfun_binocdf(5,[50 100],[0.05 0.1]);
expected = [0.9622238 0.0575769];
assert_checkalmostequal(computed,expected,1.e-6);
// Check with all the arguments expanded
computed = distfun_binocdf([5 10],[50 100],[0.05 0.1]);
expected = [0.9622238 0.5831555];
assert_checkalmostequal(computed,expected,1.e-7);
//
// Check vectorisation
//
N = 100;
Pr = 0.22;
X = linspace(1,100,10);
p = distfun_binocdf(X,N,Pr);
p2 = [];
for i = 1:10
p2(1,i) = distfun_binocdf(X(i),N,Pr);
end
assert_checkequal(p,p2);
// Accuracy test using data in binocdf_yalta.dataset.csv file
precision = 1.e-5;
path=distfun_getpath();
dataset = fullfile(path,"tests","unit_tests","binomial","binocdf_yalta.dataset.csv");
table = assert_csvread ( dataset , "," , [] , "/#(.*)/" );
table = evstr(table);
ntests = size(table,"r");
for i = 1 : ntests
x = table(i,1);
N = table(i,2);
pr = table(i,3);
expected = table(i,4);
computed = distfun_binocdf(x,N,pr);
assert_checkalmostequal ( computed , expected , precision );
// Compute number of significant digits
if ( %f ) then
d = assert_computedigits ( computed , expected );
mprintf("Test #%d/%d: Digits = %.1f\n",i,ntests,d);
end
end
// Accuracy test using data in binocdf.R.dataset.csv file
precision = 1.e-12;
path=distfun_getpath();
dataset = fullfile(path,"tests","unit_tests","binomial","binocdf.R.dataset.csv");
table = assert_csvread ( dataset , "," , [] , "/#(.*)/" );
table = evstr(table);
ntests = size(table,"r");
for i = 1 : ntests
x = table(i,1);
N = table(i,2);
pr = table(i,3);
expected = table(i,5);
computed = distfun_binocdf(x,N,pr);
assert_checkalmostequal ( computed , expected , precision );
// Compute number of significant digits
if ( %f ) then
d = assert_computedigits ( computed , expected );
mprintf("Test #%d/%d: Digits = %.1f\n",i,ntests,d);
end
end
// Accuracy test using data in binomialcdf.dataset.csv file
precision = 1.e-5;
path=distfun_getpath();
dataset = fullfile(path,"tests","unit_tests","binomial","binomialcdf.dataset.csv");
table = assert_csvread ( dataset , "," , [] , "/#(.*)/" );
table = evstr(table);
ntests = size(table,"r");
for i = 1 : ntests
x = table(i,1);
N = 1030;
pr = 0.5;
expected = table(i,2);
computed = distfun_binocdf(x,N,pr);
assert_checkalmostequal ( computed , expected , precision );
// Compute number of significant digits
if ( %f ) then
d = assert_computedigits ( computed , expected );
mprintf("Test #%d/%d: Digits = %.1f\n",i,ntests,d);
end
end
// check upper tail
p = distfun_binocdf(3,10,0.1);
lt_expected = 0.9872048;
assert_checkalmostequal(p,lt_expected,1.e-7);
//
clear p;
q = distfun_binocdf(3,10,0.1,%f);
ut_expected = 0.0127952;
assert_checkalmostequal(q,ut_expected,1.e-6);
//
// Check extreme upper tail
q = distfun_binocdf(3,10,0.00001,%f);
assert_checkalmostequal(q,2.099899202099975904e-18);
|
011d75af9c3927aabbe76353eaaa51fff6879efb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1439/CH15/EX15.5/15_5.sce | 5e443a8bd33e5a4cc97120fccd273fb923fc8176 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 123 | sce | 15_5.sce | clc
//initialisation of variables
Ka= 1.772*10^-4
//CALCULATIONS
pK= -log10(Ka)
//RESULTS
printf ('pKa = %.2f ',pK)
|
36a06ccc163e4b32bb81b71f96f3d0f681377347 | bd4a88a5c028a801cbf0e414d2630de1c1e35449 | /scilab/ClusterTest.sce | 2503e4b05cfc6355ef36c34b623a8ab7f8331062 | [] | no_license | edielsonpf/turning-signal-analysis | 625783cea26b029c87925f96af4ac14aa38c8ae8 | 2fd594e79395caa72f5cebc378878367ff0e7f01 | refs/heads/master | 2021-03-13T00:01:23.673430 | 2018-12-24T14:44:39 | 2018-12-24T14:44:39 | 41,508,152 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,447 | sce | ClusterTest.sce | //definitions
DEFINE_DBG=0;
DEFINE_MFCC = 0;
DEFINE_PC1_PC3=1;
TRAINING_RATE=0.6;
PC1=11;
PC2=12;
PC3=13;
PC4=14;
MFCC1=15;
MFCC2=16;
Vc=1;
f=2;
d=3;
configuration=zeros(5,3,4);
configuration(:,:,1)=[1 2 3; 1 4 3; 1 8 3; 1 16 3;1 32 3];
configuration(:,:,2)=[2 2 3; 2 4 3; 2 8 3; 2 16 3;2 32 3];
configuration(:,:,3)=[3 2 3; 3 4 3; 3 8 3; 3 16 3;3 32 3];
configuration(:,:,4)=[4 2 3; 4 4 3; 4 8 3; 4 16 3;4 32 3];
[rC,cC,dC]=size(configuration);
dataset=['data.csv', 'data_v2.csv', 'data_v3.csv'];
[r,c]=size(dataset);
//Variable to store each experimental run
result = zeros(r*rC,3);
resultIndex=1;
for TestSet=1:c
for Dim=1:dC
if Dim == 1
DEFINE_PC1 = 1;
DEFINE_PC1_PC2 = 0;
DEFINE_PC1_PC2_PC3 = 0;
DEFINE_PC1_PC2_PC3_PC4 = 0;
elseif Dim == 2
DEFINE_PC1 = 0;
DEFINE_PC1_PC2 = 1;
DEFINE_PC1_PC2_PC3 = 0;
DEFINE_PC1_PC2_PC3_PC4 = 0;
elseif Dim == 3
DEFINE_PC1 = 0;
DEFINE_PC1_PC2 = 0;
DEFINE_PC1_PC2_PC3 = 1;
DEFINE_PC1_PC2_PC3_PC4 = 0;
else
DEFINE_PC1 = 0;
DEFINE_PC1_PC2 = 0;
DEFINE_PC1_PC2_PC3 = 0;
DEFINE_PC1_PC2_PC3_PC4 = 1;
end
for Config=1:rC
//generating data for training and testing procedures
[Xtrain,Dtrain,Xtest,Dtest]= GenerateData(TRAINING_RATE,dataset(TestSet));
NeuralNetwork=configuration(Config,:,Dim);
filename='WPC13.sod';
disp('Training model ' + string(Config) +'.....')
W=Treina(Xtrain',Dtrain',NeuralNetwork);
if DEFINE_DBG == 1 then
disp(W);
end
save(filename,'W');
y = Classification(Xtest',W,NeuralNetwork);
disp('Classification result for testing set: ' + dataset(TestSet) + ' and Configration: ' + string(Config) + 'with number of inputs: ' + string(Dim));
//disp(y');
//disp('Expected result');
//disp(Dtest);
[Success,Errors,Accuracy] = TestPerformance(y',Dtest);
result(resultIndex,1)=Success;
result(resultIndex,2)=Errors;
result(resultIndex,3)=Accuracy;
resultIndex=resultIndex+1;
end
end
end
csvWrite(result,'results_ry_60.csv');
|
0c9f6ffce700044c99895498e57f398744820225 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3651/CH6/EX6.13/13.sce | 78d593d1db78d3ff29d21acfdaefc2ba194be34c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 196 | sce | 13.sce |
//Variable declaration
Vt=0.0258
mu_n=1300
mu_p=500
//Calculations
Dn=Vt*mu_n
Dp=Vt*mu_p
//Result
printf('Dn = %0.3f cm**2 s**-1 \n',Dn)
printf('Dp = %0.3f cm**2 s**-1 \n',Dp) |
e1c009d1b63617879b1292fec8f401ac40f8c1ab | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH5/EX5.18/Ex5_18.sce | f95c8e35637b14a9761ffe698144231316553e61 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 150 | sce | Ex5_18.sce | clear
//Given
l=1.001
A=1.001
//Calculation
R=l*A
R1=R-1
A=R1*100
//Result
printf("\n Percentage change in its resistance is %0.1f percentage",A)
|
9ee9319bc8d2ff2557034df098fc144e0ff1b889 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2381/CH10/EX10.10/ex_10.sce | f17aee1372accf25617738bfe4b158f7943f7cd8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 332 | sce | ex_10.sce | //Example 10 // Frequencies
clc;
clear;
close;
//given data :
l=2;// in m
v=3560;// in m/s
r=0.004;// in m
k=r/2;
v1=%pi*v*k*3.011^2/(8*l^2);
disp(v1,"The frequency,v1(Hz) = ")
v2=%pi*v*k*5^2/(8*l^2);
disp(v2,"The frequency of first overtone,v2(Hz) = ")
v3=%pi*v*k*7^2/(8*l^2);
disp(v3,"The frequency of second overtone,v3(Hz) = ")
|
6bde3f33134f81d20098d24e0b39425b9609a6a9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /401/CH8/EX8.8/Example8_8.sce | 5c0e6b3746bfc2eb93523f7b922e1b152ac37f53 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 869 | sce | Example8_8.sce | //Example 8.8
//Program to determine:
//(a)Optical gain of the device
//(b)Common emitter current gain
clear;
clc ;
close ;
//Given data
eeta=0.40; //*100 percent - QUANTUM EFFICIENCY
e=1.602*10^(-19); //Coulumbs - CHARGE OF AN ELECTRON
h=6.626*10^(-34); //J/K - PLANK's CONSTANT
c=2.998*10^8; //m/s - VELOCITY OF LIGHT IN VACCUM
Lambda=1.26*10^(-6); //metre - OPERATING WAVELENGTH
Ic=15*10^(-3); //A - COLLECTOR CURRENT
Po=125*10^(-6); //Watt - INCIDENT OPTICAL POWER
//(a)Optical Gain
Go=h*c*Ic/(Lambda*e*Po);
//(b)Common emitter current gain
h_FE=Go/eeta;
//Displaying the Results in Command Window
printf("\n\n\t (a)Optical Gain, Go = %0.1f.",Go);
printf("\n\n\t (b)Common emitter current Gain, h_FE = %0.1f.",h_FE); |
0ff11ccf70e4a0719d3cb13a0e0dfb1b56bf7e16 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1892/CH1/EX1.53/Example1_53.sce | b45550e6497de8da0bd54fdf8b9fc799f88ab031 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | sce | Example1_53.sce | // Example 1.53
clear; clc; close;
format('v',6);
// Given data
IscByIfl=5;//ratio
Sf=5;//in %
K=50;//tapping in %
//Calculations
Sf=Sf/100;//Slip
//(i) Start delta
TstByTfl=1/3*IscByIfl^2*Sf;//ratio
disp("(i) Starting torque is "+string(TstByTfl*100)+"% of full load torque.");
//(ii) Auto Transformer having 50% tapping
K=K/100;//tapping
TstByTfl=K^2*IscByIfl^2*Sf;//ratio
disp("(ii) Starting torque is "+string(TstByTfl*100)+"% of full load torque.");
|
02b2249148ccb9edcd44924ef23f4599d950ff9b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3754/CH12/EX12.10/12_10.sce | 24df1a6bf65c81a1ae25eb497d3e3217e7784be1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 469 | sce | 12_10.sce | clear//
//Variables
VS = 12.0 //Source coltage (in volts)
R = 470.0 //Resistance (in ohm)
//Calculation
VD = 0 //Voltage drop across diode (in volts)
VR = VS //Value of VR (in volts)
I = VS/R //Current (in Ampere)
//Result
printf("\n Value of VD is %0.3f V.\nValue of VR is %0.3f V.\nCurrent through the circuit is %0.2f mA.",VD,VR,I*10**3)
|
8abd7942ff3209658314ed78fa8aadcddcd333f6 | 0aacc4aca603f61e9ac05bdb6de5b3b783f797fe | /Mission-U1/U1_Laplacien.sci | 5fab82232e87144336f766d39236f4616997b61b | [] | no_license | ZHamsiou/EXOLIFE-A2 | cf6001f744bf26109af2b552ecc2fe055ab8efd7 | 675a20670231c2a0a6c73333c988b1e651cab264 | refs/heads/master | 2021-04-29T19:18:23.002372 | 2018-02-16T03:22:18 | 2018-02-16T03:22:18 | 121,710,650 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 256 | sci | U1_Laplacien.sci | // Lecture de l'image
img=readpbm('U1.pbm');
//Définition de matrice de convulution laplacienne
filtre=[0,-1,0;-1,4,-1;0,-1,0];
//Application de la convultion.
imgc=conv2(img,filtre,'same');
//Affichage de l'image finale
display_gray(imgc);
|
4cecc523fb4f325d06af9a66642a614dcd6b7b05 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH5/EX5.12/Ex5_12.sce | 1f98ba667648364cf20f73f0bb8b7de8514433cd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 395 | sce | Ex5_12.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 5 Bipolar Transistor Biasing Pg no. 165
clear;
clc;
//Given Data
//Figure 5.26
RL=10;//load resistance in ohms which is dc resistance of primary coil of transistor
R=20D3;//base collector parallel resistance in ohms
B=90;//DC CE current gain beta
//Solution
S=(B+1)/(1+(B*RL)/(RL+R));//stability factor S
printf("S = %.2f",S);
|
dc004a3e4efa88778a31d859c3c91dd794f9c861 | 2e768d577a9279039672816cbc408828923ec86d | /macros/roiFreeHand.sci~ | be987208602fece10de7d7e6077ce4e3e56e8ac8 | [] | no_license | rg77/FOSSEE-Image-Processing-Toolbox | 3eebdad59f6bef3ee1d01f42d19ccbe798a05f8e | 6e18569e0bdeba9e75387b404fd9aeb3caf1a30d | refs/heads/master | 2020-12-02T16:16:35.016043 | 2017-07-07T12:39:05 | 2017-07-07T12:45:50 | 96,527,784 | 0 | 0 | null | 2017-07-07T10:25:25 | 2017-07-07T10:25:24 | null | UTF-8 | Scilab | false | false | 14,103 | roiFreeHand.sci~ | // Copyright (C) 2015 - 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: Rohan Gurve
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
//
function mask =roiFreeHand(Image)
// This is a gui based function which is used to create a mask by selecting the region of interest
//
// Calling Sequence
// src = imread(image-location-for-src)
// mask = roiFreeHand(src)
//
// Parameters
// mask: Output 8 bit mask image with same size as input image
// image: Input image to be masked
//
// Description
// This function allows the user to create a mask by selecting the region of interest in the image.
// Start selecting the region of interest by pressing the left mouse button and moving in the clockwise direction.
// Don't leave the left mouse button until you are done selecting the region. Once the region has been selected,
// wait until the process completes.
// More than one region of interest can be selected by repeating the same procedure.
// Once you are done selecting the ROI, press the small 's' key.This would stop the process.
// This function returns a 8 bit mask image with (the ROI being white and the rest of the region being black).
//
// Note
// more than one ROI can be selected from the image. Press key 's' only after all ROI have been selected.
// Move the mouse only in the clockwise direction.
// This algorithm assumes that the selected points in the ROI are very close to each other. Thus for best result, move
// the mouse slowly while selecting the ROI
//
// Examples
//
// src = imread("/images/color2.jpeg");
// mask = roiFreeHand(src); //creating a mask
// imshow(mask) //view the mask
//
// outputImage1 = colorChange(src, mask) //using this mask in the colorChange function
// imshow(outputImage1);//view the output
//
// Authors
// Rohan Gurve
imshow(Image);
FigureHandle = gcf();
FigureHandle.figure_name = "Create mask - Select ROI ";
Diagram=gca();
//Diagram.axes_visible = ['off' 'off' 'off'];
//Diagram.isoview = 'on';
ImageList=mattolist(Image);
[rows cols]=size(ImageList(1));
temp_mask = zeros(ImageList(1));
while(1) do
pointsList = list();
while(1) //start selection of points only when the user presses the left mouse button
[b,x_new,y_new]=xclick();
if(b==0 & ( (x_new <= cols) & (x_new>=0) & (y_new<= rows) & (y_new>=0))) then//left mouse button has been pressed
break; //consider the point only if it lies inside the image
elseif(b==115) //key s has been pressed
break;
end;
end;
if(b==0) then
x_new = ceil(x_new); y_new = ceil(y_new);
pointsList($+1)=[x_new y_new];
rep=[x_new,y_new,0];
plot([x_new x_new], [y_new y_new],'rx');
while rep(3)~=-5 do // left mouse button has been pressed
rep=xgetmouse([%t %t]);
x_temp= ceil(rep(1));
y_temp= ceil(rep(2));
if( (x_temp <= cols) & (x_temp>=0) & (y_temp<= rows) & (y_temp>=0)) then// consider the point only if it lies inside the image
x_old=x_new;y_old=y_new;
x_new=x_temp;y_new=y_temp;
x = [x_old x_new];
y = [y_old y_new];
pointsList($+1)=[x_new y_new];
plot(x, y);
end;
end;
//-**ROI has been selected - the computation of the ROI will take palce now **-/
//first marking the boundary
FigureHandle.figure_name = "Wait (processing.............)";
for i=1: (length(pointsList) -1)
//intensity;
if( (pointsList(i+1)(1,1) - pointsList(i)(1,1)) < 0) //moved from right to left
intensity = 0; //negative area
if( (pointsList(i+1)(1,2) - pointsList(i)(1,2)) < 0) //moved from up to down
//-- moved from up to down & from right to left --//
increase_ht = 0 ;
for j=pointsList(i+1)(1,1):pointsList(i)(1,1)
temp_mask(rows - pointsList(i+1)(1,2) - increase_ht +1 ,j) = 1; //marking the boundary as 1
increase_ht=increase_ht+1;
end;
elseif( (pointsList(i+1)(1,2) - pointsList(i)(1,2)) > 0) //moved from down to up
//-- moved from down to up & from right to left --//
increase_ht = 0 ;
for j=pointsList(i+1)(1,1):pointsList(i)(1,1)
temp_mask(rows - pointsList(i+1)(1,2) + increase_ht +1 ,j) = 1; //marking the boundary as 1
increase_ht=increase_ht + 1;
end;
else//both points have same height
for j=pointsList(i+1)(1,1):pointsList(i)(1,1)
temp_mask(rows - pointsList(i+1)(1,2) +1 ,j) = 1; //marking the boundary as 1
end;
end
elseif( (pointsList(i+1)(1,1) - pointsList(i)(1,1)) > 0)
intensity =255;//positive area if movement from left to right
if( (pointsList(i+1)(1,2) - pointsList(i)(1,2)) < 0) //moved from up to down
//-- moved from up to down and from left to right --//
increase_ht = 0 ;
for j=pointsList(i)(1,1):pointsList(i+1)(1,1)
temp_mask(rows - pointsList(i)(1,2) + increase_ht +1 ,j) = 1; //marking the boundary as 1
increase_ht=increase_ht + 1;
end;
elseif( (pointsList(i+1)(1,2) - pointsList(i)(1,2)) > 0) //moved from down to up
//-- moved from down to up and from left to right --//
increase_ht = 0 ;
for j=pointsList(i)(1,1):pointsList(i+1)(1,1)
temp_mask(rows - pointsList(i)(1,2) - increase_ht +1 ,j) = 1; //marking the boundary as 1
increase_ht=increase_ht+1;
end;
else //both points have same height
for j=pointsList(i)(1,1):pointsList(i+1)(1,1)
temp_mask(rows - pointsList(i)(1,2) +1 ,j) = 1; //marking the boundary as 1
//increase_ht=increase_ht+1;
end;
end
else//both coordinate have the same x coordinate
if( (pointsList(i+1)(1,2) - pointsList(i)(1,2)) < 0) //moved from up to down
for j=0:(pointsList(i)(1,2) - pointsList(i+1)(1,2))
temp_mask(rows - pointsList(i)(1,2) + j +1 ,pointsList(i)(1,1)) = 1; //marking the boundary as 1
end
else
for j=0:(pointsList(i+1)(1,2) - pointsList(i)(1,2)) //moved from down to up
temp_mask(rows - pointsList(i)(1,2) - j +1 ,pointsList(i)(1,1)) = 1; //marking the boundary as 1
end
end
end //if
end //for loop
//next marking the area
for i=1: (length(pointsList) -1)
//intensity;
if( (pointsList(i+1)(1,1) - pointsList(i)(1,1)) < 0) //moved from right to left
intensity = 0; //negative area
if( (pointsList(i+1)(1,2) - pointsList(i)(1,2)) < 0) //moved from up to down
//-- moved from up to down & from right to left --//
for j=0:(pointsList(i)(1,1)-pointsList(i+1)(1,1))
increase_ht = 1 ;
while( ((rows - pointsList(i+1)(1,2) -j + increase_ht +1 ) <= rows) & (temp_mask(rows - pointsList(i+1)(1,2) -j + increase_ht +1 ,pointsList(i+1)(1,1)+j) ~ = 1) ) //loop until it reaches the any boundary or image border
temp_mask(rows - pointsList(i+1)(1,2) -j + increase_ht +1 ,pointsList(i+1)(1,1)+j) = 0; //marking the underneath area as 0
increase_ht=increase_ht + 1;
end;
end;
elseif( (pointsList(i+1)(1,2) - pointsList(i)(1,2)) > 0) //moved from down to up
//-- moved from down to up & from right to left --//
for j=0:(pointsList(i)(1,1)-pointsList(i+1)(1,1))
increase_ht = 1 ;
while( ((rows - pointsList(i+1)(1,2) + j + increase_ht +1) <= rows) & (temp_mask(rows - pointsList(i+1)(1,2)+j + increase_ht +1 ,pointsList(i+1)(1,1)+j) ~= 1) ) //loop until it reaches any boundary or image border
temp_mask(rows - pointsList(i+1)(1,2) + j + increase_ht +1 ,pointsList(i+1)(1,1)+j) = 0; //marking the underneath area as 0
increase_ht = increase_ht + 1 ;
end;
end;
else //both point on same height
for j=0:(pointsList(i)(1,1)-pointsList(i+1)(1,1))
increase_ht = 1 ;
while( ((rows - pointsList(i+1)(1,2) + increase_ht +1) <= rows) & (temp_mask(rows - pointsList(i+1)(1,2) + increase_ht +1 ,pointsList(i+1)(1,1)+j) ~= 1) ) //loop until it reaches any boundary or image border
temp_mask(rows - pointsList(i+1)(1,2) + increase_ht +1 ,pointsList(i+1)(1,1)+j) = 0; //marking the underneath area as 0
increase_ht = increase_ht + 1 ;
end;
end;
end //"moved from up to down" 'if' end
elseif( (pointsList(i+1)(1,1) - pointsList(i)(1,1)) > 0)// moved from left to right
intensity =255;//positive area if movement from left to right
if( (pointsList(i+1)(1,2) - pointsList(i)(1,2)) < 0) //moved from up to down
//--moved from up to down and from left to right --//
for j=0:(pointsList(i+1)(1,1)-pointsList(i)(1,1))
increase_ht = 1 ;
while(((rows - pointsList(i)(1,2) + increase_ht + j +1) <= rows) & (temp_mask(rows - pointsList(i)(1,2) + increase_ht +1 +j,j+pointsList(i)(1,1)) ~ = 1) ) //loop until it reaches the any boundary or image border
temp_mask(rows - pointsList(i)(1,2) + increase_ht +j +1 ,j+pointsList(i)(1,1)) = 255; //marking the underneath area as 255
increase_ht = increase_ht + 1 ;
end;
end;
elseif( (pointsList(i+1)(1,2) - pointsList(i)(1,2)) > 0) //moved from down to up
//-- moved from down to up and from left to right --//
for j=0:(pointsList(i+1)(1,1)-pointsList(i)(1,1))
increase_ht = 1 ;
while( ((rows - pointsList(i)(1,2) + increase_ht -j +1) <= rows ) & (temp_mask(rows - pointsList(i)(1,2) -j + increase_ht +1 ,pointsList(i)(1,1)+j) ~ = 1) ) //loop until it reaches the any boundary or image border
temp_mask(rows - pointsList(i)(1,2) - j + increase_ht +1 ,pointsList(i)(1,1)+j) = 255; //marking the underneath area as 255
increase_ht = increase_ht + 1 ;
end;
end;
else
for j=0:(pointsList(i+1)(1,1)-pointsList(i)(1,1))
increase_ht = 1 ;
while( ((rows - pointsList(i)(1,2) + increase_ht +1) <= rows ) & (temp_mask(rows - pointsList(i)(1,2) + increase_ht +1 ,pointsList(i)(1,1)+j) ~ = 1) ) //loop until it reaches the any boundary or image border
temp_mask(rows - pointsList(i)(1,2) + increase_ht +1 ,pointsList(i)(1,1)+j) = 255; //marking the underneath area as 255
increase_ht = increase_ht + 1 ;
end;
end;
end;//moved from up to down's if end
end; //if statement
end;//for loop's end
FigureHandle.figure_name = "Create mask - Select ROI";
//-** the computation of the selected ROI has been completed **-/
//mask = pointsList;
else //b==115
break;//ROI has been selected - stopping the selection process
end //if(b==0)
mask = temp_mask;
end //while(1) loop's end
endfunction
|
|
08f8c53986f0d1b56a14c244afeb826333dcc3c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3636/CH7/EX7.4/Ex7_4.sce | 423682c4bf1bff96c4f05541bd25e4321c615850 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 271 | sce | Ex7_4.sce | clc;
clear;
A=114 //effective Richardson constant A/K^2*cm^2
e=1.6*10^-19 //in J
T=300 //in K
phi_Bn=0.82 //in eV
const=0.026 //value for kT/e in V
//Calculation
J0=A*T^2*exp(-(phi_Bn/const))
mprintf("Reverse saturation current density= %1.2e A/cm^2",J0)
|
cb90cf88f0958d604decccc83e8eb9729295c67f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2753/CH3/EX3.14/Ex3_14.sce | c7b3af64cde8c106ac0300be6e85d442872868f5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 346 | sce | Ex3_14.sce | //Example 3.14:
clc;
clear;
close;
//given data :
alfa=0.992;// constant
Beta=alfa/(1-alfa);
format('v',5)
disp(Beta,"(a) Beta= ")
I_CBO=48*10^-9;// in A
I_CEO=(1+Beta)*I_CBO*10^6;
format('v',3)
disp(I_CEO,"(a) I_CEO (micro-A) = ")
Ib=30*10^-6;// in A
Ic=((Beta*Ib)+(1+Beta)*I_CBO)*10^3;
format('v',5)
disp(Ic,"(b) Collector current,Ic(mA) = ")
|
8f196d0995a4ecafb3c1908c9893acf0b3563d4c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH12/EX12.9/Ch12Ex9.sce | 644613b67c2c221a004dd2a4078a05f5122d01dc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 420 | sce | Ch12Ex9.sce | // Scilab Code Ex12.9 : Page-607 (2011)
clc; clear;
n = 50;....// Total number of cycles per sec, Hz
V = 1e-03;....// Volume of the specimen, metre cube
t = 1;....// Time during which the loss occurs, s
A = 0.25e+03;....// Area of B-H loop, joule per metre cube
E = n*V*A*t; // Energy loss due to hysteresis, J/s
printf("\nThe hystersis loss = %4.1f J/s", E);
// Result
// The hystersis loss = 12.5 J/s
|
1a2f1e52a9fecea5044240b5d03fc8d061e5770d | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/unique.man.tst | 77196dc78f5492d10e75022be0ccd87574b4095b | [
"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 | 110 | tst | unique.man.tst | clear;lines(0);
M=round(2*rand(20,1));
unique(M)
[N,k]=unique(M)
unique(string(M))
[N,k]=unique(string(M))
|
091101c6634ebb78d7e1d1aae8ff03bd0e42a5cc | 449d555969bfd7befe906877abab098c6e63a0e8 | /2438/CH6/EX6.12/Ex6_12.sce | aa11fa46cd8a35f74480e6e35f91ef1557813434 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 723 | sce | Ex6_12.sce | //=============================================================================================
// chapter 6 example 12
clc;
clear;
//input data
d1 = 0.05; //inner diametr in m
d2 = 0.07; //outer diameter in m
l = 2000; //length in m
p = 6*10^12; //specific resistance in ohm-m
//formula
r1 = d1/2; //radius in m
r2 = d2/2; //radius in m
//calculation
R = (p/(2*%pi*l))*(log(r2/r1)) //insulation resistance
//result
mprintf('insulation resistance =%1e.ohm\n',R);
mprintf(' Note: calculation mistake in textbook in calculating insulating resistance');
//==========================================================================================
|
afd5e8e5845f9096177944f183cfa2ee2df06437 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH3/EX3.5/3_5.sce | 1fe8be0f0a0dcad0f5f1a5210cfcc4a687a2c36c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 3_5.sce | clc,clear
printf('Example 3.5\n\n')
V=250
I_av=10
V_av=(240+220)/2 //average voltage across load
W_dash=V_av*I_av //Power absorbed
t1=25,t2=6
R_sh=200,R_a=0.3//resistance of field winding and armature
W=W_dash*t2/(t1-t2) //Stray Losses
I_l=25 //Input current
I_sh=V/R_sh //current through field winding
I_a=I_l-I_sh //Armature current
arm_cu_loss=R_a*I_a^2 //Armature copper losses
sh_cu_loss=R_sh*I_sh^2 // Shunt copper loss
Total_losses= arm_cu_loss + sh_cu_loss + W
Motor_input=V*I_l
Output=Motor_input- Total_losses
efficiency=Output*100/Motor_input
printf('Efficiency as motor at 25 A and 250 V is %.2f percent',efficiency)
|
318f62207e99c579e5fe4f008786bee81909148a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3878/CH1/EX1.9/Ex1_9.sce | d538b6108d74ce071b4b835a4de3bc43a975ed59 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 401 | sce | Ex1_9.sce | clear
// Variable declaration
R_i=0.3// The inside surface resistance in (m**2 K)/W
R_c=1/2.8// The thermal conductance of plastered surface in (m**2 K)/W
R_o=0.05// The outside surface resistance in (m**2 K)/W
// Calculation
R_t=R_i+R_c+R_o// The total thermal resistance in (m**2 K)/W
U=1/R_t// The overall transmittance in W/(m**2 K)
printf("\n The overall transmittance,U= %0.3f W/(m**2 K)",U)
|
1660f845e5f4946622a7242051ba117a9a9c5916 | 189317284c359f59c635a4494221a1e29a603c9a | /Montante.sce | 28d9786c54fc73c65dbe64451759864eecd29561 | [] | no_license | sdkvictor/Scilab-Programs | 6f316a0d143ce6e754a13858e3e6c30ae6c8d99c | 7aae73a5996535406311027efa8c4e3e46f45640 | refs/heads/master | 2020-04-25T05:22:36.591339 | 2019-02-25T17:20:36 | 2019-02-25T17:20:36 | 172,540,701 | 0 | 0 | null | 2019-02-25T16:19:25 | 2019-02-25T16:19:25 | null | UTF-8 | Scilab | false | false | 179 | sce | Montante.sce | function X = Montante(MAT)
pivote = 0
for(i = 1:size(MAT,1)
end
endfunction
MAT = input("Da la matriz")
X = Montante(MAT)
disp(X)
|
fccdb88ad9852ce09bf69ef100ebeaefe82ca678 | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/jintgen/no_index_02.tst | 22b4cb8cb26d1215890bea8f30646ba38aaa36f1 | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 263 | tst | no_index_02.tst | // @Harness: verifier
// @Purpose: "Test that indexing is applied only to the appropriate types"
// @Result: "TypeDoesNotSupportIndex @ 7:13"
architecture no_index_01 {
enum E { r = 0 }
subroutine foo(e: E): void {
local foo: int = e[0];
}
}
|
723692fbdf3ae73c14fb6849f8fa1f28e8c47c99 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1238/CH1/EX1.20.b/20_b.sce | b891d6cd1043b6cbf30577c8d1528eabcf42875c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 330 | sce | 20_b.sce | //decimal to signed binary number//
//example 20.b//
clc
//clears the command window//
clear
//clears//
//decimal to signed binary number system//
x=-29
a=dec2bin(-x)
//decimal to binary conversion//
a=dec2bin(-x+bin2dec('100000'))
disp('the answer is:')
disp(a)
//since the number is negative it starts with a 1//
|
139671da0ba58eae73caa89498d3d7c40e6360cc | 449d555969bfd7befe906877abab098c6e63a0e8 | /2780/CH8/EX8.4/Ex8_4.sce | 6a71b78e621b4d049071ace860fb4cd3aa46c68b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 264 | sce | Ex8_4.sce | clc
//to calculate wavelength
n=2 //second order for longest wavelength
d=2.82*10^-10 // spacing in angstrom
sintheta=1
lambdamax=2*d*sintheta/n
disp("the longest wavelength that can be analysed by a rock salt crystal is lambdamax="+string(lambdamax)+"m")
|
2118f584e264e9510d1d47845fd74e810d76e03a | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH2/EX2.1.b/solution2_1.sce | ab892e3cbf561ae12b1fbfd917eb8f94c3e885e7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,626 | sce | solution2_1.sce |
//Obtain path of solution file
path = get_absolute_file_path('solution2_1.sce')
//Obtain path of data file
datapath = path + filesep() + 'data2_1.sci'
//Clear all
clc
//Execute the data file
exec(datapath)
//Calculate weightage points for all materials
//U - Ultimate tensile strength, H - Hardenability index, C - Cost
//Store the summations of each category in Uweigh, Hweigh and Cweigh respectively
Uweigh = 0
Hweigh = 0
Cweigh = 0
for i = 1:1:4
Uweigh = Uweigh + U(i)
Hweigh = Hweigh + H(i)
Cweigh = Cweigh + (C(i)^(-1))
end
//Store percent strength for each material in Uper, Hper and Cper arrays according to respective categories
//Store points for each material in Up, Hp and Cp arrays according to respective categories
for i = 1:1:4
Uper(i) = U(i)/Uweigh
Up(i) = Uper(i) * Uw
Hper(i) = H(i)/Hweigh
Hp(i) = Hper(i) * Hw
Cper(i) = (C(i)^(-1))/Cweigh
Cp(i) = Cper(i) * Cw
end
//Store total points for each material in t array
for i = 1:1:4
t(i) = Up(i) + Hp(i) + Cp(i)
end
//Print result table. Refer Table 2.14 on page 53
printf('\n\t|Material Property\t|Low alloy steel\t|Plain carbon steel\t|Stainless steel\t|Chromium steel\n')
printf('\na)\tTensile Strength')
printf('\n\tPer cent')
for i = 1:1:4
printf('\t\t%0.3f\t',Uper(i))
end
printf('\n\tPoints')
for i = 1:1:4
printf('\t\t\t%0.3f',Up(i))
end
printf('\n\nb)\tHardenability')
printf('\n\tPer cent')
for i = 1:1:4
printf('\t\t%0.3f\t',Hper(i))
end
printf('\n\tPoints')
for i = 1:1:4
printf('\t\t\t%0.3f',Hp(i))
end
printf('\n\nc)\tCost')
printf('\n\tPer cent')
for i = 1:1:4
printf('\t\t%0.3f\t',Cper(i))
end
printf('\n\tPoints')
for i = 1:1:4
printf('\t\t\t%0.3f',Cp(i))
end
printf('\n\n\tTotal Points')
for i = 1:1:4
printf('\t\t%0.3f\t',t(i))
end
//Store all values of t in s array
for i = 1:1:4
s(i) = t(i)
end
//Find the material with largest value of total points using s array
for i = 1:1:3
if (s(i)>s(i+1)) then
s(i+1) = s(i)
end
end
//Largest value is obtained when i becomes 3 and the value is stored in s(i+1)
//Display the best material
choice = s(i+1)
if(choice == t(1))
printf('\n\nLow alloy steel is the best material for the component\n')
else if (choice == t(2))
printf('\n\nPlain carbon steel is the best material for the component\n')
else if (choice == t(3))
printf('\n\nStainless steel is the best material for the component\n')
else
printf('\n\nChromium steel is the best material for the component\n')
end
|
1ebff264a2d8d2ef2937bac4298b3ebe5fc583cd | b6b875fb04ec6df2c0fb0d28f36962fa9aebb2bf | /TD6/Scripts/tentative1.sce | 6e4810b4185e81c9e58911c2ff5ae5765d7b48fc | [] | no_license | MFrizzy/Modelisation | 51794b2edf421f9d2206cb73972d8d8d7b1e9759 | 0ca819afbcbe00f58f3bbaa8fc97164ae2c1d3cb | refs/heads/master | 2021-08-29T12:02:20.042037 | 2017-12-13T22:39:21 | 2017-12-13T22:39:21 | 106,943,303 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,220 | sce | tentative1.sce | function [Q1, Q2, Q3] = aleaProp(Tmax, lambda, mu)
Q1 = [0, 0, 0]; Q2 = Q1; Q3 = Q1;
i = 0;
ta = 0;
while (ta < Tmax)
ia = randExp(1, lambda)
i = i+1
ta = ta + ia
nq = num_serv()
ts = randExp(1, mu(nq))
select nq
case 1
Q1 = insere(Q1, ta, ts)
case 2
Q2 = insere(Q2, ta, ts)
else
Q3 = insere(Q3, ta, ts)
end
end
Q1 = Q1(Q1(:,1)<Tmax,:)
Q2 = Q2(Q2(:,1)<Tmax,:)
Q3 = Q3(Q3(:,1)<Tmax,:)
endfunction
lambda= 1/3;
mu = [1/15, 1/10, 1/6];
[Q1, Q2, Q3] = aleaProp(36000, lambda, mu);
plot2d(Q1(:,1), Q1(:,2), style= 1)
plot2d(Q2(:,1), Q2(:,2), style= 2)
plot2d(Q3(:,1), Q3(:,2), style= 3)
function nq = num_serv()
u = rand()
if u < 0.2 then
nq = 1
elseif u < 0.5
nq = 2
else
nq = 3
end
endfunction
[m1,m2,m3,t_rm] = texecute(Q1,Q2,Q3)
Q=[Q1;Q2;Q3]
Qt=[0,0,0]
Qt=gsort(Q,'r','i')
total=0;
for i=1:length(Q(:,1))
Qt(i,2)=total;
[a,b]=find(Q(:,1)==Qt(i,1),1);
increment=Q(a,3);
Qt(i,3)=increment;
total=total+increment
end
plot2d(Qt(:,1), Qt(:,2), style = 5)
legend("Serveur 1","Serveur 2","Serveur 3")
|
188915a571f477f2cf588eeb2072c1efcdee4f1d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH25/EX25.8/Example25_8.sce | 5a9061b52b968f9ef2a01c90818d5470f43b900d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,644 | sce | Example25_8.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART II : TRANSMISSION AND DISTRIBUTION
// CHAPTER 18: POWER DISTRIBUTION SYSTEMS
// EXAMPLE : 18.8 :
// Page number 442-443
clear ; clc ; close ; // Clear the work space and console
// Given data
V = 440.0 // Voltage between outer(V)
I_pos = 210.0 // Ligting load current on positive side(A)
I_neg = 337.0 // Ligting load current on negative side(A)
I_power = 400.0 // Power load current(A)
P_loss = 1.5 // Loss in each balancer machine(kW)
// Calculations
P = I_power*V/1000.0 // Power(kW)
load_pos = I_pos*V*0.5/1000.0 // Load on positive side(kW)
load_neg = I_neg*V*0.5/1000.0 // Load on negative side(kW)
loss_total = 2*P_loss // Total loss on rotary balancer set(kW)
load_main = P+load_pos+load_neg+loss_total // Load on main machine(kW)
I = load_main*1000/V // Current(A)
I_M = I-610.0 // Current through balancer machine(A)
I_G = 127.0-I_M // Current through generator(A)
output_G = I_G*V*0.5/1000.0 // Output of generator(kW)
input_M = I_M*V*0.5/1000.0 // Input to balancer machine(kW)
// Results
disp("PART II - EXAMPLE : 18.8 : SOLUTION :-")
printf("\nLoad on the main machine = %.2f kW", load_main)
printf("\nOutput of generator = %.2f kW", output_G)
printf("\nInput to balancer machine = %.2f kW", input_M)
|
3f1afe9d109b8720e8de57d062b694022c6ce802 | 449d555969bfd7befe906877abab098c6e63a0e8 | /70/CH2/EX2.3.8/2_3_8.sci | 91e9da307246bd39c5d1ebf0fbc48a40957c7376 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 355 | sci | 2_3_8.sci | //page 93
clear;
close;
clc;
disp('Here,the vector v1 by itself is linearly independent , but it fails to span R2.The three vectors v1,v2,v3 certainly span R2, but are not independent. Any two of these vectors say v1 and v2 have both properties -they span and they are independent.So they form a basis.(A vector space does not have a unique basis)')
//end |
aa77189ea05d0d3a200f6cd5bc80f3eccc4f34e0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /37/CH1/EX1.6/Solved6.sci | 6447da8857ed69cb1aca11ca5a02cad1d07cccc8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 920 | sci | Solved6.sci | //Solved Example 8:
//Checking for the equality of 2 rational numbers by reducing them
function[]=equal(x1,x2,x3,x4)
rational1=struct('numerator',x1,'denominator',x2)
rational2=struct('numerator',x3,'denominator',x4)
y=0
if(rational1.numerator>rational1.denominator)
a=rational1.numerator;
b=rational1.denominator;
else
a=rational1.denominator;
b=rational1.numerator;
end
while(b~=0)
rem=modulo(a,b);
a=b;
b=rem;
end
y=struct('numerator',x1/a,'denominator',x2/a);
y1=0
if(rational2.numerator>rational2.denominator)
a=rational2.numerator;
b=rational2.denominator;
else
a=rational2.denominator;
b=rational2.numerator;
end
while(b~=0)
rem=modulo(a,b);
a=b;
b=rem;
end
y1=struct('numerator',x3/a,'denominator',x4/a);
if(y==y1)
disp("Equal")
break;
else
disp("Not Equal")
break;
end
endfunction
x1=5;
x2=7;
x3=35;
x4=49;
equal(x1,x2,x3,x4); |
ca9920b9d10995b6367b18c0691c116674a2ae84 | 449d555969bfd7befe906877abab098c6e63a0e8 | /213/CH7/EX7.3/7_3.sce | 0a603fa2c7313ad3c21337a43cc8e58cbfef9ff2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 614 | sce | 7_3.sce | //To find the velocity
clc
//Given:
NAO=600 //rpm
OA=28/1000,BD=46/1000 //m
//Solution:
//Refer Fig. 7.10
//Calculating the angular velocity of crank AO
omegaAO=2*%pi*NAO/60 //rad/s
//Calculating the velocity of A with respect to O
vAO=omegaAO*OA //m/s
vA=vAO
//By measurement from the velocity diagram, Fig. 7.10(b),
vD=1.6,vDB=1.7 //m/s
//Calculating the angular velocity of D with respect to B
omegaBD=vDB/BD //rad/s
//Results:
printf("\n\n The velocity of the slider D, vD = %.1f m/s.\n",vD)
printf(" The angular velocity of the link BD, omegaBD = %.2f rad/s, clockwise sbout B.\n\n",omegaBD) |
46af56f702525922f30a2fa7a8b43173d6dd61e3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1754/CH2/EX2.19/Exa2_19.sce | 1c49078cdada091ad309d1f415a7c23d1d20267f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Exa2_19.sce | //Exa 2.19
clc;
clear;
close;
//Given data :
VCC=20;//in volt
VBE=0.7;//in volt(For Si)
Beta=50;//unitless
RE=200;//in ohm
R1=60;//in kohm
R2=30;//in kohm
V2=VCC*R2/(R1+R2);//in volt
VEO=V2-VBE;//in volt
disp(VEO,"Voltage across RE in volt : "); |
26439897c434471a808da3eaf715b2f5a5e8a26d | 449d555969bfd7befe906877abab098c6e63a0e8 | /149/CH28/EX28.6/ques6.sce | 01e21167eae592d358a04e9a62999e6338466bd5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 654 | sce | ques6.sce | //ques5
clear
clc
disp('Here c^2=1 , h=1/3 , k=1/36 , therefore t=(c^2)*k/(h^2)=1/4');
disp('So bendre-schmidits recurrence relation ie u(i)(j+1)=1/4(u(i-1)(j)+u(i+1)(j)+2u(i,j)');
disp('Now since u(0,t)=0=u(1,t) therefore u(0,i)=0 and u(1,j)=0 and u(x,0)=sin(%pi)x');
c=1;
h=1/3;
k=1/36;
t=(c^2)*k/(h^2);
A=ones(9,9);
for i=1:9
for j=1:9
A(1,i)=0;
A(2,i)=0;
A(i,1)=sin(%pi/3*(i-1));
end
end
//A(2,1)=0.866;
//A(3,1)=0.866;
for i=2:8
for j=2:8
// A(i,j)=1/4*(A(i-1,j-1)+A(i+1,j-1)+2*A(i-1,j-1));
A(i,j)=t*A(i-1,j-1)+t*A(i+1,j-1)+(1-2*t)*A(i-1,j-1);
end
end
for i=2:8
j=2;
disp(A(i,j));
end
|
047b6c85357717fde145e110d8452d229f66e9f3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3392/CH9/EX9.5/Ex9_5.sce | 92706c109f4c09c19f69048927abcdbe5018090d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 438 | sce | Ex9_5.sce | clc
// initialization of variables
clear
P=120 //kN
b1=120 //mm
b2=120 //mm
h1=48 //mm
h2=24 //mm
P=P*10^3
A=h1*b1+b2*h2
R=(b1*h1*96+b2*h2*180)/A
Am=b1*log(b1/72)+h2*log(240/b2)
r=72
Mx=364*P
S_thB=P/A+(Mx*(A-r*Am))/(A*r*(R*Am-A))
r1=120 //mm
t=24 //mm
A1=h1*r1
Am1=r1*log(r1/r)
S_rr=(A*Am1-A1*Am)*Mx/(t*r1*A*(R*Am-A))
printf('Circumferential stress is %.1f MPa',S_thB)
printf('\n Radial stress is %.1f MPa',S_rr)
|
e6cbc9fc755913ec5f84d7223c1e9fc55403ee75 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2744/CH8/EX8.1/Ex8_1.sce | a0c4b9e37ab386bd5b036b6173e6197aeb91372e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 319 | sce | Ex8_1.sce | clear;
clc;
d = 6;//inches
b = 3/4;//inch
P = 18;//tons
e = 1/8;//inch
A = b*d;//sq.in
M = P*e;//ton-in
Z = (1/6)*b*d^2;//in^3
p_0 = P/A;// tons/in^2
p_b = M/Z;// ton/in^2
p_max = p_0+p_b;// tons/in^2
p_min = p_0-p_b;// tons/in^2
printf('p_max = %.1f tons/in^2.,tensile\n p_min = %.1f tons/in^2.,tensile',p_max,p_min);
|
6e3578f14a92107a03ea422cf0befa06648247f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1319/CH12/EX12.17/i_17.sce | bf838785f7b41ba1b43fb4178f46347b93485746 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 920 | sce | i_17.sce | // To calculate current in each branch of the given network.
clc;
clear;
// Refer diagram (a) in the book
R1=6;// one of the resistance between a and b
R2=3;// one of the resistance between a and b
R3=8;// resistance between c and a
R4=15;// resistance in the middle branch
R5=4;// resistance between d and e
V=40;
Rab=(R1*R2)/(R1+R2);// Effective resistance between a and b
Rcb= Rab+R3;// Effective resistance of the top branch between c and b
Reff=(Rcb*R4)/(Rcb+R4);
Rt=Reff+R5;
I=V/Rt;
I1=I*(Rcb/(Rcb+R4));
I2=I*(R4/(Rcb+R4));
I3=I2*(R2/(R1+R2));
I4=I2*(R1/(R1+R2));
disp('amperes',I,'The current through 4 ohm resistor =')
disp('amperes',I1,'The current through 15 ohm resistor =')
disp('amperes',I2,'The current through 8 ohm resistor =')
disp('amperes',I4,'The current through 3 ohm resistor =')
disp('amperes',I3,'The current through 6 ohm resistor =')
|
be931d419cc784d2fc02f2422a4c70c9f4a6410d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1511/CH2/EX2.40/ex2_40.sce | 21228a84266f0a5f9cc07dbb11de964367086f33 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 252 | sce | ex2_40.sce | // Example 2.40 page no-127
clear
clc
T=301.6
vt=T*1000/11600
vf=50 //mV
vr=-50 //mV
k=(%e^(vf/vt)-1)/(%e^(vr/vt)-1)
printf("\nratio=%.2f\nNegative sign is oecause, the direction of \ncurrent is opposite when the diode is reverse biased",k)
|
4f82c45140d21e205368862c36411dc7fad8c968 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpic2escifiles6/CuspPt.sci | 33f1d80763c9ef74f3ee14a953a6ed703acfd6a0 | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 79 | sci | CuspPt.sci | // 08.09.10
function Out=CuspPt()
global CUSPPT
Out=CUSPPT;
endfunction;
|
9d6e8adf1ca08de024ca0f0aaf0e0f67688c8f32 | 449d555969bfd7befe906877abab098c6e63a0e8 | /10/CH4/EX9/cha4_9.sce | 265470a21188a3f747eb6ba49703b548522990ec | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | cha4_9.sce | Iarated=100;Vt=100;
Ra=0.1;
Ia1=200;
Ia = 25;
Iastart=Vt/Ra
Rae=(Vt-20)/(200)
Ea2=Vt-Iarated*(Ra+Rae)
Rae2=(Vt-Ea2-20)/(200)
Ea3=Vt-Ia*(Ra+Rae2)
Ea3=Vt-Iarated*(Ra+Rae2)
Rae3=(Vt-Ea3-20)/200
Ea4=Vt-Iarated*(Ra+Rae3)
Rae4=(Vt-Ea4-20)/200
Ia=(Vt-Ea4)/Ra
R1=Rae-Rae2
R2=Rae2-Rae3
R3=Rae3-Rae4 |
a9a9989cf24ad817579cbc1eec361209dc8619d8 | 9224090b07cb3f466fe72819cf90ca0c4dedc901 | /Miscellaneous/Exercise 3 Variation/Exercise 3a.sce | ac8aba7ac630aabccdcaa1d31a74d4718c59b8f2 | [] | no_license | MGYBY/advanced_ocean_modelling | 8c383b09f4077174559bd7964062625012026fa0 | 848f0f4d616d472021c31582b64557f04067ce74 | refs/heads/main | 2023-07-14T14:37:57.714203 | 2021-08-20T20:13:49 | 2021-08-20T20:13:49 | 398,386,684 | 4 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,786 | sce | Exercise 3a.sce | //====================================================================
// Exercise 3: Short Surface Gravity Waves
// Animation of equivalent vertical displacements of pressure surfaces
//====================================================================
// Author: Jochen Kaempf, March 2015 (update)
f = gcf(); f.color_map = jetcolormap(64); f.figure_size = [700,400]; scf(0)
// read input data
eta1=read("eta.dat",-1,101); dp1=read("dp.dat",-1,101);
[ntot nx] = size(eta1); x = (0:5:500)';
for n = 1:100// animation loop
time = n; // time in seconds
//grab data blocks
itop = (n-1)*51+1; ibot = itop+50;
dp = dp1(itop:ibot,1:101)'; eta = eta1(n,1:101)';
drawlater; clf;
// draw graphs
plot2d(x,5*eta,5); p1=gce(); p1.children.thickness=2;
for i = 1:26
plot2d(x,5*dp(:,i)+1-i*2,2,)//'019','',[0 -40 500 10],[1,6,1,6]);
p2=gce(); p2.children.thickness=1;
end;
a = gca(); a.font_size = 3; a.data_bounds = [0,-40;500,10];
a.auto_ticks = ["off","off","on"]; a.sub_ticks = [3,3];
a.x_ticks = tlist(["ticks", "locations","labels"],..
[0 100 200 300 400 500], ["0" "100" "200" "300" "400" "500"]);
a.y_ticks = tlist(["ticks", "locations","labels"],..
[-40 -30 -20 -10 0 10], ["-40" "-30" "-20" "-10" "0" "10"]);
title("Time = "+string(int(time))+" seconds","fontsize",4); // draw title
xstring(234, -38,"x (m)"); // draw x label
txt=gce(); txt.font_size = 4;
xstring(2, -22,"z (m)"); // draw z label
txt=gce(); txt.font_size = 4;
drawnow;
// save frames as sequential GIF files
//if n < 10 then
// xs2gif(0,'ex100'+string(n)+'.gif')
//else
// if n < 100 then
// xs2gif(0,'ex10'+string(n)+'.gif')
// else
// xs2gif(0,'ex1'+string(n)+'.gif')
// end
//end
end // end reference for animation loop
|
ed664eafc5ebbfb43c5dab2e1204468fb81ab6c3 | 352a2b6c7e8e0fbc76f9dacb222075df0cc1bbc6 | /TP3/viterbi.sci | 4425a6e9c0ffd116e90b61f03494f6d0632e9381 | [] | no_license | BenFradet/RO05 | 443dd2807b521eefdd65ff901d25b46bce8a0838 | 0aa5855de282bfccacae999536f1424a303ca72e | refs/heads/master | 2020-06-06T17:45:47.138916 | 2014-12-18T15:32:12 | 2014-12-18T15:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 939 | sci | viterbi.sci | function[mostProbableStatePath, positionsStatesMatrix] = viterbi(...
sequence, ...
transitionMatrix, ...
emissionMatrix)
// Author: Benjamin Fradet
exec('makeViterbiMatrix.sci', -1);
viterbi = makeViterbiMatrix(sequence, transitionMatrix, emissionMatrix);
// finds the state with the highest probability
[m mostProbableStatePath] = max(viterbi, 'c')';
prevMostProbableState = mostProbableStatePath(1);
startPos = 1;
idx = 1;
for i = 2:length(sequence)
mostProbableState = mostProbableStatePath(i);
if mostProbableState ~= prevMostProbableState
positionsStatesMatrix(idx, :) = ...
[prevMostProbableState, startPos, i - 1];
startPos = i;
idx = idx + 1;
end
prevMostProbableState = mostProbableState;
end
positionsStatesMatrix(idx, :) = [prevMostProbableState, startPos, i];
endfunction
|
7aaf4f56e18756978064bd5ccc908a3b4a3374f1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2615/CH1/EX1.1/1_1.sce | 8790081be5c69eca325b8b1e28e555dfa20691f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 150 | sce | 1_1.sce | clc
//initialisation of variables
d=1000//m
h=60//min
//CALCULATIONS
V=d/h*(2/3)//m/min
//RESULTS
printf('The unit of velocity =% f m/min',V)
|
eb854a0a52018119b2592603a20180968f5458ba | 449d555969bfd7befe906877abab098c6e63a0e8 | /2231/CH2/EX2.12/Ex_2_12.sce | 67e91ca5b8c4f5fd3de7880f3a0f559bec2bc756 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex_2_12.sce | //Example 2_12
clc;
clear;close;
//Given data:
Vs=230;//V
f=50;//Hz
alfa=90;//degree
//Solution :
Vm=Vs*sqrt(2);//V
Vdc=Vm/%pi*(1+cosd(alfa))//V
disp(Vdc,"Vdc in V");
Vrms=Vm/sqrt(2)*sqrt(1/%pi*[%pi-%pi/2+sin(%pi)/2]);//V
disp(Vrms,"Vrms in V");
Is_by_I=sqrt(1-%pi/2/%pi);
Is1_by_I=2*sqrt(2)/%pi*cos(%pi/4);
HF=sqrt((Is_by_I/Is1_by_I)^2-1);//unitless
disp(HF,"Harmonic factor");
theta1=-alfa/2*%pi/180;//radian
DF=cos(theta1);//unitless
disp(DF,"Displacement factor");
PF=(Is1_by_I/Is_by_I)*DF;//lagging
disp(PF,"Power factor(lagging)");
|
99ec4bc6a98af7e3fa410eeafeca875b2f56270a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2138/CH5/EX5.3/EX_5_3.sce | 37a5941677fdca190b20b5514c734ece83436983 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 351 | sce | EX_5_3.sce | //Example 5.3 // resistance of the heater element
clc;
clear;
close;
w=15;// in kg
t1=15;// in degree celsius
t2=100;//in degree celsius
t=25;// time in minutes
I=10;// in ampere
n=85;//efficiency of conversion in percentage
ho=w*(t2-t1);//output heat required in kcal
R=((ho*4187*100)/(I^2*t*60*n));// resistance in ohms
disp(R,"resistance in ohms")
|
ca5abe606dc5766502e04f1326edf546f05e2b6c | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/file.man.tst | 749cdf4a0ef1bbf0b0515b25870ef592831d5324 | [
"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 | 243 | tst | file.man.tst | clear;lines(0);
u=file('open',TMPDIR+'/foo','unknown')
for k=1:4
a=rand(1,4)
write(u,a)
end
file('rewind',u)
x=read(u,2,4)
file('close',u)
//
file('close',file() ) //closes all opened files (C or Fortran type).
//
[units,typs,nams]=file()
|
d2b89da95931ef7abfb762237919cc884ce32639 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3864/CH6/EX6.23/Ex6_23.sce | d93dc86f72dfd3ec31b8c7a175cd69b97e55d550 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 805 | sce | Ex6_23.sce | clear
//
//
//Initilization of Variables
K=5 //N/mm //Stiffness
L=100 //mm //Solid Length
q_s=60 //N/mm**2 //Max shear stress
W=200 //N //Max Load
G=80*10**3 //N/mm**2
//Calculations
//K=W*dell**-1
//After substituting values and further simplifying we get
//d=0.004*R**3*n ........(1) //mm //Diameter of wire
//n=L*d**-1 ........(2)
//From Shearing stress
//q_s=16*W*R*(%pi*d**3)**-1
//After substituting values and further simplifying we get
//d**4=0.004*R**3*n .................(4)
//From Equation 1,2,3
//d**4=0.004*(0.0785*d**3)**3*100*d**-1
//after further simplifying we get
d=5168.101**0.25
n=100*d**-1
R=(d**4*(0.004*n)**-1)**0.3333
//Result
printf("\n Diameter of Wire is %0.2f mm",d)
printf("\n No.of turns is %0.2f ",n)
printf("\n Mean Radius of spring is %0.2f mm",R)
|
997dbbcb63d097c4aabb3638b7ff272484c9f726 | e7055fdf94e8a24293cab7ccbeac12039d6fe512 | /macros/stereoCalibrateAndRect.sci | e48eb0df4e078c34c126468fbb914dc98654bf80 | [] | no_license | sidn77/FOSSEE-Image-Processing-Toolbox | 6c6b8b860f637362a73d28dcfe13e87d18af3e2c | 8dfbdbdfd38c73dc8a02d1a25678c4a6a724fe18 | refs/heads/master | 2020-12-02T16:26:06.431376 | 2017-11-08T17:54:03 | 2017-11-08T17:54:03 | 96,552,565 | 0 | 0 | null | 2017-07-07T15:37:18 | 2017-07-07T15:37:18 | null | UTF-8 | Scilab | false | false | 4,022 | sci | stereoCalibrateAndRect.sci | // Copyright (C) 2015 - 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: Siddhant Narang
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function params = stereoCalibrateAndRect(objectpoints, imagepoints1, imagepoints2, imageSize, varargin)
// This function returns a set of transformation matrices which helps to callibrate camera
// and also rectify the images taken by the camera.
//
// Calling Sequence
// params = stereoCalibrateAndRect(objectpoints, imagepoints1, imagepoints2, imageSize)
//
// Parameters
// objectpoints: Vector of vectors of the calibration pattern points.
// imagepoints1: Vector of vectors of the projections of the calibration pattern points, observed
// by the first camera.
// imagePoints2: Vector of vectors of the projections of the calibration pattern points, observed
// by the second camera.
// imageSize: Size of the image used only to initialize intrinsic camera matrix.
// Returns: A struct with the following values<itemizedlist><listitem><para> cameraMatrix1 </para></listitem><listitem><para> distortionCoefficients1 </para></listitem><listitem><para> cameraMatrix2 </para></listitem><listitem><para> distortionCoefficients2 </para></listitem><listitem><para> rotationMatrix </para></listitem><listitem><para> TranslationVector </para></listitem><listitem><para> DepthMap </para></listitem><listitem><para> ProjectionMatrix1 </para></listitem><listitem><para> ProjectionMatrix2 </para></listitem></itemizedlist>
//
//
// Description
// The function estimates transformation between two cameras making a stereo pair and also
// computes the rotation matrices for each camera that (virtually) make both camera image
// planes the same plane. Consequently, this makes all the epipolar lines parallel and thus
// simplifies the dense stereo correspondence problem
//
// Examples
// stacksize("max");
// img_1 = imread("images/left1.jpg", 0);
// img_2 = imread("images/right1.jpg", 0);
// w1 = genCheckerboardPoints([10, 7], 8);
// ip1 = detectCheckerboardCorner(img_1, [7, 10]);
// ip2 = detectCheckerboardCorner(img_2, [7, 10]);
// ip1l = list(ip1);
// ip2l = list(ip2);
// op = stereoCalibrateAndRect(w1, ip1l, ip2l, size(img_1));
// [map map1] = disparity(img_1, img_2);
// img = reconstructScene(op.DepthMap, map1, 1);
//
// See also
// imread
// genCheckerboardPoints
// detectCheckerboardCorner
// disparity
// reconstructScene
//
// Authors
// Siddhant Narang
[lhs rhs] = argn(0);
if lhs > 1
error(msprintf("Too many output arguments\n"));
elseif rhs > 8
error(msprintf("Too many input arguments, maximum number of arguments is 7\n"));
elseif rhs < 4
error(msprintf("The function needs atleast 3 arguments\n"));
end
if rhs == 4
[a b c d e f g h i] = raw_stereoCalibrateAndRect(objectpoints, imagepoints1, imagepoints2, imageSize);
elseif rhs == 5
[a b c d e f g h i] = raw_stereoCalibrateAndRect(objectpoints, imagepoints1, imagepoints2, imageSize, varargin(1));
elseif rhs == 6
[a b c d e f g h i] = raw_stereoCalibrateAndRect(objectpoints, imagepoints1, imagepoints2, imageSize, varargin(1), varargin(2));
elseif rhs == 7
[a b c d e f g h i] = raw_stereoCalibrateAndRect(objectpoints, imagepoints1, imagepoints2, imageSize, varargin(1), varargin(2), varargin(3));
elseif rhs == 8
[a b c d e f g h i] = raw_stereoCalibrateAndRect(objectpoints, imagepoints1, imagepoints2, imageSize, varargin(1), varargin(2), varargin(3), varargin(4));
end
params = struct('cameraMatrix1', a, 'distortionCoefficients1', b, 'cameraMatrix2', c,'distortionCoefficients2', d, 'rotationMatrix', e, 'TranslationVector', f, "DepthMap", g, "ProjectionMatrix1", h, "ProjectionMatrix2", i);
endfunction |
a47e2ab014ba778fc7818e8fd1e7c52c9d6180e3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3506/CH5/EX5.1/Exp_5_1.sce | d6066c2c425d246814a549194f7e1e3e35e778a8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 779 | sce | Exp_5_1.sce | //Optical Fiber communication by A selvarajan
//example 5.1
//OS=Windows XP sp3
//Scilab version 5.5.1
clc;
clear all;
//given
optical_power=10*10^-6//optical power in W
R=0.5//Responsivity in A/W
Is=optical_power*R//shot noise current in A
Id=2*10^-9//dark current in A
Rl=1e6//Load resistance in ohm
B=1e6//bandwidth in Hz
T=300//Temperature in K
K=1.38*10^-20//Boltzman constant in m2 g s-2 K-1
q=1.609*10^-19//charge of a electron in Coulombs
Ith=4*K*T*B/Rl//Mean Square Thermal noise current in A
SNR=(Is^2)/(2*q*(Is+Id)+Ith)//Signal to noise ratio
mprintf("Thermal noise current=%f*10^-18A",Ith*10^18)
mprintf("\nShot noise current=%f*10^-6A",Is*10^6)
mprintf("\nSignal to noise ratio=%fdB",10*log10(SNR))//The answers vary due to round off error
|
9d99594508c8a757105146c18118293bb5ee610f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1280/CH11/EX11.3/11_3.sce | dab85e4e27606f2d0761d624d62638502c3b168d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 189 | sce | 11_3.sce | clc
//initialisation of variables
P1= 2000 //in^3
T= 80 //F
T1= 250 //F
//CALCULATIONS
P2= (P1+14.7)*(460+T1)/(T+460)
P3= P2-14.7
//RESULTS
printf ('guage pressure = %.f psi',P3)
|
d96b184c18adad51859e9e7a3c196277c487336f | 449d555969bfd7befe906877abab098c6e63a0e8 | /260/CH4/EX4.14/4_14.sce | 8785b761ba888d584838b0420898d3b512a76a58 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 336 | sce | 4_14.sce | //Eg-4.14
//pg-179
clear
clc
deff('[z]=f(x)','z=4*x^3+3*x^2+2*x+1');
deriv=0;
a=[1 2 3 4];
F5=feval(5,f);
F=a(4);
x=5;
for i=1:3
deriv=deriv*x+F;
F=F*x+a(4-i);
end
printf('The value of the function at x = 5 is %f\n',F5)
printf(' The value of the derivative of the function at x = 5 is %f\n',deriv)
|
19a5f7a59dab3be4bca384558ff6d420485485a4 | 481f3317298608c37d4cb96f148faf5068d712bb | /lib/scilab/makeGraph.sci | 0e38c4f02c8298fc70dc8f24f41e029ca29aca34 | [] | no_license | masilvabustos/xcos2uc | 1f83c0710da6506cec8c8aad5a97848903f6ad32 | 531c35a53b7efc11e69e98c643ebad3df3d362f5 | refs/heads/master | 2020-04-05T22:41:50.570623 | 2016-11-13T18:18:22 | 2016-11-13T18:18:22 | 22,852,879 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 6,756 | sci | makeGraph.sci |
// Creates an edge list from a diagram objects list.
// An edge is a tuple which elements are: source sink block event_source etc.
function graph = makeGraph(objs, link_list)
graph = tlist(['graph', 'edge', 'node'], list(), list())
[edge_list, node_count] = makeEdgeList(objs, link_list)
node_list = list()
for i = 1:node_count
node_list(i) = tlist(['node', 'source_list', 'sink_list', 'convergent_edge', 'divergent_edge'], list(), list(), list(), list())
end
source_list = list()
sink_list = list()
for e = edge_list
if e.source == list() then
source_list($+1) = e
continue
end
if e.sink == list() then
sink_list($+1) = e
continue
end
source = zeros(length(e.source), 2)
for i = 1:length(e.source)
source(i, 1:2) = e.source(i)
end
sink = zeros(length(e.sink), 2)
for i = 1:length(e.sink)
sink(i, 1:2) = e.sink(i)
end
graph.edge($+1) = createBlockTypeEdge(e.obj_index, source, sink)
end
for e = 1:length(graph.edge)
for s = graph.edge(e).source'
node_list(s(1)).divergent_edge($+1) = [e, s(2)]
end
for s = graph.edge(e).sink'
node_list(s(1)).convergent_edge($+1) = [e, s(2)]
end
end
for source_edge = source_list
for source = source_edge.sink
node_list(source(1)).source_list($+1) = [source_edge.obj_index, source(2)]
//for e = 1:length(node_list(source(1)).divergent_edge)
// node_list(source(1)).divergent_edge(e)(2) = source(2)
//end
end
end
for sink_edge = sink_list
for sink = sink_edge.source
node_list(sink(1)).sink_list($+1) = [sink_edge.obj_index, sink(2)]
//for e = 1:length(node_list(sink(1)).convergent_edge)
// node_list(sink(1)).convergent_edge(e)(2) = sink(2)
//end
end
end
for n = node_list
divergent_edge = zeros(length(n.divergent_edge), 2)
for i = 1:length(n.divergent_edge)
divergent_edge(i,:) = n.divergent_edge(i)
end
convergent_edge = zeros(length(n.convergent_edge), 2)
for i = 1:length(n.convergent_edge)
convergent_edge(i,:) = n.convergent_edge(i)
end
source = zeros(length(n.source_list), 2)
for i = 1:length(n.source_list)
source(i,:) = n.source_list(i)
end
sink = zeros(length(n.sink_list), 2)
for i = 1:length(n.sink_list)
sink(i,:) = n.sink_list(i)
end
graph.node($+1) = tlist(['node', 'source', 'sink', 'convergent_edge', 'divergent_edge'], ...
source, sink, convergent_edge, divergent_edge)
end
endfunction
function [edge_list, node_count] = makeEdgeList(objs, link_list)
edge_list = list()
current_node = 0;
for l = link_list
obj = objs(l)
current_node = current_node + 1;
//mprintf('linking from %d to %d\n', obj.from(1), obj.to(1))
out_port = obj.from
block_id = out_port(1);
block = objs(block_id);
// Find an edge which has no sink and attach to current node
// If not found, create a new edge without source connected to current node
found = %f
for e = 1:length(edge_list)
edge = edge_list(e);
if edge.obj_index <> block_id then
continue;
end
edge_list(e).sink = lstcat(edge.sink, [current_node, out_port(2)])
found = %t
break;
end
if ~found then
edge_list($+1) = createBlockTypeEdge(block_id, list(), ...
list([current_node, out_port(2)]))
end
//******** sink block *********
in_port = obj.to
block_id = in_port(1);
block = objs(block_id);
found = %f;
for e = 1:length(edge_list)
edge = edge_list(e);
if edge.obj_index <> block_id then
continue;
end
edge_list(e).source = lstcat(edge.source, [current_node, in_port(2)])
found = %t;
break;
end
if ~found then
edge_list($+1) = createBlockTypeEdge(block_id, list([current_node, out_port(2)]), list())
end
end
node_count = current_node;
//edge_list = mergeEdges(edge_list) not used, implicitly merged
endfunction
function edge_list = mergeEdges(from_edge_list)
if typeof(from_edge_list) <> 'list' then
error('megeEdges: invalid type')
end
edge_list = from_edge_list
for i = 1:length(edge_list)
if isequal(edge_list(i), 'deleted') then
continue
end
for j = i+1:length(edge_list)
if isequal(edge_list(j), 'deleted') then
continue
end
if edge_list(j).block_id <> edge_list(i).block_id then
continue
end
edge_list(i).source = lstcat(edge_list(i).source, from_edge_list(j).source)
edge_list(i).sink = lstcat(edge_list(i).sink, from_edge_list(j).sink)
edge_list(i).in_port = lstcat(edge_list(i).in_port, from_edge_list(j).in_port)
edge_list(i).out_port = lstcat(edge_list(i).out_port, from_edge_list(j).out_port)
edge_list(j) = 'deleted'
end
end
for i = 1:length(edge_list)
if isequal(edge_list(i), 'deleted') then
edge_list(i) = null()
end
end
endfunction
function [transfer_edges, inout_edges] = separateInOutEdges(edge_list)
inout_edges = list()
transfer_edges = list()
for edge = edge_list
if edge.source == list() | edge.sink == list() then
inout_edges($+1) = edge
else
transfer_edges($+1) = edge
end
end
endfunction
function name = getBlockName(block)
name = block.gui
endfunction
function edge = createBlockTypeEdge(obj_index, source, sink)
edge = tlist(['block-edge', 'obj_index', 'source', 'sink'], ...
obj_index, source, sink);
endfunction
function event_source = makeEventSource(block)
event_source = block.model;
endfunction
|
0748a99e3702162ab471f7c9fe7087af1c2f8754 | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH11/EX11.6/11_6.sce | 7e405f55241c17aa9286e71da79ee63cdf3d1667 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 483 | sce | 11_6.sce | clear;
clc;
//Example - 11.6
//Page number - 390
printf("Example - 11.6 and Page number - 390\n\n");
//This problem involves proving a relation in which no mathematics and no calculations are involved.
//For prove refer to this example 11.6 on page number 390 of the book.
printf(" This problem involves proving a relation in which no mathematics and no calculations are involved.\n\n");
printf(" For prove refer to this example 11.6 on page number 390 of the book.")
|
42b4c97da1b73c58893a74b854de8bd0a6fb2b6f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2444/CH4/EX4.21/ex4_21.sce | 6ff4746b96a797d24f72b02e7645c46e18831f52 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 243 | sce | ex4_21.sce | // Exa 4.21
clc;
clear;
close;
format('v',5)
// Given data
g_m = 2500;// in µS
g_m = g_m * 10^-6;// in S
R_L = 12;// in k ohm
R_L = R_L * 10^3;// in ohm
//Av = -g_m*(r_d||R_D||R_L);
Av = -g_m*R_L;
disp(Av,"The voltage gain is");
|
a376d05ce2dbe41cc0f4d4a87925b7c13024f501 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1322/CH12/EX12.4/89ex1.sce | e6cf3f5665519467367d3f8add016c57a238b1bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 954 | sce | 89ex1.sce |
//Given: For model A, material(m) cost(c)=4$,labour(l) 5$,profit(p) 5$.For model B, m=3$, l=9$,p=6$.Altogether 240$ for m and 450$ for l.
clc;
clear;
clf();
//let a is number of model A and b for model B to be made
//constraints on m & l as pair of ineqalities 4a+3b<=240,5a+9b<=450.maximize the profit 5a+6b
a=linspace(1,100,10);
b=(240-4*a)/3;
plot2d(a,b,3);
b=(450-5*a)/9;
plot2d(a,b,5);
//find the point in this region where 5a+6b is greatest with the parallel lines concept
//consider the parallel lines 5a+6b=100 , 5a+6b=150 , 5a+6b=300 ... the 2nd two are shown on graph \n");
b=(150-6*a)/5;
plot(a,b,'b--.x');
b=(300-6*a)/5;
plot(a,b,'b--.o');
// as profit gets larger, profit line moves up to the right
a=39;b=28;
m=5*a+6*b;
mprintf('\n the maximimum profit %i occurs at (%i,%i) \n',m,a,b);
xtitle("Model A vs. Model B ","Model A","Model B");
xgrid;
legend("4a+3b<=240","5a+9b<=450","5a+6b=150","5a+6b=300");
|
ac44c6efaa379de65ce9e9b64058a99d41cc2530 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3717/CH13/EX13.3/Ex13_3.sce | b745b3501096bcf7bf1e8be787bc5446c1e84a40 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 688 | sce | Ex13_3.sce | // Ex13_3 Page:259 (2014)
clc;clear;
mu_0 = 4*%pi*1e-007; // Magnetic permeability, H/m
e = 1.6e-019; // Charge on an electron, C
m = 9.1e-031; // Mass of an electron, kg
Z = 1; // Atomic number of the material
a = 2.55e-010; // Lattice constant of cubic structure, m
chi_dia = -5.6e-006; // Diamagnetic susceptibility of the material
N = 2/a^3; // Number of atoms per unit volume of the material, per metre-cube
r_bar = sqrt(abs(chi_dia)*6*m/(mu_0*Z*e^2*N)); // Radius of an atom of the material, m
printf("\nThe radius of an atom of the material = %5.3f angstrom", r_bar/1e-010);
// Result
// The radius of an atom of the material = 0.888 angstrom |
83a524f561cedc20837e9a0c80b5659bc87b0420 | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH10/EX10.22/example10_22.sce | 34975e8fa5499b5bbd6e2462995b68da11e115b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 928 | sce | example10_22.sce | //clc()
N = 100;//moles ( Basis - Fresh feed )
Pconv = 20;//%
xco = 0.33;
xh2 = 0.665;
xch4 = 0.005;
//R - recycle stream, P - purge stream
//x - mole fraction of CO in recycle stream ,
xch4r = 0.03;
//CO = x, H2 = 1 - xch4r - CO = 0.97- x;
//methane balance over the entire system,
P = xch4 * N / xch4r;
//taking caron balance, 33.5 = M + P ( 0.03 + x )
//Hydrogen balance, 66.5 + 2*0.5 = 2M + P(2*0.03 + 0.97 - x)
//substituting P, M + 16.67x = 33.0 and 2M - 16.67x = 50.33
M = (33.0 + 50.33)/3;
x = ((xco + xch4)*N - M ) / P - xch4r;
//methanol balance,(xco*N+Rx) * Poncv/100 = M
R = (M*100 / Pconv - (xco*N))/x;
disp("mol",R,"(a)moles of recycle stream = ")
disp("mol",P,"(b)moles of purge stream = ")
H2 = 1 - xch4r - x;
disp("%",xch4r*100,"(c)CH4 in purge stream = ")
disp("%",x*100,"CO in purge stream = ")
disp("%",H2*100,"hydrogen in purge stream = ")
disp("mol",M,"(d)Methanol produced = ") |
0b6125eada97bc027836523405867e158369319b | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /xcos_blocks/tanh_block.sci | 9c6db781d8d2970de8b8bd5f0d6f4ac61b70bcb9 | [] | 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 | 2,077 | sci | tanh_block.sci | function [x,y,typ]=tanh_block(job,arg1,arg2)
// Copyright INRIA
x=[];y=[];typ=[];
select job
case 'plot' then
standard_draw(arg1)
case 'getinputs' then
[x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then
[x,y,typ]=standard_outputs(arg1)
case 'getorigin' then
[x,y]=standard_origin(arg1)
case 'set' then
x=arg1;
graphics=arg1.graphics;exprs=graphics.exprs
model=arg1.model;
while %t do
[ok,in,out,xx,rpar,exprs]=getvalue('Set TANH NEW block parameters',..
['Number of input ports or vector of sizes';..
'no of o/ps';'State';'Tau'],..
list('vec',-1,'vec',-1,'vec',-1,'vec',1),exprs)
if ~ok then break,end
if in<1|in>31 then
message('Block must have at least one input port and at most 31')
ok=%f
else
it=-ones(in,1)
ot=-ones(out,1)
inp=[-[1:in]',ones(in,1)]
oup=[-[1:out]',ones(out,1)]
model.rpar = rpar
model.state = xx
[model,graphics,ok]=set_io(model,graphics,...
list(inp,it),...
list(oup,ot),[],[])
end
if ok then
graphics.exprs=exprs;
x.graphics=graphics;x.model=model
break
end
end
case 'define' then
in=1
out=1
state= 0
tau = 60e-6
model=scicos_model()
model.sim=list('tanh_func',5)
model.in=-[1:in]'
model.intyp=-ones(in,1)
model.out=-[1:out]'
model.outtyp=-ones(out,1)
model.rpar = tau
model.state= state
model.nzcross=1;
model.blocktype='c'
model.dep_ut=[%t %t]
exprs=[sci2exp(in) ; sci2exp(out); sci2exp(state) ; sci2exp(tau)]
gr_i=['txt=''TANH '';';'xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')']
x=standard_define([5 2],model,exprs,gr_i)
end
endfunction
|
7f0dfd3f13e818cf93c3e74123440b96c1a9c934 | 9e8ee5cada387d28d7b64dd58a1d43add9abf855 | /Test/examples/notany.tst | 701045ee8d768e5d58640a45ca997811a80068fb | [
"MIT"
] | permissive | nvitucci/pyke | 2804504666cdf0bd3219daa6a1aca8a58d4bfdb8 | dc4fc6056a3d2bb701cda645359dcb92332d7f51 | refs/heads/master | 2023-04-01T17:21:59.906819 | 2021-04-16T23:20:00 | 2021-04-16T23:20:00 | 267,141,385 | 7 | 3 | MIT | 2021-04-20T21:26:38 | 2020-05-26T20:09:55 | Python | UTF-8 | Scilab | false | false | 780 | tst | notany.tst | # notany.tst
>>> import sys
>>> import pyke
>>> import os
>>> new_path = os.path.join(os.path.dirname(os.path.dirname(pyke.__file__)),
... 'examples/notany')
>>> sys.path.append(new_path)
>>> import driver
>>> driver.fc_test()
egon has no uncle
ralf has no uncle
anton has no uncle
elisabeth has no uncle
karin has no uncle
sabine has no uncle
anton has no aunt
elisabeth has no aunt
karin has no aunt
sabine has no aunt
>>> driver.bc_test()
anton has no aunt
elisabeth has no aunt
karin has no aunt
sabine has no aunt
egon has no uncle
ralf has no uncle
anton has no uncle
elisabeth has no uncle
karin has no uncle
sabine has no uncle
|
183f280822cc5e8ba16d5aee8d4d4fe0e64dc22d | 449d555969bfd7befe906877abab098c6e63a0e8 | /650/CH8/EX8.13/13.sce | 86735e71e9446e065ef6fdd921329ee36e619d14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 231 | sce | 13.sce | clc
H2=0.5; //m
H1=2; //m
A=4; //m^2
f=0.005;
L=20; //m
d=0.025; //m
g=9.81; // m/s^2
a=%pi*d^2/4;
t=integrate('-A*sqrt((4*f*L/d)+2.5)/a/(sqrt(2*g))*(H)^(-1/2)', 'H', H1, H2);
disp("Time taken =")
disp(t)
disp("s") |
3506bc6942539350cfbc35c996ff283dd249ebbf | b5b8080da626573a49252737f2fd67dca771b156 | /0_include.tst | 031b9b59024e0305649c06882eca99e08e58976c | [] | no_license | GabrielYSirat/GPU | 6cd378854d02b2d39f73db0307fe3b51c71baed2 | a64bf434d687ddc90453afefea6441fc91333efc | refs/heads/master | 2021-08-30T07:11:51.429075 | 2017-12-16T16:41:44 | 2017-12-16T16:41:44 | 114,474,856 | 0 | 0 | null | 2017-12-16T16:41:45 | 2017-12-16T16:31:10 | C++ | UTF-8 | Scilab | false | false | 257 | tst | 0_include.tst | //#define STARTDEVICE // OK
//#define TESTTHREADS // OK
#define TESTDISTRIBDEVICE OK
//#define TESTSCRATCH // NOT WORKING
//#define DISTRIBPOS
//#define OFFSET
//#define TESTAGG
//#define PSCRATCHTEST
#define TESTDISVAL
#define DISTRIBVAL
#define TESTSIMU |
9e0aa13fcf8d936e0a0a91f171944da3f1d077e9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1574/CH8/EX8.2/TL_Ex_8_2.sce | e8a08a17e6c08d520fe358fedec1461b46be5927 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 513 | sce | TL_Ex_8_2.sce | clc
//Chapter8
//Example8.2, page no 314
//Given
v=3e8// velocty of light
f=1.2e6// Operating Freq
lambda=v/f
//disp(lambda)
l=100// length of the Tx-Line
phi=2*(%pi*l)/(lambda)// Phase shift in degrees
Zo=500// Characteristic impedance
//a Open circuited Line
Zin=-%i*Zo*(cos(phi)/sin(phi))
//b Short circuited Line
Z1in=%i*Zo*tan(phi)
mprintf('The phase shift is: %d degrees\n Open Circuited line impedance: -j%f ohms\n Short Circuited line impedance -j%f ohms',phi*180/%pi,-Zin*%i,Z1in*%i)
|
960db68531a35640d25c2ef9cbf6843c6b8a25ee | 449d555969bfd7befe906877abab098c6e63a0e8 | /824/CH4/EX4.11/4_11.sce | b8da7df28727bddd093f59e1188ecd4530fb6187 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 672 | sce | 4_11.sce | //clear//
clc
clear
exec("4__11.sci");
t = 0:1:500;
function w=f(t,C)
w =zeros(4,1);
v = v0+v00*t;
w(1)= -k*C(1)*C(2)-v00*C(1)/v;
w(2) = -k*C(1)*C(2)+v00*(Cb0-C(2))/v;
w(3) = k*C(1)*C(2)-v00*C(3)/v;
w(4) = k*C(1)*C(2)-v00*C(4)/v;
endfunction
x=ode([.049;0;0;0],t0,t,f);
l1=x(1,: )'
l2=x(2,: )'
l3=x(3,: )'
for i = 1:length(t)
rate(1,i)=k*x(1,i )*x(2,i)
end
scf(1)
plot2d(t',[l1 l2 l3]);
xtitle( 'Figure E4-11.1 Concentration-time trajectories', 't', 'Ca,Cb,Cc' ) ;
legend(['Ca';'Cb';'Cc']);
scf(2)
plot2d(t,rate)
xtitle( 'Figure E4-11.2 Reaction rate-time trajectories', 't', 'Reaction Rate(mols dm^3)' ) ;
'V
|
b1a22d7fcae328ae6edf4256b992906afebb0221 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1457/CH2/EX2.4/2_4.sce | 7ec97f99128dee8ff880fdf60e00de0f755825ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 848 | sce | 2_4.sce | clc
//Initialization of variables
z1=1 //in
z2=2 //in
z3=2 //in
sOil=0.8
sWater=1
Pa=3 //psi
//calculations
Pd=(Pa) + (z2+z1)*sOil*62.4/144 + 62.4*z3/144
Fa=Pa*144*%pi*z3^2
Fb=sOil*62.4*(z2+z1-(z2+z3)*z2/((z2+z1)*%pi))*(%pi*z3^2 /2)
Fc=sOil*62.4*(z2+z1)*(%pi*z3^2 /2)
Fd=62.4*(z2+z3)*z2/((z2+z1)*%pi)*(%pi*z3^2 /2)
F=Fa+Fb+Fc+Fd
yPa=z2+z1
yCb=z2+z1-(z2+z3)*z2/((z2+z1)*%pi)
ICb=%pi*(z2+z3)^4 /128 -0.5*%pi*z2^2 *((z2+z3)*z2/((z2+z1)*%pi))^2
yPb=yCb+ICb/(yCb*0.5*%pi*z2^2)
yPc=z2+z1+ (z2+z3)*z2/((z2+z1)*%pi)
ICd=ICb
yPd=z2+z1 + (z2+z3)*z2/((z2+z1)*%pi) + ICb/((z2+z3)*z2/((z2+z1)*%pi)*0.5*%pi*z3^2 )
yP=(Fa*yPa+Fb*yPb+Fc*yPc+Fd*yPd)/F
//Results
printf('case 1')
printf('\n Pressure at the bottom = %.1f psi',Pd)
printf('\n case 2')
printf('\n Net force = %d lb', F+3)
printf('\n Location of net force= %.2f ft', yP)
|
e8b32d95498af57f84d88fc544b29711fe0ea2e3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3492/CH5/EX5.7/Ex5_7.sce | 549cdc666068b93b36fc63ac4bfb36e1355780d7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 516 | sce | Ex5_7.sce | clc
//Chapter5
//Ex_7
//Given
Nd=10^15 //in cm^-3
Nc=2.8*10^19 //in cm^-3
Ti=556 // in Kelvin
k=8.62*10^-5 //in eV/K
delta_E=0.045 //in eV
T=300 //in kelvin
//part(a)
disp("From fig 5.16 the estimated temperature above which the si sample behaves as if intrinsic is 556 Kelvin")
//part(b)
Ts=delta_E/(k*log(Nc/(2*Nd)))
Nc_Ts=Nc*(Ts/T)^(3/2)
disp(Ts,"Lowest temperature in kelvin is")
//the improved temperature
Ts=delta_E/(k*log(Nc_Ts/(2*Nd)))
printf("Extrinsic range of Si is %f K to 556 K",Ts)
|
ef07af7a4dc3c2c1f94dd60aae1d3ade35d8d960 | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH10/EX10.6.a/data10_6.sci | 589d2666645e6df504a390866aacd506c9a58e0e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 526 | sci | data10_6.sci |
//(Springs) Example 10.6
//Velocity of the railway wagon v (m/s)
v = 1.5
//Mass of the wagon m (kg)
m = 1500
//Spring compression delta (mm)
delta = 150
//Spring index C
C = 6
//Ultimate tensile strength of the spring material Sut (N/mm2)
Sut = 1250
//Rigidity modulus of the material G (N/mm2)
G = 81370
//For plain ends, endtype = 1
//For plain ends(ground), endtype = 2
//For square ends, endtype = 3
//For square ends(ground), endtype = 4
endtype = 4
//Number of springs n
n = 2
//Gap between adjacent coils g (mm)
g = 2
|
205e0be9a0f80996c42dae8d9329f496527dabe1 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/W05.prev.tst | 7061e4fc7fb572a4e1c787aff8d91f4781f87cbc | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,194 | tst | W05.prev.tst | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=UTF-8" />
<meta name="robots" content="noindex, nofollow" />
<link rel="stylesheet" title="common" type="text/css" href="stylesheet.css" />
<title>RaMath Main Page</title>
</head>
<body>
<!-- area="rset", opt=""
form1="%28a%2Bb%29%5E6"
form2="a⁶ + 2¹3a⁵*b + 3¹5a⁴*b² + 2²5a³*b³ + 3¹5a²*b⁴ + 2¹3a*b⁵ + b⁶"
rmap="{a=>a,b=>b}"
-->
<h2>ramath - Rational and Symbolic Mathematics</h2>
<form action="servlet" method="get">
<input type = "hidden" name="view" value="upper" />
<table cellpadding="0" border="0">
<tr valign="top">
<td><strong>Area:</strong><br />
<select name="area" size="3">
<option value="rset" selected>Symbolic RelationSet</option>
<option value="cfra">Continued Fraction</option>
<option value="eecj">Euler's Extended Conjecture</option>
</select>
<br />
<br />
<strong>Options:</strong> <input name="opt" maxsize="100" size="12" value="" />
<br /><br />
</td>
<td><strong>Variable Substitutions:</strong><br />
<table cellpadding="0" border="0">
<tr><td><input name="key0" type="hidden" value="a" />a-></td><td><input name="val0" size="20" maxsize="160" value="a" /></td></tr>
<tr><td><input name="key1" type="hidden" value="b" />b-></td><td><input name="val1" size="20" maxsize="160" value="b" /></td></tr>
</table>
</td>
</tr>
<tr valign="top">
<td align="left" colspan="2"><strong>RelationSet:</strong><br />
<textarea name="form1" wrap="virtual" cols="100" rows="2">%28a%2Bb%29%5E6</textarea>
</td>
</tr>
<tr valign="top">
<td align="left" colspan="2">
<input type="submit" value="Compute" /> with substitutions
</td>
</tr>
</table>
</form><!-- upper -->
<form action="servlet" method="get">
<input type = "hidden" name="view" value="lower" />
<input type = "hidden" name="area" value="rset" />
<input type = "hidden" name="opt" value="" />
<input type = "hidden" name="form2" value="a⁶ + 2¹3a⁵*b + 3¹5a⁴*b² + 2²5a³*b³ + 3¹5a²*b⁴ + 2¹3a*b⁵ + b⁶" />
<table cellpadding="0" border="0">
<tr valign="top">
<td><span class="p1">1</span>a⁶ + <span class="p2">2</span>¹<span class="p3">3</span>a⁵*b + <span class="p3">3</span>¹<span class="p5">5</span>a⁴*b² + <span class="p2">2²</span><span class="p5">5</span>a³*b³ + <span class="p3">3</span>¹<span class="p5">5</span>a²*b⁴ + <span class="p2">2</span>¹<span class="p3">3</span>a*b⁵ + <span class="p1">1</span>b⁶<br />a^6 + 6*a^5*b + 15*a^4*b^2 + 20*a^3*b^3 + 15*a^2*b^4 + 6*a*b^5 + b^6</td>
</tr>
<tr valign="top">
<td align="left">
<input type="submit" value="Replace" /> input field
</td>
</tr>
</table>
</form><!-- lower -->
<br />
See also: <a href="servlet?view=index">RaMath</a> Home<br />
<a title="wiki" href="http://www.teherba.org/index.php/RaMath" target="_new">Wiki</a> Documentation<br />
<a title="github" href="https://github.com/gfis/ramath" target="_new">Git Repository</a><br />
<a title="api" href="docs/api/index.html">Java API</a> Documentation<br />
<a title="manifest" href="servlet?view=manifest&lang=en">Manifest</a>, <a title="license" href="servlet?view=license&lang=en">License</a>, <a title="notice" href="servlet?view=notice&lang=en">References</a><br />
<!-- language="en", features="quest" -->
<p><span style="font-size:small">
Questions, remarks: email to <a href="mailto:punctum@punctum.com?&subject=RaMath">Dr. Georg Fischer</a></span></p>
</body></html>
|
a519dd7a8484a7f30f2cf3a7651ac7bf5f27297c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2753/CH5/EX5.5/Ex5_5.sce | 0819fa57636ebbce191d5e223fd0ef1b39dd0942 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex5_5.sce | //Example 5.5:
clc;
clear;
close;
//given data :
n=10;//turn ratio
Rl=10;//ohm
Rld=n^2*Rl;//in ohm
Ic=100;//in mA
Irms=Ic/(sqrt(2));//in mA
P=Irms^2*Rld;//in W
format('v',3)
disp(P*10^-6,"maximum power output is ,(W)=")
|
b05b6c664077d10e350e6a18c813ac5554106581 | bce0c755bfdc527c8cc0737e8e1e59467267cff9 | /macros/findHomography.sci | 2cfe4a083e82e7a2cd2a8a3a69f06b1ce0559458 | [] | no_license | shubham0108/FOSSEE-Image-Processing-Toolbox | bacc26e6c7139383a374ea16f6c62565a7ff0603 | 68cddb2ca8dabddfe47251ac6647011acb849a2c | refs/heads/master | 2021-06-16T02:27:39.886532 | 2020-05-01T09:23:39 | 2020-05-01T09:23:39 | 97,078,162 | 0 | 0 | null | 2017-07-13T03:57:21 | 2017-07-13T03:57:21 | null | UTF-8 | Scilab | false | false | 2,532 | sci | findHomography.sci | // Copyright (C) 2015 - 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: Nihar Rao
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function [homography_matrix]= findHomography(points1,points2,varargin)
// This Function Finds a perspective transformation between two planes.
//
// Calling Sequence
// homographyMatrix=findHomography(points1,points2);
// homographyMatrix=findHomography(points1,points2,method);
// homographyMatrix=findHomography(points1,points2,method,threshold);
//
// Parameters
// homographyMatrix: perspective transformation H between the source and the destination planes
// points1: Coordinates of the points in the original plane
// points2: Coordinates of the points in the target plane
// method: Method used to computed a homography matrix.
// Here are the different options for method
// 0 - a regular method using all the points
// 4 - RANSAC-based robust method
// 8 - Least-Median robust method
// 16 - PROSAC-based robust method
// threshold: Maximum allowed reprojection error to treat a point pair as an inlier.
// Note: the number of points should be same in the points1 and points2
// Description
// The function finds and returns the perspective transformation H between the source and the destination planes
//
//Examples
//
// read first image
// z=imread("lena.jpeg",0);
// get points from first image
// yo=detectGFTTFeatures(z);
// read second image
// image=imread("lena2.jpg",0);
// yo1=detectGFTTFeatures(image);
// // call function with same number of points in both(first arg has 594 so passig 594 points from second arg)
// lou=findHomography(yo.KeyPoints,yo1.KeyPoints(1:594,:));
[lhs rhs]=argn(0);
if lhs>1
error(msprintf(" Too many output arguments"));
elseif rhs>4
error(msprintf(" Too many input arguments,maximum number of arguments is 4"));
elseif rhs<2
error(msprintf("the function needs atleast 2 arguments"));
end
if rhs==2 then
homography_matrix=raw_findHomography(points1,points2);
elseif rhs==3
homography_matrix=raw_findHomography(points1,points2,varargin(1));
elseif rhs==4
homography_matrix=raw_findHomography(points1,points2,varargin(1),varargin(2));
end
endfunction
|
d99335ced4fa4abc36becdd3961c1179c6971d39 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1247/CH7/EX7.9/example7_9.sce | 9e942a99342b90bc6c936f3a0aa3316daccf499c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | example7_9.sce | clear;
clc;
// Stoichiometry
// Chapter 7
// Combustion
// Example 7.9
// Page 465
printf("Example 7.9, Page 465 \n \n");
// solution
// using mean heat capacity data Table 7.21
// basis 100 kmol of dry flue gas
H7 = 1.0875*100*30.31*(423.15-298.15)
H71 = 3633.654*(423.15-298.15)
fi7 = H71*3900*.7671/162.2 // kJ/h
fi1 = 3.9*1000*26170 // kJ/h
// performing heat balance
Hsteamgen = 23546.07
eff = Hsteamgen*100/fi1 // overall efficiency rate
printf("Overall efficiency rate = "+string(eff)+" percent.")
|
9e192025ba53c02a6ace2d3ccfd7ac7544622709 | 2707da68619819d8105f9ae472647dc578c75730 | /MethodOfLoopCurrent.sci | 447c8e61bd7a385d22f5222a733b3fe5a20c8604 | [
"Apache-2.0"
] | permissive | KrayzeX/ToE | 1aa62db747841e960fb47fbd59e38c6afa3a0723 | ad81dd433c0d3b23ebb00f0e65095ab6c1bed34e | refs/heads/master | 2020-05-26T09:19:33.970171 | 2017-06-02T08:50:16 | 2017-06-02T08:50:16 | 82,474,743 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,751 | sci | MethodOfLoopCurrent.sci | //Модуль, реализующий метод контурных токов
//В качестве параметров принимает контурную матрицу, матрицу сопротивлений ветвей,
//матрицу ЭДС источников, матрицу источников тока. Возвращает матрицу контурных токов.
//УПРОЩЁННЫЙ МКТ - ТОЛЬКО ДЛЯ ЦЕПЕЙ С ОДНИМ ИТ
//В данном модуле введено представление для ИТ и ИН в виде [uc1 uc2 u1] ([il1 il2 i1]),
//где u1/i1 - воздействие, uc1/il1 - реактивный элемент с меньшим номером ветви,
//uc2/il2 - реактивный элемент с большим номером ветви.
//Строка матрицы контурных токов представлена в виде [react1 react2 i1/u1],
//где react1 - коэффициент при реактивном элементе с меньшим номером ветви,
//react2 - коэффициент при реактивном элементе с большим номером ветви,
//i1/u1 - воздействие.
function LoopCurrent = MethodOfLoopCurrent(LoopMatrix, BranchResistance, EMFMatrix, CurrentMatrix)
exec 'Matrix_Resistance.sci';
exec 'FindLoopEMF.sci';
exec 'FindUnknownLoopCurrent.sci';
//Вычисляем матрицу сопротивлений контуров
Resistances = Matrix_Resistance(LoopMatrix, BranchResistance);
//Находим матрицу-столбец сумм напряжений источников напряжений контуров
EMFSumm = FindLoopEMF(LoopMatrix, EMFMatrix);
//Проверяем, есть ли в цепи ИТ
[rows columns] = size(CurrentMatrix);
//Число контуров
[Loops columns] = size(Resistances);
Module = [0 0 0];
CurrentBranch = 0;
for i=1:1:rows
for j=1:1:3
Module(1, j) = Module(1, j) + abs(CurrentMatrix(i, j));
if CurrentMatrix(i, j) ~= 0
CurrentBranch = i;
end;
end;
end;
if Module == [0 0 0]
//Цепь без ИТ
//Решаем систему уравнений
LoopCurrent = FindUnknownLoopCurrent(Resistances, EMFSumm);
else
//Цепь с ИТ
LoopCurrent = zeros(Loops, 3);
//Ищем контур, в котором найден ИТ
RequiredLoop = 1;
for i=1:1:Loops
if LoopMatrix(i, CurrentBranch) == 1
RequiredLoop = i;
break;
end;
end;
//Третий контурный ток протекает через непреобразованный ИТ
//и совпадает с ним по направлению
LoopCurrent(RequiredLoop, :) = Module;
//Находим взаимное сопротивление третьего и первого контуров
R13 = 0;
Choose = 1;
if(Loops > 1)
for i=1:1:2
if i == RequiredLoop
continue;
end;
R13 = Resistances(RequiredLoop, i);
Choose = i;
break;
end;
end;
//Находим взаимное сопротивление третьего и второго контуров
if Loops > 2
R23 = 0;
for i=(Choose + 1):1:Loops
if i == RequiredLoop
continue;
end;
R23 = Resistances(RequiredLoop, i);
break;
end;
end;
//Выбрасываем из матрицы сопротивлений строку и столбец
//с номером контура, в котором ИТ
Resistances(RequiredLoop, :) = [];
Resistances(:, RequiredLoop) = [];
//Выбрасываем из матрицы-столбца сумм напряжений источников напряжений
//контуров контур с ИТ
EMFSumm(RequiredLoop, :) = [];
//Формируем правую часть уравнения
if Loops > 2
Temp = [R13*Module; R23*Module];
else
Temp = [R13*Module];
end;
EMFSumm = EMFSumm - Temp;
if(Loops > 1)
//Решаем систему уравнений
Temp = FindUnknownLoopCurrent(Resistances, EMFSumm);
//Добавляем ток непреобразованного ИТ
//Переформировываем матрицу
if Loops == 2
if RequiredLoop == 2
LoopCurrent = [Temp; LoopCurrent(2, :)];
else
LoopCurrent = [LoopCurrent(1, :); Temp];
end;
else
if RequiredLoop == 1
LoopCurrent = [LoopCurrent(1, :); Temp];
else
if RequiredLoop == 2
LoopCurrent = [Temp(1, :); LoopCurrent(2, :); Temp(2, :)];
else
LoopCurrent = [Temp; LoopCurrent(3, :)];
end;
end;
end;
end;
end;
endfunction
|
15d57e642d041f56f8549221a8a39b4e2f10f307 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH20/EX20.9/example_20_9.sce | ae0676194e439d62a1473af8bf9b2a92d5fa61f8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 411 | sce | example_20_9.sce | clear;
clc;
disp("--------------Example 20.9----------------")
offset = 100;
HLEN=5;
total_length_field=100; // 100 bytes
first_byte=offset*8; // formula
header_bytes=HLEN*4; // formula
data_bytes=total_length_field-header_bytes; // formula
last_byte=first_byte+data_bytes-1; // formula
printf("The first byte number is %d and the last byte number is %d.",first_byte,last_byte); // display result
|
c298dd52cb138e961f86a9766b0ccb9870f38ad2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH19/EX19.4/Ex19_4.sce | 3e0565e7dfa488f93c846bed64b7382aab3e7558 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 401 | sce | Ex19_4.sce | clear
//Given
v=-80.0 //cm
//Calculation
f=v
P=100/f
//Result
printf("\n (a) Power of the lens is %0.3f D", P)
printf("\n (b) No the corrective lens is concave and it reduces the size of the image. Because it bring the object at the far point of the eye")
printf("\n (c) The myopic person may have a normal near point. He must keep the book at a distance greater than 25 cm.")
|
c116f5fb4b52e0ba90fc7adc1b55c6a25fb7bb44 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1670/CH7/EX7.13/7_13.sce | 4a8b12a74a8bc42431902263e07fa94bcd7aace0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 852 | sce | 7_13.sce | //Example 7.13
//Newtons Backward Formula
//Page no. 248
clc;close;clear;
printf(' x\t y\t d\t d2\t d3\t d4\t d5\n')
printf('--------------------------------------------------------')
h=0.5;
deff('y=f2(x)','y=(z(x,4)-z(x,5)+z(x,6))/h^2')
z=[1.5,3.375;2,7;2.5,13.625;3,24;3.5,38.875;4,59];
for i=1:6
for j=3:7
z(i,j)=-1
end
end
for i=3:7
for j=1:8-i
z(j,i)=z(j+1,i-1)-z(j,i-1)
end
end
printf('\n')
for i=1:6
for j=1:7
if z(i,j)==-1 then
printf(' \t')
elseif j==1
printf(' %.1f\t',z(i,j))
else
printf('%.3f\t',z(i,j))
end
end
printf('\n')
end
j=1;y1=0;
for i=3:6
y1=y1+(-1)^(i-1)*z(j,i)/(i-2)
end
y1=y1/h;
y2(7)=f2(1);
printf('\n\n f`(1.5)= %g',y1)
printf('\n\n f``(1.5) = %g',y2(7))
|
07b8b39bb919ace07fbc7b34f019dd8adc0b7b84 | 449d555969bfd7befe906877abab098c6e63a0e8 | /68/CH3/EX3.3/ex3.sce | 553842dae740fc13c69fc7a73e8eccfc9c73c3a0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 327 | sce | ex3.sce | //Example 3.3 : Evaluating junction scaling constant
//i-I_S*exp(v/(n*V_T)) implies I_S=i*exp(-v/(n*V_T))
n=1;
i=10^-3; // (A)
v=700; // (V)
V_T=25; // (V)
I_S=i*exp(-v/(n*V_T))
disp(I_S,"I_S (A) for n=1")
n=2;
I_S=i*exp(-v/(n*V_T))
disp(I_S,"I_S (A) for n=2")
disp("These values implies I_S is 1000 times greater ") |
b12aadccca50609942728ad772f5a1c589cf0840 | 449d555969bfd7befe906877abab098c6e63a0e8 | /662/CH4/EX4.1/ex4_1.sce | bd7b471fe43b307ce7093dcbc279174d5822d971 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 716 | sce | ex4_1.sce | //Example 4.1
clc
//use of several input output library functions
//c,d are cahracter type variables
//x, y float variables
// i, j, k, int type variables
printf("Enter character: ")
c=scanf("%1c"); //character input
printf("Enter folating point number: ")
x=scanf("%f"); //floating-point input
printf("Enter two numbers seperated by space: ")
//enter i and j seperated by spaces
[i, j]=scanf("%d %d"); //integer input
disp(i ,j ,"j and i: ")
//let d='a';
d='a';
disp(d); //character output
k=33567;
y=5678.71109;
printf("k = %3d, y = %7.4f ", k, y); //numerical output
|
1699e1802026d111fe8e0dcd6c1ec82875c03b24 | 717ddeb7e700373742c617a95e25a2376565112c | /3165/CH6/EX6.4/Ex6_4.sce | 95466731ec9d9a9577fac9fb9ab466e5fd6e55f6 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 322 | sce | Ex6_4.sce | //Example 6.4
//Program to c a l c u l a t e Twiddle f a c t o r exponent s f o r each s t a g e
clc ;
N =32; //Given
// Ca l c u l a t i o n o f Twiddle f a c t o r exponent s f o r each s t a g e
for m =1:5
disp (m, ' St a g e : m =' );
disp ( ' k =' );
for t =0:(2^(m -1) -1)
k=N*t/2^m;
disp(k);
end
end
|
c454006b17832edf5499d110c25f880a2d751e7a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1862/CH22/EX22.6/C22P6.sce | e81bb10aa44b64f80a82ccc8b07682c1fa73a7f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 636 | sce | C22P6.sce | clear
clc
//to find fraction of molecules having speed in range 599-601m/s
//Given:
//temperature
T = 300//in K
//molar mass of oxygen
M = 0.032//in Kg/mol
//molar gas constant
R = 8.31//in J/mol.K
//velocity
v = 600//in m/s
//Solution:
//fraction of molecules having speed in range 599-601m/s
//difference in speed
dv = 2//in m/s
f = 4*%pi*((M/(2*%pi*R*T))^(3/2))*(v^2)*%e^((-M*(v^2)/(2*R*T)))*dv
f1 = f*100//in percent
printf ("\n\n Fraction of molecules having speed in range 599-601m/s f = \n\n %.1e" ,f);
printf ("\n\n Percentage of molecules having speed in range 599-601m/s f = \n\n %.2f percent" ,f1);
|
7356a14f95ed98d1ee57eadd1fa21dae0f455181 | 449d555969bfd7befe906877abab098c6e63a0e8 | /845/CH7/EX7.9/Ex7_9.sce | ad4ef22aea05cb212a0bdc9b891226e4d2bd3352 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 788 | sce | Ex7_9.sce | //Example 7.9
clc
clear
function [I] = simp13 (fun,a,b,n)
// Integrate the function over the interval using Simpson's 1/3rd rule
// simp13 (fun,a,b,n)
// fun - function to be integrated
// a - lower limit of integration
// b - upper limit of integration
// n - No. of times simpson's 1/3rd rule needs to be performed
N = 2 * n + 1; // N - total no. of points
h = (b-a) / (N-1);
x = linspace(a,b,N);
y = fun(x);
sum1 = y(1) + 4 * sum(y(2:2:N-1)) + 2 * sum(y(3:2:N-2)) + y(N);
I = h* sum1 / 3; // Simpson's 1/3rd Integral Value
endfunction
function [f] = fun1(x)
f = sqrt(2/%pi)*exp(-x^2/2);
endfunction
h = 0.125;
n = (1-0)/h;
ns13 = n/2;
I = simp13(fun1,0,1,ns13);
I = round(I*10^4)/10^4;
disp(I,"Integral value, I = ")
|
8aff3e5bbe477e894bb97aaa18090741dc462755 | cd4d8e3b52c054f74913b7e71046f85f5446331c | /Projecte_3R_extra.sce | 650c6d7f6d7dc3d670b432090bcada4117207647 | [] | no_license | Betuuxxii/C_Projecte3R_MR | 0a7fc5e5ab68cd71ed7342f100d4fae2f1b98c0a | ab0972daf1b4670a370e99e0f31366e138aa12f4 | refs/heads/master | 2020-12-10T00:23:52.838876 | 2020-01-12T21:00:19 | 2020-01-12T21:00:19 | 233,457,463 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,714 | sce | Projecte_3R_extra.sce | //Definició de variables
L1 = 0.62
L2 = 0.57
g1 = 0.1
g2 = 0.2
g3 = 0.3
x = 0.9
y = -0.2
gamma = 0
mL1 = 4
mL2 = 3
mEE = 2
//----------------------------------TOTES LES FUNCIONS-----------------------------------//
// ----------------------Function inverse kinematics----------------------------//
function[theta1,theta2,theta3] = EndEffectorPose2joinPosition(x,y,gamma)
a12=L1
a23=L2
a34=g1
Rgamma = [cos(gamma), -sin(gamma);sin(gamma),cos(gamma)]
xyprima=[x;y]-Rgamma*[0;-g2]-Rgamma*[g3;0]
d = 2*a12*a23
f = (xyprima(1) - a34*cos(gamma))^2 + (xyprima(2) - a34*sin(gamma))^2 - (a12)^2 - (a23)^2
theta2 = acos(f/d)
if theta2 > %pi then
theta2 =2*%pi - theta2
end
a = a12 + a23*cos(theta2)
b = a23*sin(theta2)
e = xyprima(1) - a34*cos(gamma)
f = xyprima(2) - a34*sin(gamma)
matriutheta1 = inv([a,-b; b, a])*[e;f]
theta1 = atan(matriutheta1(2), matriutheta1(1))
if theta1 > %pi then
theta1 =2*%pi - theta1
end
theta3 = gamma -theta1 - theta2
endfunction
// ----------------------EndEffectorPosition2VelAngular----------------------------//
function[w1,w2,w3] = EndEffectorPosition2VelAngular(x,y,gamma, theta1,theta2,theta3)
J = [0 , L1*sin(theta1), L1*sin(theta1)+L2*sin(theta1+theta2); 0 , -L1*cos(theta1), -L1*cos(theta1)-L2*cos(theta1+theta2); 1,1,1]
velF=[0;-0.1;gamma]
velW = inv(J)*velF
w1 = velW(1)
w2 = velW(2)
w3 = velW(3)
endfunction
// ----------------------Plot3R----------------------------//
function [] = Plot3R(theta1,theta2,theta3)
// Càlcul de posicions de les joins
J1x = 0;
J1y = 0;
J2x = L1*cos(theta1);
J2y = L1*sin(theta1);
J3x = J2x + L2*(cos(theta1 + theta2));
J3y = J2y + L2*(sin(theta1 + theta2));
P_g1x = J3x + g1*(cos(theta3 + theta2 + theta1));
P_g1y = J3y + g1*(sin(theta3 + theta2 + theta1));
P_g2x = P_g1x;
P_g2y = P_g1y - g2;
P_g3x = P_g2x + g3;
P_g3y = P_g2y;
//Plot 3R arm
subplot(222)
title("3R motion", "fontsize",3)
a=get("current_axes") //eixos
a.data_bounds = [-0.2,-1;1,0] // minx, miny, maxx, maxy
a.axes_visible="on";
//Borrar anterior
a = gca();
delete(a.children);
//representació segments
xsegs([J1x,J2x],[J1y,J2y],1:1);
xsegs([J2x,J3x],[J2y,J3y],1:1);
xsegs([J3x,P_g1x],[J3y,P_g1y],1:1);
xsegs([P_g1x,P_g2x],[P_g1y,P_g2y],1:1);
xsegs([P_g2x,P_g3x],[P_g2y,P_g3y],1:1);
s = a.children
s.thickness=5
endfunction
// ----------------------Plot angular velocity----------------------------//
function[] = PlotJvsW(w1,w2,w3,k)
subplot(221)
title("Joint speeds vs time", "fontsize",3)
a=get("current_axes") //eixos
a.data_bounds = [0,-0.25;105,0.4] // minx, miny, maxx, maxy
plot2d(k,w1, 0)
e = gce();
point = e.children(1);
point.mark_mode="on";
point.mark_size =1;
point.mark_foreground=2;
plot2d(k,w2, 0);
e = gce();
point = e.children(1);
point.mark_mode="on";
point.mark_size =1;
point.mark_foreground=3;
plot2d(k,w3, 0);
e = gce();
point = e.children(1);
point.mark_mode="on";
point.mark_size =1;
point.mark_foreground=4;
hl=legend(['w1';'w2';'w3'])
endfunction
// ----------------------Plot wrench ----------------------------//
function[] = PlotJ1W(k,fJ1,mJ1)
subplot(223)
title("Wrench for J1","fontsize",3)
a=get("current_axes") //eixos
a.data_bounds = [0,0;110,150] // minx, miny, maxx, maxy
plot2d(k,fJ1,0)
e = gce()
point = e.children(1);
point.mark_mode="on";
point.mark_size = 1;
point.mark_foreground=2;
plot2d(k,mJ1,0)
e = gce()
point = e.children(1);
point.mark_mode="on";
point.mark_size = 1;
point.mark_foreground=3;
hl=legend(['F_J1','M_J1'])
endfunction
// ----------------------Càlcul wrench equivalent J1----------------------------//
function[weq] = WeqJ1(theta1,theta2,theta3)
j = [0,0,0;-1,-1,-1;-L1/2*cos(theta1),-L1*cos(theta1)-L2/2*cos(theta1+theta2),-L1*cos(theta1)-L2*cos(theta1+theta2)-(g1+g3/2)*cos(theta1+theta2+theta3)]
f = [9.81*mL1;9.81*mL2;9.81*mEE]
weq = -j*f
endfunction
//-----------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------//
//----------------------------MAIN---------------------------------------------------//
figure()
clf()
for k=1:100
//Inverse kinematics position
[theta1,theta2,theta3] = EndEffectorPose2joinPosition(x,y,gamma);
//Representació 3R
Plot3R(theta1,theta2,theta3);
//Cálcul vel angulars
[w1,w2,w3] = EndEffectorPosition2VelAngular(x,y,gamma, theta1,theta2,theta3);
//Plot Joint speeds vs time
PlotJvsW(w1,w2,w3,k);
//Afegir pes a l'EndEffector
if((k==20)|(k==40)|(k==60)|(k==80)|(k==100)) then
mEE = mEE+1;
end
//Càlcul wrench equivalent a J1
[weq] = WeqJ1(theta1,theta2,theta3);
PlotJ1W(k,weq(2),weq(3));
y= y-0.005;
//sleep(50);
end
|
321a714b7db1370d30ef13b9e8db8792567f4968 | 449d555969bfd7befe906877abab098c6e63a0e8 | /323/CH4/EX4.14/ex4_14.sci | 24e456b2136c2d51f368281b4bf5c21658dba18e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 849 | sci | ex4_14.sci | funcprot(0)
function [polar] = rect2polar(x,y) //Function to convert rectangular coordinates to polar coordinates
polar=ones(1,2)
polar(1)=sqrt((x^2)+(y^2))
polar(2)=atan(y/x)
polar(2)=(polar(2)*180)/%pi
endfunction
clc
//Refer to the data given in the question
P=10.44*10^3 //Power in kWh
Vl=200 //Line voltage
pf=0.5 //Leading power factor
Vph=Vl //For delta connected load
//Since we have the value of active power,line voltage and power factor we can easily calculate the value of line current
Il=P/(sqrt(3)*Vl*pf)
printf("\n Il=%.2f A \n",Il)
Iph=Il/sqrt(3)
printf("\n Iph=%.1f A \n",Iph)
Zph=Vph/Iph
printf("\n Zph=%.2f ohms \n",Zph)
Rph=Zph*pf
printf("\n Rph=%.3f ohms \n",Rph)
Xph=Zph*(sqrt(1-pf^2))
printf("\n Xph=%.2f ohms \n",Xph)
Q=sqrt(3)*Vl*Il*sqrt(1-pf^2)
printf("\n Q=%.2f kVAR \n",Q*10^-3)
|
7ddfb6886b05a0e8661dc42e18deb984583c61f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3776/CH12/EX12.10/Ex12_10.sce | 31260aee0f814c9e55d9fd547e9ae904f3108519 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 575 | sce | Ex12_10.sce | clear
//Given
A_1 = 0.125 //sq.in , The area of the crossection of AB
A_2 = 0.219 //sq.in , The area of the crossection of BC
l_1 = 3*(5**0.5) //in , The length of AB
l_2 = 6*(2**0.5) //in , The length of BC
p = 3 //k , Force acting on the system
E = 10.6*(10**3) //ksi - youngs modulus of the material
p_1 = (5**0.5)*p/3 //P, The component of p on AB
p_2 = -2*(2**0.5)*p/3 //P, The component of p on AB
e = p_1*l_1*p_1/(p*E*A_1) + p_2*l_2*p_2/(p*E*A_2) //in, By virtual deflection method
printf("\n The deflection is %0.3f in",e)
|
03fc831a46a7f151dba38be8d18d0639b51863c6 | 3975bf371bc347ed099b97b899a824cdefb3600a | /Scenarios/Face Perception N170.sce | b70cdac5e092675461ccbed51226c7dfb0ee2328 | [] | no_license | emailyc/Face-Perception-N170 | 994759c20ae7f42b7fd667fa9abcb579912c2e9f | 5ca4328f17d4d59969f8d0cca8981d8af4bcbbcb | refs/heads/master | 2020-03-21T08:59:21.966028 | 2018-06-23T07:08:09 | 2018-06-23T07:08:09 | 138,377,626 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 88,089 | sce | Face Perception N170.sce | # -------------------------- Header Parameters --------------------------
scenario = "Face Perception N170";
active_buttons = 2;
no_logfile = false;
response_logging = log_active;
response_matching = simple_matching;
button_codes= 1, 2;
target_button_codes = 9, 0;
write_codes = true;
pulse_width = 6;
response_port_output = true;
# ------------------------------- SDL Part ------------------------------
begin;
#CONSTANTS
$OFFSET_X = 350;
$OFFSET_Y = 250;
$CENTRE = 0;
#Set default picture so can make it white later in PCL
picture {} default;
# ----------------------------- Stimuli -----------------------------
array {
text {caption = "(Press Space to begin)"; font_size = 36; font_color = 0, 0, 0; background_color = 255, 255, 255; } space;
text {caption = "(Press Enter to continue)"; font_size = 36; font_color = 0, 0, 0; background_color = 255, 255, 255;} enter;
text {caption = "(Press Enter to begin practice)"; font_size = 36; font_color = 0, 0, 0; background_color = 255, 255, 255;} enter_practice;
text {caption = "TARGET: Tiffany's Happy Face (Only)"; font_size = 36; font_color = 38,44,79; background_color = 255, 255, 255;} happy_tiffany;
text {caption = "TARGET: Tiffany's Sad Face (Only)"; font_size = 36; font_color = 38,44,79; background_color = 255, 255, 255;} sad_tiffany;
text {caption = "TARGET: Tiffany's Neutral Face (Only)"; font_size = 36; font_color = 38,44,79; background_color = 255, 255, 255;} neutral_tiffany;
text { caption = "TARGET: All of Tiffany's Faces"; font_size = 36; font_color = 38,44,79; background_color = 255, 255, 255;} tiffany_targets;
text {caption = "TARGET: Dick's Happy Face (Only)"; font_size = 36; font_color = 38,44,79; background_color = 255, 255, 255;} happy_dick;
text { caption = "TARGET: All of Dick's Faces"; font_size = 36; font_color = 38,44,79; background_color = 255, 255, 255;} dick_targets;
text { caption = "In this experiment, you will have to identify some face targets from a set of face stimuli.\n\nDifferent targets are to be identified in different conditions.\n\nPress <spacebar> when you see the targets; do not response when non-targets are shown.\n\nPlease respond as accurately and as fast as possible.\n\nBefore the experiment begins, you will be doing a practice trial."; font_size = 38; font_color = 38,44,79; background_color = 255, 255, 255;} instruction_1;
text { caption = "You will have to identify the following target(s) from a set of face stimuli,"; font_size = 38; font_color = 38,44,79; background_color = 255, 255, 255;} instruction_2;
text { caption = "Press <spacebar> when you see the target(s); do not respond when non-targets are shown.\nPlease respond as accurately and as fast as possible"; font_size = 38; font_color = 38,44,79; background_color = 255, 255, 255;} instruction_3;
} phrases;
array {
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_10_neutral_F2_resize.bmp"; preload = true; } bmx;
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_11_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_12_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_13_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_14_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_15_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_16_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_17_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_18_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_19_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_1_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_20_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_21_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_22_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_23_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_24_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_25_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_26_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_27_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_28_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_29_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_2_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_30_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_31_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_32_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_33_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_34_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_35_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_36_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_3_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_4_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_5_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_6_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_7_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_8_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget_target\\nontarget_target_9_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_100_sad_F21.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_101_sad_F22.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_102_sad_F24.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_103_sad_F25.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_104_sad_F26.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_105_sad_F27.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_106_sad_F28.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_107_sad_F29.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_108_neutral_F19.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_10_happy_F28.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_11_happy_F29.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_12_happy_F27.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_13_neutral_F11.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_14_neutral_F19.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_15_neutral_F20.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_16_neutral_F21.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_17_neutral_F22.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_18_neutral_F24.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_19_neutral_F25.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_1_happy_F9.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_20_neutral_F26.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_21_neutral_F27.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_22_neutral_F29.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_23_neutral_F9.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_24_neutral_F28.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_25_sad_F19.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_26_sad_F20.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_27_sad_F21.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_28_sad_F22.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_29_sad_F24.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_2_happy_F11.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_30_sad_F25.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_31_sad_F26.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_32_sad_F27.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_33_sad_F28.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_34_sad_F29.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_35_sad_F9.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_36_sad_F11.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_37_happy_F9.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_38_happy_F11.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_39_happy_F19.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_3_happy_F19.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_40_happy_F20.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_41_happy_F21.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_42_happy_F22.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_43_happy_F25.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_44_happy_F24.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_45_happy_F26.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_46_happy_F27.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_47_happy_F28.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_48_happy_F29.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_49_neutral_F9.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_4_happy_F20.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_50_neutral_F11.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_51_neutral_F19.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_52_neutral_F20.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_53_neutral_F21.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_54_neutral_F22.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_55_neutral_F24.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_56_neutral_F25.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_57_neutral_F26.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_58_neutral_F27.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_59_neutral_F28.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_5_happy_F21.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_60_neutral_F29.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_61_sad_F9.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_62_sad_F11.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_63_sad_F19.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_64_sad_F20.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_65_sad_F21.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_66_sad_F22.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_67_sad_F24.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_68_sad_F25.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_69_sad_F26.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_6_happy_F22.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_70_sad_F27.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_71_sad_F28.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_72_sad_F29.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_73_happy_F9.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_74_happy_F11.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_75_happy_F19.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_76_happy_F20.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_77_happy_F21.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_78_happy_F22.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_79_happy_F24.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_7_happy_F24.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_80_happy_F25.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_81_happy_F26.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_82_happy_F27.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_83_happy_F28.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_84_happy_F29.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_85_neutral_F9.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_86_neutral_F11.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_87_neutral_F20.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_88_neutral_F21.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_89_neutral_F22.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_8_happy_F25.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_90_neutral_F24.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_91_neutral_F25.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_92_neutral_F27.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_93_neutral_F26.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_94_neutral_F28.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_95_neutral_F29.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_96_sad_F9.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_97_sad_F11.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_98_sad_F19.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_99_sad_F20.bmp"; preload = true; };
bitmap { filename = "happy_condition\\nontarget\\nontarget_9_happy_F26.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_10_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_11_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_12_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_13_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_14_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_15_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_16_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_17_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_18_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_1_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_2_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_3_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_4_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_5_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_6_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_7_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_8_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "happy_condition\\target\\target_9_happy_F2_resize.bmp"; preload = true; } happy_target;
} HAPPY;
array {
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_10_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_11_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_12_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_13_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_14_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_15_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_16_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_17_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_18_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_19_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_1_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_20_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_21_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_22_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_23_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_24_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_25_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_26_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_27_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_28_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_29_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_2_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_30_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_31_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_32_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_33_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_34_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_35_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_36_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_3_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_4_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_5_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_6_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_7_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_8_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget_target\\nontarget_target_9_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_100_sad_F21.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_101_sad_F22.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_102_sad_F24.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_103_sad_F25.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_104_sad_F26.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_105_sad_F27.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_106_sad_F28.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_107_sad_F29.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_108_neutral_F19.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_10_happy_F28.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_11_happy_F29.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_12_happy_F27.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_13_neutral_F11.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_14_neutral_F19.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_15_neutral_F20.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_16_neutral_F21.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_17_neutral_F22.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_18_neutral_F24.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_19_neutral_F25.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_1_happy_F9.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_20_neutral_F26.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_21_neutral_F27.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_22_neutral_F29.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_23_neutral_F9.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_24_neutral_F28.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_25_sad_F19.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_26_sad_F20.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_27_sad_F21.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_28_sad_F22.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_29_sad_F24.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_2_happy_F11.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_30_sad_F25.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_31_sad_F26.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_32_sad_F27.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_33_sad_F28.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_34_sad_F29.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_35_sad_F9.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_36_sad_F11.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_37_happy_F9.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_38_happy_F11.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_39_happy_F19.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_3_happy_F19.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_40_happy_F20.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_41_happy_F21.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_42_happy_F22.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_43_happy_F25.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_44_happy_F24.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_45_happy_F26.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_46_happy_F27.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_47_happy_F28.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_48_happy_F29.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_49_neutral_F9.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_4_happy_F20.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_50_neutral_F11.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_51_neutral_F19.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_52_neutral_F20.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_53_neutral_F21.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_54_neutral_F22.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_55_neutral_F24.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_56_neutral_F25.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_57_neutral_F26.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_58_neutral_F27.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_59_neutral_F28.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_5_happy_F21.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_60_neutral_F29.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_61_sad_F9.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_62_sad_F11.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_63_sad_F19.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_64_sad_F20.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_65_sad_F21.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_66_sad_F22.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_67_sad_F24.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_68_sad_F25.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_69_sad_F26.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_6_happy_F22.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_70_sad_F27.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_71_sad_F28.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_72_sad_F29.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_73_happy_F9.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_74_happy_F11.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_75_happy_F19.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_76_happy_F20.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_77_happy_F21.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_78_happy_F22.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_79_happy_F24.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_7_happy_F24.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_80_happy_F25.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_81_happy_F26.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_82_happy_F27.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_83_happy_F28.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_84_happy_F29.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_85_neutral_F9.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_86_neutral_F11.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_87_neutral_F20.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_88_neutral_F21.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_89_neutral_F22.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_8_happy_F25.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_90_neutral_F24.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_91_neutral_F25.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_92_neutral_F27.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_93_neutral_F26.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_94_neutral_F28.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_95_neutral_F29.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_96_sad_F9.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_97_sad_F11.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_98_sad_F19.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_99_sad_F20.bmp"; preload = true; };
bitmap { filename = "sad_condition\\nontarget\\nontarget_9_happy_F26.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_10-_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_11_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_12_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_13_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_14_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_15_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_16_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_17_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_18_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_1_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_2_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_3_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_4_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_5_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_6_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_7_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_8_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "sad_condition\\target\\target_9_sad_F2_resize.bmp"; preload = true; }sad_target;
} SAD;
array {
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_10_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_11_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_12_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_13_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_14_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_15_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_16_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_17_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_18_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_19_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_1_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_20_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_21_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_22_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_23_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_24_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_25_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_26_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_27_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_28_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_29_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_2_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_30_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_31_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_32_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_33_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_34_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_35_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_36_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_3_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_4_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_5_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_6_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_7_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_8_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget_target\\nontarget_target_9_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_100_sad_F21.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_101_sad_F22.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_102_sad_F24.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_103_sad_F25.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_104_sad_F26.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_105_sad_F27.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_106_sad_F28.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_107_sad_F29.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_108_neutral_F19.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_10_happy_F28.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_11_happy_F29.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_12_happy_F27.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_13_neutral_F11.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_14_neutral_F19.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_15_neutral_F20.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_16_neutral_F21.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_17_neutral_F22.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_18_neutral_F24.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_19_neutral_F25.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_1_happy_F9.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_20_neutral_F26.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_21_neutral_F27.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_22_neutral_F29.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_23_neutral_F9.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_24_neutral_F28.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_25_sad_F19.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_26_sad_F20.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_27_sad_F21.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_28_sad_F22.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_29_sad_F24.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_2_happy_F11.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_30_sad_F25.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_31_sad_F26.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_32_sad_F27.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_33_sad_F28.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_34_sad_F29.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_35_sad_F9.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_36_sad_F11.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_37_happy_F9.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_38_happy_F11.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_39_happy_F19.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_3_happy_F19.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_40_happy_F20.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_41_happy_F21.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_42_happy_F22.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_43_happy_F25.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_44_happy_F24.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_45_happy_F26.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_46_happy_F27.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_47_happy_F28.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_48_happy_F29.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_49_neutral_F9.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_4_happy_F20.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_50_neutral_F11.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_51_neutral_F19.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_52_neutral_F20.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_53_neutral_F21.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_54_neutral_F22.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_55_neutral_F24.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_56_neutral_F25.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_57_neutral_F26.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_58_neutral_F27.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_59_neutral_F28.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_5_happy_F21.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_60_neutral_F29.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_61_sad_F9.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_62_sad_F11.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_63_sad_F19.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_64_sad_F20.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_65_sad_F21.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_66_sad_F22.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_67_sad_F24.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_68_sad_F25.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_69_sad_F26.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_6_happy_F22.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_70_sad_F27.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_71_sad_F28.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_72_sad_F29.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_73_happy_F9.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_74_happy_F11.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_75_happy_F19.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_76_happy_F20.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_77_happy_F21.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_78_happy_F22.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_79_happy_F24.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_7_happy_F24.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_80_happy_F25.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_81_happy_F26.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_82_happy_F27.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_83_happy_F28.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_84_happy_F29.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_85_neutral_F9.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_86_neutral_F11.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_87_neutral_F20.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_88_neutral_F21.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_89_neutral_F22.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_8_happy_F25.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_90_neutral_F24.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_91_neutral_F25.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_92_neutral_F27.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_93_neutral_F26.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_94_neutral_F28.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_95_neutral_F29.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_96_sad_F9.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_97_sad_F11.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_98_sad_F19.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_99_sad_F20.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\nontarget\\nontarget_9_happy_F26.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_10_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_11_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_12_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_13_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_14_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_15_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_16_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_17_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_18_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_1_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_2_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_3_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_4_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_5_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_6_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_7_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_8_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "neutral_condition\\target\\target_9_neutral_F2_resize.bmp"; preload = true; }neutral_target;
} NEUTRAL;
array {
bitmap { filename = "identity_condition\\nontarget_filler\\filler_10_neutral_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_11_sad_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_12_sad_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_13_happy_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_14_happy_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_15_neutral_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_16_neutral_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_17_sad_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_18_sad_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_19_happy_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_1_happy_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_20_happy_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_21_neutral_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_22_sad_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_23_neutral_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_24_sad_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_25_sad_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_26_happy_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_27_happy_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_28_neutral_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_29_neutral_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_2_happy_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_30_sad_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_31_sad_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_32_happy_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_33_happy_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_34_neutral_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_35_neutral_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_36_sad_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_3_neutral_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_4_neutral_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_5_sad_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_6_sad_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_7_happy_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_8_happy_F8.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget_filler\\filler_9_neutral_F7.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_100_sad_F21.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_101_sad_F22.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_102_sad_F24.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_103_sad_F25.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_104_sad_F26.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_105_sad_F27.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_106_sad_F28.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_107_sad_F29.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_108_neutral_F19.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_10_happy_F28.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_11_happy_F29.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_12_happy_F27.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_13_neutral_F11.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_14_neutral_F19.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_15_neutral_F20.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_16_neutral_F21.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_17_neutral_F22.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_18_neutral_F24.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_19_neutral_F25.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_1_happy_F9.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_20_neutral_F26.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_21_neutral_F27.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_22_neutral_F29.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_23_neutral_F9.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_24_neutral_F28.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_25_sad_F19.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_26_sad_F20.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_27_sad_F21.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_28_sad_F22.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_29_sad_F24.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_2_happy_F11.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_30_sad_F25.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_31_sad_F26.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_32_sad_F27.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_33_sad_F28.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_34_sad_F29.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_35_sad_F9.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_36_sad_F11.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_37_happy_F9.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_38_happy_F11.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_39_happy_F19.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_3_happy_F19.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_40_happy_F20.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_41_happy_F21.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_42_happy_F22.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_43_happy_F25.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_44_happy_F24.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_45_happy_F26.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_46_happy_F27.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_47_happy_F28.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_48_happy_F29.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_49_neutral_F9.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_4_happy_F20.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_50_neutral_F11.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_51_neutral_F19.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_52_neutral_F20.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_53_neutral_F21.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_54_neutral_F22.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_55_neutral_F24.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_56_neutral_F25.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_57_neutral_F26.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_58_neutral_F27.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_59_neutral_F28.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_5_happy_F21.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_60_neutral_F29.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_61_sad_F9.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_62_sad_F11.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_63_sad_F19.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_64_sad_F20.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_65_sad_F21.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_66_sad_F22.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_67_sad_F24.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_68_sad_F25.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_69_sad_F26.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_6_happy_F22.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_70_sad_F27.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_71_sad_F28.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_72_sad_F29.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_73_happy_F9.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_74_happy_F11.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_75_happy_F19.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_76_happy_F20.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_77_happy_F21.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_78_happy_F22.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_79_happy_F24.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_7_happy_F24.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_80_happy_F25.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_81_happy_F26.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_82_happy_F27.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_83_happy_F28.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_84_happy_F29.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_85_neutral_F9.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_86_neutral_F11.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_87_neutral_F20.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_88_neutral_F21.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_89_neutral_F22.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_8_happy_F25.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_90_neutral_F24.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_91_neutral_F25.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_92_neutral_F27.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_93_neutral_F26.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_94_neutral_F28.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_95_neutral_F29.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_96_sad_F9.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_97_sad_F11.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_98_sad_F19.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_99_sad_F20.bmp"; preload = true; };
bitmap { filename = "identity_condition\\nontarget\\nontarget_9_happy_F26.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_10_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_11_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_12_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_13_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_14_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_15_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_16_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_17_sad_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_18_sad_F2_resize.bmp"; preload = true; }id_target_3;
bitmap { filename = "identity_condition\\target\\target_1_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_2_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_3_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_4_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_5_happy_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_6_happy_F2_resize.bmp"; preload = true; }id_target_2;
bitmap { filename = "identity_condition\\target\\target_7_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_8_neutral_F2_resize.bmp"; preload = true; };
bitmap { filename = "identity_condition\\target\\target_9_neutral_F2_resize.bmp"; preload = true; }id_target_1;
} IDENTITY;
array{
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_45_sad_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_19_happy_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_48_sad_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_15_sad_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_18_sad_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_36_sad_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_5_neutral_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_13_happy_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_14_happy_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_40_happy_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_2_sad_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_37_happy_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_4_happy_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_8_neutral_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_7_neutral_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_47_sad_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_31_happy_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_6_neutral_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_17_sad_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_12_sad_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_25_neutral_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_34__happy_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_23_neutral_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_11_happy_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_10_happy_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_20_happy_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_24_neutral_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_22_neutral_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_32_happy_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_1_happy_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_33_happy_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_9_sad_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_41_neutral_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_35_sad_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_26_neutral_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_16_sad_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_39_happy_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_38_happy_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_29_sad_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_30_sad_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_27_neutral_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_42_neutral_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_46_sad_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_21_neutral_M1.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_44_neutral_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_43_neutral_M4.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_3_sad_M2.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\nontargets\\nontarget_28_neutral_M7.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\target\\target_5_sad_M5.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\target\\target_3_neutral_M5.bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\target\\target_4_neutral_M5.bmp"; preload = true; } id_pratice_target_3;
bitmap { filename = "Identity_condition_practice\\target\\target_2_happy_M5 .bmp"; preload = true; };
bitmap { filename = "Identity_condition_practice\\target\\target_1_happy_M5.bmp"; preload = true; } id_pratice_target_2;
bitmap { filename = "Identity_condition_practice\\target\\target_6_sad_M5.bmp"; preload = true; } id_pratice_target_1;
} IDENTITY_PRACTICE;
array{
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_10_sad_M5.bmp"; preload = true; }emotion_pratice_not_targe_3;
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_8_sad_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_7_sad_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_12_sad_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_11_sad_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_2_neutral_M5.bmp"; preload = true; }emotion_pratice_not_targe_2;
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_9_sad_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_5_neutral_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_4_neutral_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_3_neutral_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_1_neutral_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontarget_target\\nontarget_target_6_neutral_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_19_happy_M7.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_15_sad_M1.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_18_sad_M2.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_36_sad_M7.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_5_neutral_M1.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_13_happy_M1.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_14_happy_M1.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_2_sad_M1.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_4_happy_M7.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_8_neutral_M7.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_7_neutral_M4.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_31_happy_M2.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_6_neutral_M2.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_17_sad_M2.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_12_sad_M7.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_25_neutral_M4.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_34__happy_M4.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_23_neutral_M2.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_11_happy_M4.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_10_happy_M2.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_20_happy_M7.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_24_neutral_M2.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_22_neutral_M1.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_32_happy_M2.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_1_happy_M1.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_33_happy_M4.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_9_sad_M4.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_35_sad_M7.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_26_neutral_M4.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_16_sad_M1.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_29_sad_M4.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_30_sad_M4.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_27_neutral_M7.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_21_neutral_M1.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_3_sad_M2.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\nontargets\\nontarget_28_neutral_M7.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\target\\target_4_happy_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\target\\target_3_happy_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\target\\target_5_happy_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\target\\target_2_happy_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\target\\target_1_happy_M5.bmp"; preload = true; };
bitmap { filename = "Emotion_condition_practice\\target\\target_6_happy_M5.bmp"; preload = true; } emotion_pratice_targe_1;
}EMOTION_PRACTICE;
# ------------------------------- Trials ------------------------------
trial{
trial_type = specific_response;
terminator_button = 2;
trial_duration = forever;
picture {
background_color = 255, 255, 255;
text {
background_color = 255, 255, 255;
caption = "Welcome\nto\nPresentation";
font_size = 86;
font_color = 38,44,79;
};
x = 0; y =0;
text enter;
x = 0; y = -500;
} welcome_pic;
} welcome_page;
trial {
trial_type = specific_response;
terminator_button = 2;
trial_duration = forever;
picture {
background_color = 255, 255, 255;
text instruction_1;
x=0;y=200;
text enter;
x = 0; y = -500;
}instruction_pic;
} instruction_trial;
trial{
trial_type = specific_response;
terminator_button = 2;
trial_duration = forever;
picture {
background_color = 255, 255, 255;
text {
caption = "Break";
font_size = 86;
font_color = 38,44,79;
background_color = 255, 255, 255;
};
x = 0; y =0;
text enter;
x = 0; y = -500;
} break_pic;
} break_trial;
trial{
trial_type = specific_response;
terminator_button = 2;
trial_duration = forever;
picture {
background_color = 255, 255, 255;
text {
caption = "Practice Complete";
font_size = 86;
font_color = 38,44,79;
background_color = 255, 255, 255;
};
x = 0; y =0;
text enter;
x = 0; y = -500;
} practice_pic;
} practice_trial;
trial{
trial_type = specific_response;
terminator_button = 1,2;
trial_duration = forever;
picture {
background_color = 255, 255, 255;
text {
caption = "The is the end of the experiment.";
font_size = 86;
font_color = 38,44,79;
background_color = 255, 255, 255;
};
x = 0; y =0;
text {
caption = "(Press Space or Enter to quit)";
font_size = 36;
font_color = 38,44,79;
background_color = 255, 255, 255;
};
x = 0; y = -500;
} end_pic;
} end_trial;
trial{
trial_type = specific_response;
terminator_button = 2;
trial_duration = forever;
picture {
background_color = 255, 255, 255;
text {
background_color = 255, 255, 255;
caption = "Ready?";
font_size = 86;
font_color = 38,44,79;
};
x = 0; y =0;
text enter;
x = 0; y = -500;
} ready_pic;
} ready_trial;
trial{
trial_type = fixed;
trial_duration = 1000;
picture {
background_color = 255, 255, 255;
text {
caption = "+";
font_size = 78;
font_color = 0,0,0;
background_color = 255, 255, 255;
};
x = 0; y =0;
} fixate_pic;
} fixation_trial;
trial {
trial_type = specific_response;
terminator_button = 1;
trial_duration = forever;
stimulus_event {
picture{
background_color = 255, 255, 255;
}Block_Begin_pic;
}Block_Begin_event;
}Block_Begin;
trial {
trial_type = fixed;
all_responses = false;
picture default;
response_active = false;
code = "Blank";
} blank_trial;
trial {
trial_duration = 800;
stimulus_event {
picture {
background_color = 255, 255, 255;
bitmap bmx;
x = 0; y = 0;
}test_pic;
delta_time = 0;
} test_event;
} test_trial;
# ----------------------------- PCL Program -----------------------------
begin_pcl;
#CONSTANTS
int OFFSET_X = 350;
int OFFSET_Y = 250;
int CENTRE = 0;
default.set_background_color( 255, 255, 255 );
# ----------------------------- Functions -----------------------------
sub string get_path_component ( bitmap bitmap_file, int nth_last_index )
begin
array<string> path_component[0];
string full_path = bitmap_file.filename();
full_path.split("\\", path_component);
int component_index = path_component.count() - nth_last_index + 1;
return path_component[component_index];
end;
sub int get_stimuli_port_code ( bitmap bitmap_file )
begin
string condition_directory_name = get_path_component( bitmap_file, 3 );
string target_directory_name = get_path_component( bitmap_file, 2 );
string filename = get_path_component( bitmap_file, 1 );
if (condition_directory_name == "happy_condition") then
if target_directory_name == "target" then
return 11;
elseif target_directory_name == "nontarget_target" then
if filename.find( "sad" ) > 0 then
return 13;
elseif filename.find( "neutral" ) > 0 then
return 14;
end;
elseif target_directory_name == "nontarget" then
if filename.find( "happy" ) > 0 then
return 15;
elseif filename.find( "sad" ) > 0 then
return 16;
elseif filename.find( "neutral" ) > 0 then
return 17;
end;
end;
elseif (condition_directory_name == "sad_condition") then
if target_directory_name == "target" then
return 21;
elseif target_directory_name == "nontarget_target" then
if filename.find( "happy" ) > 0 then
return 22;
elseif filename.find( "neutral" ) > 0 then
return 24;
end;
elseif target_directory_name == "nontarget" then
if filename.find( "happy" ) > 0 then
return 25;
elseif filename.find( "sad" ) > 0 then
return 26;
elseif filename.find( "neutral" ) > 0 then
return 27;
end;
end;
elseif (condition_directory_name == "neutral_condition") then
if target_directory_name == "target" then
return 31;
elseif target_directory_name == "nontarget_target" then
if filename.find( "happy" ) > 0 then
return 32;
elseif filename.find( "sad" ) > 0 then
return 33;
end;
elseif target_directory_name == "nontarget" then
if filename.find( "happy" ) > 0 then
return 35;
elseif filename.find( "sad" ) > 0 then
return 36;
elseif filename.find( "neutral" ) > 0 then
return 37;
end;
end;
elseif (condition_directory_name == "identity_condition") then
if target_directory_name == "target" then
return 41;
elseif target_directory_name == "nontarget" then
if filename.find( "happy" ) > 0 then
return 45;
elseif filename.find( "sad" ) > 0 then
return 46;
elseif filename.find( "neutral" ) > 0 then
return 47;
end;
elseif target_directory_name == "nontarget_filler" then
return 48;
end;
end;
return 0;
end; #End of function
# ----------------------------- Start Experiment -----------------------------
include_once "..\\PCLs\\Prepare_Experiment.pcl";
include_once "..\\PCLs\\Start_Experiment.pcl";
# ----------------------------- PRACTICE Block -----------------------------
include_once "..\\PCLs\\Practice_Block.pcl";
practice_trial.present();
# ----------------------------- TEST Block -----------------------------
include_once "..\\PCLs\\TEST_Block.pcl";
# ----------------------------- END -----------------------------
end_trial.present(); |
47f11ae36ee7b8b7f5007e01641f51914d0d7e88 | 9e57423395d669e8526d4e6145939b9a3be2518f | /Others/gpca.completo.sci | bf4cc79776cd773c745c95662564d5f5a812e37c | [] | no_license | ronas/GPCAZ | 4ab88728a9dcf73eb2550ec2e89d82ba49ae8a7a | f4d0e50f6365c065c4b123b71502e7f339244cb2 | refs/heads/master | 2016-09-05T12:32:25.193710 | 2013-02-09T21:10:10 | 2013-02-09T21:10:10 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Scilab | false | false | 2,695 | sci | gpca.completo.sci |
A1 = {1,1,2;4,8,6;0,2,3}
A2 = {6,8,5;3,5,7;2,2,3}
A3 = {2,3,8;2,2,8;1,5,3}
A4 = {1,1,2;4,8,6;0,2,3}
A5 = {6,8,5;3,5,7;2,2,3}
A6 = {2,3,8;2,2,8;1,5,3}
n=3;
for i = 1:n,
for j = 1:n,
M(i,j) = (A1(i,j) + A2(i,j) + A3(i,j) + A4(i,j) + A5(i,j) + A6(i,j))/6;
end;
end
M
Atil1 = A1 - M
Atil2 = A2 - M
Atil3 = A3 - M
Atil4 = A4 - M
Atil5 = A5 - M
Atil6 = A6 - M
disp('--------------- Iteração 1 ---------------')
Lo = {1,0;0,1;0,0}
Atil1' * Lo * Lo' * Atil1
Atil2' * Lo * Lo' * Atil2
Atil3' * Lo * Lo' * Atil3
Atil4' * Lo * Lo' * Atil4
Atil5' * Lo * Lo' * Atil5
Atil6' * Lo * Lo' * Atil6
MR = ( Atil1' * Lo * Lo' * Atil1 ) + ( Atil2' * Lo * Lo' * Atil2 ) + ( Atil3' * Lo * Lo' * Atil3 ) + ( Atil4' * Lo * Lo' * Atil4 ) + ( Atil5' * Lo * Lo' * Atil5 ) + ( Atil6' * Lo * Lo' * Atil6 )
[evals,X] = spec(MR)
R(:,1) = evals(:,3,:)
R(:,2) = evals(:,2,:)
ML = ( Atil1 * R * R' * Atil1' ) + ( Atil2 * R * R' * Atil2' ) + ( Atil3 * R * R' * Atil3' ) + ( Atil4 * R * R' * Atil4' ) + ( Atil5 * R * R' * Atil5' ) + ( Atil6 * R * R' * Atil6' )
[evals,Y] = spec(ML)
L(:,1) = evals(:,1,:)
L(:,2) = evals(:,2,:)
RMSE1 = ( norm(Atil1 - L * L' * Atil1 * R * R', 'fro') + norm(Atil2 - L * L' * Atil2 * R * R', 'fro') + norm(Atil3 - L * L' * Atil3 * R * R', 'fro') + norm(Atil4 - L * L' * Atil4 * R * R', 'fro') + norm(Atil5 - L * L' * Atil5 * R * R', 'fro') + norm(Atil6 - L * L' * Atil6 * R * R', 'fro') ) / 6
disp('--------------- Iteração 2 ---------------')
Lo = L
Atil1' * Lo * Lo' * Atil1
Atil2' * Lo * Lo' * Atil2
Atil3' * Lo * Lo' * Atil3
Atil4' * Lo * Lo' * Atil4
Atil5' * Lo * Lo' * Atil5
Atil6' * Lo * Lo' * Atil6
MR = ( Atil1' * Lo * Lo' * Atil1 ) + ( Atil2' * Lo * Lo' * Atil2 ) + ( Atil3' * Lo * Lo' * Atil3 ) + ( Atil4' * Lo * Lo' * Atil4 ) + ( Atil5' * Lo * Lo' * Atil5 ) + ( Atil6' * Lo * Lo' * Atil6 )
[evals,X] = spec(MR)
R(:,1) = evals(:,1,:)
R(:,2) = evals(:,3,:)
ML = ( Atil1 * R * R' * Atil1' ) + ( Atil2 * R * R' * Atil2' ) + ( Atil3 * R * R' * Atil3' ) + ( Atil4 * R * R' * Atil4' ) + ( Atil5 * R * R' * Atil5' ) + ( Atil6 * R * R' * Atil6' )
[evals,Y] = spec(ML)
L(:,1) = evals(:,1,:)
L(:,2) = evals(:,2,:)
RMSE2 = ( norm(Atil1 - L * L' * Atil1 * R * R', 'fro') + norm(Atil2 - L * L' * Atil2 * R * R', 'fro') + norm(Atil3 - L * L' * Atil3 * R * R', 'fro') + norm(Atil4 - L * L' * Atil4 * R * R', 'fro') + norm(Atil5 - L * L' * Atil5 * R * R', 'fro') + norm(Atil6 - L * L' * Atil6 * R * R', 'fro') ) / 6
disp('--------------- Projeção ---------------')
D1 = L' * Atil1 * R
D2 = L' * Atil2 * R
D3 = L' * Atil3 * R
D4 = L' * Atil4 * R
D5 = L' * Atil5 * R
D6 = L' * Atil6 * R
|
ed10c1b849c8f453ed717d3496850957d0bd230f | 8515a296e01b69a939982d59f7997b6daf2e4cbd | /projects/01/Mux4Way.tst | b2079146e6d50139f3bccdcd7cad5b778c4c13e2 | [] | no_license | hiragi-gkuth/n2t | 9e1b41a136aaa79bff78854d5ccb7cd86f714603 | 566cc2d5801d1258c547cb6f2dd10272af3b9f79 | refs/heads/main | 2023-06-10T21:34:49.395174 | 2021-07-03T09:06:34 | 2021-07-03T09:06:34 | 353,191,765 | 0 | 0 | null | 2021-07-03T09:06:35 | 2021-03-31T01:44:53 | Assembly | UTF-8 | Scilab | false | false | 710 | tst | Mux4Way.tst | load Mux4Way.hdl,
output-file Mux4Way.out,
compare-to Mux4Way.cmp,
output-list a%B2.1.2 b%B2.1.2 c%B2.1.2 d%B2.1.2 sel%B2.2.2 out%B2.1.2;
set a 0,
set b 0,
set c 0,
set d 0,
set sel 0,
eval,
output;
set sel 1,
eval,
output;
set sel 2,
eval,
output;
set sel 3,
eval,
output;
set a 1,
set sel 0,
eval,
output;
set a 0,
set b 1,
set sel 1,
eval,
output;
set b 0,
set c 1,
set sel 2,
eval,
output;
set c 0,
set d 1,
set sel 3,
eval,
output;
set a 0,
set b 1,
set c 0,
set d 0,
set sel 0,
eval,
output;
set b 0,
set c 1,
set sel 1,
eval,
output;
set c 0,
set d 1,
set sel 2,
eval,
output;
set d 0,
set a 1,
set sel 3,
eval,
output; |
f183ef4277d4dab16d01071f7e90a05a572f3606 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH6/EX6.22/EX_6_22.sce | 80b67d458848525e01a35b4391fa1b385518d34b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 313 | sce | EX_6_22.sce | // Example 6.22;// input impedence with feedback
clc;
clear;
close;
A= 1000;// open voltage gain
Beta=0.005;// feedback ratio
Zi=2;//input impedance without feedback in kiilo ohms
Zif= (1+A*Beta)*Zi;//input impedance with feedback in kiilo ohms
disp(Zif,"input impedance with feedback in kiilo ohms is")
|
e2ec263b8f38dedbf52b83a42543f6cffd03f225 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH2/EX2.6/2_6.sce | 94819c326c3275c3307ca4e9958468e37be390d9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 635 | sce | 2_6.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 2.6
//calculation of the slope of curve at a given point
//given data
AB=5; //length of AB line segment
BC=4; //length of BC line segment
DE=5; //length of DE line segment
EF=-4; //length of EF line segment
//calculation
m1=AB/BC; //formula of slope,m1=dy/dx at x=2
//m2=0 since tangent to curve at x=6 is parallel to x axis
m2=0;
m3=DE/EF; //formula of slope,m2=dy/dx at x= 10
disp(m1,'the slope of the curve at x=2 is');
disp(m2,'the slope of the curve at x=6 is');
disp(m3,'the slope of the curve at x=10 is');
|
300d127d2a6185165ef8f69e1597275c18d632b2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3768/CH10/EX10.2/Ex10_2.sce | 116db80619faeba19e491a40377de335160333b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 302 | sce | Ex10_2.sce | //Example number 10.2, Page number 225
clc;clear;
close;
//Variable declaration
T=2.5; //temperature(K)
Tc=3.5; //critical temperature(K)
H0=3.2*10**3; //critical magnetic field(A/m)
//Calculation
Hc=H0*(1-(T/Tc)**2); //critical field(A/m)
//Result
printf("critical field is %.3e A/m",Hc)
|
69eebd3390123894aa5ae3da4f684846777b55f1 | 717ddeb7e700373742c617a95e25a2376565112c | /851/CH6/EX6.2/Example6_2.sce | d93bcbe8845e5f59a3aa135de62256e380ef65ae | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 1,256 | sce | Example6_2.sce | //clear//
//Caption:Duobinary Encoding
//Example6.2: Precoded Duobinary coder and decoder
//Page 256
clc;
b = [0,0,1,0,1,1,0];//input binary sequence:precoder input
a(1) = xor(1,b(1));
if(a(1)==1)
a_volts(1) = 1;
end
for k =2:length(b)
a(k) = xor(a(k-1),b(k));
if(a(k)==1)
a_volts(k)=1;
else
a_volts(k)=-1;
end
end
a = a';
a_volts = a_volts';
disp(a,'Precoder output in binary form:')
disp(a_volts,'Precoder output in volts:')
//Duobinary coder output in volts
c(1) = 1+ a_volts(1);
for k =2:length(a)
c(k) = a_volts(k-1)+a_volts(k);
end
c = c';
disp(c,'Duobinary coder output in volts:')
//Duobinary decoder output by applying decision rule
for k =1:length(c)
if(abs(c(k))>1)
b_r(k) = 0;
else
b_r(k) = 1;
end
end
b_r = b_r';
disp(b_r,'Recovered original sequence at detector oupupt:')
//Result
//Precoder output in binary form:
//
// 1. 1. 0. 0. 1. 0. 0.
//
// Precoder output in volts:
//
// 1. 1. - 1. - 1. 1. - 1. - 1.
//
// Duobinary coder output in volts:
//
// 2. 2. 0. - 2. 0. 0. - 2.
//
// Recovered original sequence at detector oupupt:
//
// 0. 0. 1. 0. 1. 1. 0.
|
303d8c3f09600e06c6866ced0d36de409fc8ab72 | 449d555969bfd7befe906877abab098c6e63a0e8 | /683/CH17/EX17.5/SCB_5.sce | afb463f2e04f1d3d0a851d3c55adcb948f558652 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 472 | sce | SCB_5.sce | // sum 17-5
clc;
clear;
W=22000;
nj=960/60;
p=2.4;
u=20*10^-9;
d=sqrt(W/p);
d=96;
r=d/2;
l=d;
S=0.0446;
pact=W/(l*d);
//x=r/c;
x=sqrt(S*pact/(u*nj));
c=r/x;
ho=0.2*c;
Q=r*c*nj*l*4.62;
Q=Q*60/10^6;
// printing data in scilab o/p window
printf("d is %0.0f mm ",d);
printf("\n l is %0.0f mm ",l);
printf("\n ho is %0.4f mm ",ho);
printf("\n Q is %0.3f lpm ",Q);
//The difference in answer to Q is due to rounding -off the value of c. |
202b9da81ec0c9894c8ae3cb351a82df1f09f550 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2513/CH14/EX14.1/14_1.sce | aacd7d76ee053411dee09ff8db5ebcdf3fa19559 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 261 | sce | 14_1.sce | clc
//initialisation of variables
n=0.013//ft
s=4.90//ft
v=0.590//ft
d=0.463//ft
w=3.9*10^-2//ft
p=1.696//ft
//CALCULATIONS
V=s*v//fps
Q=s*d//cfs
N=(w*p)^2*1000//percent
//RESULTS
printf('the velocity of flow and rate of discharge=% f percent',N)
|
8d50482923b55b5942c899c4a86e881210fb696e | 449d555969bfd7befe906877abab098c6e63a0e8 | /14/CH6/EX6.1/exapmle_6_1.sce | 51967529af46851d153468ee01aa24e86271b9a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 619 | sce | exapmle_6_1.sce | //Chapter 6
//Example 6.1
//Page 142
//Secondary
clear;clc;
N_1 = 2000;
N_2 = 500;
V_1 = 1200 * (cos(0)+%i*sin(0));
I_1 = 5 * (cos(-30*%pi/180) + %i * sin(-30*%pi/180));
//Calculations
a = N_1 / N_2;
V_2 = V_1/a;
I_2 = a * I_1;
Z_2 = V_2 / I_2;
Z1_2 = Z_2 * a^2;
printf("\n\n V_2 = %.0f /_%.0f V \n\n",abs(V_2),((atan(imag(V_2),real(V_2)))*180/%pi))
printf("\n\n I_2 = %.0f /_%.0f A \n\n",abs(I_2),((atan(imag(I_2),real(I_2)))*180/%pi))
printf("\n\n Z_2 = %.0f /_%.0f ohm \n\n",abs(Z_2),((atan(imag(Z_2),real(Z_2)))*180/%pi))
printf("\n\n Z1_2 = %.0f /_%.0f ohm \n\n",abs(Z1_2),((atan(imag(Z1_2),real(Z1_2)))*180/%pi)) |
cc1b199e6d812338559032df615397a8fd128d53 | 449d555969bfd7befe906877abab098c6e63a0e8 | /896/CH17/EX17.3/3.sce | 4b0bb4f88a7d5249e2fbd14fdb6a6d4f18e27524 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 592 | sce | 3.sce | clc
//Example 17.3
//Calculate the distance between the wall and edge of the laminar sublayer and buffer layer
V=10//ft/s
l=0.25//ft
v=1.08*10^(-5)//ft^2/s
R=V*l/v//dimentionless (reynold's number)
f=0.0037//dimentionless (fanning friction factor)
u1=V*(f/2)^0.5//ft/s
u01=5//dimentionless
y01=5//dimentionless
r1=y01*v/u1//ft
printf("the distance between the wall and edge of the laminar sublayer is %f ft\n",r1);
//for buffer layer
u02=12//dimentionless
y02=26//dimentionless
r2=y02*v/u1//ft
printf("the distance between the wall and edge of the buffer layer is %f ft",r2); |
8513bc4ff11b2af3da4f6d4c2a789970e1c2f6fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /587/CH13/EX13.7/example13_7.sce | 46c76e70e3d47fee0028ed9e0aa933ae4c7878d8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | example13_7.sce | clear;
clc;
//Example13.7[Radiation Heat Transfer between Parallel Plates]
//Given:-
T1=800,T2=500;//Temp of parallel plates[K]
e1=0.2,e2=0.7;//Emissivities
//Solution:-
q12=(5.67*10^(-8))*((T1^4)-(T2^4))/((1/e1)+(1/e2)-1);
disp("is transferred from plate 1 to plate 2 by radiation per unit surface area of either plate","W",round(q12),"The net heat at the rate of") |
ac74b941a6209606139695a95b33e95b9a8294cf | 449d555969bfd7befe906877abab098c6e63a0e8 | /1670/CH11/EX11.5/11_5.sce | c97e51e8f773023211a498ef7d34affae0ea510f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,295 | sce | 11_5.sce | //Example 11.5
//Gauss-Seidel Method
//Page no. 373
clc;clear;close;
U=[0,500,1000,500,0;1000,0,0,0,1000;2000,0,0,0,2000;1000,0,0,0,1000;0,500,1000,500,0]
deff('y=d(i,j)','y=(U(i-1,j-1)+U(i+1,j+1)+U(i-1,j+1)+U(i+1,j-1))/4') //diagonal 5 point formula
deff('y=s(i,j,l)','y=(U(i-l,j)+U(i+l,j)+U(i,j-l)+U(i,j+l))/4') //std 5 point formula
U(3,3)=s(3,3,2);
for k=0:10
p=3;
for i=2:4
for j=2:4
if k==0 & (i==3 & j==3) | (i==2 & j==4) | (i==4 & j==2) | (i==4 & j==4) then
printf('\n U%i(%i) = %g\n',i+j-p,k,U(i,j))
continue
end
if k==0 & i==2 & j==2 then
U(i,j)=d(i,j)
else
U(i,j)=s(i,j,1)
end
if i==2 & j==2 then
U(2,4)=U(2,2);
U(4,2)=U(2,2);
U(4,4)=U(2,2);
end
if k==0 then
printf('\n U%i = %g\n',i+j-p,U(i,j))
else
printf('\n U%i(%i) = %g\n',i+j-p,k,U(i,j))
end
end
p=p-2;
end
printf('\n\n')
end
printf('\nHence the solution is : \n\n')
p=3;
for i=2:4
for j=2:4
printf(' U%i = %.3f, ',i+j-p,U(i,j))
end
p=p-2
end |
5c8d2ec7cbefa899462679a5d45db36766f3df42 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.2_5.tst | dfc0c69774bf99262d594314fd428898d994441d | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,597 | tst | bow.2_5.tst | 2 14:0.09090909090909091 21:1.0 41:0.14285714285714285 81:0.25 110:0.3333333333333333 141:0.3333333333333333 269:1.0 289:1.0 343:1.0 544:1.0 730:1.0 764:1.0
2 6:1.0 141:0.3333333333333333 424:1.0
2 6:3.0 9:1.0 14:0.2727272727272727 16:0.014705882352941176 21:1.0 27:0.2 50:0.375 52:1.0 81:0.25 84:0.25 90:1.0 91:1.0 126:1.0 268:1.0 286:1.0 289:1.0 357:1.0 390:1.0 673:1.0
2 1:0.09090909090909091 14:0.18181818181818182 31:1.0 81:0.5 87:1.0 154:0.25 288:1.0 618:1.0
2 9:1.0 23:0.1 32:1.0 50:0.125 81:0.25 152:0.5 356:1.0 392:1.0 553:1.0 704:1.0 1137:1.0
2 4:1.0 9:4.0 12:0.09523809523809523 14:0.2727272727272727 27:0.2 41:0.14285714285714285 103:1.0 106:1.25 114:0.125 154:0.25 175:1.0 212:1.0 281:1.0 289:1.0 370:0.5 376:1.0 468:0.5 673:4.0
2 14:0.09090909090909091 21:1.0 50:0.125 64:1.0 129:1.0 437:0.3333333333333333 667:1.0 668:1.0 669:1.0 670:1.0 671:1.0
2 4:1.0 9:2.0 64:1.0 81:0.25 89:0.5 126:1.0 272:1.0 287:1.0 289:1.0 294:1.0 343:1.0 407:0.25 577:0.3333333333333333 672:1.0 673:1.0 674:1.0
2 9:1.0 12:0.047619047619047616 14:0.09090909090909091 31:1.0 50:0.125 64:1.0 84:0.25 343:1.0 393:0.3333333333333333 394:0.3333333333333333 669:1.0 675:0.2 676:1.0 677:1.0 678:1.0 679:1.0 680:1.0
2 9:1.0 52:0.5 212:1.0
2 9:1.0 52:0.5 394:0.3333333333333333
2 126:1.0 273:2.0 286:1.0 353:0.5 467:1.0 532:1.0 799:1.0
2 468:0.5 523:1.0 679:1.0 1528:1.0
2 14:0.09090909090909091 125:1.0
2 27:0.2 28:1.0 49:1.0 81:0.25 132:0.3333333333333333 273:1.0 619:1.0
2 3:0.5 6:2.0 12:0.047619047619047616 50:0.25 61:0.4 564:1.0
2 5:0.3333333333333333 6:1.0 11:1.0 13:1.0 14:0.18181818181818182 81:0.25 141:0.3333333333333333 154:0.25 200:0.5 286:1.0 381:0.5
2 9:1.0 12:0.047619047619047616 101:1.0 291:1.0 343:1.0 437:0.3333333333333333 470:1.0 619:1.0 1084:1.0
2 16:0.014705882352941176 20:1.0 31:1.0 151:0.3333333333333333 269:1.0 272:1.0
2 152:0.5 273:1.0 274:1.0 275:1.0 276:1.0 277:1.0 278:1.0 279:1.0
2 280:1.0
2 16:0.014705882352941176 31:1.0 32:1.0 269:1.0
2 3:0.5 14:0.09090909090909091 16:0.014705882352941176 40:1.0 41:0.14285714285714285 287:1.0 289:1.0 301:1.0
2 9:1.0 15:1.0 16:0.058823529411764705 31:1.0 119:1.0 198:0.5 269:1.0 281:2.0 282:1.0 283:0.5 284:1.0 285:1.0 286:1.0 287:1.0 288:1.0
2 9:1.0 16:0.014705882352941176 31:1.0 67:1.0 106:0.25 269:1.0 289:1.0 290:1.0
2 16:0.014705882352941176 61:0.2 129:1.0 175:1.0 212:1.0 291:1.0 292:1.0 293:1.0
2 3:1.0 9:4.0 12:0.09523809523809523 16:0.014705882352941176 50:0.125 55:1.0 269:1.0 294:1.0 295:1.0 296:2.0 297:1.0 298:1.0 299:1.0 300:1.0 301:1.0
2 9:2.0 14:0.09090909090909091 39:0.25 269:1.0 273:2.0 294:1.0
2 9:1.0 32:1.0 88:1.0 114:0.125 381:0.5 583:1.0 814:0.5
2 16:0.014705882352941176 39:0.25 50:0.125 120:0.16666666666666666 175:1.0 199:1.0 343:1.0
2 3:0.5 11:1.0 12:0.047619047619047616 35:1.0 39:0.25 690:1.0
2 1:0.09090909090909091 6:1.0 13:2.0 52:0.5 81:0.5 89:1.0 122:1.0 148:2.0 198:0.5 394:0.3333333333333333 458:2.0 541:1.0
2 1:0.09090909090909091 9:2.0 20:1.0 50:0.125 52:0.5 132:0.3333333333333333 343:1.0 394:0.3333333333333333 544:1.0 673:1.0 712:1.0
2 14:0.09090909090909091 88:1.0 108:1.0 120:0.16666666666666666 168:1.0 181:1.0 562:1.0 960:1.0 1235:0.2
2 3:0.5 6:1.0 11:2.0 12:0.047619047619047616 14:0.18181818181818182 41:0.14285714285714285 50:0.125 262:0.25 291:1.0 381:1.0 393:0.3333333333333333 394:0.3333333333333333 502:1.0 507:1.0 1144:1.0 1339:1.0
2 61:0.4 95:0.5 281:1.0 291:2.0 387:1.0 525:1.0 745:1.0
2 1:0.09090909090909091 9:3.0 16:0.029411764705882353 20:1.0 129:1.0 212:1.0 270:1.0 291:1.0 292:1.0
2 4:1.0 9:1.0 14:0.09090909090909091 16:0.014705882352941176 31:1.0 105:1.0 106:0.25 154:0.25 212:1.0
|
176c8018aa9353f61345536147debae0ab339334 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.5_9.tst | 0c38e794f3a1adf08732155e5e74a5d47183d361 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 6,334 | tst | bow.5_9.tst | 5 56:1.0 119:0.08333333333333333 251:0.25 266:1.0 308:0.3333333333333333 1147:1.0 1311:1.0
5 1:0.5 3:0.015384615384615385 7:2.0 25:2.0 30:1.0 44:0.06666666666666667 57:0.07692307692307693 134:1.0 283:1.0 430:1.0 436:0.3333333333333333 508:1.0 561:1.0 598:1.0 931:1.0 1029:1.0 1105:1.0 1636:1.0 1747:1.0
5 1:0.16666666666666666 3:0.015384615384615385 14:0.25 25:1.0 56:1.0 57:0.07692307692307693 127:1.0 184:1.0 232:1.0 341:1.0 646:0.5 709:1.0 844:1.0 1048:1.0 1266:1.0 1283:1.0
5 1:0.3333333333333333 3:0.015384615384615385 16:0.5 32:0.16666666666666666 51:1.0 56:1.0 57:0.07692307692307693 134:1.0 175:1.0 276:1.0 1404:2.0 1734:1.0
5 1:0.3333333333333333 3:0.03076923076923077 32:0.16666666666666666 50:0.2 57:0.23076923076923078 106:0.6666666666666666 107:1.0 113:1.0 127:1.0 175:1.0 224:1.0 406:1.0 439:0.5 442:1.0 816:1.0 825:1.0 924:1.0 1021:1.0 1022:1.0 1249:0.5
5 1:0.3333333333333333 3:0.015384615384615385 16:0.5 32:0.16666666666666666 33:1.0 107:1.0 304:1.0 311:1.0 408:1.0 436:0.6666666666666666 851:0.5 863:1.0 960:1.0 1602:1.0
5 3:0.015384615384615385 14:0.25 25:1.0 32:0.16666666666666666 49:1.0 64:0.07692307692307693 406:1.0 521:1.0 1381:1.0
5 3:0.015384615384615385 56:1.0 73:0.16666666666666666 175:1.0 408:1.0 857:1.0
5 1:0.8333333333333334 3:0.015384615384615385 7:1.0 14:0.25 16:1.0 25:1.0 57:0.07692307692307693 106:0.3333333333333333 107:1.0 110:1.0 144:1.0 406:1.0 652:1.0 1249:0.5
5 1:0.08333333333333333 3:0.03076923076923077 6:1.0 14:0.25 16:0.5 32:0.16666666666666666 50:0.2 57:0.07692307692307693 106:0.3333333333333333 112:1.0 175:1.0 304:1.0 436:0.3333333333333333 610:1.0 809:1.0 917:1.0 1445:0.5
5 3:0.015384615384615385 5:1.0 14:0.25 73:0.16666666666666666 161:0.16666666666666666 246:1.0 261:0.2 406:1.0 765:1.0 978:0.5
5 1:0.08333333333333333 14:0.25 57:0.07692307692307693 175:2.0 385:1.0 595:1.0 835:1.0 1140:1.0
5 1:0.25 14:0.25 16:1.0 32:0.16666666666666666 50:0.2 55:1.0 57:0.38461538461538464 64:0.07692307692307693 73:0.16666666666666666 82:0.5 83:1.0 92:1.0 134:1.0 142:1.0 162:2.0 175:1.0 261:0.2 286:0.16666666666666666 299:0.3333333333333333 302:0.5 364:1.0 413:1.0 442:1.0 468:1.0 543:2.0 681:1.0 917:1.0 965:1.0 1311:1.0 1584:1.0
5 57:0.07692307692307693 64:0.07692307692307693 142:1.0 162:1.0 175:1.0 252:1.0
5 3:0.015384615384615385 14:0.25 96:0.3333333333333333 141:1.0 173:1.0 175:1.0 485:1.0 810:1.0 816:1.0 1356:1.0 1440:0.5
5 3:0.03076923076923077 32:0.16666666666666666 43:0.25 56:3.0 57:0.07692307692307693 137:1.0 139:1.0 161:0.16666666666666666 162:1.0 165:0.3333333333333333 175:1.0 233:1.0 261:0.2 333:1.0 402:1.0 440:1.0 809:1.0 828:1.0 1307:1.0 1402:1.0
5 1:0.08333333333333333 5:1.0 53:1.0 55:1.0 1249:0.5 1721:1.0
5 1:0.08333333333333333 3:0.015384615384615385 14:0.25 25:1.0 71:1.0 141:1.0 175:1.0 261:0.2 298:1.0 501:1.0 567:1.0 1282:1.0
5 1:0.16666666666666666 3:0.015384615384615385 191:0.5 697:0.16666666666666666 869:1.0 1140:1.0
5 1:0.16666666666666666 3:0.015384615384615385 5:1.0 14:0.25 16:0.5 44:0.06666666666666667 53:1.0 55:1.0 64:0.15384615384615385 70:1.0 96:0.3333333333333333 217:1.0 261:0.4 282:0.3333333333333333 295:1.0 308:0.3333333333333333 377:1.0 485:1.0 593:0.5 632:1.0 869:1.0 1604:1.0
5 1:0.16666666666666666 3:0.06153846153846154 44:0.06666666666666667 64:0.07692307692307693 73:0.3333333333333333 114:1.0 118:1.0 162:1.0 173:4.0 264:2.0 295:1.0 307:0.5 416:0.1 485:2.0 924:1.0
5 3:0.015384615384615385 32:0.16666666666666666 295:1.0 1261:1.0
5 1:0.16666666666666666 3:0.03076923076923077 25:1.0 50:0.8 57:0.15384615384615385 62:1.0 73:0.16666666666666666 96:0.6666666666666666 178:1.0 224:0.5 253:0.6 290:0.5 302:0.5 334:1.0 439:0.5 895:3.0 1249:0.5 1466:1.0
5 3:0.015384615384615385 5:1.0 14:0.25 16:0.5 43:0.25 96:0.3333333333333333 109:1.0 114:1.0 175:1.0 246:1.0 253:0.2 280:1.0 381:0.3333333333333333 435:1.0 869:1.0 1083:1.0 1186:1.0
5 162:1.0 1643:1.0
5 1:0.16666666666666666 3:0.015384615384615385 16:0.5 43:0.25 44:0.06666666666666667 49:1.0 50:0.4 56:1.0 57:0.6923076923076923 83:1.0 96:0.6666666666666666 142:1.0 173:1.0 175:1.0 246:1.0 301:1.0 357:0.3333333333333333 536:1.0 628:1.0 650:1.0 870:1.0 933:1.0 1381:1.0
5 3:0.015384615384615385 14:0.25 50:0.2 68:0.5 73:0.16666666666666666 88:0.5 92:1.0 119:0.08333333333333333 246:1.0 548:1.0
5 1:0.16666666666666666 3:0.015384615384615385 16:0.5 51:1.0 106:0.3333333333333333 162:1.0 246:1.0 264:1.0 276:1.0 436:0.3333333333333333 602:1.0 1214:1.0 1670:1.0 1693:1.0
5 3:0.015384615384615385 14:0.25 15:1.0 32:0.16666666666666666 161:0.16666666666666666 162:1.0 246:1.0 308:0.3333333333333333
5 1:0.08333333333333333 3:0.015384615384615385 16:0.5 57:0.3076923076923077 106:0.3333333333333333 246:1.0 308:0.3333333333333333 411:1.0
5 3:0.046153846153846156 56:1.0 57:0.07692307692307693 246:1.0 253:0.2 259:1.0 302:0.5 308:0.3333333333333333 593:0.5 602:1.0
5 1:0.08333333333333333 3:0.03076923076923077 16:1.0 43:0.25 44:0.06666666666666667 51:1.0 56:1.0 57:0.23076923076923078 73:0.16666666666666666 97:1.0 165:0.3333333333333333 245:1.0 252:1.0 253:0.2 308:0.6666666666666666 333:1.0 410:2.0 450:1.0 463:1.0 777:1.0 1011:1.0 1077:1.0 1280:1.0 1346:1.0
5 1:0.08333333333333333 3:0.015384615384615385 142:2.0 246:1.0 1612:1.0
5 1:0.16666666666666666 3:0.015384615384615385 55:1.0 57:0.15384615384615385 124:1.0 161:0.16666666666666666 162:1.0 265:1.0 325:1.0 381:0.3333333333333333 419:1.0 442:1.0 567:1.0 1284:1.0 1394:1.0 1528:1.0
5 1:0.08333333333333333 3:0.03076923076923077 5:1.0 57:0.07692307692307693 246:1.0 302:0.5 308:0.3333333333333333 321:1.0 350:0.5 501:1.0
5 3:0.015384615384615385 14:0.25 16:0.5 44:0.06666666666666667 51:1.0 57:0.07692307692307693 73:0.16666666666666666 96:0.3333333333333333 162:1.0 233:1.0 281:0.5 298:1.0 308:0.3333333333333333 331:1.0 450:1.0 914:1.0
5 16:0.5 25:1.0 44:0.06666666666666667 50:0.2 51:1.0 57:0.07692307692307693 73:0.16666666666666666 162:1.0 175:1.0 253:0.2 276:1.0 298:1.0 308:0.3333333333333333 1194:1.0 1394:1.0
5 3:0.015384615384615385 51:1.0 56:1.0 57:0.15384615384615385 71:1.0 90:1.0 141:1.0 162:1.0 175:2.0 245:1.0 282:0.3333333333333333 298:1.0 308:0.3333333333333333 638:1.0
5 1:0.08333333333333333 14:0.5 44:0.06666666666666667 64:0.15384615384615385 96:0.3333333333333333 162:1.0 175:1.0 261:0.2 264:1.0 298:2.0 406:1.0 479:0.5 524:1.0 638:1.0
5 1:0.16666666666666666 57:0.07692307692307693 175:1.0 589:1.0 859:1.0
|
23b5637abb841737537774f395e5221cdcad4e6f | 2e8fd638cb86a3b3ea69dddd8a2de255992d1ad0 | /2)Eigen.sce | 908b211521fd9c4913356d533807bea7dd8471ed | [] | no_license | swati-25/SciLab-Assignment4 | 75ebb446b1f559ed06a264876f9628b943ba9216 | 073e3cc9dc96976087e0323a19d9ad7b0fe3f454 | refs/heads/master | 2022-04-13T03:35:12.764191 | 2020-04-10T14:59:03 | 2020-04-10T14:59:03 | 254,661,565 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 679 | sce | 2)Eigen.sce | clc;clear;close;
n=3
disp("Enter the elements for matrix A")
for i=1:n
for j=1:n
A(i,j)=input("Enter the element ")
end
end
lam=poly(0,'lam')
lam=lam
charMat=A-lam*eye(3,3)
disp(charMat,' charateristic Matrix is')
charPoly=poly(A,'lam')
disp(charPoly,' charateristic polynomial is')
lam=spec(A)
disp(lam,' eigen values of A are')
function[x,lam]=eigenvectors(A)
[n,m]=size(A);
lam=spec(A)';
x=[];
for k=1:3
S=A-lam(k)*eye(3,3);
C=S(1:n-1,1:n-1);
b=-S(1:n-1,n);
y=C\b;
y=[y;1];
y=y/norm(y);
x=[x y];
end
endfunction
//get f('eigenvectors')
[x,lam]=eigenvectors(A)
disp(x,' eigen vectors of A are');
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.