blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
214
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
50
| license_type
stringclasses 2
values | repo_name
stringlengths 6
115
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 21
values | visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 141k
586M
⌀ | star_events_count
int64 0
30.4k
| fork_events_count
int64 0
9.67k
| gha_license_id
stringclasses 8
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 50
values | src_encoding
stringclasses 23
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 1
class | length_bytes
int64 5
10.4M
| extension
stringclasses 29
values | filename
stringlengths 2
96
| content
stringlengths 5
10.4M
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b7002d29b09610933cbbbaa11893b5c80506900
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2021/CH4/EX4.5/EX4_5.sce
|
5660bbd6752272bd453ab6507e5b617c0ea605aa
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 169
|
sce
|
EX4_5.sce
|
//Finding of Density
//Given
h1=0.4;
h2=0.6;
rho=1000;
rho1=13600;
g=9.81;
wd=rho*0.6;
md=rho1*0.4;
rho2=wd+md;
disp("Density is = "+string(rho2)+" Kg/m^3");
|
eccd375665ed7367fadbd28a77ba24a67e34976e
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.3.1/tests/dialogs.tst
|
5c596c90258b05535ea17a79e3f30625ab6b0e03
|
[
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] |
permissive
|
clg55/Scilab-Workbench
|
4ebc01d2daea5026ad07fbfc53e16d4b29179502
|
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
|
refs/heads/master
| 2023-05-31T04:06:22.931111
| 2022-09-13T14:41:51
| 2022-09-13T14:41:51
| 258,270,193
| 0
| 1
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 5,691
|
tst
|
dialogs.tst
|
//This part of the test verify visual aspect of the dialogs window
// and in particular scroll bars
// It must be checked visually
mode(-1)
// x_message
// =========
x_message(['Simple message';'No scroll bar at all']);
x_message(['message with huge vertical part';
'Only vertical scroll bar'
string(1:50)']);
x_message(['message with huge horizontal part';
'Only horizontal scroll bar'
strcat(string(1:150),' ')]);
x_message(['huge message';
'Vertical and horizontal scroll bars'
strcat(string(1:150),' ');
string(1:50)']);
// x_dialog
// ========
x_dialog(['Simple dialog';'No scroll bar at all'],['0';'1']);
x_dialog(['dialog with huge vertical label part';
'Only vertical scroll bar'
'for the Label part';
string(1:50)'],['0';'1']);
x_dialog(['dialog with huge horizontal label part';
'Only horizontal scroll bar'
'for the Label part';
strcat(string(1:150),' ')],['0';'1']);
x_dialog(['dialog with huge label part';
'Vertical and horizontal scroll bars'
'for the Label part';
strcat(string(1:150),' ');
string(1:50)'],['0';'1']);
x_dialog(['dialog with huge vertical dialog part';
'Only vertical scroll bar'
'for the Dialog part'],string(1:50)');
x_dialog(['dialog with huge horizontal dialog part';
'Only horizontal scroll bar'
'for the Dialog part'],strcat(string(1:150),' '));
x_dialog(['dialog with huge dialog part';
'Vertical and horizontal scroll bars'
'for the Dialog part'],[strcat(string(1:150),' ');string(1:50)']);
x_dialog(['dialog with huge label and dialog part';
'Vertical and horizontal scroll bars'
'for the Label part';
strcat(string(1:150),' ');
string(1:50)'],[strcat(string(1:150),' ');string(1:50)']);
// x_choose
// =========
x_choose(string(1:10)',['Simple choose';'No scroll bar at all']);
x_choose(string(1:10)',['choose with huge vertical label part';
'Only vertical scroll bar'
'for the Label part';
string(1:50)']);
x_choose(string(1:10)',['choose with huge horizontal label part';
'Only horizontal scroll bar'
'for the Label part';
strcat(string(1:150),' ')]);
x_choose(string(1:10)',['choose with huge label part';
'Vertical and horizontal scroll bars'
'for the Label part';
strcat(string(1:150),' ');
string(1:50)']);
x_choose(string(1:50)',['choose with huge vertical choose part';
'Only vertical scroll bar'
'for the Choose part']);
x_choose(strcat(string(1:150),' '),['choose with huge horizontal choose part';
'Only horizontal scroll bar'
'for the Choose part']);
x_choose([strcat(string(1:150),' ');string(1:50)'],['choose with huge choose part';
'Vertical and horizontal scroll bars'
'for the Choose part']);
x_choose([strcat(string(1:150),' ');string(1:50)'],['choose with huge label and choose part';
'Vertical and horizontal scroll bars'
'for the Label part';
strcat(string(1:150),' ');
string(1:50)']);
// x_mdialog
// ========
x_mdialog(['Simple multiple dialog';'No scroll bar at all'],..
['A','B'],['0';'1']);
x_mdialog(['dialog with huge vertical label part';
'Only vertical scroll bar'
'for the Label part';
string(1:50)'],['A','B'],['0';'1']);
x_mdialog(['multiple dialog with huge horizontal label part';
'Only horizontal scroll bar'
'for the Label part';
strcat(string(1:150),' ')],['A','B'],['0';'1']);
x_mdialog(['multiple dialog with huge label part';
'Vertical and horizontal scroll bars'
'for the Label part';
strcat(string(1:150),' ');
string(1:50)'],['A','B'],['0';'1']);
x_mdialog(['multiple dialog with huge vertical dialog part';
'Only vertical scroll bar'
'for the Dialog part'],string(1:50)',string(1:50)');
x_mdialog(['multiple dialog with huge horizontal dialog part';
'Only horizontal scroll bar'
'for the Dialog part'],'label',strcat(string(1:150),' '));
x_mdialog(['multiple dialog with huge dialog part';
'Vertical and horizontal scroll bars'
'for the Dialog part'],..
['label';string(1:50)'],[strcat(string(1:150),' ');string(1:50)']);
x_mdialog(['multiple dialog with huge label and dialog part';
'Vertical and horizontal scroll bars'
'for the Label part';
strcat(string(1:150),' ');
string(1:50)'],..
['label';string(1:50)'],..
[strcat(string(1:150),' ');string(1:50)']);
// x_mdialog for matrix
// =====================
n=5;m=4;mat=rand(n,m);
row='row';labelv=row(ones(1,n))+string(1:n)';
col='col';labelh=col(ones(1,m))+string(1:m)';
new=evstr(x_mdialog('Small Matrix to edit',labelv,labelh,string(mat)));
n=20;m=20;mat=rand(n,m);
row='row';labelv=row(ones(1,n))+string(1:n)';
col='col';labelh=col(ones(1,m))+string(1:m)';
new=evstr(x_mdialog('Big Matrix to edit',labelv,labelh,string(mat)));
// x_choices
l1=list('choice 1',1,['toggle c1','toggle c2','toggle c3']);
l2=list('choice 2',2,['toggle d1','toggle d2','toggle d3']);
l3=list('choice 3',3,['toggle e1','toggle e2']);
rep=x_choices('Toggle Menu',list(l1,l2,l3));
tog='toggle ';tog=tog(ones(1,500))'+string(1:500);
l1=list('choice 1',1,tog);
l2=list('choice 2',2,['toggle d1','toggle d2','toggle d3']);
l3=list('choice 3',3,['toggle e1','toggle e2']);
rep=x_choices('Toggle Menu',list(l1,l2,l3));
|
bcaf4e64d9e0f3a7ea48c687935d24871802690a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/34/CH12/EX12.4/Ch12Exa4.sci
|
5c5ab1213c65a47044bdaecf59e7f98dcbef8cb3
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
sci
|
Ch12Exa4.sci
|
//Refer to Example 12.3
Ro= 155; //initial activity, Ci
Lambda= 2.11*(10^(-6)); //decay constant, s^(-1)
t= 7; //days
t= t*86400; //converting to s
R= Ro*((%e)^(-(Lambda*t))); //final activity, Ci
disp(R,"The activity after one week, in Ci, is: ")
//Result
// The activity after one week, in Ci, is:
// 43.262972
|
058a38ba578be58bb70b7931d4e8c236d620f8c3
|
9adf1bc6de8cda036ee25fde7a658b3ca8cdf477
|
/TABELLE/src/result0s0.tst
|
e17d720eb3d41b7f456ba8e48303ead30c9c4296
|
[] |
no_license
|
deepak0431/granada
|
fc9acf52590a1315805702af41d87760ef089545
|
077460440ded909242697d5f0fd1de8526c53ac6
|
refs/heads/master
| 2021-01-10T11:58:32.017549
| 2011-12-15T01:51:29
| 2011-12-15T01:51:29
| 51,353,969
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 16,246
|
tst
|
result0s0.tst
|
@relation unknow
@attribute Sex {M, F, I}
@attribute Length real [0.075, 0.815]
@attribute Diameter real [0.055, 0.65]
@attribute Height real [0.0, 1.13]
@attribute Whole_weight real [0.002, 2.8255]
@attribute Shucked_weight real [0.001, 1.488]
@attribute Viscera_weight real [5.0E-4, 0.76]
@attribute Shell_weight real [0.0015, 1.005]
@attribute Rings {positive, negative}
@data
negative negative
positive positive
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative positive
negative positive
negative negative
negative negative
negative positive
negative positive
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
positive positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
positive negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
positive positive
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
positive negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
positive negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative positive
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative positive
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative positive
negative negative
negative positive
negative positive
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative positive
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative positive
negative negative
negative negative
negative positive
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative positive
negative negative
negative positive
negative positive
negative negative
negative negative
negative positive
negative positive
negative negative
negative positive
negative positive
negative positive
negative positive
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative positive
negative positive
negative negative
negative positive
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative positive
negative positive
negative positive
negative negative
negative positive
negative negative
negative positive
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative positive
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative positive
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
negative negative
negative negative
negative positive
negative positive
negative negative
negative negative
negative negative
negative negative
|
477199e6c61854e1c6dfdf4960e6be542240538a
|
3c47dba28e5d43bda9b77dca3b741855c25d4802
|
/microdaq/macros/microdaq_blocks/mdaq_profiler_sim.sci
|
b2d7da238a66dc94af7ac35471f4cc3661b34f5e
|
[
"BSD-3-Clause"
] |
permissive
|
microdaq/Scilab
|
78dd3b4a891e39ec20ebc4e9b77572fd12c90947
|
ce0baa6e6a1b56347c2fda5583fb1ccdb120afaf
|
refs/heads/master
| 2021-09-29T11:55:21.963637
| 2019-10-18T09:47:29
| 2019-10-18T09:47:29
| 35,049,912
| 6
| 3
|
BSD-3-Clause
| 2019-10-18T09:47:30
| 2015-05-04T17:48:48
|
Scilab
|
UTF-8
|
Scilab
| false
| false
| 517
|
sci
|
mdaq_profiler_sim.sci
|
// Generated with MicroDAQ toolbox ver: 1.2.1
function block=mdaq_profiler_sim(block,flag)
global %microdaq
if %microdaq.dsp_loaded == %F then
select flag
case -5 // Error
case 0 // Derivative State Update
case 1 // Output Update
case 2 // State Update
case 3 // OutputEventTiming
case 4 // Initialization
case 5 // Ending
case 6 // Re-Initialisation
case 9 // ZeroCrossing
else // Unknown flag
break
end
end
endfunction
|
08eb37d29131453eccb01c581bafec1e736b108d
|
1db0a7f58e484c067efa384b541cecee64d190ab
|
/macros/synthesis.sci
|
7224686946dc66bce56a18500a1c766e3225efc9
|
[] |
no_license
|
sonusharma55/Signal-Toolbox
|
3eff678d177633ee8aadca7fb9782b8bd7c2f1ce
|
89bfeffefc89137fe3c266d3a3e746a749bbc1e9
|
refs/heads/master
| 2020-03-22T21:37:22.593805
| 2018-07-12T12:35:54
| 2018-07-12T12:35:54
| 140,701,211
| 2
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 654
|
sci
|
synthesis.sci
|
function x= synthesis(Y,C)
//Compute a signal from its short-time Fourier transform
//Calling Sequence
//X= synthesis(Y,C)
//Parameters
//Y: Shirt-time fourier transform
//C: 3-element vector C specifying window size, increment, window type.
//Description
//Compute a signal from its short-time Fourier transform Y and a 3-element vector C specifying window size, increment, and window type.
//The values Y and C can be derived by
//[Y, C] = stft (X , ...)
funcprot(0);
lhs= argn(1);
rhs= argn(2);
if(rhs<2 | rhs >2)
error("Wrong number of input arguments");
end
select(rhs)
case 2 then
x= callOctave("synthesis", Y,C);
end
endfunction
|
e2302e8fb7a3287b0a989cd0d6959293be686769
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2744/CH12/EX12.10/Ex12_10.sce
|
cb65c41bd627dd6197008bb2ad932bb0897345f9
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,184
|
sce
|
Ex12_10.sce
|
clear;
clc;
HP = 80;
RPM = 120;
b = 10;// feet
h = 3;// feet
F = 8000;// lb-wt
m = 4;
T = HP*33000*12/(2*%pi*RPM*2240);// ton-inches
M = F*h*(b-h)*12/(b*2240);// ton-inches
//(i) The major principal stress f1 is given by
f1 = 6;// tons/in^2
d1 = ((M+sqrt(M^2 + T^2))*16/(%pi*f1))^(1/3);// inches
//(ii) If f_s_dash is the maximum intensity of shear stress
f_s_dash = 3;// tons/in^2
d2 = (sqrt(M^2 + T^2) * 16/(%pi*f_s_dash))^(1/3);// inches
//(iii) If e is the major principal strain
Ee = 6;// tons/in^2
d3 = (((1-(1/m))*M + (1+(1/m))*sqrt(M^2 + T^2))*16/(%pi*Ee))^(1/3);// inches
//(iv) If f is the direct stress which, acting alone will produce the same maximum strain energy
f = 6;// tons/in^2
d4 = ((sqrt(4*M^2 + 2*(m+1)*(T^2)/m))*16/(%pi*f))^(1/3);// inches
printf('The diameter of the shaft in different cases will be, (i) d = %.3f inches\n (ii) d = %.3f inches\n (iii) d = %.3f inches\n (iv) d = %.3f inches',d1,d2,d3,d4);
//there are round-off errors in the answers given in textbook.
|
39b3ac5bdbfaa10ffee9741cb5043ada38315ea1
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1922/CH9/EX9.2/9_2.sce
|
057d564cfa44fb0240b241a25339ecc49c8a2f8e
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 315
|
sce
|
9_2.sce
|
clc
clear
//Initialization of variables
g1=150670 //kJ/kmol
g2=71500 //kJ/kmol
R=8.314
Ts=298 //K
T=700 //K
//calculationd
G=g1-g2
G2=33875 //kJ/kmol
K1=exp(-G/R/Ts)
K2=exp(-G2/R/T)
//results
printf("In case 1, equilibrium constant = %.2e",K1)
printf("\n In case 2, equilibrium constant = %.5f",K2)
|
631e906d0ba428d169aceccadd4dcaf03dc475da
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3472/CH35/EX35.3/Example35_3.sce
|
94791899b4a2a4c329a86a96859560382f75adda
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,093
|
sce
|
Example35_3.sce
|
// A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART III : SWITCHGEAR AND PROTECTION
// CHAPTER 9: PROTECTION OF TRANSFORMERS
// EXAMPLE : 9.3 :
// Page number 636
clear ; clc ; close ; // Clear the work space and console
// Given data
V_lv = 11.0*10**3 // LV side voltage of transformer(V)
V_hv = 66.0*10**3 // HV side voltage of transformer(V)
ratio_CT = 250.0/5 // CT ratio on LV side of transformer
// Calculations
V_hv_phase = V_hv/3**0.5 // HV side phase voltage(V)
ratio_main_T = V_hv_phase/V_lv // Ratio of main transformer
I_2 = 250.0 // Primary CT
I_1 = I_2/(ratio_main_T*3**0.5) // Primary line current(A)
CT_sec = 5.0 // Secondary CT
secondary_side = CT_sec/3**0.5 // HV side CT secondary
// Results
disp("PART III - EXAMPLE : 9.3 : SOLUTION :-")
printf("\nRatio of CTs on high voltage side = %.1f : %.1f = (%.f/%.2f√3) : (%.f/√3) ", I_1,secondary_side,I_2,ratio_main_T,CT_sec)
|
f5ad1ef0283b1709eeb99b912be801b0a6d75bfd
|
d60e8cf5de9384449a9b6a643bfe4c1d2339b1ae
|
/linux/nxt.sci
|
764a120d4aa50cf29112e01605b4b6a1e3271158
|
[] |
no_license
|
tizar/lego
|
165ec2ac333bed642d96a33db77ab7d00ffbfba9
|
351c8824b3457f4735cf65ec4740d1c9fc89dd21
|
refs/heads/master
| 2016-09-08T05:06:23.607494
| 2011-03-03T10:46:31
| 2011-03-03T10:46:31
| 1,434,570
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,369
|
sci
|
nxt.sci
|
if isdef('nxt_sci') then
return
end
nxt_sci=1;
if isdef('lusb') then
unlink()
end
lusb=link('libusb.so');
functions=['comm_open','nxt_playtone','nxt_batterylevel', ...
'nxt_motor_setforward', 'nxt_motor_setreverse', 'nxt_motor_stop', ...
'nxt_motor_resetrotation', 'nxt_motor_getrotation' ...
];
llego=link('legolinux.o',functions,"c");
function unlink()
ulink(lusb)
ulink(llego)
endfunction
function l()
link('show')
endfunction
function status=nxt_init()
status=call('comm_open','out',[1,1],1,'i')
endfunction
function level=nxt_batlevel()
level=call('nxt_batterylevel','out',[1,1],1,'i');
endfunction
function nxt_playtone(frequency,duration)
call('nxt_playtone',frequency,1,'i',duration,2,'i','out',[1,1],1,'i');
endfunction
function nxt_forward(port,power)
call('nxt_motor_setforward',port,1,'i',power,2,'i','out',[1,1],1,'i');
endfunction
function nxt_reverse(port,power)
call('nxt_motor_setreverse',port,1,'i',power,2,'i','out',[1,1],1,'i');
endfunction
function nxt_stop(port,brake)
call('nxt_motor_stop',port,1,'i',brake,2,'i','out',[1,1],1,'i');
endfunction
function nxt_resetrotation(port,relative)
call('nxt_motor_resetrotation',port,1,'i',relative,2,'i','out',[1,1],1,'i');
endfunction
function tacho=nxt_getrotation(port)
tacho=call('nxt_motor_getrotation',port,1,'i','out',[1,1],2,'i');
endfunction
|
7a2ac9aba012a35e1beec210abb5443f4a91c733
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1646/CH5/EX5.28/Ch05Ex28.sce
|
7bc649462d611f9ee21f33d25121ea743e308407
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 545
|
sce
|
Ch05Ex28.sce
|
// Scilab Code Ex5.28: Page:311 (2011)
clc;clear;
lambda = 5.5e-07;....// Wavelength of light used, m
f = 3.0;....// Focal length of telescope objective, m
a = 0.01;....// Diameter of the telescope objective, m
// As x/f = 1.22*lambda/a, the Rayleigh criterian for resolution, solving for x
x = 1.22*f*lambda/a; // Distance between two stars just seen as separate, m
printf("\nThe distance between two stars just seen as separate = %3.1e m ", x);
// Result
// The distance between two stars just seen as separate = 2.0e-004 m
|
ba90356e167c737e6d5e87b3419c5c54e4a82b13
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/779/CH10/EX10.17/10_17.sce
|
14d9eada70f1b47de11cba8b962e3be56bb0a141
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
10_17.sce
|
an = 20.183; // molecular weight of neon
Pc = 2.73; // Critical pressure
Tc = 44.5;
Vc = 0.0416;
Pr = 2; // Reduced Pressure
Tr = 1.3;
Z = 0.7;
P = Pr*Pc;
T = Tr*Tc;
R = 8.314;
v = (Z*R*T)/(P*1000*an);
vr = (v*an)/Vc ;
disp("m3/kg",v,"Specific volume is")
disp("K",T,"Specific temperature is")
disp("kPa",P,"Specific pressure is")
disp(vr,"Reduced volume is")
|
21a65b1af418608e4029a83b80af6113173fff7b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1445/CH10/EX10.16/ch10_ex_16.sce
|
f2fd3915019a9ff7f8af2cd8ab3fc1f86224d458
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,142
|
sce
|
ch10_ex_16.sce
|
//CHAPTER 10- THREE-PHASE INDUCTION MACHINES
//Example 16
disp("CHAPTER 10");
disp("EXAMPLE 16");
//VARIABLE INITIALIZATION
ratio1=1.5; //ratio of T_est and T_efl
ratio2=2.5; //ratio of T_em and T_efl
//SOLUTION
s=1;
//solution (a)
//directly solving the quadratic equation
a=1;
b=-3.333;
c=1;
D=(b)^2-(4*a*c); //discriminant
sm1=(-b+sqrt(D))/(2*a);
sm2=(-b-sqrt(D))/(2*a);
if(sm1<=0 & sm2<=0) then
disp("The value of the slip at maximum torque is not valid");
else if(sm1>0 & sm1<1)
disp(sprintf("The slip at maximum torque is %f",sm1));
else if(sm2>0 & sm2<1)
disp(sprintf("The slip at maximum torque is %f",sm2));
end;
//solution (b)
//directly solving the quadratic equation
a=1;
b=-1.665;
c=0.111;
D=(b)^2-(4*a*c);
ans1=(-b+sqrt(D))/(2*a);
ans2=(-b-sqrt(D))/(2*a);
if(ans1>0 & ans1<1)
disp(sprintf("The full load slip is %f",ans1));
sfl=ans1;
else if(ans2>0 & ans2<1)
disp(sprintf("The full load slip is %f",ans2));
sfl=ans2;
end;
//solution (c)
I=sqrt(ratio1/sfl);
disp(sprintf("The rotor current at the starting in terms of full load current is %f A",I));
//END
|
46faa365d378920236a837d0d1c6e136d3d0a87e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1895/CH6/EX6.21/EXAMPLE6_21.SCE
|
263e982dd443360fd8df94c77a0461956fa48065
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 935
|
sce
|
EXAMPLE6_21.SCE
|
//ANALOG AND DIGITAL COMMUNICATION
//BY Dr.SANJAY SHARMA
//CHAPTER 6
//NOISE
clear all;
clc;
printf("EXAMPLE 6.21(PAGENO 311)");
//given from the figure
G_1ratio = 1000//gain of master amplifier
G_2ratio = 100//gain of TWT
G_3ratio = 10000//gain of mixer and IF amplifier
F_2ratio = 4//noise figure of TWT
F_3ratio = 16//noise figure of mixer and IF amplifier
T_0 =273 + 17//ambident temperature in degree kelvin
T_e1 = 5//temperature of master amplifier in degree kelvin
//calculaitons
F_1 = 1 + (T_e1/T_0);//noise figure of master amplifier
F = F_1 + ((F_2ratio - 1)/(G_1ratio)) + ((F_3ratio - 1)/(G_2ratio*G_1ratio));//Overall noise figure
F_dB = 10*log10(F);//overall noise figure in dB
T_e = (F - 1)*T_0;//overall noise temperature of the receiver
//results
printf("\n\ni.Overall noise temperature of the receiver =%.2f degreekelvin",T_e);
printf("\n\nii.Overall noise figure = %.6f dB", F_dB);
|
e69e9d1ec7229989885561d0454b191c951d7bcc
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1430/CH11/EX11.6/exa11_6.sce
|
276d86b99aaa6ba59679298eb7f1cb6b88882e0b
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 459
|
sce
|
exa11_6.sce
|
// Example 11.6
// Design of a Bandpass filter
L=1*10^-3;
R_w=1.2;
B=2*%pi*2*250; // Bandwidth
omega_0=2*%pi*20*10^3;
Q=omega_0/B; // quality factor
f_l=20000-250;
f_u=20000+250;
f_0=sqrt(f_l*f_u);
Q_par=Q;
C=1/(omega_0^2*L); // Required value of Capacitor
R_par=L/(C*R_w); // Parallel equivalent of winding resistance
R_eq=Q*omega_0*L;
R=(R_eq*R_par)/(R_par-R_eq);
disp(C,"Required value of C (Farad)=")
disp(R,"Required value of R(Ohms)=")
|
a4d1e48d0c6c88fef766e7935f4e75dd80e11888
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/965/CH2/EX2.69/69.sci
|
03fbe5f6bada61fb1dc377f72f5be23f4d817967
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 477
|
sci
|
69.sci
|
clc;
clear all;
disp("Thermal conductivity of insulation")
r1=1.5/2;//m
r2=r1+0.1;//m
Lcyl=8-1.5;//m
m=10.8;//kg/h
hv=214;//kJ/kg
Qboil=m*hv;//kJ/h
Qcyl=Qboil/(1+(2*r1*r2*log(r2/r1))/(Lcyl*(r2-r1)));
disp("kJ/h",Qcyl,"Rate of heat in Q =")
Qcyl=Qcyl/3.6;
disp("J/s",Qcyl,"Rate of heat in Q =")
ti=-183;//degree C
to=27;//degree C
delT=to-ti;
k=Qcyl*(log(r2/r1))/(delT*2*3.1416*Lcyl);// W/(m*C)
disp("W/(m*K)",k,"Thermal conductivity of insulation =")
|
8c305c0d4ea9dcc91f4223ad0b40835273535701
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/869/CH10/EX10.11/10_11.sce
|
f1e1a7146b8db5fbf0c7b3b6385387b66b87436f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 266
|
sce
|
10_11.sce
|
clc
//initialisation of variables
d= 0.5 //in
n= 315 //rpm
t1= 5000 //psi
r1= 8 //in
r2= 4 //in
n1= 6
n2= 4
//CALCULATIONS
t2= r2*t1/r1
T= r1*n1*(%pi/4)*d^2*t1+r2*n2*(%pi/4)*d^2*t2
hp= T*n/63000
//RESULTS
printf ('Premissible horsepower= %.f hp',hp)
|
a19253e0b8e99c0fdf3799f6cf78dbca1f607afb
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3311/CH5/EX5.1/Ex5_1.sce
|
2a7ec7153ccb05b5249589f34cf7d84699f51e17
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,074
|
sce
|
Ex5_1.sce
|
// chapter 5
// example 5.1
// Fig. 5.15
// What will be the maximum and minimum firing angle
// page-155
clear;
clc;
// given
Vc=40; // in V (breakdown voltage)
R1_min=1; R1_max=25; // in k-ohm
C=470; // in nF
Erms=240; // in V
f=50; // in Hz (AC supply frequency)
// calculate
C=C*1E-9; // changing unit from nF to F
R1_min=R1_min*1E3; // changing unit from k-ohm to ohm
R1_max=R1_max*1E3; // changing unit from k-ohm to ohm
Zc=1/(2*%pi*f*C); // impedence of capacitor
phi_min=90-atand(1/(2*%pi*f*R1_min*C)); // calculation of minimum phase angle
phi_max=90-atand(1/(2*%pi*f*R1_max*C)); // calculation of minimum phase angle
Zd_min=sqrt(R1_min^2+Zc^2); // calculation of minimum impedence
Zd_max=sqrt(R1_max^2+Zc^2); // calculation of maximum impedence
Em=Erms*sqrt(2); // calculation of maximum value of voltage
Id_min=Em/Zd_max; //
Id_max=Em/Zd_min; // calculation of maximum impedence
Vc_min_peak=Id_min*Zc;
Vc_max_peak=Id_max*Zc;
// Now Vc=Vc_max_peak*sin(wt_min+phi_min) and Vc=Vc_min_peak*sin(wt_max+phi_max)
// evaluating both these, we get wt_min=asind(Vc/Vc_max_peak)+phi_min and wt_max=asind(Vc/Vc_min_peak)+phi_max
wt_min=asind(Vc/Vc_max_peak)+phi_min;
wt_max=asind(Vc/Vc_min_peak)+phi_max;
printf("\nThe value of impedence of capacitor is \t\t Zc=%.f ohm",Zc);
printf("\n\nThe value of minimum phase difference is \t %.1f degree",phi_min);
printf("\nThe value of maximum phase difference is \t %.2f degree",phi_max);
printf("\n\nThe value of minimum total impedence is \t Zd_min=%.f ohm",Zd_min);
printf("\nThe value of maximum total impedence is \t Zd_max=%.f ohm",Zd_max);
printf("\n\nThe value of minimum peak current is \t\t Id_min=%.3f A",Id_min);
printf("\nThe value of maximum peak current is \t\t Id_max=%.3f A",Id_max);
printf("\n\nThe value of minimum peak total voltage is \t Vc_min_peak=%.2f V",Vc_min_peak);
printf("\nThe value of maximum peak total voltage is \t Vc_max_peak=%.1f V",Vc_max_peak);
printf("\n\nThe value of minimum delay is \t\t\t =%.2f degree",wt_min);
printf("\nThe value of maximum delay is \t\t\t =%.1f degree",wt_max);
|
8473f9e7f0c5e7659bb18ecda53164b6785a28cb
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/530/CH6/EX6.3/example_6_3.sce
|
fb624c2ddf3b454ab876a12d0c78228e63a73033
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,325
|
sce
|
example_6_3.sce
|
clear;
clc;
// A Textbook on HEAT TRANSFER by S P SUKHATME
// Chapter 6
// Heat Transfer by Natural Convection
// Example 6.3
// Page 260
printf("Example 6.3, Page 260 \n \n");
s = 0.2 ; // [m]
d = 0.005 ; // [m]
rho = 7900 ; // [kg/m^3]
Cp = 460 ; // [J/kg K]
T_air = 20 ; // [C]
// For 430 C to 330 C
T_avg = 380 ; // [C]
Tm = (T_avg + T_air)/2 ; // [C]
v = 34.85*10^-6 ; // [m^2/s]
Pr = 0.680 ;
k = 0.0393 ; // [W/m K]
Re = 9.81*1/(273+Tm)*(T_avg-T_air)*(s^3)/(v^2)*Pr;
// From eqn 6.2.31
Nu = 0.68 + 0.670*(Re^(1/4))/[1+(0.492/Pr)^(4/9)]^(4/9);
h = Nu*k/s; // [W/m^2 K]
t1 = rho*s*s*d*Cp/((s^2)*2*h)*log((430-T_air)/(330-T_air)); // [s]
printf("Time required for the plate to cool from 430 C to 330 C is %f s\n",t1);
// for 330 to 230
h2 = 7.348 ; // [W/m^2 K]
t2 = rho*s*s*d*Cp/((s^2)*2*h2)*log((330-T_air)/(230-T_air)); // [s]
printf("Time required for the plate to cool from 330 C to 230 C is %f s\n",t2);
// for 230 to 130
h3 = 6.780; // [W/m^2 K]
t3 = rho*s*s*d*Cp/((s^2)*2*h3)*log((230-T_air)/(130-T_air)); // [s]
printf("Time required for the plate to cool from 230 C to 130 C is %f s\n",t3);
// Total time
time = t1+t2+t3;
minute = time/60;
printf("Hence, time required for the plate to cool from 430 C to 130 C \n = %f s\n = %f min",time,minute);
|
1d0963e9cbfb8cfb20623a8e87c1d62974ea0978
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1309/CH1/EX1.6/ch1_6.sce
|
f25808fc1a057e3b0639146997f0c981900c263f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 475
|
sce
|
ch1_6.sce
|
clear;
clc;
printf("\t\t\tchapter1_example6\n\n\n");
// determination of radiation thermal conductance
A=14*30; // area in sq.ft
T1=120+460; // driveway surface temperature in degree Rankine
T2=0; // surface temperature assumed to be 0 degree Rankine
Qr=73320; // heat loss rate in BTU/hr
hr=Qr/(A*(T1-T2)); // radiation thermal conductance in BTU/(hr.ft^2.(degree Rankine)
printf("\nthe radiation thermal conductance is %.2f BTU/(hr. sq.ft.(degree Rankine))",hr);
|
e057e763d25cfc082e2697ec4ec391841a2104d2
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3311/CH13/EX13.18/Ex13_18.sce
|
5ee0cdf00c06abcbd2e98ebc3edb640367d778dc
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 792
|
sce
|
Ex13_18.sce
|
// chapter 13
// example 13.18
// Determine the maximum power disspation
// page-843
clear;
clc;
// given
Cs=0.2; // in J/degree C (thermal capacity)
theta=0.7; // in degree C/W (thermal resistance)
T_J=40; // in degree C (junction temperature)
t=0.1; // in s
// calculate
power_diss_per_degreeC=1/theta; // calculation of power dissipation per degree Celsius rise
tou=Cs/power_diss_per_degreeC; // calculation of thermal time constant
// since T_J=T_J_max*(1-exp(-t/tou)), therefore we get
T_J_max=T_J/(1-exp(-t/tou)); // calculation of maximum junction temperature
P_max_diss=T_J_max*power_diss_per_degreeC; // calculation of maximum power disspation
printf("\nThe maximum power disspation is \t P_max_diss=%.f W",P_max_diss);
// Note :The answer vary slightly due to precise calculation
|
1983762c183d72d0bfbaccedebf65611521a64e3
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3769/CH9/EX9.13/Ex9_13.sce
|
be0cd71692861e16ad4c59106790337799ccfc93
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 242
|
sce
|
Ex9_13.sce
|
clear
//Given
E=3.4*10**4 //V/m
B=2*10**-3 //Wb/m**2
m=9.1*10**-31
e=1.6*10**-19
//Calculation
v=E/B
r=(m*v)/(e*B)
//Result
printf("\n Radius of the circular path is %0.1f *10**-2 m",r*10**2)
|
fa7daf0d0b787775381b033083d3d7a790ba9632
|
481f3317298608c37d4cb96f148faf5068d712bb
|
/lib/scilab/getTransferFunction.sci
|
00791fffd7a2cd066d40fde7f8f53a5e7b37d84d
|
[] |
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
| 354
|
sci
|
getTransferFunction.sci
|
function trfun = getTransferFunction(block)
if block.gui <> 'DLR' then
error('getTransferFunction: invalid block (must be DLR)')
end
num_str = block.graphics.exprs(1)
den_str = block.graphics.exprs(2)
z = poly(0, 'z')
num = evstr(num_str)
den = evstr(den_str)
trfun = num/den
endfunction
|
6a665c182044b0c12530fb461ae8cf3a407df256
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2534/CH6/EX6.4/Ex6_4.sce
|
28fc9bc2d97ab9436c5a6bf1096914559c8f7cdf
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 769
|
sce
|
Ex6_4.sce
|
//Ex6_4
clc
RC = 2.3*10^3
Re = 1*10^3
VCC = 12
VCE = 5
VBE = 0.7
beta = 50
disp("RC = "+string(RC)+"ohm")//collector resistance
disp("Re = "+string(Re)+"ohm")//emitter resistance
disp("VCC = "+string(VCC)+"V")//supply voltage
disp("VCE = "+string(VCE)+"V")//voltage across collector and emitter
disp("VBE = "+string(VBE)+"V")//voltage across base and emitter
disp("beta = "+string(beta))//current gain
// according to the given circuit, we have
IB = (VCC - VCE)/((beta+1)*[RC+Re])
disp("IB = (VCC - VCE)/((beta+1)*[RC+Re]) = "+string(IB)+"A")//base current
IC = beta*IB
disp("IC = "+string(IC)+"A")//collector current
//from the circuit we have,
Rt = (VCE-VBE)/IB
disp("Rt = (VCE - VBE)/IB = "+string(Rt)+"ohm")//resistance Rt as given in circuit
|
69471c694d9ae6350faac443e0d1ce1159414d92
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3673/CH2/EX2.a.2/Example_a_2_2.sce
|
2f298a6e8506518b0e14d705ce8aedb148bc9690
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 140
|
sce
|
Example_a_2_2.sce
|
//Example 2_2 page no:86
clc;
V1=(4.8+2+3.6)/((1/5)+(1/20)+(1/10));
I=(V1-24)/5;
disp(I,"the current delivered by the 24V source is");
|
e863fde366617c42c92de4b2a9749b6ff36e75d9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/998/CH29/EX29.93/Ex93.sce
|
bfc82a22724c41ac136f1eb0c334e47cababe944
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 533
|
sce
|
Ex93.sce
|
//Ex:93
clc;
clear;
close;
b_c=36;//carrier BW in MHz
f_d=4000;//Dowm link freq in MHz
f_i=70;// first intermediate freq in MHz
f_smx=4200;//max uplink freq spectrum in MHz
f_smn=3700;//min uplink freq spectrum in MHz
f_dl2=1000;// in MHz
f_l2=f_d-f_dl2;// in MHz
f_l1=f_d-f_i-f_l2;// in MHz
printf("The max second oscillator frequency =%f GHz", f_l2/1000);
printf("\n The min second oscillator frequency =%f MHz", f_l1);
printf("\n The center frequency of BPF-1 =%f GHz", f_dl2/1000);
printf("\n The BW=%f MHz", b_c);
|
42be4d7840c50cfd122c4dc5e10d819230cc2d87
|
f5bb6b6e5afdd322c5cd22aa132ef6cd9671b83e
|
/GaussSeidel.sce
|
371e56016060f0e13969fed36607d47fdbfdc651
|
[] |
no_license
|
MEGCHICHEFarid/Calcul_Num-rique-TP2
|
b47cb66cc2c7b8ed7b5dad7992ee03dc8e0ca98f
|
121a72c376848daf12d0d81ec628572a2ea573cd
|
refs/heads/main
| 2023-01-30T23:20:31.667199
| 2020-12-18T23:56:13
| 2020-12-18T23:56:13
| 322,196,749
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 455
|
sce
|
GaussSeidel.sce
|
function [x, relres, it] = GaussSeidel(A,b,tol,maxit)
n = size(A,1);
x0 = zeros(n,1);
normb = norm(b);
resvec = zeros(maxit,1);
res = b-A*x0;
relres = norm(res)/normb;
DmE = 1 / tril(A);
quali = zeros(maxit,1);
it = 0;
while (relres > tol) & (it < maxit)
it = it + 1;
x = DmE\res;
x0 = x + x0;
res = b-A*x0;
relres = norm(res)/normb;
resvec(it) = relres;
end
endfunction
|
c1dbb79713bb8c16c2f72bef6774a2984659fadb
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1931/CH9/EX9.3/3.sce
|
f8f397489318750b885f4e17f42ab33465a9f8b3
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 558
|
sce
|
3.sce
|
clc
clear
//INPUT DATA
EF=11.63*1.6*10^-19//fermi energy of conducting electron in aluminium in J
t=7.3*10^-15//relaxation time for electron in sec
m=9.11*10^-31//mass of electon in Kg
//CALCULATION
Vf=(sqrt((2*EF)/m))/10^6//The fermi velocity fo conducting electron in aluminium in ms^-1*10^6
x=(t*Vf*10^6)/10^-9//mean free path for conducting electron of aluminium in nm
//OUTPUT
printf('The fermi velocity fo conducting electron in aluminium is %3.4f*10^6 ms^-1 \n The mean free path for conducting electron of aluminium is %3.4f nm',Vf,x)
|
30edb659b494292ea7f49a4d731351de27edf39f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1475/CH4/EX4.11/Example_4_11.sce
|
d664cc853878daf8d8d9d807c551ad21646d3d6c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 244
|
sce
|
Example_4_11.sce
|
//Example 4.11 A sample of 6500 screws is taken from a large consignment and 75 are found to be defective
clc;
clear;
n=600;
m=75;
P=m/n;
Q=1-P;
SE=sqrt((P*Q)/n);
disp("percent",(P-3*SE)*100,"to",(P+3*SE)*100,"Limits of P are from ");
|
65708dd984c35ed27973ea9f9b23ebecf8306def
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1499/CH3/EX3.26/q26.sce
|
1e83aa4b246719b46bbeb93a3686dd00dc9f891b
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 102
|
sce
|
q26.sce
|
s=%s;
syms k;
num=k*(s+0.5);
den=(s^2)*(s+4.5);
t=syslin('c',num,den);
clf;
evans(t)
xgrid;
|
f0419efb110b2039ef1e682411b3c5a3deb9b526
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2132/CH11/EX11.3/Example11_3.sce
|
c87c3830bdf2137ccc81b736c0f07615c6803d5d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 590
|
sce
|
Example11_3.sce
|
//Example 11.3
clc;
clear;
close;
format('v',9);
//Given data :
l=2;//meter
d0=0;//meter
d1=0.3;//meter
d2=1.0;//meter
d3=1.2;//meter
d4=1.6;//meter
d5=2.0;//meter
d6=1.4;//meter
d7=1.0;//meter
d8=0.4;//meter
d9=0.3;//meter
d10=0.2;//meter
V0=0;//meter
V1=0.5;//meter
V2=0.7;//meter
V3=0.8;//meter
V4=1.0;//meter
V5=1.2;//meter
V6=0.9;//meter
V7=0.8;//meter
V8=0.6;//meter
V9=0.5;//meter
V10=0.3;//meter
Q=l/3*(d0*V0+4*d1*V1+2*d2*V2+4*d3*V3+2*d4*V4+4*d5*V5+2*d6*V6+4*d7*V7+2*d8*V8+4*d9*V9+2*d10*V10+d0*V0);//cum/sec
disp(Q,"Rate of discharge in cum/sec : ");
|
4968660bceb868f98766021158a7fa48f0b19b4a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2126/CH2/EX2.4/4.sce
|
37417072d263978003b1a832832e5f7a4ccaa284
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,363
|
sce
|
4.sce
|
clc
clear
//Input data
Po1=3.344 //Stagnation pressure in bar
To1=900 //Stagnation temperature in K
P2=1.05 //Exit pressure in bar
k=1.4 //Adiabatic Constant
R=287 //Specific gas constant in J/kg-K
Cp=1005 //Specific heat capacity at constant pressure in J/kg-K
//Calculation
p1=P2/Po1 //Pressure ratio
M2=1.40 //Exit mach number from gas tables @p1,k=1.4
t1=0.718 //Ratio of exit temperature to Stagnation temperature from isentropic gas tables @M2,k=1.4
T2=To1*t1 //exit temperature in K
C2=sqrt(k*R*T2)*M2 //Exit velocity in m/s
d2=(P2*10^5)/(R*T2) //Density at exit in kg/m^3
a1=1.115 //Ratio of exit area to critical area from isentropic gas tables @M2
M_2=0.6733 //Exit mach number when it acts as diffuser
t2=0.91633 //Ratio of exit temperature to Stagnation temperature from isentropic gas tables @M2
T_2=t2*To1 //exit temperature in K
C_2=sqrt(k*R*T_2)*M_2 //Exit velocity in m/s
p2=0.738 //Ratio of exit pressure to Stagnation pressure from isentropic gas tables @M2
P_2=Po1*p2 //exit pressure in bar
d_2=(P_2*10^5)/(R*T_2) //Density at exit in kg/m^3
//Output
printf('(A)At exit:\n Temperaure is %3i K\n Velocity is %3.2f m/s\n Density is %3.3f kg/m^3\n (B)At diffuser:\n Temperaure is %3.3f K\n Velocity is %3.3f m/s\n Density is %3.4f kg/m^3\n Pressure is %3.4f bar\n',T2,C2,d2,T_2,C_2,d_2,P_2)
|
8a6e368be522355d509f57352819785b63f6ee5f
|
d0bfac87f2b3ffda5c8ccce7d4bee07131503a5f
|
/Typewriter.Demo/Scripts/Models/_models.tst
|
56e1332db3f92af49ad9af702e4748cc5279c1ed
|
[] |
no_license
|
barestan/TypewriterCli
|
da9e8e99098b3e43dd8bc77cf8ce666d96313f6d
|
2731b19e47ca11b4ef51cbd099ec8ddb68c60397
|
refs/heads/master
| 2022-06-14T21:31:21.588291
| 2020-12-12T07:47:46
| 2020-12-12T07:47:46
| 152,133,955
| 23
| 8
| null | 2022-05-31T08:45:09
| 2018-10-08T19:21:56
|
C#
|
UTF-8
|
Scilab
| false
| false
| 107
|
tst
|
_models.tst
|
module App { $Classes(*Model)[
export class $Name { $Properties[
public $name: $Type;]
}]
}
|
f1dea908278f57ccd1e9b84dd2d8c7ff3959f127
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2825/CH19/EX19.4/Ex19_4.sce
|
6026653cee84c46c5b549f83bf5773c36717ba83
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 158
|
sce
|
Ex19_4.sce
|
//Ex19_4 Pg-958
clc
a=1
b=1
c=0
d=1
dec=a*2^(-1)+b*2^(-2)+c*2^(-3)+d*2^(-4) //decimal output
disp("The decimal equivqlent of 0.1101 is")
disp(dec)
|
d482195904188bc0e98fe2c05729b25aa16c6258
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/14/CH12/EX12.2/example_12_2.sce
|
372d1eb7203767c24e312291c65c5c384e6ab33f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,980
|
sce
|
example_12_2.sce
|
//Chapter 12
//Page 311
//Example 12.2
//linetolinefault
clear;clc;
//Given
P = 20e6;
V = 13.8e3;
P_b = 20e6;
V_b = 13.8e3;
Z1 = %i * 0.25;
Z2 = %i * 0.35;
Z0 = %i * 0.10;
a = 1 * (cos(120 * %pi / 180) + %i * sin(120 * %pi / 180));
//Calculations
Ea = V / V_b;
Ia1 = Ea / (Z1 + Z2);
Ia2 = - Ia1;Ia0 = 0;
Ia = Ia1 + Ia2 + Ia0;
Ib = a^2 * Ia1 + a*Ia2 + Ia0;
Ic = -Ib;
I_b = P / (sqrt(3) * V);
printf("\n Base Current = %f A",I_b)
Ia_1 = Ia * I_b;
Ib_1 = Ib * I_b;
Ic_1 = Ic * I_b;
printf("\n Subtransient current in line a = %.0f A",Ia_1)
printf("\n Subtransient current in line b = %.2f /_%.2f A",abs(Ib_1),atan(imag(Ib_1),real(Ib_1))*180 / %pi)
printf("\n Subtransient current in line c = %.2f /_%.2f A \n\n",abs(Ic_1),atan(imag(Ic_1),real(Ic_1))*180 / %pi)
////Symmetrical Components of voltage from point a to ground
Va1 = Ea - Ia1 * Z1;
Va2 = Va1;
Va0 = 0;
disp('Symmetrical Components of voltage from point a to ground')
printf("Va1 = %.2f per unit",Va1)
printf("\n Va2 = %.2f per unit",Va2)
printf("\n Va0 = %.2f per unit \n\n",Va0)
//Line to ground voltages
Va = Va0 + Va1 + Va2;
Vb = Va0 + Va1 * a^2 + Va2 * a;
Vc = Vb;
disp('Line to ground voltages')
printf("Va = %.2f /_%.2f per unit",abs(Va),atan(imag(Va),real(Va))*180/%pi)
printf("\n Vb = Vc = %.2f per unit \n\n",Vb)
//Line to line voltages in per-unit are
Vab = Va - Vb;
Vbc = Vb - Vc;
Vca = Vc - Va;
disp('Line to line voltages in per-unit are')
printf("Vab = %.2f /_%.2f per unit",abs(Vab),atan(imag(Vab),real(Vab))*180/%pi)
printf("\n Vbc = %.2f per unit",Vbc)
printf("\n Vca = %.2f /_%.2f per unit \n\n",abs(Vca),atan(imag(Vca),real(Vca))*180/%pi)
//Line to line voltages in volts
Vab_1 = Vab * V / sqrt(3);
Vbc_1 = Vbc * V / sqrt(3);
Vca_1 = Vca * V / sqrt(3);
disp('Line to line voltages in volts')
printf("Vab = %.2f /_%.2f kV",abs(Vab_1)/1e3,atan(imag(Vab_1),real(Vab_1))*180/%pi)
printf("\n Vbc = %.2f kV",Vbc_1)
printf("\n Vca = %.2f /_%.2f kV \n\n",abs(Vca_1)/1e3,atan(imag(Vca_1),real(Vca_1))*180/%pi)
|
404ae2db9a8a8db014b54c2df145dc0175ee113d
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/32/CH3/EX3.01/3_01.sce
|
c32e266fd513ef62fe5fee5ea956384f8f36e669
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 494
|
sce
|
3_01.sce
|
//pathname=get_absolute_file_path('3.01.sce')
//filename=pathname+filesep()+'3.01-data.sci'
//exec(filename)
//Pressure in the gas cylinder(in kPa):
p=689
//Final volume(in m^3):
v2=0.045
//Initial volume(in m^3):
v1=0.04
//Work done by the paddle(in kJ):
Pw=-4.88
//Work done by the system on the piston(in kJ):
w=p*(v2-v1)
//Net Work of the system(in kJ):
wn=w+Pw
printf("\nRESULTS\n")
printf("\nWork done on the piston=%f kJ",w)
printf("\nWork done on the system=%f kJ",-wn)
|
0f634368b0ab806f67c078a402788d6f2c450224
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/551/CH9/EX9.11/11.sce
|
4e7fac62dcfbf4be6e4a6ba9f064188e01c4c6a5
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,019
|
sce
|
11.sce
|
clc
Cv_O2=21.07; //kJ/mole K
Cv_CO=20.86; //kJ/mole K
p_O2=8*10^5; //Pa
p_CO=1*10^5; //Pa
V_O2=1.8; //m^3
V_CO=3.6; //m^3
T_O2=323; //K
T_CO=293; //K
R0=8314;
n_O2=p_O2*V_O2/R0/T_O2;
n_CO=p_CO*V_CO/R0/T_CO;
n=(n_O2+n_CO);
V=(V_O2+V_CO);
disp("(i) Final temperature (T) and pressure (p) of the mixture")
//Before mixing
U1=n_O2*Cv_O2*T_O2 + n_CO*Cv_CO*T_CO;
//After mixing
//U2=T*(n_O2*Cv_O2 + n_CO*Cv_CO);
//U1=U2
T=U1/(n_O2*Cv_O2 + n_CO*Cv_CO);
t=T-273;
disp("Final temperature =")
disp(t)
disp("°C")
p=n*R0*T/V/10^5;
disp("Final pressure =")
disp(p)
disp("bar")
disp("(ii) Change of entropy")
//For oxygen
dS_O1A=n_O2*R0*log(V/V_O2); //isothermal process
dS_O2A=n_O2*Cv_O2*log(T_O2/T); //constant volume process
dS_O12=dS_O1A - dS_O2A; // Change of entropy of O2
//For CO
dS_CO12=n_CO*R0*log(V/V_CO) + n_CO*Cv_CO*log(T/T_CO); //Change of entropy of CO
dS=(dS_O12 + dS_CO12)/10^3;
disp("Change of entropy of system =")
disp(dS)
disp("kJ/K")
|
b54514985f207a99828911ffbfe9f935c5318de5
|
777ac7fa75f240739af167655f7fab95cba80ef6
|
/docs/Basics.New/All_in_One.tst
|
2c3a7613ad7011e6197d21c4fb5d64a7cc05450c
|
[] |
no_license
|
Karabur/TML-project
|
8d498d8133f4b1ea8e8c3fe6f6f47f7ab5de4b5c
|
0bfe006b0e66628427b769bc1be903875e77d5b7
|
refs/heads/master
| 2021-01-02T09:20:39.055827
| 2013-12-28T22:02:15
| 2013-12-28T22:02:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 980
|
tst
|
All_in_One.tst
|
Title:
TestName: < Type in smth>;
Difficulty: < Type in >;
FullTime: < Type in a number of seconds for the test >;
Questions: < Type in a number of the question in the test>;
EndTitle.
StartTest:
Question: 1;
Weight: 1.0;
BeginText:
EndText;
Choice: AtX: 8; AtY: 8; Width: 500; Height: 450;
1: endcase;
2: endcase;
3: endcase;
4: endcase;
5: endcase;
Right: 1; Ask;
Question: 2;
Weight: 1.0;
BeginText:
EndText;
MultiChoice: AtX: 8; AtY: 8; Width: 500; Height: 450;
1: endcase;
2: endcase;
3: endcase;
4: endcase;
5: endcase;
Right: 1,3; Ask;
Question: 1;
Weight: 1;
BeginText:
EndText;
Image: AtX: 8; AtY: 8; Width: 500; Height: 180; path : image.bmp; EndImage;
MultiChoice: AtX: 510; AtY: 8; Width: 500; Height: 450;
1: endcase;
2: endcase;
3: endcase;
4: endcase;
5: endcase;
Right: 1,3; Ask;
Question: 1;
Weight: 1;
BeginText:
EndText;
Edit: AtX: 8; AtY: 8; Width: 100; Height: 20;
1: endcase;
2: endcase;
3: endcase;
EndEdit; Ask;
EndTest.
|
130caef0f27fb908109b148933d160c58c8e6259
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/998/CH29/EX29.41/Ex41.sce
|
f2978c2345a4f02784dc77a9f33eb7135e001f2f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 207
|
sce
|
Ex41.sce
|
//Ex:41
clc;
clear;
close;
k=-228.6;// in db
t_s=10*log(150)/log(10);// in dbK
b_n=51.1;// in dbHz
n_h=k+t_s+b_n;//the noise power in the hub station receiver in dbw
printf("noise power=%f dbW",n_h);
|
499b38f410e110cae5931928b64b5305bfb66671
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.4.1/macros/sci2for/ins2for.sci
|
3b721f55b63562596dc1c473eb401e967f77d7fb
|
[
"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
| 424
|
sci
|
ins2for.sci
|
function [txt,vnms,vtps,nwrk]=ins2for(lst,ilst,vnms,vtps,nwrk)
// traduit un ensemble d'instructions debutant a l'adresse ilst de la
// liste courante lst
//!
// Copyright INRIA
nlst=size(lst)
txt=[]
while ilst<=nlst then
if type(lst(ilst))==15 then
[t1,vnms,vtps,nwrk]=cla2for(lst(ilst),vnms,vtps,nwrk)
ilst=ilst+1
else
[t1,ilst,vnms,vtps,nwrk]=cod2for(lst,ilst,vnms,vtps,nwrk)
end
txt=[txt;t1]
end
|
e041f10d121b9b7a77be6fb2b2dd57b331b6f82a
|
abac61d8c2d8d88bc272a883215a7bf0b32a58ee
|
/amplitudemodulation.sci
|
95a9fb054a235d39b8794e3307180bbe2365d3e4
|
[] |
no_license
|
praveen-739/sci_lab-implemention
|
9f095ff1202df36a98f51acdc2f98a1db7634922
|
997ec61631e701a9782424bbccff7a2594bfa3fc
|
refs/heads/master
| 2020-03-10T10:23:09.515658
| 2018-04-13T09:38:14
| 2018-04-13T09:38:14
| 129,331,740
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 386
|
sci
|
amplitudemodulation.sci
|
function [x,vm,vc]=amp_mod(em,ec,fm,fc,fs)
t=0:1/fs:1;
vm=em*sin(2*%pi*fm*t);
vc=ec*sin(2*%pi*fc*t);
x=(ec+em*sin(2*%pi*fm*t).*sin(2*%pi*fc*t));
subplot(3,1,1);
plot(vm);
title('modulated signal')
subplot(3,1,2);
plot(vc);
title('carrier signal')
subplot(3,1,3)
plot(x);
title('amplitude modulated signal')
endfunction
|
d4eb69a75e2e501293b76015b34afc78501e6648
|
9ce4292954000fd66bcdbd0797a280c306308d08
|
/mooc/nand2tetris/projects/05/ComputerMax-external.tst
|
52b6befef6c51b825a6dec5b85b4e8cc87a20439
|
[
"MIT"
] |
permissive
|
JiniousChoi/encyclopedia-in-code
|
0c786f2405bfc1d33291715d9574cae625ae45be
|
77bc551a03a2a3e3808e50016ece14adb5cfbd96
|
refs/heads/master
| 2021-06-27T07:50:10.789732
| 2020-05-29T12:50:46
| 2020-05-29T12:50:46
| 137,426,553
| 2
| 0
|
MIT
| 2020-10-13T08:56:12
| 2018-06-15T01:29:31
|
Python
|
UTF-8
|
Scilab
| false
| false
| 952
|
tst
|
ComputerMax-external.tst
|
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/05/ComputerMax-external.tst
load Computer.hdl,
output-file ComputerMax-external.out,
compare-to ComputerMax-external.cmp,
output-list time%S1.4.1 reset%B2.1.2 RAM16K[0]%D1.7.1 RAM16K[1]%D1.7.1 RAM16K[2]%D1.7.1;
// Load a program written in the Hack machine language.
// The program computes the maximum of RAM[0] and RAM[1]
// and writes the result in RAM[2].
ROM32K load Max.hack,
// first run: compute max(3,5)
set RAM16K[0] 3,
set RAM16K[1] 5,
output;
repeat 14 {
tick, tock, output;
}
// reset the PC
set reset 1,
tick, tock, output;
// second run: compute max(23456,12345)
set reset 0,
set RAM16K[0] 23456,
set RAM16K[1] 12345,
output;
// The run on these inputs needs less cycles (different branching)
repeat 10 {
tick, tock, output;
}
|
21662da04e693acdde37213ed80475444df9d665
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.4/examples/link-examples/ext11c.sce
|
a3e9b5e08142b4598eb41b8c7f30597819176429
|
[
"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
| 263
|
sce
|
ext11c.sce
|
//Copyright INRIA
//Passing a parameter to argument funtion of ode
files=G_make(['/tmp/ext11c.o'],'ext11c.dll');
link(files,'ext11c','C');
param=[0.04,10000,3d+7];
y=ode([1;0;0],0,[0.4,4],'ext11c')
//param must be defined as a scilab variable upon calling ode
|
eaecd3dc86b0c9dac7f54b9a0de99f4d77d2619e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3773/CH17/EX17.5/Ex17_5.sce
|
3ccd413f7e9d40e41cee25b9812c125779a0d3fd
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 855
|
sce
|
Ex17_5.sce
|
//Chapter 17: Antenna Temperature, Remote Sensing and Radar Cross Section
//Example 17-3.1
clc;
//Variable Initialization
k = 1.38e-23 //Boltzmann's constant (J/K)
trans_pow = 5 //Transponder power (W)
r = 36000e3 //Distance (m)
wave_lt = 7.5e-2 //Wavelength (m)
ant_gain = 30 //Antenna gain (dB)
earth_ant = 38 //Earth station antenna gain (dB)
Tsys = 100 //Earth station receiver system temperature (K)
bw = 30e6 //Bandwidth (Hz)
//Calculations
s_n = wave_lt**2/(16*(%pi**2)*(r**2)*k*Tsys*bw)
s_n = 10*log10(s_n) //Signal to Noise ratio (dB)
trans_pow_db = 10*log10(trans_pow) //Transponder power (dB)
erp = ant_gain + trans_pow_db //Effective radiated power (dB)
s_n_downlink = erp + earth_ant + s_n //Signal to Noise ratio downlink(dB)
//Result
mprintf("The earth station S/N ratio is %.2f dB",s_n_downlink)
|
da806c9036d2631c06668f30d73cd15961e036c4
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/557/CH7/EX7.2/2.sce
|
d686957747a629a3f922ad4d9080b726a425d795
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 611
|
sce
|
2.sce
|
clc;funcprot(0); //Example 7.2
//Initializing the variables
x = 120*(2*%pi)/180; //Theta
r = 1;
v0 = 0.5;
q = 2;
//Calculations
function[y] =shi(r,theta)
y = v0*r*sin(theta) +q*theta/(2*%pi);
endfunction
//--Approx differentiation at a point using central difference formula--//
h=0.0000001;
at_theta=x;
at_r = r;
Vr = (shi(r,at_theta+h)-shi(r,at_theta-h))/(r*2*h);
Vth = (shi(r+h,at_theta)-shi(r-h,at_theta))/(2*h);
V = sqrt(Vr^2+Vth^2);
alpha = atand(abs(Vth/Vr));
bet = x*180/(2*%pi)-alpha;
disp(bet, "Beta (Degree):",alpha,"Alpha (Degree) :", V, "Fluid Velocity(m/s) :");
|
c590a383c323716035441702419a5790f029d73a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/497/CH14/EX14.1/Chap14_Ex1.sce
|
8417234c0e32b5fb044776e896ac320ea74cd1ed
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,633
|
sce
|
Chap14_Ex1.sce
|
//Kunii D., Levenspiel O., 1991. Fluidization Engineering(II Edition). Butterworth-Heinemann, MA, pp 491
//Chapter-14, Example 1, Page 343
//Title: Flow with Elutriation
//==========================================================================================================
clear
clc
//INPUT
Fo=2.7;//Feed rate in kg/min
Fof=0.9;//Feed rate of fines in feed in kg/min
Foc=1.8;//Feed rate of coarse in feed in kg/min
W=17;//Bed weight in kg
kf=0.8;//Elutriation of fines in min^-1
kc=0.0125;//Elutriation of coarse in min^-1
//CALCULATION
F1guess=1;//Guess value of F1
function[fn]=solver_func(F1)//Function defined for solving the system
fn=F1-(Fof/(1+(W/F1)*kf))-(Foc/(1+(W/F1)*kc));//Eqn.(17)
endfunction
[F1]=fsolve(F1guess,solver_func,1E-6);//Inbuilt function fsolve to solve for F1
F1f=Fof/(1+(W/F1)*kf);//Flow rate of fines in entrained streams from Eqn.(16)
F1c=Foc/(1+(W/F1)*kc);//Flow rate of coarse in entrained streams from Eqn.(16)
F2f=Fof-F1f;//Flow rate of fines in overflow streams from Eqn.(9)
F2c=Foc-F1c;//Flow rate of coarse in overflow streams from Eqn.(9)
tbarf=1/((F1/W)+kf);//Mean residence time of fines from Eqn.(12)
tbarc=1/((F1/W)+kc);//Mean residence time of coarse from Eqn.(12)
//OUTPUT
mprintf('\nFlow rate in entrained stream:\n\tFines:%fkg/min\n\tCoarse:%fkg/min',F1f,F1c);
mprintf('\nFlow rate in overflow stream:\n\tFines:%fkg/min\n\tCoarse:%fkg/min',F2f,F2c);
mprintf('\nMean residence time:\n\tFines:%fmins\n\tCoarse:%fmins',tbarf,tbarc);
//====================================END OF PROGRAM ======================================================
|
3bdb2d96e8235171e741ef2f29b1c7bdfa4702ab
|
e58ee115056e7db70e0a5c071ab5146400e8e539
|
/funcoes_sc.sce
|
ac2fdaaa8e2b7ee3ba1b0d55e4c5f2d904bc40bf
|
[
"MIT"
] |
permissive
|
mofreitas/algoritmosSistemasControle
|
7236f5a4020f242a8db69e641c817ad99a8638ef
|
fb666ab6708554caa8259e1f505f35225d1046c8
|
refs/heads/master
| 2020-07-07T20:30:51.712572
| 2019-08-20T23:47:44
| 2019-08-20T23:47:44
| 203,469,282
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 5,032
|
sce
|
funcoes_sc.sce
|
i=%i;
//Observador de estados
function[] = observador(A, B, C, polos)
V = zeros(length(polos), length(polos));
for i=1:length(polos),
V(i,:) = C*(A^(i-1));
end
printf("Matriz V/Wo ------------------------\n");
disp(V);
if(rank(V) == size(V, 'r')) then
printf("\nSistema é observável\n");
else
halt("\nSistema NÃO é observável \n");
end
delta = poly(polos, 't');
printf("\nDelta ------------------------\n");
disp(delta);
qo = zeros(length(polos), length(polos));
for i=0:length(polos),
qo = qo+(A^i)*coeff(delta, i);
end
printf("\nMatriz qo(A)/qo(G)---------------------\n");
disp(qo);
V_1 = inv(V);
printf("\nMatriz V^(-1)/Wo^(-1)---------------------\n");
disp(V_1);
t = zeros(length(polos), 1);
t($, 1) = 1;
L = qo*V_1*t;
printf("\nL---------------------\n");
disp(L);
endfunction
//Realimentador de estados
function[] = realimentador(A, B, C, polos)
U = zeros(length(polos), length(polos));
for i=1:length(polos),
U(:,i) = (A^(i-1))*B;
end
printf("Matriz U/Wc ------------------------\n");
disp(U);
if(rank(U) == size(U, 'r')) then
printf("\nSistema é controlável\n");
else
halt("\nSistema NÃO é controlável \n");
end
delta = poly(polos, 't');
printf("\nDelta ------------------------\n");
disp(delta);
qc = zeros(length(polos), length(polos));
for i=0:length(polos),
qc = qc+(A^i)*coeff(delta, i);
end
printf("\nMatriz qc(A)/qc(G)---------------------\n");
disp(qc);
U_1 = inv(U);
printf("\nMatriz U^(-1)/Wc^(-1)---------------------\n");
disp(U_1);
t = zeros(1, length(polos));
t(1, $) = 1;
K = -t*U_1*qc;
printf("\nK---------------------\n");
disp(K);
endfunction
//Obtem matrix de observabilidade
function[V] = obs(A, C)
V = zeros(size(A, 'r'), size(A, 'c'));
for i=1:size(A, 'r'),
V(i, :) = C*A^(i-1);
end
endfunction
//Obtem matrix de controlabilidade
function[U] = cont(A, B)
U = zeros(size(A, 'r'), size(A, 'c'));
for i=1:size(A, 'r'),
U(:, i) = A^(i-1)*B;
end
endfunction
//Seguidor de referência discreto
function[] = sr_d(G, H, C, polos)
Ga = zeros(size(G, 'r')+1, size(G,'c')+size(H, 'c'));
Ga(1:$-1, 1:size(G,'c')) = G;
Ga(1:$-1, size(G, 'c')+1:$) = H;
Ha = zeros(size(Ga, 'r'), 1);
Ha($, 1) = 1;
printf("Matriz Ga -------------------------- \n");
disp(Ga);
printf("\nMatriz Ha -------------------------- \n");
disp(Ha);
Wc = zeros(length(Ha), length(Ha));
for i=1:length(Ha),
Wc(:, i) = (Ga^(i-1))*Ha;
end
printf("\nMatrix Wc ------------------------ \n");
disp(Wc);
if(rank(Wc) == length(Ha)) then
printf("\nRank cheio \n");
else
halt("\nNão tem Rank cheio \n");
end
printf("\nPolinomio delta -------------------- \n");
delta = poly(polos, 'G');
disp(delta);
qc = zeros(size(Ga, 'r'), size(Ga, 'c'));
coeficientes = coeff(delta);
for i=1:length(coeficientes),
qc = qc + (Ga^(i-1))*coeficientes(i);
end
printf("\nqc(Ga) ------------------------- \n");
disp(qc);
printf("\nWc inversa ---------------------- \n");
disp(inv(Wc));
m = zeros(1, size(qc, 'c'));
m($) = 1;
ka = -m*inv(Wc)*qc;
printf("\nKa ------------------ \n");
disp(ka);
t1 = [G-eye(size(G, 'r'), size(G, 'r')) H; C*G C*H];
t2 = zeros(1, length(ka));
t2(1, $) = 1;
printf("\nTa ------------------ \n");
disp(t1);
k = (ka+t2)*inv(t1);
printf("\nK ------------------ \n");
disp(k);
endfunction
//Seguidor de referencia contínuo
function[] = sr_c(a, b, c, polos)
Aa = zeros(size(c, 'r')+size(a, 'r'), size(c,'c')+1);
Aa(1, 2:$) = c;
Aa(2:$, 2:$) = a;
Ba = [0; b]
printf("Matriz Aa -------------------------- \n");
disp(Aa);
printf("\nMatriz Ba -------------------------- \n");
disp(Ba);
U = zeros(length(Ba), length(Ba));
for i=1:length(Ba),
U(:, i) = (Aa^(i-1))*Ba;
end
printf("\nMatrix U ------------------------ \n");
disp(U);
if(rank(U) == length(Ba)) then
printf("\nRank cheio \n");
else
halt("\nNão tem Rank cheio \n");
end
printf("\nPolinomio delta -------------------- \n");
delta = poly(polos, 'A');
disp(delta);
qc = zeros(size(Aa, 'r'), size(Aa, 'c'));
for i=0:size(Aa, 'r'),
qc = qc + (Aa^i)*coeff(delta, i);
end
printf("\nqc(Aa) ------------------------- \n");
disp(qc);
printf("\nU inversa ---------------------- \n");
disp(inv(U));
m = zeros(1, size(qc, 'c'));
m($) = 1;
ka = -m*inv(U)*qc;
printf("\nKa ------------------ \n");
disp(ka);
endfunction
|
7a907f5221912b19d97fab0d6b6e1884cb8d2c7b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1217/CH1/EX1.7/Exa1_7.sce
|
b579f326f098e2aaf992fc9f6ced375e759b66a1
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,031
|
sce
|
Exa1_7.sce
|
//Exa 1.7
clc;
clear;
close;
//given data
Ri=600;//in kohm
Vopp=5;//in volts
VEE=15;//in volts
VT=25;//in mVolts
VD=0.7;//in Volts
BETAac=100;//unitless
BETAdc=100;//unitless
VBE=0.7;//in volts
BETAact=BETAac*BETAdc;//unitless
//formula : Ri=2*BETAact*(2*re1)
re1=Ri/(4*BETAact);//in ohm
//formula : re1=VT/IE1
IE1=(VT*10^(-3))/re1;//in mA
IE3=2*IE1;//in mA
RE=VD/(IE3*10^(-3));//in ohm
R2=(VEE-2*VD)/IE3;//in kohm
disp("Now terhe voltage drop across Rc determines the peak to peak output voltage swing.")
disp("We have given Vopp=5volts, sinve the output is balance i.e. differential the voltage drop across each collector resistor will become2.5Vpp or 1.25Volts.")
disp("In other words RcIc=1.25Volts. We have Ic=IE1=1.67mA")
IC=IE1;//in mA
RC=1.25/(IC*10^(-3));//in ohm
disp("Thus the Design components values are :")
disp(RC,"Value of Rc in ohm is : ");
disp(RE,"Value of RE in ohm is : ");
disp(R2,"Value of R2 in kohm is : ");
//Answer in the book is not as much accurate as calculated by Scilab
|
488daedde0b83172a9b6d7fc350b2f4493af584c
|
f95a4301aef1a5e8894c410a4841c1bd95c7b14c
|
/variable/ivpsolver.sce
|
35149111f9b709ab8e605fbe0ebc12aa26601636
|
[] |
no_license
|
e-scheiber/scilab-ivpsolvers
|
ee827f13a23d483be1e0863551a3fd314b94ddfc
|
0db0a69d57c1f958880d391f268648258f9f984b
|
refs/heads/master
| 2021-01-15T10:42:41.821051
| 2017-08-07T16:26:26
| 2017-08-07T16:26:26
| 99,597,309
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 4,942
|
sce
|
ivpsolver.sce
|
function [u,x]=ivpsolver()
// Dispatcher function
// Initializes the data
[deri,x0,y0,h,n]=datas()
// Calls the IVP solver
[u,x,Nf]=picard(deri,x0,y0,n,h)
printf('Number of calling f : %d\n',Nf)
// Computes the real solutions
s=zeros(n+1,length(y0))
for i=1:n+1 do
s(i,:)=sol(x(i))'
end
// Prints the results
//disp([x,u])
err=norm(u-s,'inf')
printf('Maximum error : %g',err)
endfunction
function [deri,x0,y0,h,n]=datas()
// IVP defined by the user
// Example 1
// dy/dx=deri(x,y)
//deff('dy=deri(x,y)','dy=y.*(4*(x+2).^3-y)./((x+2).^4-1)')
// Initial value data
//x0=0
//y0=15
// The number of intervals
//n=5
// The step between the equidistant nodes
//h=1/n
// Example 2
// dy/dx=deri(x,y)
//deff('dy=deri(x,y)',['r=sqrt(y(1).^2+y(3).^2)','dy(1)=y(2)','dy(2)=-y(1)./r.^3','dy(3)=y(4)','dy(4)=-y(3)./r.^3'])
// Initial value data
//x0=0
//y0=[1,0,0,1]
// The number of intervals
//n=40
// The step between the equidistant nodes
//h=6*%pi/n
// Example 3
// dy/dx=deri(x,y)
deff('dy=deri(x,y)',['r=sqrt(y(1).^2+y(3).^2)','dy(1)=y(2)','dy(2)=-y(1)./r.^3','dy(3)=y(4)','dy(4)=-y(3)./r.^3'])
// Initial value data
x0=0
y0=[0.4,0,0,2]
// The number of intervals
n=20
// The step between the equidistant nodes
h=2*%pi/n
// Example 4
// dy/dx=deri(x,y)
//deff('dy=deri(x,y)',['dy(1)=998*y(1)+1998*y(2)','dy(2)=-999*y(1)-1999*y(2)'])
// Initial value data
//x0=0
//y0=[1,0]
// The number of intervals
//n=500
// The step between the equidistant nodes
//h=1/n
// Example 5
// dy/dx=deri(x,y)
//deff('dy=deri(x,y)','dy=20*y')
// Initial value data
//x0=0
//y0=1
// The number of intervals
//n=1000
// The step between the equidistant nodes
//h=1/n
endfunction
function y=sol(x)
// For test purpose
// Example 1
//y=1+(x+2)+(x+2).^2+(x+2).^3
// Example 2
//y=[cos(x);-sin(x);sin(x);cos(x)]
// Example 3
deff('z=k(u)','z=x-u+0.6*sin(u)')
u=fsolve(x,k)
y=[cos(u)-0.6;-sin(u)./(1-0.6*cos(u));0.8*sin(u);0.8*cos(u)./(1-0.6*cos(u))]
// Example 4
//y=[2*exp(-x)-exp(-1000*x),-exp(-x)+exp(-1000*x)]
//Example 5
//y=exp(20*x)
endfunction
function [u,x,Nf]=picard(deri,x0,y0,n,h)
// IVP solver for
// dy/dt=deri(x,y(x))
// y(x0)=y0
// The approximations of the numerical solution are given
// in x0+i*h, for i in {0,1,...,n}
u=zeros(n+1,length(y0))
x=zeros(n+1,1)
Nf=0
x(1)=x0
u(1,:)=y0
for i=1:n do
x(i+1)=x0+i*h
// The function implements the Picard iterations
// with variable referrence points
[u(i+1,:),N]=interval(deri,x(i),u(i,:),h)
Nf=Nf+N
end
endfunction
function [v,Nf]=interval(deri,x,u,h)
// Computes the approximation of the solution in x+h
// The number of nodes of the mesh
m=5
v=u
// Tolerance
tol=1e-9
// Maximum allowed number of iterations
nmi=100
// A switch
sw=%t
// Iteration counter
m=1
// Initializations for m=1
Nf=1
f=deri(x+0.5*h,u)
xi_old=zeros(1,2)
xi_old(1)=1/sqrt(2)
xi_old(2)=-1/sqrt(2)
u_old=zeros(2,length(u))
u_old(1,:)=u+0.5*h*(1+xi_old(1))*f'
u_old(2,:)=u+0.5*h*(1-xi_old(2))*f'
v=u+h*f'
// Iteration
while sw do
m=m+1
// Roots of the m+1 degree Tchebyshev polynomial
xi_new=zeros(1,m+1)
for i=1:m+1 do
xi_new(i)=cos(0.5*(2*i-1)*%pi/(m+1))
end
// Computes the array u_new
W=zeros(m+2,m)
l=-ones(1,m+1)
for j=1:m do
rts=zeros(1,m-1)
jj=0
for i=1:m do
if i~=j then
jj=jj+1
rts(jj)=xi_old(i)
end
end
W(1:m+1,j)=polyinteg(rts,l,xi_new)*(-1)^(j-1)*sin(0.5*(2*j-1)*%pi/m)
W(m+2,j)=polyinteg(rts,-1,1)*(-1)^(j-1)*sin(0.5*(2*j-1)*%pi/m)
end
W=h*2^(m-2)/m*W
F=zeros(m,length(u))
for j=1:m do
F(j,:)=deri(x+0.5*h*(xi_old(j)+1),u_old(j,:))
end
Nf=Nf+m
WF=W*F
for j=1:m+2 do
WF(j,:)=WF(j,:)+u
end
u_new=WF(1:m+1,:)
w=WF(m+2,:)
// Stopping rule
nrm=abs(w-v)
v=w
u_old=u_new
xi_old=xi_new
if (nrm<tol) | (m>nmi) then
sw=%f
end
end
// Notification of non-convergence
if nrm>= tol then
printf('Non-convergence for %g \n',x)
end
endfunction
function integ=polyinteg(proots,left,right)
p=poly(proots,'X','roots')
c=coeff(p)
m=length(c)
integ=0
for i=1:m do
integ=integ+c(i)*(right.^i-left.^i)/i
end
endfunction
|
f9f20256aecd09ce0981768c24966ecf878b7825
|
717ddeb7e700373742c617a95e25a2376565112c
|
/278/CH4/EX4.13/ex_4_13.sce
|
5fccf8919085318acc10c1186935f17be6a9eab5
|
[] |
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
| 506
|
sce
|
ex_4_13.sce
|
//find the internal diameter of the tyre and least temp upto which type must be heated
clc
//solution
//given
D=1200//mm//diameter of wheel
f=100//N/mm^2//stress
E=200*10^3//N/mm^2//young's modulus
a=6.5*10^-6//per degree celcius
//we know stress/strain=E
//100/x=E
x=100/E//
//x=(D-d)/d
//x=D/d-1
d=D/(x+1)//mm
//let t be least temp to which tyre must be heated
//pi*D=Pi*d(!+at)
t=(D-d)/(d*a)
printf("the internal diameter is, %f mm\n",d)
printf("the least temp is,%f degree celcius",t)
|
a2b0f8312dc89c6b072165d15f71466fed7aff86
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/browsable_source/2.0/Unix/scilab-2.0/macros/metanet/l2g.sci
|
c6dc3e207149f8247ecaaf59fdf8fd4ea4bbb4b5
|
[
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] |
permissive
|
clg55/Scilab-Workbench
|
4ebc01d2daea5026ad07fbfc53e16d4b29179502
|
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
|
refs/heads/master
| 2023-05-31T04:06:22.931111
| 2022-09-13T14:41:51
| 2022-09-13T14:41:51
| 258,270,193
| 0
| 1
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 368
|
sci
|
l2g.sci
|
function g1=l2g(a1,p1,s1,dir)
[a2,p2,s2]=compl2(a1,p1,s1,dir)
[he,ta]=compht(a1,p1,s1,dir)
m=prod(size(s1)), n=prod(size(p1))-1
if dir==1 then ma=m, mm=2*m
else ma=m/2,mm=m, end
g1=list(' ',dir,m,n,ma,mm,a1,p1,s1,a2,p2,s2,he,ta,...
n,1:n,ma,1:ma,...
0*(1:n),0*(1:n),0*(1:n),0*(1:n),0*(1:n),0*(1:ma),...
0*(1:ma),0*(1:ma),0*(1:ma),0*(1:ma),0*(1:ma),0*(1:ma),0*(1:ma))
|
f2c51ffb0e99b883d27c4f80327f1e9792438d9f
|
463377b6374a24bbe111707a34e24949f3bd2543
|
/fitch.sci
|
b72b4729c5b2958e1a1a3a7c142d04837da6f354
|
[] |
no_license
|
solothinker/Scilab-Identification
|
3a46c0f3b8b1a7430f8a799be5e1310e2723b535
|
cdad0d7292c31c29d377b640f6966a7c3bb81bb9
|
refs/heads/master
| 2022-01-05T12:39:07.410803
| 2019-06-15T02:18:13
| 2019-06-15T02:18:13
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,315
|
sci
|
fitch.sci
|
function varargout = fitch(varargin)
[lhs , rhs] = argn()
if ( rhs <> 1 ) then
errmsg = msprintf(gettext("%s: Wrong number of input arguments"), "fitch");
error(errmsg)
elseif typeof(varargin(1)) <> "idpoly" then
error(msprintf(gettext("%s:Input model must be ""idpoly"" type.\n"),"fitch"))
end
model = varargin(1)
MSE = model.Report.Fit.MSE
FPE = model.Report.Fit.FPE
FitPer = model.Report.Fit.FitPer
AIC = model.Report.Fit.AIC
AICc = model.Report.Fit.AICc
nAIC = model.Report.Fit.nAIC
BIC = model.Report.Fit.BIC
t = tlist(['fitch','MSE','FPE','FitPer','AIC','AICc','nAIC','BIC'],MSE,FPE,FitPer,AIC,AICc,nAIC,BIC)
varargout(1) = t
endfunction
function %fitch_p(mytlist)
f = fieldnames(mytlist)
maxLength = []
for ii = 1:size(f,'*')
maxLength = [maxLength length(f(ii))]
end
maxLength = max(maxLength)
for ii = 1:size(f,'*')
blanckSpace = ' '
for jj = 1:maxLength-length(f(ii))
blanckSpace = blanckSpace + ' '
end
mprintf('\t%s%s : ',blanckSpace,f(ii))
objectData = mytlist(f(ii))
if ceil(objectData)-objectData then
mprintf("%.4f",objectData)
else
mprintf("%d",objectData)
end
mprintf("\n")
end
endfunction
|
4eaab3f9420e35b338fa2d621b0d3c61f26a3844
|
2eac84edf941c64588fef76f10d02309aabcb2fb
|
/Library/Basic/Scilab/builder_x64.sce
|
3afa0717cd07ad60d9bac6a5e7b0d06b2ab30e05
|
[
"BSD-3-Clause"
] |
permissive
|
AlexisTM/X2C
|
fdd93bd33b931ea448ba516f5e3f9af6a5149a6a
|
31f39b598afe271a7fd46ef1ee9e06c410b1120c
|
refs/heads/master
| 2021-08-07T04:26:24.391617
| 2017-11-07T14:34:33
| 2017-11-07T14:34:33
| 109,844,123
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 3,142
|
sce
|
builder_x64.sce
|
// Copyright (c) 2014, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/
// All rights reserved.
//
// This file is licensed according to the BSD 3-clause license as follows:
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the "Linz Center of Mechatronics GmbH" and "LCM" nor
// the names of its contributors may be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL "Linz Center of Mechatronics GmbH" BE LIABLE FOR ANY
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// This file is part of X2C. http://www.mechatronic-simulation.org/
// $LastChangedRevision: 666 $
mprintf("Building Basic library for x64 system...");
funcprot(0);
msvc = findmsvccompiler();
bOK = configure_msvc();
if ~haveacompiler() then
mprintf("SKIPPED (no compiler found)\n");
[compileCompFDone] = return(%f)
end
X2C_ROOT = fullpath(fullfile(getenv("X2C_Root")));
X2C_LIB_PATH = get_absolute_file_path("builder_x64.sce');
X2C_LIB_PATH = dirname(X2C_LIB_PATH);
// delete "is-compiled" marker
mdelete("Library_is_compiled_for_x64.txt');
names = ["x2c_DoNothing_C"];
files = ["x2c_DoNothing_C.c"];
flag = "c";
loadername = "loader_x64.sce";
libname = "Basic_x64";
ldflags = SCI + "\bin\scicos.lib";
cflags = "-I" + SCI + "\modules\scicos_blocks\includes" + " -I" + SCI + "\modules\scicos\includes" + " -I" + X2C_ROOT + "\Controller\Common" + " -I" + X2C_LIB_PATH + "\Controller\src" + " -I" + X2C_LIB_PATH + "\Controller\inc";
ilib_for_link(names, files, [], flag, "", loadername, libname, ldflags, cflags);
// delete temporary files
if isdir("Debug") then
rmdir("Debug","s");
end
if isdir("Release") then
rmdir("Release","s");
end
mdelete("cleaner.sce")
mdelete("Makelib.mak")
// create "is-compiled" marker
currentTime=clock();
save("Library_is_compiled_for_x64.txt", "currentTime");
mprintf("DONE\n");
|
e1e0f36b7dcfef7361fe8cbc82729e92da3218eb
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.4/macros/fraclab/MFAG_net.sci
|
d6ff5f1d738335ad9d74b285bbb474c28cf60941
|
[
"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
| 3,581
|
sci
|
MFAG_net.sci
|
function [min_sp,min_lsp,nsp]=MFAG_net(n,m,lp_norm);
// This Software is ( Copyright INRIA . 1998 1 )
//
// INRIA holds all the ownership rights on the Software.
// The scientific community is asked to use the SOFTWARE
// in order to test and evaluate it.
//
// INRIA freely grants the right to use modify the Software,
// integrate it in another Software.
// Any use or reproduction of this Software to obtain profit or
// for commercial ends being subject to obtaining the prior express
// authorization of INRIA.
//
// INRIA authorizes any reproduction of this Software.
//
// - in limits defined in clauses 9 and 10 of the Berne
// agreement for the protection of literary and artistic works
// respectively specify in their paragraphs 2 and 3 authorizing
// only the reproduction and quoting of works on the condition
// that :
//
// - "this reproduction does not adversely affect the normal
// exploitation of the work or cause any unjustified prejudice
// to the legitimate interests of the author".
//
// - that the quotations given by way of illustration and/or
// tuition conform to the proper uses and that it mentions
// the source and name of the author if this name features
// in the source",
//
// - under the condition that this file is included with
// any reproduction.
//
// Any commercial use made without obtaining the prior express
// agreement of INRIA would therefore constitute a fraudulent
// imitation.
//
// The Software beeing currently developed, INRIA is assuming no
// liability, and should not be responsible, in any manner or any
// case, for any direct or indirect dammages sustained by the user.
//
// Any user of the software shall notify at INRIA any comments
// concerning the use of the Sofware (e-mail : FracLab@inria.fr)
//
// This file is part of FracLab, a Fractal Analysis Software
// uses scilab shortest path utilities to find the min of the sum of lp norm
// input: lp_norm is a [n-1,m*m] matrix of lp norm
// output: sp contains the shortest path
// lsp contains the length of the shortest path
// set n and m
[height,width]=size(lp_norm);
n=height+1;
m=sqrt(width);
// set head and tail nodes row vectors
head_nodes=zeros(1:(n-1)*m*m);
tail_nodes=zeros(1:(n-1)*m*m);
for i=1:n-1
for j=1:m
for k=1:m
head_nodes((i-1)*m*m+(j-1)*m+k)=(i-1)*m+j;
tail_nodes((i-1)*m*m+(j-1)*m+k)=i*m+k;
end;
end;
end;
g=make_graph('lp',1,n*m,head_nodes,tail_nodes);
// set node_x and node_y
g('node_x')=zeros(1:n*m);
g('node_y')=zeros(1:n*m);
for i=1:n
for j=1:m
g('node_x')((i-1)*m+j)=100*j;
g('node_y')((i-1)*m+j)=100*i;
end;
end;
show_graph(g);
// set lengths
for i=1:n-1
for j=1:m
for k=1:m
len((i-1)*m*m+(j-1)*m+k)=lp_norm(i,(j-1)*m+k);
end;
end;
end;
g('edge_length')=len';
// find shortest paths and shortest path lengths
sp=zeros(m*m,n-1);
lsp=zeros(1:m*m);
for j=1:m
for k=1:m
[p,lp]=shortest_path(j,(n-1)*m+k,g,'length');
sp((j-1)*m+k,:)=p;
lsp((j-1)*m+k)=lp;
end;
end;
// find min of shortest path lengths
min_lsp=min(lsp);
min_sp=sp(min(find(lsp==min_lsp)),:)
// plot shortest path
g1=g;
g1('edge_name')=string(g1('edge_length'));
ma=prod(size(g1('head')));
edgecolor=ones(1:ma);
edgecolor(min_sp)=11*ones(min_sp);
g1('edge_color')=edgecolor;
edgefontsize=12*ones(1,ma);
edgefontsize(min_sp)=18*ones(min_sp);
g1('edge_font_size')=edgefontsize;
show_graph(g1);
// shortest path to nodes
nsp=path_2_nodes(min_sp,g);
// plot nodes
show_nodes(nsp);
// plot arcs
show_arcs(min_sp,'sup')
// return results
return;
|
00c0dddf83c7d847c9ccf7b20534b603b70efc31
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3137/CH18/EX18.17/Ex18_17.sce
|
005607caf77451511464ed9351017736bccbabbb
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 426
|
sce
|
Ex18_17.sce
|
//Initilization of variables
m1=5 //kg
m2=7 //kg
mp=5 //kg
r=0.6 //m
k=0.45 //m
vi=3 //m/s
vf=6 //m/s
g=9.8 //m/s^2
//Calculations
I=m1*k^2 //kg.m^2
wnet=(vf/r)-(vi/r) //rad/s
//Solving the system of linear equations
//Simplfying the equation we get
t=((I*wnet)+m1*(vf-vi)+m2*(vf-vi))*r/(r*(m2-m1)*g) //s
//Result
clc
printf('The time required is %f s',t)
//Decimal accuracy causes discrepancy in answers
|
35b1d7c2eb6aa25f7dc48d413c51e9c4c7ca4283
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1752/CH3/EX3.12/exa3_12.sce
|
5066e9893f7a61592b6d0a61fe04c09af7d652b8
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 479
|
sce
|
exa3_12.sce
|
//Exa 3.12
clc;
clear;
close;
//given data
k=30;// in W/mK
h=100;// in W/m^2K
T_infinite=300;// in degree C
d=2*10^-2;// in m
t=1*10^-3;// in m
err=1;// in % of applied temperature difference
// Formula m=sqrt(h*rho/(K*A)) and rho=%pi*d and A=%pi*d*t, putting value of rho and A
m=sqrt(h/(k*t));
// From (T_L-T_infinite)/(T_0-T_infinite)= 1/100 = 1/cosh(m*L)
L=acosh(100)/m;// in meter
L=L*10^3;// in mm
disp("Minimum length os pocket is : "+string(L)+" mm");
|
765b185ff0f7111aefef57b6df6107ba569c5ec8
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1670/CH7/EX7.11/7_11.sce
|
bd997839a11918f896eef6aa364358c778f319fe
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,086
|
sce
|
7_11.sce
|
//Example 7.11
//Newton's Divided Difference Interpolation
//Page no. 247
clc;close;clear;
x=[-1,1,2,3]
y=[-21,15,12,3];
y1=y;h=0.0000001
deff('yi=P(a,b,d,e)','yi=(b(d+1)-b(d))/(a(d+e)-a(d))') //function for finding polynomials
for i=1:3
for j=1:4-i
z(j,i)=P(x,y,j,i)
y(j)=z(j,i)
end
end
z(6,1)=0;
printf('x y f(x0,x1) f(x0,x1,x3) f(x0,x1,x2,x3)\n')
printf('---------------------------------------------------------\n')
for j=1:4
printf(' %i %i \t%i\t\t%i\t\t%i\n',x(1,j),y1(1,j),z(j,1),z(j,2),z(j,3))
end
x1=poly(0,'x');
p=1;f=y1(1);
for i=1:3
for j=1:i
p=p*(x1-x(j))
end
p=p*z(1,i)
f=f+p
p=1;
end
disp(f,"f(x) = ")
f1=y1(1)
x2=poly(h,'x');
for i=1:3
for j=1:i
p=p*(x2-x(j))
end
p=p*z(1,i)
f1=f1+p
p=1;
end
f1=(f1-f)/h
disp(f1,"f`(x) = ")
r=roots(f1)
disp(r,"Roots = ")
x1=r(2)
p=1;f=y1(1);
for i=1:3
for j=1:i
p=p*(x1-x(j))
end
p=p*z(1,i)
f=f+p
p=1;
end
disp(f,"Maximum Value = ")
|
b7660642ec9d04c6eba5419de2176bad02734d76
|
4a1949be12fbe9a81d9308381b34c611e65877ca
|
/tests/arbre/2.tst
|
ac0de6cc827a1feca5a54e131414be2d4a794ecf
|
[] |
no_license
|
ng88/trad
|
26439d8fe2284ece19d6fbfaa397d3f6f0d13e78
|
e4d3d4d56928539144d30c5c49e01e65c9b8729c
|
refs/heads/master
| 2020-12-05T07:31:25.854231
| 2008-02-29T10:15:34
| 2008-02-29T10:15:34
| 67,351,952
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 314
|
tst
|
2.tst
|
class TEST
public TEST(string a, integer b, integer c, integer d, integer e, real f)
{
}
end
class MaClasse
public MaClasse() {}
public void main()
{
VAR integer a;
VAR TEST t;
a := 1 + 1;
t := new TEST("arg1", 2, 3, 4, 5, 6+6);
}
end
|
4bd36068cc98eb25aeda22b7779c042d10e0dc0a
|
f542bc49c4d04b47d19c88e7c89d5db60922e34e
|
/PresentationFiles_Subjects/CONT/WR25MDG/ATWM1_Working_Memory_MEG_WR25MDG_Session2/ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run2.sce
|
d6a677682f7600657ca627a0a1008fd3e9921f8f
|
[] |
no_license
|
atwm1/Presentation
|
65c674180f731f050aad33beefffb9ba0caa6688
|
9732a004ca091b184b670c56c55f538ff6600c08
|
refs/heads/master
| 2020-04-15T14:04:41.900640
| 2020-02-14T16:10:11
| 2020-02-14T16:10:11
| 56,771,016
| 0
| 1
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 49,599
|
sce
|
ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run2.sce
|
# ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_run2";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monitor_sounds = false;
active_buttons = 2;
response_matching = simple_matching;
button_codes = 10, 20;
default_font_size = 28;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 300; width = 300; color = 0, 0, 0;} frame1;
box { height = 290; width = 290; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 290; width = 290; color = 128, 128, 128;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# Start of experiment (MEG only) - sync with CTF software
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
} expStart;
time = 0;
duration = 1000;
code = "ExpStart";
port_code = 80;
};
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 10000;
#mri_pulse = 1;
code = "BaselinePre";
port_code = 91;
};
TEMPLATE "ATWM1_Working_Memory_MEG.tem" {
trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
43 62 292 292 399 125 1892 2992 2442 fixation_cross gabor_086 gabor_128 gabor_058 gabor_102 gabor_086_alt gabor_128 gabor_058_alt gabor_102 "2_1_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2450_gabor_patch_orientation_086_128_058_102_target_position_2_4_retrieval_position_2" gabor_circ gabor_128_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_1_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_128_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2192 2992 2292 fixation_cross gabor_005 gabor_173 gabor_061 gabor_127 gabor_005_alt gabor_173 gabor_061 gabor_127_alt "2_2_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2300_gabor_patch_orientation_005_173_061_127_target_position_2_3_retrieval_position_2" gabor_circ gabor_038_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_2_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_038_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1742 2992 1892 fixation_cross gabor_087 gabor_157 gabor_123 gabor_006 gabor_087 gabor_157_alt gabor_123_alt gabor_006 "2_3_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_1900_gabor_patch_orientation_087_157_123_006_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_006_framed blank blank blank blank fixation_cross_target_position_1_4 "2_3_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_006_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1792 2992 2492 fixation_cross gabor_129 gabor_101 gabor_069 gabor_015 gabor_129 gabor_101 gabor_069_alt gabor_015_alt "2_4_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_1800_3000_2500_gabor_patch_orientation_129_101_069_015_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_015_framed blank blank blank blank fixation_cross_target_position_1_2 "2_4_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_015_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1742 2992 2242 fixation_cross gabor_165 gabor_098 gabor_140 gabor_031 gabor_165 gabor_098_alt gabor_140_alt gabor_031 "2_5_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2250_gabor_patch_orientation_165_098_140_031_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_031_framed blank blank blank blank fixation_cross_target_position_1_4 "2_5_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_031_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2042 2992 2442 fixation_cross gabor_068 gabor_007 gabor_175 gabor_030 gabor_068 gabor_007_alt gabor_175 gabor_030_alt "2_6_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2450_gabor_patch_orientation_068_007_175_030_target_position_1_3_retrieval_position_1" gabor_068_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_6_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_068_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 2242 fixation_cross gabor_137 gabor_154 gabor_120 gabor_076 gabor_137 gabor_154_alt gabor_120_alt gabor_076 "2_7_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2250_gabor_patch_orientation_137_154_120_076_target_position_1_4_retrieval_position_1" gabor_002_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_7_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_002_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2192 2992 2092 fixation_cross gabor_094 gabor_004 gabor_147 gabor_120 gabor_094_alt gabor_004 gabor_147_alt gabor_120 "2_8_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2100_gabor_patch_orientation_094_004_147_120_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_120_framed blank blank blank blank fixation_cross_target_position_2_4 "2_8_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_120_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 2142 fixation_cross gabor_108 gabor_152 gabor_176 gabor_133 gabor_108 gabor_152 gabor_176_alt gabor_133_alt "2_9_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2150_gabor_patch_orientation_108_152_176_133_target_position_1_2_retrieval_position_1" gabor_108_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_9_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_108_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 2392 fixation_cross gabor_179 gabor_010 gabor_094 gabor_144 gabor_179_alt gabor_010 gabor_094 gabor_144_alt "2_10_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2400_gabor_patch_orientation_179_010_094_144_target_position_2_3_retrieval_position_2" gabor_circ gabor_010_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_10_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_010_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 1892 fixation_cross gabor_004 gabor_070 gabor_049 gabor_033 gabor_004_alt gabor_070 gabor_049 gabor_033_alt "2_11_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_004_070_049_033_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_049_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_11_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_049_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1742 2992 1892 fixation_cross gabor_157 gabor_179 gabor_129 gabor_051 gabor_157 gabor_179_alt gabor_129_alt gabor_051 "2_12_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_1900_gabor_patch_orientation_157_179_129_051_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_051_framed blank blank blank blank fixation_cross_target_position_1_4 "2_12_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_051_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1892 2992 2592 fixation_cross gabor_079 gabor_011 gabor_059 gabor_095 gabor_079 gabor_011_alt gabor_059 gabor_095_alt "2_13_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_1900_3000_2600_gabor_patch_orientation_079_011_059_095_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_141_framed blank blank blank blank fixation_cross_target_position_1_3 "2_13_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_141_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 2292 fixation_cross gabor_068 gabor_095 gabor_129 gabor_005 gabor_068_alt gabor_095 gabor_129_alt gabor_005 "2_14_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2300_gabor_patch_orientation_068_095_129_005_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_005_framed blank blank blank blank fixation_cross_target_position_2_4 "2_14_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2042 2992 2042 fixation_cross gabor_063 gabor_121 gabor_146 gabor_096 gabor_063 gabor_121_alt gabor_146 gabor_096_alt "2_15_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_063_121_146_096_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_146_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_15_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_146_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1742 2992 2392 fixation_cross gabor_134 gabor_091 gabor_019 gabor_002 gabor_134_alt gabor_091 gabor_019 gabor_002_alt "2_16_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_1750_3000_2400_gabor_patch_orientation_134_091_019_002_target_position_2_3_retrieval_position_1" gabor_179_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_16_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_179_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2592 fixation_cross gabor_035 gabor_144 gabor_069 gabor_005 gabor_035_alt gabor_144_alt gabor_069 gabor_005 "2_17_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2600_gabor_patch_orientation_035_144_069_005_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_118_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_17_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_118_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2142 2992 2242 fixation_cross gabor_091 gabor_072 gabor_003 gabor_157 gabor_091_alt gabor_072 gabor_003 gabor_157_alt "2_18_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2250_gabor_patch_orientation_091_072_003_157_target_position_2_3_retrieval_position_2" gabor_circ gabor_122_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_18_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_122_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1742 2992 2192 fixation_cross gabor_043 gabor_004 gabor_178 gabor_119 gabor_043 gabor_004_alt gabor_178 gabor_119_alt "2_19_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_1750_3000_2200_gabor_patch_orientation_043_004_178_119_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_071_framed blank blank blank blank fixation_cross_target_position_1_3 "2_19_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_071_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2042 fixation_cross gabor_175 gabor_012 gabor_144 gabor_093 gabor_175 gabor_012 gabor_144_alt gabor_093_alt "2_20_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2050_gabor_patch_orientation_175_012_144_093_target_position_1_2_retrieval_position_2" gabor_circ gabor_062_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_20_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_062_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2042 2992 2042 fixation_cross gabor_093 gabor_050 gabor_137 gabor_029 gabor_093 gabor_050 gabor_137_alt gabor_029_alt "2_21_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_093_050_137_029_target_position_1_2_retrieval_position_2" gabor_circ gabor_004_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_21_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_004_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2042 2992 1992 fixation_cross gabor_092 gabor_004 gabor_033 gabor_155 gabor_092 gabor_004_alt gabor_033_alt gabor_155 "2_22_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2000_gabor_patch_orientation_092_004_033_155_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_155_framed blank blank blank blank fixation_cross_target_position_1_4 "2_22_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_155_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2242 2992 1942 fixation_cross gabor_115 gabor_144 gabor_058 gabor_163 gabor_115 gabor_144_alt gabor_058_alt gabor_163 "2_23_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_1950_gabor_patch_orientation_115_144_058_163_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_027_framed blank blank blank blank fixation_cross_target_position_1_4 "2_23_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_027_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2092 2992 2042 fixation_cross gabor_069 gabor_090 gabor_033 gabor_012 gabor_069_alt gabor_090 gabor_033_alt gabor_012 "2_24_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2050_gabor_patch_orientation_069_090_033_012_target_position_2_4_retrieval_position_2" gabor_circ gabor_090_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_24_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2342 fixation_cross gabor_119 gabor_135 gabor_092 gabor_179 gabor_119_alt gabor_135_alt gabor_092 gabor_179 "2_25_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_119_135_092_179_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_047_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_25_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_047_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 2242 2992 2542 fixation_cross gabor_086 gabor_109 gabor_142 gabor_166 gabor_086 gabor_109_alt gabor_142 gabor_166_alt "2_26_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_2250_3000_2550_gabor_patch_orientation_086_109_142_166_target_position_1_3_retrieval_position_2" gabor_circ gabor_060_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_26_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_060_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2242 2992 2592 fixation_cross gabor_139 gabor_032 gabor_115 gabor_053 gabor_139_alt gabor_032 gabor_115_alt gabor_053 "2_27_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2600_gabor_patch_orientation_139_032_115_053_target_position_2_4_retrieval_position_2" gabor_circ gabor_167_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_27_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_167_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1792 2992 2092 fixation_cross gabor_155 gabor_067 gabor_135 gabor_018 gabor_155 gabor_067_alt gabor_135_alt gabor_018 "2_28_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2100_gabor_patch_orientation_155_067_135_018_target_position_1_4_retrieval_position_1" gabor_155_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_28_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_155_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1942 2992 2142 fixation_cross gabor_020 gabor_057 gabor_142 gabor_080 gabor_020 gabor_057 gabor_142_alt gabor_080_alt "2_29_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_1950_3000_2150_gabor_patch_orientation_020_057_142_080_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_126_framed blank blank blank blank fixation_cross_target_position_1_2 "2_29_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_126_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2142 2992 2192 fixation_cross gabor_049 gabor_093 gabor_004 gabor_156 gabor_049_alt gabor_093_alt gabor_004 gabor_156 "2_30_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2200_gabor_patch_orientation_049_093_004_156_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_139_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_30_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_139_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2242 2992 2342 fixation_cross gabor_174 gabor_016 gabor_153 gabor_036 gabor_174_alt gabor_016_alt gabor_153 gabor_036 "2_31_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2350_gabor_patch_orientation_174_016_153_036_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_106_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_31_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_106_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2192 fixation_cross gabor_172 gabor_112 gabor_132 gabor_067 gabor_172_alt gabor_112 gabor_132_alt gabor_067 "2_32_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2200_gabor_patch_orientation_172_112_132_067_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_022_framed blank blank blank blank fixation_cross_target_position_2_4 "2_32_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_022_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2092 2992 2092 fixation_cross gabor_017 gabor_101 gabor_172 gabor_141 gabor_017 gabor_101_alt gabor_172 gabor_141_alt "2_33_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2100_gabor_patch_orientation_017_101_172_141_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_034_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_33_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_034_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2192 2992 2542 fixation_cross gabor_070 gabor_102 gabor_031 gabor_015 gabor_070_alt gabor_102 gabor_031 gabor_015_alt "2_34_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2550_gabor_patch_orientation_070_102_031_015_target_position_2_3_retrieval_position_2" gabor_circ gabor_102_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_34_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_102_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1942 2992 2092 fixation_cross gabor_178 gabor_045 gabor_066 gabor_135 gabor_178_alt gabor_045 gabor_066 gabor_135_alt "2_35_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_1950_3000_2100_gabor_patch_orientation_178_045_066_135_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_135_framed blank blank blank blank fixation_cross_target_position_2_3 "2_35_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_135_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1792 2992 1892 fixation_cross gabor_146 gabor_019 gabor_037 gabor_106 gabor_146_alt gabor_019 gabor_037_alt gabor_106 "2_36_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_1900_gabor_patch_orientation_146_019_037_106_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_061_framed blank blank blank blank fixation_cross_target_position_2_4 "2_36_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_061_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1792 2992 2242 fixation_cross gabor_061 gabor_177 gabor_110 gabor_129 gabor_061 gabor_177 gabor_110_alt gabor_129_alt "2_37_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2250_gabor_patch_orientation_061_177_110_129_target_position_1_2_retrieval_position_2" gabor_circ gabor_041_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_37_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2242 2992 1892 fixation_cross gabor_109 gabor_003 gabor_075 gabor_026 gabor_109_alt gabor_003 gabor_075_alt gabor_026 "2_38_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_1900_gabor_patch_orientation_109_003_075_026_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_026_framed blank blank blank blank fixation_cross_target_position_2_4 "2_38_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_026_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1892 2992 2442 fixation_cross gabor_174 gabor_131 gabor_049 gabor_111 gabor_174_alt gabor_131_alt gabor_049 gabor_111 "2_39_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2450_gabor_patch_orientation_174_131_049_111_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_003_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_39_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_003_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 2342 fixation_cross gabor_021 gabor_004 gabor_081 gabor_038 gabor_021_alt gabor_004 gabor_081 gabor_038_alt "2_40_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2350_gabor_patch_orientation_021_004_081_038_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_128_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_40_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_128_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1742 2992 2442 fixation_cross gabor_099 gabor_177 gabor_144 gabor_120 gabor_099_alt gabor_177 gabor_144 gabor_120_alt "2_41_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2450_gabor_patch_orientation_099_177_144_120_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_009_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_41_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_009_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2142 2992 2292 fixation_cross gabor_066 gabor_083 gabor_045 gabor_154 gabor_066 gabor_083_alt gabor_045_alt gabor_154 "2_42_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2300_gabor_patch_orientation_066_083_045_154_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_105_framed blank blank blank blank fixation_cross_target_position_1_4 "2_42_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_105_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1892 2992 2492 fixation_cross gabor_174 gabor_061 gabor_036 gabor_020 gabor_174_alt gabor_061_alt gabor_036 gabor_020 "2_43_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_1900_3000_2500_gabor_patch_orientation_174_061_036_020_target_position_3_4_retrieval_position_1" gabor_174_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_43_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_174_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2092 2992 2542 fixation_cross gabor_131 gabor_100 gabor_057 gabor_012 gabor_131_alt gabor_100 gabor_057_alt gabor_012 "2_44_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2550_gabor_patch_orientation_131_100_057_012_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_012_framed blank blank blank blank fixation_cross_target_position_2_4 "2_44_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_012_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1792 2992 1942 fixation_cross gabor_129 gabor_110 gabor_057 gabor_020 gabor_129 gabor_110_alt gabor_057_alt gabor_020 "2_45_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_1950_gabor_patch_orientation_129_110_057_020_target_position_1_4_retrieval_position_1" gabor_129_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_45_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_129_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2192 2992 2192 fixation_cross gabor_030 gabor_089 gabor_146 gabor_176 gabor_030_alt gabor_089 gabor_146 gabor_176_alt "2_46_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2200_gabor_patch_orientation_030_089_146_176_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_146_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_46_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_146_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1892 2992 1942 fixation_cross gabor_001 gabor_089 gabor_050 gabor_028 gabor_001 gabor_089_alt gabor_050_alt gabor_028 "2_47_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_1950_gabor_patch_orientation_001_089_050_028_target_position_1_4_retrieval_position_1" gabor_001_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_47_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_001_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1992 2992 2192 fixation_cross gabor_002 gabor_109 gabor_172 gabor_139 gabor_002_alt gabor_109 gabor_172 gabor_139_alt "2_48_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_2000_3000_2200_gabor_patch_orientation_002_109_172_139_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_139_framed blank blank blank blank fixation_cross_target_position_2_3 "2_48_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_139_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 1992 fixation_cross gabor_108 gabor_063 gabor_126 gabor_083 gabor_108_alt gabor_063_alt gabor_126 gabor_083 "2_49_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2000_gabor_patch_orientation_108_063_126_083_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_172_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_49_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_172_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 1992 fixation_cross gabor_099 gabor_084 gabor_115 gabor_032 gabor_099_alt gabor_084_alt gabor_115 gabor_032 "2_50_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2000_gabor_patch_orientation_099_084_115_032_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_172_framed blank blank blank blank fixation_cross_target_position_3_4 "2_50_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_172_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 1942 fixation_cross gabor_057 gabor_107 gabor_090 gabor_124 gabor_057 gabor_107_alt gabor_090 gabor_124_alt "2_51_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_1950_gabor_patch_orientation_057_107_090_124_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_090_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_51_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2192 2992 2142 fixation_cross gabor_130 gabor_152 gabor_082 gabor_016 gabor_130_alt gabor_152 gabor_082_alt gabor_016 "2_52_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2150_gabor_patch_orientation_130_152_082_016_target_position_2_4_retrieval_position_2" gabor_circ gabor_105_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_52_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_105_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1792 2992 2042 fixation_cross gabor_055 gabor_013 gabor_082 gabor_029 gabor_055_alt gabor_013 gabor_082_alt gabor_029 "2_53_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_1800_3000_2050_gabor_patch_orientation_055_013_082_029_target_position_2_4_retrieval_position_1" gabor_055_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_53_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_055_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1892 2992 2342 fixation_cross gabor_004 gabor_092 gabor_171 gabor_120 gabor_004 gabor_092 gabor_171_alt gabor_120_alt "2_54_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2350_gabor_patch_orientation_004_092_171_120_target_position_1_2_retrieval_position_2" gabor_circ gabor_092_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_54_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1792 2992 2392 fixation_cross gabor_127 gabor_040 gabor_092 gabor_008 gabor_127 gabor_040_alt gabor_092 gabor_008_alt "2_55_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2400_gabor_patch_orientation_127_040_092_008_target_position_1_3_retrieval_position_1" gabor_127_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_55_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_127_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1992 2992 2492 fixation_cross gabor_136 gabor_020 gabor_152 gabor_079 gabor_136 gabor_020_alt gabor_152_alt gabor_079 "2_56_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_2000_3000_2500_gabor_patch_orientation_136_020_152_079_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_103_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_56_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_103_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 2092 fixation_cross gabor_092 gabor_125 gabor_061 gabor_036 gabor_092_alt gabor_125 gabor_061_alt gabor_036 "2_57_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2100_gabor_patch_orientation_092_125_061_036_target_position_2_4_retrieval_position_2" gabor_circ gabor_174_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_57_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_174_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2042 2992 2492 fixation_cross gabor_173 gabor_061 gabor_115 gabor_092 gabor_173_alt gabor_061_alt gabor_115 gabor_092 "2_58_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2500_gabor_patch_orientation_173_061_115_092_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_140_framed blank blank blank blank fixation_cross_target_position_3_4 "2_58_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_140_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2192 2992 2292 fixation_cross gabor_176 gabor_018 gabor_098 gabor_138 gabor_176 gabor_018_alt gabor_098 gabor_138_alt "2_59_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2300_gabor_patch_orientation_176_018_098_138_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_098_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_59_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_098_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2042 2992 1992 fixation_cross gabor_056 gabor_171 gabor_032 gabor_097 gabor_056_alt gabor_171 gabor_032_alt gabor_097 "2_60_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2000_gabor_patch_orientation_056_171_032_097_target_position_2_4_retrieval_position_2" gabor_circ gabor_171_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_60_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_171_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2242 2992 2292 fixation_cross gabor_061 gabor_035 gabor_148 gabor_083 gabor_061_alt gabor_035 gabor_148_alt gabor_083 "2_61_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2300_gabor_patch_orientation_061_035_148_083_target_position_2_4_retrieval_position_2" gabor_circ gabor_035_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_61_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_035_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1742 2992 2142 fixation_cross gabor_124 gabor_053 gabor_083 gabor_068 gabor_124_alt gabor_053_alt gabor_083 gabor_068 "2_62_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_1750_3000_2150_gabor_patch_orientation_124_053_083_068_target_position_3_4_retrieval_position_2" gabor_circ gabor_053_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_62_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_053_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1892 2992 2592 fixation_cross gabor_048 gabor_094 gabor_066 gabor_155 gabor_048_alt gabor_094 gabor_066_alt gabor_155 "2_63_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2600_gabor_patch_orientation_048_094_066_155_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_016_framed blank blank blank blank fixation_cross_target_position_2_4 "2_63_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_016_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2342 fixation_cross gabor_081 gabor_159 gabor_098 gabor_135 gabor_081_alt gabor_159 gabor_098_alt gabor_135 "2_64_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_081_159_098_135_target_position_2_4_retrieval_position_2" gabor_circ gabor_022_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_64_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_022_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 2092 2992 2542 fixation_cross gabor_014 gabor_149 gabor_086 gabor_164 gabor_014 gabor_149 gabor_086_alt gabor_164_alt "2_65_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_2100_3000_2550_gabor_patch_orientation_014_149_086_164_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_041_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_65_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_041_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 2242 fixation_cross gabor_135 gabor_179 gabor_161 gabor_120 gabor_135 gabor_179 gabor_161_alt gabor_120_alt "2_66_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2250_gabor_patch_orientation_135_179_161_120_target_position_1_2_retrieval_position_1" gabor_135_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_66_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_135_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1842 2992 2392 fixation_cross gabor_058 gabor_031 gabor_078 gabor_136 gabor_058_alt gabor_031 gabor_078_alt gabor_136 "2_67_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2400_gabor_patch_orientation_058_031_078_136_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_136_framed blank blank blank blank fixation_cross_target_position_2_4 "2_67_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_136_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2142 2992 1942 fixation_cross gabor_156 gabor_129 gabor_088 gabor_046 gabor_156_alt gabor_129 gabor_088_alt gabor_046 "2_68_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_1950_gabor_patch_orientation_156_129_088_046_target_position_2_4_retrieval_position_2" gabor_circ gabor_176_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_68_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_176_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 2092 2992 1992 fixation_cross gabor_080 gabor_118 gabor_095 gabor_012 gabor_080 gabor_118_alt gabor_095 gabor_012_alt "2_69_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_2100_3000_2000_gabor_patch_orientation_080_118_095_012_target_position_1_3_retrieval_position_2" gabor_circ gabor_118_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_69_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_118_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2092 2992 2142 fixation_cross gabor_061 gabor_143 gabor_175 gabor_036 gabor_061_alt gabor_143 gabor_175_alt gabor_036 "2_70_Encoding_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2150_gabor_patch_orientation_061_143_175_036_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_085_framed blank blank blank blank fixation_cross_target_position_2_4 "2_70_Retrieval_Working_Memory_MEG_P7_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_085_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 5000;
code = "BaselinePost";
port_code = 92;
};
|
e2d80591f8a4d919f6fdf066216f0abdd1f78db3
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/542/CH7/EX7.6/Example_7_6.sci
|
40ee58c6e1c685a1dd0c877a917c3850759e8da7
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,427
|
sci
|
Example_7_6.sci
|
clear;
clc;
printf("\n Example 7.6");
A=0.6*0.6*%pi; //in m^2
rate=1.25*10^-4; // in m^3/s
v_w=0.2/(3*10^3);
v_f=10^-3-v_w;
v=v_w/v_f;
v_rate=rate*v;
w=360*0.2;
t=v_rate*w/A;
printf("\nThickness of cake produced is : %.1f mm",t/10^-4);
K = poly([0],'K');
K1 = roots((1.25*10^(-4)*360)^2-K*(6.5*10^(4)*(0.36*(%pi))^(2)*72));
printf("\n The value of K is %.2f*10^(-10)",K1*10^(10));
//Filter press
//Using a filter press with n frames of thickness b m the total time, for one complete cycle of the press =(tf+120n+240),where tf is the time during which filtration is occurring
//overall rate of filtration = Vf/(tf + 120n + 240)
// Vf = 0.3^(2)*n*b/0.143
//tf = 2.064*10^5 b^2
b = poly([0],'b');
b1 = roots(b^2 - 0.0458*b - 0.001162);
printf("\n The thickness is %.4f m",b1(1));
function[n]=number_of_plates()
n = (0.030 + 25.8*b1(1)^2)/(0.629*b1(1)-0.015);
funcprot(0);
endfunction
n = number_of_plates();
printf("\n The minimum number of plates required is %d",ceil(n));
d = poly([0],'d');
d1 = roots(ceil(n)*(0.629*d-0.015)-0.030-25.8*d^2);
printf("\n The sizes of frames which will give exactly the required rate of filtration when six are used are %f mm",d1*10^3);
printf("\n\n\n Thus any frame thickness between 47 and 99 mm will be satisfactory. In practice,50 mm (2 in) frames would probably be used.")
|
c52614cce04e45b5c16c947d443af3eb29fc2ed8
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.5/macros/scicos/do_load.sci
|
60b0adc1d67602e26e31254831722cedbcd5e1da
|
[
"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
| 1,608
|
sci
|
do_load.sci
|
function [ok,scs_m,cpr,edited]=do_load(fname,typ)
// Copyright INRIA
[lhs,rhs]=argn(0)
edited=%f
if rhs<2 then typ='diagram',end
if alreadyran&typ=='diagram' then
do_terminate(),//end current simulation
end
current_version=scicos_ver
scicos_ver='scicos2.2' //default version, for latter version scicos_ver is stored in files
if rhs<=0 then fname=xgetfile('*.cos*'),end
if fname<>emptystr() then
cpr=list()
scs_m=[]
[path,name,ext]=splitfilepath(fname)
errcatch(-1,'continue')
select ext
case 'cosf'
exec(fname,-1)
ok=%t
case 'cos' then
load(fname),
ok=%t
else
message(['Only *.cos (binary) and *.cosf (formatted) files';
'allowed'])
ok=%f
scs_m=list()
return
end
if iserror(-1) then
errclear(-1)
message(name+' cannot be loaded.')
ok=%f;return
end
if scs_m==[] then scs_m=x,end //for compatibility
scs_m(1)(2)=[scs_m(1)(2)(1),path]
if scicos_ver<>current_version then
scs_m=do_version(scs_m,scicos_ver),
cpr=list()
edited=%t
end
else
ok=%f
//scs_m=list()
return
end
if typ=='diagram' then
if cpr<>list() then
for jj=1:size(cpr(2)('funtyp'),'*')
if cpr(2)('funtyp')(jj)>999 then
funam=cpr(2)('funs')(jj)
if ~c_link(funam) then
qqq=cpr(4)(jj)
path=list(qqq(1))
for kkk=qqq(2:$)
path($+1)=3
path($+1)=8
path($+1)=kkk
end
path($+1)=2;path($+1)=4;path($+1)=2;
tt=scs_m(path)
if cpr(2)('funtyp')(jj)>1999 then
[ok]=do_ccomlink(funam,tt)
else
[ok]=do_forcomlink(funam,tt)
end
end
end
end
end
end
|
ff5169b75b386dcdb65bbd1926a02d41050ab26a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1151/CH8/EX8.19/example19.sce
|
d39cce0ca7fb4ac5d2e352765f6dd07ab71c968f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 237
|
sce
|
example19.sce
|
s=%s ;// convert to state space
TFcont=syslin ('c',(s+2)/(s^3+3*s^2+2*s+10))
SScont=tf2ss (TFcont )
[Ac ,Bc ,U, ind ]=canon( SScont( 2 ) , SScont( 3 ) )
disp(Ac,"Matrix A=")
disp(Bc,"Matrix B=")
C=[2 1 0]
disp(C," Matrix Ct=")
|
d7e65917fa49e2138fdc742b7798fd38ef0d33f7
|
08bfc8a1f8e44adc624d1f1c6250a3d9635f99de
|
/SDKs/swig/Examples/test-suite/scilab/preproc_constants_runme.sci
|
adbd1af7ea927ffe6f20bf234fca598413efaa1e
|
[] |
no_license
|
Personwithhat/CE_SDKs
|
cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02
|
7afbd2f7767c9c5e95912a1af42b37c24d57f0d4
|
refs/heads/master
| 2020-04-09T22:14:56.917176
| 2019-07-04T00:19:11
| 2019-07-04T00:19:11
| 160,623,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 128
|
sci
|
preproc_constants_runme.sci
|
version https://git-lfs.github.com/spec/v1
oid sha256:0b83a374c28cc9a4b678a18e23c5626457861291380c9936a675eefb08b705f5
size 889
|
1013343e1f6c253af7d0d6313108854fdddcf963
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2384/CH1/EX1.6/ex1_6.sce
|
42785e8f0be68692f8b15e2b3aec5ab53a313a84
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 549
|
sce
|
ex1_6.sce
|
// Exa 1.6
clc;
clear;
close;
format('v',6)
// Given data
R1= 2;// in ohm
R2= 4;// in ohm
R3= 6;// in ohm
V1= 4;// in V
V2= 44;// in V
//Applying KVL in ABEFA : -R1*I1 + R2*I2 = V1 (i)
//Applying KVL in BCDEB: R3*I1 + I2*(R2+R3)=V2 (ii)
A= [-R1 R3; R2 (R2+R3)]; // assumed
B= [V1 V2];// assumed
I= B*A^-1;// Solving eq(i) and (ii) by Matrix method
I1= I(1);// in A
I2= I(2);// in A
I_L= I1+I2;// in A
disp(I1,"The value of I1 in A is : ");
disp(I2,"The value of I2 in A is : ");
disp(I_L,"The value of I_L in A is : ");
|
fbf0e676c1e42e35f28b2e9c2712c4d182be4b09
|
5f48beee3dc825617c83ba20a7c82c544061af65
|
/tests/s/59.tst
|
2aa71e555fc57a13b0807a4555f01773a8ca3ee6
|
[] |
no_license
|
grenkin/compiler
|
bed06cd6dac49c1ca89d2723174210cd3dc8efea
|
30634ec46fba10333cf284399f577be7fb8e5b61
|
refs/heads/master
| 2020-06-20T12:44:17.903582
| 2016-11-27T03:08:20
| 2016-11-27T03:08:20
| 74,863,612
| 3
| 0
| null | null | null | null |
WINDOWS-1251
|
Scilab
| false
| false
| 42
|
tst
|
59.tst
|
int f(float x, int x); /* ошибка */
|
a4661033dc29c54d729f8ae9c5a24f72e1d35330
|
13c3ed7bef4d80dabd836219bbf4396f07cb934a
|
/subfuntiondemo.sci
|
0dd2846e1e0ae0102797c76e9d917f7f49e4aa5a
|
[] |
no_license
|
Mushirahmed/scilab_workspace
|
99f489a110a5e295ce9fca9991122d14840018d3
|
f58b91b87bb0357fff82dcb97b05541e7e976eca
|
refs/heads/master
| 2021-01-10T15:48:40.576771
| 2016-02-10T10:32:46
| 2016-02-10T10:32:46
| 43,348,489
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 138
|
sci
|
subfuntiondemo.sci
|
//SCI2C: DEFAULT_PRECISION= FLOAT
function subfuntiondemo()
a = 10;
b = 7;
c = a - b; //d0d0OpMinusd0
disp(c)
endfunction
|
96eb66c2577c93751a593a0f5da8cafee90947a3
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/858/CH3/EX3.27/example_27.sce
|
e99d03ca8820fa2c71abd557161ac2e99ccffc33
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 762
|
sce
|
example_27.sce
|
clc
clear
printf("example 3.27 page number 114\n\n")
//to find the area of heating surface
F = 1000 //in kg
xF = 0.01
solid_feed = F*xF;
water_feed = F - solid_feed;
tF = 40 //in degree C
hF = 167.5 //in kJ/kg
xL = 0.02;
solid_liquor = 10 //in kg
L = solid_liquor/xL;
tL = 100 //in degree C
hL = 418.6 //in kJ/kg
V = F -L;
tv = 100 //in degree C
Hv = 2675 //in kJ/kg
ts = 108.4 //in degree C
Hs = 2690 //in kJ/kg
tc = 108.4 //in degree C
hc = 454 //in kJ/kg
//applying heat balance
S = (F*hF-V*Hv-L*hL)/(hc-Hs);
printf("weight of steam required = %f kg/hr",S)
Q = S*(Hs-hc);
U = 1.4 //in kW/m2K
delta_t = ts-tL;
A = 383.2/(U*delta_t);
printf("\n\narea of heating surface = %f square meter",A)
|
f8c703c2fda65b998756ebdeea7e7f4414ee5754
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1052/CH17/EX17.4/174.sce
|
4a1708b39140585910ed308d184096ec081275d6
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
174.sce
|
clc;
//Example 17.4
//page no 208
printf(" Example 17.4 page no 208\n\n");
//a pump is in process
//given: parabolic pump pressure flow
//P=a-b*q^2 equation
//a and b calculate from conditions
a=25
b=5
//then equation becomes P=25-5*q^2
//pressure at 1m^3/s flow rate
q=1//flow rate,m^3/s
P=a-b*q^2//pressure
printf("\n pressure P=%f kpa",P);
|
5c31c77db0a250f8ee276adb962af96e9aae2009
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2213/CH7/EX7.25/ex_7_25.sce
|
1c7db219a50ab201b91176106c1be5dc7aea5e5c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 638
|
sce
|
ex_7_25.sce
|
//Example 7.25.//trailing weight and maximum gradiant
clc;
clear;
close;
format('v',6)
//given data :
w1=100;//tonnes
w=w1+500;//tonnes
we=1.1*w;//effective weight
alpha=1;//
G=1;//
r=45;//
ft=((277.8*we*alpha)+(98.1*w*G)+(w*r));//in newtons
ad=0.7;//adehsive percent
mu=(ft)/(100*10^3*9.81*ad);//
w2=130;//tonnes
ad2=w2*G;//
tadw=w1*ad+ad2;//tonnes
tted=mu*tadw*9.81*1000;//newtones
W=tted/(277.8*1.1*alpha+98.1*alpha+r);//in tonnes
trlw=W-(ad2+w1);//
disp("part (a)")
disp(round(trlw),"trailig weight in tonnes is")
w2=w1+500+ad2;//
G1=((tted/w2)-(277.8*1.1+r))*(1/98.1);//
disp("part (b)")
disp(G1,"maximum gradiant in percentage is")
|
98516dbf0644d1894df0e8b0a9b2c0e0b7a7b21c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2444/CH9/EX9.1/ex9_1.sce
|
9d0c9963e44f2c8faf7d59489f2d91b3c101c32d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 497
|
sce
|
ex9_1.sce
|
// Exa 9.1
clc;
clear;
close;
format('v',5)
// Given data
R = 10;// in ohm
L = 20;// in mH
L = L * 10^-3;// in H
C = 0.05;// in µF
C = C * 10^-6;// in F
f_r = (1/(2*%pi))*sqrt( (1/(L*C)) - ((R^2)/(L^2)) );// in Hz
f_r = round(f_r * 10^-3);// in kHz
disp(f_r,"The resonant frequency in kHz is");
Q = (2*%pi*f_r*10^3*L)/R;//Q factor of the tank circuit
disp(Q,"The Q factor of the tank circuit is");
BW = (f_r*10^3)/Q;// in Hz
disp(BW,"The band width of the amplifier in Hz is");
|
792c387418502c0eb1fc3854136a26543adf608e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/746/DEPENDENCIES/10_02.sci
|
e612973fa83b0a6f9cc4eb8a6797caa5b2bd746f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 270
|
sci
|
10_02.sci
|
//Tip Diameter in metres:
Dt=1.1;
//Hub Diameter in metres:
Dh=0.8;
//Operating Speed in rpm:
w=1200;
//Absolute inlet angle in degrees:
alpha1=30;
//Blade inlet angle in degrees:
betta1=30;
//Blade outlet angle in degrees:
betta2=60;
//Density of air in kg/m^3
p=1.23;
|
58c01a28fbd2cb98adc37f109c7de332c829c245
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/284/CH3/EX3.13/ex_13.sce
|
c45fefecd762fb24dca360522973c950ed1920fe
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 386
|
sce
|
ex_13.sce
|
// Chapter 3_The Semiconductor in Equilibrium
//Caption_Position of Fermi Energy level
//Ex_14//page 121
T=300 //temperature in kelvin
Ef=0.20;
kT=0.0259
ni=1.5*(10^10) //intrinsic carrier concentration
Efa=3*kT //Ef-Ea=3kT
Eav=0.045
Efif=Ef/2-(Eav)-(Efa) //The position of fermi level at the maximum doping
Na=exp(Efif/kT)*ni
printf('Maximum doping is %3.2f d per cm cube',Na)
|
9ef15f35122c345124c60322424c84fdcee8380f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/257/CH5/EX5.16/example_5_16.sce
|
fc17b2a36682c5740436631ce7e126cfcf69524b
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 128
|
sce
|
example_5_16.sce
|
syms G1 G2 G3 H1 H2
// combine the two summing points
a= G3+G1
b= G2/(1-(G2*H1))
c= a*b
Y=c/(1+c*H2)
disp(Y,"C/R = ")
|
67bacd5f7c4de2afa1a600fe49bb49256cc4122c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2087/CH4/EX4.52/example4_52.sce
|
480e6793e4ca2d304ec8f0a611178caa3ce0d726
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 436
|
sce
|
example4_52.sce
|
//example 4.52
//find the equation of infiltration capacity
clc;funcprot(0);
//given
fc=1; //constant infiltration rate
ft=[10.4 5.6 3.2 2.1 1.5 1.2 1.1 1 1]; //infiltration capacity
f=ft(1)-fc;
t=[0:0.25:2];
for i=1:9
r(i)=ft(i)-fc;
end
for i=1:7
h(i)=log10(r(i));
end
s=0.775; //from graph
k=1/(log10(%e)*s);
k=round(k*100)/100;
mprintf("Equation is:\nft=fc+%fe^(-%ft)",f,k);
|
c8153c34e921efac0e1d933bd3498e93ddf1f13b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/564/CH16/EX16.4/16_4.sce
|
42ffce1209950c890b97954bfa65b275c65cb1a6
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 937
|
sce
|
16_4.sce
|
pathname=get_absolute_file_path('16_4.sce')
ilename=pathname+filesep()+'16_4data.sci'
exec(filename)
Yc=(b^2 -t^2 +a*t)/(2*(a+b-t));
Xc=((((a/2)-a1+ 0.5*t)*a) +((b-t)*t/2))/(a+b-t);
Ixx=(1/3)*((t*((Yc-t)^3 -(Yc-b)^3))+(a*((Yc)^3 -(Yc-t)^3)));
P=a1- 0.5*t +Xc;
Iyy=(1/3)*((t*(P^3 -(P-a)^3))+((b-t)*(Xc^3- (Xc-t)^3)));
Ixy=a*t^2 *(Yc- t*0.5) + (b-t)*t*(Yc+ 0.5*t)*12;
M1=(1+round(100*Mx*Iyy/(Ixx*Iyy -Ixy^2)))/100,M2=(1+round(100*Mx*Ixy/(Ixx*Iyy -Ixy^2)))/100;
function[z]=Sz(x,y)
z=M1*y -M2*x;
endfunction
Load=[Sz(-P,Yc);Sz(a-P,Yc);Sz(-P,Yc-t);Sz(a-P,Yc-t);Sz(-Xc,Yc-b);Sz(-Xc+t,Yc-b)];
Point1=[-P;a-P;-P;a-P;-Xc;-Xc+t];
Point2=[Yc;Yc;Yc-t;Yc-t;Yc-b;Yc-b];
maximum=Load(1);
for i=2:6
if(abs(Load(i))>abs(Load(i-1))) then
maximum=abs(Load(i));
mm=i;
end
end
printf("\nσz,max: %f N/mm^2",Load(mm));
disp("at point");
printf("\nX: %f ",Point1(mm));
printf("\nY: %f ",Point2(mm));
|
3991f3810f0f0cdff525c46337abb5f8e34e0b5c
|
f7e981eeadbb0bba2edc23eccc7168670c099d2d
|
/bsp05.sce
|
816659de245b98966f2c6e523dc41ffbd398f893
|
[] |
no_license
|
mr-georgebaker/Scilab-Exercises
|
bf1e79d68b856f92e2be86b6b002f4eb657ff0ef
|
fc63d68aeaf495da81a0c557a4f07192aacbd1c6
|
refs/heads/master
| 2016-08-05T01:37:09.841260
| 2015-05-22T18:24:17
| 2015-05-22T18:24:17
| 32,216,608
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,540
|
sce
|
bsp05.sce
|
clear
// Calculates the activation energy E and the factor A for the formula
// K_i = A*exp(-E/(R*T_i))
// based on a lookuptable (Bsp05_Messdaten.txt) and regression analysis with least squares
// ||Mx - b|| = min
// where M_i = [1, -1/T_i]
R = 8.3144621
function D = open_file(path)
// Reads a file and returns a matrix containing the elements in that file
// Input: path = String
// Output: D = matrix
try
//file_path = path
D=fscanfMat(path)
catch
disp(['File ' + path + 'cannot be found',
'using given values'])
D = [1, 605.7, 4.80e-5;
2, 605.7, 4.73e-5;
3, 617.6, 10.59e-5;
4, 617.6, 10.66e-5;
5, 623.2, 15.01e-5;
6, 623.2, 15.06e-5;
7, 634.5, 30.50e-5;
8, 634.5, 30.20e-5,
9, 648.0, 69.80e-5,
10, 648.0, 70.10e-5,
11, 648.0, 70.00e-5]
end
endfunction
function M = ansatzfunction(D)
// Returns the matrix M which contains the ansatzfunctions f_1(T) = 1 and
// f_2(T) = -1/T
// Input: D = matrix
// Output: M = matrix
for i=1:1:size(D,1)
M(i,1) = 1
M(i,2) = -1/D(i,2)
end
endfunction
function bsp5()
D = open_file('Bsp05_Messdaten.txt')
M = ansatzfunction(D)
y = log(D(1:$,3)) // ln(K_i)
M_1 = M'*M // M^T*M
M_2 = M'*y // M^T*y
// M^T*M*x = M^T*y -> x = M_1\M_2
x = M_1\M_2 //ln(A) = x(1), E = R*x(2)
E = R*x(2)
ln_A = x(1)
mprintf('E = %.0f \t ln(A) = %.2f",E,ln_A)
endfunction
bsp5()
|
a212cd01798447376f07c4e22aa20143508d0fe0
|
e708f81011d4a09a8ad1ee85f0c1872e1634f35c
|
/Documentation/Wrapping/Scilab/btk/sci_gateway/builder_gateway.sce
|
33ebd1677591a63868b26717ec6b1fe421800488
|
[
"BSD-3-Clause"
] |
permissive
|
allardhoeve/BTKCore
|
ef26f818acf06780c3e57147097f65f2d72c1c27
|
f6805699fe37f64ac6434a92736c6b59f0ea148d
|
refs/heads/master
| 2020-04-27T07:58:51.948297
| 2019-03-28T11:03:41
| 2019-03-28T11:03:41
| 174,155,043
| 0
| 1
|
NOASSERTION
| 2019-03-06T14:27:02
| 2019-03-06T13:55:59
|
C++
|
UTF-8
|
Scilab
| false
| false
| 200
|
sce
|
builder_gateway.sce
|
sci_gateway_dir = get_absolute_file_path('builder_gateway.sce');
tbx_build_gateway_loader([], sci_gateway_dir);
clear tbx_builder_gateway_lang tbx_build_gateway_loader;
clear sci_gateway_dir;
|
9c788ede40d94540d5f743ee3afd537af3be1e2d
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/824/CH4/EX4.6/4_6.sce
|
e735f4728825820406c83cc858e665bc0c0e90eb
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 315
|
sce
|
4_6.sce
|
//clear//
clc
clear
exec("4.6data.sci");
FT0 = FA0+FB0+FI;
yA0 = FA0/FT0;
e = yA0*(1-.5-1);
PA0 = yA0*P0;
kdes = k*PA0*(1/2)^(2/3);
alpha = 2*bita0/(Ac*(1-phi)*rhoc*P0);
W = (1 - (1-(3*alpha*FA0/(2*kdes))*((1+e)*log(1/(1-X))-e*X))^(2/3))/alpha;
disp("W")
disp(W)
disp("lb of catalyst per tube")
|
c153b5e7f59fb380deee49c267e770030f92e1c5
|
3b9a879e67cbab4a5a4a5081e2e9c38b3e27a8cc
|
/Área 1/Aula 6/Teste1.sce
|
e5ef1c1fff8589c0b5f4cf63ab14c6eb1aacd34c
|
[
"MIT"
] |
permissive
|
JPedroSilveira/numerical-calculus-with-scilab
|
32e04e9b1234a0a82275f86aa2d6416198fa6c81
|
190bc816dfaa73ec2efe289c34baf21191944a53
|
refs/heads/master
| 2023-05-10T22:39:02.550321
| 2021-05-11T17:17:09
| 2021-05-11T17:17:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 80
|
sce
|
Teste1.sce
|
A = [12 1 4
8 -1 0
12 6 13]
disp(norm(A,1))
disp(norm(A,%inf))
|
ab51dd8bb8db1ef68ac948dd6015968619340a7b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3774/CH7/EX7.2/Ex7_2.sce
|
bcc5fef405316b860dfb57bd729623c109bc434b
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 3,133
|
sce
|
Ex7_2.sce
|
// exa 7.2 Pg 200
clc;clear;close;
// Given Data
P=30;// kW
N=750;// rpm
//Tmax=1.2*Tm;// MPa
tau_s=35;// MPa
tau_b=35;// MPa
tau_k=35;// MPa
sigma_cs=70;// MPa
sigma_ck=70;// MPa
sigma_cb=70;// MPa
tau_ci=15;// MPa
pb=0.8;// MPa
//sigma_cs=2*tau_s;// MPa
//Tmax=1.5*Tm
mu=0.15;// coefficient of friction
//SHAFT DIAMETER
// P= 2*%pi*N*Tm/60/1000
Tm=P/(2*%pi*N/60/1000);// N.m
Tmax=1.2*Tm;// N.m
// %pi*d**3*tau_s/16= Tmax
d=(Tmax/(%pi*tau_s/16)*1000)**(1/3);// mm
printf('shaft diameter = %.2f mm. Use d = 42 mm.',d)
d=42;// mm
// HUB DIAMETER
// Tmax=%pi/16*((d1**4-d**4)/d1)*tau_h
tau_h=tau_ci;// MPa
//d1*(Tmax/(%pi/16)/tau_h)-d1**4=d**4 -- eqn(1)
Tmax=Tmax*1000;// N.mm
p=[1 0 0 -Tmax/(%pi*tau_h/16) -d**4] ;// polynomial coefficients from eqn(1)
d1=roots(p);// roots of poly
d1=d1(1);// mm (taking +ve value)
d1=2*d;// mm (empirically adopted)
t1=(d1-d)/2;// mm (thickness of hub)
printf('\n thickness of hub = %.f mm',t1)
//d4=d+t1;// mm (diameter of recess in flanges)
//printf('\n diameter of recess in flanges = %.f mm',d4)
d3=4*d;// mm (outside diameter of protecting flange)
printf('\n outside diameter of protecting flange = %.f mm. Use 170 mm',d3)
d3=170;// mm (adopted)
//Key size & Hub length
b=d/4;// mm (width of key)
l=1.5*d;// mm (length of key)
printf('\n width of key = %.1f mm. Use b = 12 mm',b)
b=12;// mm
printf('\n length of key = %.f mm.',l)
t=b;// mm (thickness for square key)
printf('\n thickness for square key = %.f mm',t)
printf('\n Hub length = %.f mm',l)
//Number of bolts
n=(0.04*d+3);// no. of bolts
printf('\n Number of bolts = %.2f. Use n=6',n)
n=6;// adopted
// Bolt diameter
db=0.5*d/sqrt(n);// mm
printf('\n Bolt diameter = %.2f mm. Use db=20 mm for design purpose',db)
db=20;//mm (adopted)
bolt_dia=db;//mm
dsb=24;// mm(shank diameter of bolt for design)
// Outer diameter of rubber bush
trb=2;// mm (thickness of rubber bush)
tbb=6;// mm (thickness of brass bush)
d3=dsb+2*trb+2*tbb;// mm
d2=d1+d3+2*tbb;// mm (pitch circle diameter of bolts)
printf('\n pitch circle diameter of bolts = %.f mm ',d2)
// Check of shear in bolt
F=2*Tmax/n/d2;// N
//%pi/4*db*2*tau=F
tau=F/(%pi/4*db**2);//MPa
printf('\n Permissible shear stress in bolts = %.2f MPa < 35 MPa. Hence design is safe.', tau)
// Length of brush
pb=0.8;// MPa(bearing pressure of brush)
//F=l2*d3*pb;
l2=F/d3/pb;// mm
printf('\n length of bush = %.f mm',l2)
// Check for pin in bending
c=5;// mm (clearance between two flanges)
l3=(l2-c)/2+c;//mm
//M=%pi/32*db**3*sigma_b & M=F*l3
sigma_b = F*l3/(%pi/32*db**3);// MPa
printf('\n Bending stress in pin = %.1f MPa',sigma_b)
// Maximum shear stress in pin
tau_max=sqrt((sigma_b/2)**2+tau**2);//MPa
printf('\n Maximum shear stress in pin = %.2f MPa < 35 MPa. Hence design is safe.',tau_max)
// Flange thickness
t2=0.5*t1+6;// mm (empirically)
printf('\n Flange thickness = %.1f mm. Use t=18 mm',t2)
t2=18;// mm (adopted)
tau=Tmax/(2*%pi*d1**2*t2/4);// MPa
printf('\n shearing of the flange at the junction with hub = %.2f MPa < 15 MPa.',tau)
printf(' Values are acceptable.')
//Note - Answer in llast part is calculated wrong in the textbook(error in calculation).
|
f33d2a1d1236bff28d61be97e0c1c89725b4351a
|
b2efed85f1632d9ed4b7d9f4eebc7126d3074940
|
/ted_mini/artandsci_positive/184.ted.sci
|
9847a34cb77b8065e428f0516c5a4039ee14b012
|
[] |
no_license
|
joytafty-work/unsupervised_nlp
|
837d8ed75eb084b630d75a1deba7bdd53bbcf261
|
7812c7d24bb677c90cf6397ed0e274caba1b884c
|
refs/heads/master
| 2021-01-10T09:24:33.254190
| 2015-11-11T20:40:32
| 2015-11-11T20:40:32
| 45,651,958
| 2
| 7
| null | 2018-01-28T18:54:18
| 2015-11-06T01:42:42
|
Scilab
|
UTF-8
|
Scilab
| false
| false
| 23,749
|
sci
|
184.ted.sci
|
well as chris pointed out i study the human brain the functions and structure of the human brain and i just want you to think for a minute about what this entails here is this mass of jelly three pound mass of jelly you can hold in the palm of your hand and it can contemplate the vastness of interstellar space it can contemplate the meaning of infinity and it can contemplate itself contemplating on the meaning of infinity and this peculiar recursive quality that we call self awareness which i think is the holy grail of neuroscience of neurology and hopefully someday we ll understand how that happens ok so how do you study this mysterious organ i mean you have 100 billion nerve cells little wisps of protoplasm interacting with each other and from this activity emerges the whole spectrum of abilities that we call human nature and human consciousness how does this happen well there are many ways of approaching the functions of the human brain one approach the one we use mainly is to look at patients with sustained damage to a small region of the brain where there s been a genetic change in a small region of the brain what then happens is not an across the board reduction in all your mental capacities a sort of blunting of your cognitive ability what you get is a highly selective loss of one function with other functions being preserved intact and this gives you some confidence in asserting that that part of the brain is somehow involved in mediating that function so you can then map function onto structure and then find out what the circuitry s doing to generate that particular function so that s what we re trying to do so let me give you a few striking examples of this in fact i m giving you three examples six minutes each during this talk the first example is an extraordinary syndrome called capgras syndrome if you look at the first slide there that s the temporal lobes frontal lobes parietal lobes ok the lobes that constitute the brain and if you look tucked away inside the inner surface of the temporal lobes you ca n t see it there is a little structure called the fusiform gyrus and that s been called the face area in the brain because when it s damaged you can no longer recognize people s faces you can still recognize them from their voice and say oh yeah that s joe but you ca n t look at their face and know who it is right you ca n t even recognize yourself in the mirror i mean you know it s you because you wink and it winks and you know it s a mirror but you do n t really recognize yourself as yourself ok now that syndrome is well known as caused by damage to the fusiform gyrus but there s another rare syndrome so rare in fact that very few physicians have heard about it not even neurologists this is called the capgras delusion and that is a patient who s otherwise completely normal has had a head injury comes out of coma otherwise completely normal he looks at his mother and says this looks exactly like my mother this woman but she s an impostor she s some other woman pretending to be my mother now why does this happen why would somebody and this person is perfectly lucid and intelligent in all other respects but when he sees his mother his delusion kicks in and says it s not mother now the most common interpretation of this which you find in all the psychiatry textbooks is a freudian view and that is that this chap and the same argument applies to women by the way but i ll just talk about guys when you re a little baby a young baby you had a strong sexual attraction to your mother this is the so called oedipus complex of freud i m not saying i believe this but this is the standard freudian view and then as you grow up the cortex develops and inhibits these latent sexual urges towards your mother thank god or you would all be sexually aroused when you saw your mother and then what happens is there s a blow to your head damaging the cortex allowing these latent sexual urges to emerge flaming to the surface and suddenly and inexplicably you find yourself being sexually aroused by your mother and you say my god if this is my mom how come i m being sexually turned on she s some other woman she s an impostor it s the only interpretation that makes sense to your damaged brain this has never made much sense to me this argument it s very ingenious as all freudian arguments are but did n t make much sense because i have seen the same delusion a patient having the same delusion about his pet poodle he ll say doctor this is not fifi it looks exactly like fifi but it s some other dog right now you try using the freudian explanation there you ll start talking about the latent bestiality in all humans or some such thing which is quite absurd of course now what s really going on so to explain this curious disorder we look at the structure and functions of the normal visual pathways in the brain normally visual signals come in into the eyeballs go to the visual areas in the brain there are in fact 30 areas in the back of your brain concerned with just vision and after processing all that the message goes to a small structure called the fusiform gyrus where you perceive faces there are neurons there that are sensitive to faces you can call it the face area of the brain right i talked about that earlier now when that area s damaged you lose the ability to see faces right but from that area the message cascades into a structure called the amygdala in the limbic system the emotional core of the brain and that structure called the amygdala gauges the emotional significance of what you re looking at is it prey is it predator is it mate or is it something absolutely trivial like a piece of lint or a piece of chalk or a i do n t want to point to that but or a shoe or something like that ok which you can completely ignore so if the amygdala is excited and this is something important the messages then cascade into the autonomic nervous system your heart starts beating faster you start sweating to dissipate the heat that you re going to create from muscular exertion and that s fortunate because we can put two electrodes on your palm and measure the change in skin resistance produced by sweating so i can determine when you re looking at something whether you re excited or whether you re aroused or not ok and i ll get to that in a minute so my idea was when this chap looks at an object when he looks at his any object for that matter it goes to the visual areas and however and it s processed in the fusiform gyrus and you recognize it as a pea plant or a table or your mother for that matter ok and then the message cascades into the amygdala and then goes down the autonomic nervous system but maybe in this chap that wire that goes from the amygdala to the limbic system the emotional core of the brain is cut by the accident so because the fusiform is intact the chap can still recognize his mother and says oh yeah this looks like my mother but because the wire is cut to the emotional centers he says but how come if it s my mother i do n t experience a warmth or terror as the case may be right and therefore he says how do i account for this inexplicable lack of emotions this ca n t be my mother it s some strange woman pretending to be my mother how do you test this well what you do is if you take any one of you here and put you in front of a screen and measure your galvanic skin response and show pictures on the screen i can measure how you sweat when you see an object like a table or an umbrella of course you do n t sweat if i show you a picture of a lion or a tiger or a pinup you start sweating right and believe it or not if i show you a picture of your mother i m talking about normal people you start sweating you do n t even have to be jewish now what happens if you show this patient you take the patient and show him pictures on the screen and measure his galvanic skin response tables and chairs and lint nothing happens as in normal people but when you show him a picture of his mother the galvanic skin response is flat there s no emotional reaction to his mother because that wire going from the visual areas to the emotional centers is cut so his vision is normal because the visual areas are normal his emotions are normal he ll laugh he ll cry so on and so forth but the wire from vision to emotions is cut and therefore he has this delusion that his mother is an impostor it s a lovely example of the sort of thing we do take a bizarre seemingly incomprehensible neural psychiatric syndrome and say that the standard freudian view is wrong that in fact you can come up with a precise explanation in terms of the known neural anatomy of the brain by the way if this patient then goes and mother phones from an adjacent room phones him and he picks up the phone and he says wow mom how are you where are you there s no delusion through the phone then she approaches him after an hour he says who are you you look just like my mother ok the reason is there s a separate pathway going from the hearing centers in the brain to the emotional centers and that s not been cut by the accident so this explains why through the phone he recognizes his mother no problem when he sees her in person he says it s an impostor ok how is all this complex circuitry set up in the brain is it nature genes or is it nurture and we approach this problem by considering another curious syndrome called phantom limb and you all know what a phantom limb is when an arm is amputated or a leg is amputated for gangrene or you lose it in war for example in the iraq war it s now a serious problem you continue to vividly feel the presence of that missing arm and that s called a phantom arm or a phantom leg in fact you can get a phantom with almost any part of the body believe it or not even with internal viscera i ve had patients with the uterus removed hysterectomy who have a phantom uterus including phantom menstrual cramps at the appropriate time of the month and in fact one student asked me the other day do they get phantom pms a subject ripe for scientific enquiry but we have n t pursued that ok now the next question is what can you learn about phantom limbs by doing experiments one of the things we ve found was about half the patients with phantom limbs claim that they can move the phantom it ll pat his brother on the shoulder it ll answer the phone when it rings it ll wave goodbye these are very compelling vivid sensations the patient s not delusional he knows that the arm is not there but nevertheless it s a compelling sensory experience for the patient but however about half the patients this does n t happen the phantom limb they ll say but doctor the phantom limb is paralyzed it s fixed in a clenched spasm and it s excruciatingly painful if only i could move it maybe the pain will be relieved now why would a phantom limb be paralyzed it sounds like an oxymoron but when we were looking at the case sheets what we found was these people with the paralyzed phantom limbs the original arm was paralyzed because of the peripheral nerve injury the actual nerve supplying the arm was severed was cut by say a motorcycle accident so the patient had an actual arm which is painful in a sling for a few months or a year and then in a misguided attempt to get rid of the pain in the arm the surgeon amputates the arm and then you get a phantom arm with the same pains right and this is a serious clinical problem patients become depressed some of them are driven to suicide ok so how do you treat this syndrome now why do you get a paralyzed phantom limb when i looked at the case sheet i found that they had an actual arm and the nerves supplying the arm had been cut and the actual arm had been paralyzed and lying in a sling for several months before the amputation and this pain then gets carried over into the phantom itself why does this happen when the arm was intact but paralyzed the brain sends commands to the arm the front of the brain saying move but it s getting visual feedback saying no move no move no move no and this gets wired into the circuitry of the brain and we call this learned paralysis ok the brain learns because of this hebbian associative link that the mere command to move the arm creates a sensation of a paralyzed arm and then when you ve amputated the arm this learned paralysis carries over into your body image and into your phantom ok now how do you help these patients how do you unlearn the learned paralysis so you can relieve him of this excruciating clenching spasm of the phantom arm well we said what if you now send the command to the phantom but give him visual feedback that it s obeying his command right maybe you can relieve the phantom pain the phantom cramp how do you do that well virtual reality but that costs millions of dollars so i hit on a way of doing this for three dollars but do n t tell my funding agencies ok what you do is you create what i call a mirror box you have a cardboard box with a mirror in the middle and then you put the phantom so my first patient derek came in he had his arm amputated 10 years ago he had a brachial avulsion so the nerves were cut and the arm was paralyzed lying in a sling for a year and then the arm was amputated he had a phantom arm excruciatingly painful and he could n t move it it was a paralyzed phantom arm so he came there and i gave him a mirror like that in a box which i call a mirror box right and the patient puts his phantom left arm which is clenched and in spasm on the left side of the mirror and the normal hand on the right side of the mirror and makes the same posture the clenched posture and looks inside the mirror and what does he experience he looks at the phantom being resurrected because he s looking at the reflection of the normal arm in the mirror and it looks like this phantom has been resurrected now i said now look wiggle your phantom your real fingers or move your real fingers while looking in the mirror he s going to get the visual impression that the phantom is moving right that s obvious but the astonishing thing is the patient then says oh my god my phantom is moving again and the pain the clenching spasm is relieved and remember my first patient who came in thank you my first patient came in and he looked in the mirror and i said look at your reflection of your phantom and he started giggling he says i can see my phantom but he s not stupid he knows it s not real he knows it s a mirror reflection but it s a vivid sensory experience now i said move your normal hand and phantom he said oh i ca n t move my phantom you know that it s painful i said move your normal hand and he says oh my god my phantom is moving again i do n t believe this and my pain is being relieved ok and then i said close your eyes he closes his eyes and move your normal hand oh nothing it s clenched again ok open your eyes oh my god oh my god it s moving again so he was like a kid in a candy store so i said ok this proves my theory about learned paralysis and the critical role of visual input but i m not going to get a nobel prize for getting somebody to move his phantom limb it s a completely useless ability if you think about it but then i started realizing maybe other kinds of paralysis that you see in neurology like stroke focal dystonias there may be a learned component to this which you can overcome with the simple device of using a mirror so i said look derek well first of all the guy ca n t just go around carrying a mirror to alleviate his pain i said look derek take it home and practice with it for a week or two maybe after a period of practice you can dispense with the mirror unlearn the paralysis and start moving your paralyzed arm and then relieve yourself of pain so he said ok and he took it home i said look it s after all two dollars take it home so he took it home and after two weeks he phones me and he said doctor you re not going to believe this i said what he said it s gone i said what s gone i thought maybe the mirror box was gone he said no no no you know this phantom i ve had for the last 10 years it s disappeared and i said i got worried i said my god i mean i ve changed this guy s body image what about human subjects ethics and all of that and i said derek does this bother you he said no last three days i ve not had a phantom arm and therefore no phantom elbow pain no clenching no phantom forearm pain all those pains are gone away but the problem is i still have my phantom fingers dangling from the shoulder and your box does n t reach so can you change the design and put it on my forehead so i can you know do this and eliminate my phantom fingers he thought i was some kind of magician now why does this happen it s because the brain is faced with tremendous sensory conflict it s getting messages from vision saying the phantom is back on the other hand there s no appropriate reception muscle signals saying that there is no arm right and your motor command saying there is an arm and because of this conflict the brain says to hell with it there is no phantom there is no arm right it goes into a sort of denial negates the signals and when the arm disappears the bonus is the pain disappears because you ca n t have disembodied pain floating out there in space so that s the bonus now this technique has been tried on dozens of patients by other groups in helsinki so it may prove to be valuable as a treatment for phantom pain and indeed people have tried it for stroke rehabilitation stroke you normally think of as damage to the fibers nothing you can do about it but it turns out some component of stroke paralysis is also learned paralysis and maybe that component can be overcome using mirrors this has also gone through clinical trials helping lots and lots of patients ok let me switch gears now to the third part of my talk which is about another curious phenomenon called synesthesia this was discovered by francis galton in the nineteenth century he was a cousin of charles darwin he pointed out that certain people in the population who are otherwise completely normal had the following peculiarity every time they see a number it s colored five is blue seven is yellow eight is chartreuse nine is indigo ok bear in mind these people are completely normal in other respects or c sharp sometimes tones evoke color c sharp is blue f sharp is green another tone might be yellow right why does this happen this is called synesthesia galton called it synesthesia a mingling of the senses in us all the senses are distinct these people muddle up their senses why does this happen one of the two aspects of this problem are very intriguing synesthesia runs in families so galton said this is a hereditary basis a genetic basis secondly synesthesia is about and this is what gets me to my point about the main theme of this lecture which is about creativity synesthesia is eight times more common among artists poets novelists and other creative people than in the general population why would that be i m going to answer that question it s never been answered before ok what is synesthesia what causes it well there are many theories one theory is they re just crazy now that s not really a scientific theory so we can forget about it another theory is they are acid junkies and potheads right now there may be some truth to this because it s much more common here in the bay area than in san diego ok now the third theory is that well let s ask ourselves what s really going on in synesthesia all right so we found that the color area and the number area are right next to each other in the brain in the fusiform gyrus so we said there s some accidental cross wiring between color and numbers in the brain so every time you see a number you see a corresponding color and that s why you get synesthesia now remember why does this happen why would there be crossed wires in some people remember i said it runs in families that gives you the clue and that is there is an abnormal gene a mutation in the gene that causes this abnormal cross wiring in all of us it turns out we are born with everything wired to everything else so every brain region is wired to every other region and these are trimmed down to create the characteristic modular architecture of the adult brain so if there s a gene causing this trimming and if that gene mutates then you get deficient trimming between adjacent brain areas and if it s between number and color you get number color synesthesia if it s between tone and color you get tone color synesthesia so far so good now what if this gene is expressed everywhere in the brain so everything is cross connected well think about what artists novelists and poets have in common the ability to engage in metaphorical thinking linking seemingly unrelated ideas such as it is the east and juliet is the sun well you do n t say juliet is the sun does that mean she s a glowing ball of fire i mean schizophrenics do that but it s a different story right normal people say she s warm like the sun she s radiant like the sun she s nurturing like the sun instantly you ve found the links now if you assume that this greater cross wiring and concepts are also in different parts of the brain then it s going to create a greater propensity towards metaphorical thinking and creativity in people with synesthesia and hence the eight times more common incidence of synesthesia among poets artists and novelists ok it s a very phrenological view of synesthesia the last demonstration can i take one minute ok i m going to show you that you re all synesthetes but you re in denial about it here s what i call martian alphabet just like your alphabet a is a b is b c is c different shapes for different phonemes right here you ve got martian alphabet one of them is kiki one of them is buba which one is kiki and which one is buba how many of you think that s kiki and that s buba raise your hands well it s one or two mutants how many of you think that s buba that s kiki raise your hands ninety nine percent of you now none of you is a martian how did you do that it s because you re all doing a cross model synesthetic abstraction meaning you re saying that that sharp inflection ki ki in your auditory cortex the hair cells being excited kiki mimics the visual inflection sudden inflection of that jagged shape now this is very important because what it s telling you is your brain is engaging in a primitive it s just it looks like a silly illusion but these photons in your eye are doing this shape and hair cells in your ear are exciting the auditory pattern but the brain is able to extract the common denominator it s a primitive form of abstraction and we now know this happens in the fusiform gyrus of the brain because when that s damaged these people lose the ability to engage in buba kiki but they also lose the ability to engage in metaphor if you ask this guy what all that glitters is not gold what does that mean the patient says well if it s metallic and shiny it does n t mean it s gold you have to measure its specific gravity ok so they completely miss the metaphorical meaning so this area is about eight times the size in higher especially in humans as in lower primates something very interesting is going on here in the angular gyrus because it s the crossroads between hearing vision and touch and it became enormous in humans and something very interesting is going on and i think it s a basis of many uniquely human abilities like abstraction metaphor and creativity all of these questions that philosophers have been studying for millennia we scientists can begin to explore by doing brain imaging and by studying patients and asking the right questions thank you sorry about that
|
9da1883e05e31b568bbbc1277ae01e8180d96f02
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2006/CH5/EX5.4/ex5_4.sce
|
9f2dc7ed3b7da54213539cb5990b9d5cf84e03ae
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,225
|
sce
|
ex5_4.sce
|
clc;
V1=0.3; // Initial volume of water upto stop 1 in m^3
p1=1; // Initial pressure of water in bar
x1=0.2; // Dryness fraction at initial state (1)
p2=3; // Pressur required to lift the piston in bar
V4=0.45; // Volume of water upto stop 2 in m^3
vf1=0.001043; // Specific volume at state (1) from steam table in m^3/kg
vg1=1.694; // Specific volume at state (1) from steam table in m^3/kg
v1=vf1+x1*(vg1-vf1); // Total Specific volume at state (1) from steam table in m^3/kg
m=V1/v1; // Mass of water
v3=V4/m; // Specific volume at stop 2
v2=v1; p3=p2; v4=v3; V3=V4; V2=V1; // From process diagram
// (a)
p4=0.361; // Final Pressure at v4 from steam table in Mpa
disp ("MPa",p4,"Fianl pressure = ","(a)");
// (b)
W14=p2*10^2*(V3-V2); // Work done in process
uf1=417.36; // Specific internal energ at initial state in kJ/kg
ufg1=2088.7; // Specific internal energ at initial state in kJ/kg
u1=uf1+x1*ufg1; // Total Specific internal energr at initial state in kJ.kg
u4=2550.2; // Specific internal energ at final state in kJ/kg
Q14=m*(u4-u1)+W14; // From first law of thermodynamics
disp ("kJ",W14,"Work done during the process = ","(b)");
disp ("kJ",Q14,"Heat transfer during the process = ");
|
8921c6f12e05f9e4e1e2b398b220f5bb9beca369
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3769/CH23/EX23.15/Ex23_15.sce
|
b029d0ee4fe0138194933ab30dd1ce1a3c9a4cb0
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 118
|
sce
|
Ex23_15.sce
|
clear
//Given
v=100
//Calculation
//
l=12.27/sqrt(v)
//Result
printf("\n Wavelength of an electron is %0.3f A", l)
|
8ef16fe31e4e3076381e54c8bba6f7189f554674
|
fd4b1f9f2f7fc4cac772482125a749e51c444ca1
|
/Gerschgorin.sci
|
85f4fac78c7d6e24283d1424473f186f36a9ae9e
|
[] |
no_license
|
barufa/Metodos_Numericos
|
db0cb98dbf81654ec14f73cb34b84ba7c98ac52a
|
012d08e8de6e971a38a32c9768f463ca58a07839
|
refs/heads/master
| 2020-03-15T22:49:33.054047
| 2018-09-03T13:18:24
| 2018-09-03T13:18:24
| 132,380,939
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 392
|
sci
|
Gerschgorin.sci
|
function [C,R] = Gerschgorin(A,n)
C=%inf
R=-%inf
for i=1:n
r=0
d=0
c=0
for j=1:n
if i==j then
c=A(i,j)
else
r=r+abs(A(i,j))
end
end
d=r+c
if C>c then
C=c
end
if R<d then
R=d
end
end
R=R-C
endfunction
|
92f8977c51d15f4a9a8d62a455a74bddf70a0fba
|
e02aa9695b075784e5d6aba93cab02d1864f1039
|
/Analyse/TP1/carre.sce
|
b9127fd69f69d66325418735e16329890475e705
|
[] |
no_license
|
michelprojets/Ensimag1
|
1a4cf84203f0e63a71ece278bf364d32d2219825
|
b9ed4a050c7c548781a9e26d99747e8883c5c1f5
|
refs/heads/master
| 2021-09-13T15:47:16.632446
| 2018-05-01T18:17:26
| 2018-05-01T18:17:26
| 103,514,194
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 66
|
sce
|
carre.sce
|
//fonction carre
function d = carre(x)
d = x .* x
endfunction
|
2a3f53711c984026cc1cfb477e45025a9d384104
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1760/CH2/EX2.107/EX2_107.sce
|
3aebaf261b453738d4a6376d56a2b142fa501521
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 223
|
sce
|
EX2_107.sce
|
//EXAMPLE 2-107 PG NO-145
Vm=100;
RMS=Vm/{sqrt(3)};
disp('i) RMS (RMS) is = '+string (RMS) +' ');
AVG=50;
FF=RMS/AVG;
disp('ii) Form Factor (FF) is = '+string (FF) +' ');
|
8e14a975d96903d419bd68c4b743fd763850a806
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/67/CH7/EX7.37/example737.sce
|
dffbf31186d0ec088e0e711b8a79d7dc060fc864
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 73
|
sce
|
example737.sce
|
//Example 7.37
clc;
syms z n;
x=(1/2)^n;
X=symsum(x*(z^-n),n,0,%inf);
|
813f008892127dcd0003877b4b3f855503608bd0
|
7b040f1a7bbc570e36aab9b2ccf77a9e59d3e5c2
|
/2-DOF_manual/2dof/2dof.sci
|
96308d3b6ce9427695f150a42c7cd73ca05a8c6f
|
[] |
no_license
|
advait23/sbhs-manual
|
e2c380051117e3a36398bb5ad046781f7b379cb9
|
d65043acd98334c44a0f0dbf480473c4c4451834
|
refs/heads/master
| 2021-01-16T19:50:40.218314
| 2012-11-16T04:11:12
| 2012-11-16T04:11:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,252
|
sci
|
2dof.sci
|
mode(0)
//2DOF Controller
//Heater input is passed as input argument to introduce control effort 'CO'
//Fan input is passed as input argument which is kept at constant level(disturbance)
//Range of Fan input :60 to 252
//Temperature is read
function [temp,heat,e_new] = twodof(setpoint,fan)
global temp CO u_new u_old u_old_old r_old y_old Rc1 Rc2 Rc3 Sc1 Sc2 Tc1 Tc2 gamm
e_new = setpoint - temp;
r_new = setpoint;
y_new = temp;
u_new = (1/Rc1)*(gamm*Tc1*r_new + gamm*Tc2*r_old-Sc1*y_new -Sc2*y_old-Rc2*u_old - Rc3*u_old_old);
CO = u_new;
if CO>39
CO = 39;
end;
if CO<0
CO =0;
end;
u_new = CO;
u_old_old = u_old;
u_old = u_new;
r_old = r_new;
y_old = y_new;
heat = u_new;
writeserial(handl,ascii(254)); //Input Heater, writeserial accepts strings; so convert 254 into its string equivalent
writeserial(handl,ascii(heat));
writeserial(handl,ascii(253)); //Input Fan
writeserial(handl,ascii(fan));
writeserial(handl,ascii(255)); //To read Temp
sleep(100);
temp = ascii(readserial(handl)); // Read serial returns a string, so convert it to its integer(ascii) equivalent
temp = temp(1) + 0.1*temp(2); // convert to temp with decimal points eg: 40.7
endfunction;
|
323f1619ffd730eec8dc4d05477054cc526b9c5a
|
1bb72df9a084fe4f8c0ec39f778282eb52750801
|
/test/S00.prev.tst
|
2906124776e128fda7ae01038f1da42b088ee56c
|
[
"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
| 65
|
tst
|
S00.prev.tst
|
new PolyVector(" [ x^2 ,4 * y, y * z * 3 ] ") = [x^2,4*y,3*y*z]
|
a49ec04e8b4771badffd0f6c0fc279cef64e2f62
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2882/CH7/EX7.17/Ex7_17.sce
|
31f7834cc5b5837ff5b3fa9bf2a93ea1bec39421
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 490
|
sce
|
Ex7_17.sce
|
//Tested on Windows 7 Ultimate 32-bit
//Chapter 7 Field Effect Transistors Pg no. 254 and 255
clear;
clc;
//Given Data
//Figure 7.50
IDSS=15D-3;//drain saturation current in amperes
VGS0=-6;//cut-off gate to source voltage in volts
VDD=20;//drain supply voltage in volts
RD=470;//drain resistance in ohms
RG=8.2D6;//gate resistance in ohms
//Solution
ID=IDSS;//drain current in amperes
VDS=VDD-ID*RD;//drain to source voltage in volts
printf("VDS = %.2f Volts",VDS);
|
93becf124690782900526068029486cfc5067ecc
|
97017a470429005680749e532db421e227811489
|
/SampleDesign2/AddSub.tst
|
11f48d2ff7f40f3660f71da8f83ae0bfef60876d
|
[] |
no_license
|
Shradha97/CSD_Lab
|
fe8d688c4e166a2d1208379490567a7cdcf26956
|
75946ae44f4cafdea6c97941bb788afe6039f6f9
|
refs/heads/master
| 2020-07-12T02:52:18.602256
| 2019-11-18T21:04:50
| 2019-11-18T21:04:50
| 204,697,978
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 770
|
tst
|
AddSub.tst
|
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/02/Add16.tst
load Add16.hdl,
output-file AddSub.out,
compare-to AddSub.cmp,
output-list a%B1.16.1 b%B1.16.1 out%B1.16.1;
set a %B0000000000000000,
set b %B0000000000000000,
set contr %B1,
eval,
output;
set a %B0000000000000000,
set b %B1111111111111111,
set contr %B0,
eval,
output;
set a %B1111111111111111,
set b %B1111111111111111,
set contr %B1,
eval,
output;
set a %B1010101010101010,
set b %B0101010101010101,
set contr %B0,
eval,
output;
set a %B0011110011000011,
set b %B0000111111110000,
set contr %B1,
eval,
output;
set a %B0001001000110100,
set b %B1001100001110110,
set contr %B0,
eval,
output;
|
b1d63b5b8dd1f0aa5105a11d097676be76e819a6
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/788/CH14/EX14.6.b/14_6_soln.sce
|
ea0b5e39d81e103ed526d4fffb9dfc0496fdafa9
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 511
|
sce
|
14_6_soln.sce
|
clc;
pathname=get_absolute_file_path('14_6_soln.sce')
filename=pathname+filesep()+'14_6_data.sci'
exec(filename)
// Solutions:
// time required to achieve the desired vacuum pressure,
t=(V/Q)*log(p_atm/p_vacuum); //min
// time required to achieve perfect vacuum pressure,
t1=(V/Q)*log(p_atm/0.5); //min
// Results:
printf("\n Results: ")
printf("\n The time required to achieve the desired vacuum pressure is %.2f min.",t)
printf("\n The time required to achieve perfect vacuum pressure is %.2f min.",t1)
|
42b643a83e60f26ae27857a0896fe10dab4b24ed
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2300/CH6/EX6.11.2/Ex6_2.sce
|
57501ef5b1b9afd77d869c53b5c0cc5364b9caf9
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,059
|
sce
|
Ex6_2.sce
|
//scilab 5.4.1
//windows 7 operating system
//chapter 6:Diode Circuits
clc;
clear;
//given data
Rf=100; //forward resistance in ohms
Rl=1000; //load resistance in ohms
n=10; //Primary to secondary turns ratio
Vp=240; //Primary input V(rms)
Vm=24*(2^(1/2))/2; //secondary peak voltage from cenre tap
Vs=Vp/n; //Secondary input voltage
Im=Vm/(Rf+Rl); //peak current through the resistance in A
Idc=(2*Im)/%pi; //DC Load current in A
format("v",8)
disp('A',Idc,'DC load current Idc=',);
I=Idc/2; //Direct current supplied by each diode in A
format("v",7)
disp('A',I,'Direct current supplied by each diode Idc=',);
Pdc=Idc*Idc*Rl; //DC power output
format("v",6)
disp('W',Pdc,'Pdc=');
Irms=Im/(2^(1/2));
Vrp=sqrt((Irms*Irms)-(Idc*Idc))*Rl; //Ripple voltage in V
format("v",7)
disp('V',Vrp,'Ripple voltage Vrp=');
M=(Rf*100)/Rl; //percentage regulation
disp('%',M,'Percentage regulation=');
n=81.2/(1+(Rf/Rl)); //Efficiency of rectification
format("v",5)
disp('%',n,'Efficiency of rectification');
//end
|
2d7f3d6c4e2e72673794252fa09a986b37586ef1
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2825/CH1/EX1.5/Ex1_5.sce
|
101298f80e32c84a2abb9dd54c2825f137b702b2
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 961
|
sce
|
Ex1_5.sce
|
//Ex1_5 Pg-45
clc
disp("Refer to the figure 1.55")
disp("(a) R_L varies from 1 ohm to 10 ohm.")
disp("Currents for two extreme values of R_L are")
Vs=10 //supply voltage
RL1=1 //resistance RL1
Rs=100 //source resistance
IL1=(Vs/(RL1+Rs))
RL2=10
IL2=(Vs/(RL2+Rs))
per_var_cur=((IL1-IL2)/IL1)*100
printf("\n Percentage variation in current = %.2f %%\n",per_var_cur)//answer in the text book took a .3 decimal round off value
disp(" Now,load voltage for the two extreme values of R_L are")
VL1=IL1*RL1
VL2=IL2*RL2
per_var_vol=((VL2-VL1)/VL2)*100
printf("\n Percentage variation in current = %.2f %%\n",per_var_vol)
disp("(b) R_L varies from 1 k-ohm to 10 k-ohm (Figure 1.55(b))")
disp("Currents for the two extreme values R_L are")
RL11=1000
IL11=(Vs/(RL11+Rs))
RL22=10000
IL22=(Vs/(RL22+Rs)) //mistake in book value
per_var_cur11=((IL11-IL22)/IL11)*100
printf("\n Percentage variation in current = %.2f %%\n",per_var_cur11) //mistake in book value
|
91f14a1ae81f3aec911854de7561eba62733e593
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/343/CH4/EX4.21/ex4_21.sce
|
330c03757248f5a0956298af57015abb2301cb0a
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 484
|
sce
|
ex4_21.sce
|
clc
r1=0.3 //Assigning values to parameters
r2=0.01
x1=1.1
x2=0.035
kva=100
v1=2200
e1=v1
n1=400
n2=80
k=n2/n1
r01=r1+r2/(k*k)
x01=x1+x2/(k*k)
z01=sqrt(r01*r01+x01*x01)
e2=k*e1
i2=kva*1000/e2
r02=k*k*r01
x02=k*k*x01
t=acosd(0.8)
pr1=(i2*r02*cosd(t)-i2*x02*sind(t))*100/e2
v2=e2-(e2*pr1/100)
disp("ohms",z01,"The equivalent primary resistance is")
disp(pr1,"The percentage voltage regulation at full load 0.8 pf leading is");
disp("Volts",v2,"The secondary terminal voltage is")
|
4518e2019e35a148331eb0fe15f41760a0d8f3fd
|
06a62d768e69fd9dda11b30011c252807e301813
|
/pgm15.sci
|
81adf691e5c92c159603bff14bda20a568ad0511
|
[] |
no_license
|
vikram-niit/matlab
|
36ce3d9539629128251eab060164ce81c03aa690
|
da8aeb4d727c47474d37676650664bd028d7e41d
|
refs/heads/master
| 2020-03-18T13:40:37.068765
| 2018-05-25T03:51:55
| 2018-05-25T03:51:55
| 134,800,217
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 160
|
sci
|
pgm15.sci
|
function [y] = pgm15(t)
r = 0.35;
g = 9.8;
v0 = 20;
vr = g/r;
y = ((v0 + vr)/r)*(1-exp(-1*r*t)) - (vr*t);
endfunction
|
30502a59b8d9602c92d4cae43dc675daf98e405f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1427/CH3/EX3.1/3_1.sce
|
1cad54dffb95453ad48f8a1989b387cf5fc8bf30
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 562
|
sce
|
3_1.sce
|
//ques-3.1
//Calculating weight average and number average molecular mass of polymer
clc
n1=10; m1=5000; //Type-1
n2=20; m2=7500; //Type-2
n3=20; m3=10000; //Type-3
n4=25; m4=15000; //Type-4
n5=20; m5=20000; //Type-5
n6=5; m6=25000; //Type-6
N_avg=(n1*m1+n2*m2+n3*m3+n4*m4+n5*m5+n6*m6)/(n1+n2+n3+n4+n5+n6);//Number-average
W_avg=(n1*m1^2+n2*m2^2+n3*m3^2+n4*m4^2+n5*m5^2+n6*m6^2)/(n1*m1+n2*m2+n3*m3+n4*m4+n5*m5+n6*m6);//Weight average
printf("The number-average and weight-average molecular mass of polymer are %d and %d repectively.",N_avg,W_avg);
|
706a12332f11156b2d38e95d642a99662f32a30e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3434/CH7/EX7.3/Ex7_3.sce
|
505c50461aa891ff8ca68988f6e21e834556f6c3
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 365
|
sce
|
Ex7_3.sce
|
// Given Data
// given data
clear();
clc();
u0=15.0 // wind speed in m/s
R=80/2.0 // radius of rotor in m
n=3 // number of blades
Lambda=4*%pi/n // condition of tip ratio for maximum output
w=Lambda*u0/R // using Eq 7.21 rotor speed in rad/s
N=w*60/(2*%pi) // rotor speed in RPM
printf( "For optimum energy the rotor speed should be %.1f rpm",N)
|
7b1e2f6ca0224a6a705786803bc017fb577b1af5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2216/CH12/EX12.5/ex_12_5.sce
|
d2514ea37c244f96e57bf372eac06321f8281146
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 530
|
sce
|
ex_12_5.sce
|
//Example 12.5: SBS threshold power
clc;
clear;
close;
//given data :
gb=4*10^-11;// in m/W
A_eff=55*10^-12;// in m^2
L_eff=20;// in km
lamda_p=1.55;// micro-m
n=1.46;// constant
Va=5960;// for the silica fiber in m-s^-1
Vb=(2*n*Va)/lamda_p;
del_v=100*10^6;// in Hz
del_Vb=20*10^6;// in Hz
b1=1;
b2=2;
P_th=((21*b1*A_eff)/(gb*L_eff))*(1+(del_v/del_Vb))
P_th1=((21*b2*A_eff)/(gb*L_eff))*(1+(del_v/del_Vb))
disp(P_th,"SBS threshold power for the worst case in mW")
disp(P_th1,"SBS threshold power for the best possible case in mW")
|
89523e0df25cbb81e01d61971652f6d954a84085
|
b948892b36eefdb35c47c821c51f69bb60989633
|
/DownSampler.sce
|
97625dee08eb654c3e8efb7a584e14645c0359d5
|
[] |
no_license
|
lucas-medeiros/Digital-Signal-Processing
|
c5479eab20119e72ccb6adfe1c1d45fddf6dae7c
|
ba329ce5e5f6ca9ba7d46faba8661e9344627f9d
|
refs/heads/master
| 2020-07-15T04:51:18.868263
| 2019-08-31T02:20:15
| 2019-08-31T02:20:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 566
|
sce
|
DownSampler.sce
|
function vet = DownSampler(sinal,M)
//M = input('Insira o valor de M: ');
if (M < 1) then //M deve ser maior ou igual a 1
printf('Insira um valor válido para M');
return
end
N = length(sinal); //tamanho do sinal de entrada
vet = zeros([1:1:N/M]); //vetor resposta tera tamanho N/M
for a = 1:1:N/M
if ((M*a) > N)
vet(a) = 0;
else
vet(a) = sinal(M*a);
end
end
disp(vet)
x = ([1:1:N/M]); //vetor de 0 a N pro eixo X
plot(x,vet)
endfunction
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.