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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f5ca60342d4afe7957bb4573f71c4809aa76e40f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH12/EX12.10/example12_10.sce | 0cbccd65149450ea2022271f7d967d9522d27d11 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 536 | sce | example12_10.sce | clc
// Given that
t = 2.7 // half-life of Au(198) in days
m = 1e-6 // mass of sample in gm
T = 8 * 86400 // time in seconds
// Sample Problem 10 on page no. 12.35
printf("\n # PROBLEM 10 # \n")
printf("Standard formula used \n")
printf(" lambda = 0.693 / t_1/2 (Decay constant) \n A =lambda*N (Activity of sample) \n")
lambda = 0.693 / (t * 86400)
N = (m * 6.023e23) / 198 // by the formula (N = mass*Avogadro number/molar mass)
A_ = lambda * N
A = A_ * (1 / exp(lambda * T))
printf("\n Activity of sample is %e decays/sec.",A)
|
d99fac80486535272c87dd02c3e2f0e6b9fd3dd6 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/UW80JVR/ATWM1_Working_Memory_MEG_UW80JVR_Session2/ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run2.sce | 1711e65e0ec30f2c0b0b91d39e7c89c8f5d8dd77 | [] | 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,596 | 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 = 36;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 382; width = 382; color = 0, 0, 0;} frame1;
box { height = 369; width = 369; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 369; width = 369; color = 42, 42, 42;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# Start of experiment (MEG only) - sync with CTF software
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
} expStart;
time = 0;
duration = 1000;
code = "ExpStart";
port_code = 80;
};
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 10000;
#mri_pulse = 1;
code = "BaselinePre";
port_code = 91;
};
TEMPLATE "ATWM1_Working_Memory_MEG.tem" {
trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
43 62 292 292 399 125 2142 2992 2042 fixation_cross gabor_162 gabor_072 gabor_017 gabor_146 gabor_162 gabor_072_alt gabor_017_alt gabor_146 "2_1_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2050_gabor_patch_orientation_162_072_017_146_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_146_framed blank blank blank blank fixation_cross_target_position_1_4 "2_1_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_146_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1842 2992 2592 fixation_cross gabor_004 gabor_055 gabor_019 gabor_073 gabor_004 gabor_055_alt gabor_019_alt gabor_073 "2_2_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2600_gabor_patch_orientation_004_055_019_073_target_position_1_4_retrieval_position_1" gabor_143_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_2_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2042 2992 2142 fixation_cross gabor_092 gabor_040 gabor_146 gabor_073 gabor_092 gabor_040 gabor_146_alt gabor_073_alt "2_3_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2150_gabor_patch_orientation_092_040_146_073_target_position_1_2_retrieval_position_2" gabor_circ gabor_179_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_3_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 63 292 292 399 125 1892 2992 2242 fixation_cross gabor_132 gabor_168 gabor_063 gabor_045 gabor_132_alt gabor_168 gabor_063_alt gabor_045 "2_4_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_1900_3000_2250_gabor_patch_orientation_132_168_063_045_target_position_2_4_retrieval_position_1" gabor_084_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_4_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_084_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2142 2992 2392 fixation_cross gabor_014 gabor_144 gabor_033 gabor_102 gabor_014 gabor_144_alt gabor_033_alt gabor_102 "2_5_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2400_gabor_patch_orientation_014_144_033_102_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_055_framed blank blank blank blank fixation_cross_target_position_1_4 "2_5_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_055_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2192 2992 2492 fixation_cross gabor_021 gabor_091 gabor_047 gabor_074 gabor_021_alt gabor_091 gabor_047 gabor_074_alt "2_6_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2500_gabor_patch_orientation_021_091_047_074_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_002_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_6_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_002_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 2092 2992 2142 fixation_cross gabor_006 gabor_054 gabor_143 gabor_162 gabor_006_alt gabor_054 gabor_143 gabor_162_alt "2_7_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2150_gabor_patch_orientation_006_054_143_162_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_143_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_7_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 2242 2992 2092 fixation_cross gabor_041 gabor_084 gabor_011 gabor_130 gabor_041_alt gabor_084_alt gabor_011 gabor_130 "2_8_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2100_gabor_patch_orientation_041_084_011_130_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_011_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_8_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2092 2992 2492 fixation_cross gabor_022 gabor_051 gabor_073 gabor_093 gabor_022 gabor_051 gabor_073_alt gabor_093_alt "2_9_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2500_gabor_patch_orientation_022_051_073_093_target_position_1_2_retrieval_position_1" gabor_162_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_9_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_162_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1792 2992 2342 fixation_cross gabor_038 gabor_007 gabor_074 gabor_091 gabor_038_alt gabor_007 gabor_074_alt gabor_091 "2_10_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2350_gabor_patch_orientation_038_007_074_091_target_position_2_4_retrieval_position_2" gabor_circ gabor_007_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_10_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_007_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2242 2992 2592 fixation_cross gabor_132 gabor_046 gabor_103 gabor_063 gabor_132 gabor_046_alt gabor_103 gabor_063_alt "2_11_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2600_gabor_patch_orientation_132_046_103_063_target_position_1_3_retrieval_position_1" gabor_087_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_11_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_087_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 63 292 292 399 125 1792 2992 2042 fixation_cross gabor_175 gabor_034 gabor_142 gabor_009 gabor_175 gabor_034_alt gabor_142_alt gabor_009 "2_12_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_1800_3000_2050_gabor_patch_orientation_175_034_142_009_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_095_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_12_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_095_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 2042 2992 2492 fixation_cross gabor_069 gabor_004 gabor_121 gabor_086 gabor_069_alt gabor_004 gabor_121 gabor_086_alt "2_13_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2500_gabor_patch_orientation_069_004_121_086_target_position_2_3_retrieval_position_2" gabor_circ gabor_004_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_13_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_004_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 64 292 292 399 125 2242 2992 2592 fixation_cross gabor_063 gabor_086 gabor_027 gabor_132 gabor_063_alt gabor_086_alt gabor_027 gabor_132 "2_14_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_2250_3000_2600_gabor_patch_orientation_063_086_027_132_target_position_3_4_retrieval_position_1" gabor_063_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_14_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_063_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1942 2992 2342 fixation_cross gabor_153 gabor_169 gabor_048 gabor_082 gabor_153_alt gabor_169 gabor_048_alt gabor_082 "2_15_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2350_gabor_patch_orientation_153_169_048_082_target_position_2_4_retrieval_position_2" gabor_circ gabor_123_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_15_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_123_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1742 2992 2292 fixation_cross gabor_066 gabor_135 gabor_115 gabor_025 gabor_066_alt gabor_135 gabor_115 gabor_025_alt "2_16_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2300_gabor_patch_orientation_066_135_115_025_target_position_2_3_retrieval_position_2" gabor_circ gabor_135_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_16_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_135_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1742 2992 2492 fixation_cross gabor_084 gabor_064 gabor_105 gabor_153 gabor_084 gabor_064_alt gabor_105_alt gabor_153 "2_17_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2500_gabor_patch_orientation_084_064_105_153_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_153_framed blank blank blank blank fixation_cross_target_position_1_4 "2_17_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_153_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 2242 2992 2192 fixation_cross gabor_178 gabor_059 gabor_145 gabor_104 gabor_178 gabor_059 gabor_145_alt gabor_104_alt "2_18_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2200_gabor_patch_orientation_178_059_145_104_target_position_1_2_retrieval_position_1" gabor_178_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_18_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_178_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2192 2992 2392 fixation_cross gabor_143 gabor_120 gabor_091 gabor_010 gabor_143_alt gabor_120_alt gabor_091 gabor_010 "2_19_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2400_gabor_patch_orientation_143_120_091_010_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_059_framed blank blank blank blank fixation_cross_target_position_3_4 "2_19_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_059_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 64 292 292 399 125 1942 2992 2042 fixation_cross gabor_150 gabor_101 gabor_044 gabor_083 gabor_150 gabor_101 gabor_044_alt gabor_083_alt "2_20_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_1950_3000_2050_gabor_patch_orientation_150_101_044_083_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_083_framed blank blank blank blank fixation_cross_target_position_1_2 "2_20_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_083_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2042 2992 2542 fixation_cross gabor_057 gabor_088 gabor_174 gabor_115 gabor_057_alt gabor_088 gabor_174_alt gabor_115 "2_21_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2550_gabor_patch_orientation_057_088_174_115_target_position_2_4_retrieval_position_2" gabor_circ gabor_041_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_21_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2192 2992 1942 fixation_cross gabor_008 gabor_027 gabor_150 gabor_045 gabor_008_alt gabor_027_alt gabor_150 gabor_045 "2_22_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_1950_gabor_patch_orientation_008_027_150_045_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_22_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_093_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1842 2992 1992 fixation_cross gabor_065 gabor_141 gabor_172 gabor_085 gabor_065 gabor_141_alt gabor_172 gabor_085_alt "2_23_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2000_gabor_patch_orientation_065_141_172_085_target_position_1_3_retrieval_position_1" gabor_112_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_23_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 63 292 292 399 125 2142 2992 1992 fixation_cross gabor_150 gabor_168 gabor_085 gabor_107 gabor_150 gabor_168 gabor_085_alt gabor_107_alt "2_24_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_2150_3000_2000_gabor_patch_orientation_150_168_085_107_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_130_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_24_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_130_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2242 2992 1992 fixation_cross gabor_079 gabor_124 gabor_048 gabor_019 gabor_079_alt gabor_124 gabor_048_alt gabor_019 "2_25_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2000_gabor_patch_orientation_079_124_048_019_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_158_framed blank blank blank blank fixation_cross_target_position_2_4 "2_25_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_158_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1892 2992 2192 fixation_cross gabor_068 gabor_027 gabor_096 gabor_177 gabor_068 gabor_027_alt gabor_096 gabor_177_alt "2_26_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2200_gabor_patch_orientation_068_027_096_177_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_050_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_26_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_050_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 2192 2992 2092 fixation_cross gabor_002 gabor_179 gabor_149 gabor_069 gabor_002_alt gabor_179 gabor_149_alt gabor_069 "2_27_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2100_gabor_patch_orientation_002_179_149_069_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_069_framed blank blank blank blank fixation_cross_target_position_2_4 "2_27_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_069_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1942 2992 2192 fixation_cross gabor_121 gabor_168 gabor_035 gabor_016 gabor_121 gabor_168_alt gabor_035 gabor_016_alt "2_28_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1950_3000_2200_gabor_patch_orientation_121_168_035_016_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_035_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_28_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_035_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1892 2992 2142 fixation_cross gabor_151 gabor_006 gabor_169 gabor_036 gabor_151_alt gabor_006 gabor_169_alt gabor_036 "2_29_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2150_gabor_patch_orientation_151_006_169_036_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_036_framed blank blank blank blank fixation_cross_target_position_2_4 "2_29_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_036_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1892 2992 2442 fixation_cross gabor_064 gabor_010 gabor_091 gabor_154 gabor_064 gabor_010_alt gabor_091 gabor_154_alt "2_30_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2450_gabor_patch_orientation_064_010_091_154_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_091_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_30_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_091_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1892 2992 1942 fixation_cross gabor_116 gabor_040 gabor_091 gabor_149 gabor_116_alt gabor_040 gabor_091 gabor_149_alt "2_31_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_1950_gabor_patch_orientation_116_040_091_149_target_position_2_3_retrieval_position_2" gabor_circ gabor_178_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_31_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_178_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 63 292 292 399 125 2192 2992 1942 fixation_cross gabor_144 gabor_166 gabor_112 gabor_038 gabor_144_alt gabor_166 gabor_112 gabor_038_alt "2_32_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_2200_3000_1950_gabor_patch_orientation_144_166_112_038_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_088_framed blank blank blank blank fixation_cross_target_position_2_3 "2_32_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_088_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 2142 2992 1892 fixation_cross gabor_158 gabor_046 gabor_126 gabor_016 gabor_158_alt gabor_046 gabor_126_alt gabor_016 "2_33_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_1900_gabor_patch_orientation_158_046_126_016_target_position_2_4_retrieval_position_2" gabor_circ gabor_046_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_33_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_046_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2192 2992 2142 fixation_cross gabor_140 gabor_094 gabor_058 gabor_078 gabor_140 gabor_094_alt gabor_058 gabor_078_alt "2_34_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2150_gabor_patch_orientation_140_094_058_078_target_position_1_3_retrieval_position_1" gabor_005_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_34_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1792 2992 2242 fixation_cross gabor_119 gabor_087 gabor_048 gabor_165 gabor_119_alt gabor_087 gabor_048 gabor_165_alt "2_35_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2250_gabor_patch_orientation_119_087_048_165_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_35_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_087_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2042 2992 2092 fixation_cross gabor_172 gabor_083 gabor_015 gabor_056 gabor_172 gabor_083_alt gabor_015 gabor_056_alt "2_36_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2100_gabor_patch_orientation_172_083_015_056_target_position_1_3_retrieval_position_1" gabor_034_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_36_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_034_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1742 2992 2092 fixation_cross gabor_027 gabor_090 gabor_133 gabor_063 gabor_027_alt gabor_090 gabor_133_alt gabor_063 "2_37_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2100_gabor_patch_orientation_027_090_133_063_target_position_2_4_retrieval_position_2" gabor_circ gabor_090_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_37_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 64 292 292 399 125 1942 2992 1892 fixation_cross gabor_178 gabor_133 gabor_066 gabor_043 gabor_178 gabor_133_alt gabor_066 gabor_043_alt "2_38_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_1950_3000_1900_gabor_patch_orientation_178_133_066_043_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_043_framed blank blank blank blank fixation_cross_target_position_1_3 "2_38_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_043_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2242 2992 2392 fixation_cross gabor_172 gabor_139 gabor_032 gabor_061 gabor_172 gabor_139_alt gabor_032 gabor_061_alt "2_39_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2400_gabor_patch_orientation_172_139_032_061_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_082_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_39_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_082_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1992 2992 2042 fixation_cross gabor_155 gabor_047 gabor_029 gabor_134 gabor_155 gabor_047_alt gabor_029_alt gabor_134 "2_40_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2050_gabor_patch_orientation_155_047_029_134_target_position_1_4_retrieval_position_1" gabor_155_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_40_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_155_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 64 292 292 399 125 2142 2992 1892 fixation_cross gabor_140 gabor_079 gabor_099 gabor_032 gabor_140 gabor_079_alt gabor_099 gabor_032_alt "2_41_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_2150_3000_1900_gabor_patch_orientation_140_079_099_032_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_032_framed blank blank blank blank fixation_cross_target_position_1_3 "2_41_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_032_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1842 2992 2542 fixation_cross gabor_061 gabor_040 gabor_168 gabor_002 gabor_061 gabor_040_alt gabor_168_alt gabor_002 "2_42_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2550_gabor_patch_orientation_061_040_168_002_target_position_1_4_retrieval_position_1" gabor_111_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_42_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_111_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 2042 2992 2192 fixation_cross gabor_137 gabor_158 gabor_068 gabor_025 gabor_137 gabor_158 gabor_068_alt gabor_025_alt "2_43_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2200_gabor_patch_orientation_137_158_068_025_target_position_1_2_retrieval_position_2" gabor_circ gabor_158_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_43_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_158_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1992 2992 2092 fixation_cross gabor_148 gabor_063 gabor_097 gabor_030 gabor_148 gabor_063_alt gabor_097_alt gabor_030 "2_44_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2000_3000_2100_gabor_patch_orientation_148_063_097_030_target_position_1_4_retrieval_position_1" gabor_008_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_44_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_008_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1842 2992 2442 fixation_cross gabor_145 gabor_056 gabor_177 gabor_020 gabor_145 gabor_056 gabor_177_alt gabor_020_alt "2_45_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2450_gabor_patch_orientation_145_056_177_020_target_position_1_2_retrieval_position_2" gabor_circ gabor_056_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_45_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_056_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1842 2992 2042 fixation_cross gabor_180 gabor_047 gabor_094 gabor_028 gabor_180 gabor_047_alt gabor_094 gabor_028_alt "2_46_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2050_gabor_patch_orientation_180_047_094_028_target_position_1_3_retrieval_position_1" gabor_135_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_46_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_135_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 64 292 292 399 125 1942 2992 2242 fixation_cross gabor_022 gabor_177 gabor_160 gabor_089 gabor_022 gabor_177_alt gabor_160 gabor_089_alt "2_47_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_1950_3000_2250_gabor_patch_orientation_022_177_160_089_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_089_framed blank blank blank blank fixation_cross_target_position_1_3 "2_47_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_089_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1992 2992 2292 fixation_cross gabor_005 gabor_140 gabor_059 gabor_082 gabor_005_alt gabor_140_alt gabor_059 gabor_082 "2_48_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2000_3000_2300_gabor_patch_orientation_005_140_059_082_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_033_framed blank blank blank blank fixation_cross_target_position_3_4 "2_48_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_033_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1792 2992 2292 fixation_cross gabor_056 gabor_120 gabor_172 gabor_002 gabor_056 gabor_120_alt gabor_172 gabor_002_alt "2_49_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2300_gabor_patch_orientation_056_120_172_002_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_172_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_49_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_172_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1792 2992 2292 fixation_cross gabor_068 gabor_111 gabor_095 gabor_053 gabor_068 gabor_111_alt gabor_095 gabor_053_alt "2_50_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2300_gabor_patch_orientation_068_111_095_053_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_095_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_50_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 63 292 292 399 125 2092 2992 2442 fixation_cross gabor_097 gabor_160 gabor_046 gabor_079 gabor_097 gabor_160_alt gabor_046 gabor_079_alt "2_51_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_2100_3000_2450_gabor_patch_orientation_097_160_046_079_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_129_framed blank blank blank blank fixation_cross_target_position_1_3 "2_51_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_129_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1992 2992 2542 fixation_cross gabor_089 gabor_178 gabor_011 gabor_129 gabor_089_alt gabor_178_alt gabor_011 gabor_129 "2_52_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2550_gabor_patch_orientation_089_178_011_129_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_011_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_52_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2092 2992 2242 fixation_cross gabor_027 gabor_114 gabor_050 gabor_160 gabor_027_alt gabor_114_alt gabor_050 gabor_160 "2_53_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2250_gabor_patch_orientation_027_114_050_160_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_095_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_53_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1742 2992 2592 fixation_cross gabor_123 gabor_100 gabor_066 gabor_045 gabor_123_alt gabor_100_alt gabor_066 gabor_045 "2_54_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2600_gabor_patch_orientation_123_100_066_045_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_180_framed blank blank blank blank fixation_cross_target_position_3_4 "2_54_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_180_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1942 2992 2392 fixation_cross gabor_073 gabor_016 gabor_055 gabor_124 gabor_073_alt gabor_016 gabor_055 gabor_124_alt "2_55_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1950_3000_2400_gabor_patch_orientation_073_016_055_124_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_055_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_55_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_055_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1742 2992 1992 fixation_cross gabor_040 gabor_097 gabor_022 gabor_080 gabor_040_alt gabor_097 gabor_022_alt gabor_080 "2_56_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2000_gabor_patch_orientation_040_097_022_080_target_position_2_4_retrieval_position_2" gabor_circ gabor_097_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_56_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_097_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1892 2992 2292 fixation_cross gabor_031 gabor_116 gabor_139 gabor_083 gabor_031_alt gabor_116 gabor_139_alt gabor_083 "2_57_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2300_gabor_patch_orientation_031_116_139_083_target_position_2_4_retrieval_position_2" gabor_circ gabor_116_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_57_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_116_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 64 292 292 399 125 1992 2992 2342 fixation_cross gabor_113 gabor_049 gabor_136 gabor_089 gabor_113_alt gabor_049_alt gabor_136 gabor_089 "2_58_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_2000_3000_2350_gabor_patch_orientation_113_049_136_089_target_position_3_4_retrieval_position_2" gabor_circ gabor_049_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_58_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_049_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1842 2992 2142 fixation_cross gabor_052 gabor_115 gabor_008 gabor_135 gabor_052 gabor_115_alt gabor_008_alt gabor_135 "2_59_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2150_gabor_patch_orientation_052_115_008_135_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_135_framed blank blank blank blank fixation_cross_target_position_1_4 "2_59_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_135_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2092 2992 2192 fixation_cross gabor_042 gabor_071 gabor_132 gabor_113 gabor_042_alt gabor_071 gabor_132 gabor_113_alt "2_60_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2200_gabor_patch_orientation_042_071_132_113_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_179_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_60_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1792 2992 1992 fixation_cross gabor_076 gabor_045 gabor_161 gabor_115 gabor_076 gabor_045_alt gabor_161 gabor_115_alt "2_61_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_076_045_161_115_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_161_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_61_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_161_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 1992 2992 1892 fixation_cross gabor_130 gabor_015 gabor_064 gabor_081 gabor_130_alt gabor_015 gabor_064_alt gabor_081 "2_62_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_130_015_064_081_target_position_2_4_retrieval_position_2" gabor_circ gabor_015_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_62_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 63 292 292 399 125 1742 2992 1942 fixation_cross gabor_122 gabor_178 gabor_096 gabor_147 gabor_122_alt gabor_178 gabor_096_alt gabor_147 "2_63_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_1750_3000_1950_gabor_patch_orientation_122_178_096_147_target_position_2_4_retrieval_position_1" gabor_072_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_63_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_072_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 62 292 292 399 125 2092 2992 2242 fixation_cross gabor_075 gabor_140 gabor_055 gabor_099 gabor_075 gabor_140 gabor_055_alt gabor_099_alt "2_64_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2250_gabor_patch_orientation_075_140_055_099_target_position_1_2_retrieval_position_1" gabor_075_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_64_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_075_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2142 2992 2442 fixation_cross gabor_067 gabor_028 gabor_048 gabor_133 gabor_067_alt gabor_028 gabor_048_alt gabor_133 "2_65_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_067_028_048_133_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_088_framed blank blank blank blank fixation_cross_target_position_2_4 "2_65_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_088_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 63 292 292 399 125 1842 2992 1942 fixation_cross gabor_073 gabor_006 gabor_138 gabor_023 gabor_073 gabor_006_alt gabor_138_alt gabor_023 "2_66_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_1850_3000_1950_gabor_patch_orientation_073_006_138_023_target_position_1_4_retrieval_position_2" gabor_circ gabor_053_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_66_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_053_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1742 2992 2342 fixation_cross gabor_087 gabor_118 gabor_004 gabor_046 gabor_087 gabor_118_alt gabor_004_alt gabor_046 "2_67_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2350_gabor_patch_orientation_087_118_004_046_target_position_1_4_retrieval_position_1" gabor_134_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_67_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_134_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 2042 2992 1892 fixation_cross gabor_101 gabor_179 gabor_159 gabor_117 gabor_101 gabor_179_alt gabor_159_alt gabor_117 "2_68_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_1900_gabor_patch_orientation_101_179_159_117_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_071_framed blank blank blank blank fixation_cross_target_position_1_4 "2_68_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_071_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 64 292 292 399 125 1792 2992 2342 fixation_cross gabor_027 gabor_091 gabor_002 gabor_062 gabor_027 gabor_091_alt gabor_002 gabor_062_alt "2_69_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_1800_3000_2350_gabor_patch_orientation_027_091_002_062_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_062_framed blank blank blank blank fixation_cross_target_position_1_3 "2_69_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_062_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
43 61 292 292 399 125 1892 2992 2542 fixation_cross gabor_140 gabor_077 gabor_003 gabor_162 gabor_140 gabor_077_alt gabor_003_alt gabor_162 "2_70_Encoding_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2550_gabor_patch_orientation_140_077_003_162_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_113_framed blank blank blank blank fixation_cross_target_position_1_4 "2_70_Retrieval_Working_Memory_MEG_P5_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_113_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 5000;
code = "BaselinePost";
port_code = 92;
}; |
bc4939705bce07d632c7505fa41cf7bbef02c915 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH10/EX10.15/Ex10_15.sce | ccaeda1af6eead3d72bfbe0070437a82ee7bf60e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex10_15.sce | //Example 10.15
m=50*10^-3;//Mass of the disc (kg)
v=30;//Initial velocity of the disc (m/s)
M=2;//Mass of the stick (kg)
r=1.2;//Length of the stick (m)
I_prime=(m+M/3)*r^2;//Moment of inertia of the stick and disc stuck together, See Equation 10.128 (kg.m^2)
omega_prime=m*v*r/I_prime;//Angular velocity (rad/s)
printf('a.Angular velocity of the two (stick and disc) after collision = %0.2f rad/s',omega_prime)
KE=(1/2)*m*v^2;//Initial kinetic energy (translational) (J)
printf('\nb.Initial kinetic energy = %0.1f J',KE)
KE_prime=(1/2)*I_prime*omega_prime^2;//Final kinetic energy (rotational) (J)
printf('\n Final kinetic energy = %0.2f J',KE_prime)
p=m*v;//Linear momentum before collision (kg.m/s)
printf('\nc.Total linear momentum before collision = %0.2f kg.m/s',p)
v_prime=r*omega_prime;//New velocity of the disk (m/s)
p_prime=(m+M/2)*v_prime;//Linear momentum after collision (kg.m/s)
printf('\n Total linear momentum after collision = %0.2f kg.m/s',p_prime)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|
6ff34d8e6d0350db70b2d96ce8a6160220bfc072 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3792/CH2/EX2.14/Ex2_14.sce | 2aefb65404c55207f549737b944fe1a905f82ba9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 791 | sce | Ex2_14.sce | // Example 2_14
clc;funcprot(0);
// Given data
v_A=45;// mi/hr
v_B=30;// mi/hr
a_A=3;// ft/sec^2
theta_1=30;// degree
theta_2=60;// degree
rho=440;// The radius of curvature in ft
// Calculation
// Velocity
v_A=v_A*(5280/3600);// ft/sec
v_B=v_B*(5280/3600);// ft/sec
// By the application of the law of cosines and the law of sines gives
v_BA=sqrt(v_A^2+v_B^2-(2*v_A*v_B*cosd(theta_2)));// ft/sec
theta=asind((v_B*sind(theta_2))/v_BA);// degree
// Acceleration
a_B=(v_B)^2/rho;// ft/sec^2
a_BAx=a_B*cosd(theta_1)-a_A;// ft/sec^2
a_BAy=a_B*sind(theta_1);// ft/sec^2
a_BA=sqrt(a_BAx^2+a_BAy^2);// ft/sec^2
beta=asind((a_B*sind(theta_1))/a_BA);// degree
printf("\nv_BA=%2.1f ft/sec \ntheta=%2.1f degree \na_AB=%1.2f ft/sec^2 \nbeta=%2.1f degree",v_BA,theta,a_BA,beta);
|
992c3147375d2621a24c619faa0982a54e46830f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1631/CH3/EX3.8/Ex3_8.sce | d6a5b9106423e78a3b6679b2555410607b6e049e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 300 | sce | Ex3_8.sce | //Caption: Transmission Bandwidth
//Example 3.8
//page no 131
//Calculate Transmission Bandwidth
//given
clc;
clear;
fm=3*10^3;
fs=8*10^3;// sampling frequncy
Ts=1/fs;
t=0.1*Ts;
BW=1/(2*t);//Bandwidth
disp("Transmission Bandwidth of PAM signal is ");
disp("kHz",BW*10^-3,"BW>=");
|
2fe521dc86e640611cac285801412f975f506240 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpicscifiles6/Objsurf.sci | 15543b8a33f92c5a1706bc65e6efff36c3e9600b | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,582 | sci | Objsurf.sci | // s : 2014.06.22
// e : 2014.07.18
// Objsurf, Objthicksurf : Range argments changed
// 2014.09.07 Objjoin added
function Out=Objsurf(varargin)
global OBJFIGNO OBJJOIN
Args=varargin;
Nargs=length(Args);
Sel=Args(Nargs); Nargs=Nargs-1;
Rf=Args(1);
N=2;
Mg=0; Ng=0;
if type(Args(N))==1 then
if length(Args(N))>2 then
U=Args(N);
Mg=length(U)-1;
N=N+1;
elseif length(Args(N))==2 then
Intab=Args(N);
Ag=Intab(1); Bg=Intab(2);
N=N+1;
else
Ag=Args(N); Bg=Args(N+1);
N=N+2;
end;
else // when type(Args(N))==10
Tmp0=Args(N);
Tmp=mtlb_findstr("=",Tmp0);
if length(Tmp)>0 then
Tmp0=part(Tmp0,(Tmp+1):length(Tmp0));
end;
Intab=evstr(Tmp0);
Ag=Intab(1); Bg=Intab(2);
N=N+1;
end;
if type(Args(N))==1 then
if length(Args(N))>2 then
V=Args(N);
Ng=length(V)-1;
N=N+1;
elseif length(Args(N))==2 then
Intab=Args(N);
Cg=Intab(1); Dg=Intab(2);
N=N+1;
else
Cg=Args(N); Dg=Args(N+1);
N=N+2;
end;
else // when type(Args(N))==10
Tmp0=Args(N);
Tmp=mtlb_findstr("=",Tmp0);
if length(Tmp)>0 then
Tmp0=part(Tmp0,(Tmp+1):length(Tmp0));
end;
Intab=evstr(Tmp0);
Cg=Intab(1); Dg=Intab(2);
N=N+1;
end;
if Mg==0 then
Mg=Args(N);
N=N+1;
U=[];
for J=1:(Mg+1)
U=[U,Ag+(J-1)/Mg*(Bg-Ag)];
end;
end;
if Ng==0 then
Ng=Args(N);
V=[];
for K=1:(Ng+1)
V=[V,Cg+(K-1)/Ng*(Dg-Cg)];
end;
end;
Objname(); // // 140907
PL=list();
for J=1:(Mg+1)
for K=1:(Ng+1)
P=Rf(U(J),V(K));
Np=Writeobjpoint(P)
PL=lstcat(PL,list([P,Np]));
end;
end;
Idx=1:(Ng+1):(Ng+1)*Mg+1;
Pus=Mixsub(Idx,PL);
Idx=(Ng+1):(Ng+1):(Ng+1)*(Mg+1);
Pue=Mixsub(Idx,PL);
Idx=1:1:Ng+1;
Pvs=Mixsub(Idx,PL);
Idx=(Ng+1)*Mg+1:1:(Ng+1)*(Mg+1);
Pve=Mixsub(Idx,PL);
Printobjstr("vt 0 0");
Printobjstr("vt 1 0");
Printobjstr("vt 1 1");
Printobjstr("vt 0 1");
for J=1:Mg
for K=1:Ng
P1=sprintf("%1d",Op(4,PL((Ng+1)*(J-1)+K)))
P2=sprintf("%1d",Op(4,PL((Ng+1)*J+K)))
P3=sprintf("%1d",Op(4,PL((Ng+1)*J+K+1)))
P4=sprintf("%1d",Op(4,PL((Ng+1)*(J-1)+K+1)))
N1=""; N2=""; N3=""; N4="";
if Sel=="+" then // 6.22
Str="f "+P1+"/1/"+N1+" "+P2+"/2/"+N2+" ";
Str=Str+P3+"/3/"+N3+" "+P4+"/4/"+N4;
else
Str="f "+P1+"/1/"+N1+" "+P4+"/4/"+N4+" ";
Str=Str+P3+"/3/"+N3+" "+P2+"/2/",N2;
end;
Printobjstr(Str)
end;
end;
Out=list(U,V,Pus,Pue,Pvs,Pve)
endfunction
|
3adb43fe229acb1afda111acd15806309270fab1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH6/EX6.4/ex6_4.sce | f512b3a6f059050e6d8d385b85910bfa849a97da | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 348 | sce | ex6_4.sce | // Exa 6.4
clc;
clear;
close;
format('v',5)
// Given data
V=250;// full scale voltage reading in V
Rm = 2;// in ohm
Rsh = 2;// in m ohm
Rsh = Rsh * 10^-3;// in ohm
R = 5000;// in ohm
Im = V/(Rm+R);// in A
Ish = (Im*Rm)/Rsh;// in A
// Current range of instrument
I = Im+Ish;// in A
disp(I,"The current range of instrument in A is");
|
ef9c8b43c458a83c2f84d7b944137bb045a63f1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /132/CH7/EX7.11/Example7_11.sce | 3c9a0e3eaf9460f94d67026a5c9d298abfe161e8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 624 | sce | Example7_11.sce | //Example 7.11
//Program to Calculate DC Bias Voltages and Currents
clear;
clc ;
close ;
//Given Circuit Data
Vcc=12; //V
Vbe=0.3; //V
R1=40*10^3; //Ohms
R2=5*10^3; //Ohms
Re=1*10^3; //Ohms
Rc=5*10^3; //Ohms
Beeta=60;
//Calculation
Vb=(R2/(R1+R2))*Vcc;
Ve=Vb-Vbe;
Ie=Ve/Re;
Ic=Ie;
Vc=Vcc-Ic*Rc;
Vce=Vc-Ve;
//Displaying The Results in Command Window
printf("The Different Parameters are :");
printf("\n\t Vb = %f V .",Vb);
printf("\n\t Ve = %f V .",Ve);
printf("\n\t Ie = %f mA .",Ie/10^(-3));
printf("\n\t Ic = %f mA .",Ic/10^(-3));
printf("\n\t Vc = %f V .",Vc);
printf("\n\t Vce = %f V .",Vce); |
3724448f4dc2b348813233f8383c5669c31944ac | 449d555969bfd7befe906877abab098c6e63a0e8 | /3809/CH1/EX1.8/EX1_8.sce | 0fc08ec2bb2862d1375541af5ef5082bd5bd48bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 395 | sce | EX1_8.sce | //Chapter 1, Example 1.8
clc
//Initialisation
v1=15 //voltage
v2=3 //voltage
r1=1000 //resistance in ohm
r2=500 //resistance in ohm
//Calculation
v=v2+((v1-v2)*(r2/(r1+r2))) //voltage
//Results
printf("Voltage, V = %d V",v)
|
4dfa8f0b25b042cb1132d443e5fc6483ed8b71b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /620/CH22/EX22.4/example22_4.sce | 182a79010b97c7eea50322b6d1ef99c241be07cb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 420 | sce | example22_4.sce | c=5*10^(-6);
r=10*10^3;
v=12;
disp("Part a");
t=r*c;
disp("the time constant (in ms) of the circuit is"); disp(t*10^3);
disp("Part b");
rate=v/t;
disp("initial rate of rise of capacitor voltage (in V/s) is"); disp(rate);
disp("Part c");
v1=0.63*v;
disp("the capacitor voltage (in V) after one time constant is"); disp(v1);
disp("Part d");
t1=5*t;
disp("time taken (in ms) to reach 12 V is"); disp(t1*10^3); |
b57a5f3b160f6daf6af2bf9d8b7674588e3485b5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1511/CH1/EX1.5/ex1_5.sce | 0da8e9cbea2b62aa4cc38af810a2ccbbfbd01769 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 297 | sce | ex1_5.sce | // Example 1.5 page no-19
clear
clc
B=0.03 //wb/m^2
m=9.1*10^-31 //kg
V=2*10^5
e=1.6*10^-19 //C
R=(2*m*V/e)^(1/2)
R=floor(R*100/B)
printf("Radius of the circle, R=%.0f cm",R)
//OAC is a right angled triangle
oa=R
oc=3
ac=sqrt((oa)^2-(oc)^2)
printf("\n AD=%d cm",oa-ac)
|
82d2c13aa973824d781008d74f2e37c88fa913be | 449d555969bfd7befe906877abab098c6e63a0e8 | /1394/CH17/EX17.5.1/Ex17_5_1.sce | d992de91a05a1a27e6ab1bb76b379be62d608540 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 342 | sce | Ex17_5_1.sce |
clc
//intitialization of variables
d = 5// cm
v = 200 // cm/sec
nu = 0.01 // cm^2/sec
D = 3.2*10^-5 // cm^2/sec
l = 30*10^-4 // cm
//Calculations
Re = d*v/nu // Flow is turbulent
E = d*v/2 // cm^2/sec
tou1 = (d^2)/(4*E)// sec
tou2 = (l^2)/(4*D)
tou = tou1 + tou2 // sec
//Results
printf("The relaxation time is %.2f sec",tou)
|
8cb98677fcb6efd12ea9674784d19b285a2d646c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1109/CH14/EX14.10/14_10.sce | 277024d17279b38cd1ed912214cbc14cd60bfcc5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,136 | sce | 14_10.sce | clear;
clc;
fc=1.2*(10^3);fi=1.1*(10^3);Rk=600; //fi=frequency at which infinite attenuation occrus
L0=Rk/(4*%pi*fc);
C0=1/(4*%pi*fc*Rk);
printf("The elements of the constant-K H.P. are:\n");
printf(" L = %f mH\n",fix(L0*(10^3)*100)/100);
printf(" C = %f microfarads\n\n",fix(C0*(10^6)*100)/100);
m1=round(sqrt(1-((fi/fc)^2))*10)/10;
C1=2*C0/m1;
L1=L0/m1;
C2=4*m1*C0/(1-(m1*m1));
printf("The elements of the m-derived H.P.T. filter are:\n");
printf(" 2C/m = %f microfarads\n",fix(C1*(10^6)*100)/100);
printf(" L/m = %f mH\n",round(L1*(10^3)*10)/10);
printf(" 4mC/(1-m^2) = %f microfarads\n\n",fix(C2*(10^6)*100)/100);
m2=0.6;
C3=2*C0/m2;
L2=L0/m2;
C4=4*m2*C0/(1-(m2*m2));
printf("The elements of the terminating half section m-derived H.P.T. filter are:\n");
printf(" 2C/m = %f microfarads\n",round(C3*(10^6)*100)/100);
printf(" L/m = %f mH\n",round(L2*(10^3)*100)/100);
printf(" 4mC/(1-m^2) = %f microfarads\n\n",round(C4*(10^6)*100)/100);
printf("The complete composite filter is constructed by using the constant-K in cascade with the sharp-cut off m-derived section and terminating half section");
|
21f06bb487751ff9e05b195a05b1802c5479d628 | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/DEPENDENCIES/5_3_1.sci | 8184549eeb169987dde1f9f02c2f8ae29e8f6856 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 80 | sci | 5_3_1.sci | T= -150.8 + 273.2 //k
Vcap= 3 /2 //L/mol
Tc=126.2 //k
Pc=33.5 //atm
w=0.040 |
f7d4ae0c1e970a0c407ad5215016a4a5f0accac4 | 6577008921680ddcc005d6cd1fbfc6e580f04740 | /Code/euler.sci | 78b633e9866aa803245525dc62820f80ab8a2162 | [] | no_license | bagasadif/Program-Scilab | a9539ddf00a5c75ca844d93e9b35309427a28722 | 94d09657ae48d130184c23c34af9a0f4a1a2ab18 | refs/heads/master | 2023-02-19T19:24:24.042558 | 2021-01-24T22:27:39 | 2021-01-24T22:27:39 | 332,569,383 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 670 | sci | euler.sci | /*
Author : Bagas Adi Firdaus
Deskripsi : Program PDB Metode Euler
*/
printf('\nProgram PDB Metode Euler\n');
b=input('Masukkan nilai t yang akan dicari x(t) nya = ');
h=input('Masukkan nilai h = ');
t0 = 0;
x0 = 0;
y0 = 1;
x = x0;
y = y0;
t = t0;
n = (b-t0)/h;
function turunanx=f1(t, x, y)
turunanx = x*y + t;
endfunction
function turunany=f2(t, x)
turunany = x - t;
endfunction
printf('n\tt\tx\t\ty\n');
printf('%d\t%.2f\t%.8f\t%.8f\n',0 , t, x, y);
for r=1:n
tempx = x;
x = x + h*f1(t,x,y);
y = y + h*f2(t,tempx);
t = t+h;
printf('%d\t%.2f\t%.8f\t%.8f\n',r , t, x, y);
end
hasil=x;
printf('Jadi nilai x(%.2f) adalah : %.8f',b, x);
|
c153e9f56782015b0dddc04d8f508b2db3361eb4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1061/CH4/EX4.1/Ex4_1.sce | 53510486eb24f1019707e5ac1eba74edbc528e03 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 713 | sce | Ex4_1.sce | //Ex:4.1
clc;
clear;
close;
Pi=100*10^-6;// mean optical power in watt
Po=2*10^-6;// output mean power in watt
L=6;// length in km
L1=8;// length in km
as=10*log(Pi/Po)/log(10);// signal attenuation in dB
as1=as/L;// signal attenuation per km
Li=as1*L1;// Loss incurred along 8 km
Ls=7;// Loss due to splice in dB
as2=Li+Ls;// overall signal attenuation in dB
As2=29.4;// aprox. overall signal attenuation in dB
Pio=10^(As2/10);// i/p o/p power ratio
printf("The signal attenuation =%f dB", as);
printf("\n The signal attenuation per km =%f dB/km", as1);
printf("\n The trgth =%f km", Li);
printf("\n The overall signal attenuation =%f dB", as2);
printf("\n The i/p o/p power ratio =%f ", Pio); |
f04f1facc9d50b070907d3e115a320cfe5c203f8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2990/CH5/EX5.15/Ex5_15.sce | b05adcc87f316a11c5f2fbf0522a8d21796dc02d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 855 | sce | Ex5_15.sce |
funcprot(0);
// Initialization of Variable
function[dms]=degtodms(deg)
d = int(deg)
md = abs(deg - d) * 60
m = int(md)
sd = (md - m) * 60
sd=(round(sd*100)/100)
dms=[d m sd]
endfunction
theta=54+30.0/60//latitude in degrees
delta=62+12.0/60+21.0/3600//declination in degrees
//calculation
alpha=asin(sin(theta*%pi/180)/sin(delta*%pi/180));
A1=acos(tan(theta*%pi/180)/tan(alpha));
A1=A1*180/%pi;
TB=360-A1-65-18.0/60-42.0/3600;
TB=degtodms(TB);
alpha=degtodms(alpha*180/%pi);
H=acos(tan(theta*%pi/180)/tan(delta*%pi/180));
H=degtodms(H*180/%pi);
disp(TB,"true bearing in degree,minites,seconds respectively");
disp(alpha,"altitude in degree,minites,seconds respectively");
disp(H,"hour angle in degree,minites,seconds respectively");
disp("the answer for hour angle in the textbook is wrong");
clear()
|
0e1833449547fec5398c076656fb04111700383d | 676ffceabdfe022b6381807def2ea401302430ac | /library/Demos/StdRegions/Tests/StdProject3D_Pyr_Mod_P6_Q7_IntWeight.tst | fd7f0b39c8bb8992f57a6de04581e5cffa69899c | [
"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 | 885 | tst | StdProject3D_Pyr_Mod_P6_Q7_IntWeight.tst | <?xml version="1.0" encoding="utf-8" ?>
<test>
<description>StdProject3D Pyramid Modified basis P=6 Q=7</description>
<executable>StdProject</executable>
<parameters>-s pyramid -b Modified_A Modified_A ModifiedPyr_C -o 6 6 6 -p 7 7 7 -P GaussLobattoLegendre GaussLobattoLegendre GaussLobattoLegendre</parameters>
<metrics>
<metric type="L2" id="1">
<value tolerance="1e-11">8.8186e-13</value>
</metric>
<metric type="Linf" id="2">
<value tolerance="1e-11">2.41681e-12</value>
</metric>
<metric type="Regex" id="3">
<regex>^Integral error: ([+-]?\d.+\d|-?\d|[+-]?nan|[+-]?inf).*</regex>
<matches>
<match>
<field id="0" tolerance="1e-11">2.49289e-12</field>
</match>
</matches>
</metric>
</metrics>
</test>
|
3ba47e9d37d570a9f89d4c8243a47a58f1099797 | 7077534f4573ccfc95d717bc491a32aaa4abe901 | /Open.sce | 94675feff5543be6b1a8289708cc8f46308b117f | [] | no_license | edsaac/EMSH | bfbc312c50763ae44af61fe8f02eb74f2d192fde | a6af9b3d170fc383e488175772ca0b05cca9f50a | refs/heads/master | 2021-08-24T12:29:08.805989 | 2017-12-09T21:33:46 | 2017-12-09T21:33:46 | 113,702,307 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,230 | sce | Open.sce | /*
Generation of a three-dimensional GMSH .geo file
from a BlueKenue two-dimensional surface depicting
a DEM topography.
Blocks:
1) functions definition (FDD)
2) topography face construction (TFC)
3) bottom base face construction (BBC)
4) stitching of up&down boundaries (SBS)
5) create CVS file to export (CVS)
*/
//*********************FDD*********************
//Define Cantor Pairing Function
clear
clc
function [c] = cantorP(a,b)
c=(((a+b)*(a+b+1))/2)+b;
endfunction
//Read point data and elements connectivities
[points]=csvRead('./EMSH/points.csv');
[elements]=csvRead('./EMSH/elements.csv');
//*********************************************
//*********************TFC*********************
//Determine points and elements from Bluesurface mesh
nPoints=size(points,1);
nElements=size(elements,1);
nDimensions=size(points,2);
nIJ=[1 2 3 1];
//Generate list of points GMSH_format
for i = 1:nPoints
temp = strcat(['Point(',string(i),') = {',string(points(i,1)),',',string(points(i,2)),',',string(points(i,3)),',ref};']);
gmshPoints(i)= temp;
end
clear temp
//Build unique Id for lines
for r=1:nElements
for x= 1:size(nIJ,2)-1
if elements(r,nIJ(x))>elements(r,nIJ(x+1)) then
elements(r,x+3)=cantorP(elements(r,nIJ(x)),elements(r,nIJ(x+1)));
else
elements(r,x+3)=cantorP(elements(r,nIJ(x+1)),elements(r,nIJ(x)));
end
end
end
//Generate list of lines GMSH_format
A=[];
c=0;
for l = 1:nElements
if find(A==elements(l,4))==[] then
temp = strcat(['Line(',string(elements(l,4)),') = {',string(elements(l,1)),',',string(elements(l,2)),'};']);
c=c+1;
gmshLines(c)=temp;
A(l,1)=elements(l,4);
else
A(l,1)=-elements(l,4);
end
if find(A==elements(l,5))==[] then
temp = strcat(['Line(',string(elements(l,5)),') = {',string(elements(l,2)),',',string(elements(l,3)),'};']);
c=c+1;
A(l,2)=elements(l,5);
gmshLines(c)=temp;
else
A(l,2)=-elements(l,5);
end
if find(A==elements(l,6))==[] then
temp = strcat(['Line(',string(elements(l,6)),') = {',string(elements(l,3)),',',string(elements(l,1)),'};']);
c=c+1;
A(l,3)=elements(l,6);
gmshLines(c)=temp;
else
A(l,3)=-elements(l,6);
end
end
//Build Line Loops & plane Surface GMSH_format
llId=max(elements(:,4:6));
for r = 1:nElements
temp = strcat(['Line Loop(',string(llId+r),') = {',string(A(r,1)),',',string(A(r,2)),',',string(A(r,3)),'};']);
gmshLoops(r)= temp;
temp2 = strcat(['Plane Surface(',string(llId+nElements+r),') = {',string(llId+r),'};']);
gmshSurface(r)= temp2;
S(r,1)=(llId+nElements+r);
end
//*********************************************
//*********************BBC*********************
//Extract perimeter and identify blines
n=0;
for r=1:size(A,1)
for c=1:nDimensions
if find(-A(r,c)==A)==[] then
n=n+1;
//Lines
bL(n,1)=A(r,c);
bL(n,2)=elements(r,nIJ(c));
bL(n,3)=elements(r,nIJ(c+1));
//Coordinates
bL(n,4)=points(bL(n,2),1);
bL(n,5)=points(bL(n,2),2);
bL(n,6)=0;
end
end
end
//Build bottom points
for r = 1:size(bL,1)
temp = strcat(['Point(',string(nPoints+bL(r,2)),') = {',string(bL(r,4)),',',string(bL(r,5)),',',string(bL(r,6)),',ref};']);
gmshBPoints(r)= temp;
end
//Build bottom lines GMSH_format
c=1;
lbId = llId + (2*nElements)+2;
for r = lbId+1:lbId+size(bL,1)
temp = strcat(['Line(',string(lbId+bL(c,1)),') = {',string(nPoints+bL(c,2)),',',string(nPoints+bL(c,3)),'};']);
c=c+1;
gmshBLines(c)=temp;
end
//Build bottom loop
B(1,1)=bL(1,1);
B(1,2)=bL(1,2);
B(1,3)=bL(1,3);
for r = 2:size(bL,1)
B(r,2)=B(r-1,3);
m = find(bL(:,2)==B(r,2));
B(r,1)=bL(m,1);
B(r,3)=bL(m,3);
end
//Build bottom Loop GMSH_format
B(:,4)=B(:,1);
B(:,1)=B(:,1)+lbId;
lcId = max(B(:,1));
hemp = strcat(['Line Loop(',string(lcId+1),') = {']);
temp =[];
for r=1:size(B,1)
if r == size(B,1) then
temp = strcat([temp,string(B(r,1))]);
else
temp = strcat([temp,string(B(r,1)),',']);
end
end
gmshBLoops=strcat([hemp,temp,'};']);
//Build bottom Surface GMSH_format
temp = strcat(['Plane Surface(',string(lcId+2),') = {-',string(lcId+1),'};']);
gmshBSurface = temp;
//*********************************************
//*********************SBS*********************
ldId = max(B(:,1));+1;
for r = 1:size(B,1)
temp = strcat(['Line(',string(ldId+r),') = {',string(B(r,2)),',',string(B(r,2)+nPoints),'};']);
gmshCLines(r)=temp;
C(r)=ldId+r;
end
C(size(B,1)+1)=C(1)
clear temp
leId = ldId + size(B,1);
for r = 1:size(B,1)
temp = strcat(['Line Loop(',string(leId+r),') = {',string(C(r)),',',string(B(r,1)),',-',string(C(r+1)),',-',string(B(r,4)),'};']);
gmshCLoops(r)=temp;
hemp = strcat(['Plane Surface(',string(leId+size(B,1)+r),') = {',string(leId+r),'};']);
gmshCSurface(r)=hemp;
S2(r,1)=leId+size(B,1)+r;
end
temp=[];
for r = 1:size(S,1)+size(S2,1)+1
if r <= size(S,1) then
if r == size(S,1) then
temp = strcat([temp,',',string(S(r,1))]);
elseif r == 1 then
temp = strcat([string(S(r,1))]);
else
temp = strcat([temp,',',string(S(r,1))]);
end
elseif r == size(S,1)+size(S2,1)+1 then
temp = strcat([temp,',',string(lcId+2)]);
else
if r == size(S,1)+size(S2,1) then
temp = strcat([temp,',',string(S2(r-size(S,1),1))]);
elseif r == size(S2,1) then
temp = strcat([string(S2(r-size(S,1),1))]);
else
temp = strcat([temp,',',string(S2(r-size(S,1),1))]);
end
end
gmshSurfLoop=strcat(['Surface Loop(',string('1'),') ={',temp,'};']);
end
clear temp
//*********************************************
GMSHV = strcat(['Volume(1) = {1};']);
//Write .geo GMSH file
GMSHA = ['ref=100;' ; gmshPoints ; gmshLines ; gmshLoops ; gmshSurface];
GMSHB = ['ref=500;' ; gmshBPoints ; gmshBLines ; gmshBLoops ; gmshBSurface];
GMSHC = [gmshCLines ; gmshCLoops ; gmshCSurface ; gmshSurfLoop];
GMSH = [GMSHA ; GMSHB ; GMSHC ; GMSHV];
csvWrite(GMSH,'./EMSH/gmsh.geo');
|
e9c37a903301f651407806480575e1c0bf9a61bd | 743a0d3a9d1ea2b083399cf54c5fe7395791d58c | /PragmaDev_Studio/aa.sce | f8a4e0af63d62daf33e7d379c7f0cc85a4a27c0a | [] | no_license | VictorO98/Localizador-de-mascota-IoT | 8e703a90d1ca821a70280c2e08f0c58bc42b2445 | f3380ea969be7b9333e82700ae8973083caa9bc3 | refs/heads/master | 2023-06-01T07:54:26.079725 | 2021-06-19T05:27:44 | 2021-06-19T05:27:44 | 350,575,205 | 0 | 0 | null | 2021-04-28T02:16:49 | 2021-03-23T04:08:37 | null | UTF-8 | Scilab | false | false | 425 | sce | aa.sce | keySdlStep
keySdlStep
keySdlStep
keySdlStep
keySdlStep
keySdlStep
keySdlStep
keySdlStep
keySdlStep
keySdlStep
keySdlStep
keySdlStep
send2pid -1 1 sRegistrarUsuario |{param1|=0|}
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
sdlTransition
stepout
|
99bc6276d8ca5e6c0f58a372c898504d43675c46 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3507/CH28/EX28.9/Ex28_9.sce | 626a38a37bfa1ad8a47fac8595b6c634a03b8805 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 192 | sce | Ex28_9.sce | //chapter28
//example28.9
//page607
printf("Y = ( ( A + B )` . C . D` )` \n")
printf("Using De Morgan theorem \n")
printf("Y = ( A + B ) + C` + D \n")
printf("Y = A + B + C` + D \n")
|
b3e608371e8081fafd3a733246c111709f9e9666 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH7/EX7.5/ex7_5.sce | 3c369bcdf75ea75bb69b6cab644dcb9c17c5aafd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 264 | sce | ex7_5.sce | // Exa 7.5
clc;
clear;
close;
// Given data
Q = 20;// in kJ/kg
P = 10;// in MW
P = P * 10^3;// in kW
H1 = 3248;// in kJ/kg
H2 = 2552;// in kJ/kg
C1 = 20;// m/s
C2 = 40;// m/s
m = P/((H1-H2+(C1^2-C2^2)/(2*1000))-Q);// in kg/s
disp(m,"Mass in kg is");
|
33a5de0bd7469b3bc289f24dc3de721659f235a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /181/CH6/EX6.8/example6_8.sce | fbd11f6275f6ca281acd29664488f91ab02819c7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 730 | sce | example6_8.sce | // Determine R,Ids,Vgs
// Determine Vgs,Id,Vds,operating region
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 6-8 in page 277
clear; clc; close;
// Given data
Vp=-3; // Peak voltage in V
Vgg=5; // Gate voltage in V
Ids=10*10^-3; // Drain current in mA
// Calculation
R=5/(10*10^-3);
printf("(a)R = %0.0f ohm\n",R);
Ids=5/400;
Vds=(2*Ids*R)+15;
printf("(b)Idss = %0.2e A\n",Ids);
printf("(c)Vds = %0.0f V\n",Vds);
printf("This confirms active region\n");
Rid=14/2;
Vgs=Vgg-Rid;
printf("(d)Vgs = %0.0f V\n",Vgs);
printf("Vds=2>Vgs-Vp=-1.5+3=1.5 -> Active region");
// Result
// (a) R = 500ohm,
// (b) Ids = 12.5mA,
// (c) Vgs = -2V |
a5f1bd58084ff9a502f9ebd7586f7f377ac2e9d4 | c247bce84b3facd1a13b48e7417327c40c8b3898 | /FOPID/grunwald.sci | 4d1189c84a4d151340e132a76f3d545274ea5c78 | [] | no_license | AstroSayan/FuzzyFOPID | 9de9fa761301da6ae1f5dfe7b8e7e8214f3b472b | ea0e31e8fa0b36e407de9dfa466cf46b583e4103 | refs/heads/main | 2023-04-26T19:18:30.590337 | 2021-05-13T18:27:32 | 2021-05-13T18:27:32 | 367,137,779 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 203 | sci | grunwald.sci | function df=grunwald(f,t,alpha,h)
df(1)=0; w=1; f=f';
for j=2:length(t)
w(j)=w(j-1)*(1-((alpha+1)/(j-1)));
end
w=w';
for i=2:length(t)
df(i)=w(1:i)*[f(i:-1:1)];
end
df=df/h^alpha;
endfunction
|
594ccbe434b309eb4ab269d70ddec633dae496e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /48/CH12/EX12.9/eg_12_9.sce | 91a7fdc31ced50aadfd3704aacf6b6596149ff9b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | eg_12_9.sce | clc;
clear;
disp("In previosuly problems we have determined the input and output consistent partitions for the Machine M5");
disp("Input consistent partition {(AB),(CD),(EF)}");
disp("Output consistent partition {(ACE),(BDF)}");
disp("By assigning 000 to 101 to all the states from A to F");
disp("we can find the expressions for the next state and the output");
disp("Y1=y2");
disp("Y2=y1^y2^");
disp("Y3=xy3+xy2+x^y2^y3^+y2y3");
disp("z=xy3^"); |
84b965e9b4c759258f11b2701749937fa02db36c | 3c47dba28e5d43bda9b77dca3b741855c25d4802 | /microdaq/macros/mdaqPing.sci | 721755e2be09633a727c98c815cad5f3fc0e0890 | [
"BSD-3-Clause"
] | permissive | microdaq/Scilab | 78dd3b4a891e39ec20ebc4e9b77572fd12c90947 | ce0baa6e6a1b56347c2fda5583fb1ccdb120afaf | refs/heads/master | 2021-09-29T11:55:21.963637 | 2019-10-18T09:47:29 | 2019-10-18T09:47:29 | 35,049,912 | 6 | 3 | BSD-3-Clause | 2019-10-18T09:47:30 | 2015-05-04T17:48:48 | Scilab | UTF-8 | Scilab | false | false | 851 | sci | mdaqPing.sci | function result = mdaqPing()
[mdaq_ip_addr, res] = mdaq_get_ip();
if res < 0 then
disp("Unable to get MicroDAQ IP address - run microdaq_setup!");
result = %F;
else
mprintf('Connecting to MicroDAQ@%s...',mdaq_ip_addr);
connection_id = mdaqOpen();
if connection_id < 0 then
mprintf(' ERROR!\nUnable to connect to MicroDAQ device, check your configuration!\n');
mprintf('Scilab is configured with following settings:\n');
mprintf('IP address: %s, port %d\n', mdaq_ip_addr, 4343);
mprintf('If MicroDAQ has different IP address use mdaqSetIP function to set correct IP address.\n\n');
result = %F;
else
mprintf('OK!\n');
mdaq_disconnect(connection_id);
result = %T;
end
end
endfunction
|
bf424e186b561d90f8273652f333d6e2f43466f4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /557/CH10/EX10.2/2.sce | e0b1e0a71b4916e9582a07acc178da9844465185 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 442 | sce | 2.sce | clc; funcprot(0); //Example 10.2
//Initializing the variables
mu = 0.9;
rho = 1260;
d = 0.01;
Q = 1.8/60*10^-3; //Flow in m^3 per second
l = 6.5;
ReCrit = 2000;
//Calculations
A = (%pi*d^2)/4;
MeanVel = Q/A;
Re = rho*MeanVel*d/mu; // Check properly the answer in book there is something wrong
Dp = 128*mu*l*Q/(%pi*d^4)
Qcrit = Q*ReCrit/Re*10^3;
disp(Qcrit, "Maximum Flow rate(litres/s) :", Dp/1000 , "Pressure Loss (N/m2) :"); |
0ed6cd13e70683f3648ea6d877b18b2398086fa8 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /sci2blif/rasp_design_added_blocks/gpio_in_fixloc.sce | 094f0963aa1a60332da06588d2a1bca971fd126c | [] | no_license | jhasler/rasp30 | 9a7c2431d56c879a18b50c2d43e487d413ceccb0 | 3612de44eaa10babd7298d2e0a7cddf4a4b761f6 | refs/heads/master | 2023-05-25T08:21:31.003675 | 2023-05-11T16:19:59 | 2023-05-11T16:19:59 | 62,917,238 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 168 | sce | gpio_in_fixloc.sce | style.fontSize=14;
style.displayedLabel="<b>GPIO In </b>(Loc. fix)</b><br>%1$s";
pal6 = xcosPalAddBlock(pal6,"gpio_in_fixloc",[],style); //arbitrary waveform generator
|
5157d91d61e6fd8a014fa28915ee056b6f837985 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1373/CH9/EX9.2/Chapter9_Example2.sce | d57375d4b2531a26e0e15ece77e58cd9b6710fed | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 672 | sce | Chapter9_Example2.sce | //Chapter-9, Example 9.2, Page 383
//=============================================================================
clc
clear
//INPUT DATA
T=(727+273);//Temperature of black body in K
l1=1;//Wavelength in micro meter
l2=5;//Wavelength in micro meter
F1=0.0003;//From Table 9.2 on page no. 385
F2=0.6337;//From Table 9.2 on page no. 385
//CALCULATIONS
a=(5.67*10^-8*T^4)/1000;//Heat transfer in kW/m^2
F=(F2-F1)*a;//Fraction of thermal radiation emitted by the surface in kW/m^2
//OUTPUT
mprintf('Fraction of thermal radiation emitted by the surface is %3.1f kW/m^2',F)
//=================================END OF PROGRAM==============================
|
bad74cf46358450af5b369fe80fb17cc21274279 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH1/EX1.39/ex1_39.sce | 4fcb56939ba94715065ec37fdb160d64780fdd07 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 645 | sce | ex1_39.sce | //Chapter-1, Example 1.39, Page 49
//=============================================================================
clc;
clear;
//INPUT DATA
V=100;//supply voltage in volts
I=10;//total current in A
P1=600;//power dissipated in coil in Watts
//CALCULATIONS
//Reff=((R1*R2)/(R1+R2)) is total effective resistance of circuit in ohms----eqn(1)
Reff=V/I;;//total effective resistance of circuit in ohms
R1=((V)^2)/(P1);//in ohms----eqn(2)
//solving for R2 in eqn(1)
R2=((Reff*R1)/(R1-Reff));//in ohms
mprintf("R1=%2.2f Ohms \n R2=%1.0f Ohms ",R1,R2);
//=================================END OF PROGRAM==============================
|
ffe5b0de03cc8471b73bcc156360fbd332676d66 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1364/CH3/EX3.5.2/3_5_2.sce | b7944b8406c016025b346bceda5f189bc1dec3e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 180 | sce | 3_5_2.sce | clc
//initialisation of variables
p= 0.005 //lbf/in^2
w= 62.4 //lbf/ft^3
h= 1 //in
//CALCULATIONS
p= w*h/1728
//RESULTS
printf (' pressure difference = %.4f lbf/in^2 ',p)
|
bd72cd7ac6d0dd6a34127c0fbdb70723cc4e77b8 | 2a39d29b2cb27e98632f6810ed3c2a22a56fa8eb | /Materias/LabCalcNum/Rafael/criteriosassenfeld.sci | 069ff3e9da3060152957410c689bfd655b9a0764 | [] | no_license | rafael747/my-stuff | 74358384bc1a5b381d1951dfaef87efdf4cb53c2 | 8614aefdc3ca9afdc1534557f73719af8494f7fa | refs/heads/master | 2021-01-17T12:47:48.206860 | 2020-06-04T15:10:20 | 2020-06-04T15:10:20 | 57,989,835 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 518 | sci | criteriosassenfeld.sci | function x = criteriosassenfeld(A)
// Verifica se o Criterio das Linhas é satisfeito
[m,n] = size(A);
if m~=n, error('Matriz A deve ser quadrada'); end
betaK=zeros(n,1);
for i = 1:n
for j = 1:n
if j <= (i-1) then
betaK(i) = betaK(i) + abs(A(i,j)/A(i,i))*betaK(j);
elseif j >= (i+1) then
betaK(i) = betaK(i)+abs(A(i,j)/A(i,i))
end
end
if betaK(i) >= 1 then
x=%f;
return
end
end
x=%t;
return
endfunction
|
02dca8bbb1ddbe7334ff74f370c331d855f71b77 | 449d555969bfd7befe906877abab098c6e63a0e8 | /50/CH4/EX4.20/ex_4_20.sce | 77cba39f62c1ad81c737ed8eb94a19c389428d3d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 180 | sce | ex_4_20.sce | // example 4.20;
// hermite interpolation:
x=[-1 0 1];
f=[1 1 3];
fp=[-5 1 7];
P= hermiteinterpol(x,f,fp);
// hence;
disp('f(-0.5)=3/8');
disp('f(0.5)=11/8'); |
e30e25008dede04901a41683544b1b5bf41915c6 | 43799901e22e995d4db64000ef28c0a787aeb11b | /ISAWIN/LINOV/TEST2/appli.tst | 65a3dd794053dcc07cf12473618081fe51da9dff | [
"WTFPL"
] | permissive | aquaforum/tench_catch | 7082d8e8f3a224aa50be9150a96362f2f323a2be | 3f377476d82d7343edd985a6d3a41b57dc301f98 | refs/heads/master | 2023-07-17T13:33:10.901467 | 2021-08-22T19:29:09 | 2021-08-22T19:29:09 | 398,885,059 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 598 | tst | appli.tst | @ISA_SYMBOLS,241210047
#NAME,test2,3.41
#DATE,02.02.2017
#SIZE,G=0,S=0,T=0,L=0,P=0,V=1
#COMMENT,wsma1tst
@PROGRAMS,0
@STEPS,0
@TRANSITIONS,0
@BOOLEANS,0
@ANALOGS,0
@TIMERS,0
@MESSAGES,0
@USP,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@FBINSTANCES,0
@END_SYMBOLS
|
5f079ca8aef151c9b39cc8421caeb099f3fe3d83 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH8/EX8.15/example8_15.sce | 4323818a9e71fe73785be02782ef978ac748510b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,585 | sce | example8_15.sce |
//example 8.15
//Check the stability and determine sliding factor and shear factor
clc; funcprot(0);
//Given
c=1;
miu=0.75; //coefficient of friction
H=90; //heigth of dam
wb=73.1; //width of base
Bt=7; //width of top of dam
hw=89; //heigth of water in reservior
Hs1=28; //heigth of slope on upstream side
Hs2=83; //heigth of slope on downstream side
Cm=0.735;
alphah=0.1;
gamma_m=23.5; //unit weigth of concrete
gamma_w=9.81; //unit weigth of water
theta=atan(8/28);
fi=atan(0.7);
//self weigth of dam
W1=(Hs1*8*gamma_m)/2,
W2=(Bt*H*gamma_m),
W3=(Hs2^2*0.7*gamma_m)/2,
//weigth of superimposed water
W4=(Hs1*8*gamma_w)/2,
W5=(hw-Hs1)*8*gamma_w,
U=hw*wb*2*gamma_w/6; //uplift force
wp=hw^2*gamma_w/2; //water pressure
hp=0.726*Cm*alphah*gamma_w*hw^2; //hydrodynamic pressure
Mhp=0.299*Cm*alphah*gamma_w*hw^3; //moment due to hydrodynamic pressure
//inertial load due to horizontal acceleration
I1=W2/10;
I2=W3/10;
I3=W1/10;
SumV=W1+W2+W3+W4+W5-U;
SumH=wp+hp+I1+I2+I3;
L1=(wb-8)+8/3,
L2=(0.7*Hs2)+(Bt/2),
L3=(2*Hs2*0.7)/3,
L4=(wb-8)+(2*8)/3,
L5=(wb-8)+(8/2),
L6=hw/3;
L7=2*wb/3;
M1=W1*L1,M2=W2*L2,M3=W3*L3,M4=W4*L4;
M5=W5*L5;
M6=wp*L6;
M7=U*L7;
M8=I1*45;
M9=I2*83/3;
M10=I3*28/3;
Mplus=M1+M2+M3+M4+M5;
Mminus=M6+M7+M8+M9+M10+Mhp;
SumM=Mplus-Mminus;
x=SumM/SumV;
e=wb/2-x;
pnt=(SumV/wb)*(1+(6*e/wb));
pnh=(SumV/wb)*(1-(6*e/wb));
sigmat=pnt*sec(fi)^2;
p=hw*gamma_w;
pe=Cm*alphah*gamma_w*hw;
sigmah=pnh*sec(theta)^2-(p+pe)*tan(theta)^2;
taut=pnt*tan(fi);
tauh=-(-pnh-(p+pe))*tan(theta);
mprintf("Normal stress at toe=%i kN/square.m.",pnt);
mprintf("\nNormal stress at heel=%i kN/square.m.",pnh);
mprintf("\nPrincipal stress at toe=%i kN/square.m.",sigmat);
mprintf("\nPrincipal stress at heel=%i kN/square.m.",sigmah);
mprintf("\nShear stress at toe=%i kN/square.m.",taut);
mprintf("\nShear stress at heel=%i kN/square.m.",tauh);
FOS=miu*SumV/SumH;
SFF=(miu*SumV+wb*1400)/SumH;
FOO=Mplus/Mminus;
Ffi=1.2;Fc=2.4;
F=(miu*SumV/Ffi+1400*wb/Fc)/SumH;
FOS=round(FOS*100)/100;
F=round(F*100)/100;
SFF=round(SFF*100)/100;
FOO=round(FOO*100)/100;
mprintf("\n\nFactor of safety against sliding as per IS:6512-1972=%f. <1.5",FOS);
mprintf("\nFactor of safety against sliding as per IS:6512-1984=%f. >1",F);
mprintf("\nShear friction factor=%f. <6",SFF);
mprintf("\nFactor of safety against overturning=%f. <1.5",FOO);
mprintf("\n\nDam is unsafe for given loading conditions");
|
4832f5807aac58a2df203964d33d5d3e2f8cabd3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH16/EX16.2/example16_2.sce | 0ef28e0e157499939a3885f08fecced4228d8625 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 418 | sce | example16_2.sce | clc
// Given that
t = 0 // temperature in K
E = 7.9 // Fermi energy in eV
e = 1.6e-19 // charge on an electron in C
m = 9.1e-31 // mass of electron in kg
// Sample Problem 2 on page no. 16.14
printf("\n # PROBLEM 2 # \n")
printf("Standard formula used \n")
printf("1/2 * m*v^2 = E_0 \n")
E_ = E * 3 / 5
v = sqrt(2 * E_ * e / m)
printf("\n Average energy of electron is %f eV.\n Speed of electron is %e m/sec.",E_,v)
|
e33c30beb7c250ff0595c282067a9699bf3e87a7 | 2c2dc93267283e4aebcffffd5bd76e19ddcf5cc7 | /output/KNN/Prob-resultadoKNN1.tst | 9fdf5d8032320708404146f8e2e8b948abef882a | [] | no_license | joseangeldiazg/probabilistic_keel | c9cf4ddc2cf750cbbeca88e6f84218084892ae1f | 6c5ddf8c98cc7431d523b291e521d1e8607dc662 | refs/heads/master | 2020-05-21T12:26:41.754863 | 2017-01-08T10:29:44 | 2017-01-08T10:29:44 | 55,733,275 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,881 | tst | Prob-resultadoKNN1.tst | True-Class cp im imS imL imU om omL pp
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 0.3333333333333333 0.0 0.0 0.0 0.0 0.3333333333333333 0.0 0.3333333333333333
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 0.6666666666666666 0.0 0.0 0.0 0.0 0.0 0.0 0.3333333333333333
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 0.6666666666666666 0.3333333333333333 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 0.6666666666666666 0.0 0.0 0.0 0.0 0.0 0.0 0.3333333333333333
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cp 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
im 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
im 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
im 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
im 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
im 0.0 0.3333333333333333 0.0 0.0 0.6666666666666666 0.0 0.0 0.0
im 0.0 0.6666666666666666 0.0 0.0 0.3333333333333333 0.0 0.0 0.0
im 0.0 0.6666666666666666 0.0 0.0 0.3333333333333333 0.0 0.0 0.0
im 0.6666666666666666 0.0 0.0 0.0 0.0 0.0 0.0 0.3333333333333333
im 0.3333333333333333 0.6666666666666666 0.0 0.0 0.0 0.0 0.0 0.0
im 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
im 0.0 0.6666666666666666 0.0 0.0 0.3333333333333333 0.0 0.0 0.0
im 0.0 0.6666666666666666 0.0 0.0 0.3333333333333333 0.0 0.0 0.0
im 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
im 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
im 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
imS 0.0 0.3333333333333333 0.0 0.0 0.6666666666666666 0.0 0.0 0.0
imU 0.0 0.3333333333333333 0.0 0.0 0.6666666666666666 0.0 0.0 0.0
imU 0.0 0.6666666666666666 0.0 0.0 0.3333333333333333 0.0 0.0 0.0
imU 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
imU 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0
imU 0.0 0.3333333333333333 0.0 0.0 0.6666666666666666 0.0 0.0 0.0
imU 0.0 0.3333333333333333 0.0 0.0 0.6666666666666666 0.0 0.0 0.0
imU 0.0 0.3333333333333333 0.0 0.0 0.6666666666666666 0.0 0.0 0.0
om 0.0 0.0 0.0 0.0 0.0 0.3333333333333333 0.0 0.6666666666666666
om 0.3333333333333333 0.0 0.0 0.0 0.0 0.0 0.0 0.6666666666666666
om 0.3333333333333333 0.0 0.0 0.0 0.3333333333333333 0.0 0.0 0.3333333333333333
om 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0
omL 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0
pp 0.6666666666666666 0.3333333333333333 0.0 0.0 0.0 0.0 0.0 0.0
pp 0.3333333333333333 0.0 0.0 0.0 0.0 0.0 0.0 0.6666666666666666
pp 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0
pp 0.6666666666666666 0.3333333333333333 0.0 0.0 0.0 0.0 0.0 0.0
pp 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0
pp 0.3333333333333333 0.0 0.0 0.0 0.0 0.0 0.0 0.6666666666666666
pp 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0
pp 0.0 0.0 0.0 0.0 0.0 0.3333333333333333 0.0 0.6666666666666666
pp 0.0 0.3333333333333333 0.0 0.0 0.6666666666666666 0.0 0.0 0.0
pp 0.3333333333333333 0.0 0.0 0.0 0.0 0.0 0.0 0.6666666666666666
pp 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0
|
3affe6b16a5ac9f039d0b9dbec52c9eec5ef3bca | 449d555969bfd7befe906877abab098c6e63a0e8 | /2417/CH3/EX3.8/Ex3_8.sce | 8dcc2d9af03cc2280804a0997b2aa85df935788e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 848 | sce | Ex3_8.sce | clear;
clc;
printf("\t\t\tProblem Number 3.8\n\n\n");
// Chapter 3 : The First Law Of Thermodynamics
// Problem 3.8 (page no. 98)
// Solution
m1=50000; //Unit:LBm/hr //An inlet steam flow
v1=0.831 //Unit:ft^3/LBm //Specific volume of inlet steam
d1=6 //Unit:in //Inlet diameter
A1=(%pi*d1^2)/(4*144) //1 ft^2=144 in^2 //Entering area
V1=(m1*v1)/(A1*60*60) //(60 min/hr * 60 s/min) //To convert hours into seconds //velocity at inlet
printf("The velocity at inlet is %f ft/s\n",V1);
m2=m1; //Unit:LBm/hr //m2=An outlet steam flow
v2=1.825 //Unit:ft^3/LBm //Specific volume of outlet steam
d2=8 //Unit:in //Outlet diameter
A2=(%pi*d2^2)/(4*144) //1 ft^2=144 in^2 //Exit area
V2=(m1*v2)/(A2*60*60) //(60 min/hr * 60 s/min) //To convert hours into seconds //velocity at outlet
printf("The velocity at outlet is %f ft/s",V2);
|
98ed0647adc05b15e9e08a2219a5cd58b10c7c39 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set14/s_Machine_Design_U._C._Jindal_683.zip/Machine_Design_U._C._Jindal_683/CH3/EX3.16/MS_16.sce | 79d767072cd149d1233ee7076d1e5264bb45032d | [] | 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 | 224 | sce | MS_16.sce | errcatch(-1,"stop");mode(2);// sum 3-16
;
;
D=22;
d=20;
r=1;
K=2.2;
sigmax=130;
sigmax=sigmax/K;
Z=%pi*d^3/32;
M=sigmax*Z*10^-3;
// printing data in scilab o/p window
printf("M is %0.3f Nm ",M);
exit();
|
fc81f29b159524e0ffff51441b042840aeacece7 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpicscifiles6/Mixadd.sci | 8d45fea1e310206d3e8bc5f8ec92fc1fd8eb6926 | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 365 | sci | Mixadd.sci | // 05.14 Data Structure
// 05.16 List of MixList
// 05.19 use:MixS, MixL, Mixtype
// 08.08.17
// Structure changed
// 09.10.11
function M=Mixadd(varargin)
Nargs=length(varargin);
M=list();
Tmp=varargin(1);
if length(Tmp)==0
M(1)=varargin(2);
else
M=Tmp;
M($+1)=varargin(2);
end;
for I=3:Nargs
M($+1)=varargin(I);
end;
endfunction
|
b675392821385e477dae41c36808410e88604d74 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1970/CH12/EX12.9/CH12Exa9.sce | 4d74db4e88930e4c8ced5a1ab6c7d61b85346c23 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,200 | sce | CH12Exa9.sce | // Scilab code Exa12.9 : : Page-575 (2011)
clc; clear;
E_0 = 2e+06; // Average energy of the neutron, electron volts
E = 0.025; // Thermal energy of the neutron, electron volts
// For graphite
A = 12 // Mass number
sigma_g = 33.5; // The value of sigma for graphite
tau_0 = 1/(6*sigma_g^2)*(A+2/3)/(1-2/(3*A))*log(E_0/E); // Age of neutron for graphite, Sq.m
L_f = sqrt(tau_0); // Slowing down length of neutron through graphite, m
printf("\nFor Graphite, A = %d", A);
printf("\nNeutron age = %d Sq.cm", tau_0*1e+004);
printf("\nSlowing down length = %5.3f m", L_f);
// For beryllium
A = 9 // Mass number
sigma_b = 57; // The value of sigma for beryllium
tau_0 = 1/(6*sigma_b^2)*(A+2/3)/(1-2/(3*A))*log(E_0/E); // Age of neutron for beryllium, Sq.m
L_f = sqrt(tau_0); // Slowing down length of neutron through graphite, m
printf("\n\nFor Beryllium, A = %d", A);
printf("\nNeutron age = %d Sq.cm", tau_0*1e+004);
printf("\nSlowing down length = %3.1e m", L_f);
// Result
// For Graphite, A = 12
// Neutron age = 362 Sq.cm
// Slowing down length = 0.190 m
// For Beryllium, A = 9
// Neutron age = 97 Sq.cm
// Slowing down length = 9.9e-002 m |
58725f00e034f818ae1313fe5fc0b5f080106dd2 | e0124ace5e8cdd9581e74c4e29f58b56f7f97611 | /74/CH1/EX1.6/example6_sce.sce | f071409131d1858876d188aeeacdf4368208b068 | [] | 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 | 187 | sce | example6_sce.sce | //chapter 3
// exmaple 1.6
//page 124 , figure 3.17
R1=1*10^3;R2=R1;R3=R1;//given
Rf=1*10^3;//given
Vin1=2;Vin2=1;Vin3=4;//given
Vout=-((Rf/R1)*Vin1+(Rf/R2)*Vin2+(Rf/R3)*Vin3);
disp(Vout) |
1b254471712e451dcbb7e63640dd445defc6b1cb | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/peig/peig11.sce | 3073dc1e3968fc0fecb8d5dd58df19b7c5b67850 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 398 | sce | peig11.sce | //too many i/p args are passed to the function
x=[1 2 3 4 5 6 2 3 7];
p=3;
nwin=7;
noverlap=3;
fs=4e6;
nfft=6;
[S,f] = peig(x,p,nfft,fs,nwin,noverlap,1);
disp(S);
disp(f);
//output
!--error 72
peig: Atmost 6 numeric arguments expected
at line 80 of function peig called by :
[S,f] = peig(x,p,nfft,fs,nwin,noverlap,1);
at line 9 of exec file called by :
est\peig\peig11.sce', -1
|
c71ace534a65c3d9a053e543d6b30225024e4dd7 | 881e0bcc7118244a24f736786ac36140acfb885e | /yeast/results/GAssist-ADI-C.yeast-3/result8s0.tst | 4ea94043963c76dda688585ee05e5afbdaed4d95 | [] | no_license | woshahua/Experiment_File | 3e34e5a4a622d6d260fbdf8d5ef2711712aad9bc | 6a139cd3f779373799cb926ba90d978235b0de0d | refs/heads/master | 2021-01-01T06:57:13.285197 | 2017-07-28T08:17:38 | 2017-07-28T08:17:38 | 97,557,409 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,585 | tst | result8s0.tst | @relation yeast-3
@attribute Mcg real [0.11, 1.0]
@attribute Gvh real [0.13, 1.0]
@attribute Alm real [0.21, 1.0]
@attribute Mit real [0.0, 1.0]
@attribute Erl real [0.5, 1.0]
@attribute Pox real [0.0, 0.83]
@attribute Vac real [0.0, 0.73]
@attribute Nuc real [0.0, 1.0]
@attribute Class {MIT, NUC, CYT, ME1, ME2, ME3, EXC, VAC, POX, ERL}
@inputs Mcg, Gvh, Alm, Mit, Erl, Pox, Vac, Nuc
@outputs Class
MIT NUC
CYT NUC
MIT MIT
MIT MIT
MIT CYT
ME3 ME3
CYT CYT
CYT CYT
NUC CYT
NUC NUC
MIT ME1
MIT MIT
NUC CYT
NUC CYT
MIT CYT
NUC NUC
NUC NUC
NUC CYT
NUC CYT
ME3 ME3
CYT CYT
ME2 CYT
ME2 ME3
POX CYT
CYT MIT
CYT NUC
CYT NUC
CYT NUC
CYT CYT
ME3 ME3
CYT CYT
CYT CYT
NUC NUC
NUC NUC
NUC NUC
NUC CYT
CYT NUC
NUC NUC
ME3 ME3
MIT MIT
ME3 ME3
MIT MIT
NUC CYT
ME3 NUC
ME1 ME1
ME2 MIT
MIT MIT
CYT CYT
MIT NUC
MIT CYT
MIT MIT
MIT MIT
MIT NUC
MIT NUC
NUC MIT
NUC ME3
MIT MIT
NUC NUC
NUC NUC
CYT CYT
ME3 ME3
CYT CYT
CYT CYT
ME3 ME3
ME1 ME1
MIT CYT
EXC ME1
NUC NUC
ME3 ME3
NUC ME3
CYT CYT
NUC CYT
NUC CYT
CYT MIT
NUC MIT
MIT CYT
CYT NUC
NUC NUC
NUC CYT
NUC CYT
NUC NUC
NUC CYT
NUC NUC
NUC CYT
NUC NUC
CYT CYT
CYT CYT
CYT NUC
CYT CYT
CYT MIT
CYT CYT
CYT NUC
CYT NUC
NUC NUC
CYT NUC
CYT NUC
CYT CYT
ME3 ME3
NUC NUC
CYT CYT
CYT CYT
NUC NUC
CYT CYT
NUC NUC
NUC ME3
NUC NUC
ME3 CYT
MIT NUC
EXC ME1
NUC NUC
CYT CYT
CYT CYT
CYT NUC
NUC CYT
CYT CYT
NUC NUC
CYT NUC
ME1 ME1
CYT CYT
CYT CYT
CYT CYT
MIT MIT
CYT CYT
CYT NUC
VAC ME1
VAC CYT
ME3 NUC
ME3 ME3
ME3 ME3
ME2 NUC
CYT NUC
ME1 ME1
ME1 ME1
MIT MIT
ME2 ME1
EXC CYT
NUC CYT
CYT CYT
ME3 ME3
MIT ME1
MIT MIT
NUC MIT
CYT CYT
EXC MIT
NUC CYT
ME3 ME3
VAC ME3
POX ME1
|
add8207d0065a41030ade99154b834fe12c8bc8f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1979/CH11/EX11.1/Ex11_1.sce | 01367847415da87162d88ba40854cc4534db4542 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 815 | sce | Ex11_1.sce | //chapter-11 page 504 example 11.1
//==============================================================================
clc;
clear;
//For a radar system
Pt=600000;//peak pulse power in W
Smin=10^(-13);//minimum detectable signal in W
Ae=5;//cross sectional area of the radar antenna in sq m
w=0.03;//wavelength in m
s=20;//radar cross sectional area in sq m
//CALCULATION
Rmax=(((Pt*s*Ae^2)/(4*(%pi)*Smin*w^2))^(1/4))/1000;//Maximum range of a radar system in km
RMax=Rmax/1.853;//In nautical miles; 1 nm=1.853 km
//OUTPUT
mprintf('\nMaximum range of a radar system is Rmax=%3.3f km',Rmax);
disp('In nautical miles; 1 nm=1.853 km');
mprintf('\nMaximum range of a radar system in nautical miles is RMax=%3.0f nm',RMax);
//=========================END OF PROGRAM===============================
|
faa30482689bfaf5b30c87b373854b5dd297e4c3 | cac765899ef2f4a3fea7b30feb7d3cc9e32a4eb4 | /test-deprecated/testTransfoFunction.sce | 37c6027f516d501380885e9d0f0dcd201410fb22 | [] | no_license | clairedune/AsserVisu | 136d9cb090f709a410f23d3138ab115b722066d2 | f351f693bffd50b5ae19656a7fcb7b52e01d6943 | refs/heads/master | 2020-04-11T09:56:32.106000 | 2017-01-12T14:01:12 | 2017-01-12T14:01:12 | 1,187,919 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 528 | sce | testTransfoFunction.sce | // main programm
path=get_absolute_file_path("Main.sce"),
getf(path+'rotationMatrixFromRxRyRz.sci')
getf(path+'rotationMatrixFromThetaU.sci')
getf(path+'RxRyRzfromRotationMatrix.sci')
getf(path+'thetaUFromRotationMatrix.sci')
// test 1 : Rxyz -> M -> Rxyz
Rxyz = [30*%pi/180,0, 90*%pi/180],
M = rotationMatrixFromRxRyRz(Rxyz),
Rxyz2 = RxRyRzfromRotationMatrix(M),
// test 2 : Rxyz -> ThetaU -> M -> Rxyz
ThetaU = thetaUFromRotationMatrix(M),
M2 = rotationMatrixFromThetaU(ThetaU),
Rxyz3 = RxRyRzfromRotationMatrix(M2),
|
10e83f7a8c31e49e0d196efe748f0c0e416a3d17 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2066/CH4/EX4.16/4_16.sce | 802c8ca54f740d36070cdc48ff5c90bce456d6c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 357 | sce | 4_16.sce | clc
clear
//Initialization of variables
q=240 //ft^3/sec/ft
v1=60 //ft/s
gam=62.4
rho=1.94 //slug/ft^3
g=32.2 //ft/s^2
//calculations
y1=q/v1
v2=8.6 //ft/s
y2=28 //ft
hl= (y1+ v1^2 /(2*g)) - (y2+ v2^2 /(2*g))
hpp=hl*q*gam/550
//results
printf("Downstream depth = %.1f ft",y2)
printf("\n Horsepower dissipation = %d hp per foot width",hpp)
|
ccc6955dd5aeafdb79081db1b60670f4a9d9f063 | 449d555969bfd7befe906877abab098c6e63a0e8 | /291/CH3/EX3.7f/eg3_7f.sce | 6063f2727372ae4c6b874bbe9b136df16c01aeed | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 534 | sce | eg3_7f.sce | alpha1 = 0.4;
plane_in_region1 = 1/3;
plane_in_region2 = 1/3;
plane_in_region3 = 1/3;
prob1 = (alpha1*plane_in_region1)/((alpha1*plane_in_region1)+ 1*plane_in_region2 + 1*plane_in_region3);
prob2 = (1*plane_in_region2)/((alpha1*plane_in_region1)+ 1*plane_in_region2 + 1*plane_in_region3);
disp(prob1 , "The probability that the planes is in region 1 given that the search of region 1 did not uncover it ");
disp(prob2 , "The probability that the planes is in region 2/3 given that the search of region 1 did not uncover it "); |
43a8ec2fc622ea8265c49eb5112af344b44ca294 | 449d555969bfd7befe906877abab098c6e63a0e8 | /132/CH7/EX7.10/Example7_10.sce | cc9789aaab8fe7aff14734bc5f5fd68a72b6efb0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 361 | sce | Example7_10.sce | //Example 7.10
//Program to Calculate Rb in the Biasing Circuit
clear;
clc ;
close ;
//Given Circuit Data
Vcc=9; //V
Vce=3; //V
Re=500; //Ohms
Ic=8*10^(-3); //A
Beeta=80;
//Calculation
Ib=Ic/Beeta;
Rb=(Vcc-(Beeta+1)*Ib*Re)/Ib;
//Displaying The Results in Command Window
printf("The Base Resistance is :");
printf("\n\t Rb = %f kOhms .",Rb/10^3); |
d8791f4f0052217aaf55b2d8122ab7c2836d904b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3526/CH12/EX12.7/EX12_7.sce | 5c7f3c6338eb87cf1b1d89da1968c802f45cae07 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 945 | sce | EX12_7.sce | clc;funcprot(0);//EXAMPLE 12.7
//page 359
// Initialisation of Variables
%A=0.0218;......//Carbon percentage in primary alpha in percent
%Fe=6.67;......//Carbon percentage in Cementite in percent
%G=0.77;.......//Carbon percentage in eutectoid composition at 727 degree celsius
%C=0.60;...//Carbon percentage in Pearlite in percent
//CALCULATIONS
%alpha=((%Fe-%C)/(%Fe-%A))*100;.......// Composition of Phase Ferrite in alloy
%Ce=((%C-%A)/(%Fe-%A))*100;.......//Composition of Cementite in percent in alloy
%PF=((%G-%C)/(%G-%A))*100;......//Percentage of microconstituents Primary Ferrite in alloy
%P=((%C-%A)/(%G-%A))*100;.......//Percentage of microconstituents Pearlite in alloy
disp(%alpha,"Composition of Phase Ferrite in alloy :")
disp(%Ce,"Composition of Cementite in percent in alloy:")
disp(%PF,"Percentage of microconstituents Primary Ferrite in alloy:")
disp(%P,"Percentage of microconstituents Pearlite in alloy:")
|
88ff4791672c4670fb0ede169ee7215762ecc6c9 | 4483ff664b4d01c53114a7fc535625c197c8f989 | /green routing/c4.sce | 2e7ecbf74844b715b2f79467cf1328e3b7bbe74b | [] | no_license | winash1618/myproject | be9b77d4a405edce7e625a999803016b50ab99d0 | 2132e76e6a996bee19f356a2b68af827fa6c621b | refs/heads/master | 2022-12-06T06:09:06.487979 | 2020-08-20T02:00:54 | 2020-08-20T02:00:54 | 288,880,158 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,105 | sce | c4.sce | clc
clear all
x=4
z=15
cap=[233 35 53 337 260 161 183 176 86 51 162 79 68 152 111]
//a=[14.0 3.0 1.0 2.0 4.0 5.0 6.0 15.0 7.0 8.0 9.0 11.0 13.0 10.0 12.0
//a=[6.0 5.0 4.0 1.0 2.0 3.0 14.0 8.0 7.0 15.0 10.0 13.0 11.0 9.0 12.0
a=[2 3 1 14 15 7 8 4 5 6 9 11 13 10 12
]
//sizer=[7.0 0.0 0.0 8.0
sizer=[4 3 3 5
]
tim=[0 6.6 1.5 3.4 6.8 11 16 12 33 20 27 17 23 4.5 17;
6.6 0 5.1 10 13 18 23 17 43 26 34 24 30 11 23;
1.5 5.1 0 4.9 8.3 12 17 13 35 22 29 19 25 5.4 18;
3.4 10 4.9 0 6.7 14 19 14 40 23 31 21 27 7.9 20;
6.8 13 8.3 6.7 0 4.6 17 12 33 21 28 18 24 11 19;
11 18 12 14 4.6 0 13 7.8 29 16 23 13 19 11 15;
16 23 17 19 17 13 0 4.8 25 9 16 7.5 12 13 5;
12 17 13 14 12 7.8 4.8 0 24 8.2 15 6.7 14 12 9.8;
33 43 35 40 33 29 25 24 0 17 7.6 16 11 34 24;
20 26 22 23 21 16 9 8.2 17 0 8.4 5.9 3.5 21 8.5;
27 34 29 31 28 23 16 15 7.6 8.4 0 13 2 28 15;
17 24 19 21 18 13 7.5 6.7 16 5.9 13 0 6.2 18 13;
23 30 25 27 24 19 12 14 11 3.5 2 6.2 0 24 12;
4.5 11 5.4 7.9 11 11 13 12 34 21 28 18 24 0 11;
17 23 18 20 19 15 5 9.8 24 8.5 15 13 12 11 0;
]
dib=[6.8 14.7 8.3 9.9 9.2 4.6 9.2 5.8 27 14 21 11 17 6.6 9.9;
8.9 15 10 12 9.2 4.6 8 3.2 24 11 18 8.6 15 9.2 13;
15 22 16 17.6 15 11 10 5.6 24 14 21 8.6 15 15 15;
17 23 18 20 17 13 9.9 5.9 19 8.2 15 2.4 8.6 17 15;
]
dis=zeros(1,x)
fis=zeros(1,x)
ratio=zeros(1,x)
po=zeros(x,z)
jio=ones(1,x)
i=1
for k=1:x
r=1
while r<=sizer(1,k) & i<=z
po(k,r)=a(1,i)
r=r+1
if i>z
break
end
i=i+1
end
end
for k=1:x
for i=1:z
if i<sizer(1,k) & sizer(1,k)>1
jio(1,k)=jio(1,k)+cap(1,po(k,i))
dis(1,k)=dis(1,k)+tim(po(k,i),po(k,i+1))
fis(1,k)=fis(1,k)+0.249*tim(po(k,i),po(k,i+1))*jio(1,k)
else
break
end
end
end
for k=1:x
if sizer(1,k)>0
jio(1,k)=jio(1,k)+cap(1,po(k,sizer(1,k)))
dis(1,k)=dis(1,k)+dib(k,po(k,1))+dib(k,po(k,sizer(1,k)))
fis(1,k)=fis(1,k)+0.249*dib(k,po(k,1))+0.249*dib(k,po(k,sizer(1,k)))*jio(1,k)
end
end
for k=1:x
vit=0
for i=1:z
if i<=sizer(1,k)
vit=vit+cap(po(k,i))
end
end
if vit>0
ratio(1,k)=(dis(1,k)*15)/vit
end
end
disp("below is total distatnce")
disp(sum(dis))
disp("below is total distance covered by each vehicle")
disp(dis)
disp("below is this is capacity ratio for each vehicle")
disp(ratio)
disp(po)
disp("below is total carbon emission for each vehicle")
disp(fis)
disp("below is total carbon emission")
disp(sum(fis))
disp("below is route")
sup=a
gd=sizer
tomp=zeros(x)
for j=1:x
if(j==1)
tomp(j)=gd(j)
else
tomp(j)=tomp(j-1)+gd(j)
end
end
fine=zeros(x,z)
for j=1:x
if j==1 then
for k=1:tomp(j)
fine(j,k)=sup(k)
end
else
i=1
for k=tomp(j-1)+1:tomp(j)
fine(j,i)=sup(k)
i=i+1
end
end
end
namer=['KARTHIKAPURAM' 'KARMALAGIRI KSS LTD' 'UDAYAGIRI' 'SREEPURAM' 'VIJAYAGIRI' 'OTTATHAI' 'THADIKADAVU' 'MEEMBATTY' 'KOONAM KSS' 'PADAPPENGAD' 'PANNIYOOR KSS' 'VILAKKANNUR' 'KALIKKADAVU' 'NEDUVODE' 'VIMALASSERY'
]
bmc=['ARANGAM' 'KOTTAYAD' 'VELLAD' 'NADUVIL'
]
yum=0
for i=1:1:x
for j=1:z
if fine(i,j)>0
if j==1
disp(bmc(i))
disp(dib(i,fine(i,j)))
yum=yum+dib(i,fine(i,j))
end
disp(namer(fine(i,j)))
if j~=gd(i) then
disp(tim(fine(i,j),fine(i,j+1)))
yum=yum+tim(fine(i,j),fine(i,j+1))
end
if j==gd(i)
disp(dib(i,fine(i,j)))
yum=yum+dib(i,fine(i,j))
disp(bmc(i))
end
end
end
end
disp(yum)
|
6354e1ab7f25488dad4bd203f4ae8173092368e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3269/CH11/EX11.12/Ex11_12.sce | 3f4307072a1e0d0d02ea38c93bc254a5960884de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,348 | sce | Ex11_12.sce | // Example 11.12
clear all;
clc;
// Given data
Qy_bar = 0.197; // Emission rate for one year in micro-curie/year
// Let (chi/Q_bar) = d which is called 'Dilution factor'
d = 6.29*10^(-16); // Dilution factor in year/cm^3
MPC_w = 6*10^(-5); // Maximum Permissible Concentration (MPC) of iron in micro-curie/cm^3
Cw = Qy_bar*d; // The concentration of Fe-59
// For fish
Rs_fish = 110; // Consumption rate in g/day
// Using the data from Table 11.15 for saltwater concentration of fish for iron
CF_fish = 1800; // Concentration Factor of fish
Cs_fish = CF_fish*Cw; // Activity of fish
H_dot_fish = (Cs_fish*Rs_fish*500)/(MPC_w*2200); // Dose rate for fish
// For mollusks
Rs_mollusk = 10; // Consumption rate in g/day
// Using the data from Table 11.15 for saltwater concentration of mollusk for iron
CF_mollusk = 7600; // Concentration Factor of mollusk
Cs_mollusk = CF_mollusk*Cw; // Activity of mollusk
H_dot_mollusk = (Cs_mollusk*Rs_mollusk*500)/(MPC_w*2200); // Dose rate for mollusk
// For crustaceans
Rs_crustacean = 10; // Consumption rate in g/day
// Using the data from Table 11.15 for saltwater concentration of crustacean for iron
CF_crustacean = 2000; // Concentration Factor of crustacean
Cs_crustacean = CF_crustacean*Cw; // Activity of crustacean
H_dot_crustacean = (Cs_crustacean*Rs_crustacean*500)/(MPC_w*2200); // Dose rate for crustacean
// Calculation
H_dot = H_dot_fish+H_dot_mollusk+H_dot_crustacean;
// Result
printf(" \n The annual dose rate to GI tract by consuming fish = %.2E mrem/year",H_dot_fish);
printf(" \n The annual dose rate to GI tract by consuming mollusk = %.2E mrem/year",H_dot_mollusk);
printf(" \n The annual dose rate to GI tract by consuming crustaceans = %.2E mrem/year",H_dot_crustacean);
printf(" \n The annual dose rate to GI tract by consuming seafood = %.2E mrem/year \n",H_dot);
// The answer for annual dose rate to GI tract by consuming fish is wrong in the textbook. This is because the value of fish consumption rate is wrongly considered.
|
3dc3e63814401c14d4be99781d11a49c7040657e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2024/CH12/EX12.11/12_11.sce | 1dfbd82bc2cce74511b5c9efa92a520273ac2a16 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 273 | sce | 12_11.sce | clc
//Initialization of variables
y=0.195
bc=34.07
bb=-0.65
bi=290.85
//calculations
eps=abs((1-y)*(bc-bb)/(y*(bc-bi)))
I=(1-y)*(bc-bb)+ (y*(bc-bi))
//results
printf("Effectiveness = %.1f percent",eps*100)
printf("\n loss of available energy = %.1f btu/lbm",I)
|
d1c3159e016d4318cf2e251832b6de56a36502f3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2489/CH5/EX5.1/5_1.sce | 0eba0a3bcd9e9aecd6be7f11a4168121d451a128 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 461 | sce | 5_1.sce | clc
//Intitalisation of variables
clear
m1= 1.947 //gms
V= 10 //lit
T= 22 //C
p= 752 //mm of Hg
T1= 28 //C
W= 46 //gms
R= 0.082 //lit-atm mole^-1 K^-1
//CALCULATIONS
P= (m1*p/W)/((m1/W)+((p/760)*V/(R*(273+T))))
P1= (m1*p/W)/(((p/760)*V/(R*(273+T))))
P2= (m1/W)*R*(273+T)*760/V
//RESULTS
printf ('Vapour pressure of ethanol = %.1f mm',P)
printf ('\n Vapour pressure of ethanol = %.f mm',P1)
printf ('\n Vapour pressure of ethanol = %.f mm',P2)
|
c696f3fc46074a254242df2ae0edfb5fbdd2767a | 449d555969bfd7befe906877abab098c6e63a0e8 | /647/CH7/EX7.2/Example7_2.sce | 4e5ddf68c6922a9d787acd5c167b54d642677ca0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example7_2.sce | clear;
clc;
// Example: 7.2
// Page: 257
printf("Example: 7.2 - Page: 257\n\n");
// Solution
//*****Data******//
d1 = 0.2;// [m]
d2 = 0.15;// [m]
d3 = 0.1;// [m]
U1 = 3;// [m/s]
U2 = 2.5;// [m/s]
//**************//
// From Fig. 7.3 (Pg: 257)
// For pipe I:
A1 = (%pi/4)*d1^2;// [square m]
Q1 = A1*U1;// [cubic m/s]
// For pipe II:
A2 = (%pi/4)*d2^2;// [square m]
Q2 = A2*U2;// [cubic m/s]
// For pipe III:
A3 = (%pi/4)*d3^2;// [square m]
// From continuity Eqn.:
Q3 = Q1 - Q2;// [cubic m/s]
U3 = Q3/A3;// [m/s]
printf("Discharge through the 10 cm pipe is %.4f cubic m/sec\n",Q1);
printf("Average velocity in the 15 cm pipe is %.2f m/s",U3); |
1ff22999898859d1e36e5d6e4d48fc02c35be588 | 8df791f9387f1c5538e8fb4cccb82ea4a130e879 | /itpp_crc_encode/builder_gateway_cpp.sce | d07fa44a867dee2c83db590f4791e087330be474 | [] | no_license | tripathiaishwarya/itpp_repo | b94552677dbbfc2ed461d59de6a7efde37ec547e | fcd832287f3651b192339dbdbf15933045ca8aff | refs/heads/master | 2021-01-10T21:54:05.263442 | 2015-06-25T08:19:01 | 2015-06-25T08:19:01 | 37,813,835 | 2 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 382 | sce | builder_gateway_cpp.sce | // Builder gateway function for CRC Code encoding
function builder_gw_cpp()
WITHOUT_AUTO_PUTLHSVAR = %t;
tbx_build_gateway("skeleton_cpp", ..
["crc_encode","itpp_crc_encode"], ..
["itpp_crc_encode.cpp"], ..
get_absolute_file_path("builder_gateway_cpp.sce"), [], "-litpp");
endfunction
builder_gw_cpp();
clear builder_gw_cpp; // remove builder_gw_cpp on stack
|
856d07a2ed9c0629afbab934d9d9cb73ee502bda | 449d555969bfd7befe906877abab098c6e63a0e8 | /181/CH6/EX6.9/example6_9.sce | 273bac7df7ad3c1033fd2b40b5e22e26164078a6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 663 | sce | example6_9.sce | // Find Id,Vgs,Vds,region of operation
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 6-9 in page 277
clear; clc; close;
// Given data
Idss=4*10^-3; // Drain current in mA
Vp=-2; // Peak voltage in V
Vdd=10; // Supply voltage in V
Vgs=0; // Gate source voltage in V
// Calculation
Id=Idss*(1-(Vgs/Vp));
printf("(a)Id = %0.0e A\n",Id);
printf("(b)Since Id=Idss, Vgs=0 V\n");
Vds=10-Vgs;
printf("(c)Vds = %0.0f V\n",Vds);
printf("Since Vds=10V>Vgs-Vp=2V,Active region operation of upper JFET is confirmed");
// Result
// (a) Id = 4 mA,
// (b) Vgs = 0 V,
// (c) Vds = 10 V |
bed855a75e95ec472544dcc1021682d367f52f29 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1895/CH5/EX5.36/EXAMPLE5_36.SCE | 29b72702099cc6f9a5c776cb42e12c978622185f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,189 | sce | EXAMPLE5_36.SCE | //ANALOG AND DIGITAL COMMUNICATION
//BY Dr.SANJAY SHARMA
//CHAPTER 5
//ANGLE MODULATION
clear all;
clc;
printf("EXAMPLE 5.36(PAGENO 259)");
//given
//first case
f_m1 = 500//modulating frequency
delta_f1 = 6.4*10^3//frequency deviation
V_m1 = 3.2//modulating amplitude
//second case
V_m2 = 8.4//modulating amplitude
//third case
V_m3 = 20//modulating amplitude
f_m3 = 200//modulating frequency
//calculations
k_f = delta_f1/V_m1//frequency sensitivity
delta_f2 = k_f*V_m2//frequency deviation for second case
delta_f3 = k_f*V_m3//frequency deviation for third case
m_1 = delta_f1/f_m1//modulation index for first case
m_2 = delta_f2/f_m1//modulation index for second case
m_3 = delta_f3/f_m3//modulation index for third case
//results
printf("\n\ni.a.Frequency deviation for first case = %.2f Hz",delta_f1);
printf("\n\n b.Modulation index for first case = %.2f ",m_1);
printf("\n\nii.a.Frequency deviation for second case = %.2f Hz",delta_f2);
printf("\n\n b.Modulation index for second case = %.2f ",m_2);
printf("\n\niii.a.Frequency deviation for third case = %.2f Hz",delta_f3);
printf("\n\n b.Modulation index for third case = %.2f ",m_3);
|
dc2f72a310541aae97c2c45602f8bf04902f3d32 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2054/CH3/EX3.9/Exa3_9.sce | 6e9deed5dd5c6ac0fc79124d6cc0928ddb20a285 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 409 | sce | Exa3_9.sce | //Exa:3.9
clc;
clear;
close;
R_a=0.2;//in ohms
alpha_f=0;//in degrees
V=400;//in volts
R_f=250;//in ohms
K=1.3;//Volts/Ampere-radian/second
N=1200;//in rpm
I_a=60;//in amperes
V_f=3*sqrt(3)*V*sqrt(2)/(sqrt(3)*%pi);//in volts
I_f=V_f/R_f;//in amperes
E_b=K*I_f*2*%pi*N/60;//in volts
V_a=E_b+(I_a*R_a);//in volts
alpha_a=acosd((V_a*%pi)/(3*V*sqrt(2)));
disp(alpha_a,'Firing Angle (in degrees)=') |
243cb5b85b977de4bf41aebf5fcca7ff87a95ca3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /647/CH9/EX9.11/Example9_11.sce | dfb750d00390e66b5035e6ee79c8c1ed28dfdf3d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 721 | sce | Example9_11.sce | clear;
clc;
// Example: 9.11
// Page: 354
printf("Example: 9.11 - Page: 354\n\n");
// Solution
//*****Data******//
x1 = 0.3;// [mole fraction of hydrogen in the mixture]
x2 = 0.25;// [mole fraction of nitrogen in the mixture]
x3 = 0.45;// [mole fraction of oxygen in the mixture]
phi1 = 0.7;// [fugacity coeffecient of oxygen in the mixture]
phi2 = 0.85;// [fugacity coeffecient of nitrogen in the mixture]
phi3 = 0.75;// [fugacity coeffecient of oxygen in the mixture]
P = 60;// [bar]
T = 273 + 150;// [K]
//***********//
phi = exp(x1*log(phi1) + x2*log(phi2) + x3*log(phi3));// [fugacity coeffecient of the mixture]
f = phi*P;// [bar]
printf("Fugacity of the gaseous mixture is %.3f bar",f); |
63d591ffe644204f62ae08602a07c3935fe7f8cf | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH40/EX40.04/40_04.sce | d35af87049145ac14e38c84c2807330dffa90d10 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 477 | sce | 40_04.sce | //Problem 40.04: A single-core concentric cable has a capacitance of 80 pF per metre length. The relative permittivity of the dielectric is 3.5 and the core diameter is 8.0 mm. Determine the internal diameter of the sheath.
//initializing the variables:
C = 80E-12; // in Farads
e0 = 8.85E-12;
er = 3.5;
d0 = 0.008; // in m
//calculation:
//internal diameter
di = d0*(%e^(2*%pi*e0*er/C))
printf("\n\n Result \n\n")
printf("\n internal diameter is %.5f m.",di) |
ae87a8d43603d4ee2ecd75a7ec977f4ed5f3d80c | f64e96254e9987471cf9ca7c399a316f20da3e1e | /StandaloneExecutor/src/standalone/models/scenario.sce | 4f73aa5641e43826ed53b37f4fceafbb1ab4190d | [] | no_license | ninellenin/experiment | e0ea6c56b72cba5a781eb44644f0d96ae0cc9edd | c1505ef6414d442317a7d1c8f3fffb79ea46cf4a | refs/heads/master | 2021-09-13T05:27:49.027140 | 2018-04-25T12:00:06 | 2018-04-25T12:00:06 | 100,329,035 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 77 | sce | scenario.sce | scenario = "scenario1";
active_buttons = 11, 12, 44;
begin;
begin_pcl;
|
08e3201f64545df904e09f3fe38f2d4ec668629c | 449d555969bfd7befe906877abab098c6e63a0e8 | /405/CH3/EX3.8/3_8.sce | 8bb662495397ddef208fa2b7df219b5b28b5622e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 4,457 | sce | 3_8.sce | clear;
clc;
printf("\t\t\tExample Number 3.8\n\n\n");
// heat generation with non uniform nodal elements
// Example 3.8 (page no.-100-103)
// solution
k = 0.8;// [W/m degree celsius] thermal conductivity of glass
d = 0.003;// [m] thickness of layer of glass
x = 0.001;// [m] thickness of electric conducting strip
Tinf = 30;// [degree celsius] environment temperature
h = 100;// [W/square meter degree celsius]
q1 = 40;// [W] heat generated by strips
q2 = 20;// [W] heat generated by strips
// the nodal network for a typical section of the glass is shown in figure. In this example we have not chosen dx = dy.
// because of symmetry T1 = T7 ,T2 = T6, etc, and we only need to solve the temperatures of 16 nodes. we employ the resistance formulation. As shown, we have chosen
dx = 0.005;// [m]
dy = 0.001;// [m]
A = 0.005;// [square meter]
// various resistances may now be calculated:
// for nodes 1,2,3,4:
one_by_Rm_p1 = k*dy/(2*dx);
one_by_Rm_m1 = one_by_Rm_p1;
one_by_Rn_p1 = h*A;
one_by_Rn_m1 = k*dx/dy;
// for nodes 8,9,10,11,15,16,17,18:
one_by_Rm_p2 = k*dy/(dx);
one_by_Rm_m2 = one_by_Rm_p2;
one_by_Rn_m2 = k*dx/dy;
one_by_Rn_p2 = one_by_Rn_m2;
// for nodes 22,23,24,25:
one_by_Rm_p3 = k*dy/(2*dx);
one_by_Rm_m3 = one_by_Rm_p3;
one_by_Rn_p3 = k*dx/dy;
one_by_Rn_m3 = 0;// [insulated surface]
// from the above resistances we may calculate the sum_one_by_Rij as
// nodes : 1,2,3,4:
sum_one_by_Rij1 = 4.66;
// nodes : 8,9,10,11,15,16,17,18:
sum_one_by_Rij2 = 8.32;
// nodes : 22,23,24,25:
sum_one_by_Rij3 = 4.16;
// the nodal equations are obtained from equation (3-31)
// only node 4 has a heat generation term, Qi = 0 for all other nodes.
// the equations are listed below
// for node 1 : T8*one_by_Rn_m1+T2*one_by_Rm_p1+30*one_by_Rn_m1-sum_one_by_Rij1*T1 = 0;
// for node 4 : T5*one_by_Rm_p1+T3*one_by_Rm_m1+30*one_by_Rn_p1+T11*one_by_Rn_m1+Q-sum_one_by_Rij1*T4 = 0
// similar equations are obtained and we solve it by matrix method
Z = [-4.58 0.08 0 0 4 0 0 0 0 0 0 0 0 0 0 0;
0.08 -4.66 0.08 0 0 4 0 0 0 0 0 0 0 0 0 0;
0 0.08 -4.66 0.08 0 0 4 0 0 0 0 0 0 0 0 0;
0 0 0.16 -4.66 0 0 0 4 0 0 0 0 0 0 0 0;
4 0 0 0 -8.16 0.16 0 0 4 0 0 0 0 0 0 0;
0 4 0 0 0.16 -8.32 0.16 0 0 4 0 0 0 0 0 0;
0 0 4 0 0 0.16 -8.32 0.16 0 0 4 0 0 0 0 0;
0 0 0 4 0 0 0.32 -8.32 0 0 0 4 0 0 0 0;
0 0 0 0 4 0 0 0 -8.16 0.16 0 0 4 0 0 0;
0 0 0 0 0 4 0 0 0.16 -8.32 0.16 0 0 4 0 0;
0 0 0 0 0 0 4 0 0 0.16 -8.32 0.16 0 0 4 0;
0 0 0 0 0 0 0 4 0 0 0.32 -8.32 0 0 0 4;
0 0 0 0 0 0 0 0 4 0 0 0 -4.08 0.08 0 0;
0 0 0 0 0 0 0 0 0 4 0 0 0.08 -4.16 0.08 0;
0 0 0 0 0 0 0 0 0 0 4 0 0 0.08 -4.16 0.08;
0 0 0 0 0 0 0 0 0 0 0 4 0 0 0.16 -4.16];
C = [-15;-15;-15;-15-q2;0;0;0;0;0;0;0;0;0;0;0;0];
T1 = Z^(-1)*C;
printf("Nodes(1,2,3,4,8,9,10,11,15,16,17,18,22,23,24,25) temperature at 20 W/m respectively");
disp(T1);
Z1 = [-4.58 0.08 0 0 4 0 0 0 0 0 0 0 0 0 0 0;
0.08 -4.66 0.08 0 0 4 0 0 0 0 0 0 0 0 0 0;
0 0.08 -4.66 0.08 0 0 4 0 0 0 0 0 0 0 0 0;
0 0 0.16 -4.66 0 0 0 4 0 0 0 0 0 0 0 0;
4 0 0 0 -8.16 0.16 0 0 4 0 0 0 0 0 0 0;
0 4 0 0 0.16 -8.32 0.16 0 0 4 0 0 0 0 0 0;
0 0 4 0 0 0.16 -8.32 0.16 0 0 4 0 0 0 0 0;
0 0 0 4 0 0 0.32 -8.32 0 0 0 4 0 0 0 0;
0 0 0 0 4 0 0 0 -8.16 0.16 0 0 4 0 0 0;
0 0 0 0 0 4 0 0 0.16 -8.32 0.16 0 0 4 0 0;
0 0 0 0 0 0 4 0 0 0.16 -8.32 0.16 0 0 4 0;
0 0 0 0 0 0 0 4 0 0 0.32 -8.32 0 0 0 4;
0 0 0 0 0 0 0 0 4 0 0 0 -4.08 0.08 0 0;
0 0 0 0 0 0 0 0 0 4 0 0 0.08 -4.16 0.08 0;
0 0 0 0 0 0 0 0 0 0 4 0 0 0.08 -4.16 0.08;
0 0 0 0 0 0 0 0 0 0 0 4 0 0 0.16 -4.16];
C1 = [-15;-15;-15;-15-q1;0;0;0;0;0;0;0;0;0;0;0;0];
T2 = Z1^(-1)*C1;
printf("\n\n Nodes(1,2,3,4,8,9,10,11,15,16,17,18,22,23,24,25) temperature at 40 W/m respectively");
disp(T2);
// we know the numerical value that the convection should have
// the convection losss at the top surface is given by
qc1 = 2*h*[(dx/2)*(T1(1)-Tinf)+dx*(T1(2)+T1(3)-2*Tinf)+(dx/2)*(T1(4)-Tinf)];// [W] for 20W/m, the factor of 2 accounts for both sides of section
qc2 = 2*h*[(dx/2)*(T2(1)-Tinf)+dx*(T2(2)+T2(3)-2*Tinf)+(dx/2)*(T2(4)-Tinf)];// [W] for 40W/m
printf("\n\n the convection loss at the top surface is given by (for 20 W/m heat generation) %f W",qc1);
printf("\n\n the convection loss at the top surface is given by (for 40 W/m heat generation) %f W",qc2);
|
0587b339d6ea3efa68c9b29f5e3954f3dfda57ef | 449d555969bfd7befe906877abab098c6e63a0e8 | /331/CH7/EX7.14/Example_7_14.sce | 3e7f9f3ca4d45d11ccccbf436cebdea0d53793d3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 389 | sce | Example_7_14.sce | //Caption: Sample Size for Determining Sample Mean
//Example7.14
//Page219
clc;
Var = 64;// variance of axial length of pistons in mm
Std = sqrt(Var);
D = 2;// deviation from mean length in mm
alpha = 0.05;//significance level
alpha = alpha/2;
z = standard_normal_zstat(alpha)
n = (z*Std/D)^2;
disp(ceil(n),'Sample Size n =')
//Result
//Sample Size n =
//
// 62. |
2b6c73ccdcddbe05e99b657bac38465a95842419 | 449d555969bfd7befe906877abab098c6e63a0e8 | /67/CH5/EX5.1/example51.sce | 96efb1bfe86fa160f856ad7f42e9d6509619e612 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 124 | sce | example51.sce | //Example 5.1
//Obtain the Bode plot
clc;
s=%s;
H=syslin('c',2*10^4/(s^2+100*s+10^4));
bode(H,0.1,10000);
funcprot(0); |
8bcbb0581dd698601b701d2e5070f20a2d84a273 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2459/CH20/EX20.5/Ex20_5.sce | f9f4000657236572b3766f2f9e8ac86fce660d73 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 947 | sce | Ex20_5.sce | //chapter20
//example20.5
//page441
Vin=24 // V
Vout=12 // V
Rs=160 // ohm
Rl_min=200 // ohm
Is=(Vin-Vout)/Rs // in ampere
// minimum load occurs when Rl tends to infinity so
Il_min=0
// maximum load occurs when Rl=200 ohm
Il_max=Vout/Rl_min // in ampere
Iz_min=Is-Il_max // in ampere
Iz_max=Is-Il_min // in ampere
printf("current through series reistance = %.3f mA \n \n",Is*1000)
printf("minimum load current = %.3f mA \n",Il_min*1000)
printf("maximum load current = %.3f mA \n",Il_max*1000)
printf("minimum zener current = %.3f mA \n",Iz_min*1000)
printf("maximum zener current = %.3f mA \n \n",Iz_max*1000)
printf("comment : current Is through Rs is constant.\nAs load current increases from 0 to 60 mA, zener current decreases from 75 to 15 mA, \nmaintaining Is constant.\nThis is the normal operation of zener regulator \ni.e.Is and Vout remain constant inspite of changes in load or source voltage.")
|
338125e791538b2437d841dcc1e2ba42c8f7dd05 | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH5/EX5.11/5_11.sce | 9fc5a8281916c0d13a3d28e4eb273a7827ff4007 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 134 | sce | 5_11.sce | w0=1E6
wb=1000
V=0.05
I=5E-3
R=V/I
Q0=w0/wb
L=R*Q0/w0
C=1/(w0*w0*L)
Vl=w0*L*I
Vc=Vl
w1=w0-wb/2
w2=w0+wb/2
disp(w2,w1,Vc,Vl,C,L,Q0,R) |
7d3ee54e7d103dd409e81ef8cae02f4a0a8b7288 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1808/CH2/EX2.9/Chapter2_Example9.sce | 2f82f7c96e5f180068d877f0ab5313ef0219e46d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,023 | sce | Chapter2_Example9.sce | clc
clear
//INPUT DATA
a=74;//Mass of constituent C
b=4.3;//Mass of constituent H2
c=2.7;//Mass of constituent S
d=1.5;//Mass of constituent N2
e=5.5;//Mass of constituent H2O
f=5;//Mass of constituent O2
g=7;//Mass of constituent ash
a1=6.166;//Moles of constituent C
b1=1.075;//Moles of constituent H2
c1=0.084;//Moles of constituent S
d1=0.053;//Moles of constituent N2
e1=0.3055;//Moles of constituent H2O
f1=0.156;//Moles of constituent O2
g1=0;//Moles of constituent ash
X1=26.955;//Moles of products N2
//CALCULATIONS
//C+O2=CO2
x1=a1;//Moles of CO2 required
//H2+(1/2)O2=H20
x2=b1/2;//Moles of H2 required
//S+O2=SO2
x3=c1;//Moles of O2 required
x4=d1;//Moles of O2 required
x5=e1;//Moles of O2 required
x5=f1;//Moles of O2 required
x6=g1;//Moles of O2 required
X=x1+x2+x3+x4+x5+x6;//total moles of products
Y=a1+(b1+e1)+(2*X1)+(X)+c1;//Total moles of products required
//OUTPUT
printf('For 100 percentage excess air used,Total moles of products required is %3.3f',Y)
|
92197a1be429337b3f5fd2f3276bc2392a4601d1 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/BV4.prev.tst | 53e32f33e1d858395f1f26d018835ec6cec9f058 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 24 | tst | BV4.prev.tst | [1,2,-5] - = [-1,-2,5]
|
3658fe5660ad3fb41ea6c601f747ada81bb3d42e | b34461c9ddff1ba130b67023d6e568ada42830dc | /workspace/mission N2.sce | a0dd594cfd96fa4db800d8a341ea3f358f612cb7 | [] | no_license | AdrienKegler/Projet-Exolife | f72287fdc41a07b88f03b8346dafab93b4539b07 | 249f0861dc4ba3f2a7639ea60b7d12b45e717933 | refs/heads/master | 2020-05-25T14:05:45.213740 | 2017-03-17T09:16:20 | 2017-03-17T09:16:20 | 84,937,694 | 0 | 0 | null | 2017-03-15T10:15:55 | 2017-03-14T10:45:25 | Scilab | UTF-8 | Scilab | false | false | 800 | sce | mission N2.sce | // Etape 1
// Convertion de l'image en matrice
path_name = 'D:\Users\ADRIEN KEGLER\Documents\Visual Studio 2015\Projects\Exolife\Projet-Exolife\images\Formes.pbm';
img_in = readpbm (path_name);
// Etape 2
// Affichage de l'image de base
display_gray(img_in);
// Etape 3
// Creation de l'element structurant
structurant = zeros(3,3);
structurant = [0,0,0;255,255,255;0,0,0];
// Etape 4
// Erosion de l'image
image_1 = erosion(img_in,structurant,2,2);
// Etape 5
// Dilation de l'image
image_out = dilatation(image_1,structurant,2,2);
// Etape 6
// Affichage de l'image finale
figure;
display_gray (image_out);
//Etape 7
// Enregistrer la matrice sous forme d'image
writepbm (image_out,"D:\Users\ADRIEN KEGLER\Documents\Visual Studio 2015\Projects\Exolife\Projet-Exolife\images\mission_N2.pbm");
|
a630cb19ad2cedda09c9fd4d4b29e70146411685 | b73e9d989ebb6c74535238e10eede063a5d7e66b | /collocation_anal_least_galerkin_cubic.sce | 9d64cfccb09d1fa31a08c6273b82003fb021fd93 | [] | no_license | ParthaSurve/CODES_SEM_VI | 930a520ccdbc7cb389dac6b6f03900674b5e1a6b | 1f6afa9b92ad8263d0773ce0f90f9ffa5943b8e4 | refs/heads/master | 2021-01-21T05:13:44.089655 | 2017-02-25T17:46:44 | 2017-02-25T17:46:44 | 83,149,933 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,640 | sce | collocation_anal_least_galerkin_cubic.sce | //
// AEROSPACE STRUCTURES II
// Assignment 1
//--------------------------------------------------------//
// Created : 3-02-2017
// Weighted Residual Methods : Comparing Least-Square_Collocation_Galerkin_analytical
// Ref: P.Seshu
// Author: Partha Surve (SC14B036, Aerospace Engineering 3rd Year, IIST)
//analytical solution
clc;
clear;
clf;
y_ana=zeros(1,21)//analytical solution
y1=zeros(1,21)
y2=zeros(1,21)
y3=zeros(1,21)
y4=zeros(1,21)
x_num=zeros(1,21)
//The location of the discrete points where the residual is put to zero
for i= 0.7//0.6:0.1:0.9
x1 = 0+i
x2 = 2-i
A=[(x1*x1 -2*x1 +2),(x1*x1*x1 -2*x1*x1 +6*x1 -4);(x2*x2 -2*x2 +2),(x2*x2*x2 -2*x2*x2 +6*x2 -4)]
c=[1.5*x1;1.5*x2]
[x0,nsA]=linsolve(A,c)
for x= 0:0.1:2
//Approx solution using Collocation Method
y2(x*10+1)= 2.5.*x +x0(1).*(x-2).*x + x0(2).*x.*x.*(x-2)
x=[0:0.1:2]
//Analytical solution of the ODE
y1(x*10+1)=(3/sin(2)).*sin(x) + x
end
plot(x,y2,"r");
plot(x,y1,"g");
end
//Least Square Method
//weights of the Approximate solution
//W1 = 0.804165
//W2 = 0.26727
for x= 0:0.1:2
y3(x*10+1)= 2.5.*x -0.8041.*(x-2).*x - 0.26727.*x.*x.*(x-2)
//Galerkin method a2 = 0.97368 a3 = 0.2763
y4(x*10+1)= 2.5.*x -0.97368.*(x-2).*x - 0.2763.*x.*x.*(x-2)
end
x=[0:0.1:2]
plot(x,y3,"b");
plot(x,y4,"y");
title('Collocation Method', "fontsize", 5);
xlabel("Y value", "fontsize", 5);
ylabel("X value","fontsize", 5);
hl=legend(['Collocation Method';'Analytical';'LeastSquare Method']);
|
51768cda4069dbe3742acd91f24f2e8bc2ca38d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1322/CH5/EX5.5.a/47ex4_a.sce | cd299ad72d44f513f17b31cbfc11d016a32a3d74 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 129 | sce | 47ex4_a.sce |
// 4(5n-2)
clear;
clc;
close;
mprintf("the first five terms of the sequence are: \n");
for n=1:5
disp(4*(5*n-2))
end
|
193924832f86c8f60eae8e49529e5038b4cae45d | fcb3e76417d3240b7c7c5842c8d4bec0671cf203 | /Statistical_Analysis/Header.sci | 2036f35b40c5ab2cdcfc8bb5d9b824212f71e217 | [] | no_license | BackupTheBerlios/ecm | 9f70003cb8db9f2ecef09b7cd838161cf7d8d796 | fd9c28004bcac612a725420cec3bd1d44d534f95 | refs/heads/master | 2021-01-01T16:05:26.138833 | 2005-04-26T09:58:02 | 2005-04-26T09:58:02 | 39,963,776 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,001 | sci | Header.sci | // Header file for the periodic series statistical forecast
// The file is a Scilab script and it is used to define some variables
// needed in the execution of the analysis script.
// Resetting the environment
clear;
// Insert the value of the debug variable. If setted to true (%T)
// the script will prompt useful information
_DEBUG_ = %F ;
// Insert the number of the main periodicity
// The value of the main periodicity of the hystorical series can be found
// using the Autocorrelation Analysis available also in the R programming language
Main_periodicity = 672;
// Insert path and file name of the file containing the data
File_name = 'cons_real_3.m';
// Insert the number of periods to use to perform the analysis
// It would be desirable to use the number of periods given by the
// Partial Autocorrelation function. (????)
Num_periods_analysis = 7;
// Insert the number of point to forecast.
// It would be better use a multiple of the main period
Num_points_forecast = 672;
|
9943c5d8c0739f87fddea55b335575b68a2917d6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /122/CH8/EX8.3/exa8_3.sce | 15cd936c0cdafd0e1f8f2e5958330c40597cfc48 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,510 | sce | exa8_3.sce | // Example 8-3
// Computation of Optimal solution 2
clear; clc;
xdel(winsid()); //close all windows
// please edit the path
// cd "";
// exec("plotresp.sci");
s = %s;
G = 4 / ( s^3+ 6*s^2 + 8*s + 4);
t = 0:0.1:8; u = ones(1,length(t));
// lesser points for a rough check
t1 = 0:0.01:8; u1 = ones(1,length(t1));
// more points for a rigorous check
k = 0;
mprintf('Processing...\n');
for K = 3:0.2:6
for a = 0.1:0.1:3
Gc = K * (s + a)^2 / s;
H = G * Gc;
H = syslin('c', H /. 1);
y = csim(u,t,H);
m = max(y);
if m < 1.15 & m > 1.08 then
// give a margin of 0.02 for the rough check - 1.08
y = csim(u1,t1,H);
m = max(y);
if m < 1.15 & m > 1.10 then
// check for settling time
l =length(t1);
while y(l) > 0.98 & y(l) < 1.02 ; l = l-1; end
ts = (l-1) * 0.01;
if ts < 3.00 then
k = k + 1;
solution(k,:) = [K a m ts];
end
end
end
end
if modulo(K*10,2) == 0 then mprintf(' completed %d%%\n', (K - 3)/3*100)
end
end
disp(solution,'solution [K a m ts] = ');
[x O] = gsort(solution(:,3),'r','i');
for i = 1:k
sortsolution(i,:) = solution( O(i) , :);
end
disp(sortsolution,'sortsolution [K a m ts] = ');
// Response with smallest overshoot
x = sortsolution(1,:);
K = x(1); a = x(2);
Gc = K * (s + a)^2 / s;
H = G * Gc;
H = syslin('c', H /. 1);
plotresp(u,t,H,'Step Response with smallest overshoot');
disp(Gc,'Gc = ');
disp(H,'H = ');
|
324c34fed41277f8c14c6341ede85c7bb66336d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /569/CH5/EX5.44/5_44.sci | e48b606ead1698ec127a660d78113e40dd03499e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 215 | sci | 5_44.sci | // Calculate the minimum frequency and phase shift
clc;
M=0.95;
tc=1.5*10^-3;
w=(1/tc)*[(M^2)/(1-M^2)]^0.5;
disp(w,'minimum frequency (rad/s)')
ph={(%pi/2)-[atan(w*tc)]}*(180/%pi);
disp(ph,'phase shift(deg)') |
cce86e24cbbf0fc23b6f6b8a22e5a37b05d59d1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2438/CH6/EX6.17/Ex6_17.sce | e86a508cd5251d5e5cb2251f5f3bf48ab40ada25 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 724 | sce | Ex6_17.sce | //===========================================================================
// chapter 6 example 17
clc;
clear;
//input data
C = 0.03*10^-6; //capacitance in F
d = 0.001; //thickness in m
er = 2.6; //dielectric constant
e0 = 8.85*10^-12; //dielectric strength
E0 = 1.8*10^7
//formula
//C=e0*er*A/d
//e0=v/d
//calculation
A = (C*d)/(e0*er); //area of dielectric needed in m^2
Vb = E0*d; //breakdown voltage in m
//result
mprintf('area=%3.2f.m^2\n',A);
mprintf(' breakdown voltage=%3.1e.V\n',Vb);
//===========================================================================
|
3b3756858880a4379630788f98c117ee14be37ef | 449d555969bfd7befe906877abab098c6e63a0e8 | /1436/CH6/EX6.4/ex6_4.sce | d8de0182ff49ec042a559e37bc79b87d5888ef48 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 526 | sce | ex6_4.sce | // Example 6.4, page no-373
clear
clc
//(a)
a=5*10^-4
l=8
dens=6*1000
w=a*l*dens
printf("(a)\nWeight of the displacer if weighed in air = %d kg",w)
//(i)
sbr1=23
wloss1=w-sbr1
L1=wloss1/(1000*a)
printf("\n(i)\tL1=%dm",L1)
//(ii)
sbr2=22
wloss2=w-sbr2
L2=wloss2/(1000*a)
printf("\n(ii)\tL2=%dm",L2)
//(iii)
sbr3=21
wloss3=w-sbr3
L3=wloss3/(1000*a)
printf("\n(iii)\tL3=%dm",L3)
//(b)
level=8
wt=a*level*1000
spring=w-wt
printf("\n(b):when the tank is full\nSpring Balance reading = %d kg",spring)
|
6db30f34b01d3f0b6a9024a3013d4f6f45aebb18 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1962/CH5/EX5.2/example5_2.sce | fcc8db190e08be806720c1176362d1a343bee571 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 387 | sce | example5_2.sce |
//example 5.2
//page 194
clc; funcprot(0);
//initialisation of variable
rho=1.94;
V1=80;
g=32.2;
Q=8;
z2=3;//elevation
pi=3.14;
theta=60/180*pi;
V2=sqroot(2*g*(V1^2/2/g-3));
Rx=rho*Q*(V1-V2*cos(theta));
Ry=rho*Q*(V2*sin(theta));
R=sqroot(Rx^2+Ry^2);
disp(R,"resultant force on vane (lbs)");
th=atan(Ry/Rx);
disp(th*180/pi,"angle at which force is applying")
clear
|
9ee118891d6053bae76650a49835c964d3546577 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1472/CH15/EX15.2.a/15_2a.sce | db749573726fae4704ff11e9f774c88ddcaf8aed | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 293 | sce | 15_2a.sce | clc
//initialization of varaibles
disp("From mollier chart and table 3,")
h1=1371 //B/lb
h2s=1149 //B/lb
h3=118 //B/lb
e=0.9
disp("Neglecting pump work,")
Q1=h1-h3
W=156 //B/lb
eta1=W/Q1
Q=h1-W-h3
UE=W+e*Q
fraction = UE/Q1
//results
printf("Fraction supplied = %.2f",fraction)
|
c51163e38a284447e228638e90bea5bb1f8d8f30 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3788/CH5/EX5.4.1/Ex5_4_1.sce | ff73ca724f6c13b12bd9d84fe9b73fcc69b6bffa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 850 | sce | Ex5_4_1.sce | //example 5.4.1
//Calculate the bitrate ,Symbol rate BW and BER values
//Variables
clc
clear
CN = 25
NoiseBw = 1.0
r=0.3
Rs = 1
Bocc = Rs*(1+r)
rainattenuation = 3
printf("The occupied bandwidth of the RF signal is %f Mhz \n",Bocc)
//BPSK
Rb = 1
printf("The bit rate is %f Mbps \n",Rb)
BERclearair = erfc((2*CN)^(1/2))
printf("BER in clear air for BPSK is %f \n Since the all BER values are -ve high orders \n the BER values are shown zero\n",BERclearair)
//QPSK
Rb1 = 2*Rs
printf("The bit rate for QPSK is %f Mbps \n",Rb1)
BERclearair1 = erfc((CN)^(1/2))
printf("BER in clear air for QPSK is %f \n",BERclearair1)
CN1 = CN - rainattenuation
//BPSK
BERrain = erfc((2*CN1)^(1/2))
printf("BER in rain for BPSK is %f \n",BERrain)
//QPSK
BERrain1 = erfc((CN1)^(1/2))
printf("BER in rain for BPSK is %f \n",BERrain1)
|
86746f9fba7a88b2ea7fdd9e9c2b0632564a2197 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH5/EX5.46/Ex5_46.sce | fc600bbdfc614acac493960197388d33549f44db | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 114 | sce | Ex5_46.sce | clear
//Given
E=1
R=2
//Calculation
r=(E*R)-E
printf("\n The internal resisatnce of aech cell is %0.3f ohm",r)
|
4fc43b91763050398b30db64195a2be4ee2b1066 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2705/CH12/EX12.1/Ex12_1.sce | 6acd59e30f2b095530db31c89cb8a9a914b74b85 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,241 | sce | Ex12_1.sce | clear;
clc;
disp('Example 12.1');
// aim : To determine the
// (a) throat area
// (b) exit area
// (c) Mach number at exit
// Given values
P1 = 3.5;// inlet pressure of air, [MN/m^2]
T1 = 273+500;// inlet temperature of air, [MN/m^2]
P2 = .7;// exit pressure, [MN/m^2]
m_dot = 1.3;// flow rate of air, [kg/s]
Gamma = 1.4;// heat capacity ratio
R = .287;// [kJ/kg K]
// solution
// given expansion may be considered to be adiabatic and to follow the law PV^Gamma=constant
// using ideal gas law
v1 = R*T1/P1*10^-3;// [m^3/kg]
Pt = P1*(2/(Gamma+1))^(Gamma/(Gamma-1));// critical pressure, [MN/m^2]
// velocity at throat is
Ct = sqrt(2*Gamma/(Gamma-1)*P1*10^6*v1*(1-(Pt/P1)^(((Gamma-1)/Gamma))));// [m/s]
vt = v1*(P1/Pt)^(1/Gamma);// [m^3/kg]
// using m_dot/At=Ct/vt
At = m_dot*vt/Ct*10^6;// throat area, [mm^2]
mprintf('\n (a) The throat area is = %f mm^2\n',At);
// (b)
// at exit
C2 = sqrt(2*Gamma/(Gamma-1)*P1*10^6*v1*(1-(P2/P1)^(((Gamma-1)/Gamma))));// [m/s]
v2 = v1*(P1/P2)^(1/Gamma);// [m^3/kg]
A2 = m_dot*v2/C2*10^6;// exit area, [mm^2]
mprintf('\n (b) The exit area is = %f mm^2\n',A2);
// (c)
M = C2/Ct;
mprintf('\n (c) The Mach number at exit is = %f\n',M);
// End
|
3cb447fb9e40d0c97abac450b494c8099119d98c | 449d555969bfd7befe906877abab098c6e63a0e8 | /476/CH6/EX6.22/Example_6_22.sce | d8f98856e10ab24191e146fe05826cc946c1437e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 449 | sce | Example_6_22.sce | //A Textbook of Chemical Engineering Thermodynamics
//Chapter 6
//Thermodynamic Properties of Pure Fluids
//Example 22
clear;
clc;
//Given:
//intg(alphadP) = -556.61 J/mol
P = 50; //pressure in bar
T = 300; //temperature in K
R = 8.314; //ideal gas constant
//To determine the fugacity of gas
//Using equation 6.130 (Page no. 230)
f = P*%e^(-556.61/(R*T));
mprintf('Fugacity of gas at 50 bar and 300 K is %i bar',f);
//end |
02c379d2b27bb3957bd1ae1f294d00eb0496ceff | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH10/EX10.9.b/solution10_9.sce | 5b03a3b4174e7d82c6328cc7796e21c096337979 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,105 | sce | solution10_9.sce | //Function to round-up a value such that it is divisible by 5
function[v] = round_five(w)
v = ceil(w)
rem = pmodulo(v,5)
if (rem ~= 0) then
v = v + (5 - rem)
end
endfunction
//Obtain path of solution file
path = get_absolute_file_path('solution10_9.sce')
//Obtain path of data file
datapath = path + filesep() + 'data10_9.sci'
//Obtain path of function file
funcpath = path + filesep() + 'functions10_9.sci'
//Clear all
clc
//Execute the data file
exec(datapath)
exec(funcpath,[-1])
//Calculate the initial force in the spring P1 (N)
P1 = (%pi/4)*(dia^2)*(Pb)
//Calculate the deflection of the spring when the valve is open delta2 (mm)
delta2 = delta1 + l
//Calculate the force in the spring when the valve is open P2 (N)
P2 = (delta2/delta1)*P1
//Determine the maximum force in the spring P (N)
if (P2 > P1) then
P = P2
else
P = P1
end
//Calculate the permissible shear stress in the spring tau (N/mm2)
tau = (r/100)*Sut
//Calculate the Wahl Factor K
K = (((4 * C) - 1)/((4 * C) - 4)) + (0.615/C)
//Calculate the wire diameter d (mm)
d = sqrt(K * ((8 * P * C)/(%pi * tau)))
dround = ceil(d)
//Calculate the mean coil diameter D (mm)
D = C * dround
//Calculate the number of active turns N
N = (delta1 * G * (dround^4))/(8 * P1 * (D^3))
Nround = ceil(N)
//Calculate the total number of turns
Nt = active_coils(endtype, Nround)
//Calculate the solid length of the spring s (mm)
s = Nt * dround
//Calculate the maximum deflection of the spring deltamax (mm)
deltamax = (8 * P * (D^3) * Nround)/(G * (dround^4))
//Calculate the free length of the spring len (mm)
len = s + ((Nt - 1)*g) + deltamax
lround = round_five(len)
//Calculate the pitch of the coils p (mm)
p = lround/(Nt - 1)
//Print results
printf("\nWire diameter(d) = %f or %f mm\n",d,dround)
printf("\nMean coil diameter(D) = %f mm\n",D)
printf("\nNumber of active coils(N) = %f or %d\n",N, Nround)
printf("\nTotal number of coils(Nt) = %d\n",Nt)
printf("\nSolid length of the spring(s) = %f mm\n",s)
printf("\nFree length of the spring(len) = %f or %f mm\n",len,lround)
printf("\nPitch of the coil(p) = %f mm\n",p)
|
c5aaab75e81ca512880a8862c4206cb72ef45f2e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2672/CH3/EX3.30/Ex3_30.sce | b199032265bc2745ab4343ee36193efa61fcdf19 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,195 | sce | Ex3_30.sce | //Example 3_30
clc;
clear;
close;
format('v',5);
//given data :
V=200;//V
f=50;//Hz
ZA=4+%i*3;//ohm
ZB=10-%i*7;//ohm
ZC=6+%i*5;//ohm
Z=ZC+ZA*ZB/(ZA*ZB);//ohm
IC=V/Z;//A
ICmag=abs(IC);//A
ICang=atand(imag(IC)/real(IC));//degree
disp(ICang,ICmag,"Current IC, magnitude(A) & Angle(degree) are");
IA=IC*ZB/(ZA+ZB);//A
IAmag=abs(IA);//A
IAang=atand(imag(IA)/real(IA));//degree
disp(IAang,IAmag,"Current IA, magnitude(A) & Angle(degree) are");
IB=IC*ZA/(ZA+ZB);//A
IBmag=abs(IB);//A
IBang=atand(imag(IB)/real(IB));//degree
disp(IBang,IBmag,"Current IB, magnitude(A) & Angle(degree) are");
fi=ICang;//degree//angle of pf
pf=cosd(fi);//Power Factor(lagging)
disp(pf,"Power Factor(lagging)");
VC=IC*ZC;//V
VCmag=abs(VC);//A
VCang=atand(imag(VC)/real(VC));//degree
disp(VCang,VCmag,"Voltage VC, magnitude(V) & Angle(degree) are");
VA=IC*ZA*ZB/(ZA+ZB);//V
VAmag=abs(VA);//A
VAang=atand(imag(VA)/real(VA));//degree
disp(VAang,VAmag,"Voltage VA, magnitude(V) & Angle(degree) are");
VB=IC*ZA*ZB/(ZA+ZB);//V
VBmag=abs(VB);//A
VBang=atand(imag(VB)/real(VB));//degree
disp(VBang,VBmag,"Voltage VB, magnitude(V) & Angle(degree) are");
//Answer is not accurate in the book.
|
19f682b934a06d80b807d944c8d37cf0bf14af1a | 56d549f3f0dc799a7efd55f83a68d10dabc8fd38 | /Templates/CustomFunctionTemplate.tst | 403894ec176e0774f9dbf2f5ccb1c528f4b1a41d | [
"MIT"
] | permissive | patrickmichalina/FuryTech.OdataTypescriptServiceGenerator | 54743e70c66b03ea0fdefcb020f8cccd0e44ebc6 | 7123fc9029109799c025a4e914412be0fec73e74 | refs/heads/master | 2021-01-11T19:04:06.254006 | 2017-01-18T05:45:59 | 2017-01-18T05:45:59 | 79,307,315 | 0 | 0 | null | 2017-01-18T05:38:02 | 2017-01-18T05:38:02 | null | UTF-8 | Scilab | false | false | 150 | tst | CustomFunctionTemplate.tst | public async $functionName$($argumentWithType$): Promise<$returnType$> {
return this.$execName$('$functionFullName$'$argument$);
}
|
e92084f3df4297f87598cec97fd23251adcc30d7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1931/CH8/EX8.3/3.sce | c1a18ff6e2bd8b7a393e4777ae1e647d9bdb20a7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 3.sce | clc
clear
//INPUT DATA
w=4000*10^-10//wavelength in black body in m
t=1500//temperature of black body in k
h=6.625*10^-34// Planck's constant m^2 Kg /sec
c=3*10^8//velocity of light in m/s
Kb=1.38*10^-23//Boltzmann's constant in m^2 Kg s^-2 k^-1
//CALCULATION
Edw=((8*3.14*h*c)/w^5)*(1/(exp((h*c)/(w*Kb*t))-1))//The energy density per unit wavelength in a black body cavity in J/m^4
//OUTPUT
printf('The energy density per unit wavelength in a black body cavity is %3.5f J/m^4',Edw)
|
69cc7d0499c77aa443f68e8676be615b771d2b29 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH11/EX11.17/11_17.sce | 6b74b7609f3f6859f5174fb8068be5e4b374692b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,204 | sce | 11_17.sce | //pathname=get_absolute_file_path('11.17.sce')
//filename=pathname+filesep()+'11.17-data.sci'
//exec(filename)
//Pressure at which steam is generated(in bar):
p=20
//Temperature at which steam is generated(in C):
Ts=300
//Temperature of feed water supplied to the boiler(in C):
T1=50
//Calorific value of fuel(in kJ/kg):
C=30000
//Rate at which coal is used(in kg/hr):
r=600
//Rate at which steam is generated(in kg/hr):
r1=5000
//Temperature of the boiler unit(in C):
T=100
//Latent heat(in kJ/kg.K):
L=2257
//Steam generation per unit coal burnt per hour:
ms=r1/r
//Final enthalpy of the steam(in kJ/kg):
hfi=3023.5
//Enthalpy of feed water(in kJ/kg):
hfw=209.33
//Overall efficiency of boiler:
no=ms*(hfi-hfw)/C*100
//Equivalent evaporation of boiler unit(in kg steam per kg of coal):
Ee=ms*(hfi-hfw)/L
//Equivalent evaporation of boiler unit at 100 C(in kg/hr):
Eea=Ee*r
//After fitting economiser the enthalp of feed water(in kJ/kg):
hfw1=313.93
//Modified overall efficiency of boiler unit:
nom=no+5
//Coal consumption(in kg/hr):
mc=(hfi-hfw1)*r1*100/(C*nom)
//Saving of coal(in kg/hr):
s=r-mc
printf("\n RESULT \n")
printf("\nSaving of coal = %f kg/hr",s) |
555b7974f17d55daa8d94fe7db002a2c34a34bfd | ebbbf54686324e54e06ee5e632789803820b2be5 | /bola_lab2.sce | ed1d702273c697a4165a2284c2f9f472724faa76 | [] | no_license | thiagojordao98/Scilab | 5e954843e40f0e05504734d0e54b65c28e7f0991 | 6679e5bffe68a841f5fd6ecedeaa374ad145154a | refs/heads/master | 2021-12-14T18:43:53.615065 | 2021-12-09T15:36:12 | 2021-12-09T15:36:12 | 194,143,611 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 324 | sce | bola_lab2.sce | function [h] = alt(t)
H = [446 485 441]
ti = [0.0970 0.263 0.598]
h = H(1) + ((H(2)-H(1))/(ti(2)-ti(1)))*(t-ti(1)) + ((H(3)-H(2))/(ti(3)-ti(2)) - ((H(2)-H(1))/(ti(2)-ti(1))))/(ti(3)-ti(1)).*((t-ti(1)).*(t-ti(2)))
endfunction
h1 = alt(1)
disp(h1)
t = 0.0970:0.001:1.0;
h = alt(t);
plot(t,h);
xgrid |
f93fd2f79832a18b59dc071455627ae2e271adf4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /503/CH2/EX2.3/ch2_3.sci | 6e97743a34792b007dff256950e802e10ec803ad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 605 | sci | ch2_3.sci | // Determination of mmf of the exciting coil
clc;
U_o=4*%pi*10^-7;
A1=.0001;
A2=.0002;
l1=.025*10^-2;
l2=.02*10^-2;
phi=.75*10^-3;
function [Re]=reluctance(l,U_r,A)
Re=l/(U_o*U_r*A);
endfunction
function [Ni]=mmf(R1,R2,R3)
Ni=phi*(R3+((R1*R2)/(R1+R2)));
endfunction
R_g1=reluctance(l1,1,A1);
R_g2=reluctance(l2,1,A1);
R_g3=reluctance(l2,1,A2);
disp(mmf(R_g1,R_g2,R_g3),'when U_r=1,mmf(AT)');
L1=l1*2*10^3;
L2=l2*10^3;
R_c1=reluctance(L1,5000,A1);
R_c2=reluctance(L1,5000,A1);
R_c3=reluctance(L2,5000,A2);
disp(mmf(R_c1+R_g1,R_c2+R_g2,R_c3+R_g3),'when U_r=5000,mmf(AT)'); |
fe7e2b1403fe3036629c930d4a869a3ca69e4223 | 449d555969bfd7befe906877abab098c6e63a0e8 | /926/CH3/EX3.7/Chapter3_Example7.sce | 80562526a2b425472abcd4a3bc77c7a4dfa384a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,340 | sce | Chapter3_Example7.sce | //Hougen O.A., Watson K.M., Ragatz R.A., 2004. Chemical process principles Part-1: Material and Energy Balances(II Edition). CBS Publishers & Distributors, New Delhi, pp 504
//Chapter-3, Illustration 7, Page 59
//Title: Calculation of density
//=============================================================================
clear
clc
//INPUT
W = 1; //Total weight of mixture in lb
w = [.111,.889]; //Weight of hydrogen and oxygen respectively in lb
MW = [2,32]; //Molecular weight of hydrogen and oxygen respectively in lb/lb mole
T = 30; //Given temperature in degree C
T2 = 273; //Temperature at standard conditions in K
P1 = 29; //Given prssure in in. Hg
P2 = 29.92; //Pressure at standard conditions in in. Hg
//CALCULATIONS
n1 = w(1)/MW(1); //No of moles of H2 in lb mole
n2 = w(2)/MW(2); //No of moles of O2 in lb mole
N = n1+n2; //Total molal quantity in lb mole
T1 = T+273; //given temperature in K
V2 = N*359; //Volume at standard condition in cu ft
V1= V2*(P2/P1)*(T1/T2); //Volume of the mixture at given conditions in cu ft
rho = W/V1; //Density of the mixture at given conditions in lb per cu ft
//OUTPUT
mprintf('\n The density of the mixture at %2.0f in. Hg and %2.0f degree C is %5.4f lb per cu ft',P1,T,rho);
//====================END OF PROGRAM===========================================
|
d2c996feec507be03a8f31a88d45696996b1b137 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2498/CH3/EX3.15/ex3_15.sce | f7aef5651d175aa5a6e627c50d7a4009af0d65a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 252 | sce | ex3_15.sce | // Exa 3.15
clc;
clear;
close;
format('v',6)
// Given data
V_Z = 15;// in V
Vin = 24;// in V
R = 27;// in ohm
I = (Vin-V_Z)/R;// in A
// The minimum value of R_L
R_Lmin = V_Z/I;// in ohm
disp(R_Lmin,"The minimum value of R_L in ohm is");
|
dcf2eeeb8660b36cfff9d0566d06b6bf6cd712ff | 4d2a10d4e18a35dc60f412d264be52e515fad64e | /scilab_scripts/irradiance_maps_parser.sce | 12ac5deeff0226b212d3c9fd9e8db2ee1cce7fc2 | [] | no_license | bazjo/brdf_utils | 713075c81b14a0b0f5d6e5f90a2e0cf931c84292 | 3a7f8ac54b39ca5d64286e98d5129a9f9f60f5e8 | refs/heads/master | 2021-02-13T23:08:40.925287 | 2020-04-18T09:24:53 | 2020-04-18T09:24:53 | 244,743,572 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 725 | sce | irradiance_maps_parser.sce | irradiance_map_cartesian = zeros(256, 256, 19) //x,y,s
irradiance_map_spherical = zeros(360, 90, 19) //a,e,s
/*Parse Irradiance Maps*/
for s = 0:18
path = "io/irradiance_maps/100k_Rays/" + string(s*5) + "_deg.txt"
lines = mgetl(path)
for x = 29:284
line = lines(x)
values = tokens(line)
irradiance_map_cartesian(x-28,:,s+1) = strtod(values)
end
end
/*Transform into half-spere shell coordinate system*/
for a = 1:360
for e = 1:90
for s = 1:19
r = 128 * tand((90-e)/2)
x = round(r*cosd(a))+128
y = round(r*sind(a))+128
irradiance_map_spherical(a,e,s) = irradiance_map_cartesian(x, y, s)
end
end
end
|
99fe8c6fb5a923d3da957f519b1fe6184023388d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH14/EX14.7/14_07.sce | 97ca79278b4b552742ea0144415b0a72bc4ddeb9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 259 | sce | 14_07.sce | //Chapter 14, Problem 7
clc;
Vrms=240; //rms voltage
Vp=Vrms/0.707; //peak voltage
Vav=0.637*Vp; //average value of voltage
printf("Peak voltage = %f V\n\n",Vp);
printf("Mean value = %f V",Vav);
|
e4e715d66fce946ca670c21a4392e44ff56b4c5e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3720/CH3/EX3.8/Ex3_8.sce | 7f8d9b715c75ac5feaabb7bc8af15566e969bbb8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 578 | sce | Ex3_8.sce | // Example 3_8
clc;clear;funcprot(0);
// Properties
rho=1000;// The density of lake water through out
g=9.81;//The acceleration due to gravity in m/s^2
// Given values
s=8;// m
b=1.2;//m
h_c=s+b/2; // m
// Calculation
P_ave=(rho*g*h_c)/1000;// kN/m^2
printf('The average pressure on the door,P_ave=%0.1f kN/m^2\n',P_ave);
A=1*1.2;// m^2
F_r=P_ave*A;// kN
printf('The resultant hydrostatic force on the door,F_r=%0.1f kN\n',F_r);
y_p=s+b/2+((b^2)/(12*(s+b/2)));// m
printf('The pressure center,y_p=%0.2f m\n',y_p);
// The answer vary due to round off error
|
acbddaac526fc3d77e806a672017096adb6328f6 | f0919c8ea73f22939a890aa4f8327f8200344d2b | /test/filter.tst | 8696ba4efce86f9019d9b1515363d1888536613c | [] | no_license | kalex375/OVC | af5e91f90754454b90f339e846c5b9112d38d6c8 | f4b47dfc497299c4944b4ff9b93253c279012454 | refs/heads/master | 2021-05-31T07:55:44.326597 | 2013-12-02T14:15:52 | 2013-12-02T14:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,363 | tst | filter.tst | PL/SQL Developer Test script 3.0
66
select
cf.id,
cf.project_id,
cf.is_auto_lock,
p.name project_name,
filter.*
from
ovc_change_filter cf,
ovc_filter f,
ovc_project p,
(select
upper(:p_obj_type) obj_type,
upper(:p_obj_owner) obj_owner,
upper(:p_obj_name) obj_name,
upper(:p_modify_user) modify_user,
upper(:p_modify_terminal) modify_terminal,
upper(:p_modify_os_user) modify_os_user
from
ovc_change_filter cf,
ovc_filter f
where
cf.filter_id = f.id and
cf.type = :p_type and
cf.enabled='T' and
f.ignore= 'F' and
(upper(:p_obj_type) like f.obj_type or (:p_obj_type is null and f.obj_type='%'))and
(upper(:p_obj_owner) like f.obj_owner or (:p_obj_owner is null and f.obj_owner='%')) and
(upper(:p_obj_name) like f.obj_name or (:p_obj_name is null and f.obj_name='%')) and
(upper(:p_modify_user) like f.modify_user or (:p_modify_user is null and f.modify_user='%')) and
(upper(:p_modify_terminal) like f.modify_terminal or (:p_modify_terminal is null and f.modify_terminal='%')) and
(upper(:p_modify_os_user) like f.modify_os_user or (:p_modify_os_user is null and f.modify_os_user='%'))
minus
select
upper(:p_obj_type) obj_type,
upper(:p_obj_owner) obj_owner,
upper(:p_obj_name) obj_name,
upper(:p_modify_user) modify_user,
upper(:p_modify_terminal) modify_terminal,
upper(:p_modify_os_user) modify_os_user
from
ovc_change_filter cf,
ovc_filter f
where
cf.filter_id = f.id and
cf.type = :p_type and
cf.enabled='T' and
f.ignore= 'T' and
(upper(:p_obj_type) like f.obj_type or (:p_obj_type is null and f.obj_type='%'))and
(upper(:p_obj_owner) like f.obj_owner or (:p_obj_owner is null and f.obj_owner='%')) and
(upper(:p_obj_name) like f.obj_name or (:p_obj_name is null and f.obj_name='%')) and
(upper(:p_modify_user) like f.modify_user or (:p_modify_user is null and f.modify_user='%')) and
(upper(:p_modify_terminal) like f.modify_terminal or (:p_modify_terminal is null and f.modify_terminal='%')) and
(upper(:p_modify_os_user) like f.modify_os_user or (:p_modify_os_user is null and f.modify_os_user='%'))
) filter
where
cf.filter_id = f.id and
cf.project_id = p.id(+) and
cf.type = :p_type and
cf.enabled='T' and
f.ignore= 'F' and
(filter.obj_type like f.obj_type or (filter.obj_type is null and f.obj_type='%'))and
(filter.obj_owner like f.obj_owner or (filter.obj_owner is null and f.obj_owner='%')) and
(filter.obj_name like f.obj_name or (filter.obj_name is null and f.obj_name='%')) and
(filter.modify_user like f.modify_user or (filter.modify_user is null and f.modify_user='%')) and
(filter.modify_terminal like f.modify_terminal or (filter.modify_terminal is null and f.modify_terminal='%')) and
(filter.modify_os_user like f.modify_os_user or (filter.modify_os_user is null and f.modify_os_user='%'))
7
p_obj_type
0
5
p_obj_owner
0
5
p_obj_name
1
P_GL
5
p_modify_user
0
5
p_modify_terminal
0
5
p_modify_os_user
0
5
p_type
1
PROJECT
5
0
|
81856468cbeef694e3b4797d9bb0381c32cd0cd8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH3/EX3.5/3Ex5.sce | cbeaac9c48f00e92bcd1cdfbd6fddb2e1d49e64e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 163 | sce | 3Ex5.sce | //chapter 3 Ex 5
clc;
clear;
close;
//let value to be found is x and y
x=31.004-17.2386;
y=13-5.1967;
mprintf("(i) x=%.5f",x);
mprintf("\n(ii) y=%.5f",y)
|
36b584ec3d67fb6d0c2228fb1626f301f85e50b3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH4/EX4.23/4_23.sce | a9796fbe49d62c24c08548e213f8cc839224494f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 389 | sce | 4_23.sce | function [x,y]=polar_to_cart(r,theta)
theta=theta/180*%pi
x=r*cos(theta)
y=r*sin(theta)
endfunction
[I1x,I1y]=polar_to_cart(2,10)
[I2x,I2y]=polar_to_cart(3,120)
I1=complex(I1x,I1y)
I2=complex(I2x,I2y)
w=4
R=2
L=3
C=1/4
Xl=w*L*%i
Xc=1/(w*C*%i)
//deactivate source 2
i1=(R+Xl)/(R+Xl+Xc)*I1
i2=1/(R+Xl+Xc)*I2
i=i1+i2
disp(i) //answer is wrong in the book |
7186650d454243e14bad9df589bbb33bda7f29f8 | c5a6312b2689f29d943904ba13f3aca400a3a395 | /communication/first(3).sce | 450f4c1a157a56b5c776358bff23f0fd20302a50 | [] | no_license | orhitg/sem7 | 25b1430a300a28e8a70208abe06e776be08c695b | 89b1184cfb8a95c6b5a38ab7cff5fccc6f596e67 | refs/heads/master | 2021-01-12T17:58:23.080274 | 2016-11-12T07:38:50 | 2016-11-12T07:38:50 | 71,317,126 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 438 | sce | first(3).sce | Vc=input('Enter the value of Vc = ');
fc=input('Enter the value of fc = ');
fm=input('Enter the value of fm = ');
t=0:0.001:0.5;
m1=input('Enter the value of m1 = ');
m2=input('Enter the value of m2 = ');
m3=input('Enter the value of m3 = ');
subplot(311);
plot(Vc*(sin(2*3.14*fc*t)+m1*(sin(2*3.14*fm*t))));
subplot(312);
plot(Vc*(sin(2*3.14*fc*t)+m2*(sin(2*3.14*fm*t))));
subplot(313);
plot(Vc*(sin(2*3.14*fc*t)+m3*(sin(2*3.14*fm*t))));
|
8ec48a796342e841ef0fbc4479e94f898ef0959a | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH1/EX1.10/1_10.sce | d089b28bbfbce174cf68261aecb5b0fe1c1c3c33 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 692 | sce | 1_10.sce | //pathname=get_absolute_file_path('1.10.sce')
//filename=pathname+filesep()+'1.10-data.sci'
//exec(filename)
//Pressure in compartment A(in kPa):
Pa=400
//Pressure in compartment B(in kPa):
Pb=150
//Reading of barometer(in m):
h=720*10^-3
//Density of mercury(in kg/m^3):
d=13.6*10^3
//Acceleration due to gravity(in m/s^2):
g=9.81
//Atmospheric pressure from barometer reading(in kPa):
Patm=d*g*h*10^-3
//Absolute pressure in compartment A(in kPa):
PaA=Pa+Patm
//Absolute pressure in compartment B(in kPa):
PaB=Pb+Patm
printf("\n\n RESULT \n\n")
printf("\n\n Absolute pressure in compartment A=%f kPa",PaA)
printf("\n Absolute pressure in compartment B=%f kPa \n\n",PaB) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.