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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47acb1f28089ba86980df85afbe2150f82a02bd2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /911/CH14/EX14.2/ex_14_2.sce | ab344326be721fb73d28d3d84e74076de2d40ced | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 645 | sce | ex_14_2.sce | //example 14.2//
clc
//clears the screen//
clear
//clears all existing variables//
disp('We know that MSB of straight binary number is same as MSB of the Gray code equivalent. This can be passed on as such to the output. In that case, each memory location of the ROM needs to store only a three bit data as the fourth bit is available as such from the input. The required size of ROM is therefore 16*3. The three bit data to be programmed into 16 different memory locations of the ROM corresponding to address inputs of 0000 to 1111 in the same order would be 000, 001, 011, 010, 110, 111, 101, 100, 101, 111, 110, 010, 011, 001, and 000.') |
1cd8ea5d89e4eb855d71b17ca665fad59dac51ae | 717ddeb7e700373742c617a95e25a2376565112c | /3460/CH2/EX2.14/Ex2_14.sce | 67a533581b83d9d6319011182129d48bdb0d9000 | [] | 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 | 254 | sce | Ex2_14.sce | clc;
//refer fig 2-22(B)
L_1A=10*1e-3; //in henry
L_1B=10*1e-3; //in henry
c=10*1e-12; //in faraday
k=0.1; //coefficient of coupling
pi=3.14;
L_M=k*sqrt(L_1A*L_1B);
L_eq=L_1A+L_1B+(2*L_M);
f_op=1/(2*pi*sqrt(L_eq*c));
disp(+'Hz',f_op,'f_op =')
|
6656b7f9c93acd5e0990723f2858f191810c6871 | 06a62d768e69fd9dda11b30011c252807e301813 | /lab/gausssidelmethod.sci | 2063e6b3ab5038f3dbd1655b6a950682f8245d22 | [] | 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 | 1,260 | sci | gausssidelmethod.sci | function [x, y, norm3] = gausssidelmethod(A, b)
disp(x);
m = size(A, 1);
n = size(A, 2);
// compute L
for i=1:m
for j=1:n
if j<i
L(i, j) = A(i, j);
else
L(i, j) = 0;
end
end
end
// compute D
for i=1:m
for j=1:n
if j==i
D(i, j) = A(i, j);
else
D(i, j) = 0;
end
end
end
// compute U
for i=1:m
for j=1:n
if j>i
U(i, j) = A(i, j);
else
U(i, j) = 0;
end
end
end
dPlusLInverse = inv(D+L);
T = matrixMultiply(dPlusLInverse, -1*U);
c = matrixMultiply(dPlusLInverse, b);
disp(D+L);
disp(inv(D+L));
disp(T);
disp(c);
for i=1:n
x(i, 1) = 0;
end
y(:,1) = x;
for i=2:100
x = matrixMultiply(T, x) + c;
y(:, i) = x;
disp(i);
norm3(i) = max(abs(y(:,i) - y(:,i-1)))/(max(abs(y(:,i))));
if(norm3(i) < 10^-5) break;
end
end
endfunction
|
b852c2399d2c86de472d5d5bd72366784d399a53 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3792/CH3/EX3.13/Ex3_13.sce | b115ee8e9abebaf925e6de33d3db2479a5e7dd80 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 487 | sce | Ex3_13.sce | // SAMPLE PROBLEM 3/13
clc;clear;funcprot(0);
// Given data
m=50;// The mass of the block in kg
F=300;// N
x_1=0.233;// m
k=80;// The spring stifness in N/m
x=1.2;// m
y=0.9;// m
// Calculation
x_2=x_1+x;// m
U_12=(1/2)*k*(x_1^2-x_2^2);// The work done by the spring force acting on the block in J
s=sqrt(x^2+y^2)-y;// m
W=F*s;// The work done in J
T_1=0;// J
v=sqrt(((U_12+W)*2)/m);// m/s
printf("\nThe velocity of the block as it reaches position B,v=%1.2f m/s",v);
|
0ed2a86d43609ec5336a76175364e937d1ad87fc | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/AT15JVL/ATWM1_Working_Memory_MEG_AT15JVL_Session1/ATWM1_Working_Memory_MEG_Salient_Cued_Run1.sce | ee2104ea95504c5f9463c169ee15d5048fdb2f19 | [] | 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,381 | sce | ATWM1_Working_Memory_MEG_Salient_Cued_Run1.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_run1";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monitor_sounds = false;
active_buttons = 2;
response_matching = simple_matching;
button_codes = 10, 20;
default_font_size = 36;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 382; width = 382; color = 0, 0, 0;} frame1;
box { height = 369; width = 369; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 369; width = 369; color = 42, 42, 42;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# Start of experiment (MEG only) - sync with CTF software
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
} expStart;
time = 0;
duration = 1000;
code = "ExpStart";
port_code = 80;
};
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 10000;
#mri_pulse = 1;
code = "BaselinePre";
port_code = 91;
};
TEMPLATE "ATWM1_Working_Memory_MEG.tem" {
trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
41 61 292 292 399 125 1742 2992 2142 fixation_cross gabor_035 gabor_001 gabor_159 gabor_125 gabor_035 gabor_001_alt gabor_159_alt gabor_125 "1_1_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2150_gabor_patch_orientation_035_001_159_125_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_019_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_1_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_019_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2042 2992 2542 fixation_cross gabor_133 gabor_058 gabor_026 gabor_164 gabor_133 gabor_058_alt gabor_026 gabor_164_alt "1_2_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2550_gabor_patch_orientation_133_058_026_164_target_position_2_4_retrieval_position_2" gabor_circ gabor_107_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_2_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_107_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1842 2992 2042 fixation_cross gabor_028 gabor_081 gabor_140 gabor_113 gabor_028 gabor_081 gabor_140_alt gabor_113_alt "1_3_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2050_gabor_patch_orientation_028_081_140_113_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_159_framed blank blank blank blank fixation_cross_target_position_3_4 "1_3_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_159_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1792 2992 1942 fixation_cross gabor_085 gabor_019 gabor_148 gabor_058 gabor_085_alt gabor_019 gabor_148 gabor_058_alt "1_4_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_1950_gabor_patch_orientation_085_019_148_058_target_position_1_4_retrieval_position_1" gabor_085_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_4_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_085_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2242 2992 2142 fixation_cross gabor_090 gabor_157 gabor_174 gabor_069 gabor_090_alt gabor_157_alt gabor_174 gabor_069 "1_5_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2150_gabor_patch_orientation_090_157_174_069_target_position_1_2_retrieval_position_2" gabor_circ gabor_157_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_5_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_157_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1742 2992 2492 fixation_cross gabor_155 gabor_002 gabor_086 gabor_021 gabor_155_alt gabor_002_alt gabor_086 gabor_021 "1_6_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_300_300_399_1750_3000_2500_gabor_patch_orientation_155_002_086_021_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_021_framed blank blank blank blank fixation_cross_target_position_1_2 "1_6_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_021_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2092 2992 2292 fixation_cross gabor_127 gabor_155 gabor_081 gabor_112 gabor_127 gabor_155_alt gabor_081 gabor_112_alt "1_7_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2300_gabor_patch_orientation_127_155_081_112_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_065_framed blank blank blank blank fixation_cross_target_position_2_4 "1_7_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1992 2992 2542 fixation_cross gabor_025 gabor_059 gabor_090 gabor_145 gabor_025_alt gabor_059 gabor_090 gabor_145_alt "1_8_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2550_gabor_patch_orientation_025_059_090_145_target_position_1_4_retrieval_position_1" gabor_025_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_8_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_025_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1792 2992 2542 fixation_cross gabor_180 gabor_123 gabor_147 gabor_017 gabor_180_alt gabor_123_alt gabor_147 gabor_017 "1_9_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2550_gabor_patch_orientation_180_123_147_017_target_position_1_2_retrieval_position_1" gabor_180_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_9_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_180_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 2192 2992 2092 fixation_cross gabor_011 gabor_163 gabor_041 gabor_092 gabor_011_alt gabor_163_alt gabor_041 gabor_092 "1_10_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2100_gabor_patch_orientation_011_163_041_092_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 "1_10_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_041_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 1942 fixation_cross gabor_039 gabor_081 gabor_060 gabor_147 gabor_039 gabor_081_alt gabor_060_alt gabor_147 "1_11_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_1950_gabor_patch_orientation_039_081_060_147_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_015_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_11_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1842 2992 2492 fixation_cross gabor_093 gabor_129 gabor_075 gabor_156 gabor_093_alt gabor_129 gabor_075_alt gabor_156 "1_12_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2500_gabor_patch_orientation_093_129_075_156_target_position_1_3_retrieval_position_1" gabor_045_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_12_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_045_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1892 2992 2292 fixation_cross gabor_054 gabor_122 gabor_080 gabor_104 gabor_054 gabor_122_alt gabor_080_alt gabor_104 "1_13_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2300_gabor_patch_orientation_054_122_080_104_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 "1_13_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_122_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 2042 fixation_cross gabor_024 gabor_131 gabor_147 gabor_063 gabor_024_alt gabor_131_alt gabor_147 gabor_063 "1_14_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2050_gabor_patch_orientation_024_131_147_063_target_position_1_2_retrieval_position_2" gabor_circ gabor_083_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_14_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_083_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1742 2992 2192 fixation_cross gabor_070 gabor_105 gabor_129 gabor_042 gabor_070 gabor_105_alt gabor_129_alt gabor_042 "1_15_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_070_105_129_042_target_position_2_3_retrieval_position_2" gabor_circ gabor_105_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_15_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_105_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2142 2992 2242 fixation_cross gabor_049 gabor_088 gabor_071 gabor_018 gabor_049 gabor_088 gabor_071_alt gabor_018_alt "1_16_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2250_gabor_patch_orientation_049_088_071_018_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_018_framed blank blank blank blank fixation_cross_target_position_3_4 "1_16_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_018_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 2142 2992 2092 fixation_cross gabor_148 gabor_170 gabor_086 gabor_013 gabor_148 gabor_170 gabor_086_alt gabor_013_alt "1_17_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_300_300_399_2150_3000_2100_gabor_patch_orientation_148_170_086_013_target_position_3_4_retrieval_position_2" gabor_circ gabor_121_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_17_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_121_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2392 fixation_cross gabor_052 gabor_162 gabor_036 gabor_006 gabor_052 gabor_162_alt gabor_036_alt gabor_006 "1_18_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2400_gabor_patch_orientation_052_162_036_006_target_position_2_3_retrieval_position_2" gabor_circ gabor_162_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_18_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_162_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 2042 2992 2042 fixation_cross gabor_150 gabor_168 gabor_039 gabor_090 gabor_150 gabor_168_alt gabor_039_alt gabor_090 "1_19_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_300_300_399_2050_3000_2050_gabor_patch_orientation_150_168_039_090_target_position_2_3_retrieval_position_1" gabor_013_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_19_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_013_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1842 2992 1942 fixation_cross gabor_035 gabor_151 gabor_177 gabor_087 gabor_035_alt gabor_151_alt gabor_177 gabor_087 "1_20_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_1950_gabor_patch_orientation_035_151_177_087_target_position_1_2_retrieval_position_2" gabor_circ gabor_104_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_20_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 2042 fixation_cross gabor_132 gabor_063 gabor_117 gabor_043 gabor_132 gabor_063 gabor_117_alt gabor_043_alt "1_21_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2050_gabor_patch_orientation_132_063_117_043_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_043_framed blank blank blank blank fixation_cross_target_position_3_4 "1_21_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_043_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 2442 fixation_cross gabor_048 gabor_157 gabor_095 gabor_077 gabor_048_alt gabor_157 gabor_095 gabor_077_alt "1_22_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2450_gabor_patch_orientation_048_157_095_077_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_077_framed blank blank blank blank fixation_cross_target_position_1_4 "1_22_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_077_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2042 2992 2392 fixation_cross gabor_005 gabor_139 gabor_177 gabor_050 gabor_005 gabor_139 gabor_177_alt gabor_050_alt "1_23_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2400_gabor_patch_orientation_005_139_177_050_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_050_framed blank blank blank blank fixation_cross_target_position_3_4 "1_23_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_050_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2042 2992 2192 fixation_cross gabor_153 gabor_013 gabor_124 gabor_178 gabor_153_alt gabor_013 gabor_124 gabor_178_alt "1_24_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2200_gabor_patch_orientation_153_013_124_178_target_position_1_4_retrieval_position_1" gabor_103_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_24_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_103_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1792 2992 2342 fixation_cross gabor_003 gabor_175 gabor_044 gabor_155 gabor_003 gabor_175 gabor_044_alt gabor_155_alt "1_25_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2350_gabor_patch_orientation_003_175_044_155_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_044_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_25_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_044_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1842 2992 2592 fixation_cross gabor_116 gabor_035 gabor_095 gabor_079 gabor_116 gabor_035_alt gabor_095_alt gabor_079 "1_26_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_300_300_399_1850_3000_2600_gabor_patch_orientation_116_035_095_079_target_position_2_3_retrieval_position_1" gabor_116_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_26_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_116_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 1892 fixation_cross gabor_065 gabor_086 gabor_048 gabor_135 gabor_065_alt gabor_086 gabor_048_alt gabor_135 "1_27_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_1900_gabor_patch_orientation_065_086_048_135_target_position_1_3_retrieval_position_1" gabor_065_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_27_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 1992 fixation_cross gabor_064 gabor_133 gabor_171 gabor_093 gabor_064_alt gabor_133 gabor_171 gabor_093_alt "1_28_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2000_gabor_patch_orientation_064_133_171_093_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_093_framed blank blank blank blank fixation_cross_target_position_1_4 "1_28_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_093_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1992 2992 2042 fixation_cross gabor_135 gabor_073 gabor_100 gabor_014 gabor_135_alt gabor_073_alt gabor_100 gabor_014 "1_29_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_300_300_399_2000_3000_2050_gabor_patch_orientation_135_073_100_014_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_052_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_29_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_052_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 2242 fixation_cross gabor_015 gabor_087 gabor_059 gabor_035 gabor_015_alt gabor_087 gabor_059_alt gabor_035 "1_30_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2250_gabor_patch_orientation_015_087_059_035_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_104_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_30_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2092 2992 1892 fixation_cross gabor_144 gabor_112 gabor_128 gabor_178 gabor_144 gabor_112 gabor_128_alt gabor_178_alt "1_31_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_1900_gabor_patch_orientation_144_112_128_178_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_178_framed blank blank blank blank fixation_cross_target_position_3_4 "1_31_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_178_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 2142 fixation_cross gabor_050 gabor_093 gabor_070 gabor_115 gabor_050 gabor_093_alt gabor_070 gabor_115_alt "1_32_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2150_gabor_patch_orientation_050_093_070_115_target_position_2_4_retrieval_position_2" gabor_circ gabor_138_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_32_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_138_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2392 fixation_cross gabor_068 gabor_017 gabor_140 gabor_099 gabor_068_alt gabor_017_alt gabor_140 gabor_099 "1_33_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2400_gabor_patch_orientation_068_017_140_099_target_position_1_2_retrieval_position_2" gabor_circ gabor_017_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_33_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_017_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1742 2992 2192 fixation_cross gabor_121 gabor_064 gabor_094 gabor_170 gabor_121 gabor_064 gabor_094_alt gabor_170_alt "1_34_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_300_300_399_1750_3000_2200_gabor_patch_orientation_121_064_094_170_target_position_3_4_retrieval_position_2" gabor_circ gabor_014_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_34_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_014_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 1892 fixation_cross gabor_003 gabor_018 gabor_129 gabor_084 gabor_003 gabor_018_alt gabor_129_alt gabor_084 "1_35_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_1900_gabor_patch_orientation_003_018_129_084_target_position_2_3_retrieval_position_2" gabor_circ gabor_068_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_35_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_068_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2242 2992 2492 fixation_cross gabor_086 gabor_048 gabor_116 gabor_157 gabor_086 gabor_048_alt gabor_116_alt gabor_157 "1_36_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2500_gabor_patch_orientation_086_048_116_157_target_position_2_3_retrieval_position_2" gabor_circ gabor_048_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_36_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_048_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1892 2992 2242 fixation_cross gabor_069 gabor_140 gabor_100 gabor_028 gabor_069 gabor_140 gabor_100_alt gabor_028_alt "1_37_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2250_gabor_patch_orientation_069_140_100_028_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_052_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_37_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_052_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1992 2992 2292 fixation_cross gabor_091 gabor_051 gabor_020 gabor_072 gabor_091_alt gabor_051_alt gabor_020 gabor_072 "1_38_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2300_gabor_patch_orientation_091_051_020_072_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 "1_38_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_004_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1992 2992 2242 fixation_cross gabor_060 gabor_169 gabor_015 gabor_098 gabor_060 gabor_169 gabor_015_alt gabor_098_alt "1_39_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2250_gabor_patch_orientation_060_169_015_098_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_015_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_39_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1792 2992 1992 fixation_cross gabor_008 gabor_076 gabor_146 gabor_125 gabor_008_alt gabor_076 gabor_146 gabor_125_alt "1_40_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_008_076_146_125_target_position_1_4_retrieval_position_1" gabor_008_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_40_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_008_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 2042 2992 2492 fixation_cross gabor_131 gabor_162 gabor_096 gabor_041 gabor_131_alt gabor_162 gabor_096_alt gabor_041 "1_41_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_300_300_399_2050_3000_2500_gabor_patch_orientation_131_162_096_041_target_position_1_3_retrieval_position_2" gabor_circ gabor_115_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_41_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_115_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1942 2992 2092 fixation_cross gabor_092 gabor_175 gabor_040 gabor_066 gabor_092_alt gabor_175_alt gabor_040 gabor_066 "1_42_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2100_gabor_patch_orientation_092_175_040_066_target_position_1_2_retrieval_position_2" gabor_circ gabor_127_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_42_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_127_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1892 2992 2442 fixation_cross gabor_041 gabor_166 gabor_007 gabor_097 gabor_041_alt gabor_166_alt gabor_007 gabor_097 "1_43_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2450_gabor_patch_orientation_041_166_007_097_target_position_1_2_retrieval_position_2" gabor_circ gabor_117_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_43_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_117_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2092 2992 2142 fixation_cross gabor_053 gabor_128 gabor_020 gabor_091 gabor_053_alt gabor_128_alt gabor_020 gabor_091 "1_44_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2150_gabor_patch_orientation_053_128_020_091_target_position_1_2_retrieval_position_2" gabor_circ gabor_173_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_44_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_173_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1892 2992 2342 fixation_cross gabor_071 gabor_021 gabor_039 gabor_086 gabor_071_alt gabor_021_alt gabor_039 gabor_086 "1_45_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2350_gabor_patch_orientation_071_021_039_086_target_position_1_2_retrieval_position_2" gabor_circ gabor_158_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_45_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_158_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1742 2992 2342 fixation_cross gabor_157 gabor_110 gabor_036 gabor_084 gabor_157 gabor_110_alt gabor_036_alt gabor_084 "1_46_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2350_gabor_patch_orientation_157_110_036_084_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_036_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_46_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_036_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2142 2992 2242 fixation_cross gabor_091 gabor_107 gabor_134 gabor_069 gabor_091 gabor_107_alt gabor_134 gabor_069_alt "1_47_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2250_gabor_patch_orientation_091_107_134_069_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_020_framed blank blank blank blank fixation_cross_target_position_2_4 "1_47_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_020_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1892 2992 2092 fixation_cross gabor_073 gabor_162 gabor_011 gabor_096 gabor_073_alt gabor_162_alt gabor_011 gabor_096 "1_48_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_300_300_399_1900_3000_2100_gabor_patch_orientation_073_162_011_096_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_096_framed blank blank blank blank fixation_cross_target_position_1_2 "1_48_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_096_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2092 2992 1992 fixation_cross gabor_166 gabor_029 gabor_145 gabor_108 gabor_166 gabor_029_alt gabor_145 gabor_108_alt "1_49_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2000_gabor_patch_orientation_166_029_145_108_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_058_framed blank blank blank blank fixation_cross_target_position_2_4 "1_49_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_058_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1992 2992 1992 fixation_cross gabor_014 gabor_137 gabor_153 gabor_083 gabor_014 gabor_137_alt gabor_153_alt gabor_083 "1_50_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2000_gabor_patch_orientation_014_137_153_083_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_103_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_50_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_103_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2142 2992 2542 fixation_cross gabor_097 gabor_126 gabor_011 gabor_051 gabor_097 gabor_126_alt gabor_011_alt gabor_051 "1_51_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2550_gabor_patch_orientation_097_126_011_051_target_position_2_3_retrieval_position_2" gabor_circ gabor_126_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_51_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_126_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 2142 2992 2342 fixation_cross gabor_001 gabor_144 gabor_170 gabor_112 gabor_001_alt gabor_144_alt gabor_170 gabor_112 "1_52_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_300_300_399_2150_3000_2350_gabor_patch_orientation_001_144_170_112_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_112_framed blank blank blank blank fixation_cross_target_position_1_2 "1_52_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_112_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1892 2992 2142 fixation_cross gabor_143 gabor_091 gabor_062 gabor_172 gabor_143 gabor_091_alt gabor_062 gabor_172_alt "1_53_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2150_gabor_patch_orientation_143_091_062_172_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_036_framed blank blank blank blank fixation_cross_target_position_2_4 "1_53_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_036_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 1992 fixation_cross gabor_074 gabor_142 gabor_116 gabor_003 gabor_074 gabor_142_alt gabor_116 gabor_003_alt "1_54_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_074_142_116_003_target_position_2_4_retrieval_position_2" gabor_circ gabor_092_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_54_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2042 2992 2442 fixation_cross gabor_166 gabor_032 gabor_052 gabor_099 gabor_166_alt gabor_032 gabor_052_alt gabor_099 "1_55_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2450_gabor_patch_orientation_166_032_052_099_target_position_1_3_retrieval_position_1" gabor_116_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_55_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_116_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1842 2992 1892 fixation_cross gabor_126 gabor_176 gabor_097 gabor_161 gabor_126_alt gabor_176 gabor_097 gabor_161_alt "1_56_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_300_300_399_1850_3000_1900_gabor_patch_orientation_126_176_097_161_target_position_1_4_retrieval_position_2" gabor_circ gabor_040_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_56_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_040_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2142 2992 1892 fixation_cross gabor_128 gabor_090 gabor_157 gabor_172 gabor_128 gabor_090_alt gabor_157_alt gabor_172 "1_57_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_1900_gabor_patch_orientation_128_090_157_172_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_021_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_57_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_021_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2192 fixation_cross gabor_059 gabor_120 gabor_032 gabor_009 gabor_059 gabor_120_alt gabor_032_alt gabor_009 "1_58_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2200_gabor_patch_orientation_059_120_032_009_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_032_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_58_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_032_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1992 2992 2592 fixation_cross gabor_129 gabor_079 gabor_103 gabor_146 gabor_129 gabor_079_alt gabor_103_alt gabor_146 "1_59_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2600_gabor_patch_orientation_129_079_103_146_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_103_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_59_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_103_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 2242 2992 2592 fixation_cross gabor_014 gabor_033 gabor_075 gabor_122 gabor_014 gabor_033_alt gabor_075_alt gabor_122 "1_60_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_300_300_399_2250_3000_2600_gabor_patch_orientation_014_033_075_122_target_position_2_3_retrieval_position_1" gabor_152_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_60_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_152_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1842 2992 2092 fixation_cross gabor_156 gabor_050 gabor_081 gabor_015 gabor_156_alt gabor_050 gabor_081_alt gabor_015 "1_61_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2100_gabor_patch_orientation_156_050_081_015_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_081_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_61_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_081_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 2442 fixation_cross gabor_173 gabor_067 gabor_043 gabor_156 gabor_173 gabor_067_alt gabor_043_alt gabor_156 "1_62_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2450_gabor_patch_orientation_173_067_043_156_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_043_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_62_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_043_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2592 fixation_cross gabor_058 gabor_017 gabor_178 gabor_040 gabor_058_alt gabor_017 gabor_178_alt gabor_040 "1_63_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2600_gabor_patch_orientation_058_017_178_040_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_178_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_63_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_178_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1892 2992 2292 fixation_cross gabor_072 gabor_101 gabor_011 gabor_156 gabor_072 gabor_101_alt gabor_011_alt gabor_156 "1_64_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_300_300_399_1900_3000_2300_gabor_patch_orientation_072_101_011_156_target_position_2_3_retrieval_position_1" gabor_072_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_64_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_072_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 1942 fixation_cross gabor_151 gabor_014 gabor_088 gabor_173 gabor_151_alt gabor_014 gabor_088_alt gabor_173 "1_65_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_1950_gabor_patch_orientation_151_014_088_173_target_position_1_3_retrieval_position_1" gabor_151_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_65_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_151_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 2392 fixation_cross gabor_061 gabor_178 gabor_025 gabor_007 gabor_061 gabor_178_alt gabor_025_alt gabor_007 "1_66_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2400_gabor_patch_orientation_061_178_025_007_target_position_2_3_retrieval_position_2" gabor_circ gabor_042_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_66_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_042_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2092 2992 2342 fixation_cross gabor_047 gabor_089 gabor_020 gabor_131 gabor_047_alt gabor_089 gabor_020 gabor_131_alt "1_67_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2350_gabor_patch_orientation_047_089_020_131_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_131_framed blank blank blank blank fixation_cross_target_position_1_4 "1_67_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_131_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 2192 fixation_cross gabor_131 gabor_089 gabor_057 gabor_025 gabor_131_alt gabor_089_alt gabor_057 gabor_025 "1_68_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2200_gabor_patch_orientation_131_089_057_025_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 "1_68_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2092 2992 2292 fixation_cross gabor_077 gabor_134 gabor_048 gabor_153 gabor_077 gabor_134 gabor_048_alt gabor_153_alt "1_69_Encoding_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2300_gabor_patch_orientation_077_134_048_153_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_013_framed blank blank blank blank fixation_cross_target_position_3_4 "1_69_Retrieval_Working_Memory_MEG_P7_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_013_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1842 2992 1942 fixation_cross gabor_092 gabor_164 gabor_002 gabor_058 gabor_092_alt gabor_164 gabor_002_alt gabor_058 "1_70_Encoding_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_300_300_399_1850_3000_1950_gabor_patch_orientation_092_164_002_058_target_position_1_3_retrieval_position_2" gabor_circ gabor_164_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_70_Retrieval_Working_Memory_MEG_P7_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_164_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 5000;
code = "BaselinePost";
port_code = 92;
}; |
27b9da301ed0b97b6d7c49863332acec347de985 | 449d555969bfd7befe906877abab098c6e63a0e8 | /27/CH5/EX5.1.2/Example_5_1_2.sce | 3d7248efc88f6aa79844c2e506f4e79da510a1c3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 5,173 | sce | Example_5_1_2.sce | clear;
clc;
close;
set(gca(),"auto_clear","off") //hold on
a=-1; //Change a to get different figures; Not work for a=0 as z1 is not defined as slope is infinty
i=1;j=1;
for x=-10:1:10
if (x<>0) then //x<>0 because z1 not defined at x=0;
j=1;
for y=-5:2:5
x1 = a*x; //x1=x(dot)
y1 = -y; //y1=y(dot)
mat1(i,j)=x;
mat2(i,j)=y;
//plot2d(x1,y1,style=-4)
z1(i,j) = y1./x1; //tangent matrix; calculating slope at every point.
j=j+1;
end
i=i+1;
end
end
////////////////////// Phase Portrait computations Started ///////////////////////
//Algorithm: (y-y0)=m*(x-x0) equation is used.
//A straight line is drawn in every small interval surrounding x.
i=1;
for yo=-5:2:5
for x=-10.5:0.2:-9.5
y=(z1(1,i)*(x+10))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
// for x=-11:0.1:-9
// y=(0.25*(x+10))-3;
// plot2d(x,y,style=-3)
//end
// for x=-11:0.1:-9
//y=(0.25*(x+10))-1;
//plot2d(x,y,style=-1)
//end
i=1;
for yo=-5:2:5
for x=-9.5:0.2:-8.5
y=(z1(2,i)*(x+9))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=-8.5:0.2:-7.5
y=(z1(3,i)*(x+8))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=-7.5:0.2:-6.5
y=(z1(4,i)*(x+7))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=-6.5:0.2:-5.5
y=(z1(5,i)*(x+6))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=-5.5:0.2:-4.5
y=(z1(6,i)*(x+5))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=-4.5:0.2:-3.5
y=(z1(7,i)*(x+4))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=-3.5:0.2:-2.5
y=(z1(8,i)*(x+3))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=-2.5:0.2:-1.5
y=(z1(9,i)*(x+2))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=-1.5:0.2:-0.5
y=(z1(10,i)*(x+1))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=0.5:0.2:1.5
y=(z1(11,i)*(x-1))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=1.5:0.2:2.5
y=(z1(12,i)*(x-2))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=2.5:0.2:3.5
y=(z1(13,i)*(x-3))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=3.5:0.2:4.5
y=(z1(14,i)*(x-4))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=4.5:0.2:5.5
y=(z1(15,i)*(x-5))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=5.5:0.2:6.5
y=(z1(16,i)*(x-6))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=6.5:0.2:7.5
y=(z1(17,i)*(x-7))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=7.5:0.2:8.5
y=(z1(18,i)*(x-8))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=8.5:0.2:9.5
y=(z1(19,i)*(x-9))+yo;
plot2d(x,y,style=-4)
end
i=i+1;
end
i=1;
for yo=-5:2:5
for x=9.5:0.2:10.5
y=(z1(20,i)*(x-10))+yo;
plot2d(x,y,style=-3)
end
i=i+1;
end
//////////// Phase Portrait Computations Completed //////////////////
//////////////// Drawing X-Axis
for x=-11:9
y=0;
plot2d(x,y,style=-4)
end
/////////////// Drawing Y-Axis
for y=-10:10
x=0;
plot2d(x,y,style=-4)
end
// flow lines on x-axis
y=0;
for x=-10:2:10
x1=a*x;
if(x1>0)
plot2d(x,y,style=-12);
elseif(x1<0)
plot2d(x,y,style=-13);
else
plot2d(x,y,style=-4);
end
end
// Flow lines on y-axis
x=0;
for y=-10:2:10
y1=-y;
if(y1>0)
plot2d(x,y,style=-6);
elseif(y1<0)
plot2d(x,y,style=-7);
else
plot2d(x,y,style=-4);
end
end
xtitle("Phase Portrait for","x-Axis","y-Axis")
|
fcc875a9e2fd92325cddb807cd017a627df536db | 449d555969bfd7befe906877abab098c6e63a0e8 | /1019/CH3/EX3.7/Example_3_7.sce | 75f69d72c5ddec2dda491fe2fbf7bd183072ddd0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 396 | sce | Example_3_7.sce | //Example 3.7
clear;
clc;
//Given
delHfCO2 = -393.5;//heat of formation in kJ of carbondioxide
delHfH2O = -285.8;//heat of formation in kJ of water
delH = -3303;//heat of reaction in kJ
//To determine the heat of formation of benzene
delHfC6H6 = (3*delHfH2O)+(6*delHfCO2)-(delH);//heat of formation of benzene in kJ
mprintf('heat of formation of benzene = %f kJ',delHfC6H6);
//end |
f61f7ff0e4fd068946464fc0b350d81338b617b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1535/CH2/EX2.1/Ch02Ex1.sci | f7df1fa41f1c7e5911192055f59d9696778e5f11 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 373 | sci | Ch02Ex1.sci | // Scilab Code Ex2.1 : Page-46 (2010)
function V = f(t)
V = 0.2*sin(120*%pi*t);
endfunction
t = 0; // Time when peak value of current occurs
C = 10e-012; // Capacitance of the capacitor, farad
I = C*derivative(f,t);
printf("\nThe peak value of displacement current = %6.4e A", I);
// Result
// The peak value of displacement current = 7.5398e-010 A
|
851632ab4784ca86e455566804b6e11aa095987a | 449d555969bfd7befe906877abab098c6e63a0e8 | /72/CH3/EX3.5.2/3_5_2.sce | 3f7cc5d832c441c2858c7d65c5760682fcbe8710 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 708 | sce | 3_5_2.sce |
//Example_no.3-5-2
clc;
disp('1. When the line is shorted ,the first voltage minimum occurs at the place of the load ');
disp('2 .When the line is loaded ,the first voltage minimum shifts .15lambda from the load .the distance between successive minimas is half the wavelength');
disp('3.plot a SWR cirle for p=2');
disp('4. Move a distance of .15lambda from the minimum point along the distance scale toward the load and stop at .15lambda');
disp('5.Draw a circle from this point to the centre of the chart.');
disp('6. The intersection between the line and the SWR circle is Zt=1-j*.65');
Zt=1-(%i*.65);
Z0=50;//characeristic impedance of the line
Zl=Zt*Z0;
disp(Zl,'The load impedance is(in ohm)=');
|
8959201ad722c784d90ff29fc78ebbfc3b0dce7d | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/CH3/EX3.5.2/3_5_2.sce | 962ce65d97547b1724957d04f8b1632a2917ec04 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 468 | sce | 3_5_2.sce | clc
pathname=get_absolute_file_path('3_5_2.sce')
filename=pathname+filesep()+'352.sci'
exec(filename)
//In this code I used a function to achieve the conversion
function[centigrade]=conversion(fahrenheit)
centigrade=(fahrenheit-32)/1.8
endfunction
difference=conversion(80)-conversion(20)
printf("Equivalent temperature of %d-%d temperature in C =%f",T2,T1,difference)
deltaTF=T2-T1
deltaTC=deltaTF/1.8
printf(" \n By second method, result=%f",deltaTC) |
0053a21d8e1b9d9c5188d10295323a55a88ab1eb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2372/CH2/EX2.1/ex1.sce | 98bcadee076968ace79120f0c37e9833e578f7d0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,259 | sce | ex1.sce | clc;
clear;
vm=100;thetav=0; //voltage amplitude and phase angle
z=1.25;gama=60; //impedance magnitude and phase angle
thetai=thetav-gama; //curent phase angle in degree
theta=(thetav-thetai)*%pi/180;
im=vm/z;
wt=0:0.05:2*%pi;
v=vm*cos(wt);//instantaneous voltage
i=im*cos(wt+thetai*%pi/180);//instantaneous current
mprintf("instantaneous current,i(t)=%d cos(wt+(-%d))\n",im,thetai);
p=v.*i;//instantaneous power
mprintf("instantaneous power,p(t)=v(t)*i(t)=%d cos(wt)cos(wt+(%d))",vm*im,thetai);
V=vm./sqrt(2);I=im/sqrt(2); //rms current and voltage
P=V*I*cos(theta);//average power
Q=V*I*sin(theta);//reactive power
S=P+%i*Q;//complex power
pr=P*(1+cos(2*(wt+thetav)));
px=Q*sin(2*(wt+thetav));
PP=P*ones(1,length(wt));//average power of length w for plot
xline=zeros(1,length(wt));//generates a 0 vector
wt=180/%pi*wt;//converting radian to degree
subplot(2,2,1),plot(wt,v,wt,i,wt,xline);
title("v(t)=vm cos(wt),i(t)=im cos(wt-60)");
xlabel("wt,degrees");
subplot(2,2,2),plot(wt,p,wt,xline);
title("p(t)=v(t)*i(t)");
xlabel("wt,degree");
subplot(2,2,3),plot(wt,pr,wt,PP,wt,xline);
title("active power,pr(t)");
xlabel("wt,degree");
subplot(2,2,4),plot(wt,px,wt,xline);
title("reactive power,px(t)");
xlabel("wt,degree");
|
ab75f75d92c200be7cc517c79d371f20623f4693 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3772/CH3/EX3.16/Ex3_16.sce | 54b9a15169ddd8e7c24514ee2a7273f356eaa245 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 959 | sce | Ex3_16.sce | // Problem 3.16,Page no.64
clc;clear;
close;
E=200 //GN/m**2 //Modulus of elasticity
alpha=11*10**-6 //per degree celsius //coeffecient o flinear expansion of steel bar
L=6 //m //Length of rod
//Calculations
//(Part-1) //IF the walls do not yield
t=58 //degree celsius //Fall in temperature //(t=80-22)
dell=alpha*t //strain
sigma=E*10**9*dell*10**-6 //MN/m**2 //Stress
A=%pi*4**-1*6.25*10**-4 //mm**2 //Area of wall and rod
P=sigma*10**6*A*10**-3 //KN //Pull Exerted
//(Part-2) //IF the walls yield together at the two ends is 1.15 mm
L_2=L*(1-alpha*t) //m //Length of rod at 22 degree celsius
L_3=L-L_2 //m //Decrease in Length
//As the walls yield by 1.5 mm, actual decrease in length is
L_4=L_3-0.0015 //m
dell_2=L_4*L**-1 //strain
P_2=E*10**9*dell_2*A*10**-3 //KN
//Result
printf("Pull Exerted by the rod:when walls do not yield %.2f kN",P)
printf("\n :when total yield together at two ends is 1.5 mm = %.2f kN",P_2)
|
6a7cbf138cc901a47fc333439cc9c6fcfce49d0e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1238/CH8/EX8.24/8_24.sce | 9b8277e2b527c13ec07b5daec94f25f437755796 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | sce | 8_24.sce | //calculating required data//
//example 24//
clc
//clears the command window//;
clear
//clears//
n=10;//no. of bits//
q=1/(2^n)*100;//quantization error expressed as percentage//
disp('quantization percentage error:')
disp(q);//displaying result//
|
aa03141f032750b4abe10ed77fdb9d275e4fddcd | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.1/macros/percent/%sap.sci | a39abfb74e8d311e99dc7483f914aa750c774702 | [
"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 | 150 | sci | %sap.sci | function [z]=%sap(x,y)
//z = scalar + polynomial matrix = x + y
[m,n]=size(x);
if m*n==1 then
z=x*ones(y)+y;
else
z=x+y*ones(x);
end
|
bfb71d33fafaec1ef248acaa32f50ff26f0d15ac | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/EA39DWK/ATWM1_Working_Memory_MRI_EA39DWK/ATWM1_Working_Memory_MRI_Salient_Uncued_Run1.sce | b588e6338800ca663c636255529019b2148ef440 | [] | 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 | 12,235 | sce | ATWM1_Working_Memory_MRI_Salient_Uncued_Run1.sce | # ATWM1 MRI Experiment
scenario = "ATWM1_Working_Memory_MRI_salient_uncued_run1";
scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
#scenario_type = trials;
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;
# 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 = 9400;
mri_pulse = 1;
code = "BaselinePre";
#port_code = 1;
};
TEMPLATE "ATWM1_Working_Memory_MRI.tem" {
trigger_volume_encoding trigger_volume_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;
6 11 292 292 399 125 9543 2992 12342 fixation_cross gabor_173 gabor_109 gabor_146 gabor_087 gabor_173_alt gabor_109 gabor_146_alt gabor_087 "1_1_Encoding_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_173_109_146_087_target_position_1_3_retrieval_position_1" gabor_173_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_1_Retrieval_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_173_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
19 24 292 292 399 125 9543 2992 14342 fixation_cross gabor_044 gabor_126 gabor_084 gabor_154 gabor_044 gabor_126 gabor_084_alt gabor_154_alt "1_2_Encoding_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_044_126_084_154_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_154_framed blank blank blank blank fixation_cross_white "1_2_Retrieval_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_154_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
33 39 292 292 399 125 11543 2992 12342 fixation_cross gabor_081 gabor_100 gabor_018 gabor_038 gabor_081_alt gabor_100 gabor_018_alt gabor_038 "1_3_Encoding_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_081_100_018_038_target_position_1_3_retrieval_position_1" gabor_126_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_3_Retrieval_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_126_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
47 53 292 292 399 125 11543 2992 12342 fixation_cross gabor_025 gabor_066 gabor_051 gabor_176 gabor_025 gabor_066 gabor_051_alt gabor_176_alt "1_4_Encoding_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_025_066_051_176_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_176_framed blank blank blank blank fixation_cross_white "1_4_Retrieval_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_176_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
61 66 292 292 399 125 9543 2992 12342 fixation_cross gabor_059 gabor_177 gabor_102 gabor_147 gabor_059_alt gabor_177 gabor_102_alt gabor_147 "1_5_Encoding_Working_Memory_MRI_P4_LR_Salient_NoChange_UncuedRetriev_300_300_399_9601_3000_12400_gabor_patch_orientation_059_177_102_147_target_position_1_3_retrieval_position_2" gabor_circ gabor_177_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_5_Retrieval_Working_Memory_MRI_P4_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_177_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
74 79 292 292 399 125 9543 2992 14342 fixation_cross gabor_118 gabor_137 gabor_157 gabor_029 gabor_118_alt gabor_137 gabor_157_alt gabor_029 "1_6_Encoding_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_118_137_157_029_target_position_1_3_retrieval_position_1" gabor_118_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_6_Retrieval_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_118_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
88 94 292 292 399 125 11543 2992 12342 fixation_cross gabor_047 gabor_109 gabor_083 gabor_134 gabor_047_alt gabor_109 gabor_083 gabor_134_alt "1_7_Encoding_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_047_109_083_134_target_position_1_4_retrieval_position_1" gabor_001_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_7_Retrieval_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_001_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
102 107 292 292 399 125 9543 2992 14342 fixation_cross gabor_004 gabor_021 gabor_127 gabor_045 gabor_004_alt gabor_021_alt gabor_127 gabor_045 "1_8_Encoding_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_004_021_127_045_target_position_1_2_retrieval_position_2" gabor_circ gabor_067_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_8_Retrieval_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_067_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
116 121 292 292 399 125 9543 2992 14342 fixation_cross gabor_138 gabor_007 gabor_048 gabor_065 gabor_138 gabor_007_alt gabor_048_alt gabor_065 "1_9_Encoding_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_138_007_048_065_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_048_framed gabor_circ blank blank blank blank fixation_cross_white "1_9_Retrieval_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_048_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
130 135 292 292 399 125 9543 2992 12342 fixation_cross gabor_121 gabor_016 gabor_067 gabor_137 gabor_121 gabor_016_alt gabor_067 gabor_137_alt "1_10_Encoding_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_121_016_067_137_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_137_framed blank blank blank blank fixation_cross_white "1_10_Retrieval_Working_Memory_MRI_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_137_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
143 149 292 292 399 125 11543 2992 14342 fixation_cross gabor_045 gabor_133 gabor_012 gabor_085 gabor_045_alt gabor_133_alt gabor_012 gabor_085 "1_11_Encoding_Working_Memory_MRI_P4_LR_Salient_NoChange_UncuedRetriev_300_300_399_11601_3000_14400_gabor_patch_orientation_045_133_012_085_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_012_framed gabor_circ blank blank blank blank fixation_cross_white "1_11_Retrieval_Working_Memory_MRI_P4_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_012_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
158 164 292 292 399 125 11543 2992 14342 fixation_cross gabor_161 gabor_025 gabor_132 gabor_101 gabor_161_alt gabor_025_alt gabor_132 gabor_101 "1_12_Encoding_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_161_025_132_101_target_position_1_2_retrieval_position_2" gabor_circ gabor_071_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_12_Retrieval_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_071_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
173 179 292 292 399 125 11543 2992 14342 fixation_cross gabor_139 gabor_121 gabor_177 gabor_001 gabor_139_alt gabor_121 gabor_177 gabor_001_alt "1_13_Encoding_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_139_121_177_001_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_049_framed blank blank blank blank fixation_cross_white "1_13_Retrieval_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_049_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
188 194 292 292 399 125 11543 2992 12342 fixation_cross gabor_031 gabor_178 gabor_118 gabor_139 gabor_031_alt gabor_178 gabor_118_alt gabor_139 "1_14_Encoding_Working_Memory_MRI_P4_LR_Salient_DoChange_UncuedRetriev_300_300_399_11601_3000_12400_gabor_patch_orientation_031_178_118_139_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_089_framed blank blank blank blank fixation_cross_white "1_14_Retrieval_Working_Memory_MRI_P4_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_089_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
202 207 292 292 399 125 9543 2992 14342 fixation_cross gabor_041 gabor_147 gabor_022 gabor_063 gabor_041 gabor_147 gabor_022_alt gabor_063_alt "1_15_Encoding_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_041_147_022_063_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_109_framed blank blank blank blank fixation_cross_white "1_15_Retrieval_Working_Memory_MRI_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_109_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 20600;
code = "BaselinePost";
#port_code = 2;
}; |
c9d596beff189937f094c22f6e31c73f56fa2af3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2441/CH6/EX6.6/Ex6_6.sce | 6d60c08fb49dd37c29415fdd1316c10612a367e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,054 | sce | Ex6_6.sce | //exa 6.6
clc;clear;close;
format('v',6);
A=0.98*expm(%i*3*%pi/180);//Constant
B=110*expm(%i*75*%pi/180);//ohm/phase
P=50;//MVA
pf=0.8;//lagging
V=132;//kV
//Formula : Pr=|Vs|*|Vr|/|B|*cosd(Beta-delta)-|A|*|Vr|^2/|B|*cosd(Beta-alfa) :
betaSUBdelta=acosd((P*pf+abs(A)*V^2/abs(B)*cosd(atand(imag(B),real(B))-atand(imag(A),real(A))))/V^2*abs(B));
Qr=V^2/abs(B)*sind(betaSUBdelta)-abs(A)*V^2/abs(B)*sind(atand(imag(B),real(B))-atand(imag(A),real(A)));//MVar
Qr=P*0.6-Qr;//MVar//Since load require lagging component
disp(Qr,"(a) Capacity of shunt compensation equipment(MVar) : ");
//part(b)
//Formula : Pr=|Vs|*|Vr|/|B|*cosd(Beta-delta)-|A|*|Vr|^2/|B|*cosd(Beta-alfa) :
format('v',5);
P=0;//MW
betaSUBdelta=acosd((P*pf+abs(A)*V^2/abs(B)*cosd(atand(imag(B),real(B))-atand(imag(A),real(A))))/V^2*abs(B));
Qr=V^2/abs(B)*sind(betaSUBdelta)-abs(A)*V^2/abs(B)*sind(atand(imag(B),real(B))-atand(imag(A),real(A)));//MVar
Qr=P*0.6-Qr;//MVar//Since load require lagging component
disp(-Qr,"(b) Capacity of shunt compensation equipment(MVar) : ");
|
b5aa34addedb02e9e1419aaabfa8b9ce4bbe8cc6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /647/CH9/EX9.2/Example9_2.sce | 7ebae04392d17f01cc5f0a67568eaf8307c544ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 988 | sce | Example9_2.sce | clear;
clc;
// Example: 9.2
// Page: 338
printf("Example: 9.2 - Page: 338\n\n");
// Solution
//*****Data******//
Vol = 2;// [Volume of the mixture, cubic m/mol]
y1 = 0.4;// [mole fraction of alcohol, cubic m/mol]
V1_bar = 38.3*10^(-6);// [partial molar volume of alcohol, cubic m/mol]
V2_bar = 17.2*10^(-6);// [partial molar volume of water, cubic m/mol]
V1 = 39.21*10^(-6);// [molar volume of alcohol, cubic m/mol]
V2 = 18*10^(-6);// [molar volume of water, cubic m/mol]
//*************//
// From Eqn. 9.9:
V = y1*V1_bar + (1 - y1)*V2_bar;// [molar volume of the solution]
n = Vol/V;// [number of moles of solution]
n1 = y1*n;// [number of moles of alcohol required]
n2 = (1 - y1)*n;// [number of moles of water required]
V_alcohol = V1*n1;// [Volume of alcohol required, cubic m]
V_water = V2*n2;// [Volume of water required, cubic m]
printf("Volume of alcohol required is %.3f cubic m while volume of water required is %.3f cubic m\n",V_alcohol,V_water); |
4e6be1f0e739f1d02322f6f2487888380611e988 | d56141249002a5da7c4a2641dbdfc609809046a8 | /Abinit/ab_occ_mat_read.sce | d1ed72db6c4181f15f012d02cb9cf6096d184997 | [] | no_license | kcbhamu/DFTutilities | 14a77226c1229ec61563cc08316d6c32814ddb57 | d6c859407a6b13c8bc5340c08db7a0125d6ed4e6 | refs/heads/master | 2021-06-24T15:23:58.675113 | 2017-08-23T20:56:44 | 2017-08-23T20:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,279 | sce | ab_occ_mat_read.sce | // This code is to read the occupation matrix of DFT+U calculation
// from the output of abinit
clear; clc; exec(PiLib); xdel(winsid());
// Parameters ==========================================================
work_dir=[];
filename='pnma_comp.dat'
J_num=[5/2,7/2]
// Main ================================================================
work_dir=PIL_dir_path(work_dir);
tot_mj=sum(2*J_num+1);
fid=mopen(work_dir+filename,'r');
DM=zeros(tot_mj,tot_mj);
for n=1:tot_mj
for m=1:tot_mj
mfscanf(fid,'%s');
DM(n,m)=mfscanf(fid,'%f');
mfscanf(fid,'%s');
DM(n,m)=DM(n,m)+%i*mfscanf(fid,'%f');
mfscanf(fid,'%s');
end
mgetl(fid,1);
end
mclose(fid);
Jx=[]; Jy=[]; Jz=[];
for n=1:length(J_num)
[Jx_sub,Jy_sub,Jz_sub]=PIL_J_mat(J_num(n),'i');
Jx=PIL_dirsum(Jx,Jx_sub);
Jy=PIL_dirsum(Jy,Jy_sub);
Jz=PIL_dirsum(Jz,Jz_sub);
end
bar(1:tot_mj,real(diag(DM)));
a=gca();
a.x_ticks.labels=string(diag(Jz));
a.tight_limits='on';
a.thickness=3;
a.font_size=3;
a.box='on';
title('Occupation Number on Mj (etot='+string(sum(diag(DM)))+')','fontsize',4);
printf('total electrons=%f\n',sum(diag(DM)));
mag(1)=PIL_trace(Jx*DM);
mag(2)=PIL_trace(Jy*DM);
mag(3)=PIL_trace(Jz*DM);
printf('total magnetic moments=%f %f %f\n',mag'*2);
|
6a1d58541246ee1a9346b48ad4a78240dc6b7b34 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1748/CH2/EX2.12.p/problem2_12.sce | 270e006b7f525bd4bb9aa9f63ed9bc4c63ec047f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 331 | sce | problem2_12.sce | //problem 2.12
clc;
clear;
close;
//given data :
//Isc=4*If;
Isc_by_If=4;
Slip=2.5;//in %
disp("Ts is proportional to Is^2");
disp("and Tf is proportional to If^2/S");
disp("From these eqn we get :")
Ts_by_Tf=(Isc_by_If)^2*(Slip/100);//ratio
disp("Starting torque is "+string(Ts_by_Tf*100)+" % of full load torque.");
|
89c0115dc195f758c67e6dc443ca222ebffff07f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH3/EX3.14/Ex3_14.sce | 0755c00db088b9fffe7a90ec5601046256231f65 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,479 | sce | Ex3_14.sce | clc;
s=81; // number of slots
p=6; // number of poles
np=3; // number of phases
cs=13; // coil span in terms of slot pitches
v=60; // phase spread for three phase winding
f3=0.4; // ratio of third harmonic flux to first harmonic flux
f5=0.25; // ratio of fifth harmonic flux to first harmonic flux
spp=s/(p*np); // // spp is not an integer, the 2-phase winding is a fractional slot winding, therefore Sk is given by
Sk=spp*2;
ap=(p*180)/s;
Cs=cs*ap; // coil span
e=180-Cs; // chording angle
kd1=sind(v/2)/(Sk*sind(v/(2*Sk))); // distribution factor for fundamental harmonic
kp1=cosd(e/2); // coil span factor
kd3=sind((3*v)/2)/(Sk*sind((3*v)/(2*Sk))); // distribution factor for third harmonic
kp3=cosd((3*e)/2); // coil span factor for third harmonic
kd5=sind((5*v)/2)/(Sk*sind((5*v)/(2*Sk))); // distribution factor for fifth harmonic
kp5=cosd((5*e)/2); // coil span factor for fifth harmonic
kw1=kd1*kp1; // winding factor for fundamental harmonics
kw3=kd3*kp3; // winding factor for third harmonic
kw5=kd5*kp5; // winding factor for fifth harmonic
ep3=(kw3*f3)/kw1;
printf('rms value of third harmonic emf is %f times the fundamental harmonic emf\n',ep3);
ep5=(kw5*f5)/kw1;
printf('rms value of fifth harmonic emf is %f times the fundamental harmonic emf\n',ep5);
ep=sqrt(1+ep3^2+ep5^2); // resultant phase emf
el=sqrt(3)*sqrt(1+ep5^2); // resultant line emf
r=el/ep;
printf('Ratio of resultant line emf to resultant phase emf is %f',r);
|
5bff1cc285420c05cb22cd8b47881f0829cf4369 | 22d9f9e36cc02d4358110e7dd63d91180334ff98 | /scripts/randomnumber.sce | 6965a5801f2c2f0276a8f10a5164b8158564a8d3 | [] | no_license | kalexal-kaa/ScilabScripts | ddd6be8dfb4f2820f2e6547be810e8b693781255 | 5b25138895e9a42893e0a88a94f414308203cd69 | refs/heads/main | 2023-06-01T08:55:32.806731 | 2021-07-03T02:24:54 | 2021-07-03T02:24:54 | 379,259,490 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 470 | sce | randomnumber.sce | lim = input("Введите число, больше которого нельзя загадывать: ")
disp("Загадано число от 1 до " + string(lim))
x = int(rand() .* lim) + 1
num = 0
while x ~= num
num = input("Введите число: ")
if x < num then
disp("Мое число меньше")
elseif x > num then
disp("Мое число больше")
else
disp("Число угадано!")
end
end
|
6fd258f831ee29c7a9f640b41388ef424b6104d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2453/CH6/EX6.5/6_5.sce | 7aeaf0c44ca6df2da0bc9a70daaa39d7249710ae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 307 | sce | 6_5.sce | //To calculate the electronic polarizability
epsilon0 = 8.854*10^-12;
epsilon_r = 1.0000684; //dielectric constant
N = 2.7*10^25; //density, atoms/m^3
alpha_e = epsilon0*(epsilon_r-1)/N; //electronic polarizability, Fm^2
printf("electronic polarizability in Fm^2 is");
disp(alpha_e);
|
9d3d5bb2a10ae6c1760b0d0969ddaf52083547ab | cfadc8057fba63a7793bcee7ce8e2e8c3e5dc359 | /solvers/CompressibleFlowSolver/Tests/Couette_FRDG_LDG_GAUSS.tst | 53755fac026e2a151de6a0e30576071ac5e550ce | [
"MIT"
] | permissive | DarkOfTheMoon/nektar | a5132b836f9fb0894ec54c1f373c08df947dd5ca | b36f4214c0907f877fed8dfc08e53bd607eaea24 | refs/heads/master | 2021-01-20T03:59:10.430634 | 2017-04-27T11:50:26 | 2017-04-27T11:50:26 | 89,609,337 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,042 | tst | Couette_FRDG_LDG_GAUSS.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>NS, Couette flow, mixed bcs, FRDG advection and LDG diffusion, SEM</description>
<executable>CompressibleFlowSolver</executable>
<parameters>Couette_FRDG_LDG_GAUSS.xml</parameters>
<files>
<file description="Session File">Couette_FRDG_LDG_GAUSS.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value variable="rho" tolerance="1e-12">0.0885176</value>
<value variable="rhou" tolerance="1e-12">60.3077</value>
<value variable="rhov" tolerance="1e-8">0.2117</value>
<value variable="E" tolerance="1e-12">4867.55</value>
</metric>
<metric type="Linf" id="2">
<value variable="rho" tolerance="1e-12">0.0740721</value>
<value variable="rhou" tolerance="1e-12">60.9805</value>
<value variable="rhov" tolerance="2e-6">0.225975</value>
<value variable="E" tolerance="1e-12">4357.9</value>
</metric>
</metrics>
</test>
|
7762e3832985aea993a4e40d6dcace230c00f151 | 6e51f2fdd036612dc2b51c405904fed97d2ae8b0 | /src/test_hash_chain_1_a.tst | 0589cca33298c20ace6cf834f57a7109261571a4 | [
"MIT",
"Zlib",
"BSD-3-Clause",
"OML"
] | permissive | joe-nano/ciyam | 92c6ccb58029a1b2a641a7e00417ab524cb9f957 | a92c296b911b29620a7bb3b758eb55339e040219 | refs/heads/master | 2022-04-16T14:39:55.822434 | 2020-03-27T06:39:13 | 2020-03-27T06:39:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,164 | tst | test_hash_chain_1_a.tst | 01. create seedless internal hash chain and get the last hash
a36a02ada10a3b0bba60f563307040246bc2b605bdc9b772930975393a1e284f
02. manually verify the last hash in the chain matches expected
a36a02ada10a3b0bba60f563307040246bc2b605bdc9b772930975393a1e284f
03. create external hash chain and verify the next internal hash is valid
pass
50d76e29b3db407d6dc8af92928d0bb5c49fe7f89f7ac76facf3cacbff067a56
04. check manually calculated next hash matches this new internal hash value
50d76e29b3db407d6dc8af92928d0bb5c49fe7f89f7ac76facf3cacbff067a56
05. verify an internal hash generated with the wrong password is not accepted
pass
06. check with limit one that external chain will not accept a now correct hash
pass
07. check with limit three the external chain now accepts the next correct hash
pass
08. check fetching two hashes at once are both verified by the external chain
pass
09. check all remaining internal chain hashes are verified by the external chain
5ba23633823ee900cd4ca3a9f4ce9a08f2ca1d3920c5c44fd51273b2f7cf5ca4
10. check that the last hash matches what was manually calculated
5ba23633823ee900cd4ca3a9f4ce9a08f2ca1d3920c5c44fd51273b2f7cf5ca4
|
3f32d2142a55559899c2c70435b701effcf1aaf5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2243/CH11/EX11.7/Ex11_7.sce | 09b804ace9825d43682ad6b2159772cdbecc3fc4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex11_7.sce | clc();
clear;
//Given :
//Fraction F = n/N
Eg = 0.72; // Energy gap in eV
k = 0.026/300;// kT value at 300 K , so k = kT/T
T1 = 30; // Temperature in K
T2 = 300; //Temperature in K
T3 = 1210;//Temperature in K
//Fraction of electrons : n/N = exp(-Eg/2*k*T)
F1 = exp(-Eg/(2*k*T1));
F2 = exp(-Eg/(2*k*T2));
F3 = exp(-Eg/(2*k*T3));
printf(" For 30 K , n/N = %.1f x 10^-61\n",F1*10^61);
printf(" For 300 K , n/N = %.1f x 10^-7\n",F2*10^7);
printf(" For 1210 K , n/N = %.3f \n",F3);
|
e7a08e9083f5ca9839efa27599bb08a80b3775ab | 449d555969bfd7befe906877abab098c6e63a0e8 | /1226/CH17/EX17.45/EX17_45.sce | daebb5226a6b0f6c26e9c7e3f9827030ff8e53f0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,752 | sce | EX17_45.sce | clc;funcprot(0);//EXAMPLE 17.45
// Initialisation of Variables
n=4;........................//No of cylinders
ga=1.4;...................//Degree of freedom
D=0.075;..................//Engine bore in m
L=0.1;...................//Engine stroke in m
mf=6;.......................//Fuel consumption in kg/h
C=83600;..................//Calorific value of fuel used
Vc=0.0001;.................//Clearence volume in m^3
BP=15.6;.................//Brake power wilh all cylinder working in kW
BP1=11.1;...................//Brake power wilh cylinder no 1 cutout in kW
BP2=11.03;...................//Brake power wilh cylinder no 2 cutout in kW
BP3=10.88;...................//Brake power wilh cylinder no 3 cutout in kW
BP4=10.66;...................//Brake power wilh cylinder no 4 cutout in kW
//Calculations
IP1=BP-BP1;...........................//Indicated power produced in cylinder 1 in kW
IP2=BP-BP2;...........................//Indicated power produced in cylinder 2 in kW
IP3=BP-BP3;...........................//Indicated power produced in cylinder 3 in kW
IP4=BP-BP4;...........................//Indicated power produced in cylinder 4 in kW
IP=IP1+IP2+IP3+IP4;.............................//Total Indicated power produced in kW
etamech=BP/IP;..............................//Mechanical efficiency
disp(etamech*100,"Mechanical efficiency in %:")
etaith=IP/((mf/3600)*C);.....................//Indicated thermal efficiency
disp(etaith*100,"Indicated thermal efficiency in %:")
Vs=(%pi/4)*D*D*L;..........................//Stroke volume in m^3
r=(Vs+Vc)/Vc;................................//Compression ratio
etast=1-(1/(r^(ga-1)));...........................//Air standard efficiency
disp(etast*100,"Air standard efficiency in %:")
|
d871a3b80fa017dd2718e2b7985f3c431769eab1 | 56743f362de98f910919780918c86679ec136d3e | /resolucao-provas/2017-2018/2º Teste Prático v1.sce | eb42bcea2fa6d0d2c598f0862aa2effaf8c2f536 | [] | no_license | andre-paulo98/fichas-ei-a1s2-MD | aaf75e6b45cbac7ebbf92949deb783ce6f1201b7 | 99c50eb08cf409ce8e5aa8301728dbe9148e16c5 | refs/heads/master | 2022-02-24T23:13:49.293944 | 2019-10-06T17:50:26 | 2019-10-06T17:50:26 | 171,472,323 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,923 | sce | 2º Teste Prático v1.sce | clc
clear
// 1.a)
Re1R = readxls("Material/dados.xls")(1).value
exec("Material/funcoes.sce", -1)
disp ("Re1R")
disp(Re1R)
// 1. b)
// Equivalência => RST
// 143
isR = verifica1(Re1R)
isS = verifica4(Re1R)
isT = verifica3(Re1R)
if isR == %t & isS == %t & isT == %t
disp("A matrix Re1R é uma relação de equivalência")
else
if isR == %f
disp("A matriz não é uma relação de equivalência pois não é reflexiva")
end
if isS == %f
disp("A matriz não é uma relação de equivalência pois não é simétrica")
end
if isT == %f
disp("A matriz não é uma relação de equivalência pois não é transitiva")
end
end
////////
// 2
////////
grafoOrientado = readxls("Material/dados.xls")(2).value
caminhos = bool2s(grafoOrientado)
a = caminhos^5
S = zeros(9,9)
for i=1:5
S=S+caminhos^i
end
disp("2.a) Existem " + string(S(3,7)) + " caminhos de 3 para 7 com comprimento igual ou menor a 5")
// 2b
function Y=fonte(M,v)
//M: matriz de adjacências do grafo G
Y=%t;
[a b]=size(M)
soma=0
for i=1:b
soma=soma + M(i,v)
end
if soma <> 0
Y=%f
end
endfunction
// 2c
function [Q,M]=Warshall_MIN(W)
[u,v]=size(W)
for i=1:u
for j=1:v
if W(i,j)<>0 then
M(i,j)=string(i)+string(j)
else
M(i,j)='-'
end
end
end
for i=1:u
for j=1:v
if W(i,j)==0
Q(i,j)=%inf;
else
Q(i,j)=W(i,j);
end
end
end
for p=1:u
for i=1:u
for j=1:v
if (Q(i,j)>Q(i,p)+Q(p,j)) then
M(i,j)=M(i,p)+part(M(p,j), 2:length(M(p,j)))
end
Q(i,j)=min(Q(i,j),Q(i,p)+Q(p,j))
end
end
end
endfunction
[a b] = Warshall_MIN(grafoOrientado)
disp("O caminho mais curto de 1 para 8 é: " + string(b(1,8)) + " e tem como peso: " + string(a(1,8)))
|
780d9867f69ee88db18727c9ebe38a16b6a7b54e | 07bf6db3fade722ce6caf9bb9044a8de97fdec55 | /scripts/dag/d.sce | eae9a09095f4b138e87c81460ec6a0c5fc9f8eb2 | [
"BSD-2-Clause"
] | permissive | rfabbri/minus | 8cce65a53e4afe617843aa8a8e31ee5dcee28cb2 | 21a847fd66c0d1ecb40962bce9c9b2c1a6df02fa | refs/heads/master | 2023-07-19T15:49:05.920669 | 2023-06-23T00:13:53 | 2023-06-23T00:13:53 | 172,530,430 | 39 | 8 | NOASSERTION | 2022-04-26T14:13:13 | 2019-02-25T15:19:04 | C++ | UTF-8 | Scilab | false | false | 20 | sce | d.sce | clear
exec dag.sce;
|
dcf7723709e545c9b453715f4ea477a14d155fb5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1991/CH2/EX2.28/2_28.sce | 4eb4e5a07dcf6b3e468dbfb17061316e24799341 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 234 | sce | 2_28.sce | clc
clear
//INPUT DATA
f=55 //frequency
a=7*10^-3 //amplitude
//calculation
a=(-2*%pi*f)^2*a
//output
printf("the acceleration of the body when it is at its maximum displacement from its zero position is -%3.1f ms^-2",a) |
7a1f504bc6967816d1a2ec4f25580d04006ba679 | 99e5810ad838c385c38e818ed59ad43b7f93fb67 | /Lab4/trajectory_tracker/Lab4_part1.sce | 07e540a969d3eaac835955464f1e0520ad2e51b9 | [] | no_license | csr-trainees-2019/scilab | c89e15ded8f4cd31321ec3fdfe759e2293625345 | f9c8bbc07da38b98b18961888dcb3dfcbabb8cb2 | refs/heads/master | 2020-04-21T13:30:05.031096 | 2019-02-16T10:40:56 | 2019-02-16T10:40:56 | 169,600,658 | 0 | 1 | null | 2019-02-16T10:39:01 | 2019-02-07T16:13:17 | Scilab | UTF-8 | Scilab | false | false | 3,109 | sce | Lab4_part1.sce | Jm = 0.0024;
Km = 0.5;
Kb = 0.48;
R = 5.2;
Kf=0.2;
Kp = 50.1;
//Kd = 0.97; In matlab error and I don't wanna solve it. Test in scilab
Kd = 0;
Ki = 81;
K = Kf + Km*Kb/R;
legend_font = 3;
axis_fontsize=4;
title_fontsize = 4;
graph_thickness = 2;
//------------------------------------------------
f=figure();
clf();
f.background =8;
a=gca();
plot(with.time,with.values(:,1),with.time,with.values(:,2),'r');
a.children
poly1=a.children.children(2);
poly1.thickness=graph_thickness;
poly1=a.children.children(1);
poly1.thickness=graph_thickness;
poly1.line_style=6;
//title("Моделирование слежения за синусом","fontsize", title_fontsize);
l=legend("$желаемая\ траектория\ (q^*)$","$моделирование\ (q)$");
l.font_size=legend_font;
xlabel("$t,s$", "fontsize", axis_fontsize);
ylabel("$q,rad$","fontsize", axis_fontsize);
//------------------------------------------------
f=figure();
clf();
f.background =8;
a=gca();
plot(with.time,with.values(:,1)-with.values(:,2),'r')
//title("Ошибка слежения за синусом","fontsize", title_fontsize);
l=legend("$ошибка\ (q^* - q)$");
l.font_size=legend_font;
xlabel("$t,s$", "fontsize", axis_fontsize);
ylabel("$q,rad$","fontsize", axis_fontsize);
poly1=a.children.children(1);
poly1.thickness=graph_thickness;
//------------------------------------------------
f=figure();
clf();
f.background =8;
a=gca();
plot(without.time,without.values(:,1),without.time,without.values(:,2),'r');
//title("Моделирование слежения за синусом","fontsize", title_fontsize);
l=legend("$желаемая\ траектория\ (q^*)$","$моделирование\ (q)$");
l.font_size=legend_font;
xlabel("$t,s$", "fontsize", axis_fontsize);
ylabel("$q,rad$","fontsize", axis_fontsize);
a.children
poly1=a.children.children(2);
poly1.thickness=graph_thickness;
poly1=a.children.children(1);
poly1.thickness=graph_thickness;
poly1.line_style=6;
//------------------------------------------------
f=figure();
clf();
f.background =8;
a=gca();
plot(without.time,without.values(:,1)-without.values(:,2),'r')
//title("Ошибка слежения за синусом","fontsize", title_fontsize);
l=legend("$ошибка\ (q^* - q)$");
l.font_size=legend_font;
xlabel("$t,s$", "fontsize", axis_fontsize);
ylabel("$q,rad$","fontsize", axis_fontsize);
poly1=a.children.children(1);
poly1.thickness=graph_thickness;
//------------------------------------------------
f=figure();
clf();
a=gca();
f.background =8;
plot(without.time,without.values(:,1)-without.values(:,2),'b',with.time,with.values(:,1)-with.values(:,2),'r')
//title("Сравнение ошибок","fontsize", title_fontsize);
l=legend("ошибка без траекторного регулятора","ошибка c траекторным регулятором");
l.font_size=legend_font;
xlabel("$t,s$", "fontsize", axis_fontsize);
ylabel("$q,rad$","fontsize", axis_fontsize);
poly1=a.children.children(2);
poly1.thickness=graph_thickness;
poly1=a.children.children(1);
poly1.thickness=graph_thickness;
|
8da1b048e26bc0091912f74de706c0d742cb5a32 | 6a80aa5f62cfc2c1b93e4bb27545d2b94daa5bdb | /Assignment1/A1_1D_Conduction_Codes/A1_1D_Prob3.sce | 00fc33c730c8b12031eddcb17c2dddc751635bed | [] | no_license | pulkitkatdare/CFD_assignment | ba6094efac2541722c842805c2145ef7d5c8cf70 | c8e599599f7bba38a1b564037df4b6b6fb5ddbdd | refs/heads/master | 2020-07-03T18:27:03.323182 | 2016-10-19T04:57:20 | 2016-10-19T04:57:20 | 67,068,495 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,993 | sce | A1_1D_Prob3.sce | // *********************************************************************************************
// MATHEMATICAL APPROACH OF CFD DEVELOPMENT: Code developed by Prof.Atul Sharma,CFD Lab ,IIT Bombay.
// Distributed for Assignement # 1 of courese ME415: CFDHT
//**********************************************************************************************
clear
L=0.01; imax=12;xi=linspace(0,1,imax-1);
Beta=1.2;
Beta_p1=Beta+1;Beta_m1=Beta-1;Beta_p1_div_m1=(Beta_p1/Beta_m1)^(2*xi-1);
num=(Beta_p1*Beta_p1_div_m1)-Beta_m1;den=2*(1+Beta_p1_div_m1);
x=L*num./den;
y=zeros(1,imax-1);
xc(2:imax-1)=(x(2:imax-1)+x(1:imax-2))/2;
xc(1)=x(1);xc(imax)=x(imax-1);yc=zeros(1,imax)
figure(1)
plot(x,y,'m-s')
plot(xc,yc,'k-o')
Dx(2:imax-1)=x(2:imax-1)-x(1:imax-2);
dx(1:imax-1)=xc(2:imax)-xc(1:imax-1);
printf("\n************** ONE-DIMENSIONAL HEAT CONDUCTION ***************");
//STEP-1: User-Input
rho = 7750.0; cp = 500.0; k = 16.2;
T0=30; T_wb=0.0;T_inf=100.0;h=1000;
Q_vol_gen=0; epsilon_st=0.0001; Dt=1;
Q_gen=Q_vol_gen.*Dx; // Total Heat Generation
//STEP-2: Coefficient of implicit LAEs
for i=1:imax-1
aE(i)=k/dx(i);
end
for i=2:imax-1
aP0(i)=rho*cp*Dx(i)/Dt;
aP(i)=aP0(i)+aE(i)+aE(i-1);
end
//STEP-3: IC and BCs
T(2:imax-1)=T0; T(1)=T_wb; //T(imax)=T_eb;
// T(imax)=(k*T(imax-1))+(h*dx(imax-1)*T_inf);
// T(imax)=T(imax)/(k+h*dx(imax-1));
// xT=[xc' T];
//savematfile('Temperature_ex5_2_0.dat','-ascii','xT')
unsteadiness_nd=1; n=0; alpha=k/(rho*cp); DTc=T_inf-T_wb;
//==== Time-Marching for Implicit Unsteady State LAEs: START ====
while unsteadiness_nd>=epsilon_st
//while n<=49
n=n+1;
T(imax)=(k*T(imax-1))+(h*dx(imax-1)*T_inf);
T(imax)=T(imax)/(k+h*dx(imax-1));
T_old=T;
for i=2:imax-1
b(i)=aP0(i)*T_old(i)+Q_gen(i);
end
// Inner-Loop for Iterative solution (by GS method) at each time step
epsilon=0.0001; //Convergence Criterion
N=0; // Counter for iternation number
Error=1; // some number greater than epsilon to start the while loop below
while Error>=epsilon
T_old_iter=T; // present iterative value stored as old one
N=N+1; // increase in the iteration counter
for i=2:imax-1
T(i)=aE(i)*T(i+1)+aE(i-1)*T(i-1)+b(i);T(i)=T(i)/aP(i);
end
Error=max(abs(T-T_old_iter)); // parameter to check convergence
end
unsteadiness=max(abs(T-T_old))/Dt;
unsteadiness_nd=unsteadiness*L*L/(alpha*DTc); //STEP 5: Steady state converegnce criterion
printf("Time step no. %5d, Unsteadiness_nd = %8.4e\n", n , unsteadiness_nd);
end
figure(2)
plot(xc,T,'ko');
xT=[xc' T];
//savematfile('Temperature_ex5_2_5.dat','-ascii','xT')
x_ana=linspace(0,L,100);
t1=(T_wb-T_inf)*h.*x_ana./(k+h*L);
t2=(2*k+h*L)/(k+h*L); t2=Q_vol_gen.*x_ana.*(t2*L-x_ana);t2=t2/(2*k);
T_ana=T_wb-t1+t2;
plot(x_ana,T_ana)
xT_ana=[x_ana' T_ana'];
savematfile('Temperature_ex5_2_anal.dat','-ascii','xT')
|
61c922efcf4e0005fc501aa4fe847c620fe4e8d1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3774/CH7/EX7.6/Ex7_6.sce | 915d8510a96f96c09324a262bbead3b2dc5dca4a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,493 | sce | Ex7_6.sce | // exa 7.6 Pg 205
clc;clear;close;
// Given Data
P=135;// kW
N=120;// rpm
tau_s=55;// MPa
tau_b=45;// MPa
tau_ci=175;// MPa
sigma_ci=75;// 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
// %pi*d**3*tau_s/16= Tm
d=(Tm/(%pi*tau_s/16)*1000)**(1/3);// mm
d=ceil(d)
printf('shaft diameter = %.2f mm.',d)
Tmax=Tm;// N.m
// 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.',d3)
//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.',b)
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=ceil(4*d/150+3);// no. of bolts
printf('\n Number of bolts = %.2f.',n)
// Bolt diameter
r2=1.5*d;// mm
F=Tm*1000/r2/n;//N
//(%pi/4)*db**2*tau_b=F
db=sqrt(F/((%pi/4)*tau_b));// mm
printf('\n Bolt diameter = %.2f mm. Use db=20 mm for design purpose',db)
db=20;// mm (adopted for design)
bolt_dia=db;//mm
// Flange thickness
t2=0.5*t1+6;// mm (empirically)
printf('\n Flange thickness = %.1f mm. Use t=20 mm',t2)
//F=n*db*t2*sigma_c
sigma_ci=F/n/db/t2;// MPa
//2*%pi*d1**2*tau*t2/4=Tmax
tau=Tmax/(2*%pi*d1**2*t2/4);// MPa
printf('\n permissible bearing stress in flange = %.2f MPa < 75 MPa',sigma_ci)
printf('\n shearing of the flange at the junction with hub = %.2f MPa < 175 MPa.',tau)
printf(' Values are acceptable.')
// Check for crushing of bolt
//n*db*t2*sigma_cb*d2/2=Tmax
d2=d1+d;// mm
db=bolt_dia;//mm
sigma_cb=Tmax/(n*db*t2*d2/2);// MPa
printf('\n permissible crushing strength of bolts = %.2f MPa < 60 MPa.',sigma_cb)
printf(' Hence design is safe.')
// Thickness of protecting flange
t3=0.5*t2;// mm
printf('\n Thickness of protecting flange = %.f mm', t3)
// Hub overlap
ho=3;// mm (min)
printf('\n Hub overlap = %.f mm (min)',ho)
|
d2aa2acf7ec29d3525b39c1c6c427d3da0b3912f | 6d1f05d2074f1d6f18d3d473f2dbd867c94fc7ee | /giarratano/SOURCE/TESTING/jnftrght.tst | bbc68252036eac9e720a4de8056fef9cbe14332c | [] | no_license | arranger1044/icse-1516 | c40d2c86892cd90c14042a95581cbb0e238190fb | ee4bafb57bb549ef40e29b8edf8cdad038e97162 | refs/heads/master | 2020-12-24T19:04:01.588095 | 2016-05-31T07:46:47 | 2016-05-31T07:46:47 | 56,578,768 | 14 | 5 | null | null | null | null | UTF-8 | Scilab | false | false | 341 | tst | jnftrght.tst | (set-strategy depth)
(unwatch all)
; jnftrght.bat test
(clear)
(open "jnftrght.rsl" jnftrght "w")
(dribble-on "jnftrght.out")
(batch "jnftrght.bat")
(dribble-off)
(load "compline.clp")
(printout jnftrght "jnftrght.clp differences are as follows:" crlf)
(compare-files jnftrght.exp jnftrght.out jnftrght)
; close result file
(close jnftrght)
|
d18ef7b8023aa920ec617b9a6dad8ef91104fba6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1598/CH4/EX4.8/ex4_8.sce | 2058f3019fcc22dc43df6d465313d3bc874beada | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 202 | sce | ex4_8.sce | clc;
eo=(8.854*10^-12); //constant
E=2; //magnitude of electric field in N/C
r=0.5; //r in m
q=E*4*(%pi)*(eo)*(r^2); //calculating charge
disp(q,"Charge in Coulomb = "); //displaying result |
b80a50a74c2bd4d5e83c249586dfc236e6259f79 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2063/CH1/EX1.1/1_1.sce | 19c74484270c3e2bd920f093832b62facbd7f337 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,513 | sce | 1_1.sce | clc
clear
//Input data
V1=0.5;//Initial Volume before the commencement of compression in m^3
P1=1;//Initial pressure before the commencement of compression in bar
T1=300;//Initial temperature in K
P2=12;//Final pressure at the end of compression stroke in bar
Q=220;//Heat added during the constant volume process in kJ
r=1.4;//Isentropic constant for air
R=0.287;//Characteristic Gas constant in kJ/kg K
Cv=0.718;//Specific heat of mixture in kJ/kg K
//Calculations
r1=(P2/P1)^(1/r);//Compression ratio
T2=T1*(r1)^(r-1);//Final temperature after the end of compression stroke in K
V2=(P1*T2*V1)/(P2*T1);//Final volume after the end of compression stroke in m^3
m=(P1*10^5*V1)/(R*T1*1000);//Mass of air flowing in kg
T3=(Q/(m*Cv))+T2;//Temperature after constant volume heat addition in K
P3=(P2*T3)/T2;//Pressure after constant volume heat addition in K
V3=V2;//Volume at 3
P4=P3*(1/r1)^(r);//Pressure after isentropic expansion in bar
V4=V1;//Volume after isentropic expansion in m^3
T4=T3*(1/r1)^(r-1);//Temperature at the end of isentropic expansion in K
//Output
printf('(a)The pressures at 1 is %3.0fbar\n (b)Pressure at 2 is %3.0fbar\n (c)Pressure at 3 is %3.2fbar\n (d)Pressure at 4 is %3.2fbar\n (e)Temperature at 1 is %3.1fK\n (f)Temperature at 2 is %3.1fK\n (g)Temperature at 3 is %3.0fK\n (h)Temperature at 4 is %3.0fK\n (i)Volume at 1 is %3.0fm^3\n (j)Volume at 2 is %3.5fm^3\n (k)Volume at 3 is %3.5fm^3\n (l)Volume at 4 is %3.0fm^3',P1,P2,P3,P4,T1,T2,T3,T4,V1,V2,V3,V4)
|
9b2aff85300ee3528b00be6cddc32a974f70fd7a | 449d555969bfd7befe906877abab098c6e63a0e8 | /650/CH7/EX7.5/5.sce | c3629033b7e61fa388f5e53cef74dda6890ba1a4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 810 | sce | 5.sce | clc
d=0.9144; // m
C=100; // m^(1/2)s^(-1)
R=d/2;
H=[0.1 0.15 0.2 0.25 0.201];
theta=acos((R-H)/R);
A=R^2*(theta-sin(2*theta)/2);
P=2*R*theta;
m=A/P;
// An analytical solution for depth H is not possible. It is therefore necessary to use a graphical or trial and error approach.
// The corresponding values of theta, A, P, MHD (m), Q are given below as per the taken values of H.
theta=[0.674 0.834 0.973 1.101 0.975];
A=[0.039 0.070 0.106 0.146 0.107];
P=[0.616 0.763 0.890 1.006 0.891];
m=[0.063 0.092 0.119 0.145 0.120];
Q=[248.7 543.2 932.2 1412.9 940.0];
plot(H,Q)
i=[0.201 0.201];
j=[0 940];
plot(i,j,'r')
k=[0 0.201];
l=[940 940];
plot(k,l,'r')
xtitle("", "Depth H", "Flowrate Q")
Depth=0.201; // m
disp("The depth in the channel =")
disp(Depth)
disp("m") |
8cfa80314cab488f8051772dc9fcaa24dfdafb3b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1703/CH3/EX3.2/3_2.sce | 413f37730cb793ee06bd7be68098b015a5faafc9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 363 | sce | 3_2.sce | clear
clc
//initialisation of variables
w= 62.4 //lb/ft^3
P= 1.7 //lb/in^2
d1= 6 //in
d2= 3 //in
hab= 8 //ft
Q= 0.75 //cuses
sm= 13.6
g= 32.2 //ft/sec^2
//CALCULATIONS
dP= P*144/w
va= Q*(d1/d2)^4/%pi
k= -(((d1/d2)^4-1)-((-dP+hab)*2*g/va^2))
h= (-dP+hab)*12/(sm-1)
//RESULTS
printf ('k = %.f ',k)
printf ('\n height difference = %.2f in',h)
|
e4352f0f036dc670004e48a129f405a499825b25 | 449d555969bfd7befe906877abab098c6e63a0e8 | /851/CH5/EX5.13/Figure5_13.sce | 61a4c618009a38235afd6b4a04912c3475534f10 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 712 | sce | Figure5_13.sce | //clear//
//Caption:u-Law companding
//Figure5.13(a)Mulaw companding Nonlinear Quantization
//Plotting mulaw characteristics for different
//Values of mu
clc;
[Cx,Xmax] = mulaw(x,mu)
Xmax = max(abs(x));
if(log(1+mu)~=0)
Cx = (log(1+mu*abs(x/Xmax))./log(1+mu));
else
Cx = x/Xmax;
end
Cx = Cx/Xmax; //normalization of output vector
endfunction
x = 0:0.01:1; //Normalized input
mu = [0,5,255];//different values of mu
for i = 1:length(mu)
[Cx(i,:),Xmax(i)] = mulaw(x,mu(i));
end
plot2d(x/Xmax(1),Cx(1,:),2)
plot2d(x/Xmax(2),Cx(2,:),4)
plot2d(x/Xmax(3),Cx(3,:),6)
xtitle('Compression Law: u-Law companding','Normalized Input |x|','Normalized Output |c(x)|');
legend(['u =0'],['u=5'],['u=255']) |
f25754c0befb933027f1840793b682d581f0b4b4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2168/CH3/EX3.12/Chapter3_example12.sce | 95f760128b2cc9cfa2b592265e990124a6a70b55 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Chapter3_example12.sce | clc
clear
//Input data
d=0.2//Diameter of the cylinder in m
L=0.4//Stroke in m
r=13.5//Compression ratio
a=1.42//Explosion ratio
s=5.1//Cut off occurs at 5.1 percent of the stroke
g=1.4//Ratio of specific heats for air
//Calculations
Vs=(3.14/4)*d^2*L*10^-6//Stroke volume in c.c
Vc=Vs/r//Clearance volume in c.c
k=(((s/100)*Vs)+Vc)/Vc//Cut off ratio
ASE=(1-((1/(r^(g-1)))*((a*k^g-1)/((a-1)+a*g*(k-1)))))*100//Air standard efficiency in percent
//Output
printf('The air standard efficiency of the engine is %3.1f percent',ASE)
|
0910e578ee3bc5d6c4fd925caae380f3cbdd9201 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3843/CH9/EX9.12/Ex9_12.sce | aaba81941221b263c0f92d0594a58ec406515261 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 808 | sce | Ex9_12.sce | // Example 9_12
clc;funcprot(0);
// Given data
// From example 9.9
P_1=100;// kPa
P_4=500;// kPa
T_1=25+273;// K
T_6=850+273;// The maximum temperature in K
c_p=1.00// kJ/kg.K
k=1.4;// The specific heat ratio
// Calculation
P_2=sqrt(P_1*P_4);// The intermediate pressure in kPa
T_2=T_1*(P_2/P_1)^((k-1)/k);// K
T_8=T_6;// K
P_7=P_2;// kPa
P_6=P_4;// kPa
T_7=T_6*(P_7/P_6)^((k-1)/k);// K
T_9=T_7;// K
T_5=T_7;// K
T_4=T_2;// K
T_3=T_1;// K
w_turb=(c_p*(T_6-T_7))+(c_p*(T_8-T_9));// kJ/kg
w_comp=(c_p*(T_2-T_1))+(c_p*(T_4-T_3));// kJ/kg
w_out=w_turb-w_comp;// kJ/kg
q_C=c_p*(T_6-T_5);// kJ/kg
q_R=c_p*(T_8-T_7);// kJ/kg
q_in=q_C+q_R;// kJ/kg
n=w_out/q_in;// The thermal efficiency of the cycle
printf("\nThe thermal efficiency of the cycle,n=%0.3f or %2.1f percentage",n,n*100);
|
227ca270226ca0c8d4a3365e0e762ae9ddf47eb9 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/util/translatepaths.sci | e18e15675171117c69587472bd7c50de0cec6271 | [
"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 | 814 | sci | translatepaths.sci | function translatepaths(Paths,res_path)
// Copyright INRIA
if exists('m2scilib')==0 then load('SCI/macros/m2sci/lib'),end
logfile=%io(2)
Paths=stripblanks(Paths)
for k=1:size(Paths,'*')
if part(Paths(k),length(Paths(k)))<>'/' then
Paths(k)=Paths(k)+'/',
end
end
for k=1:size(Paths,'*')
path=Paths(k)
if getenv('WIN32','NO')=='OK' & getenv('COMPILER','NO')=='VC++' then
mfiles=unix_g('dir '+path+'*.m')
else
mfiles=unix_g('ls '+path+'*.m')
end
for k=1:size(mfiles,1)
kk=strindex(mfiles(k),'/')
fnam=part(mfiles(k),kk($)+1:length(mfiles(k))-2)
mpath=mfiles(k)
scipath=res_path+fnam+'.sci'
scepath=res_path+fnam+'.sce'
if newest(mpath,scipath)==mpath then
if newest(mpath,scepath)==mpath then
mfile2sci(mpath,res_path,%f,%t)
end
end
end
end
|
de06eecd9841bf4592f6e6b71d995b0ebf6c0f04 | 906f286d018d405ea3ace52a3e8e8a109d68cefe | /sensorimotor_system/visuomotorAdaptationModeling.sce | a713d7d4347fd7ad569ec400d449d20a3a83fdc2 | [] | no_license | andreinakagawa/control | 165398c239178670934328a278113d136e7c5747 | b69f0cb7ee4f4328bdc7d45d7bb9fd82eec6343f | refs/heads/master | 2021-01-21T21:38:24.436418 | 2017-07-13T18:57:30 | 2017-07-13T18:57:30 | 92,322,739 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,833 | sce | visuomotorAdaptationModeling.sce | //------------------------------------------------------------------------------
// FEDERAL UNIVERSITY OF UBERLANDIA
// Faculty of Electrical Engineering
// Biomedical Engineering Lab
// Uberlandia, Brazil
//------------------------------------------------------------------------------
// Author: Andrei Nakagawa, MSc
// Contact: andrei.ufu@gmail.com
//------------------------------------------------------------------------------
//To do: Study iterative learning control and try to model
//adaptation
//------------------------------------------------------------------------------
//States
//Position and velocity in X
//Position and velocity in Y
//Inputs
//Force in X and Y
function [Ac,Bc,Cc] = pointMassModel(m)
Ac = [0 1 0 0; 0 0 0 0; 0 0 0 1; 0 0 0 0];
Bc = [0 0; 1/m 0; 0 0; 0 1/m];
Cc = eye(size(Ac,1),size(Ac,2))
endfunction
//------------------------------------------------------------------------------
[A,B,C] = pointMassModel(1);
//------------------------------------------------------------------------------
t0=0;
tf=5;
dt = 0.01;
t = t0:dt:tf;
contSys = syslin('c',A,B,C);
discSys = dscr(contSys,dt);
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//Weight matrices
Qd=diag([10,0,10,0]);
Rd=diag([0.2,0.2]);
//Discrete riccati
Ad = discSys(2); //A
Bd = discSys(3); //B
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//Differential Riccati Equation - Discrete-time
//Calculating the solution to riccati for each instant in time
//and then finding the time-varying gain for each time step
//------------------------------------------------------------------------------
Sdisc = [];
Kdisc = [];
S0 = diag([500,0,120,0]); //Estimate for the Riccati matrix
for k=1:length(t)-1
//Calculating the time-varying gain
K = inv(Bd'*S0*Bd + Rd)*(Bd'*S0*Ad);
//New riccati solution
S0 = Ad'*S0*Ad - Ad'*S0*Bd*((Rd + Bd'*S0*Bd)^-1)*Bd'*S0*Ad + Qd;
//Stores the riccati solution
Sdisc = [Sdisc S0];
//Stores the gain
Kdisc = [Kdisc K];
end
//------------------------------------------------------------------------------
cont = 1;
//Desired setpoints or reference trajectory
xd = [2;0;5;0];
xint = []; //stores all the states during integration
uint = []; //stores all the inputs during integration
costQ = []; //cost of states
costR = []; //cost of control
x = [2;0;0;0]; //temporary variable for storing states
//Perturbation
//Rotation matrix
Ck = [cos((30*%pi)/180) 0 -sin((30*%pi)/180) 0; sin((30*%pi)/180) 0 cos((30*%pi)/180) 0];
yk = [];
for k=1:length(t)-1
//perturbation
r = x - [2;0;0;0];
r = Ck*r;
r = r + [2;0];
r = [r(1);r(2)];
//Calculating the input
u = -Kdisc(:,cont:cont+3) * (x-xd);
//Calculating the new states
x = Ad*x + Bd*u;
//Storing the new states
xint = [xint x];
//Storing the new inputs
uint = [uint u];
//Stores the cost in this step
costQ = [costQ (x-xd)'*Qd*(x-xd)];
//Stores the cost in this step
costR = [costR u'*Rd*u];
//Increments the counter to loop through the gain matrix
cont = cont + 4;
yk = [yk r];
end
//------------------------------------------------------------------------------
t = t(1:$-1);
//------------------------------------------------------------------------------
figure();
plot(xint(1,:),xint(3,:),'r');
plot(yk(1,:),yk(2,:),'b');
ax=gca();
ax.data_bounds=[-15 -15; 15 15];
figure();
plot(t,xint(2,:),'r');
plot(t,xint(4,:),'g');
plot(t,uint(1,:),'k');
plot(t,uint(2,:),'k');
figure();
plot(t,costQ,'r');
plot(t,costR,'b');
//------------------------------------------------------------------------------
|
5bbe579534815f4ac9b4c2cca6a88f654f784210 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3511/CH5/EX5.3/Ex5_3.sce | 7b4b5175907ad320e492cf58f8b39b49f6e59b3d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 869 | sce | Ex5_3.sce | clc;
rp=6; // Pressure ratio
T1=300; // Inlet air temperature to the compressor in kelvin
T3=577+273; // Inlet temperature of air at turbine in kelvin
Vr=240; // Volume rate in m^3/s
Cp=1.005; // Specific heat at constant pressure in kJ/kg K
r=1.4; // Specific heat ratio
R=287; // Characteristic gas constant in J/kg K
p1=1; // pressure at state 1 in bar
T2=T1*(rp)^((r-1)/r); // Temperature at the end of the compression
T4=T3*(1/rp)^((r-1)/r); // Temperature after expansion
Wc=Cp*(T2-T1); // Work done during compression
WT=Cp*(T3-T4); // Work done during expansion
WN=WT-Wc; // Net work done
q=Cp*(T3-T2); // Heat supplied
row1=p1*10^5/(R*T1); // Density of air at state 1
P=WN*Vr*row1; // Power output
eff=WN/q; // Efficiency of a cycle
disp ("MW (roundoff error)",P/1000,"Power Output = ");
disp ("%",eff*100,"Efficiency of a cycle = ");
|
cdda6dff6c654227c7eb3e7b78f8b029c4fb9fa4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH3/EX3.18/Ex3_18.sce | 277c82c278d0b3a600372d48d448b1b02dc73895 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,193 | sce | Ex3_18.sce |
//Variable declaration
Idss=16 //drain current bias to zero(mA)
Vp=-4 //pinch off voltage(V)
Rg=1 //gate resistance(ohms)
Rs=2.2 //sourse resistance(ohm)
Vdd=9 //drain drain voltage(V)
//Calculations
//Part a
//Id=Idss*(1-(Vgs/Vp))**2
// putting value of Vgs=2.2*Id inequation of Id,we get
//Id**2-3.84Id+3.31
syms Id
expr=solve([Id**2-3.84*Id+3.31],[Id])
disp(expr)
Id1=1.3
Vgs=-Id1*Rs //gate to source voltage(V)
gm0=-(2*Idss)/Vp //transconductance(mS)
gm=gm0*(1-(Vgs/Vp)) //transconductance(mS)
rm=1/gm //transresistance(k ohms)
Av=(Rs*gm)/(1+(Rs*gm)) //voltage gain
//Part b
Zi=Rg //input impedance(Mohms)
Zo=(Rs*rm)/(Rs+rm) //output impedance(ohms)
//Results
printf ("voltage gain is %.3f",Av)
printf ("input and output impedences are %.f Mohms and %.1f ohms",Zi,Zo/1E-3)
|
03e5dbca64d02fece9bf713a2cf396550c377e9a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1226/CH7/EX7.12/EX_12.sce | 47243b50682d5f3d193a753f4c9d3f78328d0825 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,790 | sce | EX_12.sce | clc;funcprot(0)//EXAMPLE 7.12
//Initializing the variables
Z=0.55;.............//Mach Index
Dcy=0.11;............//Engine Bore in m
L = 0.14;............//stroke length in m
N = 2400;.............//Engine rpm
N1 = 2800;............//Engine rpm after modification
N2=4800;.............//Max rpm for unmodified engine
p = 0.88;.........//pressure at intake valve in bar
t=340;...............//temperature at intake valve in Kelvin
ki = 0.33;...........//Inlet flow co-efficient
ga = 1.4;...............//degree of freedom of the gas
R = 287;.................//Gas constant for air in J/kg.K
//calculations
Us = sqrt(ga*R*t);......//sonic velocity of air-fuel mixture at the inlet valve
Up = (2*L*N)/60;...........//piston speed
Div = sqrt(((Dcy^2)*Up)/(Z*ki*Us));...............//Nominal diameter of the inlet valve in m
disp(Div,"(i)Nominal diameter of the inlet valve is (m):")
disp(Div*1000,"(mm)=")
Div1 = sqrt(((Dcy^2)*2*L*N1)/(Z*ki*Us*60));.......// Nominal diameter of inlet valve for the modified engine in m
disp(Div1,"(ii)When the engine is modified to develop max indicative power at 2800rpm, nominal diameter of the inlet valve is (m):")
disp(Div1*1000,"(mm)=")
Up1=(2*L*N1)/60;............//New piston speed for modified engine
Z1 = ((Dcy/Div)^2)*(Up1/(ki*Us));
disp(Z1,"(iii)The new mach index value is :")
disp("Hence the volumetric efficiency drops (There is a steady decrease in volumetric efficiency of an engine if there is an increase in the mach index beyond 0.55, Refer the FIG 7_12)")
Up2 = (2*L*N2)/60;..............//Piston speed at max rpm for unmodified engine
Z2 = ((Dcy/Div)^2)*(Up2/(ki*Us));
disp(Z2,"(iv)The mach index for the unmodified engine is :")
disp("The volumetric efficiency is approximately 56% (from the FIG 7_12)")
|
0d339cf998bb53f233d564fa994a665a2426019d | 297b29fb450286d0f7fa619e58c9f4a86949544a | /DiscretetimeVCO.sci | 2878d1708d437e60f728a80e0ba3184f93556be9 | [] | no_license | harshal93shah/scilabcom | 46dc948c1e0d0b37b0a69dfa203347298cc01e40 | 09c5506089a4283968d963ed3812de9823c5a008 | refs/heads/master | 2020-04-06T07:03:23.954966 | 2016-10-04T11:49:41 | 2016-10-04T11:49:41 | 54,882,787 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,349 | sci | DiscretetimeVCO.sci | function [y] = DiscretetimeVCO(in,Ac,fc,kc,iniph,T)
y=[];
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
//DiscretetimeVCO Implement voltage-controlled oscillator in discrete time
//[y] = DiscretetimeVCO(in,Ac,fc,kc,iniph,T) - The Discrete-Time VCO (voltage-controlled oscillator)
//generates ywhose frequency shift from the Quiescent frequency parameter
//is proportional to the input signal. The input signal is interpreted as a voltage.
//in: input -can be any vector
//Ac:OutputAmplitude-Specify the amplitude of the output signal as scalar value.
//fc:QuiescentFrequency- Frequency of output signal when input is zero
//Specify the quiescent frequency of the output signal in Hertz, , real, scalar value.
//kc:Sensitivity- Sensitivity of frequency shift of output signal
//Specify the sensitivity as real, scalar value
//iniph:InitialPhase- Initial phase of output signal
//Specify the initial phase of the output signal, in radians, as real, scalar value
//T:Sampletime -Sample time of input
//Specify the sample time of the input, in seconds, as positive, scalar value
//Author - Harshal Shah
//checking conditions on input
if( ~isreal(in) |or( isnan(in)) | min(size(in))~=1) then
error("RaisedCosinetxfilter:improper input");
end
//checking condition on OutputAmplitude
if (~isreal(Ac) | length(Ac)~=1 | isnan(Ac)) then
error("RaisedCosinetxfilter:improper OutputAmplitude");
end
//checking condition on QuiescentFrequency
if (~isreal(fc) | length(fc)~=1 | isnan(fc)) then
error("RaisedCosinetxfilter:improper QuiescentFrequency");
end
//checking condition on Sensitivity
if (~isreal(kc) | length(kc)~=1 | isnan(kc)) then
error("RaisedCosinetxfilter:improper Sensitivity");
end
//checking condition on Sampletime
if (~isreal(T) | length(T)~=1 | isnan(T)) then
error("RaisedCosinetxfilter:improper SampleRate");
end
len=length(in);
t = (0:len-1)*T
s=0;
for i =1:len
s= s+in(i)
y(i)=Ac*cos(2*%pi*fc*t(i)+2*%pi*kc*s+iniph);
end
endfunction
|
9dfd3ffe34dba351c24e899241b6b06728833267 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/m2sci/%e2sci.sci | 539e6cfa8ec6178d476df9ee8fde055cb3216fc5 | [
"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 | 983 | sci | %e2sci.sci | function [stk,txt,top]=%e2sci()
// genere le code relatif a l'extraction d'une sous matrice
//!
// Copyright INRIA
txt=[]
rhs=maxi(0,abs(evstr(op(3)))-1)
sn=stk(top);top=top-1
s2=stk(top)
if rhs==1 then
if s2(1)==':' then
stk=list(sn(1)+'('+s2(1)+')','0','?','1',sn(5))
elseif sn(3)=='1' then
stk=list(sn(1)+'('+s2(1)+')','0','1','?',sn(5))
elseif sn(4)=='1' then
stk=list(sn(1)+'('+s2(1)+')','0','?','1',sn(5))
elseif s2(4)=='1' then
stk=list(sn(1)+'('+s2(1)+')','0','?','1',sn(5))
else
v='mtlb_e'+rhsargs([sn(1),s2(1)])
txt='// '+v+' may be replaced by '+sn(1)+'('+s2(1)+')'+' if '+sn(1)+' is a vector.'
stk=list(v,'0','?','?',sn(5))
end
else
s1=stk(top-1);top=top-1
if s1(3)=='1'&s1(4)=='1' then
stk=list(sn(1)+rhsargs([s1(1),s2(1)]),'0','1','?',sn(5))
elseif s2(3)=='1'&s2(4)=='1' then
stk=list(sn(1)+rhsargs([s1(1),s2(1)]),'0','?','1',sn(5))
else
stk=list(sn(1)+rhsargs([s1(1),s2(1)]),'0','?','?',sn(5))
end
end
|
094790f120b31784859053bd80e43616edbb6be5 | 717ddeb7e700373742c617a95e25a2376565112c | /767/CH1/EX1.4.5/Ch1Exa1_4_5.sci | 7db317d8d23f9073195c8981fa3752d013b12c4c | [] | 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 | 784 | sci | Ch1Exa1_4_5.sci | // Scilab code Exa1.4.5 : To calculate densities of O and Pb whose radii are given: Page 35 (2011)
m_O = 2.7e-026; // Mass of O nucleus, kg
r_O = 3e-015; // Radius of O nucleus, m
V_O = 4/3*(%pi*(r0)^3); // Volume of O nucleus, metre cube
d_O = m_O/V_O; // Density of O nucleus, kg/metre cube
m_Pb = 3.4e-025; // Mass of Pb nucleus, kg
r_Pb = 7.0e-015; // Radius of Pb nucleus, m
V_Pb = 4/3*(%pi*(r_Pb)^3); // Volume of Pb nucleus, metre cube
d_Pb = m_Pb/V_Pb; //Density of Pb nucleus,kg/metre cube
printf("\nThe density of oxygen nucleus : %4.2e in kg/metre cube",d_O);
printf("\nThe density of Pb nucleus : %4.2e in kg/metre cube",d_Pb);
// Result
// The density of oxygen nucleus : 3.73e+018 in kg/metre cube
// The density of Pb nucleus : 2.37e+017 in kg/metre cube |
a8f7c77e8303cb22c0fa095831f5377fd7b78bcb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2234/CH6/EX6.16/ex6_16.sce | 3a5bc67e811912db66426de09c4117af3a8995c3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 271 | sce | ex6_16.sce | clc;
disp("The reactance at 640 kHz is 75.4 Ohm."); //displaying result
disp("For 20,000 A, the voltage drop is 1.5*10^6 Volt."); //displaying result
disp("The breakdown voltage for 6 in. is 300,000 V.Lightning will jump through the concrete."); //displaying result |
b68c35f659a1c0827dac792b2f57114fde17628a | 127061b879bebda7ce03f6910c80d0702ad1a713 | /bin/PIL_Hk_solver_dist.sci | cab87b661b635748f221c3c6b2f09bddf87b791e | [] | no_license | pipidog/PiLib-Scilab | 961df791bb59b9a16b3a32288f54316c6954f128 | 125ffa71b0752bfdcef922a0b898263e726db533 | refs/heads/master | 2021-01-18T20:30:43.364412 | 2017-08-17T00:58:50 | 2017-08-17T00:58:50 | 100,546,695 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 10,237 | sci | PIL_Hk_solver_dist.sci | // **** Purpose ****
// This function can run k-point calculation distributedly. It split
// the k-point into several pieces and preared their input files for
// submission. You will need to assign how many tasks to submit each
// time and the time interval between two batch submission.
// So one can calculate a large k-mesh problem via a distirbutive way
// to save time and memory.
// **** Variables ****
// < Inputs >>
// [work_folder]: 1x1, string
// <= the folder where XXX_ham.sod file is stored.
// [project_name]: 1x1, string
// <= project name of the ham file.
// [call_command]: 1 x 1, string
// <= how to execute a file to scilab in your system. input and out
// file names must be @input_name and @output_name.
// This code will automatically assign the names.
// e.g. 'scilab-cli -nwni @input_name > @output_name &'
// [k_point]: n x 3, real
// <= k-points to perform calculations
// [output_var]: 1x1, int
// <= output variable, 3: Ek, Vk, Hk; 2: Ek, Vk; 1: Ek
// [n_alloc]: 1 x 1, integer
// <= how many allocations of the k-points
// [n_thread]: 1x1, integer
// <= how many threads for each submission
// [thread_mem]: 1x1, real
// <= how much memory for each thread in unit of MB. Note that
// thread_mem*n_thread should not more than the RAM safe limit
// of your machine.
// < Outputs >>
// [alloc_k_pt]: n_alloc*3, int
// => shows how the k-points are distributed. [tot_k,ini_k, final_k]
//
// When running this function, it will also generate a folder called
// "TaskName". Inside this folder, there will be several subfolder:
// [k_point]: k_point.sod, k_point_n.sod
// => k_point.sod stores all the k_points, k_point_n.sod store each piece
// of k_points.
// [k_input]: k_input_n.sce, n_input_n.log
// => input files and log files of each thread
// [Ek], [Vk], [Hk]: eigenvalue, eigenvector, Hk
// => Ek_n.sod: tot_state x tot_thread_n_k, eigenvelues
// => Vk_n.sod: tot_state x tot_state x tot_thread_n_k, eigenvectors
// => Hk_n.sod: tot_state x tot_state x tot_thread_n_k, Hamiltonian
// There are also three files locate in the ./task_name:
// project_task.log shows detilas information of the calculaiton
// k_point_all.dat, k_point_all.sod shows all the k-points
// **** Version ****
// 03/28/2016 first built
// 05/18/2016 add job completion auto check. no time_int needed !
// **** Comment ****
// 1. To use this code, you must create a folder and put the ham file
// in this folder as a working folder.
// 2. Once this code runs, this code will seperate the k-point into
// several segmenets and submit the job separately. When it is done,
// it will generate a folder called 'k_dist'. Inside this folder,
// there are several subfolder that contains the calculated results.
// 3. The output of k-point will automatically resize to n x 4 where the
// first coulmn shows it label. So k-points will not be messy in
// parallel approach.
//
function [alloc_k_pt]=PIL_Hk_solver_dist(work_folder,project_name,..
task_name,call_command,k_point_all,output_var,n_alloc,n_thread,thread_mem)
// thread_mem check
if exists('thread_mem')==0 then
thread_mem=1e7;
end
if thread_mem>2040.0 then
thread_mem=2040.0;
disp('Warning: thread_mem is too high, reset to 2040.0 !');
end
// correct work_folder name
work_folder=PIL_dir_path(work_folder);
task_folder=work_folder+task_name+'/';
mkdir(task_folder);
// check call command
if (grep(call_command,'@input_name')+grep(call_command,'@output_name'))~=2 then
disp('Error: PIL_Hk_solver_dist, @input_name and @output_name'..
+' must appear in call_command');
abort;
end
// reconstruct call command
// full command is achieved by setting call_command(2) and call_command(4)
tmp=strsplit(call_command);
fn_index=find(tmp=='@');
call_command=[strcat(tmp(1:fn_index(1)-1)),'',..
strcat(tmp(fn_index(1)+11:fn_index(2)-1)),'',..
strcat(tmp(fn_index(2)+12:$))]
// generate parallel input files
fid(1)=mopen(task_folder+'runtime.log','w');
mfprintf(fid(1),' PIL_Hk_solver_dist: Creating folders\n\n');
mfprintf(fid(1),' PIL_Hk_solver_dist: Requesting memory \n')
mfprintf(fid(1),' Memory per allocation=%f MB\n\n',thread_mem)
mkdir(task_folder+'k_point');
mdelete(task_folder+'k_point/*.sod');
mkdir(task_folder+'k_input');
mdelete(task_folder+'k_input/*.sce');
mdelete(task_folder+'k_input/*.log');
mkdir(task_folder+'Ek');
mdelete(task_folder+'Ek/*.sod');
if output_var>=2 then
mkdir(task_folder+'Vk');
mdelete(task_folder+'Vk/*.sod');
end
if output_var>=3 then
mkdir(task_folder+'Hk');
mdelete(task_folder+'Hk/*.sod');
end
// output all k-point
fid(2)=mopen(task_folder+'k_point_all.dat','w');
PIL_print_mat('k_point_all, @f:f, all k-point',..
k_point_all,'r',fid(2),'off');
mclose(fid(2));
// generate k distrubution variable
tot_k=length(k_point_all(:,1));
n_k=ceil(tot_k/n_alloc); // num of k-pt except the last task
alloc_k_pt=zeros(n_alloc,3);
alloc_k_pt(:,1)=n_k*ones(n_alloc,1);
alloc_k_pt($,1)=tot_k-n_k*(n_alloc-1);
count=0;
for n=1:n_alloc
alloc_k_pt(n,2)=count+1;
alloc_k_pt(n,3)=count+alloc_k_pt(n,1);
count=count+alloc_k_pt(n,1);
end
if find(alloc_k_pt(:,1)<=0)~=[] then
disp('Error: PIL_Hk_solver_dist, negative allocation!'..
+' Use less allocatlions or make tot_k/n_alloc=integer.');
abort
end
// print initial message
mfprintf(fid(1),..
' PIL_HK_solver_dist: Starting distributed k-point calculations\n');
mfprintf(fid(1),' running machine= %s\n',unix_g('hostname'));
mfprintf(fid(1),' total k-points= %d\n',tot_k);
mfprintf(fid(1),' total allocations= %d\n',n_alloc);
mfprintf(fid(1),' total threads= %d\n',n_thread);
mfprintf(fid(1),' total batch submission= %d\n\n',ceil(n_alloc/n_thread));
mfprintf(fid(1),' allocation %4d, number of k-points= %4d,'+..
' range=%7d ~ %7d\n',[1:n_alloc]',alloc_k_pt);
mfprintf(fid(1),'\n');
// preparing input files
mfprintf(fid(1),' PIL_Hk_solver_dist: preparing input files\n\n')
save(task_folder+'k_point_all.sod','k_point_all');
n_k=ceil(tot_k/n_alloc);
for n=1:n_alloc
if n~=n_alloc
k_point=k_point_all((n-1)*n_k+1:n*n_k,:);
else
k_point=k_point_all((n-1)*n_k+1:$,:);
end
save(task_folder+'k_point/k_point_'..
+string(n)+'.sod','k_point')
fid(2)=mopen(task_folder+'k_input/k_input_'..
+string(n)+'.sce','w');
mputl('clear; clc; stacksize('+string(fix(thread_mem/76*1e7))+..
') ;exec(PiLib);tic()',fid(2));
mputl('printf(''\n\n'')',fid(2));
mputl('printf('' current time= %d/%d/%d %d:%d:%d\n'',clock())',fid(2));
mputl('printf('' Starting Hk solver on '+string(n)..
+'-th allocation'')',fid(2))
mputl('printf(''\n\n'')',fid(2))
mputl('',fid(2));
mputl('chdir('''+task_folder+''')',fid(2))
mputl('load(''../'+project_name+'_ham.sod'')',fid(2));
mputl('load(''./k_point/k_point_'+string(n)+'.sod'')',fid(2));
select output_var
case 3
mputl('[Ek,Vk,Hk]=PIL_Hk_solver(k_point'..
+',ham.lat_vec,ham.Hr_mat,ham.uc_index);',fid(2));
mputl('save(''./Ek/Ek_'+string(n)+'.sod'',''Ek'')',fid(2));
mputl('save(''./Vk/Vk_'+string(n)+'.sod'',''Vk'')',fid(2));
mputl('save(''./Hk/Hk_'+string(n)+'.sod'',''Hk'')',fid(2));
case 2
mputl('[Ek,Vk]=PIL_Hk_solver(k_point'..
+',ham.lat_vec,ham.Hr_mat,ham.uc_index);',fid);
mputl('save(''./Ek/Ek_'+string(n)+'.sod'',''Ek'')',fid(2));
mputl('save(''./Vk/Vk_'+string(n)+'.sod'',''Vk'')',fid(2));
case 1
mputl('[Ek]=PIL_Hk_solver(k_point'..
+',ham.lat_vec,ham.Hr_mat,ham.uc_index);',fid(2));
mputl('save(''./Ek/Ek_'+string(n)+'.sod'',''Ek'')',fid(2));
end
mputl('',fid(2));
mputl('printf(''\n'')',fid(2));
mputl('printf('' time elapse=%f\n'',toc())',fid(2));
mputl('printf('' finish time= %d/%d/%d %d:%d:%d\n'',clock())',fid(2));
mputl('printf(''\n\n'')',fid(2));
mputl('exit()',fid(2));
mclose(fid(2));
end
// submit parallel input files
mfprintf(fid(1),' PIL_Hk_solver_dist: batch job submission\n')
mfprintf(fid(1),'\n')
count=0;
for n=1:n_alloc
// input file
call_command(2)=task_folder+'k_input/k_input_'+string(n)+'.sce';
// output file
call_command(4)=task_folder+'k_input/k_input_'+string(n)+'.log';
// count batch submit
if pmodulo(n,n_thread)==1 then
count=count+1;
mfprintf(fid(1),' ## Batch Submit-%d\n\n',count);
end
// submit jobs
unix(strcat(call_command));
mfprintf(fid(1),' allocation %4d submitted\n',n)
// show information
if pmodulo(n,n_thread)==0 & n~=n_alloc
c_tmp=clock();
mfprintf(fid(1),'\n');
mfprintf(fid(1),' waiting for job completion\n');
mfprintf(fid(1),' current time= %4d/%02d/%02d %02d:%02d:%02d\n',c_tmp);
mfprintf(fid(1),'\n');
// check last run
Ek_check=0;
while Ek_check==0
Ek_dir=dir(task_folder+'Ek');
Ek_check=1;
for m=1:n_thread
if grep(Ek_dir(2),'Ek_'+string(n-n_thread+m))==[] then
sleep(20*1e+3);
Ek_check=0;
break;
end
end
end
mfprintf(fid(1),' all jobs completed\n');
mfprintf(fid(1),' time elapse= %f seconds\n',etime(clock(),c_tmp));
mfprintf(fid(1),'\n');
end
end
mfprintf(fid(1),' PIL_Hk_solver_dist: job submit completed\n\n');
mclose(fid(1));
endfunction
|
483f8ca5b77b8d32b27d4a43eb510c5688b6aee7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2360/CH3/EX3.22/ex3_22.sce | 07c9072e6c97b82a14df41273b5cfab32221b967 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 696 | sce | ex3_22.sce | // Exa 3.22
format('v',6);clc;clear;close;
// Given data
theta1 = 128;//first maximum deflection in mm
theta3 = 90;//second maximum deflection in mm
theta_f = 70;// in mm
i = 6.2;// in µA
// The current sensitivity
Si = theta_f/i;// in mm/µA
disp(Si,"The current sensitivity in mm/µA is");
// The logarithmic decrement
// Formula %e^(2*lambda)= (theta1-thetaf)/(theta3-thetaf)
lembda = log((theta1-theta_f)/(theta3-theta_f) )*(1/2);
disp(lembda,"The logarithmic decrement is");
// lembda = (%pi*sie)/(sqrt( 1-((sie)^2) ));
// ((lembda/%pi)^2) = ((sie)^2)/(sqrt( 1-((sie)^2) ));
sie = lembda/sqrt(lembda^2+%pi^2);// the relative damping
disp(sie,"The relative damping is");
|
4e4f4e0696f3e5aa1698076f88a1c45eb608e4fc | 449d555969bfd7befe906877abab098c6e63a0e8 | /3863/CH12/EX12.2/Ex12_2.sce | cdd152ddcd9a0a36ee1296772da3304306217fd2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | Ex12_2.sce | clear
//
//Given
//Variable declaration
L=4*1000 //Length in mm
//Calculation
thetaA=((%pi/180)*(1)) //Slope at the ends in radians
yc=(thetaA*(L/3)) //Deflection at the centre in mm
//Result
printf("\n Deflection at the centre = %0.3f mm",yc)
|
d0664b515f8530cda9edded1aba91d2c232e2ff3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2213/CH3/EX3.5/ex_3_5.sce | b9bdda9801cd0cbd81815b58d9653045c9975aa6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sce | ex_3_5.sce | //Example 3.5 // thickness of copper deposited
clc;
clear;
close;
//given data :
A=0.00025;//in m^2
D=8900;//in kg/m^3
Z=32.95*10^-8;//in kg/C
I=1.5;//in A
t=60*60;//in seconds
m=Z*I*t;//in kg
v=m/D;
T=(v/A);
disp("Thickness of copper deposited is "+string(T)+"m or "+string(T*10^3)+"mm")
|
185faf72f3125b91c55f660778ccb43ca9eb80ee | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/armac.man.tst | 2ab6c60bedc4fd3e715f79a1c3b0b5f9a4bd0a99 | [
"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 | 213 | tst | armac.man.tst | clear;lines(0);
a=[1,-2.851,2.717,-0.865].*.eye(2,2)
b=[0,1,1,1].*.[1;1];
d=[1,0.7,0.2].*.eye(2,2);
sig=eye(2,2);
ar=armac(a,b,d,2,1,sig)
// extract polynomial matrices from ar representation
[A,B,D]=arma2p(ar);
|
6df28680ad65565d96e01360c8b6862bc4bcccda | 449d555969bfd7befe906877abab098c6e63a0e8 | /3651/CH7/EX7.4/4.sce | 8f7c12249473c3dd23fa038f7689c1ea5b8010b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 307 | sce | 4.sce |
//variable declaration
h=6.626*10**-34 //Planck constant
C=3*10**8 //Velocity of light
E_g=1.44 //bandgap
//calculations
lamda=(h*C)*10**10/(E_g*1.6*10**-19) //Wavelenght
//Result
printf('Wavelenght = %0.3f Angstrom \n',(lamda)) |
825feffa770ced2cc42d6411a75a323226631389 | 449d555969bfd7befe906877abab098c6e63a0e8 | /683/CH18/EX18.4/RB_4.sce | e91ea0f161ea96dd8f3aa2bf6ec76288a7b94c59 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 173 | sce | RB_4.sce | // sum 18-4
clc;
clear;
P=20*10^3;
Co=22400;
C=41000;
Ln=(C/P)^3;
Lh=Ln*10^6/(720*60);
// printing data in scilab o/p window
printf("Lh is %0.3f hrs ",Lh); |
8c6cb05b9a4fc7c11ece0be03454ae5473319ac2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2708/CH8/EX8.1/ex_8_1.sce | 85b252ec8ccc16efe6124802e3e63b992083c607 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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_8_1.sce | //Example 8.1 // Dielectric
clc;
clear;
//given data :
k=3;// Dielectric constant
E=1D6;// field intensity in V/m2
e=8.85D-12;// permitivity in C2/N.m2
P=e*(k-1)*E;// polarisation in C/m2
disp(P,"polarisation in C/m2")
D=k*e*E;// displacement vector in C/m2
disp(D,"Displacement in C/m2")
ED=.5*k*e*E^2;// Energy Density in Joules/m3
disp(ED,"Energy density in joules/m3")
|
eb841adea823ee2923f9532aca3907345735148d | f19d1dec66f19d3a8644043d3033428fc560a6c9 | /sql/tag_join.tst | 595df61bf423070b98143c39e4d56357bcd67aba | [
"Apache-2.0"
] | permissive | kurtericmiller/Zbloggi | f08686b1c3b42e2092ca0a013251661009c2cc55 | 5c4f33157635805eb3c7b4c0a1c1cf389acc5725 | refs/heads/master | 2016-09-03T07:38:59.278337 | 2012-08-01T20:30:08 | 2012-08-01T20:30:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,439 | tst | tag_join.tst |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `tag_join`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tag_join` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`article_id` int(11) NOT NULL,
`keyword_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MEMORY AUTO_INCREMENT=1244 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `tag_join` WRITE;
/*!40000 ALTER TABLE `tag_join` DISABLE KEYS */;
INSERT INTO `tag_join` VALUES (79,17,76,'0000-00-00 00:00:00','2012-01-17 11:19:38'),(80,17,77,'0000-00-00 00:00:00','2012-01-17 11:19:38'),(81,17,60,'0000-00-00 00:00:00','2012-01-17 11:19:38'),(89,16,60,'0000-00-00 00:00:00','2012-01-17 13:57:53'),(90,16,61,'0000-00-00 00:00:00','2012-01-17 13:57:53'),(91,16,88,'0000-00-00 00:00:00','2012-01-17 13:57:53'),(96,18,92,'0000-00-00 00:00:00','2012-01-17 15:44:22'),(97,18,77,'0000-00-00 00:00:00','2012-01-17 15:44:22'),(98,18,60,'0000-00-00 00:00:00','2012-01-17 15:44:22'),(99,18,88,'0000-00-00 00:00:00','2012-01-17 15:44:22'),(102,19,100,'0000-00-00 00:00:00','2012-01-18 12:07:33'),(103,20,100,'0000-00-00 00:00:00','2012-01-18 12:08:49'),(116,22,116,'0000-00-00 00:00:00','2012-01-18 13:19:21'),(117,22,60,'0000-00-00 00:00:00','2012-01-18 13:19:21'),(118,22,88,'0000-00-00 00:00:00','2012-01-18 13:19:21'),(119,21,100,'0000-00-00 00:00:00','2012-01-18 13:20:00'),(123,15,60,'0000-00-00 00:00:00','2012-01-19 11:53:02'),(124,15,61,'0000-00-00 00:00:00','2012-01-19 11:53:02'),(125,15,62,'0000-00-00 00:00:00','2012-01-19 11:53:02'),(126,15,124,'0000-00-00 00:00:00','2012-01-19 11:53:02'),(132,23,100,'0000-00-00 00:00:00','2012-01-22 09:11:38'),(133,23,116,'0000-00-00 00:00:00','2012-01-22 09:11:39'),(134,26,129,'0000-00-00 00:00:00','2012-01-26 15:09:59'),(144,27,129,'0000-00-00 00:00:00','2012-01-26 16:29:57'),(145,27,116,'0000-00-00 00:00:00','2012-01-26 16:29:57'),(146,27,137,'0000-00-00 00:00:00','2012-01-26 16:29:57'),(165,24,129,'0000-00-00 00:00:00','2012-01-27 09:32:45'),(1118,28,129,'0000-00-00 00:00:00','2012-02-03 19:09:39'),(1119,28,173,'0000-00-00 00:00:00','2012-02-03 19:09:39'),(1179,30,116,'0000-00-00 00:00:00','2012-02-09 21:22:35'),(1180,30,158,'0000-00-00 00:00:00','2012-02-09 21:22:35'),(1181,30,159,'0000-00-00 00:00:00','2012-02-09 21:22:35'),(1182,25,60,'0000-00-00 00:00:00','2012-02-09 21:23:37'),(1183,25,116,'0000-00-00 00:00:00','2012-02-09 21:23:37'),(1184,25,132,'0000-00-00 00:00:00','2012-02-09 21:23:37'),(1185,25,133,'0000-00-00 00:00:00','2012-02-09 21:23:37'),(1195,31,88,'0000-00-00 00:00:00','2012-02-12 08:51:55'),(1196,31,138,'0000-00-00 00:00:00','2012-02-12 08:51:55'),(1223,35,116,'0000-00-00 00:00:00','2012-02-16 12:53:42'),(1226,33,129,'0000-00-00 00:00:00','2012-02-17 09:21:45'),(1237,32,178,'0000-00-00 00:00:00','2012-02-20 16:42:53'),(1238,29,60,'0000-00-00 00:00:00','2012-02-27 10:45:50'),(1239,29,129,'0000-00-00 00:00:00','2012-02-27 10:45:50'),(1240,29,137,'0000-00-00 00:00:00','2012-02-27 10:45:50'),(1241,29,138,'0000-00-00 00:00:00','2012-02-27 10:45:50'),(1242,29,152,'0000-00-00 00:00:00','2012-02-27 10:45:50'),(1243,256,179,'0000-00-00 00:00:00','2012-03-01 16:25:41');
/*!40000 ALTER TABLE `tag_join` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
47f4c0f04b783087fec9690c462aec0ab69b4735 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH3/EX3.8/Ex3_8.sce | c43e44e869fc9b5fc655dc8189128cc28df27cd2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,394 | sce | Ex3_8.sce | //Variable declaration
Rb1=36 //base resistance 1(kohms)
Rb2=12 //base resistance 2(kohms)
Rc=4 //emitter resistancce(kohms)
Re=1.8 //emitter resistance(kohms)
Vcc=12 //supply voltage(V)
Vbe=0.7 //base to emitter voltage(V)
//Calculations
Rb=(Rb1*Rb2)/(Rb1+Rb2) //base resistance(ohms)
Vbb=Vcc*(Rb2/(Rb1+Rb2)) //voltage supply to base(V)
//(10.8*Ib)+(1.8*Ic)=2.3 equation 1...solving -Vbb+RbIb+Vbe+(Ib+IC)Re
//(1.8*Ib)+(5.8*Ic)+Vce=12 equation 2 solving -Vcc+RcIc+Vce+(Ob+Ic)Re
//Part a
beeta=50 //current gain
Ib=2.3/100.8 //(10.8*Ib)+(90*Ib)=2.3 ,using -Vbb+Rb*Ib+Vbe+(Ib+Ic)*Re
//as Ic=50Ib and putting this in equation 1
Icq=Ib*beeta
Vceq=Vcc-(1.8*Ib)-(5.8*Icq) //from equation 2
//Part b
beeta=150 //current gain
Ib=2.3/280.8 // (10.8*Ib)+(270*Ib)=2.3,using -Vcc+Rc*Ic+Vce+(Ib+Ic)*Re
//as Ic=150Ib and putting this in equation 1
Icq1=Ib*beeta
Vceq1=Vcc-(1.8*Ib)-(5.8*Icq1) //from equation 2
//Results
printf ("when beeta increases by 300%%,Icq increases by %.1f %%",(Icq1-Icq)/Icq1*100)
printf ("when beeta increases by 300%%, Vceq increases by %.f %%",(Vceq-Vceq1)/Vceq*100)
|
0d3b7a23da08e016809b5a2cc582636614acaba4 | 1db0a7f58e484c067efa384b541cecee64d190ab | /macros/islinphase.sci | 4eeec8851e22d11f81c2f4e87e965e3ee434be5e | [] | 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 | 4,338 | sci | islinphase.sci | //islinphase Determine whether filter has linear phase
<<<<<<< HEAD
// Calling Syntax and Parameter description
//flag = islinphase(b,a)
//takes input as numerator and denumerator coefficint matrices and returns flag =1 if filter is linear phase else return flag = 0
//flag = islinphase(sos)
//takes input as K x 6 second order split (sos) matrix and returns flag =1 if filter is linear phase else returns flag =0
//flag = islinphase(...,tol)
// tol -->this takes tolerence in similarities between two numbers in phase respose
//Example :
//flag = islinphase([0 1 2 2 1 0],1)
//Output:
//flag =
// 1.
//conclusion : output of above example is flag = 1 means filter is linear phase which must be as example is of symmetric linear phase fir filter
//Author: Parthasarathi Panda
//parthasarathipanda314@gmail.com
=======
// Calling Syntax
//flag = islinphase(b,a)
//flag = islinphase(sos)
//flag = islinphase(...,tol)
//Author: Parthasarathi Panda
//parthasarathipanda314@gmail.com
>>>>>>> 6bbb00d0f0128381ee95194cf7d008fb6504de7d
function islin=islinphase(varargin)
[nargout,nargin]=argn();
if (nargin==2) then
v=size(varargin(1));
if (v(2)~=6) | (v(2)==6 & v(1)==1) then
a=varargin(1);
b=varargin(2);
if type(a)~=1 | type(b)~=1 then
error('check input type');
end
v=size(a);
if length(v)>2 then
error('check input dimension');
end
v=size(b);
if length(v)>2 then
error('check input dimension');
end
[n,k]=size(a);
if k==1 then
a=a';
elseif n~=1 then
error('check input dimension');
end
[n,k]=size(b);
if k==1 then
b=b';
k=n;
elseif n~=1 then
error('check input dimension');
end
tol=0;
else
sos=varargin(1);
if type(sos)~=1 then
error('check input dimension');
end
v=size(sos);
if length(v)>2 then
error('check input dimension');
end
if v(2)~=6 then
error('no. of columns must be 6');
end
a=1;b=1;
for i=[1:v(1)]
a=convol(a,sos(1:3));
b=convol(b,sos(4:6));
end
tol=varargin(3);
if (type(tol)~=1) then
error('check input type');
end
if (size(tol)~=[1,1]) then
error('check input dimension');
end
end
elseif (nargin==1) then
tol=0;
sos=varargin(1);
if type(sos)~=1 then
error('check input dimension');
end
v=size(sos);
if length(v)>2 then
error('check input dimension');
end
if v(2)~=6 then
error('no. of columns must be 6');
end
a=1;b=1;
for i=[1:v(1)]
a=convol(a,sos(1:3));
b=convol(b,sos(4:6));
end
elseif (nargin==3) then
a=varargin(1);
b=varargin(2);
if type(a)~=1 | type(b)~=1 then
error('check input type');
end
v=size(a);
if length(v)>2 then
error('check input dimension');
end
v=size(b);
if length(v)>2 then
error('check input dimension');
end
[n,k]=size(a);
if k==1 then
a=a';
elseif n~=1 then
error('check input dimension');
end
[n,k]=size(b);
if k==1 then
b=b';
k=n;
elseif n~=1 then
error('check input dimension');
end
tol=varargin(3);
if (type(tol)~=1) then
error('check input type');
end
if (size(tol)~=[1,1]) then
error('check input dimension');
end
else
error('no. of inputs not matching');
end
if length(b)==1 then
err=a-a($:-1:1);
maxerr=max(err.*conj(err));
if err<=tol then
islin=1;
else
islin=0;
end
else
islin=0;
end
endfunction
|
7edd84eceeb35d9a464cf68e880ae6079f19ca09 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /sci2blif/rasp_design_added_blocks/vmmwta.sce | 7bb808dc80d942258e156aae21c80325d96381ea | [] | no_license | jhasler/rasp30 | 9a7c2431d56c879a18b50c2d43e487d413ceccb0 | 3612de44eaa10babd7298d2e0a7cddf4a4b761f6 | refs/heads/master | 2023-05-25T08:21:31.003675 | 2023-05-11T16:19:59 | 2023-05-11T16:19:59 | 62,917,238 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 250 | sce | vmmwta.sce | style.fontSize=14;
style.displayedLabel="<table> <tr> <td><b>In<br><br>nbias</b></td> <td></td> <td></td> <td><b>VMM+WTA</b></td> <td></td> <td></td> <td align=left><b>Out</b></td> </tr> </table>";
pal1_1 = xcosPalAddBlock(pal1_1,"vmmwta",[],style);
|
800a85ca46265d4f713479280805d10d7819e9e6 | b6f947f4c837358699eaf470673a9e49d8f269f6 | /projects/03/b/mag3.tst | 88f5a00e3d00ad9ee353aa6ee71bb865264fb45c | [] | no_license | domysticnom/Hack-Assembly | 314380e30b0d10ab0598f5b0965dfd74ad223087 | 73c11992d8721bc7626f26f6f3ae07bdfdb23e3c | refs/heads/master | 2022-12-11T22:17:00.907707 | 2020-09-08T22:53:00 | 2020-09-08T22:53:00 | 293,945,173 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 325 | tst | mag3.tst | load mag3.hdl,
output-file mag3.out,
compare-to mag3.cmp,
output-list in%B1.3.1 out%B3.1.3;
set in %B000,
eval,
output;
set in %B001,
eval,
output;
set in %B010,
eval,
output;
set in %B011,
eval,
output;
set in %B100,
eval,
output;
set in %B101,
eval,
output;
set in %B110,
eval,
output;
set in %B111,
eval,
output;
|
17e0b4b0feb7c0cdba3ce0db174a4002023f684f | 5e244ee21a463b92f547cd5626e466ab167a3e1b | /Semester 5/OST/10. Digital Filter Design by Bilinear Transformation/ost10.sce | 3495f334e28b6931d5f1f96e5cf7b9f118eab846 | [] | no_license | bumblebee26/Lab-Experiments | 5ab36e3a52fd3348d0d7634a08541e229e55680f | 8408eceabf65489d477c1e62a998c39b0bd0d828 | refs/heads/master | 2020-04-20T12:44:52.375127 | 2020-02-28T15:10:45 | 2020-02-28T15:10:45 | 168,850,941 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 128 | sce | ost10.sce | clc;
clear all;
s=%s
h=2/((s+1)*(s+2))
t=0.2
disp(h,'h = ')
z=%z
s=(2/t)*((z-1)/(z+1))
h_z=horner(h,s)
disp(h_z,'h_z = ')
|
f5fd3bb086d97991d28224d5fb65403729ec59f7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3825/CH6/EX6.15/Ex6_15.sce | 8dc470e3e97d5996a094ae02b9e17063c61550e8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 500 | sce | Ex6_15.sce | clc
a=83.56 //moles of nitrogen in product
b=3.7619
y=a/b
mprintf("y=%f\n",y)//ans vary due to roundoff error
c=(9.27+2.31)//moles of carbon in product
d=5
x=c/d
mprintf("x=%f\n",x)//ans vary due to roundoff error
e=(12*x)
z=e/2
mprintf("z=%f\n",z)//ans vary due to roundoff error
t=(y+a)/x
mprintf("Actual air-fuel ratio is given by%f mol air/mol fuel\n",t)//ans vary due to roundoff error
s=38.095
mprintf("percent theoretical air=%f\n",(t/s)*100)//ans vary due to roundoff error
|
3442a7908170b93744b13e4c5b5bb995b7308447 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2681/CH3/EX3.5/Ex3_5.sce | df5c0f8ba82d3dba260af187998d4ddd1a973197 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sce | Ex3_5.sce | //minimum voltage to operate
//given
clc
Vs=3.3d+3//VOLTS//the minimum voltage gradient required to start the diode
l=2.5d-6//meter//the drift length
Vmin=Vs*l//the minimum voltage required to operate
disp(Vmin*1000,'the minimum voltage required to operate in m/V')//mV//millivolts
|
d5c0ae618f1f77cb362b3639b8a32ae266f07f7c | 449d555969bfd7befe906877abab098c6e63a0e8 | /284/CH9/EX9.10/ex_10.sce | db2a94dac7889471538a3a5b2f0e5d3ce5e6be9f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 313 | sce | ex_10.sce | // Chapter 9_The bipolar transistor
//Caption_Ebers Moll model
//Ex_10//page 394
T=300
alpha_f=0.99
alpha_r=0.20
Ic=.001
Ib=50*10^-6
Vt=0.0259
x=Ic*(1-alpha_r)+Ib
y=alpha_f*Ib-((1-alpha_f)*Ic)
z=alpha_f/alpha_r
VCEsat=Vt*log(x*z/y)
printf('The collector emitter saturation voltage is %1.3f V',VCEsat) |
9e1cc6238415584cc54eaf213de34a9c526f228a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2753/CH4/EX4.3/Ex4_3.sce | 91ad91e3f867051d67d3934b99dd5e4bcf0ebfdc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 260 | sce | Ex4_3.sce | //Example 4.3:
clc;
clear;
close;
//given data :
format('v',6)
Vcc=20;// in V
Vbe=0.7;// in V
Rc=2;//in kilo-ohm
Icsat= Vcc/Rc;//in mA
Beta=200;//
Ib=(Icsat/Beta)*10^3;//in micro-A
Rb=((Vcc-Vbe)/(Ib))*10^3;//in kilo-ohm
disp("Rb < "+string(Rb)+" kilo-ohm")
|
40c84a030e51bc04e8c2679e907692d72a0fb948 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3665/CH2/EX2.6/Ex2_6.sce | fb23b75dc81c99248076578f732cf05639a5d72a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex2_6.sce | clc//
//
//
//Variable declaration
a=1;
b=1/2;
c=3;
//Calculation
A=1/a;
B=1/b;
C=1/c;
h=A*c;
k=B*c;
l=C*c; //miller indices of plane
//Result
printf("\n miller indices of plane is ( %0.3f %0.3f %0.3f)",h,k,l)
|
a4efbadee6dce9aa1d40c781863ee3b65173d642 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH33/EX33.4/33Ex4.sce | 4af5b8fedb2ed24cfcbb729d007bbec1e0993036 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 219 | sce | 33Ex4.sce | //Chapter 33 Ex 4
clc;
clear;
close;
BD=120; TD=110; //given
t=8/12; //converted in year
Sum=((BD*TD)/(BD-TD));
rate= ((100*BD)/(Sum*t));
mprintf("The sum is Rs.%d \n The rate is %.2f percent",Sum,rate);
|
bdebbb6509a00837fd43218c4f1fb74660f97cec | 449d555969bfd7befe906877abab098c6e63a0e8 | /1952/CH4/EX4.5/Ex4_5.sce | baa9ff7bf2a2f444b23635e63b386ae1576fa8df | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 341 | sce | Ex4_5.sce | // chapter 4 , Example 4.5 , pg 119
m=0.04//mass(in Kg)
v=1000//speed(in m/sec)
h=6.625*10^-34//plancks constant(in J s)
p=m*v//momentum(in kg m/sec)
lam=h/p //wavelength
printf("de Broglie wavelength(in m)\n")
disp(lam)
printf("de Broglie wavelength(in A)\n")
disp(lam*10^10)
//calculation is done assuming h=6.6*10^-34 Js
|
29d3add3add7ba4352842a995a6954ad27ea376a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3739/CH3/EX3.11/EX3_11.sce | 32725d46d3dc945d4f9e5e0243702f0eff8844d5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 771 | sce | EX3_11.sce | //Chapter 3, Example 3.11, page 98
clc
//Initialisation
h=12.5*10**-2 //in meter
d1=10*10**3 //in meter
d2=15*10**3 //in meter
d3=12.5*10**3 //in meter
d4=12.5*10**3 //in meter
h=1.25 //in Kilometer
//Calculation
r1=(((d1*d2)/(d1+d2))*h)**0.5 //radius of first and fourth Fresnel zones
r4=r1*(4)**0.5
R1=(((d3*d4)/(d3+d4))*h)**0.5 //radius of first and fourth ellipse zones
R4=R1*(4)**0.5
//Results
printf("Radius of first fresnel zones, r1 = %.2f m",r1)
printf("\nRadius of Second fresnel zones, r4= %.2f m",r4)
printf("\nh = %.2f x 10^-4 Km",h)
printf("\nRadius of first ellipse, R1 = %.2f m",R1)
printf("\nRadius of second ellipse, R4 = %.1f m",R4)
|
53df83ed86255b2a068308045c58ca9dc4794b8c | 449d555969bfd7befe906877abab098c6e63a0e8 | /869/CH10/EX10.7/10_7.sce | a06b071d8eee6ee593583e1625ea585a49e392d9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 317 | sce | 10_7.sce | clc
//initialisation of variables
k1= 6*10^6 //lb in/rad
k2= 3*10^6 //lb in/rad
k3= 2*10^6 //lb in/rad
T= 10000 //lb in
//CALCULATIONS
ke= 1/((1/k1)+(1/k2)+(1/k3))
angle= T*180/(ke*%pi)
//RESULTS
printf ('equivalent spring constant= %.2e lb in/rad',ke)
printf ('\n angle of twist d/a=%.2f degrees',angle)
|
f1ba1400b8bb15ad32e8ed81632f4a7a9c051222 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2006/CH8/EX8.8/ex8_8.sce | 964929be86bb25230e803576e5a3b527149d45c4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,618 | sce | ex8_8.sce | clc;
TL=-15; // Source temperature in degree celcius
TH=40; // Sink temperature in degree celcius
// From the table of properties of Freon - 12
h3=74.53; h1=180.85; h4=h3; // specific enthalpy in kJ/kg
s1=0.7046; s2=0.682; // specific entropy in kJ/kg K
// (a)
// (i).Condensor and Evaporator pressure
pc=0.9607; // Saturation pressure at TH in MPa
pE=0.1826; // Saturation pressure at TL in MPa
disp ("MPa",pE,"Evaporator pressure = ","MPa",pc,"Condensor pressure = ","(i).Condensor and Evaporator pressure","(a)");
// (ii).Compressor discharge temperature & Enthalpy
p2=pc; // Condensor pressure
s2=s1; // refer figure 8.25
// From the table of properties of Freon - 12 at pc
t2=46.8; // Compressor discharge temperature in degree celcius
h2=208.3; // specific enthalpy in kJ/kg
disp ("kJ/kg",h2,"Enthalpy = ","oC",t2,"Compressor discharge temperature = ","(ii).Compressor discharge temperature & Enthalpy");
// (iii).Ratio of COP of the cycle to Carnot COP
w=h2-h1; // Compressor work
qL=h1-h4; // Refrigeration effect
COP=qL/w; // COP of the cycle
COPc=4.68; // COP of carnot cycle from example 8.7
r=COP/COPc; // Ratio of COP of the cycle to Carnot COP
disp (r,"(iii).Ratio of COP of the cycle to Carnot COP = ");
// (b)
QL=0.440; // Capacity of refrigerator in kW (1/8 ton of refrigeration)
m=QL/qL; // Mass flow rate of refrigerant
W=m*w; // Power consumption of compressor
QH=QL+W; // Heat rejected
disp ("kW",QH,"Heat rejected to surroundings = ","kW",W,"Power consumption of compressor = ","kg/s",m,"Mass flow rate of refrigerant = ","(b)");
|
a1d8e826bbafe7979b5ecfbfa97df8cb35a1d0c6 | 717ddeb7e700373742c617a95e25a2376565112c | /854/CH12/EX12.5/Example12_5.sce | 78b55712344b271afc0c990d3dc58c6d8fc90741 | [] | 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 | 934 | sce | Example12_5.sce | //clear//
//Caption:Program to find the attenuation constant,propagation constant and intrinsic impedance
//Example12.5
//page412
clc;
f = 2.5e09;//high microwave frequency = 2.5GHz
er1 = 78;//relative permittivity
er2 = 7;
C = 3e08; //free space velocity in m/sec
[uo,eo] = muo_epsilon(); //free space permittivity and permeability
ur = 1; //relative permeability
etta0 = 377; //free space intrinsic imedance in ohms
alpha = attenuation_constant_gooddie(uo,eo,f,er1,er2,ur);
etta = intrinsic_good_dielectric(etta0,er1,er2);
beta1 = phase_constant_gooddie(uo,eo,f,er1,er2,ur);
disp(alpha,'attenuation constant per cm alpha=')
disp(beta1,'phase constant in rad/m beta1 =')
disp(etta,'Intrinsic constant in ohms etta=')
//Result
//attenuation constant per cm alpha=
// 20.748417
//phase constant in rad/m beta1 =
// 462.3933
//Intrinsic constant in ohms etta=
// 42.558673 + 1.9058543i
|
39fc4bceb7975f5478090de5c0c5027f6db15544 | 449d555969bfd7befe906877abab098c6e63a0e8 | /761/CH12/EX12.6/12_6.sce | 00bf91d7e393c5e4af8a78510a94104ab06ce624 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 137 | sce | 12_6.sce | clc;
// page no 415
// prob no 12_6
B=3*10^3;SNR_dB=30;
SNR_power=10^(30/10);
C=B*log2(1+SNR_power);
disp('b/s',C,'Shannon limit'); |
f34584d85369ee9ddbcd665ab72ff02da2ca1de8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1910/CH6/EX6.1/Chapter61.sce | 2b38764d9ae87bf75b3f51b958a5510ad292b85d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,508 | sce | Chapter61.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Introduction to heat transfer by S.K.Som, Chapter 6, Example 1")
//Oil of specific gravity 0.90 and dynamic viscosity (mu=0.1Pa*s) flows between two fixed plates kept 2*b=10mm apart,So b=5mm.
//The average velocity is Uav=1.60m/s
Uav=1.60;
mu=0.1;
b=0.005;// in metre
//Umax is maximum velocity
//Umax=(3/2)*Uav
disp("Umax in m/s is")
Umax=(3/2)*Uav
//The shear stress at the plate is given by T=2*µ*(Umax/b)
disp("The shear stress T in N/m^2")
T=2*mu*(Umax/b)
//The shear sress at a distance from plate is given by t=y*(dp/dx)
//(dp/dx)=X=-3*mu*(Uav/b^2)
disp("(dp/dx) in N/m^3 is")
X=-3*mu*(Uav/b^2)
//Taking modulus of X by multipying it with negative sign.
disp("The Shear stress at a distance of 0.002m from the lower plate in N/m^2")
y=b-0.002;
t=y*(X)//NOTE:Answer given in the book is incorrect (Calculation mistake)
disp("The shear stress at a distance of 0.002m from the upper plate in N/m^2")
t=-y*(X)//NOTE:Answer given in the book is incorrect (Calculation mistake)
disp("The opposite signs in t represents the opposite directions.The plus sign is in the direction of flow and the minus sign is in the direction opposite to the flow ")
//deltaP is the pressure drop
disp("The pressure drop over a distance of 2m in N/m^2 is")
//Since pressure drop is considered at a distance of 2m so L=2m
L=2;
deltaP=(-X)*L
|
9809778c5eb25df6d6157f50daffb88fdfb3b7dc | d422d2bd9c82ca6a247ec578514ee6d3b5fa48b7 | /local/lctrs/lssn_2/import.sce | 1e7fffd27695432fa00fd5cbb7a2b38deb3ba673 | [] | no_license | kirillin/python_ev3 | bee3d9682f848b188d6c3b967f37dfc5a4aa3080 | 58c34ad11588bdc05e53a8466d6a12fe2c1a6ab2 | refs/heads/master | 2020-08-04T22:52:07.665251 | 2017-01-06T15:17:10 | 2017-01-06T15:17:10 | 67,629,534 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 267 | sce | import.sce | clear;
angle = 10;
importXcosDiagram("/media/data/evo/python_ev3/local/lctrs/lssn_2/test_to_ws.zcos");
xcos_simulate(scs_m, 4);
plot(A.time, A.values);
a = gca();
a.children.children.thickness = 3;
xs2png(0, "/media/data/evo/python_ev3/local/lctrs/lssn_2/text.png");
|
d983f49d03866a67c3ed12ea7ecff18a4b65af2d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3638/CH8/EX8.5/Ex8_5.sce | 2b0aad6d68531ae9d73eb15ee6b68b870966e989 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 713 | sce | Ex8_5.sce | //Introduction to Fiber Optics by A. Ghatak and K. Thyagarajan, Cambridge, New Delhi, 1999
//Example 8.5
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;
//given
lambda0=1300e-9;//operating wavelength of single mode fiber in m
omega=5e-6;//spot size of fiber in m
n1=1.45;//refractive index of core
n2=1.45;//refractive index of cladding
D=20e-6;//longitudinal misalignment in m
Dbar=D*lambda0/(2*(%pi)*n1*(omega^2));//dimensionless normalized separation
mprintf("Dbar=%f",Dbar);//The answers vary due to round off error
alphat=10*log10(1+(Dbar^2));//corresponding value of splice loss due to longitudinal misalignment in dB
mprintf("\n Corresponding value of splice loss=%.2f dB",alphat);
|
01395f27c016adb7f51071e7125b41722490e9d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH18/EX18.4/18_4.sce | 8ecabd9cae15f12d82618340de5b5c9d9f4ee41d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 532 | sce | 18_4.sce | //chapter 18
//example 18.4
//page 575
clear;
clc ;
//given
PD=360;//power dissipation in mW
RBBmin=4;//kohm
RBBmax=12;//kohm
//to get lowest value of VB1B2,use RBBmin
VB1B2max=sqrt(RBBmin*PD);
printf("\nFor 25 degree,value of VB1B2=%d V",ceil(VB1B2max));
VB2E=30;//maximum emitter reverse voltage
printf("\nAt 25 degree,VB1B2 should not exceed 30 V")
//for operation till 100 degrees
deltaT=100-25;
PD1=PD-(2.4*deltaT);
//ignore increase in RB
VB1B2max=sqrt(RBBmin*PD1);
printf("\nupto 100 degree,value of VB1B2=%.1f V",VB1B2max); |
178ccc728a15a765c90cda20078a947eddb1d04d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1979/CH3/EX3.7/Ex3_7.sce | e83a902307f656c61ea6fd05407bb07515536ee2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 848 | sce | Ex3_7.sce | //chapter-3 page 50 example 3.7
//==============================================================================
clc;
clear;
Z0=50;//Characteristic Impedance in ohms
S=3.2;//Voltage Standing Wave Ratio(VSWR)
//It is possible to measure the load impedance if the line is assumed lossless,by measuring the VSWR,wavelength and the distance from the load to the nearest voltage minimum
//CALCULATIONS
w=1;//Assume Wavelength in met
Xmin=0.23*w;//Distance from the load to the nearest voltage minimum in met
b=(2*(%pi))/w;
Zl=Z0*((1-(S*(%i)*tan(b*Xmin)))/(S-((%i)*tan(b*Xmin))));//Load impedance in ohms
disp('Load impedance in ohms is');
disp(Zl);
//=========================END OF PROGRAM===================================================
//Note: Check the answer given in Text book once. I think it is wrong in text book..
|
bf0a5e257d15edd95a1c2d7ced0d7f103041e572 | 449d555969bfd7befe906877abab098c6e63a0e8 | /716/CH3/EX3.8.b/Solved_Ex3_8b.sce | 9b1661b608d34d7cfe5748bf0c007bb2f7642719 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 383 | sce | Solved_Ex3_8b.sce | //X=L(x(t))->find initial value,x(0) and final value,x(inf) using initial and final value theorem
clc;
clear;
s=poly(0,"s");
X=(s+1)/(s.^2+2*s+2);
X=s*(X);
xinf=horner(X,0);
disp(xinf,'x(inf) by final Value theorem:');
x0=(1+1/%inf^2)/(1+2/%inf+2/%inf^2);//directly putting and dividing Numerator and Denominator by infinity powers
disp(x0,'x(0) by initial Value theorem:'); |
b03c73f2ebe88544038883cbed5e1430b25a4ead | bd4a88a5c028a801cbf0e414d2630de1c1e35449 | /scilab/SaveVars2.sce | 580166cc9c4456f103e3277467e0df7a009a11e9 | [] | no_license | edielsonpf/turning-signal-analysis | 625783cea26b029c87925f96af4ac14aa38c8ae8 | 2fd594e79395caa72f5cebc378878367ff0e7f01 | refs/heads/master | 2021-03-13T00:01:23.673430 | 2018-12-24T14:44:39 | 2018-12-24T14:44:39 | 41,508,152 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,423 | sce | SaveVars2.sce | setups = [
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=186,f=0.15,ap=0.15'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.10'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=200,f=0.10,ap=0.20'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=240,f=0.20,ap=0.10'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.15,ap=0.23'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=220,f=0.23,ap=0.15'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.10'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=240,f=0.10,ap=0.20'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=220,f=0.15,ap=0.15'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'
'vc=240,f=0.20,ap=0.20'];
save('setups.mat','setups');
Ra = [
0.29; 0.33; 0.28; 0.31; 0.25; 0.28; 0.27; 0.25; 0.26; 0.24; 0.25; 0.26; 0.22; 0.23; 0.25
0.15; 0.15; 0.15; 0.14; 0.14; 0.14; 0.15; 0.15; 0.15; 0.13; 0.14; 0.13; 0.16; 0.16; 0.15
0.20; 0.20; 0.20; 0.19; 0.19; 0.19; 0.18; 0.19; 0.18; 0.19; 0.19; 0.19; 0.19; 0.19; 0.18
0.48; 0.48; 0.48; 0.48; 0.47; 0.47; 0.45; 0.45; 0.45; 0.35; 0.35; 0.35; 0.46; 0.45; 0.45
0.25; 0.25; 0.25; 0.24; 0.25; 0.25; 0.27; 0.27; 0.27; 0.25; 0.25; 0.25; 0.28; 0.28; 0.28
0.51; 0.51; 0.51; 0.50; 0.50; 0.50; 0.51; 0.51; 0.51; 0.50; 0.50; 0.49; 0.49; 0.49; 0.49
0.16; 0.16; 0.16; 0.17; 0.17; 0.17; 0.14; 0.14; 0.14; 0.18; 0.18; 0.17; 0.16; 0.16; 0.16
0.18; 0.18; 0.18; 0.17; 0.17; 0.17; 0.15; 0.15; 0.15; 0.18; 0.18; 0.18; 0.22; 0.23; 0.23
0.19; 0.20; 0.19; 0.18; 0.18; 0.18; 0.19; 0.19; 0.19; 0.18; 0.18; 0.17; 0.22; 0.21; 0.21
0.53; 0.53; 0.52; 0.53; 0.52; 0.53; 0.52; 0.52; 0.51; 0.52; 0.52; 0.52; 0.52; 0.52; 0.52
];
save('ra.mat','Ra');
Ry = [
2.03; 2.38; 2.24; 2.15; 1.68; 1.91; 2.05; 1.59; 1.90; 1.77; 1.84; 1.90; 1.51; 1.43; 1.71
1.06; 1.03; 1.02; 1.05; 1.04; 1.05; 1.09; 1.11; 1.09; 0.99; 0.97; 0.98; 1.11; 1.09; 1.08
1.51; 1.49; 1.47; 1.30; 1.31; 1.29; 1.23; 1.32; 1.30; 1.28; 1.27; 1.28; 1.47; 1.45; 1.44
2.44; 2.43; 2.41; 2.48; 2.54; 2.52; 2.39; 2.46; 2.39; 1.94; 1.95; 1.96; 2.34; 2.35; 2.35
1.96; 1.86; 1.88; 1.82; 1.88; 1.93; 1.84; 1.77; 1.80; 1.78; 1.82; 1.83; 2.14; 2.12; 2.12
2.76; 2.73; 2.70; 2.76; 2.75; 2.74; 2.56; 2.55; 2.55; 2.61; 2.59; 2.58; 2.52; 2.49; 2.49
1.06; 1.08; 1.08; 1.33; 1.32; 1.33; 1.03; 1.02; 1.04; 1.27; 1.23; 1.21; 1.23; 1.17; 1.18
1.21; 1.17; 1.19; 1.34; 1.32; 1.30; 1.04; 1.11; 1.05; 1.36; 1.32; 1.32; 1.64; 1.70; 1.67
1.46; 1.43; 1.41; 1.29; 1.24; 1.28; 1.50; 1.51; 1.50; 1.50; 1.53; 1.46; 1.43; 1.40; 1.38
2.97; 2.98; 2.98; 2.84; 2.83; 2.84; 2.95; 2.94; 2.89; 2.81; 2.83; 2.84; 2.92; 2.94; 2.94
];
save('ry.mat','Ry');
MRR=[
4.19; 4.19; 4.19; 4.19; 4.19; 4.19; 4.19; 4.19; 4.19; 4.19; 4.19; 4.19; 4.19; 4.19; 4.19
2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2; 2
4; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4; 4
4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8
7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59
7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59; 7.59
2.4; 2.4; 2.4; 2.4; 2.4; 2.4; 2.4; 2.4; 2.4; 2.4; 2.4; 2.4; 2.4; 2.4; 2.4
4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8; 4.8
4.95; 4.95; 4.95; 4.95; 4.95; 4.95; 4.95; 4.95; 4.95; 4.95; 4.95; 4.95; 4.95; 4.95; 4.95
9.6; 9.6; 9.6; 9.6; 9.6; 9.6; 9.6; 9.6; 9.6; 9.6; 9.6; 9.6; 9.6; 9.6; 9.6
];
save('mrr.mat','MRR');
vc = [
186
186
186
186
186
186
186
186
186
186
186
186
186
186
186
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
200
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
220
220
220
220
220
220
220
220
220
220
220
220
220
220
220
240
240
240
240
240
240
240
240
240
240
240
240
240
240
240
];
save('vc.mat','vc');
f = [
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.23
0.23
0.23
0.23
0.23
0.23
0.23
0.23
0.23
0.23
0.23
0.23
0.23
0.23
0.23
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.1
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.15
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
0.2
];
save('f.mat','f');
m1=[
-16.9210
-13.5969
11.8948
0.3633
2.5963
33.7071
0.8152
18.7614
20.2758
11.3284
-15.0687
-18.6072
7.2900
2.7852
0.3161
32.5116
4.5191
2.5589
19.3956
4.1226
-10.5173
-16.3720
10.7701
3.1310
0.0929
26.3998
5.3962
-25.1120
16.7649
6.1463
-9.7322
-15.8223
5.4118
-2.6508
-1.5600
24.4210
7.1264
13.2129
18.9244
9.1386
-11.9421
-17.0412
3.4509
-3.6027
-4.7593
23.9068
6.1657
14.8227
17.9615
1.3823
-9.7303
-18.0641
3.2423
1.4235
-4.3774
24.7719
1.5736
6.2770
17.9903
2.7354
-11.8263
-18.7543
4.2473
-1.1401
-5.3308
24.6007
2.3444
10.6714
14.8821
4.2254
-13.4468
-18.9915
3.2358
3.7756
-6.5522
22.6829
8.8688
9.7460
14.3209
4.1964
-17.1459
-18.9693
-0.7379
4.7547
-6.8876
-28.3313
1.4579
10.7255
15.8530
2.9303
-14.4091
-20.8816
-0.6628
4.2380
-6.6229
23.9708
3.0881
16.0028
13.1835
2.2032
-19.0695
-19.5580
-2.7398
0.1897
-5.1048
22.6721
3.7777
10.9358
10.4859
-0.7934
-18.8311
-24.2597
0.9822
1.6178
-7.4930
28.3117
7.6021
10.9779
14.8423
-1.3970
-19.1644
-21.3722
-2.0471
-3.0250
-3.1635
27.7570
2.3457
8.9021
17.6880
8.4834
-15.8963
-19.9608
-2.4099
0.0450
-1.5620
25.9279
3.8915
10.9158
-27.0757
5.6835
-17.9545
-32.7439
-2.8434
-4.8914
5.0386
25.5180
2.9666
3.9787
17.5008
5.7274
];
save('m1.mat','m1');
m2=[
-22.2110
-20.1315
-37.6071
-31.9064
-32.4457
-46.1875
-40.1748
-48.2844
-49.8485
-38.0102
-21.3327
-17.9317
-32.8473
-30.5463
-30.9036
-48.6721
-37.3456
-34.1922
-45.0326
-36.6015
-17.2538
-20.8712
-32.6398
-26.2280
-28.6101
-48.8055
-36.1304
-14.6833
-44.2453
-34.8973
-15.7328
-21.3021
-29.7337
-22.1969
-27.4515
-47.5931
-34.9991
-44.0848
-39.8620
-31.7807
-13.1406
-20.8324
-30.1338
-24.3130
-26.5511
-46.6802
-35.5207
-46.0221
-40.3955
-33.6482
-11.7349
-19.2097
-30.0420
-21.2058
-26.2047
-44.5704
-37.7722
-43.7332
-39.8202
-33.1010
-10.2071
-17.6174
-28.9478
-20.9603
-24.9036
-43.7177
-35.4784
-47.5334
-41.1090
-31.3672
-10.8135
-17.4762
-35.1032
-25.3748
-24.7613
-43.0835
-38.2947
-45.8632
-40.7242
-30.2596
-10.4438
-15.6748
-30.5417
-27.9553
-23.7559
-45.1980
-39.3480
-47.5347
-39.1943
-29.0558
-8.6640
-14.9481
-29.8209
-26.3783
-24.5485
-11.6824
-38.7887
-42.1274
-39.4901
-27.4066
-10.5302
-14.4230
-29.7830
-27.3284
-25.5446
-44.3268
-37.9710
-43.6591
-38.9722
-28.7173
-9.6135
-10.5003
-27.4155
-24.2614
-23.6635
-46.1040
-35.0916
-43.9637
-42.4215
-27.1140
-8.8981
-12.7664
-28.5770
-25.2659
-25.6014
-45.1321
-36.1197
-45.0470
-39.2699
-36.7224
-7.4062
-13.4489
-29.6892
-23.6634
-25.9874
-44.3587
-35.7845
-43.6156
-27.7868
-38.6120
-6.5734
-7.2041
-27.5076
-24.3135
-27.1116
-42.9364
-35.5119
-41.2239
-38.9532
-36.7760
];
save('m2.mat','m2');
|
680abffadf706740fa438b00bed45f1382ff789b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1238/CH1/EX1.23.b/23_b.sce | 6bc1b9b3b2651ce637dbc6284d900ced369d9220 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 831 | sce | 23_b.sce | //BCD to decimal conversion//
//Example 23.b//
//subtraction using 2's complement//
clc
//clears the console//
clear
//clears all exisiting variables//
a=100001001111000;//taking the BCD input//
z=0;
d=modulo(a,10000)
for j=1:4
y(j)=modulo(d,10)
z=z+(y(j)*(2^(j-1)))
d=d/10
d=floor(d)
end
b=a/10000
b=floor(b)
z1=0
c=modulo(b,10000)
for i=1:3
y(i)=modulo(c,10)
z1=z1+(y(i)*(2^(i-1)))
c=c/10
c=floor(c)
end
z2=0
e=b/10000
e=floor(e)
f=modulo(e,10000)
for i=1:2
y(i)=modulo(f,10)
z2=z2+(y(i)*(2^(i-1)))
f=f/10
f=floor(f)
end
g=e/10000
g=floor(g)
z3=0
for i=1:3
y(i)=modulo(g,10)
z3=z3+(y(i)*(2^(i-1)))
g=g/10
g=floor(g)
end
r=z3*1000+z2*100+z1*10+z
printf('the equivalent decimal number is=%d',r)
|
a3b484bcd429a18929b7e0f7087db37cc0120135 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH7/EX7.2/Ex7_2.sce | c17b48f8dd59b317a440b8bed02bf040b2474415 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 180 | sce | Ex7_2.sce | clear
//Given
V=230 //v
P=100
t=20*60
V1=115 //V
//Calculation
R=V**2/P
E=(V1**2*t)/R
//Result
printf("\n Heat and light energy is %0.3f J", E)
|
06f19aede76112431e4edabe05e667ddd987e458 | d422d2bd9c82ca6a247ec578514ee6d3b5fa48b7 | /local/lctrs/lssn_3/motor_ind.sce | 3fcbe73a554132a0faae84ac87e75cedf444832d | [] | no_license | kirillin/python_ev3 | bee3d9682f848b188d6c3b967f37dfc5a4aa3080 | 58c34ad11588bdc05e53a8466d6a12fe2c1a6ab2 | refs/heads/master | 2020-08-04T22:52:07.665251 | 2017-01-06T15:17:10 | 2017-01-06T15:17:10 | 67,629,534 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 475 | sce | motor_ind.sce | clear;
function e = G(a, z)
e = z(2) - a(1)*z(1) - a(1)*a(2)*exp(-z(1)/a(2)) + a(1)*a(2);
endfunction
path = "/media/data/evo/python_ev3/local/lctrs/lssn_3/";
data = read(path + "data.txt", -1, 2);
time = data(:,1);
time = time -time(1);
data(:,2) = data(:,2) * %pi / 180;
angle = data(:,2);
a0 = [1; 20];
[aa, er] = datafit(G, data', a0);
model = aa(1)*time + aa(1)*aa(2)*exp(-time / aa(2)) - aa(1)*aa(2);
disp(aa);
plot(time, angle, "b");
plot(time, model, "r--");
|
d46078738ef5d55dc22816dbc6d4930e2c4c5d65 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1736/CH3/EX3.13/Ch03Ex13.sce | 0da6afe641649f0f585be09e93dafd669c55e441 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,799 | sce | Ch03Ex13.sce | // Scilab Code Ex3.13: Page-93 (2006)
clc; clear;
k = 1.38e-023; // Boltzmann constant, J/K
h = 6.626e-034; // Planck's constant, Js
A = cell(4,5); // Declare a matrix of 4X5
A(1,1).entries = 300;
A(1,2).entries = 0.878e+010;
A(1,3).entries = 0.483e+010;
A(1,4).entries = 0.448e+010;
A(2,1).entries = 200;
A(2,2).entries = 0.968e+010;
A(2,3).entries = 0.508e+010;
A(2,4).entries = 0.512e+010;
A(3,1).entries = 100;
A(3,2).entries = 1.050e+010;
A(3,3).entries = 0.540e+010;
A(3,4).entries = 0.579e+010;
A(4,1).entries = 20;
A(4,2).entries = 1.101e+010;
A(4,3).entries = 0.551e+010;
A(4,4).entries = 0.624e+010;
s = 2; // Number of atoms in a unit cell
a = 4.225e-10; // Lattice parameter of Na, m
rho = 0.971e+03; // Density of Na, kg/metre-cube
Va = a^3; // Volume of unit cell, metre cube
printf("\n________________________________________");
printf("\nT C11 C12 C44 thetaD")
printf("\n________________________________________");
for i=1:1:4
A(i,5).entries = (3.15/(8*%pi)*(h/k)^3*s/(rho^(3/2)*Va)*(A(i,2).entries-A(i,3).entries)^(1/2)*(A(i,2).entries+A(i,3).entries+2*A(i,4).entries)^(1/2)*A(i,4).entries^(1/2))^(1/3);
printf("\n%3d %5.3f %5.3f %5.3f %3d", A(i,1).entries, A(i,2).entries/1e+10, A(i,3).entries/1e+10, A(i,4).entries/1e+10, A(i,5).entries);
end
printf("\n________________________________________");
// Result
// ________________________________________
// T C11 C12 C44 thetaD
// ________________________________________
// 300 0.878 0.483 0.448 197
// 200 0.968 0.508 0.512 210
// 100 1.050 0.540 0.579 222
// 20 1.101 0.551 0.624 229
// ________________________________________
// The theta values given in the textbook are wrong
|
d245215e6b4647d4443873ab6525034d142e7699 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3701/CH5/EX5.6/Ex5_6.sce | a6d3219e044bbbae36641546c28d9999323ba50c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 245 | sce | Ex5_6.sce | ////Given
t=10.0**-12 //s
h1=1.054*10**-34
h=6.625*10**-34
//Calculation
E=h1/t
v=E/h
//Result
printf("\n uncertainity in energy is %e J",E)
printf("\n uncertainity in frequency is %e Hz",v)
|
498875d9c55078a906efc512913143336b898f24 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2267/CH12/EX4.19/Ex12_19.sce | cf3903d667f9e24855443511a0a1831e23743af2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 405 | sce | Ex12_19.sce | //Part B Chapter 4 Example 19
clc;
clear;
close;
d=16;//cm
As=%pi/4*d^2;//cm
D1=poly(0,'D1');
D2=poly(0,'D2');
deltaD=As/(%pi/4);//(let deltaD=D1^2-D2^2)
//USS=1.2*USH
//USS=(D1^2+D2^2)/D1^2*USH
D2BYD1=sqrt(0.2);
D1=sqrt(deltaD/(1-D2BYD1^2));//cm
D2=D2BYD1*D1;//cm
disp("Outer diameter of hollow shaft is "+string(D1)+" cm.");
disp("Inner diameter of hollow shaft is "+string(D2)+" cm.");
|
b80bc47110b2cf5adc34349348409a772ec6e8a5 | bce0c755bfdc527c8cc0737e8e1e59467267cff9 | /macros/trainSVMClassifier.sci | a288163986df43d5ff5887db93f5f61676b03955 | [] | no_license | shubham0108/FOSSEE-Image-Processing-Toolbox | bacc26e6c7139383a374ea16f6c62565a7ff0603 | 68cddb2ca8dabddfe47251ac6647011acb849a2c | refs/heads/master | 2021-06-16T02:27:39.886532 | 2020-05-01T09:23:39 | 2020-05-01T09:23:39 | 97,078,162 | 0 | 0 | null | 2017-07-13T03:57:21 | 2017-07-13T03:57:21 | null | UTF-8 | Scilab | false | false | 5,494 | sci | trainSVMClassifier.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author: Nihar Rao
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function [classifier]=trainSVMClassifier(imgSet,bag,classifierName,varargin)
// This function is used to train an image classifier using the SVM(Support Vector Machines) Model.
//
// Calling Sequence
// imgSet = imageSet(directory,'recursive');
// 'or'
// imgSet = imageSet(image);
// bag = bagOfFeatures(imgSet);
// classifier = trainSVMClassifier(imgSets, bag);
// classifier = trainSVMClassifier(imgSets, bag,'nameclass')
// classifier = trainSVMClassifier(imgSets, bag,'nameclass')
// classifier = trainSVMClassifier(imgSets, bag,'nameclass',C)
// classifier = trainSVMClassifier(imgSets, bag,'nameclass',C,coeff)
// classifier = trainSVMClassifier(imgSets, bag,'nameclass',C,coeff,degree)
// classifier = trainSVMClassifier(imgSets, bag,'nameclass',C,coeff,degree,gamma)
// classifier = trainSVMClassifier(imgSets, bag,'nameclass',C,coeff,degree,gamma,kernelType,Nu)
// classifier = trainSVMClassifier(imgSets, bag,'nameclass',C,coeff,degree,gamma,kernelType,Nu,P)
// classifier = trainSVMClassifier(imgSets, bag,'nameclass',C,coeff,degree,gamma,kernelType,Nu,P,setType)
//
// Parameters
// classifier: Image category classifier location
// BagofFeaturesLocation : location of the xml or yml file.
// Description : features obtained after training.
// imgSets: Input imageSet to train the classifier on
// bag: The bagOfFeatures of the imageSet provided
// image: The set of images used for creating the imageset used for training
// nameclass: Name of the classifier one wants for their trained model .xml or .yml file
// C: Parameter C of a SVM optimization problem that should be used to train the model
// coef: Parameter coef0 of a kernel function that should be used to train the model
// degree: Parameter degree of a kernel function that should be used to train the model
// gamma:Parameter γ of a kernel function that should be used to train the model.
// kernelType:Type of a SVM kernel that should be used to train the model.it should be [-1,5].
// Nu:Parameter ν of a SVM optimization problem that should be used to train the model.
// P: Parameter ϵ of a SVM optimization problem that should be used to train the model.
// type: Type of a SVM formulation that should be used to train the model.it should be [100,104].
//
// Description
// this function is used to train an image classifier using the SVM(Support Vector Machines) Model.
//
//
// Examples
// //get imageset from 'images2' folder
// image=imageSet('images2','recursive');
// //get bag of features
// x=bagOfFeatures(image);
// //train thew model and name the saved .yml file as "SVM"
// d=trainSVMClassifier(image,x,"SVM");
// //read image to get prediction from mthe above trained data
// z=imread("fish.jpg");
// //finally predict the class using SVM's prediction function for the input image
// resp=predict(d,z,"SVM");
//
// //get imageset from 'images2' folder
// image=imageSet('images2','recursive');
// //get bag of features
// x=bagOfFeatures(image);
// //train the model with the given parameters and name the saved .yml file as "SVM"
// d=trainSVMClassifier(image,x,"SVM",1.1,0.2);
// //read image to get prediction from mthe above trained data
// z=imread("fish.jpg");
// //finally predict the class for the input image
// resp=predict(d,z,"SVM");
//convert to list
bag_list = bagStructToList(bag);
imgSets_list = imageSetToList(imgSet);
[lhs rhs]=argn(0);
if lhs>1
error(msprintf(" Too many output arguments"));
elseif rhs>11
error(msprintf(" Too many input arguments,maximum number of arguments is 11"));
elseif rhs<3
error(msprintf("the function needs atleast 3 arguments"));
end
if rhs==3
temp=raw_trainSVMClassifier(imgSets_list, bag_list,classifierName);
elseif rhs==4
temp=raw_trainSVMClassifier(imgSets_list,bag_list,classifierName,varargin(1));
elseif rhs==5
temp=raw_trainSVMClassifier(imgSets_list,bag_list,classifierName,varargin(1),varargin(2));
elseif rhs==6
temp=raw_trainSVMClassifier(imgSets_list,bag_list,classifierName,varargin(1),varargin(2),varargin(3));
elseif rhs==7
temp=raw_trainSVMClassifier(imgSets_list,bag_list,classifierName,varargin(1),varargin(2),varargin(3),varargin(4));
elseif rhs==8
temp=raw_trainSVMClassifier(imgSets_list,bag_list,classifierName,varargin(1),varargin(2),varargin(3),varargin(4),varargin(5));
elseif rhs==9
temp=raw_trainSVMClassifier(imgSets_list,bag_list,classifierName,varargin(1),varargin(2),varargin(3),varargin(4),varargin(5),varargin(6));
elseif rhs==10
temp=raw_trainSVMClassifier(imgSets_list,bag_list,classifierName,varargin(1),varargin(2),varargin(3),varargin(4),varargin(5),varargin(6),varargin(7));
elseif rhs==11
temp=raw_trainSVMClassifier(imgSets_list,bag_list,classifierName,varargin(1),varargin(2),varargin(3),varargin(4),varargin(5),varargin(6),varargin(7),varargin(8));
end
classifier = struct("ClassifierLocation", temp(2), "BagofFeaturesLocation", temp(3), "Description", temp(4));
endfunction
|
d2fe9aff1c1012c4f2e8432fbc21dcdd542d79b2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3872/CH4/EX4.4/Ex4_4.sce | 92cd2c1915b0337b94a1cb90d9e7bff829a9bbb2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,186 | sce | Ex4_4.sce | // Book - Power System: Analysis & Design 5th Edition
// Authors - J. Duncan Glover, Mulukutla S. Sharma, Thomas J. Overbye
// Chapter - 4 : Example 4.4
// Scilab Version 6.0.0 : OS - Windows
clc;
clear;
f = 60; // Frequency of the Three Phase Line in Hz
Q = 10; // Spacing between Adjacent Conductors in metres
T = 1590000; // Size of the Conductor in cmil
l = 200; // Line Length in Kilometres
Ds = (0.0520)*(1/3.28); // From Table A.4, the GMR of a 15,90,000 cmil 54/3 ACSR condutor in metres
Deq = nthroot([10*10*20],3); // Eqivalent GMR of a Conductor in metres
La = (2*10^-7)*(log(Deq/Ds))*(1000/1)*(200); // Average Inductance of Phase a in Henry
Xa = (2*%pi*f*La); // Inductive Reactance of Phase a in Ohm
printf('\n Average Inductance of Phase is (La) = %0.3f H', La);
printf('\n Inductive Reactance of Phase a is (Xa) = %0.0f Ohm', Xa);
|
99f7360222600aeecf8bf28f1578e407a78347b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH11/EX11.2/recursion_ex1.sce | aca7983036849ef7e6dc3ec8972f1c4635ed75cf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 285 | sce | recursion_ex1.sce | // Recursive computation of Ej and Fj for the system presented in Example 11.2 on page 408.
// 11.2
exec('poladd.sci',-1);
exec('polsize.sci',-1);
exec('recursion.sci',-1);
C = [1 0.5]; dC = 1;
A = [1 -0.6 -0.16]; dA = 2;
j = 2;
[Fj,dFj,Ej,dEj] = recursion(A,dA,C,dC,j)
|
de9b5daa714eb1353aec06f5724d04e4b3ebcf65 | 449d555969bfd7befe906877abab098c6e63a0e8 | /758/CH4/EX4.16/Ex_4_16.sce | a8832c8ae679dd94bdc793161fb342c27af8b077 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 418 | sce | Ex_4_16.sce | //Example 4.16
clc;clear;close;
z=poly(0,'z');
x1=[1 2 3 4];n1=0:length(x1)-1;
X1=x1*(z^-n1)';
x2=[4 3 2 1];n2=0:length(x2)-1;
X2=x2*(z^-n2)';
X2_=x2*(z^n2)';
X3=X1*X2_;
l=coeff(numer(X3));
x3=l(:,$:-1:1);
disp(X1,'x1(n)={4,-2,1} X1(z)=');
disp(X2,'x2(n)={4,-2,1} X2(z)=');
disp(X3,'Z transform of cross crrelation of the two signals X3(z)=');
disp(x3,'Cross correlation result of the two signals= ')
|
24a794b9ccfe7e9862f0c9846e55cf973280ceed | 367fb86cc145c187bc8aa89afab0f15f7e8826e4 | /functions/cv_thresh_tozero.sci | b2672ed040e26c97e7030fbe541de647c4e642e9 | [] | no_license | rishubhjain/funcforscilab | 19180cefb15a88df5cd55d91c2e50ab1829e4860 | 3f9fb8b1f467e1e89da1297bee8bd14645da5605 | refs/heads/master | 2021-01-23T00:15:23.622940 | 2015-04-22T09:32:28 | 2015-04-22T09:32:28 | 31,612,595 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 139 | sci | cv_thresh_tozero.sci | function[img_ret]=cv_thresh_tozero(image)
pyImport simple_thresholding
img_ret=simple_thresholding.thresh_tozero(image)
endfunction |
916318a6e6b17dd4744f4bf2edb030256d52c6df | 4ebea1be375a38f07d1b8536e25cd91584882389 | /src/test/example020.tst | 928e4843bd6e5bf4dd828fc3fcfec45f367e2eaa | [
"MIT"
] | permissive | robertsmeets/rjhg-pl | f5c2d850ba7a5e3daa0d4147357d37a275c7100a | 87721b77f92d5180c34123265fac70dcf54c77a9 | refs/heads/master | 2021-05-22T06:46:14.395448 | 2021-02-21T05:54:35 | 2021-02-21T05:54:35 | 32,521,807 | 1 | 1 | MIT | 2020-05-17T16:48:51 | 2015-03-19T13:07:49 | C | UTF-8 | Scilab | false | false | 24 | tst | example020.tst | 11
22
33
44
55
66
77
88
|
0baa244b0755af203b3e4431e74677c39a190731 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1373/CH7/EX7.8/Chapter7_Example8.sce | 40cae37a6672cce8c0837ca20b553341e17391c3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 861 | sce | Chapter7_Example8.sce | //Chapter-7, Example 7.8, Page 296
//=============================================================================
clc
clear
//INPUT DATA
D=0.3;//Diameter of cylinder in m
L=1.7;//Height of cylinder in m
Ts=30;//Surface temperature in degree C
v=10;//Speed of wind in m/s
Ta=10;//Temperature of air in degree C
//CALCULATIONS
Tf=(Ta+Ts)/2;//Film temperature in degree C
k=0.0259;//Thermal conductivity of air at 20 degree C
Pr=0.707;//prant number of air at 20 degree C
v1=(15*10^-6);//Kinematic viscosity of air at 20 degree C
Re=(v*D)/v1;//Reynolds number
Nu=0.027*Re^0.805*Pr^(1/3)//Nusselts number
h=(Nu*k)/D;//Heat transfer coefficent in W/m^2.K
Q=(h*3.14*D*L*(Ts-Ta));//Rate of heat loss in W
//OUTPUT
mprintf('Rate of heat loss is %3.1f W',Q)
//=================================END OF PROGRAM==============================
|
eccc7fa56c76ed234e81032e4c52fa0b6cbe7135 | 91bba043768342a4e23ee3a4ff1aa52fe67f7826 | /cs/142/4/tests/test2.tst | c5103ac774211a108d615eedbeaf7c20043ac759 | [] | no_license | MaxNanasy/old-homework | 6beecc3881c953c93b847f1d0d93a64ec991d6de | 48b7997a49a8f111344f30787c178e1661db04bd | refs/heads/master | 2016-09-08T04:37:44.932977 | 2010-03-02T00:48:59 | 2010-03-02T00:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 53 | tst | test2.tst | type t1 = int;
main()
{
var a : t1;
a[1] = 1;
} |
43ab36b1a7a8e945ae38f443178cdadff74e5fb9 | 8ea401b354e99fe129b2961e8ee6f780dedb12bd | /sci_gateway/cpp/loader.sce | 0c9ab68dcad16650b454811ca58d7d3c2c6c495e | [
"BSD-2-Clause"
] | permissive | adityadhinavahi/SciPandas | 91340ca30e7b4a0d76102a6622c97733a28923eb | b78b7571652acf527f877d9f1ce18115f327fa18 | refs/heads/master | 2022-12-20T04:04:35.984747 | 2020-08-19T16:10:51 | 2020-08-19T16:10:51 | 288,765,541 | 0 | 1 | null | 2020-08-19T15:35:04 | 2020-08-19T15:14:46 | Python | UTF-8 | Scilab | false | false | 906 | sce | loader.sce | // This file is released under the 3-clause BSD license. See COPYING-BSD.
// Generated by builder.sce : Please, do not edit this file
// ----------------------------------------------------------------------------
//
if ~win64() then
warning(_("This module requires a Windows x64 platform."));
return
end
//
scipandas_cpp_path = get_absolute_file_path('loader.sce');
//
// ulink previous function with same name
[bOK, ilib] = c_link('scipandas_cpp');
if bOK then
ulink(ilib);
end
//
link(scipandas_cpp_path + filesep() + '../../src/c/libPythonInstance' + getdynlibext());
list_functions = [ 'pandas';
];
addinter(scipandas_cpp_path + filesep() + 'scipandas_cpp' + getdynlibext(), 'scipandas_cpp', list_functions);
// remove temp. variables on stack
clear scipandas_cpp_path;
clear bOK;
clear ilib;
clear list_functions;
// ----------------------------------------------------------------------------
|
1d883bb89b0e97805cd9eb04a02ee600e392779d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2066/CH4/EX4.14.b/4_14b.sce | f02356ac23b005277ee5c35fbcd649d315b7dcd4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 275 | sce | 4_14b.sce | clc
clear
//Initialization of variables
de=4 //in
T=1000 //lb
g=32.2 //ft/s^2
vele=8.5 //lb/s
pe=16.5 //psia
pa=14.7 //psia
pa2=1 //psia
//calculations
Ae=%pi/4 *de^2
Ve= (T-(pe-pa)*Ae)*g/vele
T2=vele/g *Ve + (pe-pa2)*Ae
//results
printf("Thrust = %d lb",T2)
|
831ca42009b1cf6e8dfaf157df126e37cfb1729e | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH7/EX7.17/7_17.sce | dd36f6010ca75faff383a72848d5109bf35a94c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 760 | sce | 7_17.sce | //pathname=get_absolute_file_path('7.17.sce')
//filename=pathname+filesep()+'7.17-data.sci'
//exec(filename)
//Initially:
//Pressure(in bar):
p1=1.5
//Temperature(in K):
T1=60+273
//Finally:
//Pressure(in bar):
p2=2.5
//Temperature of the reservoir(in K):
Tres=400+273
//Temperature of surroundings(in K):
T0=27+273
//Cp of air(in kJ/kg.K):
Cp=1.005
//Final temperature(in K):
T2=T1*p2/p1
//Heat addition to air in the tank(in kJ/kg):
Q=Cp*(T2-T1)
//Change in entropy of the system(in kJ/kg.K):
dSs=Q/T1
//Change in entropy of environment(in kJ/kg.K):
dSe=-Q/Tres
//Total change in entropy(in kJ/kg.K):
dS=dSs+dSe
//Loss of available energy(in kJ/kg):
L=T0*dS
printf("\nRESULT")
printf("\nLoss of available energy = %f kJ/kg.K",L) |
cc1229568d057e4014e894e7f49b827c62b73708 | 494b677053e1199325a80808377463794e1003e5 | /experiments/sia-c/results/Ignore-MV.SIA-C.vehicle/result6s0.tst | 7f459728091a9e9c6f4d1341feb108c227b7bbfb | [] | no_license | kylecblyth/IIS-Project | 92fb0770addced8022817470f974bf5191bfe05d | abf66fd98d9b6c7c3a0fbc254ef4026641338489 | refs/heads/master | 2020-06-12T19:41:02.430510 | 2016-12-07T10:35:31 | 2016-12-07T10:35:31 | 75,764,815 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,858 | tst | result6s0.tst | @relation vehicle
@attribute COMPACTNESS integer[73,119]
@attribute CIRCULARITY integer[33,59]
@attribute DISTANCECIRCULARITY integer[40,112]
@attribute RADIUSRATIO integer[104,333]
@attribute PRAXISASPECTRATIO integer[47,138]
@attribute MAXLENGTHASPECTRATIO integer[2,55]
@attribute SCATTERRATIO integer[112,265]
@attribute ELONGATEDNESS integer[26,61]
@attribute PRAXISRECTANGULAR integer[17,29]
@attribute LENGTHRECTANGULAR integer[118,188]
@attribute MAJORVARIANCE integer[130,320]
@attribute MINORVARIANCE integer[184,1018]
@attribute GYRATIONRADIUS integer[109,268]
@attribute MAJORSKEWNESS integer[59,135]
@attribute MINORSKEWNESS integer[0,22]
@attribute MINORKURTOSIS integer[0,41]
@attribute MAJORKURTOSIS integer[176,206]
@attribute HOLLOWSRATIO integer[181,211]
@attribute class{van,saab,bus,opel}
@inputs COMPACTNESS,CIRCULARITY,DISTANCECIRCULARITY,RADIUSRATIO,PRAXISASPECTRATIO,MAXLENGTHASPECTRATIO,SCATTERRATIO,ELONGATEDNESS,PRAXISRECTANGULAR,LENGTHRECTANGULAR,MAJORVARIANCE,MINORVARIANCE,GYRATIONRADIUS,MAJORSKEWNESS,MINORSKEWNESS,MINORKURTOSIS,MAJORKURTOSIS,HOLLOWSRATIO
@outputs class
@data
bus van
van van
bus opel
saab bus
van van
opel opel
opel saab
saab opel
bus bus
saab saab
van van
opel opel
van van
bus bus
saab opel
opel saab
van saab
saab bus
opel opel
saab saab
bus bus
saab opel
van van
bus bus
van van
opel saab
van van
saab van
saab van
saab bus
opel opel
saab opel
bus bus
van van
van van
opel van
bus bus
opel saab
saab opel
van van
opel saab
opel saab
saab van
bus bus
opel saab
bus bus
van bus
bus van
opel saab
bus bus
opel bus
bus bus
bus opel
opel saab
saab saab
saab opel
van van
bus bus
saab opel
bus van
van van
opel opel
saab saab
van van
van van
bus bus
saab opel
saab bus
van van
bus bus
saab saab
bus bus
saab saab
van van
van bus
bus bus
opel bus
bus bus
opel saab
opel saab
opel van
bus bus
opel saab
van bus
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.