blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 6 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 87 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 15 values | visit_date timestamp[us]date 2016-08-04 09:00:04 2023-09-05 17:18:33 | revision_date timestamp[us]date 1998-12-11 00:15:10 2023-09-02 05:42:40 | committer_date timestamp[us]date 2005-04-26 09:58:02 2023-09-02 05:42:40 | github_id int64 436k 586M ⌀ | star_events_count int64 0 12.3k | fork_events_count int64 0 6.3k | gha_license_id stringclasses 7 values | gha_event_created_at timestamp[us]date 2012-11-16 11:45:07 2023-09-14 20:45:37 ⌀ | gha_created_at timestamp[us]date 2010-03-22 23:34:58 2023-01-07 03:47:44 ⌀ | gha_language stringclasses 36 values | src_encoding stringclasses 17 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 15 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa5b71fe67c2a3834ed9daf1603cc3e28977121f | 449d555969bfd7befe906877abab098c6e63a0e8 | /869/CH6/EX6.5/6_5.sce | 15fb850a4827158e7d352f52bc2bccfad0e9b1f2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 224 | sce | 6_5.sce | clc
//initialisation of variables
W= 100 //lb
n1= 1/2
n2= 3/2
mus= 0.40
//CALCULATIONS
Ts1= W/(exp(mus*n1*2*%pi))
Ts2= W/(exp(mus*n2*2*%pi))
//RESULTS
printf ('Ts1= %.2f lb',Ts1)
printf (' \n Ts2=%.2f lb',Ts2)
|
3da587965594266914faf446fb394283c6b33516 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1332/CH18/EX18.4/18_4.sce | 551df77d0841a1f380b71725fd37d27f43c40ec0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 651 | sce | 18_4.sce | //Example 18.4
//Forward Difference Method
//Page no. 624
clc;clear;close;
h=0.2;k=0.02;
r=k/h^2;
printf('\n j\tt\t|\ti -->\t')
for i=0:5
printf(' %i\t',i)
end
printf('\n |\t|\t|\tx -->\t')
for i=0:5
printf('%.3f\t',(i)/5)
end
printf('\n-------------------------------------------------------------------------------')
for j=1:6
printf('\n %i\t%.3f\t|\t\t',j-1,(j-1)/50)
for i=1:6
if i==1 | i==6 then
u(j,i)=0;
elseif j==1 then
u(j,i)=sin(%pi*(i-1)/5)
else
u(j,i)=(u(j-1,i-1)+u(j-1,i+1))/2
end
printf('%.3f\t',u(j,i))
end
end |
10812edb89c8354e8c0bb45bbb1e9911efa4f4e2 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects - Kopie/CONT/RA72WYU/ATWM1_Working_Memory_MEG_RA72WYU_Session2/ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run2.sce | ba3c364c6824fde9cd5fd7da4a73dce9b5f833f9 | [] | 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,529 | sce | ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run2.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_run2";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monitor_sounds = false;
active_buttons = 2;
response_matching = simple_matching;
button_codes = 10, 20;
default_font_size = 28;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 300; width = 300; color = 0, 0, 0;} frame1;
box { height = 290; width = 290; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 290; width = 290; color = 128, 128, 128;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# Start of experiment (MEG only) - sync with CTF software
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
} expStart;
time = 0;
duration = 1000;
code = "ExpStart";
port_code = 80;
};
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 10000;
#mri_pulse = 1;
code = "BaselinePre";
port_code = 91;
};
TEMPLATE "ATWM1_Working_Memory_MEG.tem" {
trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
43 61 292 292 399 125 1992 2992 2042 fixation_cross gabor_016 gabor_121 gabor_148 gabor_179 gabor_016 gabor_121_alt gabor_148_alt gabor_179 "2_1_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2000_3000_2050_gabor_patch_orientation_016_121_148_179_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_042_framed blank blank blank blank fixation_cross_target_position_1_4 "2_1_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_042_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1742 2992 2092 fixation_cross gabor_171 gabor_126 gabor_147 gabor_003 gabor_171 gabor_126_alt gabor_147 gabor_003_alt "2_2_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1750_3000_2100_gabor_patch_orientation_171_126_147_003_target_position_1_3_retrieval_position_1" gabor_171_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_2_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_171_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1742 2992 2442 fixation_cross gabor_162 gabor_019 gabor_036 gabor_104 gabor_162_alt gabor_019 gabor_036_alt gabor_104 "2_3_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1750_3000_2450_gabor_patch_orientation_162_019_036_104_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_104_framed blank blank blank blank fixation_cross_target_position_2_4 "2_3_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2342 fixation_cross gabor_094 gabor_017 gabor_169 gabor_152 gabor_094_alt gabor_017_alt gabor_169 gabor_152 "2_4_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_094_017_169_152_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_033_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_4_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_033_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 2242 fixation_cross gabor_037 gabor_153 gabor_070 gabor_101 gabor_037 gabor_153_alt gabor_070 gabor_101_alt "2_5_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1950_3000_2250_gabor_patch_orientation_037_153_070_101_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_118_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_5_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_118_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1842 2992 2292 fixation_cross gabor_026 gabor_134 gabor_069 gabor_110 gabor_026_alt gabor_134 gabor_069 gabor_110_alt "2_6_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1850_3000_2300_gabor_patch_orientation_026_134_069_110_target_position_2_3_retrieval_position_2" gabor_circ gabor_134_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_6_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_134_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2042 2992 2492 fixation_cross gabor_040 gabor_165 gabor_075 gabor_005 gabor_040_alt gabor_165_alt gabor_075 gabor_005 "2_7_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2050_3000_2500_gabor_patch_orientation_040_165_075_005_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_075_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_7_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_075_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1992 2992 1992 fixation_cross gabor_180 gabor_093 gabor_006 gabor_120 gabor_180_alt gabor_093_alt gabor_006 gabor_120 "2_8_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_300_300_399_2000_3000_2000_gabor_patch_orientation_180_093_006_120_target_position_3_4_retrieval_position_1" gabor_180_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_8_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_retrieval_patch_orientation_180_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1742 2992 2492 fixation_cross gabor_112 gabor_087 gabor_006 gabor_055 gabor_112_alt gabor_087_alt gabor_006 gabor_055 "2_9_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1750_3000_2500_gabor_patch_orientation_112_087_006_055_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_143_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_9_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1792 2992 2342 fixation_cross gabor_092 gabor_178 gabor_069 gabor_035 gabor_092 gabor_178_alt gabor_069_alt gabor_035 "2_10_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_300_300_399_1800_3000_2350_gabor_patch_orientation_092_178_069_035_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_069_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_10_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_retrieval_patch_orientation_069_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 2042 fixation_cross gabor_175 gabor_128 gabor_150 gabor_069 gabor_175 gabor_128_alt gabor_150 gabor_069_alt "2_11_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1950_3000_2050_gabor_patch_orientation_175_128_150_069_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 "2_11_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2392 fixation_cross gabor_146 gabor_008 gabor_068 gabor_026 gabor_146_alt gabor_008_alt gabor_068 gabor_026 "2_12_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1850_3000_2400_gabor_patch_orientation_146_008_068_026_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_115_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_12_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_115_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2092 2992 2092 fixation_cross gabor_139 gabor_104 gabor_016 gabor_170 gabor_139_alt gabor_104_alt gabor_016 gabor_170 "2_13_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2100_3000_2100_gabor_patch_orientation_139_104_016_170_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_170_framed blank blank blank blank fixation_cross_target_position_3_4 "2_13_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_170_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1892 2992 1992 fixation_cross gabor_090 gabor_153 gabor_008 gabor_173 gabor_090 gabor_153_alt gabor_008 gabor_173_alt "2_14_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1900_3000_2000_gabor_patch_orientation_090_153_008_173_target_position_1_3_retrieval_position_1" gabor_090_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_14_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2242 2992 2392 fixation_cross gabor_140 gabor_005 gabor_159 gabor_114 gabor_140 gabor_005_alt gabor_159 gabor_114_alt "2_15_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2250_3000_2400_gabor_patch_orientation_140_005_159_114_target_position_1_3_retrieval_position_1" gabor_095_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_15_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1792 2992 2442 fixation_cross gabor_116 gabor_180 gabor_096 gabor_155 gabor_116_alt gabor_180_alt gabor_096 gabor_155 "2_16_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1800_3000_2450_gabor_patch_orientation_116_180_096_155_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_049_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_16_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_049_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1942 2992 2242 fixation_cross gabor_041 gabor_007 gabor_168 gabor_026 gabor_041 gabor_007_alt gabor_168_alt gabor_026 "2_17_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1950_3000_2250_gabor_patch_orientation_041_007_168_026_target_position_1_4_retrieval_position_1" gabor_041_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_17_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1892 2992 2292 fixation_cross gabor_101 gabor_163 gabor_075 gabor_017 gabor_101_alt gabor_163_alt gabor_075 gabor_017 "2_18_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_300_300_399_1900_3000_2300_gabor_patch_orientation_101_163_075_017_target_position_3_4_retrieval_position_1" gabor_054_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_18_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_retrieval_patch_orientation_054_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2142 2992 2092 fixation_cross gabor_130 gabor_174 gabor_068 gabor_022 gabor_130 gabor_174_alt gabor_068_alt gabor_022 "2_19_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2150_3000_2100_gabor_patch_orientation_130_174_068_022_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_157_framed blank blank blank blank fixation_cross_target_position_1_4 "2_19_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_157_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1742 2992 1992 fixation_cross gabor_011 gabor_042 gabor_177 gabor_127 gabor_011 gabor_042 gabor_177_alt gabor_127_alt "2_20_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1750_3000_2000_gabor_patch_orientation_011_042_177_127_target_position_1_2_retrieval_position_1" gabor_011_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_20_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2042 2992 2042 fixation_cross gabor_168 gabor_108 gabor_148 gabor_038 gabor_168_alt gabor_108 gabor_148_alt gabor_038 "2_21_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_168_108_148_038_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_038_framed blank blank blank blank fixation_cross_target_position_2_4 "2_21_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_038_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1942 2992 2392 fixation_cross gabor_156 gabor_042 gabor_177 gabor_132 gabor_156 gabor_042 gabor_177_alt gabor_132_alt "2_22_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_300_300_399_1950_3000_2400_gabor_patch_orientation_156_042_177_132_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_087_framed blank blank blank blank fixation_cross_target_position_1_2 "2_22_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_retrieval_patch_orientation_087_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2042 2992 2242 fixation_cross gabor_117 gabor_144 gabor_087 gabor_068 gabor_117_alt gabor_144_alt gabor_087 gabor_068 "2_23_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2050_3000_2250_gabor_patch_orientation_117_144_087_068_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_037_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_23_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_037_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2242 2992 1992 fixation_cross gabor_146 gabor_003 gabor_078 gabor_164 gabor_146 gabor_003_alt gabor_078 gabor_164_alt "2_24_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2250_3000_2000_gabor_patch_orientation_146_003_078_164_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_033_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_24_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_033_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1942 2992 2192 fixation_cross gabor_138 gabor_068 gabor_178 gabor_048 gabor_138_alt gabor_068 gabor_178 gabor_048_alt "2_25_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1950_3000_2200_gabor_patch_orientation_138_068_178_048_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 "2_25_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_068_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2042 2992 2492 fixation_cross gabor_099 gabor_153 gabor_034 gabor_079 gabor_099_alt gabor_153 gabor_034 gabor_079_alt "2_26_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2050_3000_2500_gabor_patch_orientation_099_153_034_079_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_034_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_26_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_034_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 2092 2992 2292 fixation_cross gabor_109 gabor_094 gabor_160 gabor_071 gabor_109_alt gabor_094 gabor_160_alt gabor_071 "2_27_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_300_300_399_2100_3000_2300_gabor_patch_orientation_109_094_160_071_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_025_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_27_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_retrieval_patch_orientation_025_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2192 2992 2192 fixation_cross gabor_119 gabor_102 gabor_167 gabor_134 gabor_119 gabor_102_alt gabor_167_alt gabor_134 "2_28_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2200_3000_2200_gabor_patch_orientation_119_102_167_134_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_085_framed blank blank blank blank fixation_cross_target_position_1_4 "2_28_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_085_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2192 2992 1992 fixation_cross gabor_095 gabor_162 gabor_146 gabor_007 gabor_095 gabor_162_alt gabor_146_alt gabor_007 "2_29_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2200_3000_2000_gabor_patch_orientation_095_162_146_007_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_056_framed blank blank blank blank fixation_cross_target_position_1_4 "2_29_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_056_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1992 2992 2192 fixation_cross gabor_163 gabor_107 gabor_043 gabor_148 gabor_163 gabor_107_alt gabor_043 gabor_148_alt "2_30_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2000_3000_2200_gabor_patch_orientation_163_107_043_148_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_179_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_30_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 2492 fixation_cross gabor_007 gabor_087 gabor_172 gabor_060 gabor_007_alt gabor_087 gabor_172 gabor_060_alt "2_31_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2000_3000_2500_gabor_patch_orientation_007_087_172_060_target_position_2_3_retrieval_position_2" gabor_circ gabor_087_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_31_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_087_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 2192 2992 2142 fixation_cross gabor_091 gabor_066 gabor_134 gabor_176 gabor_091_alt gabor_066_alt gabor_134 gabor_176 "2_32_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_300_300_399_2200_3000_2150_gabor_patch_orientation_091_066_134_176_target_position_3_4_retrieval_position_1" gabor_046_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_32_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_retrieval_patch_orientation_046_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 2292 fixation_cross gabor_021 gabor_094 gabor_062 gabor_169 gabor_021 gabor_094 gabor_062_alt gabor_169_alt "2_33_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2150_3000_2300_gabor_patch_orientation_021_094_062_169_target_position_1_2_retrieval_position_2" gabor_circ gabor_094_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_33_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_094_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1992 2992 2242 fixation_cross gabor_173 gabor_051 gabor_115 gabor_092 gabor_173_alt gabor_051_alt gabor_115 gabor_092 "2_34_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2000_3000_2250_gabor_patch_orientation_173_051_115_092_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_092_framed blank blank blank blank fixation_cross_target_position_3_4 "2_34_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 1992 fixation_cross gabor_138 gabor_154 gabor_103 gabor_075 gabor_138 gabor_154 gabor_103_alt gabor_075_alt "2_35_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2150_3000_2000_gabor_patch_orientation_138_154_103_075_target_position_1_2_retrieval_position_2" gabor_circ gabor_154_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_35_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_154_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1892 2992 2092 fixation_cross gabor_142 gabor_075 gabor_102 gabor_021 gabor_142 gabor_075_alt gabor_102 gabor_021_alt "2_36_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1900_3000_2100_gabor_patch_orientation_142_075_102_021_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_102_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_36_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_102_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2192 2992 2342 fixation_cross gabor_065 gabor_090 gabor_009 gabor_153 gabor_065_alt gabor_090 gabor_009 gabor_153_alt "2_37_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2200_3000_2350_gabor_patch_orientation_065_090_009_153_target_position_2_3_retrieval_position_2" gabor_circ gabor_090_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_37_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 2242 2992 2442 fixation_cross gabor_088 gabor_129 gabor_042 gabor_068 gabor_088 gabor_129 gabor_042_alt gabor_068_alt "2_38_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_300_300_399_2250_3000_2450_gabor_patch_orientation_088_129_042_068_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_042_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_38_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_retrieval_patch_orientation_042_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2242 2992 2042 fixation_cross gabor_085 gabor_168 gabor_040 gabor_114 gabor_085 gabor_168 gabor_040_alt gabor_114_alt "2_39_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2250_3000_2050_gabor_patch_orientation_085_168_040_114_target_position_1_2_retrieval_position_1" gabor_130_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_39_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_130_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1792 2992 2092 fixation_cross gabor_154 gabor_132 gabor_179 gabor_023 gabor_154_alt gabor_132 gabor_179_alt gabor_023 "2_40_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1800_3000_2100_gabor_patch_orientation_154_132_179_023_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_072_framed blank blank blank blank fixation_cross_target_position_2_4 "2_40_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_072_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1842 2992 2492 fixation_cross gabor_172 gabor_045 gabor_156 gabor_014 gabor_172 gabor_045 gabor_156_alt gabor_014_alt "2_41_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1850_3000_2500_gabor_patch_orientation_172_045_156_014_target_position_1_2_retrieval_position_2" gabor_circ gabor_095_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_41_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 2242 2992 2192 fixation_cross gabor_035 gabor_017 gabor_091 gabor_152 gabor_035_alt gabor_017 gabor_091 gabor_152_alt "2_42_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_300_300_399_2250_3000_2200_gabor_patch_orientation_035_017_091_152_target_position_2_3_retrieval_position_1" gabor_035_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_42_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_retrieval_patch_orientation_035_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1892 2992 1992 fixation_cross gabor_134 gabor_018 gabor_180 gabor_093 gabor_134_alt gabor_018_alt gabor_180 gabor_093 "2_43_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1900_3000_2000_gabor_patch_orientation_134_018_180_093_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_093_framed blank blank blank blank fixation_cross_target_position_3_4 "2_43_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_093_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1892 2992 2292 fixation_cross gabor_067 gabor_126 gabor_141 gabor_096 gabor_067 gabor_126 gabor_141_alt gabor_096_alt "2_44_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1900_3000_2300_gabor_patch_orientation_067_126_141_096_target_position_1_2_retrieval_position_1" gabor_017_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_44_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_017_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1742 2992 2442 fixation_cross gabor_129 gabor_112 gabor_067 gabor_176 gabor_129 gabor_112 gabor_067_alt gabor_176_alt "2_45_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_300_300_399_1750_3000_2450_gabor_patch_orientation_129_112_067_176_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_039_framed blank blank blank blank fixation_cross_target_position_1_2 "2_45_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_retrieval_patch_orientation_039_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2092 2992 2242 fixation_cross gabor_025 gabor_052 gabor_160 gabor_178 gabor_025_alt gabor_052_alt gabor_160 gabor_178 "2_46_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2100_3000_2250_gabor_patch_orientation_025_052_160_178_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_132_framed blank blank blank blank fixation_cross_target_position_3_4 "2_46_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_132_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2192 2992 2142 fixation_cross gabor_162 gabor_115 gabor_133 gabor_072 gabor_162 gabor_115_alt gabor_133 gabor_072_alt "2_47_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2200_3000_2150_gabor_patch_orientation_162_115_133_072_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_088_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_47_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_088_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1792 2992 2342 fixation_cross gabor_022 gabor_005 gabor_172 gabor_093 gabor_022 gabor_005 gabor_172_alt gabor_093_alt "2_48_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1800_3000_2350_gabor_patch_orientation_022_005_172_093_target_position_1_2_retrieval_position_2" gabor_circ gabor_005_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_48_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 2042 2992 2042 fixation_cross gabor_173 gabor_146 gabor_015 gabor_063 gabor_173_alt gabor_146_alt gabor_015 gabor_063 "2_49_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_300_300_399_2050_3000_2050_gabor_patch_orientation_173_146_015_063_target_position_3_4_retrieval_position_2" gabor_circ gabor_098_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_49_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_retrieval_patch_orientation_098_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1892 2992 2342 fixation_cross gabor_017 gabor_098 gabor_141 gabor_168 gabor_017_alt gabor_098 gabor_141_alt gabor_168 "2_50_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1900_3000_2350_gabor_patch_orientation_017_098_141_168_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_168_framed blank blank blank blank fixation_cross_target_position_2_4 "2_50_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_168_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2092 2992 2292 fixation_cross gabor_130 gabor_046 gabor_014 gabor_072 gabor_130 gabor_046 gabor_014_alt gabor_072_alt "2_51_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2100_3000_2300_gabor_patch_orientation_130_046_014_072_target_position_1_2_retrieval_position_1" gabor_130_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_51_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_130_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2192 2992 2442 fixation_cross gabor_068 gabor_095 gabor_179 gabor_040 gabor_068 gabor_095_alt gabor_179 gabor_040_alt "2_52_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2200_3000_2450_gabor_patch_orientation_068_095_179_040_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_179_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_52_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 2242 fixation_cross gabor_168 gabor_151 gabor_121 gabor_011 gabor_168 gabor_151_alt gabor_121_alt gabor_011 "2_53_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2150_3000_2250_gabor_patch_orientation_168_151_121_011_target_position_1_4_retrieval_position_1" gabor_168_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_53_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_168_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2042 2992 2392 fixation_cross gabor_135 gabor_156 gabor_022 gabor_087 gabor_135_alt gabor_156 gabor_022_alt gabor_087 "2_54_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2050_3000_2400_gabor_patch_orientation_135_156_022_087_target_position_2_4_retrieval_position_2" gabor_circ gabor_106_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_54_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_106_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2092 2992 2492 fixation_cross gabor_096 gabor_042 gabor_122 gabor_065 gabor_096_alt gabor_042 gabor_122 gabor_065_alt "2_55_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2100_3000_2500_gabor_patch_orientation_096_042_122_065_target_position_2_3_retrieval_position_2" gabor_circ gabor_180_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_55_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_180_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1792 2992 2092 fixation_cross gabor_147 gabor_168 gabor_087 gabor_003 gabor_147_alt gabor_168_alt gabor_087 gabor_003 "2_56_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1800_3000_2100_gabor_patch_orientation_147_168_087_003_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_087_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_56_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_087_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1742 2992 2142 fixation_cross gabor_111 gabor_036 gabor_071 gabor_005 gabor_111 gabor_036_alt gabor_071 gabor_005_alt "2_57_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1750_3000_2150_gabor_patch_orientation_111_036_071_005_target_position_1_3_retrieval_position_1" gabor_156_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_57_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_156_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 2092 2992 2392 fixation_cross gabor_106 gabor_054 gabor_070 gabor_129 gabor_106_alt gabor_054 gabor_070_alt gabor_129 "2_58_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_300_300_399_2100_3000_2400_gabor_patch_orientation_106_054_070_129_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_070_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_58_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_retrieval_patch_orientation_070_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2242 2992 2142 fixation_cross gabor_139 gabor_093 gabor_008 gabor_033 gabor_139 gabor_093_alt gabor_008_alt gabor_033 "2_59_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2250_3000_2150_gabor_patch_orientation_139_093_008_033_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_173_framed blank blank blank blank fixation_cross_target_position_1_4 "2_59_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_173_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1892 2992 2142 fixation_cross gabor_175 gabor_030 gabor_097 gabor_056 gabor_175 gabor_030 gabor_097_alt gabor_056_alt "2_60_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_300_300_399_1900_3000_2150_gabor_patch_orientation_175_030_097_056_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_056_framed blank blank blank blank fixation_cross_target_position_1_2 "2_60_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_retrieval_patch_orientation_056_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1842 2992 2442 fixation_cross gabor_062 gabor_039 gabor_174 gabor_020 gabor_062_alt gabor_039_alt gabor_174 gabor_020 "2_61_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1850_3000_2450_gabor_patch_orientation_062_039_174_020_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_174_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_61_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_174_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1842 2992 2042 fixation_cross gabor_103 gabor_172 gabor_146 gabor_024 gabor_103 gabor_172 gabor_146_alt gabor_024_alt "2_62_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1850_3000_2050_gabor_patch_orientation_103_172_146_024_target_position_1_2_retrieval_position_1" gabor_103_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_62_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_103_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 2142 2992 2092 fixation_cross gabor_081 gabor_110 gabor_064 gabor_024 gabor_081 gabor_110_alt gabor_064_alt gabor_024 "2_63_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_2150_3000_2100_gabor_patch_orientation_081_110_064_024_target_position_1_4_retrieval_position_1" gabor_081_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_63_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_081_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 64 292 292 399 125 1842 2992 2192 fixation_cross gabor_015 gabor_143 gabor_093 gabor_036 gabor_015_alt gabor_143 gabor_093_alt gabor_036 "2_64_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_300_300_399_1850_3000_2200_gabor_patch_orientation_015_143_093_036_target_position_2_4_retrieval_position_1" gabor_015_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_64_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_UncuedRetriev_retrieval_patch_orientation_015_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1792 2992 2192 fixation_cross gabor_167 gabor_009 gabor_095 gabor_143 gabor_167 gabor_009_alt gabor_095_alt gabor_143 "2_65_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1800_3000_2200_gabor_patch_orientation_167_009_095_143_target_position_1_4_retrieval_position_1" gabor_120_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_65_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_120_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1992 2992 2142 fixation_cross gabor_026 gabor_114 gabor_135 gabor_094 gabor_026 gabor_114_alt gabor_135_alt gabor_094 "2_66_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2000_3000_2150_gabor_patch_orientation_026_114_135_094_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_048_framed blank blank blank blank fixation_cross_target_position_1_4 "2_66_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_048_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 2142 2992 2042 fixation_cross gabor_061 gabor_106 gabor_083 gabor_025 gabor_061_alt gabor_106 gabor_083 gabor_025_alt "2_67_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_2150_3000_2050_gabor_patch_orientation_061_106_083_025_target_position_2_3_retrieval_position_2" gabor_circ gabor_151_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_67_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_151_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 61 292 292 399 125 1942 2992 2142 fixation_cross gabor_096 gabor_121 gabor_072 gabor_045 gabor_096_alt gabor_121 gabor_072_alt gabor_045 "2_68_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_300_300_399_1950_3000_2150_gabor_patch_orientation_096_121_072_045_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_180_framed blank blank blank blank fixation_cross_target_position_2_4 "2_68_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_CuedRetrieval_retrieval_patch_orientation_180_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 62 292 292 399 125 1792 2992 2342 fixation_cross gabor_132 gabor_095 gabor_016 gabor_065 gabor_132_alt gabor_095 gabor_016_alt gabor_065 "2_69_Encoding_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_300_300_399_1800_3000_2350_gabor_patch_orientation_132_095_016_065_target_position_2_4_retrieval_position_2" gabor_circ gabor_095_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_69_Retrieval_Working_Memory_MEG_Nonsalient_Cued_NoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
43 63 292 292 399 125 1742 2992 2392 fixation_cross gabor_062 gabor_152 gabor_176 gabor_036 gabor_062 gabor_152_alt gabor_176_alt gabor_036 "2_70_Encoding_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_300_300_399_1750_3000_2400_gabor_patch_orientation_062_152_176_036_target_position_1_4_retrieval_position_2" gabor_circ gabor_014_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_70_Retrieval_Working_Memory_MEG_Nonsalient_Cued_DoChange_UncuedRetriev_retrieval_patch_orientation_014_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 5000;
code = "BaselinePost";
port_code = 92;
}; |
7ad562406c0161c26529d99f499f0c02bd6d4f76 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2072/CH21/EX21.1/Ex21_1.sce | 9d5f9ec7b2b569ca513185bdfbe0d82b1616efb9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 145 | sce | Ex21_1.sce | //Example 21.1
clc;
V_max=200//in V
V_rms=(V_max)/sqrt(2)
R=100//in ohm
I_rms=V_rms/R
disp(V_rms,"Voltage in V=")
disp(I_rms,"Current in Amps=")
|
fcafcd15041c2fcf7053d90e1545c4655dc5a394 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH15/EX15.26/26.sce | 4f263654b9f6fc4b03963c3bcc76816fd6e40a5d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 398 | sce | 26.sce | clc
T1=1273; //K
T2=773; //K
e1=0.42;
e2=0.72;
a=5.67*10^(-8);
disp("(i) When the body is grey with ε1 = 0.42")
q=e1*a*(T1^4-T2^4)/10^3; //kW
disp("Heat loss per m2 by radiation =")
disp(q)
disp("kW")
disp("(ii) When the body is not grey")
E_emitted=e1*a*T1^4;
E_absorbed=e2*a*(T2)^4;
q=(E_emitted-E_absorbed)/10^3;
disp("Heat loss per m2 by radiation =")
disp(q)
disp("kW") |
a62debad803157331760871d7d2bd8d04c66dd6e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1418/CH25/EX25.2/EX25_2.sce | b110bb6ddb4706086903cf94f4a22a11cca0dbd7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,602 | sce | EX25_2.sce | //EXAMPLE 25.2
//ELECTROMAGNETIC RELAY
clc;
funcprot(0);
//Variable Initialisation
T=800;..........//Total number of turns
CA=5*5;..........//Cross sectional area in Centi Meter^2
x1=0.5;..........//Air gap length in Centi Meter
Li=1.25;.............//Coil current in Amperes
Pag=(4*3.14*10^-7*CA*10^-4)/(agl*10^-2);........//Permeance at airgap
Lx1=T^2*Pag;.....................................//Coil Inductance at x1 in Henry
y=round(Lx1*1000)/1000;...........................//Rounding of decimal places
disp(y,"(a).(i).Coil Inductance in Henry:");
E=(0.5*y*Li^2);.....................//Energy stored in magnetic field in Joules
y1=round(E*1000)/1000;...........//Rounding of decimal places
disp(y1,"(ii).Energy stored in magnetic field in Joules:");
x=poly(0,"x");
Wfd=(1/2)*T^2*4*3.14*10^-7*CA*10^-4*Li^2/(x);............//Function for mechanical energy in terms of air gap
y=derivat(Wfd);
disp(y,"(b).Mechanical Energy :");
Wfd1=-(1/2)*T^2*4*3.14*10^-7*CA*10^-4*Li^2/(x1^2*10^-4);..............//Mechanical energy at x1=0.5 in Joules
disp(Wfd1,"Mechanical Energy when evaluated at x=0.5*10^-2 in NW:");
x2=0.25;....................//Air gap in Centi Meter
Lx2=2*Pag*T^2;................//Coil inductance at x2 in Henry
r=round(Lx2*1000)/1000;.......//Rounding of decimal places
Eei=(Li^2)*(Lx2-Lx1);.........//Electrical input during change over of the operating point in Joules
dWfd=1/2*Eei;..............//Additional stored energy in field in Joules
Me=Eei-dWfd;................//Mechanical energy based on forced calculation and mechaical displacement in Joules
disp(Me,"(c).Mechanical energy based on forced calculation and mechaical displacement in Joules:");
Pm2=2*Pag;.........//Slope of OC
Pm1=Pag;...........//Slope of OH
BK=1/2*(T*Li);.....//mmf required for establishing a flux with an air-gap of 0.25 in Ampere Turns
KHC=1/4*Eei;........//Eei=Area of rectangle BDCH in Joules
Eef=Eei-KHC;........//Electrical energy being fed during the process in Joules
Ife=Me-KHC;...........//Me=Area of triangle OHC in Joules, Increase in field energy stored
meo=Eef-KHC;.........//Mechanical energy output in Joules
disp(BK,"mmf required for establishing a flux with an air-gap of 0.25 in Ampere Turns:");
disp(KHC,"Area of triangle KHC");
disp(Eef,"Electrical energy being fed during the process in Joules:");
disp(Ife,"Increase in field energy stored in Joules:");
disp(meo,"Mechanical energy output in Joules:");
if Me==meo then
end
printf(" Mechanical energy remains unaffected by fast or slow movements of armature");
|
40b7d65c7adf02f483eb1a134d027403d3db14e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2243/CH10/EX10.3/Ex10_3.sce | 13f38e429ca5ba0ca949ca43197d30d99392df3f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 792 | sce | Ex10_3.sce | clc();
clear;
//Given :
e0 = 8.85*10^-12 ; // dielectric constant in farad/m
er1 = 1.006715 ; //relative dielectric constant
er2 = 1.005970;// relative dielectric constant
T1 = 300 ; // Temperature in K (273+27 = 300 K)
T2 = 450; // Temperature in K (273 + 177 = 450 K)
k = 1.38*10^-23; // in J/K
N = 2.44*10^25 ; // molecules/m^3
//e0*(er1 - er2)= ((N*mu_p^2)/(3*k))*((1/T1)- (1/T2))
mu_p = sqrt((e0*(er1 - er2)*3*k)/(((1/T1)-(1/T2))* N)); //dipole moment in C m
D = 3.3*10^-30; // dipole of 1 Debye is equal to 3.33 x 10^-30 C m
printf("Dipole moment = %.2f debye \n",mu_p/D);
//e0*(er1 - 1) = N*(alpha_e + alpha_i + (mu_p^2/3*k*T1))
Sum = ((e0*(er1 - 1))/N) - ((mu_p)^2/(3*k*T1)); // alpha_e + alpha_i in farad m^2
printf("Sum = %.1f x 10^-39 farad m^2",Sum*10^39);
|
86943d77b3d286400cab86bdf60a3d0d0cdb8ce8 | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfas_nw_usi/~BivLCM-SR-bfas_nw_usi-PLin-VLin.tst | d96812f0f48d854db9eda9ae342e99fdf0067464 | [] | no_license | psdlab/life-in-time-values-and-personality | 35fbf5bbe4edd54b429a934caf289fbb0edfefee | 7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e | refs/heads/master | 2020-03-24T22:08:27.964205 | 2019-03-04T17:03:26 | 2019-03-04T17:03:26 | 143,070,821 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,974 | tst | ~BivLCM-SR-bfas_nw_usi-PLin-VLin.tst |
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM.
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.442359D+00
2 -0.590336D-02 0.361408D-02
3 0.993797D-02 0.112116D-02 0.260833D+00
4 0.606137D-03 0.180702D-03 -0.238234D-02 0.212896D-02
5 -0.347518D-03 0.872400D-05 -0.172549D-02 0.126092D-03 0.202767D-02
6 -0.916539D-03 -0.143206D-03 -0.781678D-03 -0.243862D-04 -0.201653D-03
7 0.221070D-03 0.447214D-04 -0.678149D-03 -0.602650D-04 -0.100980D-04
8 -0.217979D-02 0.265965D-04 0.513569D-03 -0.394571D-04 -0.101088D-04
9 0.342170D+00 -0.351891D-01 -0.220169D+00 0.801336D-02 0.410297D-01
10 0.138483D+00 -0.221257D-02 -0.267605D-02 0.119124D-01 0.122664D+00
11 -0.126540D+00 0.152456D-02 0.149862D+00 -0.141876D-01 0.448954D-02
12 -0.208403D+00 0.109101D-01 0.188166D+00 -0.275520D-03 -0.630645D-03
13 0.202839D-01 0.162161D-03 -0.233364D-01 -0.186973D-02 0.626609D-02
14 0.145388D-01 -0.364284D-02 0.246154D+00 0.321133D-02 -0.105432D-01
15 0.743966D+00 0.594199D-01 -0.996919D+00 0.109500D-01 -0.830496D-01
16 0.545753D-01 0.438091D-03 0.219961D-01 -0.151475D-02 -0.333650D-03
17 -0.531080D-02 0.357728D-03 0.345838D-02 0.338434D-03 -0.636913D-03
18 -0.110126D+01 0.382308D-01 0.130637D+00 0.302224D-01 0.178166D-01
19 0.742310D-01 0.153021D-02 -0.596216D-01 0.849589D-02 0.117099D-01
20 0.181260D+00 0.115067D-01 0.264190D+00 0.248695D-01 -0.661490D-01
21 -0.272520D-01 -0.410238D-02 0.917156D-01 -0.566552D-02 -0.952737D-02
22 0.303942D-02 0.263877D-03 0.130644D-02 0.127899D-03 -0.263719D-03
23 0.875897D-02 0.294652D-02 0.184171D-01 0.259753D-02 0.575626D-03
24 0.162917D-02 0.914043D-04 0.623699D-04 0.112311D-03 0.171186D-03
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 0.185600D-02
7 0.770928D-03 0.121212D-02
8 0.206504D-03 -0.177287D-03 0.250157D-02
9 0.243157D-01 -0.267116D-02 0.505519D-02 0.980675D+02
10 -0.229560D-02 -0.504064D-02 -0.494436D-02 0.114685D+01 0.260063D+02
11 0.146516D-01 0.167361D-01 -0.155768D-01 0.210723D+00 -0.398032D+00
12 -0.157695D-01 -0.122900D-01 0.789935D-01 0.154849D+01 -0.729808D+00
13 0.567909D-01 0.438128D-01 -0.264220D-03 -0.734143D+00 0.168728D+01
14 0.546850D-02 -0.258937D-02 0.124048D+00 -0.163493D+01 0.999389D+00
15 -0.335107D-01 -0.269721D-01 0.217760D-01 -0.111635D+02 -0.101790D+02
16 -0.139810D-02 -0.148996D-02 -0.173072D-02 0.616831D+00 -0.952486D-01
17 0.229713D-03 0.319745D-03 -0.448070D-04 -0.190314D+00 -0.884253D-01
18 -0.337441D-01 -0.460008D-01 -0.342391D-01 0.493073D+01 -0.747857D+00
19 -0.449698D-03 0.114234D-01 -0.651075D-02 0.166471D+01 0.904894D+00
20 -0.246815D-01 -0.166126D-01 -0.110489D+00 -0.537611D+01 0.702696D+01
21 -0.623385D-04 -0.121006D-01 0.552936D-02 -0.154655D+01 -0.106665D+01
22 -0.368253D-03 -0.199184D-03 0.162930D-03 -0.891389D-02 -0.100396D-01
23 0.184076D-03 0.308085D-03 0.746758D-04 0.107932D+00 0.426063D-01
24 0.397541D-04 -0.300563D-06 -0.262986D-03 0.696643D-02 -0.427273D-01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 0.253257D+02
12 0.210878D+01 0.429767D+02
13 -0.202963D+01 -0.649243D+00 0.820334D+01
14 -0.285498D+01 0.143244D+01 0.903838D+00 0.206220D+02
15 0.347195D+01 0.529353D+01 -0.225485D+01 -0.380683D+01 0.517789D+03
16 -0.109700D+00 -0.224401D+00 -0.101739D+00 -0.238185D+00 0.592442D+01
17 -0.198439D-01 -0.237011D-01 0.204008D-01 0.292185D-01 -0.263317D+01
18 -0.570751D+01 0.294598D+01 -0.404948D+00 -0.293750D+01 0.261273D+01
19 0.104115D+01 0.174130D+00 0.559751D+00 -0.282286D+00 -0.537101D+01
20 0.693697D+01 -0.171979D+02 -0.326306D+01 -0.919076D+01 0.155928D+02
21 -0.660236D+00 -0.377265D+00 -0.592011D+00 0.227386D+00 0.596589D+01
22 -0.200915D-01 -0.118530D-02 -0.380576D-01 0.178276D-01 -0.175886D-02
23 0.217661D-01 0.185290D+00 -0.338401D-01 -0.383026D-01 0.160312D+00
24 -0.318182D-01 -0.102685D-01 0.823757D-02 -0.264125D-01 -0.113948D+00
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 0.816567D+00
17 -0.730784D-01 0.292693D-01
18 0.228589D+00 -0.693445D-01 0.196548D+03
19 -0.121732D+00 0.301016D-01 -0.980605D+00 0.447776D+01
20 -0.472610D-01 -0.854640D-01 0.148268D+02 -0.128673D+01 0.166598D+03
21 0.144794D+00 -0.216041D-01 0.426921D+01 -0.391004D+01 0.202707D+01
22 0.611862D-02 0.894017D-03 -0.980956D+00 -0.249488D-01 -0.874273D-01
23 0.283267D-02 -0.233185D-02 0.404955D+00 0.951085D-01 0.117904D+01
24 0.114925D-03 0.101270D-02 -0.961958D-01 0.991479D-03 -0.764019D+00
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 0.453265D+01
22 -0.267754D-01 0.108488D-01
23 -0.280977D-01 -0.231974D-02 0.213032D+00
24 -0.564158D-02 0.130287D-02 -0.164240D-01 0.778042D-02
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 1.000
2 -0.148 1.000
3 0.029 0.037 1.000
4 0.020 0.065 -0.101 1.000
5 -0.012 0.003 -0.075 0.061 1.000
6 -0.032 -0.055 -0.036 -0.012 -0.104
7 0.010 0.021 -0.038 -0.038 -0.006
8 -0.066 0.009 0.020 -0.017 -0.004
9 0.052 -0.059 -0.044 0.018 0.092
10 0.041 -0.007 -0.001 0.051 0.534
11 -0.038 0.005 0.058 -0.061 0.020
12 -0.048 0.028 0.056 -0.001 -0.002
13 0.011 0.001 -0.016 -0.014 0.049
14 0.005 -0.013 0.106 0.015 -0.052
15 0.049 0.043 -0.086 0.010 -0.081
16 0.091 0.008 0.048 -0.036 -0.008
17 -0.047 0.035 0.040 0.043 -0.083
18 -0.118 0.045 0.018 0.047 0.028
19 0.053 0.012 -0.055 0.087 0.123
20 0.021 0.015 0.040 0.042 -0.114
21 -0.019 -0.032 0.084 -0.058 -0.099
22 0.044 0.042 0.025 0.027 -0.056
23 0.029 0.106 0.078 0.122 0.028
24 0.028 0.017 0.001 0.028 0.043
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 1.000
7 0.514 1.000
8 0.096 -0.102 1.000
9 0.057 -0.008 0.010 1.000
10 -0.010 -0.028 -0.019 0.023 1.000
11 0.068 0.096 -0.062 0.004 -0.016
12 -0.056 -0.054 0.241 0.024 -0.022
13 0.460 0.439 -0.002 -0.026 0.116
14 0.028 -0.016 0.546 -0.036 0.043
15 -0.034 -0.034 0.019 -0.050 -0.088
16 -0.036 -0.047 -0.038 0.069 -0.021
17 0.031 0.054 -0.005 -0.112 -0.101
18 -0.056 -0.094 -0.049 0.036 -0.010
19 -0.005 0.155 -0.062 0.079 0.084
20 -0.044 -0.037 -0.171 -0.042 0.107
21 -0.001 -0.163 0.052 -0.073 -0.098
22 -0.082 -0.055 0.031 -0.009 -0.019
23 0.009 0.019 0.003 0.024 0.018
24 0.010 0.000 -0.060 0.008 -0.095
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 1.000
12 0.064 1.000
13 -0.141 -0.035 1.000
14 -0.125 0.048 0.069 1.000
15 0.030 0.035 -0.035 -0.037 1.000
16 -0.024 -0.038 -0.039 -0.058 0.288
17 -0.023 -0.021 0.042 0.038 -0.676
18 -0.081 0.032 -0.010 -0.046 0.008
19 0.098 0.013 0.092 -0.029 -0.112
20 0.107 -0.203 -0.088 -0.157 0.053
21 -0.062 -0.027 -0.097 0.024 0.123
22 -0.038 -0.002 -0.128 0.038 -0.001
23 0.009 0.061 -0.026 -0.018 0.015
24 -0.072 -0.018 0.033 -0.066 -0.057
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 1.000
17 -0.473 1.000
18 0.018 -0.029 1.000
19 -0.064 0.083 -0.033 1.000
20 -0.004 -0.039 0.082 -0.047 1.000
21 0.075 -0.059 0.143 -0.868 0.074
22 0.065 0.050 -0.672 -0.113 -0.065
23 0.007 -0.030 0.063 0.097 0.198
24 0.001 0.067 -0.078 0.005 -0.671
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 1.000
22 -0.121 1.000
23 -0.029 -0.048 1.000
24 -0.030 0.142 -0.403 1.000
|
b32d4145cfe9a05df203c674cbd0ff7d531b6ae2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH10/EX10.18/18.sce | fe7fcf3e6f0e228f6b9f61a81fac8d4eaca06935 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 556 | sce | 18.sce | clc
h1=29.3; //kJ/kg
h2=42.3; //kJ/kg
h3=h2;
t_db2=24.5; //0C
t_db1=12; //0C
v_s1=0.817; //m^3/kg
amt=0.30; //Amount of air circulation m^3/min/person
capacity=60; //Seating capacity of office
BF=0.4; //By-pass factor
W3=8.6;
W1=6.8;
m_a=amt*capacity/v_s1;
disp("(i) Heating capacity of the heating coil =")
Q=m_a*(h2-h1)/60;
disp(Q)
disp("kW")
t_db4=(t_db2-BF*t_db1)/(1-BF);
disp("Coil surface temperature =")
disp(t_db4)
disp("ºC")
disp("(ii) The capacity of the humidifier =")
c=m_a*(W3-W1)/1000*60;
disp(c)
disp("kg/h") |
aa8f77dde34bee011eb6f4cf0e108ae5d9268e90 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1994/CH7/EX7.4/Example7_4.sce | 14c71fc2146dfe765a2039fb40ff91ad8026a526 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 346 | sce | Example7_4.sce | //Chapter-7,Example7_4,pg 7-23
Vsh1=400*10^-3
Rsh=0.01
Ish=Vsh1/Rsh
printf("current through shunt\n")
printf("Ish=%.2f A\n",Ish)
Ish=50
Vsh=Ish*Rsh
printf("voltage through shunt\n")
printf("Ish=%.2f V\n",Vsh)
Rm=750//coil resistance
Im=Vsh1/Rm
Rm1=Vsh/Im//meter resistance
printf("meter resistance\n")
printf("Rm1=%.2f ohm\n",Rm1)
|
dd21bacbb5dd40087f1c9108ec7e8056d78e5460 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3755/CH2/EX2.15/Ex2_15.sce | 19a7d5525a6f807c51c23e4be8917911c0196d46 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 225 | sce | Ex2_15.sce | clear
//
//
//
//Variable declaration
r=1; //assume
//Calculations
a=4*r/sqrt(3); //lattice constant
R=(a-(2*r))/2; //minimum radius
//Result"
printf("\n minimum radius is %0.3f r",R)
|
bc631c1583dac44b52d68d736b9652a809695042 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2021/CH17/EX17.7/EX17_7.sce | 4328ed5133055d3210040b8eb6842520e5d34bd7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 299 | sce | EX17_7.sce | //Finding of Vane Angle
//Given
V=40;
u=20;
alpha=30;
b=90;
u1=20;
//TO Find
theta=atand((V*sin(%pi/6))/((V*cos(%pi/6))-u));
Vr=((V*sin(%pi/6))/(sin(theta)));
pi=acosd(u1/Vr);
disp("Vane angle at Inlet ="+string(theta)+" Degrees");
disp("Vane angle at Outlet ="+string(pi)+" Degrees");
|
56ea5579c8d09e063782c7ca1e703dc4450a334e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH17/EX17.36/Ex17_36.sce | 2e6bc13c43d23c21d3d4afd777b8337c31034e7a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 426 | sce | Ex17_36.sce | //initilization of variables
u=0.25 //coefficient of friction
k=2800 //N/m
x=0.075 //m
g=9.8 //m/s^2
m=7 //kg
theta=30 //degrees
//Calculations
//Normal Reaction
N=g*m*cosd(theta) //N
//Frictional Force
Fr=u*N //N
//Component of force along the plane
F=g*m*sind(theta) //N
//Spring work is
W=0.5*k*x*x //N.m
s=(W+Fr*x-F*x)/(F-Fr) //m
S=round(s*1000) //mm
//Result
clc
printf('The value of S is %i mm',S)
|
1e36b256ae4d1fe314ce4499dc40492e4453c5a3 | 93640402789b9a9d07c82958f433765f1e2a8397 | /part 1/HiLoMux.tst | 25269df4e79a82cac83fbf795708ea7adbdf8ebe | [] | no_license | Slayingripper/Z80-CPU | 7a6b71f9e59850c3d4492a7f1867f4e81be278ba | 451873966cf071f8088407300629994a8d33f13c | refs/heads/master | 2020-05-04T02:42:27.419333 | 2019-04-01T19:27:22 | 2019-04-01T19:27:22 | 178,932,396 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 529 | tst | HiLoMux.tst | load HiLoMux.hdl,
output-file HiLoMux.out,
compare-to HiLoMux.cmp,
output-list in%B1.8.1 sel%D2.1.2 out%B1.4.1;
set in 0,
set sel 0,
eval,
output;
set sel 1,
eval,
output;
set in %B11100001,
set sel 0,
eval,
output;
set sel 1,
eval,
output;
set in %B11010010,
set sel 0,
eval,
output;
set sel 1,
eval,
output;
set in %B10110100,
set sel 0,
eval,
output;
set sel 1,
eval,
output;
set in %B01111000,
set sel 0,
eval,
output;
set sel 1,
eval,
output;
set in %B11111111,
set sel 0,
eval,
output;
set sel 1,
eval,
output;
|
b1f8f43e6646efc91b0dc5277e4a1caf2e039d77 | 7d25b77e915669b35e67a7b40f4d1e35ac474a26 | /Termy_scilab.sce | a8bb57ebcd073bef309293e6391c0352225af12b | [] | no_license | poli625/Fuzzy_Logic_Heat_Engine | 7b71ec4e5eb4eb4036733c85fff5ea5fc1d5d6e4 | eca1b750bf4db7bcb51d832f0e332026e0c88321 | refs/heads/main | 2023-02-22T19:16:42.425489 | 2021-01-27T14:12:55 | 2021-01-27T14:12:55 | 333,364,202 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,814 | sce | Termy_scilab.sce | clear;clc;
tmp=zeros(6,61);
roznica=zeros(8,61);
y=zeros(16,201);
for i = 1:61
x=i-31;
tmp(1,i)=x;
//term VL
if x>=-30 & x<=-15
VL=1;
elseif x>= -15 & x<= -10
VL=(-10-x)/(-10-(-15));
else VL=0;
end
tmp(2,i) = VL;
//term L
if x>=-15 & x<=-5
L=(x-(-15))/(-5-(-15));
elseif x>= -5 & x<= 5
L=(5-x)/(10);
else L=0;
end
tmp(3,i)=L;
//term M
if x>=0 & x<=8
M=(x)/(8);
elseif x>= 8 & x<= 15
M=(15-x)/(15-8);
else M=0;
end
tmp(4,i)=M
//term H
if x>=10 & x<=15
H=(x-10)/(15-10);
elseif x>= 15 & x<= 20
H=(20-x)/(20-15);
else H=0;
end
tmp(5,i)=H
//termVH
if x>=15 & x<=25
VH =(x-15)/(25-15);
elseif x>= 25
VH = 1;
else VH = 0;
end
tmp(6,i)=VH
x=(i-31);
roznica(1,i)=x;
//term UDuza
if x>=-30 & x<=-17
UD = 1
elseif x>= -17 & x<= -12.5
UD=(-12.5 - x)/((-12.5)-(-17));
else UD=0;
end
roznica(2,i)= UD;
//termUSrednia
if x>=-20 & x<=-10
US = (x-(-20))/((-10)-(-20));
elseif x>= -10 & x<=-6
US = 1
elseif x>= -6 & x<= -4
US = ((-6)-x)/((-4)-(-6));
else US = 0;
end
roznica(3,i) = US;
//term UMala
if x>=-5 & x<=-3.5
UM = (-3.5-x)/(-5-(-3.5));
elseif x>=-3.5 & x<0
UM = 1
else UM = 0;
end
roznica(4,i) = UM;
//termRowna
if x == 0
R = 1
else R = 0
end
roznica(5,i)=R;
//term Mala
if x>0 & x<=3.5
M = 1
elseif x>=3.5 & x<=5
M = (5-x)/(5-3.5)
else M = 0;
end
roznica(6,i) = M;
//term Srednia
if x>=4 & x<=6
S=(x-4)/(6-4);
elseif x>=6 & x<= 10
S=1;
elseif x>=10 & x<= 20
S=(20-x)/(20-10);
else S = 0;
end
roznica(7,i) = S;
//term Duza
if x>=12.5 & x<=17
D=(x-12.5)/(17-12.5)
elseif x>= 17 & x<= 30
D=1;
else D=0;
end
roznica(8,i)=D;
end
for i=1:201
x=(i-101)/100;
y(1,i)=x;
//singletony
//VVLL
if x == -1
VVLL = 1;
else VVLL = 0;
end
y(2,i) = VVLL;
//VVL
if x == -0.8
VVL = 1;
else VVL = 0;
end
y(3,i) = VVL;
//VL
if x == -0.7
VL=1;
else VL = 0;
end
y(4,i) = VL;
//L
if x == -0.5
L=1;
else L = 0;
end
y(5,i)=L
//VLM
if x == -0.3
VLM=1;
else VLM = 0;
end
y(6,i)=VLM
//LM
if x == -0.2
LM=1;
else LM = 0;
end
y(7,i)=LM
//M
if x == -0.1
M=1;
else M = 0;
end
y(8,i)=M
//Rownosc
if x == 0
R=1;
else R = 0;
end
y(9,i)=R
//M
if x == 0.1
M=1;
else M = 0;
end
y(10,i)=M
//LM
if x == 0.2
LM=1;
else LM = 0;
end
y(11,i)=LM
//VLM
if x == 0.3
VLM=1;
else VLM = 0;
end
y(12,i)=VLM
//VLH
if x == 0.5
VLH=1;
else VLH = 0;
end
y(13,i)=VLH
//LH
if x == 0.7
LH=1;
else LH = 0;
end
y(14,i)=LH
//H
if x == 0.8
H=1;
else H = 0;
end
y(15,i)=H
//VH
if x == 1
VH=1;
else VH = 0;
end
y(16,i)=VH
end
aktualnaTemp = input('Podaj aktualna temp: ');
docelowaTemp = input('Podaj docelowa temp: ');
roznicaTemp = (docelowaTemp - aktualnaTemp);
//rozmywanie roznicy
pUD = roznica(2,(roznicaTemp+31))
pUS = roznica(3,(roznicaTemp+31))
pUM = roznica(4,(roznicaTemp+31))
pR = roznica(5,(roznicaTemp+31))
pM = roznica(6,(roznicaTemp+31))
pS = roznica(7,(roznicaTemp+31))
pD = roznica(8,(roznicaTemp+31))
//rozmycie temperatur
pVL = tmp(2,aktualnaTemp+31);
pL = tmp(3,aktualnaTemp+31);
pMM = tmp(4,aktualnaTemp+31);
pH = tmp(5,aktualnaTemp+31);
pVH = tmp(6,aktualnaTemp+31);
//wspolczynniki
wVLUD = min(pVL,pUD);
wVLUS = min(pVL,pUS);
wVLUM = min(pVL,pUM);
wVLR = min(pVL,pR);
wVLM = min(pVL,pM);
wVLS = min(pVL,pS);
wVLD = min(pVL,pD);
wLUD = min(pL,pUD);
wLUS = min(pL,US);
wLUM = min(pL,pUM);
wLR = min(pL,pR);
wLM = min(pL,pM);
wLS = min(pL,pS);
wLD = min(pL,pD);
wMUD = min(pMM,pUD);
wMUS = min(pMM,pUS);
wMUM = min(pMM,pUM);
wMR = min(pMM,pR);
wMM = min(pMM,pM);
wMS = min(pMM,pS);
wMD = min(pMM,pD);
wHUD = min(pH,pUD);
wHUS = min(pH,pUS);
wHUM = min(pH,pUM);
wHR = min(pH,pR);
wHM = min(pH,pM);
wHS = min(pH,pS);
wHD = min(pH,pD);
wVHUD = min(pVH,pUD);
wVHUS = min(pVH,pUS);
wVHUM = min(pVH,pUM);
wVHR = min(pVH,pR);
wVHM = min(pVH,pM);
wVHS = min(pVH,pS);
wVHD = min(pVH,pD);
//agregacja
am1 = max(wVLUD);
am08 = max(wVLUS,wLUS);
am07 = max(wMUD,wLUS,wVLUM);
am05 = max(wHUD,wMUS,wMUM);
am03 = max(wVHUD,wHUS,wMUM);
am02 = max(wVHUS,wHUM);
am01 = max(wVHUM);
a0 = max(wVLR,wLR,wMR,wHR,wVHR);
a01 = max(wVLM);
a02 = max(wLM,wVLS);
a03 = max(wMM,wLS,wVLD);
a05 = max(wHM,wMS,wLD)
a07 = max(wVHM,wHS,wMD);
a08 = max(wVHS,wHD);
a1 = max(wVHD);
//metoda srodka ciezkosci
wynik = (1*a1 + 0.8*a08 + 0.7*a07 + 0.5*a05 + 0.3+a03 + a02*0.2+ a01*01 + 0*a0 + am01*(-0.1) + am02*(-0.2) + am03*(-0.3) + am05*(-0.5) +am07*(-0.7) + am08*(-0.8) + am1*(-1))/(a1+a08+a07+a05+a03+a02+a01+a0+am01+am02+am03+am05+am07+am08+am1);
disp('Wynik srodka ciezkosci: ');
disp(wynik);
enginePower = 5/60;
disp('Moc silnika :');
disp(enginePower);
disp('Ogrzewanie na sekunde: ');
ogrzewanieNaSek = wynik*enginePower;
if ogrzewanieNaSek > enginePower
ogrzewanieNaSek = enginePower
end
if roznicaTemp < 0
ogrzewanieNaSek = ogrzewanieNaSek*(-1);
end
disp(ogrzewanieNaSek);
// strumien ciepla(ubytek ciepla przy
//ogrzewaniu)
subplot(2,2,1);
plot(tmp(1,:),tmp(2,:),'r');
plot(tmp(1,:),tmp(3,:),'b');
plot(tmp(1,:),tmp(4,:),'r');
plot(tmp(1,:),tmp(5,:),'g');
plot(tmp(1,:),tmp(6,:),'black');
mtlb_axis([-30 30 0 1.2]);
xlabel('Temperatura');
ylabel('Przynaleznosc');
subplot(2,2,3);
plot(y(1,:),y(2,:),'r');
plot(y(1,:),y(3,:),'b');
plot(y(1,:),y(4,:),'r');
plot(y(1,:),y(5,:),'g');
plot(y(1,:),y(6,:),'cyan');
plot(y(1,:),y(7,:),'magenta');
plot(y(1,:),y(8,:),'r');
plot(y(1,:),y(9,:),'b');
plot(y(1,:),y(10,:),'r');
plot(y(1,:),y(11,:),'magenta');
plot(y(1,:),y(12,:),'cyan');
plot(y(1,:),y(13,:),'g');
plot(y(1,:),y(14,:),'r');
plot(y(1,:),y(15,:),'b');
plot(y(1,:),y(16,:),'r');
mtlb_axis([-1.1 1.1 0 1.2]);
xlabel('Ogrzewanie');
ylabel('Przynaleznosc');
subplot(2,2,2);
plot(roznica(1,:),roznica(2,:),'r');
plot(roznica(1,:),roznica(3,:),'b');
plot(roznica(1,:),roznica(4,:),'g');
plot(roznica(1,:),roznica(5,:),'magenta');
plot(roznica(1,:),roznica(6,:),'cyan');
plot(roznica(1,:),roznica(7,:),'r');
plot(roznica(1,:),roznica(8,:),'g');
mtlb_axis([-30 30 0 1.2]);
xlabel('Roznica');
ylabel('Przynaleznosc');
|
a76d85cf9542e52a7a782000d8c93bba7c55f149 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1004/CH12/EX12.7/Ch12Ex7.sci | 47647a1ae21d74d5a4453f65a3604b7ca8c759f9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 393 | sci | Ch12Ex7.sci | // Scilab Code Ex12.7 Kinetic energy of neutrons: Pg: 248 (2008)
d = 2.2; // Binding energy of deuterium, MeV
H3 = 8.5; // Binding energy of tritium, MeV
He4 = 28.3; // Binding energy of helium, MeV
KE = He4-d-H3; // Kinetic energy of the neutron, MeV
printf("\nThe kinetic energy of the neutron = %4.1f MeV", KE);
// Result
// The kinetic energy of the neutron = 17.6 MeV |
3a0f69f0e0cb9f836f9e2032f994e8f55744af0a | 02193ece59037456d298d519b38661b5dfd0ab17 | /2nd-year/scilab/graphe-etoile-cycle.sce | 2b3e4fc36cfc973969afc03fe7adc7b221dcde3d | [] | no_license | pakpake/licence-informatique | 561558d00f012a536ae97f74ee705e6c04dcecda | c9877ad75d3c4ee6e3904fe8b457f8b3242c7c3f | refs/heads/main | 2023-05-09T06:33:19.927698 | 2021-05-26T19:49:03 | 2021-05-26T19:49:03 | 368,866,811 | 3 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,239 | sce | graphe-etoile-cycle.sce | // fichier de fonctions
//construire le graphe en étoile
function [graphe] = etoile(n)
/*sommets = n
orientation = %F // graphes non-orienté
un = ones(1,n-1) // matrice composée de 1 uniquement
colonnes = [2:1:n]
aretes = [un; colonnes]' // transposée de la matrice
graphe = list(sommets,orientation,aretes)
*/
un = ones(n-1,1)
colonnes = (2:1:n)'
aretes = [un, colonnes]' // transposée de la matrice
graphe = list(n,%F,aretes)
endfunction
// appel de la fonction avec : [graphe] = etoile(6)
// avec une boucle for
function [graphe] = etoilefor(n)
A = ones(n-1,2) // Matrice a de 2 colonnes , n lignes
for k = 1:n-1
A(k,2) = k + 1
end
graphe = list(n, %F, A)
endfunction
function [graphe] = etoilefor2(n)
aretes =[]
for i=2:n
aretes = [aretes;1,i]
end
graphe = list(n,%F,aretes)
endfunction
//faire un cycle où les sommets sont reliés
function [graphe] = cycle(n)
A = ones(1,n-1)
for i=1:n-1
A(1,i) = i + 1
end
graphe = list(n,%F,A)
endfunction
function [graphe] = cycle2(n)
aretes = []
for i = 1:n-1
aretes = [aretes;i,i+1]
end
aretes = [aretes;n,1]
graphe = list(n,%F,aretes)
endfunction
|
15a70450f496d7c1b4a26ca041e221a22c524b28 | 449d555969bfd7befe906877abab098c6e63a0e8 | /226/CH20/EX20.6/example6_sce.sce | a144f6923d0547b0233b8fea0481b530905867bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 249 | sce | example6_sce.sce | //chapter 20
//example 20.6
//page 925
printf("\n")
printf("given")
Vs=10;Vf=1.7;Is=500*10^-6;Ih=1.5*10^-3;E=30;R=27*10^3;C=.5*10^-6;
R1max=(E-Vs)/Is
R1min=(E-Vf)/Ih
t=C*R*log((E-Vf)/(E-Vs));
printf(" capacitor charging time is %3.4fs\n",t) |
56470138f50686dae22c00c9ff3e0f609b49d112 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2495/CH2/EX2.7.5/Ex2_7_5.sce | d64b66f489f46c37fa6b170794cad31683c9238a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 490 | sce | Ex2_7_5.sce | clear
clc
M1=76;//molar mass of CS2 in gm
w2=3.795;//weight of S in 100gm of CS2 in gm
w1=100;//weight of CS2
R=8.314;//in J/Kmol
Tb=319.81;//boiling point of CS2 in K
Tbp=319.45;//boiling point of pure CS2 in K
DelHm_v=351.87;//enthalpy of vaporization in J/gm
M2=(w2*M1*R*(Tb^2))/(w1*(Tb-Tbp)*DelHm_v*76)
printf('M2=%.1f gm/mol',M2)
N=M2/32;//no. of s atoms
printf('\nN=%.1f',N)
//Molecular formula S8
//There are some errors in the solution given in textbook
//page 53
|
7aecf669103f82589f30ccf11bdc5c55e3d25563 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3456/CH13/EX13.2/Ex13_2.sce | 46f65daf5bc33a4bbb5d90826921ebbe2b446954 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 446 | sce | Ex13_2.sce | //Example 13.2
//Engineering Creep
//Page No. 461
clc;clear;close;
deff('y=C(f)','y=(f-32)*(5/9)');
R=1.987; //in cal/mol K
T2=1300; //in Fahrenheit
T1=1500; //in Fahrenheit
T2=C(T2)+273.15;
T1=C(T1)+273.15;
e2=0.0001; //no unit
e1=0.4; //no unit
Q=R*log(e1/e2)/(1/T2-1/T1);
printf('\nActivation Energy = %g cal/mol',Q)
printf('\n\n\nNote: Calculation Errors in book');
|
88eab0a7c9b996bb6c7515b9555a833fc191d8fc | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH6/EX6.15/6_15.sce | 7cae55cb31cb92c29482a688a97a1baee17e5cc5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 479 | sce | 6_15.sce | //Screw jack parameters
p=10 //mm
d=50 //mm
W=6000 //N
theta=atand(p/(%pi*d)) //degree
fi=atand(0.05) //degree
R=300 //mm
P=(d*W*tand(theta+fi))/(2*R) //N
VR=(2*%pi*R)/(p)
MA=W/P
eta=MA*100/VR //percent
//torque required to keep the load from descending
T=(50*600*tand(3.6426-2.8624))/2 //N-mm
printf("Efficiency eta=%0.2f percent > 50 percent\nThus the screw jack is not self locking\nTorque required to keep the load from descending T=%0.2f N-mm",eta,T)
|
8c8f416b0f5952eadb0fac34badf98554711967b | e41b69b268c20a65548c08829feabfdd3a404a12 | /3DCosmos/Data/Scripts/Space/Models/ISS.SCI | baa9674ebc89f8bea63bb223033189ddd7200481 | [
"LicenseRef-scancode-khronos",
"MIT"
] | permissive | pvaut/Z-Flux | 870e254bf340047ed2a52d888bc6f5e09357a8a0 | 096d53d45237fb22f58304b82b1a90659ae7f6af | refs/heads/master | 2023-06-28T08:24:56.526409 | 2023-03-01T12:44:08 | 2023-03-01T12:44:08 | 7,296,248 | 1 | 1 | null | 2023-06-13T13:04:58 | 2012-12-23T15:40:26 | C | UTF-8 | Scilab | false | false | 335 | sci | ISS.SCI | codeblock readtextfile(ScriptDir+"\_TOOLS.sci");
codeblock readtextfile(ScriptDir+"\_SSYS.sci");
codeblock readtextfile(ScriptDir+"\space\models\_animatemodel.sci");
tr=transformation;
tr.rotate(vector(1,0,0),-0.5*Pi);
tr.translate(vector(-4,-2,0));
animatemodel(datadir+"\Models\ISS_Building","isscomplete","3DS",tr,3.1,false);
|
aa9af1a37d5d04cc14b8b7a57917ae2a6b086c72 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.2/Unix/scilab-2.2/macros/percent/%lnm.sci | 6b5b88b2edc9f9ca72bc931e715c9fc301edc6ba | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 125 | sci | %lnm.sci | //[r]=%lnm(l1,l2)
//%lnm(l1,l2) correspond a l'operation logique l1==l2 avec l1 une liste
//et l2 une macro
//!
r=%t
//end
|
e4a3d5c85ae9c5e4ea9b1e6d11707510d47a8fa1 | b3751bc2b9ab1dfb6d9f4f33b013a1a38315c2e6 | /test/eunit.close.commit.open.rollback.whenever.tst | 8b58989dbfe85db5c3298a00e60689a361eecea5 | [
"Apache-2.0"
] | permissive | shamis/sqlparse | 9c3b4312365d8fe2dba40a857236076eea1bc441 | 6344e454331e71a13902e765f823bc0e65d5be77 | refs/heads/master | 2020-04-01T13:11:10.781385 | 2018-10-16T07:35:40 | 2018-10-16T07:35:40 | 153,240,490 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,999 | tst | eunit.close.commit.open.rollback.whenever.tst | %%-*- mode: erlang -*-
%%-*- coding: utf-8 -*-
% Test control options
[{tests, []}].
%% =============================================================================
%% TESTS: CLOSE & COMMIT & OPEN & ROLLBACK & WHENEVER
%% -----------------------------------------------------------------------------
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% close_statement
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"close cursor_1".
"close cursor_1;extra_1".
"CLOSE name_cursor_1".
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% commit_statement
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"commit work".
"commit work;extra_1".
"commit".
"commit;extra_1".
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% open_statement
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"open cursor_1".
"open cursor_1;extra_1".
"OPEN name_cursor_1".
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% rollback_statement
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"rollback work".
"rollback work;extra_1".
"rollback".
"rollback;extra_1".
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% when_not_found
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"whenever not found continue".
"whenever not found continue;extra_1".
"whenever not found goto target_1".
"whenever not found goto target_1;extra_1".
"whenever sqlerror continue".
"whenever sqlerror continue;extra_1".
"whenever sqlerror goto target_1".
"whenever sqlerror goto target_1;extra_1".
%% -----------------------------------------------------------------------------
%% TESTS: CLOSE & COMMIT & OPEN & ROLLBACK & WHENEVER
%% =============================================================================
|
97f037f18992e95c328de9ecfd6f90319f8fd53d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3622/CH9/EX9.2/Ex9_2.sce | 72d87f86839f07c51c4af565662bc28eb0d8c5c8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 191 | sce | Ex9_2.sce | //Initialisation of variables
clc
m=9e-31//mass of electron
e=1.6e-19//charge of electron
V=5000//volts
v=sqrt(2*V*e/m)
printf('maximum speed of electron is %e metre per second \n',v)
|
724ff516f834a0742ae4866ca22688c43d1c3566 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH7/EX7.5/5.sci | 7e92e37eee2bbfb4d83b2316bfbf4837734c914d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 456 | sci | 5.sci | clc;
clear all;
disp("Boundary layer thickness")
//uU=X
//y/delta=Y
//X=2*Y-Y^2;
L=1.1;//m length of plate
w=0.9;// m width of plate
Re=2*10^5;// Reynold's number
v=0.15*10^(-4);//m^2/s stokes kinematic viscocity
U=12;//m/s velocity ofair
x=Re*v/U;
disp("m",x,"Maximum distance from the leading edge upto which laminar boundary layer exists, x =")
delta=5.48*x*1000/(Re)^0.5;//mm
disp("mm",delta,"Maximum thickness of boundary layer =")
|
c32a504e71f59099fdc6d654196cae9f649c4521 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH12/EX12.2/12_2.sce | 1e868ddddd2f345e6cf399ae4112fb1e2c1f50e1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,116 | sce | 12_2.sce | //chapter 12
//example 12.2
//page 364
clear all;
clc ;
//given values in ohm
Zi2=967;
hfe1=100;
R3=12000;
hie1=1000;
R9=150;
hfe2=100;
hie2=1000;
R7=R3;
RL=120*10^3;
R10=R7;
R1=RL;
R2=39*10^3;
//voltage gain of stage 1
A1=-hfe1*(R3*Zi2/(R3+Zi2))/(hie1+R9*(1+hfe1));
printf("\nvoltage gain of stage 1=%.1f",A1);
//voltage gain of stage 2
Rp=(1/R7)+(1/RL)+(1/R10);
A2=-hfe2*(1/Rp)/hie2;
printf("\nvoltage gain of stage 2=%d",A2);
//open loop gain
A1=-5.5;A2=-571;
M = (A1)*(A2) ;
printf("\nopen loop gain =%d",M);
//feedback factor
B=R9 /(R9 + R10);
b=B^-1;
printf("\nfeedback factor(beta)=1/%d",b)
Av1=1/B;//for M*beta >>1
Av2=M/(1+M*B);//closed loop gain
printf("\nclosed loop gain=%d or %d if M*beta >>1",ceil(Av2),Av1);
Zb=hie1;
Zin=(1+M*B)*Zb;
//input impedance
Zi=1/((1/Zin)+(1/R1)+(1/R2))*10^-3;
printf("\ninput impedance=%d kohm",ceil(Zi));
//output impedance
Zout=(R7*R10/(R7+R10))/(1+M*B);
printf("\noutput impedance =%d ohm",ceil(Zout));
XC1=Zi/10;
f1=100;//Hz
C1=10^3/(2*%pi *f1*XC1);
printf("\ncapacitor C1=%.2f microF,use standard value 1 microF",C1)
|
3383576768a805644e7dbaa5dfedc48afabfad3c | 449d555969bfd7befe906877abab098c6e63a0e8 | /858/CH6/EX6.19/example_19.sce | b95725bbfadc25a394738b64376da86466a93eb5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,128 | sce | example_19.sce | clc
clear
printf("example 6.17 page number 264\n\n")
//to find the air flow rate and outlet humidity
S=425.6 //in kg/h
X1 = 0.035 //in kgwater/kg dry solid
t_s1=25 //in degree C
X2 = 0.017 //in kg H2O/kg dry air
t_s2=60 //in degree C
H2 = 0.0175 //in kg H2O/kg dry air
t_G2 = 84.2 //in degree C
t_G1= 32.8 //in degree C
C_pS = 1.465 //in kJ/kg dry solid
C_pA = 4.187 //in kg/ kg H2O K
H_G2=(1.005+1.88*H2)*(t_G2-0)+H2*2501;
H_S1 = C_pS*(t_s1-0)+X1*C_pA*(t_s1-0); //in kJ/kg
H_S2 = C_pS*(t_s2-0)+X2*C_pA*(t_s2-0); //in kJ/kg
Q=9300; //in kJ/h
printf("Latent heat of water at 0C, HG2 = %f kJ/kg dryair",H_G2)
printf("\n\nEnthalpy of entering solid, HS1 = %f kJ/kg dryair",H_S1)
printf("\n\nEnthalpy of exit solid, HS2 = %f kJ/kg dryair",H_S2)
//applying GHg2 + SHs1 = GHg1 +SHs2 +Q, we get two linear equations
//0.0175G+14.17248 = GH1 and 98.194G-29745.398 = 2562.664GH1
A = [0.0175 -1;98.194 -2562.664];
b = [-14.17248;29745.398];
x = A\b;
G = x(1);
H1 = x(2)/G;
printf("\n\nAir flow rate, G = %f kg dryair/hr",G)
printf("\n\nHumidity, H1 = %f kg dryair/hr",H1)
|
2c951b55a2aecb0eb2e7f73e2ff9a4ac7b27e3e6 | 12817c122486397fcb765ebb74f61e7d383d8821 | /Cramer.sci | 8761c2b3dac507c4344057533dac8fbb94daab09 | [] | no_license | jluisfgarza/NumericalMethods | d58b0d901e1f64ff0db8939106df2950bb7f1a65 | 6b74a992e6ea891191b8bab79e9c09a149fecba7 | refs/heads/master | 2021-01-10T09:50:44.828082 | 2020-04-20T11:29:30 | 2020-04-20T11:29:30 | 53,004,641 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,958 | sci | Cramer.sci | clear
/////////////////////////////////////////////////////////////////////////////////
// Autor: Juan Luis Flores Garza
// A01280767
// Fecha: 2/5/2016
// Version 1.0
//
// Un restaurante de comidas rápidas vende hamburguesas sencillas, hamburguesas
//con queso y malteadas.
// -El precio de la hamburguesa sencilla es 45, el de la hamburguesa con queso es 60 y
//el de la malteada es 50.
// -El costo de vender una hamburguesa sencilla es 38, el de una hamburguesa con queso
//es 42 y el de una malteada es 32.
// -¿Cuantas hamburguesas sencillas, hamburguesas con queso y malteadas se deben vender
//para obtener un ingreso de $14,100.00, con un costo de $10,600.00 y en total la suma
//de las unidades de los productos vendidos sea igual a 280?
//
// -Escribe un sistema de ecuaciones lineales que modele el problema
// -Utilizando cofactores y menores, encuentra el determinante la matriz A
// -Utiliza la regla de Cramer para encontrar la solución, usa el metodo de cofactores y
//menores para encontrar los determinantes de las matrices del numerador en la regla de Cramer.
//
// Parametros:
// MAtriz A y B
//
// Regresa:
// Valores de X1,X2,X3
//
//
/////////////////////////////////////////////////////////////////////////////
///////////////////////////Funcion CRAMER ///////////////////////////////////
function Cramer = Cram(A,B)
Cramer = 0
disp ("Sustituye la primer columan de la matriz A por la de B" )
A1 = [14100,60,50;10600,42,32;280,1,1]
disp ( A1 , "A1= " )
disp ("Sustituye la segunda columan de la matriz A por la de B" )
A2 = [45,14100,50;38,10600,32;1,280,1]
disp ( A2 , "A2= " )
disp ("Sustituye la tercer columan de la matriz A por la de B" )
A3 = [45,60,14100;38,42,10600;1,1,280]
disp ( A3 , "A3= " )
//No pude encontrar documentacion para hacer referencia a una instancia de la matriz en especifico
//opte por usar la funcion ya definida como "det" que obtiene el detemrinante de una matriz cuadrada
disp ( "x1 = determinante de la MAtriz (A1 ) / det.(A) ")
disp (( det( A1 ) /det( A ) ) , "=" )
disp ( "x2 = determinante de la MAtriz (A1 ) / det.(A) ")
disp (( det( A2 ) /det( A ) ) , "=" )
disp ( "x3 = determinante de la MAtriz (A1 ) / det.(A) ")
disp (( det( A3 ) /det( A ) ) , "=" )
Cramer = ( det( A1 ) /det( A ) ) + ( det( A2 ) /det( A ) )+ ( det( A3 ) /det( A ) )
endfunction
////////////////////////////// Programa Principal ////////////////////////////
disp ("SE GENERA LA SIGUIENTE MATRIZ DE ACUERDO AL SISTEMA DE ECUACIONES.")
// ECUACIONES BASADAS EN EL PROBLEMA EN LA DESCRIPCION
disp ("45x + 60y + 50z = 14100")
disp ("38x + 42y + 32z = 10600")
disp (" X + Y + Z = 280")
// LAS MATRICES GENERADA DE ACUERDO A LAS ECUACIONES
A = [45,60,50;38,42,32;1,1,1]
B = [14100;10600;280]
Cram (A,B)
|
eae61e51b5e5b0c11195490e80d6c62100026566 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2175/CH7/EX7.19/7_19.sce | b316c99a72386892c1ff0b37acc9c464c3570035 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 306 | sce | 7_19.sce | clc;
n=5;
t0=25.740
tn=27.880
v=-[(t0-25.730)/5];
v1=(tn-27.870)/5;
t=25.735;
t1=27.875;
Et=110.9880;
corc=-5*v1+[(v1-v)/(t1-t)]*[Et+26.81-5*t];
temp_rise=tn-t0;
c_temp_rise=temp_rise+corc;
q=c_temp_rise*2500*4.187*10^-3;
Q=q/(.825*10^-3);
disp("kJ/kg",Q,"calorific value of fuel is:");
|
3fe5554d25ae5f51659033934d110bdc7d185550 | 449d555969bfd7befe906877abab098c6e63a0e8 | /491/CH11/EX11.4/11_4.sce | a17d9d7b429f4fa2a743d7804d84cc050bec8217 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,351 | sce | 11_4.sce | L = 25 ; // Length of coloum in ft
P1 = 320 ; // Load in K
P2 = 40 ; // Load in K
E = 30000 ; // Modulus of elasticity of steel in Ksi
P = 360 ; // Euivalent load
e = 1.5 ; // Ecentricity of compressive load
A = 24.1 ; // Area of the Cross section
r = 6.05 ; // in inch
c = 7.155 ; // in inch
sy = 42 ;// Yeild stress of steel in Ksi
smax = (P/A)*(1+(((e*c)/r^2)*sec((L/(2*r))*sqrt(P/(E*A))))); // Maximum compressive stress
disp("ksi",smax,"The Maximum compressive stress in the column ")
// Bisection method method to solve for yeilding
function [x] = stress(a,b,f)
N = 100;
eps = 1e-5;
if((f(a)*f(b))>0) then
error('no root possible f(a)*f(b)>0');
abort;
end;
if(abs(f(a))<eps) then
error('solution at a');
abort;
end
if(abs(f(b))<eps) then
error('solution at b');
abort;
end
while(N>0)
c = (a+b)/2
if(abs(f(c))<eps) then
x = c ;
x;
return;
end;
if((f(a)*f(c))<0 ) then
b = c ;
else
a = c ;
end
N = N-1;
end
error('no convergence');
abort;
endfunction
deff('[y]=p(x)',['y = x + (0.2939*x*sec(0.02916*sqrt(x))) - 1012 '])
x = stress(710,750,p);
Py = x ; // Yeilding load in K
n = Py/P; // Factor of safety against yeilding
disp(n,"The factor of safety against yeilding is")
|
3d6085ab0e0fcf30e301b8b2a6c14c3f972de263 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/%asn.man.tst | baf3cd5d51e3e012055de6abc412887ee5b4f09d | [
"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 | 348 | tst | %asn.man.tst | clear;lines(0);
m=0.8;z=%asn(1/sqrt(m),m);K=real(z);Ktilde=imag(z);
x2max=1/sqrt(m);
x1=0:0.05:1;x2=1:((x2max-1)/20):x2max;x3=x2max:0.05:10;
x=[x1,x2,x3];
y=%asn(x,m);
rect=[0,-Ktilde,1.1*K,2*Ktilde];
plot2d(real(y)',imag(y)',1,'011',' ',rect)
//
deff('y=f(t)','y=1/sqrt((1-t^2)*(1-m*t^2))');
intg(0,0.9,f)-%asn(0.9,m) //Works for real case only!
|
2a79ba8ff62b2e9044a3b1497d6eb8815b565cb2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /698/CH26/EX26.2/P2_comparison_of_moment_of_inerta.sce | 331c8969fd0c4669b6674258fcb6b5296f23fd5b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,262 | sce | P2_comparison_of_moment_of_inerta.sce | clc
//Example 26.2
//Comparision of moment of inertia
//------------------------------------------------------------------------------
//Given data
//mean radius
r=0.6 //m
//thickness
t=0.152 //m
//width
b=0.2 //m
//density
rho=7000 //kg/m3
//inner and outer radii
ri=r- t/2
ro=r+ t/2
//Mass of cylinders
mo=%pi* ro^2 *b*rho
mi=%pi* ri^2 *b*rho
res2=mopen(TMPDIR+'2_comparison_of_moment_of_inertia.txt','wt')
//Exact moment of inertia of rim
mfprintf(res2,'(a)The exact moment of inertia of the rim considering difference of moment of inertia is')
mfprintf(res2,'\n\tI=1/2*mo*ro2 - 1/2*mi*ri2\n')
I=(1/2 *mo* ro^2) - (1/2 *mi* ri^2)
mfprintf(res2,'I=%d kgm2\n\n',I)
//Approximate moment of inertia
mfprintf(res2,'(b)/the approximate moment of inertia, considering the rim as a thin ring is:')
mfprintf(res2,'\n\tIapprox=m*r2\n')
Iapprox=(mo-mi)* r^2
mfprintf(res2,'Iapprox=%d kgm2\n\n',Iapprox)
//percentage error
p=((I-Iapprox)/I) *100
mfprintf(res2,'Percent error= %0.1f',p)
mclose(res2)
editor(TMPDIR+'2_comparison_of_moment_of_inertia.txt')
//------------------------------------------------------------------------------
//-----------------------------End of program-----------------------------------
|
f851bdfb12a5fc7171faf18a8fabcb26edd0a2ab | e41b69b268c20a65548c08829feabfdd3a404a12 | /3DCosmos/Data/Scripts/Astronomy/Earth/SunDial.SCI | 662c00f20e59bfccc2f66c35bd734a53d2c28817 | [
"LicenseRef-scancode-khronos",
"MIT"
] | permissive | pvaut/Z-Flux | 870e254bf340047ed2a52d888bc6f5e09357a8a0 | 096d53d45237fb22f58304b82b1a90659ae7f6af | refs/heads/master | 2023-06-28T08:24:56.526409 | 2023-03-01T12:44:08 | 2023-03-01T12:44:08 | 7,296,248 | 1 | 1 | null | 2023-06-13T13:04:58 | 2012-12-23T15:40:26 | C | UTF-8 | Scilab | false | false | 8,687 | sci | SunDial.SCI |
codeblock readtextfile(ScriptDir+"\_TOOLS.sci");
codeblock readtextfile(ScriptDir+"\_SSYS.sci");
#Earth radius
radius=6378.0;
#Sundial dimensions
sundialhradius=1000;
sundialthickness=0.0002*sundialhradius;
sundiallength=300;
offs=sundialhradius/5;
#List of all active sundials
sundials=List;
function cleartraces()
{
foreach sundial in sundials do {
sundial.trackframe.clearobjects;
sundial.lasttracepoint=point(999999,999999,999999);
}
}
function buildsundials()
{
sundials.clear;asundial=Map;
asundial.dir=vector(1,0,0);asundial.center=point(sundialhradius,0,sundialhradius-offs);
sundials.add(asundial);
asundial.dir=vector(0,1,0);asundial.center=point(0,sundialhradius,sundialhradius-offs);
sundials.add(asundial);
asundial.dir=vector(-1,0,0);asundial.center=point(-1*sundialhradius,0,sundialhradius-offs);
sundials.add(asundial);
asundial.dir=vector(0,-1,0);asundial.center=point(0,-1*sundialhradius,sundialhradius-offs);
sundials.add(asundial);
asundial.dir=vector(0.0001,0,1);asundial.center=point(0,0,2*sundialhradius-offs);
sundials.add(asundial);
#create sundial objects
foreach sundial in sundials do {
sundial.frame=locframe.addsubframe("SundialFrame");
sundial.trackframe=sundial.frame.addsubframe("TrackFrame");
sundial.frame.transf.origin=sundial.center;
sundial.frame.transf.Zaxis=vecnorm(sundial.dir);
sundial.frame.transf.Xaxis=vecnorm(vector(0,0,1)*sundial.dir);
sundial.frame.transf.Yaxis=vecnorm(sundial.frame.transf.Zaxis*sundial.frame.transf.Xaxis);
br=sundial.frame.add("Bar","Position":point(-1*sundialhradius,-1*sundialhradius,sundialthickness),"Color":Color(0.9,0.9,0.9),
"SizeX":(2*sundialhradius),"SizeY":(2*sundialhradius),"SizeZ":(2*sundialthickness));
ax=sundial.frame.add("Cylinder","Axis":vector(0,0,sundiallength),"Radius":(sundialhradius/30),"Color":color(0.3,0.8,0.3));
sundial.top=point(0,0,sundiallength);
sundial.traceplane=CreatePlane1(point(0,0,0.05*sundiallength),vector(0,0,1));
sundial.lasttracepoint=point(999999,999999,999999);
}
}
function setposition(lattit)
{
locframe.transf.reset;
locframe.transf.rotate(vector(0,1,0),Pi/2-lattit);
locframe.transf.translate(vector(0,0,radius));
}
lattit=51.0;
###############################################################################
# START
###############################################################################
ssysframe=ssys_create;
ssys_createearth(1);
#ssys_createluna(1);
ssys_showstarback(true);
GetPlanetOrbit("Earth").visible=false;
root.time=time(2009,9,1,9,0,0);
root.TimeSpeedFactor=300;
#Create dialog controls
dialogframe=T_createdialogframe;yps=0.95;ysep=0.05;
chk_corotate=dialogframe.add("CheckControl","Size":0.03,"Position":point(0.02,yps));
chk_corotate.checked=false;
dialogframe.add("TextControl","Size":0.03,"Position":point(0.06,yps),"Content":'Co-rotate with Earth');
yps=yps-ysep;
chk_varyseason=dialogframe.add("CheckControl","Size":0.03,"Position":point(0.02,yps));
chk_varyseason.checked=false;
dialogframe.add("TextControl","Size":0.03,"Position":point(0.06,yps),"Content":'Vary season');
yps=yps-ysep;
chk_track=dialogframe.add("CheckControl","Size":0.03,"Position":point(0.02,yps));
chk_track.checked=false;
dialogframe.add("TextControl","Size":0.03,"Position":point(0.06,yps),"Content":'Track position');
yps=yps-ysep;
lst_position=dialogframe.add("ListControl","Size":0.03,"Position":point(0.02,yps),"CountY":1,"SizeX":0.25);
positions=list;
lst_position.List.add('North Pole'); positions.add(deg2rad(89.0));
lst_position.List.add('Nortern hemisphere'); positions.add(deg2rad(51.0));
lst_position.List.add('Equator'); positions.add(deg2rad(0.0));
lst_position.List.add('Southern hemisphere'); positions.add(deg2rad(-45.0));
lst_position.List.add('South Pole'); positions.add(deg2rad(-89.0));
lst_position.SelectIdx=1;
ActivateControl(chk_corotate);
#enhanced texture on Earth
eglobe=GetPlanetBodyFrame("Earth");
etx2=eglobe.CreateTexture("Earth2",DataDir+"\textures\earth_3.jpg");
eglobe.GlobeRendering.Earth.Texture=etx2.name;
#create clock
clockframe=root.SC.Universe.addscreenframe("ClockFrame");
clockframe.EnableLight=false;clockframe.color=color(0.5,0.5,0.5);
info_clock=clockframe.add("Clock","Type":ClockTypeAnalog,"Position":point(0.1,0.15,0),"Size":0.08);
info_date=clockframe.add("Clock","Type":ClockTypeDate,"Position":point(0.02,0.02,0),"Size":0.03);
#initialise shadow
root.SC.VolumeShadowAdd(0,color(0,0,0,0.5),10,10000);
earthframe=GetPlanetFrame("Earth");
globeframe=GetPlanetBodyFrame("Earth");
#Create frame for local position on Earth
locframe=globeframe.addsubframe("LocFrame");
setposition(deg2rad(51.0));
#Build the sundials
buildsundials;
#create sun arrow
arrowframe=ssysframe.addsubframe("ArrowFrame");
arrowframe.CastVolumeShadow=false;
arrowframe.add("Arrow","Position":point(-5*sundialhradius,0,0),"Axis":vector(2.0*sundialhradius,0,0),"NormAxis":vector(0,1,0),"Width":200,"Thickness":0,
"EnableLight":false,"Color":Color(1,0.5,0));
#initialise viewing parameters
vp=GetViewPort;
vp.enableusernavigation=true;
vp.NearClipPlane=4000;
vp.FarClipPlane=160000;
vp.FocalDistance=20000;
vp.cameradir=vecnorm(earthframe.Transf.origin-point(0,0,0))-vector(0,0,0.4);
vp.camerapos=point(0,0,0)-vp.FocalDistance*vp.cameradir;
varyseason=false;
lasthour=root.time.hour;
createvar(lasttimestep);
while true do {
if not(varyseason) then lasttimestep=incrtime;
else {
lasttimestep=24*60*60;
root.time=root.time+24*60*60;
}
if chk_varyseason.WasModified then {
varyseason=false;
if chk_varyseason.Checked then varyseason=true;
cleartraces;
}
if lst_position.WasModified then {
setposition(positions(lst_position.SelectIdx));
cleartraces;
}
if chk_corotate.Checked then {#co-move camera with Earth rotation
inclin=deg2rad(-23.4457889);
poledir=vector(0,-1*sin(inclin),cos(inclin));
if not(root.Pauzed) then {
rotang=lasttimestep*2*Pi*365/364/(24*60*60);
vp.CameraPos=point(0,0,0)+vecrotate(vp.CameraPos-point(0,0,0),poledir,rotang);
vp.CameraDir=vecrotate(vp.CameraDir,poledir,rotang);
vp.CameraUpDir=vecrotate(vp.CameraUpDir,poledir,rotang);
}
}
#co-move camera with Earth movement (enhanced precision mechanism)
root.sc.universe.transf.reset;
ttf=earthframe.totaltransformation;ttf.invert;
root.sc.universe.transf=ttf;
root.sc.light0pos=ttf*point(0,0,0);
#position sun direction arrow
sundialpos=earthframe.transf*earthframe.inclin.transf*globeframe.transf*locframe.transf*point(0,0,0);
arrowframe.transf.origin=sundialpos;
arrowframe.transf.Xaxis=vecnorm(sundialpos-point(0,0,0));
arrowframe.transf.Yaxis=vecnorm(arrowframe.transf.Xaxis*vector(0,1,0));
arrowframe.transf.Zaxis=vecnorm(arrowframe.transf.Xaxis*arrowframe.transf.Yaxis);
zenithdir=earthframe.transf*earthframe.inclin.transf*globeframe.transf*locframe.transf*vector(0,0,1);
#track sundial paths
if chk_track.Checked and (arrowframe.transf.Xaxis^zenithdir<0) then {
foreach sundial in sundials do {
ttf=earthframe.transf*earthframe.inclin.transf*globeframe.transf*locframe.transf*sundial.frame.transf;
ttf.invert;
pline=CreateLine1(ttf*point(0,0,0),sundial.top);
cpoint=sundial.traceplane and pline;
if (pline.Direction.z<0) then {
if (abs(cpoint.x)<sundialhradius) and (abs(cpoint.y)<sundialhradius) then {
if distance(cpoint,sundial.lasttracepoint)>60 then
sundial.trace=sundial.trackframe.add("Curve","Color":color(1,0,0),"Size":2);
sundial.trace.addpoint(cpoint);
sundial.lasttracepoint=cpoint;
}
if lasthour<root.time.hour then {#create hour indication
cp2=cpoint;#clip to edge of sundial
if cp2.x>sundialhradius then { cp2.y=cp2.y*sundialhradius/cp2.x; cp2.x=sundialhradius; }
if cp2.x<-1*sundialhradius then { cp2.y=-1*cp2.y*sundialhradius/cp2.x; cp2.x=-1*sundialhradius; }
if cp2.y>sundialhradius then { cp2.x=cp2.x*sundialhradius/cp2.y; cp2.y=sundialhradius; }
if cp2.y<-1*sundialhradius then { cp2.x=-1*cp2.x*sundialhradius/cp2.y; cp2.y=-1*sundialhradius; }
line=sundial.trackframe.add("Curve","Color":color(1,0,0),"Size":1);
line.makeline(point(0,0,0),cp2);
}
}
}
}
lasthour=root.time.hour;
render;
}
|
56d8b1475d5a558043fe456fbfc8c649fd76d977 | 449d555969bfd7befe906877abab098c6e63a0e8 | /821/CH5/EX5.52/5_52.sce | 2a3c88c951ed808828f89d0aa3bb76459d23d03b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 431 | sce | 5_52.sce | Kf=1.86;//Kf for water//
M2=32;//Molecular weight of Methanol in grams//
W1=10000;//weight of H2O in grams//
dTf=10;//lowering freezing point of water//
W2=(dTf*W1*M2)/(1000*Kf);//weight of methanol in grams//
printf('weight of Methanol=W2=%fgrams=1.72Kg',W2);
M3=62;//Molecular weight of Ethylene in grams//
W3=(dTf*W1*M3)/(1000*Kf);//weight of methanol in grams//
printf('\nweight of Ethylene=W3=%fgrams=3.334Kg',W3);
|
f0cf9aeeec8e56b4eee3209c963addbe12bdf1e2 | e0124ace5e8cdd9581e74c4e29f58b56f7f97611 | /3913/CH7/EX7.4/Ex7_4.sce | 69b959d4b8630f85d95db44dc38cf08e89b844fe | [] | no_license | psinalkar1988/Scilab-TBC-Uploads-1 | 159b750ddf97aad1119598b124c8ea6508966e40 | ae4c2ff8cbc3acc5033a9904425bc362472e09a3 | refs/heads/master | 2021-09-25T22:44:08.781062 | 2018-10-26T06:57:45 | 2018-10-26T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 294 | sce | Ex7_4.sce | //Chapter 7 : The Matrix Connection
//Example 7.5
//Scilab 6.0.1
//Windows 10
clear;
clc;
A=[2 -1 3;3 1 0];
Q=[-1 1;2 0];
P=[1 0 1;0 2 0;-1 2 3];
disp(Q','Q^-1')
disp(P','P^-1')
P=(1/4)*[3 0 -1;-1 2 -1;1 0 1];
disp(P,'P=')
mprintf('\nthe required matrix is:\n')
disp(Q'*A*P)
|
31c1407078bd20e270035cc12cd87975a41c8497 | a77a50f3f25853ec6a7b5b8548a13b7a4b4b3980 | /rsc/sceneries/town-east.sce | f8f59e9fc07dae408b4e5a0e1b9653506c2fe7f4 | [] | no_license | nidoro/PointlessWars | f051b41cb71df783141e5953d2c03d9cf305150a | 2e8a9c073026ebb07454922cc3caec41d8c68f29 | refs/heads/master | 2021-03-27T13:12:04.182891 | 2016-11-08T15:23:16 | 2016-11-08T15:23:16 | 71,281,107 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 12,093 | sce | town-east.sce | %Background
scene-2.bg
%Music
NONE
% OBJECT-NAME X-RELATIVE Y-RELATIVE X-SCALE Y-SCALE H-FLIP V-FLIP
agua 0.0146 0.1010 1.0000 1.0000 0 0
agua 0.0403 0.1003 1.0000 1.0000 0 0
agua 0.0614 0.1021 1.0000 1.0000 0 0
agua 0.0833 0.1021 1.0000 1.0000 0 0
agua 0.1053 0.1057 1.0000 1.0000 0 0
agua 0.1282 0.1074 1.0000 1.0000 0 0
agua 0.1529 0.1057 1.0000 1.0000 0 0
agua 0.1785 0.1039 1.0000 1.0000 0 0
agua 0.2014 0.1057 1.0000 1.0000 0 0
agua 0.2252 0.1057 1.0000 1.0000 0 0
agua 0.2480 0.1039 1.0000 1.0000 0 0
agua 0.2764 0.1092 1.0000 1.0000 0 0
agua 0.2993 0.1074 1.0000 1.0000 0 0
boat1 0.1547 0.1198 1.0000 1.0000 0 0
agua 0.3240 0.1074 1.0000 1.0000 0 0
agua 0.3487 0.1039 1.0000 1.0000 0 0
agua 0.3734 0.1057 1.0000 1.0000 0 0
agua 0.3963 0.1057 1.0000 1.0000 0 0
agua 0.4219 0.1057 1.0000 1.0000 0 0
agua 0.4475 0.1039 1.0000 1.0000 0 0
boat2 0.7001 0.1252 1.0000 1.0000 0 0
agua 0.4731 0.1039 1.0000 1.0000 0 0
agua 0.5006 0.1057 1.0000 1.0000 0 0
agua 0.5253 0.1039 1.0000 1.0000 0 0
agua 0.5491 0.1039 1.0000 1.0000 0 0
agua 0.5738 0.1057 1.0000 1.0000 0 0
agua 0.6040 0.1110 1.0000 1.0000 0 0
agua 0.6251 0.1057 1.0000 1.0000 0 0
agua 0.6479 0.1074 1.0000 1.0000 0 0
agua 0.6708 0.1039 1.0000 1.0000 0 0
agua 0.6919 0.1057 1.0000 1.0000 0 0
agua 0.7193 0.1057 1.0000 1.0000 0 0
agua 0.7449 0.1021 1.0000 1.0000 0 0
cemitery 0.1199 0.8503 1.0000 1.0000 0 0
agua 0.7705 0.1057 1.0000 1.0000 0 0
agua 0.7953 0.1039 1.0000 1.0000 0 0
agua 0.8190 0.1039 1.0000 1.0000 0 0
agua 0.8456 0.1074 1.0000 1.0000 0 0
agua 0.8721 0.1057 1.0000 1.0000 0 0
% castle 0.8895 0.1890 1.0000 1.0000 0 0
castle 0.9140 0.1890 1.0000 1.0000 0 0
agua 0.8950 0.1057 1.0000 1.0000 0 0
agua 0.9188 0.1039 1.0000 1.0000 0 0
agua 0.9435 0.1039 1.0000 1.0000 0 0
agua 0.9673 0.1074 1.0000 1.0000 0 0
agua 0.9929 0.1057 1.0000 1.0000 0 0
dock 0.0586 0.1358 1.0000 1.0000 0 0
plantation 0.3761 0.1482 1.0000 1.0000 0 0
fence 0.1410 0.1411 1.0000 1.0000 0 0
monastery 0.1529 0.5667 1.0000 1.0000 0 0
market 0.4942 0.8450 1.0000 1.0000 0 0
flag-blue 0.7925 0.0418 1.0000 1.0000 0 0
flag-blue 0.9700 0.0152 1.0000 1.0000 0 0
flag-blue 0.8886 0.0152 1.0000 1.0000 0 0
guardian 0.8711 0.3962 1.0000 1.0000 0 0
% market -0.1427 -0.1053 1.0000 1.0000 0 0
merchant 0.4475 0.7564 1.0000 1.0000 0 0
merchant2 0.5381 0.7528 1.0000 1.0000 0 0
chicken 0.5107 0.9620 1.0000 1.0000 0 0
chicken 0.1135 0.1730 1.0000 1.0000 0 0
chicken 0.8932 0.7564 1.0000 1.0000 0 0
child 0.3688 0.6500 1.0000 1.0000 0 0
civita1 0.3899 0.5347 1.0000 1.0000 0 0
civita10 0.4137 0.5312 1.0000 1.0000 0 0
civita11 0.6434 0.6216 1.0000 1.0000 0 0
civita2 0.6159 0.6287 1.0000 1.0000 0 0
civita13 0.5253 0.8167 1.0000 1.0000 0 0
civita14 0.4365 0.9549 1.0000 1.0000 0 0
civita12 0.6580 0.8042 1.0000 1.0000 0 0
civita15 0.6635 0.4745 1.0000 1.0000 0 0
civita15 0.0604 0.7103 1.0000 1.0000 0 0
civita16 0.5573 0.8663 1.0000 1.0000 0 0
civita3 0.3267 0.8255 1.0000 1.0000 0 0
civita4 0.4585 0.8167 1.0000 1.0000 0 0
civita6 0.8822 0.8149 1.0000 1.0000 0 0
civita7 0.3249 0.5489 1.0000 1.0000 0 0
civita2 0.3020 0.5560 1.0000 1.0000 0 0
cow 0.0110 0.1801 1.0000 1.0000 0 0
cow 0.6287 0.2120 1.0000 1.0000 0 0
guardian 0.9150 0.3979 1.0000 1.0000 0 0
guardian 0.9590 0.4014 1.0000 1.0000 0 0
pig 0.6845 0.2280 1.0000 1.0000 0 0
pottery1 0.3447 0.9274 1.0000 1.0000 0 0
pottery2 0.0449 0.9674 1.0000 1.0000 0 0
priest-idle 0.1401 0.7032 1.0000 1.0000 0 0
rastelo1 0.1154 0.2049 1.0000 1.0000 0 0
rastelo2 0.0522 0.2120 1.0000 1.0000 0 0
rastelo2 0.6379 0.2670 1.0000 1.0000 0 0
sculpture 0.9417 0.8326 1.0000 1.0000 0 0
sheep 0.6232 0.8255 1.0000 1.0000 0 0
trees 0.6809 0.1411 1.0000 1.0000 0 0
sleep-soldier1 0.0586 0.4904 1.0000 1.0000 0 0
sleep-soldier2 0.1327 0.9337 1.0000 1.0000 0 0
civita16 0.0604 0.4337 1.0000 1.0000 0 0
civita3 0.7568 0.7085 1.0000 1.0000 0 0
civita8 0.9206 0.6943 1.0000 1.0000 0 0
civita14 0.5390 0.4390 1.0000 1.0000 0 0
civita10 0.4860 0.4213 1.0000 1.0000 0 0
civita5 0.4622 0.4319 1.0000 1.0000 0 0
civita8 0.7742 0.6890 1.0000 1.0000 0 0
civita13 0.3158 0.7333 1.0000 1.0000 0 0
civita7 0.6415 0.5454 1.0000 1.0000 0 0
civita4 0.6159 0.5223 1.0000 1.0000 0 0
civita16 0.4814 0.9691 1.0000 1.0000 0 0
civita2 0.4805 0.5090 1.0000 1.0000 0 0
rastelo1 0.6086 0.9514 1.0000 1.0000 0 0
fountain 0.4933 0.5737 1.0000 1.0000 0 0
smoke 0.2874 0.2085 1.0000 1.0000 0 0
smoke 0.7202 0.2103 1.0000 1.0000 0 0
smoke 0.7742 0.3645 1.0000 1.0000 0 0
smoke 0.7660 0.7706 1.0000 1.0000 0 0
civita3 0.7939 0.3979 1.0000 1.0000 0 0
civita7 0.8213 0.4101 1.0000 1.0000 0 0
pig 0.5635 0.6201 1.0000 1.0000 0 0
civita4 0.2803 0.1792 1.0000 1.0000 0 0
civita3 0.4805 0.5090 1.0000 1.0000 0 0
civita8 0.4316 0.2347 1.0000 1.0000 0 0
blacksmith 0.7363 0.6323 1.0000 1.0000 0 0
smoke 0.7959 0.5021 1.0000 1.0000 0 0
civita16 0.8613 0.9726 1.0000 1.0000 0 0
civita14 0.3223 0.4344 1.0000 1.0000 0 0
king 0.9170 0.2245 1.0000 1.0000 0 0
|
3647fc94dd01ea71fa0c494bf6f08df5da4800d7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3523/CH3/EX3.7.11/Ex3_11.sce | e8830f36a1c12eb983b06bb44ee7051d261e59d3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 157 | sce | Ex3_11.sce | //Example 11// Ch 3
clc;
clear;
close;
// given data
I = 1;
I0 = 6;
x=20;//in cm
u = -(1/x)*log(I/I0);
printf("absorption coefficient %f cm^-1",u)
|
ccfcd53790a27b782f4cc3a532393c668bb940d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH16/EX16.7/16_7.sce | 8e351d1bcee15c99af44ab15536374b957f69541 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 577 | sce | 16_7.sce | //Block being pulled
//refer fig. 16.10 (a) and (b)
//when pull P is acting
W=2500 //N
P=1000 //N
N=W-P*sind(30)
mu=0.2
F=mu*N //N
//Initial velocity=0
//Let final velocity be v
s=30 //m
//Applying work energy equation for the horizontal motion
v=sqrt((0.866*1000-400)*30*2*9.81/2500)
printf("\nv=%.3f m/sec",v)
//Now if the 1000 N force is removed,let the distance moved before rest be s
//Initial velocity=10.4745 //m/sec
//Final velocity=0
s=(2500*(10.4745^2))/(400*2*9.81) //m
printf("\ns=%.3f m",s)
//The answer provided in the textbook is wrong
|
fbe62d2682ba7f4a36943e9424dcab3ae6c2658a | 63c8bbe209f7a437f8bcc25dc1b7b1e9a100defa | /test/0098.tst | 49119dd685cd6aa9dbef77406345b6d595e65e8d | [] | no_license | fmeci/nfql-testing | e9e7edb03a7222cd4c5f17b9b4d2a8dd58ea547c | 6b7d465b32fa50468e3694f63c803e3630c5187d | refs/heads/master | 2021-01-11T04:09:48.579127 | 2013-05-02T13:30:17 | 2013-05-02T13:30:17 | 71,239,280 | 0 | 0 | null | 2016-10-18T11:01:57 | 2016-10-18T11:01:55 | Python | UTF-8 | Scilab | false | false | 212 | tst | 0098.tst | SpLITTER H {}
filTEr gAC { NoT 1b << N }
fIltEr mMi {noT J Or NOT rY }
L BraNcH C
GroUPeR h {AGgREgAtE BitANd(y.n) As T }
ungrOupeR n { }
grOupFiLteR n {NOt PcG ( biTOR (), ) }
MErGeR u { eXPORt V } |
4a853b50d070440d50a9b432ea3f2fc275eb155d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2921/CH20/EX20.2/Ex20_2.sce | af6c7f4dfa5833d05ff2cff587f30bf04df1ef30 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 309 | sce | Ex20_2.sce | clc;
clear;
mprintf('MACHINE DESIGN \n Timothy H. Wentzell, P.E. \n EXAMPLE-20.2 Page No.432\n');
//Dynamic load capacity
T=200;
n=1750;
L=T*n*60/10^6;
Pd=2400;
Ld=21;
Lc=1;
k=1/3;
Cd=Pd*(Ld/Lc)^k
mprintf('\n Dynamic load capacity required = %f lb.',Cd);
mprintf('\n Bearing 6211 meets this criterion.');
|
8f8fc5c7fa9370dfdad0e533f4b7cbae893567c5 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/waveguides/waveguide.sce | 0e7534330dce4a585b93f65bd6bc8406d5711c98 | [] | no_license | mikeg2105/matlab-old | fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e | eac168097f9060b4787ee17e3a97f2099f8182c1 | refs/heads/master | 2021-05-01T07:58:19.274277 | 2018-02-11T22:09:18 | 2018-02-11T22:09:18 | 121,167,118 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 155 | sce | waveguide.sce | function [ez]=ez(m,n,k,rho,phi,z)
amn=1;
bmn=1;
gammamn=1;
ez=besselj(m,gammamn*rho).*exp(%i*m*phi).*(amn*sin(k*z)+bmn*cos(k*z));
endfunction
|
793151e090f61f0cf56a6565c728724982896cd3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2045/CH8/EX8.1/Ex8_1.sce | bae56b2152350040b74240a6ad98dd714460ec17 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 482 | sce | Ex8_1.sce | //pagenumber 399 example 1
clear
freque=5*10^3;//hertz
//(1)
g=2*10^-3;//ampere per volt
rd=10*10^3;//ohm
r1=30*10^3;//ohm
r12=r1*r1/(r1+r1);
volgai=-(g*r12*rd)/(r12+rd);
disp("voltage gain = "+string((volgai)));//correction r12 should be taken as 15*10^3ohm in book
//(2) capacitance included
c=0.025*10^-6;//farad
frequ1=1/((2*3.14*(((rd*r1)/(rd+r1))+r1))*c);
volgai=(volgai/(sqrt((1+(frequ1/freque)^2))));
disp("voltage gain = "+string((volgai)));
|
7392a6751009a56e496c26ac8b0186c17db8389f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2870/CH10/EX10.4/Ex10_4.sce | 443c95bfefce830dbf75077b9da58ce74cd3a122 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 628 | sce | Ex10_4.sce | clc;clear;
//Example 10.4
//given data
P1=10;
P2=15000;
P3=15000;
T3=600;
P4=4000;
T5=600;
P6=10;
x6=0.896;
//from steam table
//at state 1
h1=191.81;
v1=0.00101;
//at state 3
h3=3593.1;
s3=6.6796;
//at state 4
h4=3155;
T4=375.5;
//at state 6
sf=0.6492;
sfg=7.4996;
hf=191.81;
hfg=2392.1;
//calculations
s6=sf+x6*sfg;
h6=hf+x6*hfg;
//s5 = s6
//from tables
P5=4000;//in kPa
h5=3674.9;
disp(P5/1000,'the pressure at which the steam should be reheated in MPa');
//s2 = s1
win=v1*(P2-P1);
h2=h1+win;
qin=(h3-h2)+(h5-h4);
qout=h6-h1;
nth=1-(qout/qin);
disp(nth,'thermal efficiency is')
|
e34ff4b65033ef6a6581e8fa9df3e1ac097a78ad | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set12/s_Higher_Engineering_Mathematics_B._S._Grewal_149.zip/Higher_Engineering_Mathematics_B._S._Grewal_149/CH6/EX6.15/ex15.sce | 5265fc3c3257bd2d153a74fb38b7e3db48816f3b | [] | no_license | hohiroki/Scilab_TBC | cb11e171e47a6cf15dad6594726c14443b23d512 | 98e421ab71b2e8be0c70d67cca3ecb53eeef1df6 | refs/heads/master | 2021-01-18T02:07:29.200029 | 2016-04-29T07:01:39 | 2016-04-29T07:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 87 | sce | ex15.sce | errcatch(-1,"stop");mode(2);
integrate('x*sin(x)^8*cos(x)^4','x',0,%pi)
exit();
|
726d9b3ee4f0974444acbee12c08a71b844cf6f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /689/CH8/EX8.9/9.sce | 6e1681a690ada917f0000278a3a4ed762bd62eae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 445 | sce | 9.sce | clc; funcprot(0);
//Example 8.9 Polar Curve
// Initialisation of variables
Cl_clark = 0.43; //Values from fig 8.18
Cd_clark = 0.020; //Values from fig 8.18
Cl_USA = 0.55; //Values from fig 8.19
Cd_USA = 0.03; //Values from fig 8.19
// Calculations
LbyD_clark = Cl_clark/Cd_clark;
LbyD_USA = Cl_USA/Cd_USA;
//Results
disp(LbyD_clark,"Maximum L/D for clark Y :",LbyD_USA,"Maximum L/D for USA-35 :");
|
5fff684a1801b76c46f2a2bd4dfe01343272c124 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1172/CH8/EX8.15.2/Example8_15b.sce | a6994923177ed5f5df12df21c2679d8877343eb8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example8_15b.sce | clc
//Given that
M_p = 1.6725e-24 // mass of proton in g
M_n = 1.6748e-24 // mass of neutron in g
M_d = 3.3433e-24 // mass of deuteron in g
c= 3e8 // speed of light in m/s
// sample problem 15b page No. 306
printf("\n\n\n # Problem 15b # \n")
printf("\n Standard formula used E = m*c^2")
del_m = M_p + M_n - M_d // calculation of Loss in mass during formation of 1 atom of hydrogen
b_e = (del_m / 1000) * c^2 / (1.6e-19 * 1e6) // calculation of Binding energy of deuteron
printf ("\n Binding energy of deuteron is %f MeV.", b_e)
|
ed3fbc72daed976a7bd274cb654996ac477876b5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /135/CH1/EX1.1/EX1.sce | 3409d022ecc860d19c02304b1bd80cfa06f597f5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 465 | sce | EX1.sce | // Example 1.1: Electron concentration
clc, clear
V=0.1; // Voltage in volts
I=5e-3; // Current in ampere
l_a=7e8; // Length to cross-sectional area ratio in metre inverse
mu=0.05; // Electron mobility in metre square per volt second
q=1.6e-19; // Charge on an electron in coulombs
n=(l_a*I)/(V*q*mu); //Electron concentration in inverse metres cube
n=n*1e-6; //Electron concentration in inverse centimetres cube
disp(n,"Electon concentration (cm^-3) = "); |
0dc795d8566c83dff6f3de3cf81d5e31eedb4ca7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1820/CH9/EX9.3/Example9_3.sce | bd12b9d7ea8a663dd651e60ebbecc7597afbd1e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,587 | sce | Example9_3.sce | // ELECTRIC POWER TRANSMISSION SYSTEM ENGINEERING ANALYSIS AND DESIGN
// TURAN GONEN
// CRC PRESS
// SECOND EDITION
// CHAPTER : 9 : SYMMETRICAL COMPONENTS AND FAULT ANALYSIS
// EXAMPLE : 9.3 :
clear ; clc ; close ; // Clear the work space and console
// GIVEN DATA
l = 40 ; // line length in miles
// Conductor parameter from Table A.3
r_a = 0.206 ; // Ohms per conductor per mile in Ω/mi
r_b = r_a ; // r_a = r_b = r_c in Ω/mi
D_s = 0.0311 ; // GMR in ft where D_s = D_sa = D_sb = D_sc
D_ab = sqrt(2^2 + 8^2) ; // GMR in ft
D_bc = sqrt(3^2 + 13^2) ; // GMR in ft
D_ac = sqrt(5^2 + 11^2) ; // GMR in ft
D_e = 2788.5 ; // GMR in ft since earth resistivity is zero
r_e = 0.09528 ; // At 60 Hz in Ω/mi
// CALCULATIONS
// For case (a)
Z_aa =[(r_a + r_e) + %i * 0.1213*log(D_e/D_s)]*l ; // Self impedance of line conductor in Ω
Z_bb = Z_aa ;
Z_cc = Z_bb ;
Z_ab = [r_e + %i * 0.1213*log(D_e/D_ab)]*l ; // Mutual impedance in Ω
Z_ba = Z_ab ;
Z_bc = [r_e + %i * 0.1213*log(D_e/D_bc)]*l ;
Z_cb = Z_bc ;
Z_ac = [r_e + %i * 0.1213*log(D_e/D_ac)]*l ;
Z_ca = Z_ac ;
Z_abc = [Z_aa Z_ab Z_ac ; Z_ba Z_bb Z_bc ; Z_ca Z_cb Z_cc] ; // Line impedance matrix
// For case (b)
a = 1*exp(%i*120*%pi/180) ; // By symmetrical components theory to 3-Φ system
A = [1 1 1; 1 a^2 a ;1 a a^2] ;
Z_012 = inv(A) * Z_abc*A ; // Sequence impedance matrix
// DISPLAY RESULTS
disp("EXAMPLE : 9.3 : SOLUTION :-") ;
printf("\n (a) Line impedance matrix , [Z_abc] = \n") ; disp(Z_abc) ;
printf("\n (b) Sequence impedance matrix of line , [Z_012] = \n") ; disp(Z_012) ;
|
dea3ef6ec80b22348703e646ffe9658f78a2a894 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2309/CH3/EX3.a.2/A_Ex3_2.sce | c88bb0f5b727abe7ec9a4836695cbea0f95b8a54 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 716 | sce | A_Ex3_2.sce | // Chapter 3 Additional Example 2
//==============================================================================
clc;
clear;
//input data
delta = 0.02; // relative refractive index
n1 = 1.48; // refractive index of core
// Calculations
NA = n1*(2*delta)^0.5; // Numerical aperture
n2 = sqrt( n1^2 - NA^2); // Refractive index of cladding
cri_ang = asin(n2/n1); // critical angle
cri_ang_d = cri_ang*180/%pi; // critical angle in degrees
// output
mprintf('Numerical Aperture = %3.3f\n The Critical angle = %3.2f degrees',NA,cri_ang_d);
//==============================================================================
|
4225a6149348092d24c819a6a0d2bc4974d7d928 | 449d555969bfd7befe906877abab098c6e63a0e8 | /548/CH9/EX9.2/9_02.sce | c6de3996aa6d6fe50be07a967bcb3931f2a85994 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 9_02.sce | pathname=get_absolute_file_path('9_02.sce')
filename=pathname+filesep()+'9_02data.sci'
exec(filename)
Pe=Pa*120/(n*Nmech*rpm*d);
disp(Pe,"Pe=","Pe=Pa*120/(n*Nmech*rpm*d)","mean effective pressure Pe:")
printf("\Answer:\n")
printf("\n\Mean effective pressure : %f N/m^2\n\n",Pe)
|
75e2ea6139e308d49f884b29823a687046e2076f | 449d555969bfd7befe906877abab098c6e63a0e8 | /293/CH7/EX7.11/eg7_11.sce | 8a4f15a6f48cf7fdb84ba704a0035efbf572f27f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 402 | sce | eg7_11.sce | V1 = complex(10);
V2 = complex(10*cos(-%pi/3),10*sin(-%pi/3));
Z1 = complex(1,1);
Z2 = complex(1,-1);
Z3 = complex(1,2);
Zth = Z3 + (Z1*Z2/(Z1+Z2)); // thevinin resistance
I = (V1 - V2)/(Z1 + Z2); // current flowing through the circuit when R3 is not connected
Vth = V1 - I*Z1; //thevinin voltage
Ibr = Vth/Zth; //current flowing through Z3
disp(Ibr,"current flowing through Z3 = ") |
b4856dc24c324f572e419075207bb56c24c3ccbb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2705/CH5/EX5.13/Ex5_13.sce | e2fc9c1b2ed489da00e7c8b4e586dcb6042e4538 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 939 | sce | Ex5_13.sce | clear;
clc;
disp('Example 5.13');
// aim : To determine the
// final volume, work done and the change in internal energy
// Given values
P1 = 700;// initial pressure,[kN/m^2]
V1 = .015;// initial volume, [m^3]
P2 = 140;// final pressure, [kN/m^2]
cp = 1.046;// [kJ/kg K]
cv = .752; // [kJ/kg K]
// solution
Gamma = cp/cv;
// for adiabatic expansion, P*V^gamma=constant, so
V2 = V1*(P1/P2)^(1/Gamma);// final volume, [m^3]
mprintf('\n The final volume of the gas is V2 = %f m^3\n',V2);
// work done
W = (P1*V1-P2*V2)/(Gamma-1);// [kJ]
mprintf('\n The work done by the gas is = %f kJ\n',W);
// for adiabatic process
del_U = -W;// [kJ]
mprintf('\n The change of internal energy is = %f kJ',del_U);
if(del_U>0)
disp('since del_U>0, so the the gain in internal energy of the gas ')
else
disp('since del_U<0, so this is a loss of internal energy from the gas')
end
// End
|
a69215d8f4941cc50029c45341070c3dfb4a9425 | 449d555969bfd7befe906877abab098c6e63a0e8 | /149/CH13/EX13.11/ques11.sce | 709231fdcb9f4516f1969a092857a74f8f0f2e23 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 499 | sce | ques11.sce | //ques11
clc
disp('solution of the given linear differential equation is given by : ');
disp('CF + PI');
syms c1 c2 x
m=poly(0,'m');
f=(m-2)^2;
r=roots(f);
disp(r);
disp('CF is given by ');
cf=(c1+c2*x)*exp(r(1)*x);
disp(cf);
disp('----------------------------------');
disp('PI =8*{1/(D-2)^2[exp(2x)]+{1/(D-2)^2[sin(2x)]+{1/(D-2)^2[x^2]}');
disp('using identities it reduces to : ');
pi=4*x^2*exp(2*x)+cos(2*x)+4*x+3;
disp(pi);
y=cf+pi;
disp('The solution is : y=');
disp(y);
|
86b9365b06b3786b5b309e8b7afd1287a83f0bfa | 6813325b126713766d9778d7665c10b5ba67227b | /Chapter6/Ch_6_Eg_6.25.sce | 9f40663bfb8b4098e8b1ec831efa190d5b0b9a2f | [] | no_license | arvindrachna/Introduction_to_Scilab | 955b2063b3faa33a855d18ac41ed7e0e3ab6bd1f | 9ca5d6be99e0536ba1c08a7a1bf4ba64620ec140 | refs/heads/master | 2020-03-15T19:26:52.964755 | 2018-05-31T04:49:57 | 2018-05-31T04:49:57 | 132,308,878 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 436 | sce | Ch_6_Eg_6.25.sce | // A function to calculate the distance between two points.
function [dist]=calc_dist(x1, y1, x2, y2)
dist=sqrt((abs(x2-x1))^2 +(abs(y2-y1))^2);
endfunction
// A function to calculate the area of a triangle
function [a]=calc_area(b, h);
a=.5*b*h
endfunction
// Main program
d=calc_dist(-5,-4,-6,4);
disp(d," is the distance between two points");
a1=calc_area(6,4);
disp(sprintf("Area of a triangle is %f",a1));
|
f609989c2538168da26f07e011c2e0583c530a74 | 9cb37875b74a713c93c09fa50ccc70ac0f71ecdb | /Gesture/SAVE_SCENARIOS/PR2TwoCupsFacing.sce | f86081b941f2d87107a64eeef3595ed8127184f2 | [] | no_license | jmainpri/move3d-assets | a5b621daaedaaf8784fed0da1e80d029c83f3983 | 939db49d17a14e052bb58324b70e6112803d3105 | refs/heads/master | 2021-01-16T17:48:56.669119 | 2016-02-16T14:04:09 | 2016-02-16T14:04:09 | 20,237,987 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,053 | sce | PR2TwoCupsFacing.sce | #************************************************************
# Scenario of humanTestEnv
#
# date : Wed Mar 6 17:44:03 2013
#************************************************************
p3d_sel_desc_name P3D_ENV humanTestEnv
p3d_sel_desc_name P3D_ROBOT HERAKLES_HUMAN1
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.014000 -1.354000 0.809730 0.000000 0.000000 93.959349 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 84.132000 -13.500000 -1.296000 0.069068 19.616929 0.000000 0.000000 0.000000 0.000000 -76.896000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT PR2_ROBOT
p3d_set_robot_steering_method Multi-Localpath
p3d_set_robot_radius 1.000000
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.058000 -0.110000 0.000000 0.000000 0.000000 -100.836000 0.310000 0.000000 0.000000 0.000000 -67.566000 68.681000 -7.876000 -133.000000 -175.378382 -60.040104 104.621599 0.000000 0.000000 -4.966000 79.626000 83.104000 -54.144000 82.692000 -62.511000 179.153866 0.000000 0.000000 0.000000 0.000000 0.000000 -0.650535 -0.204575 1.040293 74.988150 23.394585 -178.000409 -0.116916 -0.092738 0.480933 137.246776 -49.852550 -118.849496
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.058000 -0.110000 0.000000 0.000000 0.000000 -100.836000 0.310000 0.000000 0.000000 0.000000 -3.961000 -1.246000 -125.153000 -92.714000 180.000000 -34.569000 -96.336000 0.000000 0.000000 -4.966000 79.626000 83.104000 -54.144000 82.692000 -62.511000 179.153866 0.000000 0.000000 0.000000 0.000000 0.000000 0.107522 -0.709624 0.849858 3.779789 38.871127 -46.698229 -0.116916 -0.111738 0.480933 137.246776 -49.852550 -118.849496
p3d_set_robot_config Config__1 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.058000 -0.110000 0.000000 0.000000 0.000000 -100.836000 0.310000 0.000000 0.000000 0.000000 -29.623000 21.722000 -81.014000 -32.146000 -29.808000 -54.776000 -22.644000 0.000000 0.000000 -4.966000 79.626000 83.104000 -54.144000 82.692000 -62.511000 179.153866 0.000000 0.000000 0.000000 0.000000 0.000000 -0.334613 -0.806522 0.837364 -110.136867 34.183515 28.759198 -0.116916 -0.092738 0.480933 137.246776 -49.852550 -118.849496
p3d_set_robot_config Config__2 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.058000 -0.110000 0.000000 0.000000 0.000000 -100.836000 0.310000 0.000000 0.000000 0.000000 -3.961000 -1.246000 -125.153000 -92.714000 180.000000 -34.569000 -96.336000 0.000000 0.000000 -4.966000 79.626000 83.104000 -54.144000 82.692000 -62.511000 179.153866 0.000000 0.000000 0.000000 0.000000 0.000000 0.107522 -0.709624 0.849858 3.779789 38.871127 -46.698229 -0.116916 -0.111738 0.480933 137.246776 -49.852550 -118.849496
p3d_constraint p3d_lin_rel_dofs 1 15 1 14 2 1.000000 0.000000 0
p3d_constraint p3d_lin_rel_dofs 1 25 1 24 2 1.000000 0.000000 0
p3d_constraint p3d_pr2_arm_ik 7 6 7 9 10 11 12 13 1 32 0 1 8
p3d_set_cntrt_Tatt 2 1.000000 0.000000 0.000000 -0.180000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000
p3d_set_cntrt_Tatt2 2 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 1.000000 0.000000 0.000000 -0.180000
p3d_constraint p3d_pr2_arm_ik 7 16 17 19 20 21 22 23 1 33 0 1 18
p3d_set_cntrt_Tatt 3 1.000000 0.000000 0.000000 -0.180000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000
p3d_set_cntrt_Tatt2 3 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 1.000000 0.000000 0.000000 -0.180000
p3d_constraint p3d_fix_jnts_relpos 1 32 1 13 0 0
p3d_set_cntrt_Tatt 4 1.000000 0.000000 0.000000 0.180000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000
p3d_constraint p3d_fix_jnts_relpos 1 33 1 23 0 0
p3d_set_cntrt_Tatt 5 1.000000 0.000000 0.000000 0.180000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000
p3d_set_object_base_and_arm_constraints 32 1 0 2 2 3
p3d_set_arm_data 2 3 32
p3d_set_arm_data 3 3 33
p3d_sel_desc_name P3D_ROBOT TABLE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.004000 -0.720000 0.000000 0.000000 0.000000 -90.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Cup1
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.165000 -0.781000 0.725000 0.000000 0.000000 43.056000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT Cup2
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.304000 -0.696000 0.730000 0.000000 0.000000 -15.840000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_camera_pos -0.319258 -0.641405 0.781993 2.042140 5.979435 0.852500 0.000000 0.000000 1.000000 0.000000
|
379c9e10231a03e7db2e4254a0bb953a7c015285 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3544/CH4/EX4.62/Ex4_62.sce | 787468cedcb486bc0538f61fe03da098782154d7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 353 | sce | Ex4_62.sce | // Knapsack algorithm for Public Key Encryption
PT = [0 1 1 0 1 1; 1 1 1 0 0 0; 0 1 0 1 1 0]
disp("Plain text")
disp(PT)
K = [1 7 8 12 14 20]
disp("Knapsack:")
disp(K)
[row,col] = size(PT)
C = []
for i=1:row
sum=0
for j=1:col
sum = sum+PT(i,j)*K(j:j)
end
C(i:i) = sum
end
disp("Cipher text:")
disp(C)
|
a84163e55556eb7ba57cc4a5cc42b632d9482d9f | 449d555969bfd7befe906877abab098c6e63a0e8 | /992/CH4/EX4.5/ex4_5.sce | 92d2df16d7d9622254b194b4c50c21cbde21bf97 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 360 | sce | ex4_5.sce |
//Exa:4.5
clc;
clear;
close;
//Given:
Vcc=12.5;//in volts
Po=2.5;//in watts
Rl=50;
f=27.5*10^6;//in hz
Ri=Vcc^2/2/Po;
n=Rl/Ri;
printf("\n 1)equivalent ressitance = %fohm ",Ri);
Xl=Ri*sqrt(n-1);
l=Xl/(2*%pi*f);
printf("\n 2)indutance = %f microhenry",l*10^6);
Xc=Ri*n/sqrt(n-1);
c=1/{Xc*(2*%pi*f)};
printf("\n 3)capacitance = %f pF",c*10^12); |
f6ddbc851663202eeffc0005e9f0385e057820dc | 262ac6443426f24d5d9b13945d080affb0bd6d9b | /opgaves/4x4-magisch-vierkant-aanvullen-2/edit-me.sce | 1642c564913bd4057b4e2f0839bc1caaaa8832e4 | [] | no_license | slegers/Scilab | 9ebd1d486f28cf66e04b1552ad6e94ea4bc98a0b | 1b5dc3434def66355dafeb97c01916736a936301 | refs/heads/master | 2021-01-12T01:42:01.493578 | 2017-01-09T10:54:09 | 2017-01-09T10:54:09 | 78,420,343 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,578 | sce | edit-me.sce | function [oplossing] = solve(matrix)
// Het gegeven magisch vierkant ontbreekt 2 getallen.
// Maak het weer compleet.
[nulRow1,nulCol1] = searchNullBegin(matrix)
[nulRow2,nulCol2] = SearchOtherNUll(matrix)
total = 34
if nulRow1 <> nulRow2 then
for i = 1:size(matrix,"r")
total = total - matrix(nulRow1,i)
end
else
for i = 1:size(matrix,"c")
total = total - matrix(i,nulCol1)
end
end
matrix(nulRow1,nulCol1) = total
total = 34
if nulCol1 <> nulCol2 then
for i = 1:size(matrix,"c")
total = total - matrix(i,nulCol2)
end
else
for i = 1:size(matrix,"r")
total = total - matrix(nulRow2,i)
end
end
matrix(nulRow2,nulCol2) = total
disp(matrix)
oplossing = matrix
endfunction
function [x,y]=searchNullBegin(matrix)
for row = 1:size(matrix,"r")
for col = 1:size(matrix,"c")
if matrix(row,col) == 0 then
nulRow1 = row
nulCol1 = col
end
end
end
x = nulRow1
y = nulCol1
endfunction
function [column,y]=SearchOtherNUll(matrix)
for row = 1:size(matrix,"r")
for col = 1:size(matrix,"c")
if matrix(row,col) == 0 then
nulRow1 = row
nulCol1 = col
column = nulRow1
y = nulCol1
return column ,y
end
end
end
column = nulRow1
y = nulCol1
endfunction
|
dad54ca98acc433b23003a81c7ba1982dd3049a4 | 1573c4954e822b3538692bce853eb35e55f1bb3b | /DSP Functions/allpassshift/test_11.sce | 69e1b13ea9e305b73341bfa7b5ce351ec73c0a0c | [] | no_license | shreniknambiar/FOSSEE-DSP-Toolbox | 1f498499c1bb18b626b77ff037905e51eee9b601 | aec8e1cea8d49e75686743bb5b7d814d3ca38801 | refs/heads/master | 2020-12-10T03:28:37.484363 | 2017-06-27T17:47:15 | 2017-06-27T17:47:15 | 95,582,974 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | sce | test_11.sce | // Test # 11 : For 1 output argument
exec('./allpassshift.sci',-1);
[n]=allpassshift(0.28,0.683);
disp(n);
//
//Scilab Output
//n= 0. - 0.1488439 - 1.
//Matlab Output
//n= 0 -0.1488 -1.0000
|
8b42f837243c3e795fa9cd3179615188dd0bdec7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2498/CH4/EX4.36/ex4_36.sce | cbfd730fde61c3e9da925894e4aacfc04b10e99f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 542 | sce | ex4_36.sce | // Exa 4.36
format('v',5)
clc;
clear;
close;
// Given data
V_CC = 20;// in V
R_C = 3.3;// in k ohm
R_C = R_C * 10^3;// in ohm
R_B = 1;// in Mohm
R_B = R_B * 10^6;// in ohm
V_CE = V_CC;// in V
I_C = V_CC/R_C;// in A
I_C=I_C*10^3;// in mA
// Plotting of the DC load line,
plot([V_CE,0],[0,I_C]);
xlabel("V_CE in volts.");
ylabel("I_C in mA.");
title("DC load line.")
disp(I_C,"At saturation, the value of I_C in mA is : ")
disp(V_CE,"At cut off, the value of V_CE in volts is : ")
disp("DC load line shown in figure.");
|
fa5faa4295d25fafa1ca2e21ddbd1af79c932f62 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/CreatingPlots/testxgridlegend.sce | 46e3aa1bad83ef27f6b8f6594543e3e47ef9cc4c | [] | no_license | markusmorawitz77/Scilab | 902ef1b9f356dd38ea2dbadc892fe50d32b44bd0 | 7c98963a7d80915f66a3231a2235010e879049aa | refs/heads/master | 2021-01-19T23:53:52.068010 | 2017-04-22T12:39:21 | 2017-04-22T12:39:21 | 89,051,705 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 349 | sce | testxgridlegend.sce | exec('testplot.sce',-1)
// add a title
xtitle(' figure title')
// add a green (=3) coordinate grid
xgrid(3)
// add a legend in the upper-right corner (2) with a box (1) surrounding it
legend('circle','tangent','normal',2,1);
// add a legend in the lower-right corner (4) without a box (0)
legends(['circle','tangent','normal'],[5,2,4],4,0);
|
9beb74c64a638d72bdc7759b3908b3f7e1fbfe27 | 0e1b45c07f0938ba9c8a003d6ae1cf2d8315efdb | /acmp.ru/334, Chinese watch/java/test-01.tst | a93a32ad9c53037f57e70c9aad0b6710ee1da1ee | [] | no_license | Kot-Angens/acm | c85d8582c3e84f218415321743864b9680e01f2e | 05472eaa0fff7abb6679826085da5e0c990df4cb | refs/heads/master | 2021-01-24T22:36:05.159612 | 2012-10-02T13:51:56 | 2012-10-02T13:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 61 | tst | test-01.tst | 3
1:00:00
1:00:02
1:00:08
~~~~~~~~~~~~~~~~~~~~~~~~~~
1:00:08
|
482db228d9e0464b7b928ebda5effbfacf88bdb8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1757/CH6/EX6.1/EX6_1.sce | 687474bf538c26c3b62e00aace2ee8320046b9d7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 676 | sce | EX6_1.sce | //Example6.1 // design an inverting amplifier with a closed loop voltage gain of Av = -5
clc;
clear;
close;
Av = -5 ;
Is = 5*10^-6 ; // A
Rs = 1*10^3 ; // ohm
// input voltage source Vs = sinwt volts
// in an inverting amplifier frequency effect is neglected then i/p volt Vin = 1 V and total resistance equal to Rs+R1
// the input current can be written as Iin=Is
// Is = (Vin/Rs+R1);
Iin = Is;
Vin = 1 ; // V
R1 = (1-(Iin*Rs))/Iin ;
disp('the value of resistance R1 is = '+string(R1)+' ohm');
// closed loop voltage gain of an inverting amplifier
//Av = -(R2/Rs+R1)
R2 = -(Av*(Rs+R1));
disp('the value of resistance R2 is = '+string(R2)+' ohm');
|
61b8d14ec5633ad1de318d0575887dee94f2af86 | 52b803c4577043c12c9f408a2dd42031f5ea99aa | /gumbel.sce | a14483b25bf8c435c985b9087ab85d5fb9ed4824 | [] | no_license | radhikagoyal2july/triple-dividend | 436afe77fe027fa9ebb3f51cf5468982dfe49f5c | 3caee2d6e563ea1d43029fe243dcf55b284553b8 | refs/heads/master | 2021-09-02T10:01:40.133516 | 2018-01-01T18:07:33 | 2018-01-01T18:07:33 | 115,935,747 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 624 | sce | gumbel.sce | getd lib
xi=log(log(2));
g=.5772;
x=0:0.01:.5;
x(1)=x(1)+1e-8;
alf = [0.1 0.25 0.5 0.75 0.999999]
y=zeros(size(x,2),size(alf,2));
for j=1:size(alf,2)
H=alf(j);
for i=1:size(x,2)
y(i,j)=1-exp(-exp(1/(1-H)*(-(g+xi)/x(i)+H*g+xi)));
y(i,j) = 1 - exp(-exp(-(g+xi-(1+0)*x(i)*(xi+g*H))/((1+0)*x(i)*(1-H))));
end
end
myfontSize=3
plot(100*x,100*y)
cthick(2)
win()
ccolor("dark blue")
ylabs("Fraction of poor HHs with negative income (\%)")
xlabs("Vulnerablity of poor HH assets Vp (\%)")
leg=legend("$h=.1$","$h=0.25$","$h=0.5$","$h=0.75$","$h=1$",4)
a=gca()
a.y_label.font_size=4
|
9ea76a4358c61394cd2d587bc76d5d49a7bc14c1 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/mtlb/mtlb_sscanf.sci | 6d69419f1f2ae0b36902b41db3d9a4304c84365f | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,164 | sci | mtlb_sscanf.sci | function [a,nvars,errmsg,nextindex] = mtlb_sscanf(s,fmt,sz)
[lhs,rhs]=argn()
if lhs==4 then error('mtlb_sscanf: nextindex not implemented'),end
if rhs<3 then sz=%inf,end
nmx=prod(sz)
nvars=0
errmsg=''
//replicate the format many times to emulate Matlab format reuse
fmt=strcat(fmt(ones(1,50)))
lvars=msscanf(s,fmt);
if lvars==-1 then
a=''
return
errmsg='End of string reached before a datun has been read'
else
nvars=size(lvars)
nv=min(nvars,nmx)
if nv==0 then
a=[]
else
typ=10
a=[]
for k=1:nv,typ=min(typ,type(lvars(k))),end
if typ==1 then
for k=1:nv
if type(lvars(k))==1 then
a=[a;lvars(k)]
else
a=[a;ascii(lvars(k))']
end
end
if size(sz,'*')<>1 then
nv=size(a,'*')
n=ceil(nv/sz(1))
if n*sz(1)>nv then a(n*sz(1))=0;end
a=matrix(a,sz(1),n),
end
else
for k=1:nv
a=[a;lvars(k)]
end
if size(sz,'*')<>1 then
if sz(1)<=nv then
A=ascii(a)'
nv=size(A,'*')
n=ceil(nv/sz(1))
if n*sz(1)>nv then A(nv+1:n*sz(1))=ascii(' ');end
A=matrix(A,sz(1),n)
a=[]
for l=1:sz(1)
a=[a;ascii(A(l,:))]
end
end
else
a=strcat(a)
end
end
end
end
|
9a834661de6d88b3cf9d9d3d3fb648170132a98f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1859/CH5/EX5.10/exa_5_10.sce | f0997521b59acf69c52f7b29d7de065c79c720e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 495 | sce | exa_5_10.sce | // Exa 5.10
clc;
clear;
close;
// Given data
n=3;
R=1/10^n;
fs1=10;// full scale range of 10 v
r1= fs1*R;// resolution for full scale range of 10 V
disp(r1,"Resolution for full scale range of 10 V")
fs2=100;// full scale range of 100 v
r2= fs2*R;// resolution for full scale range of 100 V
disp(r2,"Resolution for full scale range of 100 V")
disp("The display of 14.53 V reading on 10 V scale would be 14.53")
disp("The display of 14.53 V reading on 100 V scale would be 0145.3")
|
e39c24b49d2ac33cec7ed51bce6baaaeb18d2b9c | 717ddeb7e700373742c617a95e25a2376565112c | /1445/CH8/EX8.20/Ex8_20.sce | a81f6f77c315ec8bee1ca066a73f11c22111e9f6 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 1,912 | sce | Ex8_20.sce | //CHAPTER 8- DIRECT CURRENT MACHINES
//Example 20
disp("CHAPTER 8");
disp("EXAMPLE 20");
//250 V DC shunt motor
//VARIABLE INITIALIZATION
v_t=250; //in Volts
I_a1=20; //in Amperes
N1=1000; //in rpm
r_a=0.5; //in Ohms
drop=1; //brush contact drop in Volts
ratio=1.5; //N2:N1=1.5
phi1=1; //it is an assumption
//SOLUTION
// equations have been renumbered differently than in the text book for better clarity
// Torque is constant
// T dir prop phi.Ia
// phi1.ia1=phi2.Ia2 (eq 1)
//similarly, E dir prop phi.N
//E1/E2 = phi1.n1/phi2.n2
E_1=v_t-(I_a1*r_a)-(2*drop);
//speed raised by 50%. new speed 1.5 times the old one i.e n2=1.5N1
//
//E1/E2 = Phi1.N1/phi2.N2 (eq 2)
//from eq 2
//=>E1/E2=Phi1/1.5.phi2 (substituting N2=1.5N1) (eq 3)
//=>phi2/phi1=E2/1.5.E1 (eq 4)
//from eq 1
//phi2/ph1=Ia2/Ia2=20/Ia2 -------------------(eq 5)
//substituting value of phi2/phi1 in eq 4 we get
//20/Ia2=E2/1.5E1
//=>E1/E2=Ia2/30 (eq 6)
//further we know that
//E2=V-Ia2.Ra -2.drop where V=v_t=250, ra=R_a=0.5 and drop=1
//=>E2=(V-2.drop) -Ra.Ia2 (eq 7)
//substituting value of E2 in eq 6, we get
//E1/[(V-2.drop)-ra.Ia2] = Ia2/30 (eq 8)
// we get quadratic equation
//Setting in an quadratic equation of type a.X^2 + b.X + c = 0
//The constants are as given below:
a=1; // coefficient of Ia2^2
b=-496; //coefficient of Ia2, = (V-2.drop).Ra=(v_t-2.drop).R_a
c=14280; // constant = E_1*30
D=b^2-(4*a*c);
x1=(-b+sqrt(D))/(2*a);
x2=(-b-sqrt(D))/(2*a);
if(x1<40)
I_a2=x1;
else if(x2<40)
I_a2=x2;
end;
phi2=(I_a1/I_a2)*phi1;
phi=(1-phi2)*100;
disp(sprintf("The flux to be reduced is %.1f %% of the main flux",phi));
//END
|
0867798a2ab152a39f75f1562e3a9e720ef3e3e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /773/CH6/EX6.10/6_10.sci | cbaccd1b29b7eed6d1a7173b9653646a1ca33687 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | 6_10.sci | //syslin//
exec parallel.sce;
exec series.sce;
syms G1 G2 G3 G4 G5 H1 H2;
a=G2/.H1; //negative feedback operation
b=series(G1,a);
c=series(b,G3);
d=parallel(c,G4);
e=series(d,G5);
y=e/.H2; //negative feedback operation
y=simple(y);
disp(y,"C(s)/R(s)=")
|
d676b2b5be3523ab9d0f54720a40fcf10e93888e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3311/CH6/EX6.28/Ex6_28.sce | 8285703d05919d692f58eb296469584c78386284 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 956 | sce | Ex6_28.sce | // chapter 6
// example 6.28
// Compute source inductance, load resistance and overlap angle
// page-371-372
clear;
clc;
// given
E=400; // in V (supply voltage)
f=50; // in Hz (supply frequency)
alpha=%pi/4; // in radian (firing angle)
Id=10; // in A (load current)
Edc=360; // in V (load voltage)
// calculate
alpha=alpha*(180/%pi);
disp(alpha);
Emph=E*sqrt(2/3);// calculation of peak voltage
// Since Edc=(3*sqrt(3)*Emph/%pi)*cosd(alpha)-(3*2*%pi*f*Ls/%pi)*Id, we get
Ls=(%pi/(3*2*%pi*f*Id))*((3*sqrt(3)*Emph/%pi)*cosd(alpha)-Edc);// calculation of source inductance
R=Edc/Id;// calculation of load resistance
// since Edc=(3*sqrt(3)*Emph/%pi)*cosd(alpha+u)-(3*2*%pi*f*Ls/%pi)*Id, we get
u=acosd((%pi/(3*sqrt(3)*Emph))*(Edc-(3*2*%pi*f*Ls/%pi)*Id))-alpha;// calculation of overlap angle
printf("\nThe source inductance is \t Ls=%.1f mH",Ls*1E3);
printf("\nThe load resistance is \t\t R=%.1f ohm",R);
printf("\nThe overlap angle is \t\t u=%.f degree",u); |
0604f5066dd696f31ea6aefbfd89b1d98b369de7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH1/EX1.20/example1_20.sce | 33a8606acbd675a014bf47e7e2f2cf434cb4f7df | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 572 | sce | example1_20.sce | clc
// Given That
lambda = 5.89e-7 // wavelength of light in meter
Mu_o = 1.4 // refractive index of oil film
Mu_w = 1.33 // refractive index of water
i = %pi / 6 // incidence angle in radian
n = 6 // no. of fringes seen
// Sample Problem 20 on page no. 1.46
printf("\n # PROBLEM 20 # \n")
r = asin(sin(i) / Mu_o) // calculation for angle of refraction
t = (n * lambda) / (2 * Mu_o * cos(r)) // calculation for thickness of film
printf("\n Standard formula used \n mu = sin(i)/sin(r),\n 1*mu*t*cos(r) = n*lambda. \n")
printf("\n Thickness of oil film = %e mm.",t*1000)
|
0fa4a5ad12e314a498f5019d4dd5c440f420def4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /191/CH3/EX3.6/Example3_6.sce | 5ddba45d2e326009387d47a89ed9b48fd4c76a0d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example3_6.sce | //Secant Method
//the first few iteration converges quikcly in negative root as compared to positive root
clc;
clear;
close();
funcprot(0);
format('v',9);
deff('[Secant]=f(x)','Secant=exp(x)-x-2');
x = linspace(0,1.5);
subplot(2,1,1);
plot(x,exp(x)-x-2);
plot(x,zeros(length(x),1));
//from the graph the function has 2 roots
//considering the initial negative root -10
x0 = -10
x1 = -9;
x2 = (x0*f(x1)-x1*f(x0))/(f(x1)-f(x0));
i=0;
while abs(x1-x2)>(0.5*10^-7)
x0=x1;
x1=x2;
x2 = (x0*f(x1)-x1*f(x0))/(f(x1)-f(x0));
i=i+1;
end
disp(i,'Number of iterations : ')
disp(x2,'The negative root of the function is : ')
//considering the initial positive root 10
subplot(2,1,2);
x = linspace(-2.5,0);
plot(x,exp(x)-x-2);
plot(x,zeros(length(x),1));
x0 = 10
x1 = 9;
x2 = (x0*f(x1)-x1*f(x0))/(f(x1)-f(x0));
i=0;
while abs(x1-x2)>(0.5*10^-7)
x0=x1;
x1=x2;
x2 = (x0*f(x1)-x1*f(x0))/(f(x1)-f(x0));
i=i+1;
end
disp(i,'Number of iteration : ')
disp(x2,'The positive root of the function is : ')
//number of iterations showing fast and slow convergent
format('v',6)
//Order of secant method (p)
p = log(31.52439)/log(8.54952);
disp(p,'Order of Secant Method : ') |
9be771767f52f7abb6a7f96c908db4b8d86ce4cf | 449d555969bfd7befe906877abab098c6e63a0e8 | /165/CH14/EX14.4/ex14_4.sce | 360da1921fd7da14d091579eb589fdf7486e28f2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 270 | sce | ex14_4.sce | //Example 14.4
clc;
E=10; //Applied potential in V
gain=100; //Rf/R1 is the gain of diff. inst. amp.
Vo=1.5; //Output of diff. inst. amp.in V
R=100;
del_R=(Vo*R)/(gain*E);
printf('\nChange in resistence in each gauge element %.2f ohm\n',del_R) |
e8e15804557c703f9b5581837db8c0ccc298a86e | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/scicos/do_color.sci | 624218be630b802b5ede41cb2b3906188efd1fd2 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,219 | sci | do_color.sci | function [%pt,scs_m]=do_color(%pt,scs_m)
// do_block - edit a block icon
// Copyright INRIA
while %t
if %pt==[] then
[btn,xc,yc,win,Cmenu]=cosclick()
if Cmenu<>[] then
%pt=[];
[Cmenu]=resume(Cmenu)
elseif btn>31 then
Cmenu=%tableau(min(100,btn-31));%pt=[xc;yc];
if Cmenu==emptystr() then Cmenu=[];%pt=[];end
[%win,Cmenu]=resume(win,Cmenu)
end
else
xc=%pt(1);yc=%pt(2);win=%win;%pt=[]
end
K=getobj(scs_m,[xc;yc])
if K<>[] then break,end
end
o=scs_m(K)
if o(1)=='Link' then
[nam,pos,ct]=o(5:7)
c=getcolor('Choose a color',ct(1));
if c<>[] then
connected=connected_links(scs_m,K)
for kc=connected
o=scs_m(kc);ct=o(7)
if ct(1)<>c then
drawobj(o)
o(7)(1)=c;
drawobj(o)
scs_m(kc)=o
end
end
end
elseif o(1)=='Block' then
graphics=o(2)
gr_i=graphics(9)
if type(gr_i)==10 then,gr_i=list(gr_i,[]),end
if gr_i(2)==[] then
coli=0
else
coli=gr_i(2)
end
coln=getcolor('color',coli)
if coln<>[] then
if coln<>coli then
gr_i(2)=coln
graphics(9)=gr_i
drawblock(o)
o(2)=graphics
scs_m(K)=o
drawblock(o)
end
end
elseif o(1)=='Text' then
//not implemented
end
|
c93a753e724760dd0ea6d2bbf382605fc8142378 | 449d555969bfd7befe906877abab098c6e63a0e8 | /149/CH34/EX34.9.3/ex9_3.sce | 247c962703ad90e821aff7d8fbab1c0ad2d818b1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 235 | sce | ex9_3.sce | clear
clc
function [x]=C(a,b)
x=factorial(a)/(factorial(b)*factorial(a-b))
endfunction
disp('total no.of possible cases=C(9,3)')
C(9,3)
disp('favourable outcomes=C(3,3)+C(4,3)=')
C(3,3)+C(4,3)
disp('probability=')
5/84 |
b7b49ce5bd8cabeba34dc7f1ef15dc1088bc1e55 | fe8d8fdfd76a35c2c7840989d444c052e301728a | /basic_statistics/representative_value.sce | a279dfcfcd3c1c00f0504c5aaac6a5cdc1180740 | [
"MIT"
] | permissive | KASHIHARAAkira/scilab_signal_analysis | a7522d678f6255aaa43e5a0ea14dec2387955712 | 20036ad50f7e099b52066ad8d4f439d412927984 | refs/heads/main | 2023-03-21T05:11:32.372462 | 2021-03-23T00:22:43 | 2021-03-23T00:22:43 | 348,306,832 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,139 | sce | representative_value.sce | rangeData = 2:1001; // 1から1000の範囲を示します。
DATA = csvRead("./src/data.csv",',', [], 'string'); // data.csvを読み込みます。
TEMP = DATA(rangeData, 2).'; // 読み込んだデータの中から、気温データだけを抽出します。
TEMP = strtod(TEMP); // 文字列データとして読み込んだので、数値に変換します。
// データを線グラフに描画する
plot(TEMP, 'b') // 気温データを青色の線グラフで表示する
ylabel("Temperature [degree]"); // y軸のラベルを表示
xlabel("Hour [-]"); // x軸のラベルを表示
// 代表値の算出
maxTemp = max(TEMP) // 最大値の算出
minTemp = min(TEMP) // 最小値の算出
meanTemp = mean(TEMP) // 平均値の算出
medianTemp = median(TEMP) // 中央値の算出
// 代表値の算出結果をコンソールに出力するためのブロック
representTemp = [minTemp, maxTemp, meanTemp, medianTemp] // 代表値算出結果を配列に代入
strLegend = ["min","max","mean", "median"] // 凡例の配列を作成
representiveValue = [strLegend; string(representTemp)] // 表示用の配列を作成
disp(representiveValue) // 結果の表示
// 代表値をグラフに描画するためのデータ作成
[srow, scol] = size(TEMP); // プロットする最大サイズを取得
plotDataMin = minTemp * ones(scol,1); // 最小値を描画するための配列を作成
plotDataMax = maxTemp * ones(scol,1); // 最大値を描画するための配列を作成
plotDataMean = meanTemp * ones(scol,1); // 平均値を描画するための配列を作成
plotDataMedian = medianTemp * ones(scol,1); // 中央値を描画するための配列を作成
// 代表値を描画する
plot(plotDataMin, 'r-') // 最小値の描画(赤色の実線)
plot(plotDataMax, 'r--') // 最小値の描画(--の破線)
plot(plotDataMean, 'r:') // 平均値の描画(..の点線)
plot(plotDataMedian, 'r-.') // 中央値の描画(-.の点破線)
a = gca(); // アクティブな軸情報を取得
a.data_bounds(:,1) = [0;1000]; //描画範囲を前1000個に限定
|
568c9f0520cf30a1314b51527dc13474b98a1a45 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1754/CH5/EX5.4/Exa5_4.sce | 1a1966b2139148ad3e1824760311c22781b948e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 382 | sce | Exa5_4.sce | //Exa 5.4
clc;
clear;
close;
//Given data :
BW=200;//in kHz
A=40;//gain without feedback(in dB)
Beta=5;//negative feedback in %
Beta=Beta/100;//feedback factor
//Formula : Af=A/(1+A*Beta)
Af=A/(1+A*Beta);//gain with feedback(in dB)
disp("Since gain bandwidth product remains constant, A*BW=Af*BW_dash");
BW_dash=A*BW/Af;//in kHz
disp(BW_dash,"New Bandwidth in kHz : "); |
f6cf5b7c795cab45866e582cd814f338f60569f9 | c645f66bc165dc95ee9fad51cb807fb3f87274bb | /exo6.sci | f43fb21fc7d7437b24f4624defb735a76e3a4982 | [] | no_license | Younes-97/TP-Calcul-Num-rique | 43faa872415b280b41b4a8e4f10887ce47de2616 | 098a68cb8e92586a75bf4dd20189c5a7efca6e59 | refs/heads/main | 2023-02-02T11:54:40.506903 | 2020-12-17T12:07:22 | 2020-12-17T12:07:22 | 318,046,472 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 404 | sci | exo6.sci | function [L,U]=mylu3b(A)
n=size(A,1)
for k=1:n-1
for i=k+1:n
m(i,k)=A(i,k)/A(k,k)
b(i)=b(i)-m(i,k)*b(k)
for j=k+1:n
A(i,j)=A(i,j)-m(i,k)*A(k,j);
end
end
end
//calcul de U par la fonction prédéfinie
U=triu(A)
//calcul de L par la fonction prédéfinie
L=tril(A)
endfunction
disp('L=',L)
disp('U=',U)
|
3e44dc0e5c3262997c7a9647ae849d72470f4b13 | 449d555969bfd7befe906877abab098c6e63a0e8 | /683/CH24/EX24.4/RD_4.sce | 4abf5219f1c5ca0804a1c2b4d44c6ade602bb7cb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 228 | sce | RD_4.sce | // sum 24-4
clc;
clear;
sigut=1770;
Pb=0.0018*sigut;
W=4000;
a=2.5/2;
Ws=90*0.5;
Wa=(W+Ws)*a/9.81;
Weff=W+Wa;
d=sqrt(Weff*2/(23*Pb));
d=12;
// printing data in scilab o/p window
printf("d is %0.0f mm ",d);
|
7cbf578dbdb388edb115f1438e15ac71b3f1de76 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1808/CH4/EX4.3/Chapter4_Example3.sce | 066fc87643604b08bc0d073724f8fe46f02d2c0f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,521 | sce | Chapter4_Example3.sce | clc
clear
//INPUT DATA
pb=100;//Saturated vapour pressure in bar
pc=0.1;//Saturated liquid pressure in bar
two=35;//Cooling water exit temperature in degree C
twi=20;//Cooling water entry temperature in degree C
S1=5.6198;//Entropy in kJ/kg.K
S3=0.649;//Entropy in kJ/kg.K
S5=8.15;//Entropy in kJ/kg.K
h1=2727.7;//Enthalpy in kJ/kg
h3=191.8;//Enthalpy in kJ/kg
h5=2584.7;//Enthalpy in kJ/kg
V3=0.001;//Specific volume in m^3/kg
Cpw=41.8;//specific heat of water in kJ/kgk
//CALCULATIONS
x2=(S1-S3)/(S5-S3);//quality of steam
S1=S3+x2*(S5-S3);//Entropy in kJ/kg.K
h2=h3+x2*(h5-h3);//Enthalpy in kJ/kg
Wp=V3*(pb-pc);//Pump work in kJ/kg
h4=h3+Wp;//Enthalpy in kJ/kg
Wt=h1-h2;//Turbine work in kJ/kg
Wn=Wt-Wp;//Net work in kJ/kg
nR=(Wn/(h1-h4))*100;//Thermal efficiency
m=((pb*1000*3600)/Wn)/10^5;//Mass flow rate of steam in kg/hr *10^5
mx=((pb*1000)/Wn);//Mass flow rate of steam in kg/s
QS1=mx*(h1-h4);//Rate of heat transferred into fluid in kJ/kg
QR1=mx*(h2-h3);//rate of heat transfer from condenser in kJ/s
mw1=(((h2-h3)*m)/((two-twi)*Cpw));//Mass flow rate of water in kg/hr *10^6
Rw=((h1-h2)-Wp)/(h1-h2);//Work ratio
//OUTPUT
printf('(i) The Thermal efficiency is %3.2f percent \n(ii)The mass flow rate of steam is %3.2f * 10^5 kJ/hr \n(iii) The rate of heat transfer into working fluid is %3.1f kJ/s \n(iv)The rate of heat transfer from condenser is %3.2f kJ/s\n(v)mass flow rate of water in condenser is %3.1f *10^6 kg/hr \n(vi) The work ratio is %f ',nR,m,QS1,QR1,mw1,Rw)
|
3e668a8171d2fce912a4e41870bb7debb382969b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1478/CH2/EX2.18.28/2_18_28.sce | 5f4155bd95bdeca56902e3341b26e437c313787e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 839 | sce | 2_18_28.sce | //water and its treatment//
//example 2.18.28//
clc
Purity_Lime=.89
Purity_soda=.95
W1=14.6;//amount of HCl in ppm//
W2=34.2;//amount of Al2(SO4)3 in ppm//
W3=9.5;//amount of MgCl2 in ppm//
W4=30;//amount of KCl in ppm//
M1=100/(2*36.5);//multiplication factor of HCl//
M2=(3*100)/342.3;//multiplication factor of Al2(SO4)3//
M3=100/95;//multiplication factor of MgCl2//
P1=W1*M1;//in terms of CaCO3//L+S
P2=W2*M2;//in terms of CaCO3//L+S
P3=W3*M3;//in terms of CaCO3//L+S
printf ("We do not take KCl since it does not react with lime/soda");
V=20000;//volume of water in litres//
L=0.74*(P1+P2+P3)*V/Purity_Lime;//lime required in mg//
L=L/10^6;
printf("\nQuantity of Lime required is %.3fkg",L);
S=1.06*(P1+P2+P3)*V/Purity_soda;//soda required in mg//
S=S/10^6;
printf("\nQuantity of Soda required is %.3fkg",S) |
a835c91109908c88475bbe8a847c02fac1530229 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3809/CH18/EX18.7/EX18_7.sce | fbd0af61c69a2d163a9d2209bf4bdfd9d5c8e83f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,081 | sce | EX18_7.sce | //Chapter 18, Example 18.7
clc
//Initialisation
vcc=15 //voltage
RC=5.6*10**3 //resistance in ohm
RE=1.3*10**3 //resistance in ohm
R2=13*10**3 //resistance in ohm,
R1=82*10**3 //resistance in ohm
pi=3.14 //pi
fc=10 //frequency in hertz
VBE=0.7 //base to emitter voltage
//Calculation
VB=vcc*(R2/(R1+R2)) //Quiescent base voltage
VE=VB-VBE //Quiescent emitter voltage
IE=VE/RE //Quiescent emitter current
IC=IE //Quiescent collector current
VO=vcc-(IC*RC) //Quiescent collector voltage
//Results
printf("Quiescent base voltage = %.2f V\n",VB)
printf("Quiescent emitter voltage = %.2f V\n",VE)
printf("Quiescent emitter current = %.2f mA\n",IE*1000)
printf("Quiescent collector current = %.2f mA\n",IC*1000)
printf("Quiescent collector voltage = %.1f V\n",VO)
|
fc57adda85bd7a47ea960fa02f9d7abf924e06b8 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.2/macros/tdcs/boucle.sci | cf2126b812d5b230f4f9f66c9083466fa415aae7 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,001 | sci | boucle.sci | function []=boucle(fch,abruit,xdim,npts,farrow)
[lhs,rhs]=argn(0);
// appel minimal
if rhs<=4,farrow='f';end;
if rhs<=3,write(%io(2),'integration : nb points,pas du systeme '),
npts=read(%io(1),1,2),
end
if rhs <= 2,
write(%io(2),'cadre du dessin : xmin,ymin,xmax,ymax'),
xdim=read(%io(1),1,4),
// Test sur le cadre
if xdim(3) <= xdim(1),
write(%io(2),'Erreur: xmin ] xmax '),return,end
if xdim(4) <= xdim(2),
write(%io(2),'Erreur: ymin ] ymax '),return,end
end
if rhs <=1,abruit=0.0;end
tcal=npts(2)*(0:npts(1))
rand('normal')
br=sqrt(abruit)*rand(1,npts(1)+1);
if type(fch)=10;
// Passage des constantes a un programme Fortran d'initialisation
idisp=0;
pp_c=[ppr,ppk,ppa,ppb,ppm,pps,ppl]
fort('icomp',xe,1,'r',ue,2,'r',f,3,'r',g,4,'r',h,5,'r',...
k,6,'r',l,7,'r',br,8,'r',npts(2),9,'r',npts(1),10,'i',...
pp_c,11,'r',idisp,12,'i','sort');
end
xset("window",0);xselect();xclear();
// Boucle sur les points de depart
goon=1
while goon=1,
ftest=1;
while ftest=1,
// addtitle(fch);
plot2d([xdim(1);xdim(1);xdim(3)],[xdim(2);xdim(4);xdim(4)])
plot2d([xe(1)],[xe(2)],[2,4],"111",...
"Point d''equilibre pour ue='+string(ue),xdim);
write(%io(2),'Utilisez la souris : ');
write(%io(2),' -] Bouton de droite pour quiter ');
write(%io(2),' -] Bouton du milieu ou de gauche ');
write(%io(2),' pour indiquer x0 ');
[n,xx0,yy0]=xclick()
if n=2,goon=0;return;end
x0=[xx0,yy0];
write(%io(2),'Utilisez la souris : ');
write(%io(2),' -] Bouton de droite pour quiter ');
write(%io(2),' -] Bouton du milieu ou de gauche ');
write(%io(2),' pour indiquer xchap0 (observateur) ');
[n,xx0,yy0]=xclick()
if n=2,goon=0;return;end
xchap0=[xx0,yy0];
if type(fch)=10,
ftest=desorb1([x0,xchap0]',npts,fch,farrow,xdim);
else
ftest=desorb1([x0,xchap0]',npts,list(fch,abruit,...
npts(2),npts(1)),farrow,xdim);
end
if ftest=1;write(%io(2),'conditions initiales hors du cadre'),end
end
end
function [res]=desorb1(x0,n1,fch,farrow,xdim);
//[res]=desorb1(x0,n1,fch,farrow,xdim);
//!
res=0
write(%io(2),'Calculs en cours')
tcal=n1(2)*(0:n1(1))
xxx=ode(x0,0,tcal,fch);
[nn1,nn2]=size(tcal);
comcom=-k*(xxx(3:4,:)-xe*ones(1,nn2));
//dessin de l'evolution conjointe de la deuxieme
//composante de l'etat et de son estimee (observateur)
xset("window",1);xclear();
plot2d([tcal;tcal]',xxx([2,4],:)',[-1,-2],"111",...
"x2(t) @observateur de x2(t)",[0,xdim(2),n1(1)*n1(2),xdim(4)])
xset("window",2);xclear();
//dessin de la commande lineaire
plot2d([tcal]',[comcom]',[-1],"121",...
"commande lineaire en fonction du temps (ecart par rapport a ue)")
xset("window",0);xclear();
//portrait de phase
plot2d(xxx([1,3],:)',xxx([2,4],:)',[-1,-2],"111","(x1,x2)@observateur ",...
xdim);
|
b90b15ef76a3a08d29880c366f311bca76144ac7 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3.1/Unix-Windows/scilab-2.3/macros/util/g_cos.sci | 1b4f24d34b01c481c6b33ac56cbde42191309c29 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | 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 | 38 | sci | g_cos.sci | function sp=g_cos(a)
sp=cos(full(a))
|
da714f94262d3da9fbccf984da7987ece3db9572 | 5f48beee3dc825617c83ba20a7c82c544061af65 | /tests/s/04.tst | 6fe077dc6a92caf38350d26aba437f812e915d29 | [] | no_license | grenkin/compiler | bed06cd6dac49c1ca89d2723174210cd3dc8efea | 30634ec46fba10333cf284399f577be7fb8e5b61 | refs/heads/master | 2020-06-20T12:44:17.903582 | 2016-11-27T03:08:20 | 2016-11-27T03:08:20 | 74,863,612 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 39 | tst | 04.tst | int x;
int main(void)
{
return 0;
} |
eab88651b0f01466bfdba81e5c43e7af50b8ce15 | 8e7995c57cc78a0244b86a01f56f6f5d56089eb1 | /Modificada/ScenarioCreacionCtrls.sce | 39d4a347e9bad5b02648e71af6853f170f638ee3 | [] | no_license | jpgiron/ModelParkingLotPUJCali | 85b9a58629cf560591b6d1bbd0f7ab4eec08938d | 7e2ad78bd224fffdb20028bc3478cc062a5284c3 | refs/heads/master | 2020-12-30T10:36:47.055293 | 2014-08-20T05:33:36 | 2014-08-20T05:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 557 | sce | ScenarioCreacionCtrls.sce | run
send2pid -1 3 sSetUpFreeSpot |{param1|=0|,param2|=0|,param3|=10|}
send2pid -1 3 sSetUpTotalSpot |{param1|=0|,param2|=0|,param3|=20|}
send2pid -1 3 sAddZone |{param1|=0|,param2|=30|,param3|=20|}
send2pid -1 3 sCreateCtrlZone
send2pid -1 3 sAddZone |{param1|=1|,param2|=10|,param3|=10|}
send2pid -1 5 sIR1_Zone
send2pid -1 5 sIR2_Zone
send2pid -1 5 sLoopInductive_Zone
send2pid -1 3 sReqInfoCtrlZone
stop
include C:/Documents and Settings/Virtual Machine/Mis documentos/Dropbox/TD_JPGR/VERSION MODIFICADA/ModificadaFebrero252014/Scenario1.sce
|
9457654d66132e11013f0b5a38b1617be26abd16 | 676ffceabdfe022b6381807def2ea401302430ac | /library/Demos/LocalRegions/Tests/LocProject3D_Prism_Mod_Basis_P6_Q7.tst | c92a629c7ffd583f00065adf43635c3ee992329c | [
"MIT"
] | permissive | mathLab/ITHACA-SEM | 3adf7a49567040398d758f4ee258276fee80065e | 065a269e3f18f2fc9d9f4abd9d47abba14d0933b | refs/heads/master | 2022-07-06T23:42:51.869689 | 2022-06-21T13:27:18 | 2022-06-21T13:27:18 | 136,485,665 | 10 | 5 | MIT | 2019-05-15T08:31:40 | 2018-06-07T14:01:54 | Makefile | UTF-8 | Scilab | false | false | 578 | tst | LocProject3D_Prism_Mod_Basis_P6_Q7.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>Project3D Prism Modified basis P=6 Q=7</description>
<executable>LocProject</executable>
<parameters>-s prism -b Modified_A Modified_A Modified_B -o 6 6 6 -p 7 7 7 -c 0.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 0.0 0.0 1.0 0.0 0.5 0.0 1.0 0.5 1.0 1.0</parameters>
<metrics>
<metric type="L2" id="1">
<value tolerance="1e-8">5.16422e-12</value>
</metric>
<metric type="Linf" id="2">
<value tolerance="1e-8">2.08524e-11</value>
</metric>
</metrics>
</test>
|
49006b924531117110f4f351ef3a21b44cb077e3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1694/CH6/EX6.16/Ex6_16.sce | c1e7afbac7479aefefdbb9695be32ca153688da1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 535 | sce | Ex6_16.sce | clear;
clc;
printf("\nEx-6.16\n");
//page no.-191
//given
rho=1.54*10^-8;.......//resistivity in ohm m
E=100;...............//electric field in V/m
no=5.8*10^28;.........//no of free electrons per unit vol
m=9.11*10^-31;....//mass
e=1.6*10^-19;......//charge in C
tau=m/(no*e^2*rho)........//mean collision time
printf("\nmean collision time is 3.98*10^-14 s\n");
v=((e*E)/m)*tau........//drift velocity
printf("\ndrift velocity is 0.7 m/s\n");
mu=v/E.........//mobility
printf("\nmobility is 7*10^-3 m^2/Vs");
|
4ea81e5e195b4f6193b6e5542c7f7613dbaa8223 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1682/CH7/EX7.1/Exa7_1.sce | 6fac31bbe62891064fcb59ec33026c7cfe35fac7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 796 | sce | Exa7_1.sce | //Exa 7.1
clc;
clear;
close;
//Given data :
Ii=100000;//in Rs
Ar=30000;//in Rs
n=5;//in years
//Formula : (P/A,i,n)=(((1+i/100)^n)-1)/((i/100)*(1+i/100)^n)
// when i=10 %
i1=10;//in % per annum
PW1=-Ii+Ar*(((1+i1/100)^n)-1)/((i1/100)*(1+i1/100)^n);//in RS
disp(PW1,"The present worth for i=10% in RS. : ");
// when i=15 %
i2=15;//in % per annum
PW2=-Ii+Ar*(((1+i2/100)^n)-1)/((i2/100)*(1+i2/100)^n);//in RS
disp(PW2,"The present worth for i=15% in RS. : ");
// when i=18 %
i3=18;//in % per annum
PW3=-Ii+Ar*(((1+i3/100)^n)-1)/((i3/100)*(1+i3/100)^n);//in RS
disp(PW3,"The present worth for i=18% in RS. : ");
disp("Present worth for i=15% is suitable.");
i=15+(PW2-0)*(i3-i2)/(PW2-PW3);//in Rs.
disp(i,"Therefore, the rate of return for the new business in % per annum :"); |
d896898278f1b256f05068e631b9b2c7c841794f | b26cbe6bc3e201f030705aaf9eb82da94def231f | /tests/Morisita_RP-017.tst | 8f13a0edf39ef662d1cca143d868dcd4c31df1f3 | [] | no_license | RP-pbm/Recurrence-plot | f86c5cd85460661b01a609f8f4281d2cda6b4e07 | b5da95f9b30c1a924a002102219bf0a2ad47df2c | refs/heads/master | 2022-07-24T12:11:34.163543 | 2022-07-09T19:32:43 | 2022-07-09T19:32:43 | 92,934,698 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 31 | tst | Morisita_RP-017.tst | ../inputs/pops-10x2-rand-01.ssv |
47937f7d80c804e46a591062185b7f266d7f3633 | 8200349559e237758f87bc09a9eb4e0178932815 | /Magnet/Scilab/sph2cartvect.sce | 2d80b7c859ba37d35fcb32c943197b7d8d577cac | [] | no_license | rmorenoga/Testing | 6e50ea8e5f334b6d69f25e56f81fd7a505c012bb | 06713e61ababad3fb738ec4ac9ea771772585a12 | refs/heads/master | 2021-05-25T09:31:54.351782 | 2020-08-08T20:55:59 | 2020-08-08T20:55:59 | 35,949,400 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 366 | sce | sph2cartvect.sce | function [xcomp, ycomp, zcomp]=sph2cartvect(thetacomp, phicomp, rcomp,theta,phi)
xcomp = sin(theta).*cos(phi).*rcomp + cos(theta).*cos(phi).*thetacomp - sin(phi).*phicomp
ycomp = sin(theta).*sin(phi).*rcomp + cos(theta).*sin(phi).*thetacomp + cos(phi).*phicomp
zcomp = cos(theta).*rcomp - sin(theta).*thetacomp
endfunction
|
c0a195463be213c9b3fbbc5ef8ee9e974100e131 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/DEPENDENCIES/electrostatics.sci | ef708effe1aac9340349d4022f8dd9464f0c512d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 474 | sci | electrostatics.sci | //permitivity constant
Eo = 8.85*10^-12 //in C^2/N.m^2
//electric consatnt
k = 1/(4*%pi*Eo)
//charge on proton
e = 1.6*10^-19 //in C
//calculates coloumb force on two charged particle having charge q1, q2 seprated by distance equal to r
function [F] = coulomb(q1, q2, r)
F = k*q1*q2/r^2
endfunction
//calculates the potential due to a particle having charge q at a distance d from the particle
function [V] = EPotential(q, r)
V = k*q/r
endfunction |
f07042b5cb5ae02d702427289b6413ae96e893d0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH5/EX5.7/5_07.sce | 36eb61fb2ef720974c2320ffbdaf2a24b0a889dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 299 | sce | 5_07.sce | //Chapter 5, Problem 7, Figure 5.14
clc;
R1=3;
R2=6;
V=12;
//The total circuit resistance R is given by,
R=(R2*R1)/(R1+R2);
printf("Total circuit resistance = %f ohm\n\n\n",R);
//Current in the 3 ohm resistor is given by,
I1=V/R1;
printf("Current in the 3 ohm resistor = %f A\n\n\n",I1);
|
696ccabd2fcf383b16514b5d82f06fb4f07dcf2e | 449d555969bfd7befe906877abab098c6e63a0e8 | /858/CH2/EX2.9/example_9.sce | 025b0e2324e4ef9e38995f6b8fad9a6fda75fc3f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 199 | sce | example_9.sce | clc
clear
printf("example 2.9 page number 74\n\n")
molar_mass_BaCl2=208.3; //in gm
equivalent_H2SO4=0.144;
normality=equivalent_H2SO4*1000/28.8;
printf("Normality = %f N",normality)
|
14117be7c79823f9db4bd786465269b78e8bc770 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.3.1/macros/percent/%ris.sci | a3f541286971646d93de88d1ccbc5eed2c50f9f9 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 405 | sci | %ris.sci | function f2=%ris(i,j,f2,n)
// %ris(i,j,r,m)
//!
if type(i)==10|type(j)==10 then error(21),end
[l,c]=size(n),
if type(i)==4 then i=find(i),end
if type(j)==4 then j=find(j),end
if type(i)<>1 then i=horner(i,n1),end
if type(j)<>1 then j=horner(j,n2),end
if size(i)<>[-1,-1]; l=maxi([l,maxi(i)]); end;
if size(j)<>[-1,-1]; c=maxi([c,maxi(j)]); end;
d=ones(l,c);
n(i,j)=f2(2),d(i,j)=f2(3)
f2(2)=n;f2(3)=d;
|
b23deb187eb6ce4263dd3a6c2aac806b6bffd423 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1652/CH15/EX15.3/15_3.sce | 1b5de5bd4aa56594d3f9fda1dd9e57cc6dd0c2d1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 254 | sce | 15_3.sce | clc
//Initialization of variables
R1=312 //ohms
R2=1043 //ohms
c=0.01 //N
kdash=0.002768 //ohm^-1cm^-1
//calculations
k=kdash*R1
kdash2=k/R2
lambda=kdash2/(c/1000)
//results
printf("Equivalent conductance = %.1f ohm^-1 cm^2 equiv^-1",lambda)
|
ffde5213bbcd61814fed4692a1bae86f94ad258d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3782/CH7/EX7.10/Ex7_10.sce | 03ad862e1ec32346d19ebb0a2d54950f61eabaac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 188 | sce | Ex7_10.sce |
//
//given
l=10,b=15,
a1=l*b
ir=0.686
fr=9.976
n=2
m=100
marea=150//measured area
c=(marea/100)+10.710
area=m*c
printf("\n area of zero circle is %0.3f square centimeters',area)
|
089381ba9e7c1cd4c8772876d441645cfdc3faf0 | 4cff0a330e6c7bdfd8b9eee83a4e410964acf129 | /Sem4/Data Communication/Practical 6/pulse_code_modulation.sce | b06b80d877882b8a12ff7296de3083f0f2689ffc | [] | no_license | Shivamshaiv/University_LabCodes | 777f306ff577bc99bbc3fd5127ee6c92e7ed3ab9 | 450304a2d652e25501e1b49f8a2998b233c525a5 | refs/heads/master | 2022-03-06T07:29:43.820955 | 2019-11-11T10:02:12 | 2019-11-11T10:02:12 | 103,494,899 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,005 | sce | pulse_code_modulation.sce | f=2000
A=4
t=[0:0.01:%pi*f]
y=A*sin(t);
t_plot=[0:50:%pi*f]
y_plot=A*sin(t_plot)
subplot(311)
plot(t_plot,y_plot);
iarray=[];
rarray=[];
barray=[];
subplot(312)
for i=1:10000:length(t)
iarray=[iarray;i];
plot2d2([t(i),t(i)],[0,y(i)]);
end
for j=1:10000:length(t)
rarray=[rarray;round(y(j))+4];
end
for k=1:length(iarray)
temp=dec2bin(rarray(k))
barray=[barray;strtod(part(temp, 1))]
barray=[barray;strtod(part(temp, 2))]
barray=[barray;strtod(part(temp, 3))]
end
a=barray;
subplot(313)
for i=1:(length(a)-1)
if a(i)==1 then
plot2d2([i,i+(0.5)],[a(i),0]);
if a(i+1)==0 then
plot2d2([i+(0.5),i+1],[0,-1]);
else
plot2d2([i+(0.5),i+1],[0,a(i+1)]);
end
else
plot2d2([i,i+(0.5)],[-1,0]);
if a(i+1)==0 then
plot2d2([i+(0.5),i+1],[0,-1]);
else
plot2d2([i+(0.5),i+1],[0,a(i+1)]);
end
end
end |
dd49b019dc96d71730d28d951ccbcfed894dc773 | 6ad1ebc943baf5f5c7886270ec6f704f6e77fb47 | /Kalman Filter.sce | 302e804ae8eb3b01c86444a436204736d0966da7 | [] | no_license | phangiaanh/DSP-Report-PID-Controller-and-Kalman-Filter | aafa1da8cc8d2db0c26dfde192e56b9c9c08a6b6 | b46e6c511fc2f0dca6bbdde730276fd12dfd5c35 | refs/heads/master | 2020-12-08T13:47:31.215902 | 2020-01-10T08:10:28 | 2020-01-10T08:10:28 | 232,997,578 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,268 | sce | Kalman Filter.sce | clf
function [X, P]= KalmanFilter(zk, x1, p1, F, B, H, Q, R)
// Prediction
xkp = F * x1;
Pkp = F * p1 * F' + Q;
// Calculate residual and Kalman gain
res = zk - H * xkp;
K = Pkp * H' / (H * Pkp * H' + R);
// Update
//X(1:i) = x1;
X = xkp + K * res;
//P(1:i) = p1;
P = Pkp - K * H * Pkp;
endfunction
//Setup for simulation
// Construction of the sinusoid
w = %pi/4; // angular frequency
T = 0.1; // period
t = 0:T:500;
signal = cos(w*t);
// Sinusoid with noise
v=rand(t,"normal");
y=signal+v;
// Plot the sinusoid with noise
subplot(2, 1, 1);
plot(t,y);
xtitle("Sinusoid With Noise","t");
// System Parameter
n = 2;
F = [cos(w*T) -sin(w*T); sin(w*T) cos(w*T)];
B = 0;
H = [1 0];
p0 = [1000 0; 0 0];
R = 1;
Q = 0;
x0 = zeros(n, 1);
// Initialize for loop
x1 = zeros(2, length(t));
p1 = zeros(2, 2, length(t));
p1(:,:,1) = [1000 0; 0 0];
// Kalman filter
for i = 1:length(t) - 1
[x1(:,i+1),p1(:,:,i+1)] = KalmanFilter(y(i),x1(:,i),p1(:,:,i),F,B,H,Q,R);
end
// Plot the results (in red) to compare with the sinusoid (in green)
subplot(2, 1, 2);
plot(t, signal, "color", "green");
plot(t, x1(1,:), "color", "red");
xtitle("Comparison Between Sinusoid (green) and Extraction With Kalman Filter (red)","t");
|
82ddaeeea0bf57a8e4c502c6e33350ae409f8f19 | 120dc351395180b683fc694f76d006fc3f5475bd | /somethingnew.tst | c605766eea3e14f0eac8fdd9b236c0e92df37cfe | [] | no_license | elMukaddim/forexample | 4ea07d5c7838220aa731c902d17e7a4db434a483 | cbf4db25f161b3099125ce9d8b193667f4c8e3d2 | refs/heads/main | 2023-04-10T05:22:00.465752 | 2021-01-13T21:05:38 | 2021-01-13T21:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 26 | tst | somethingnew.tst | Merhaba benim adım Ahmet
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.