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
a7d8886d426fdcdab898215abba681731ad981c4
449d555969bfd7befe906877abab098c6e63a0e8
/3840/CH3/EX3.14/Ex3_14.sce
c1850bcc4965d1e673e8f3ca3e34668e70c67507
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
614
sce
Ex3_14.sce
clear // // // //Variable declaration d=3.04 //interplanar spacing(angstrom) lamda=0.79 //wavelength of X-rays(angstrom) n=3 //Calculation sintheta=n*lamda/(2*d) theta=(5+(25/60))*%pi/180; //glancing angle(radian) thetad=asin(sintheta)*180/%pi //glancing angle(degrees) thetam=(theta-int(theta))*60 //glancing angle(minutes) thetas=60*(thetam-int(thetam)) //glancing angle(seconds) //Result printf("\n glancing angle is %0.0f degrees %0.3f minutes %0.3f seconds",thetad,thetam,thetas) printf("\n answer given in the book is wrong")
e992b6d6b4c915d811f20e57051cbd9ff8dd55bd
449d555969bfd7befe906877abab098c6e63a0e8
/36/DEPENDENCIES/prob9_4data.sci
ee02d1109d5c22e8d3e8a5da3176c07129e1e0ff
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
181
sci
prob9_4data.sci
//problem 9-4 data //given total time taken by a nonopipelined system: tn=50; //given total segments of the pipeline system k=6; //clock cycle tp=10; //total number of tasks n=100;
3bf9fda80b4715f6014299df860f77161665376f
f542bc49c4d04b47d19c88e7c89d5db60922e34e
/PresentationFiles_Subjects - Kopie/CONT/FC30HVJ/ATWM1_Working_Memory_MRI_FC30HVJ/ATWM1_Working_Memory_MRI_Nonsalient_Cued_Run1.sce
d6496c241a7610677ae4be780365791e58392a0e
[]
no_license
atwm1/Presentation
65c674180f731f050aad33beefffb9ba0caa6688
9732a004ca091b184b670c56c55f538ff6600c08
refs/heads/master
2020-04-15T14:04:41.900640
2020-02-14T16:10:11
2020-02-14T16:10:11
56,771,016
0
1
null
null
null
null
UTF-8
Scilab
false
false
12,492
sce
ATWM1_Working_Memory_MRI_Nonsalient_Cued_Run1.sce
# ATWM1 MRI Experiment scenario = "ATWM1_Working_Memory_MRI_nonsalient_cued_run1"; scenario_type = fMRI; # Fuer Scanner #scenario_type = fMRI_emulation; # Zum Testen #scenario_type = trials; scan_period = 2000; # TR pulses_per_scan = 1; pulse_code = 1; #pulse_width=6; default_monitor_sounds = false; active_buttons = 2; response_matching = simple_matching; button_codes = 10, 20; default_font_size = 28; default_font = "Arial"; default_background_color = 0 ,0 ,0 ; #write_codes=true; # for MEG only begin; #Picture definitions box { height = 300; width = 300; color = 0, 0, 0;} frame1; box { height = 290; width = 290; color = 255, 255, 255;} frame2; box { height = 30; width = 4; color = 0, 0, 0;} fix1; box { height = 4; width = 30; color = 0, 0, 0;} fix2; box { height = 30; width = 4; color = 255, 0, 0;} fix3; box { height = 4; width = 30; color = 255, 0, 0;} fix4; box { height = 290; width = 290; color = 128, 128, 128;} background; TEMPLATE "StimuliDeclaration.tem" {}; trial { sound sound_incorrect; time = 0; duration = 1; } wrong; trial { sound sound_correct; time = 0; duration = 1; } right; trial { sound sound_no_response; time = 0; duration = 1; } miss; # baselinePre (at the beginning of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }default; time = 0; duration = 9400; mri_pulse = 1; code = "BaselinePre"; #port_code = 1; }; TEMPLATE "ATWM1_Working_Memory_MRI.tem" { trigger_volume_encoding trigger_volume_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4; 6 11 292 292 399 125 9543 2992 12342 fixation_cross gabor_044 gabor_002 gabor_120 gabor_068 gabor_044 gabor_002_alt gabor_120_alt gabor_068 "1_1_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_044_002_120_068_target_position_1_4_retrieval_position_1" gabor_091_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_1_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_091_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 19 25 292 292 399 125 11543 2992 12342 fixation_cross gabor_039 gabor_172 gabor_065 gabor_019 gabor_039_alt gabor_172 gabor_065_alt gabor_019 "1_2_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_039_172_065_019_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_154_framed blank blank blank blank fixation_cross_target_position_2_4 "1_2_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_154_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 33 38 292 292 399 125 9543 2992 12342 fixation_cross gabor_129 gabor_088 gabor_151 gabor_016 gabor_129 gabor_088 gabor_151_alt gabor_016_alt "1_3_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_129_088_151_016_target_position_1_2_retrieval_position_2" gabor_circ gabor_040_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_3_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_040_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 46 52 292 292 399 125 11543 2992 14342 fixation_cross gabor_013 gabor_154 gabor_038 gabor_076 gabor_013 gabor_154_alt gabor_038_alt gabor_076 "1_4_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_013_154_038_076_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_123_framed blank blank blank blank fixation_cross_target_position_1_4 "1_4_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_123_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 61 67 292 292 399 125 11543 2992 12342 fixation_cross gabor_171 gabor_121 gabor_152 gabor_002 gabor_171 gabor_121_alt gabor_152_alt gabor_002 "1_5_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_171_121_152_002_target_position_1_4_retrieval_position_1" gabor_171_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_5_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_171_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 75 80 292 292 399 125 9543 2992 14342 fixation_cross gabor_005 gabor_030 gabor_077 gabor_092 gabor_005 gabor_030 gabor_077_alt gabor_092_alt "1_6_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_005_030_077_092_target_position_1_2_retrieval_position_2" gabor_circ gabor_030_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_6_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_030_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 89 94 292 292 399 125 9543 2992 14342 fixation_cross gabor_094 gabor_067 gabor_020 gabor_172 gabor_094_alt gabor_067_alt gabor_020 gabor_172 "1_7_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_9601_3000_14400_gabor_patch_orientation_094_067_020_172_target_position_3_4_retrieval_position_1" gabor_094_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_7_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_094_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 103 108 292 292 399 125 9543 2992 14342 fixation_cross gabor_095 gabor_135 gabor_112 gabor_051 gabor_095 gabor_135 gabor_112_alt gabor_051_alt "1_8_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_095_135_112_051_target_position_1_2_retrieval_position_2" gabor_circ gabor_180_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_8_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_180_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 117 122 292 292 399 125 9543 2992 12342 fixation_cross gabor_111 gabor_053 gabor_077 gabor_141 gabor_111 gabor_053_alt gabor_077 gabor_141_alt "1_9_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_111_053_077_141_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_077_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_9_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_077_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 130 135 292 292 399 125 9543 2992 12342 fixation_cross gabor_115 gabor_057 gabor_167 gabor_009 gabor_115 gabor_057_alt gabor_167 gabor_009_alt "1_10_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_9601_3000_12400_gabor_patch_orientation_115_057_167_009_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_145_framed blank blank blank blank fixation_cross_target_position_1_3 "1_10_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_145_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 143 148 292 292 399 125 9543 2992 14342 fixation_cross gabor_010 gabor_058 gabor_164 gabor_033 gabor_010 gabor_058_alt gabor_164 gabor_033_alt "1_11_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_010_058_164_033_target_position_1_3_retrieval_position_1" gabor_148_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_11_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_148_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 157 163 292 292 399 125 11543 2992 14342 fixation_cross gabor_069 gabor_109 gabor_052 gabor_022 gabor_069_alt gabor_109 gabor_052_alt gabor_022 "1_12_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_069_109_052_022_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_022_framed blank blank blank blank fixation_cross_target_position_2_4 "1_12_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_022_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 172 178 292 292 399 125 11543 2992 12342 fixation_cross gabor_167 gabor_096 gabor_007 gabor_126 gabor_167_alt gabor_096 gabor_007_alt gabor_126 "1_13_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_11601_3000_12400_gabor_patch_orientation_167_096_007_126_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_007_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_13_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_007_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 186 192 292 292 399 125 11543 2992 14342 fixation_cross gabor_081 gabor_145 gabor_023 gabor_097 gabor_081_alt gabor_145 gabor_023 gabor_097_alt "1_14_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_081_145_023_097_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_023_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_14_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_023_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 201 207 292 292 399 125 11543 2992 14342 fixation_cross gabor_023 gabor_005 gabor_090 gabor_058 gabor_023_alt gabor_005 gabor_090 gabor_058_alt "1_15_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_023_005_090_058_target_position_2_3_retrieval_position_2" gabor_circ gabor_005_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_15_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; }; # baselinePost (at the end of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }; time = 0; duration = 20600; code = "BaselinePost"; #port_code = 2; };
d9c54acbf492265ecbc2f6250762348c0b618da8
c4ab1127be3f68a97a5191d086968a1c6d50c6c3
/DeliverableNII/SciLab/controller.sce
23c54b02c0b78b91d6f83de51faa28f468e66364
[]
no_license
etumanov/AppliedRoboticsUNITN
4b062afef3ae44d77f88ad7c411ae9929e2d85c1
241363c8c8fdb8b8fca50e160a9fa7d0c833dc49
refs/heads/master
2016-08-11T06:57:47.674470
2016-01-20T08:16:25
2016-01-20T08:16:25
49,948,867
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,224
sce
controller.sce
// Second order system //K = 0.0087755; K = 0.1531618; xi = 0.8209478; o_n = 16.515118; // Parametri maxOvershoot = 0.2; maxSettlingTime = 0.2; alpha = 5; // Transfer function of the motor s = poly(0, 's'); G = K/(s^2/o_n^2 + 2*xi/o_n*s+1); G = syslin('c',G); //step response DesiredValue = 10; // rad/s StepTime = 0.006; FinalTime = 2; Dt = 0.002; t = 0:Dt:FinalTime; y = [zeros(1,ceil(StepTime/Dt)+1), DesiredValue*ones(1,ceil((FinalTime-StepTime)/Dt))]; //y = csim('step', t, G); // Design controller Kc = 12; C = (s + 16) * (s + 16)/(s*(s+31)); //C = (s + 5 + 0.1*%i) * (s + 5 - 0.1*%i)/(s * (s + 10)); // Step response of the closed loop Gcl = Kc*C*G /(1 + Kc*C*G); Gcl = syslin('c', Gcl); ycl = csim(y, t, Gcl); // Plot scf(1); clf; xtitle("Response to the step function"); xlabel("Time (s)"); ylabel("Speed (rad/s)"); a=gca(); a.data_bounds = [0, 0, 0;2, 14, 2000]; plot(t, y, 'b'); plot(t, ycl, 'g'); plot(t, y($)*(1 + maxOvershoot), 'r--'); plot(t, y($)*(100 - alpha)/100, 'k--'); plot(t, y($)*(100 + alpha)/100, 'k--'); plot([maxSettlingTime, maxSettlingTime], [0, y($)*(100 + alpha)/100], 'r--'); h1=legend(['ref function (10 rad/s)'; 'ycl'; 'requirements' ;'ref +- 5%'] ,4); scf(2); clf; evans(C*G, Kc);
a49328dc69a47ec90859b73dc10f3a30aef8d8f9
449d555969bfd7befe906877abab098c6e63a0e8
/905/CH7/EX7.10/7_10.sce
815cf58e208403e7b5b0175cd6d6ecb26c897bda
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,023
sce
7_10.sce
clear; clc; // Illustration 7.10 // Page: 461 printf('Illustration 7.10 - Page: 461\n\n'); // solution //*****Data*****// Dd = 1.15*10^-9; // [molecular diffusivity of furfural in water, square m/s] Dc = 2.15*10^-9; // [molecular diffusivity of furfural in toluene, square m/s] m = 10.15; // [equilibrium distribution coefficient, cubic m raffinate/cubic m extract] printf('Illustration 7.10(a) - Page: 461\n\n'); // Solution(a) // From example 7.8 and 7.9 dvs = 3.26*10^-4; // [m] Shd = 6.6; // [sherwood number for dispersed phase] // From equation 7.52 kd = Shd*Dd/dvs; // [dispersed phase mass transfer coefficient, m/s] printf("The dispersed-phase mass-transfer coefficient is %e m/s.\n\n",kd); printf('Illustration 7.10(b) - Page: 461\n\n'); // Solution(b) dd = 998; dc = 868; // [density of continuous phase, kg/cubic m] uc = 0.59*10^-3; // [viscosity of continuous phase, kg/m.s] ohm = 182.2; // [rpm] g = 9.8; // [square m/s] Di = 0.288; // [m] sigma = 0.025; // [N/m] phiD = 0.385; Dt = 0.863; // [m] Scc = uc/(dc*Dc); Rec = Di^2*ohm/60*dc/uc; Fr = Di*(ohm/60)^2/g; Eo = dd*dvs^2*g/sigma; // From equation 7.53 Shc = 1.237*10^-5*Rec^(2/3)*Scc^(1/3)*Fr^(5/12)*Eo^(5/4)*phiD^(-1/2)*(Di/dvs)^2*(dvs/Dt)^(1/2); // Therefore kc = Shc*Dc/dvs; // [continuous phase mass transfer coefficient, m/s] printf("The continuous-phase mass-transfer coefficient is %e m/s.\n\n",kc); printf('Illustration 7.10(c) - Page: 462\n\n'); // Solution(c) a = 7065; // [square m/cubic m] Vt = 0.504; // [] Qd = 0.097/60; // [cubic m/s] Qc = 0.155/60; // [cubic m/s] // From equation 7.40 Kod = kd*kc*m/(m*kc+kd); // [m/s] // From equation 7.45 N_tod = Kod*a*Vt/Qd; // From equation 7.46 Emd = N_tod/(1+N_tod); printf("The Murphree dispersed phase efficiency is %f.\n\n",Emd); printf('Illustration 7.10(d) - Page: 462\n\n'); // Solution(d) // From equation 7.57 fext = Emd/(1+Emd*Qd/(m*Qc)); printf("The fractional extraction of furfural is %f.\n\n",fext);
22d14552964fe00ae7ba502d982359c49e1b993a
449d555969bfd7befe906877abab098c6e63a0e8
/3755/CH3/EX3.8/Ex3_8.sce
cb4ad52f44d86f915dd86c9735a90d5380a3d948
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
406
sce
Ex3_8.sce
clear // // // //Variable declaration d=0.842*10^-10; //lattice spacing(m) theta1=8+(35/60); //glancing angle(degree) n1=1; //order n2=3; //order //Calculation theta1=theta1*%pi/180; //angle(radian) theta3=asin(n2*sin(theta1)); //glancing angle(radian) theta3=theta3*180/%pi ; //glancing angle(degree) //Result printf("\n glancing angle is %0.3f degree",theta3)
63b0bca7a8b2ae41524761eb615516bccca76db7
449d555969bfd7befe906877abab098c6e63a0e8
/509/CH18/EX18.1/18_1.sci
451809f22590f7ef55bf9b4b6a58a7778538ecb8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
431
sci
18_1.sci
// Chapter 18 Example 1// clc clear //line to ground capacitance= c,supply frequency=f// //inductance of the coil =l// f=50; c=0.2*10^-6; l=1/(3*(2*%pi*f)^2*c); printf("\n Inductance of the coil %.2f H\n",l); //kVA rating of the coil = kVA,operating voltage =v// v=132; // in kV// vph=v*10^3/sqrt(3); kVA=vph^2/(2*%pi*f*l); printf("\n kVA rating is given by %.f kVA\n",kVA/10^3);// to get ans in kVA divide by 10^3//
ba815517e2b5c5a27b8c99563f213916182353db
449d555969bfd7befe906877abab098c6e63a0e8
/3647/CH6/EX6.3/ex6_3.sce
5ddd8ab233ca5f89ff844e24d40bf1a2312232dd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
371
sce
ex6_3.sce
//Solutions to Problems In applied mechanics //A N Gobby clear all; clc //initialisation of variables w=0.5//tonf/in^2 w1=7//tonf/in^2 w2=10//tonf/in^2 t=12.4//tonf/in^2 d1=1.5//in d2=1.24//in x=0.495//in d3=3.02//in //CALCULATIONS Y=sqrt((d3/2)^2-(d2/2)^2)//in S=(1/2*t/(2*Y*w))//tonf/in^2 //RESULTS printf('the shear stress in fork end=% f tonf/in^2',S)
9f3fb428cb33f9b358f52d8d41c5f0e0fefe62e1
534bc5aab02119092e226b6ed7d9e24d4f5e2b1a
/case 2.sce
e79eec37cc1f93948154863a4b20d359e85ef3d0
[]
no_license
haiyenvu96/Dirichlet-Problem-with-Numerical-Probabilistic-Simulation
35bfedc3865fa7c358fa44cf93eda95885c36742
43405f973c056d47997e518c335c4e102362426a
refs/heads/main
2023-04-22T12:57:06.073175
2021-05-03T23:06:30
2021-05-03T23:06:30
364,084,082
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,247
sce
case 2.sce
// definition de la fonction g function value = g1(x,y) value = x*y endfunction function value = g2(x,y) value = exp(x+y) endfunction function value = g3(x,y) value = %e^x*cos(y) endfunction // parameters M = 1000 h = 0.1 // maillage r = 0 : 0.1 : 1 theta = 0 : 0.1 : 2 // taille de maillage Nr = size(r,2) Nta = size(theta,2) // store u u = zeros(Nr, Nta) err = zeros(Nr, Nta) // u de X, Y precedents //u2 = zeros(Nr, Nta) //err2 = zeros(Nr, Nta) // u du choix X,Y probabiliste //u3 = zeros(Nr, Nta) //err3 = zeros(Nr, Nta) // store le nombre de pas tm = zeros(Nr, Nta) //boucles sur les points de depart timer() for i = 1 : Nr do for j = 1 : Nta do // initiate les resultats tab = zeros(M,1) //tab2 = zeros(M,1) //tab3 = zeros(M,1) time = zeros(M,1) // simulation des trajectoires for mc = 1 : M do // point de depart X = r(i)*cos(theta(j)*%pi) Y = r(i)*sin(theta(j)*%pi) // le point predesseur //X_pred = X //Y_pred = Y // while le point est dans D while X*X + Y*Y < 1 do //X_pred = X //Y_pred = Y // simuler Z Z = grand(2,1,'nor',0,1) X = X + sqrt(h)*Z(1) Y = Y + sqrt(h)*Z(2) time(mc) = time(mc) + 1 end //choix probabiliste //d = 1 - sqrt(X_pred^2+Y_pred^2) //[P,p]=cdfchi("PQ",d^2/h,2) //U = grand(1,1,'def') //if U > p then // tab3(mc) = g2(X,Y) //else // tab3(mc) = g2(X_pred, Y_pred) //end tab(mc) = g2(X,Y) //tab2(mc) = g2(X_pred, Y_pred) end // calculer le moyen et le rayon de l'intervalle de confiance u(i,j) = mean(tab) err(i,j) = stdev(tab) //u2(i,j) = mean(tab2) //err2(i,j) = stdev(tab2) //u3(i,j) = mean(tab3) //err3(i,j) = stdev(tab3) tm(i,j) = mean(time) end end time = timer() err = 1.96*err/sqrt(M) //err2 = 1.96*err2/sqrt(M) //err3 = 1.96*err3/sqrt(M) // plot les resultats [thth, rr] = meshgrid(theta, r) xx = rr.*cos(thth*%pi) yy = rr.*sin(thth*%pi) scf(0); clf; surf(xx,yy, u); scf(1); clf; surf(xx,yy, err); scf(2); clf; surf(xx,yy,tm); //scf(3); clf; surf(xx,yy,u2); //scf(4); clf; surf(xx,yy,err2); //scf(5); clf; surf(xx,yy,u2); //scf(6); clf; surf(xx,yy,err2);
6f9e25f5a211b09ce6de9825f747a5c8069e0cc2
449d555969bfd7befe906877abab098c6e63a0e8
/2297/CH2/EX2.9/Ex2_9.sce
9294e57259adef5fe45e5e3c9fb5743d5e76ab87
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
379
sce
Ex2_9.sce
// Example 2.9 :time clc; close; format('v',6) clear; // given : v=10;//voltage in volts r1=500;//resistance in ohms is=0;//current in amperes r=700;//resistance in ohms c=100;//capacitance in micro farads x=1/(r*c*10^-6);//variable i=30;//current in mA y=(i*10^-3)-(v/r1);//variable t=-((log(y*(r/v))));//time in seconds t1=t/x;//time in seconds disp(t1,"time is ,(seconds)=")
887290f4fb64ca1b9140c48f8976c8a8dbb14546
e182a95b50904008697c55b376261f8a6c38b225
/Create_36_1_CKP.sce
5028e4b676d64c75459c31cd81b75169bda8cb52
[]
no_license
RhinomanUK/Scilab
210fb0ca7f7776d2b271bb243140aa8aa837dd81
63519c7f6ada71f1baf6f72633247ea518e6eeb3
refs/heads/master
2021-09-07T12:06:29.767806
2018-02-22T16:33:57
2018-02-22T16:33:57
118,903,494
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,062
sce
Create_36_1_CKP.sce
// Crank/Cam sensor file generator for DG1022 // RhinoPower Ltd // v0.1 // 7th January 2018 // // generates a 36-1 crank sensor (square wave) // 3600 points gives 0.1 degs resolution. // Saves to a .csv file // clear all //define header information - this can be the same for all files. header1 = 'Rigol Technologies,Inc. Save analog waveform to excel files.'; header2 = 'Vpp[V]:1.20E01,Period[S]:1.00E-05,Quantify:12,Data Dots:3600,Max Dots:3600,End:3599,Wave:1'; header3 = ''; header4 = 'X,Y[V]'; footer = [ ' 1 '; ' 0 '; ' 0 '; ' 3599 '; ' 0 '; ' 3600 '; ' 0 '; ' 0 '; ' 0 '; ' 0 '; ' 0 '; ' 0 '; ' 0 '; ' 0 '; ' 0 '; ' 0 ' ] // create matrix for data point initilise index data and set values to zero (-2.5) points = zeros(3600,2) // create a matrix with the index data for i=1:3600 // = 1 to 3600 points(i,1) = i; end points(:,2) = -2.5; // set data column all to -2.5 (our zero) //------------------------------------------------------------------- //-------------------Insert pattern generator code below------------- // insert 35 (36-1) pulses into the data matrix. pointsIndex = 0; for i = 1:35 for j =1:50 pointsIndex = pointsIndex+1; points(pointsIndex,2) = 6; end pointsIndex = pointsIndex+50; end //// Plot the function plot( points ); // Plot the function title( '36-1 Crank Waveform for Rigol DG1022 Function Generator' ) xlabel( 'Degrees /10' ) ylabel( 'Quantization Level' ) grid on h = gca(); // get current axes h.data_bounds = [0, -3; 3600,6.5]; // Save the samples to disk fd = mopen('crank_36_1.csv','wt'); mfprintf(fd,'%s\n', header1); mfprintf(fd,'%s\n', header2); mfprintf(fd,'%s\n', header3); mfprintf(fd,'%s\n', header4); [nr,nc]=size(points) for i = 1:nr mfprintf(fd,'%i', points(i,1)); mfprintf(fd, ','); str = msprintf('%2.2E', points(i,2)); mfprintf(fd,'%s\n', strsubst(str,"+","")); end mfprintf(fd,'%s\n', footer); mclose(fd);
0e24fb073451c830d5533e5ff1a94dee19835696
449d555969bfd7befe906877abab098c6e63a0e8
/181/CH7/EX7.39/example7_39.sce
9ccdd0df0d909f8485ba692dabbd33d79eb6542c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
680
sce
example7_39.sce
// Find the value of Rs // Basic Electronics // By Debashis De // First Edition, 2010 // Dorling Kindersley Pvt. Ltd. India // Example 7-39 in page 341 clear; clc; close; // Given data Id=2.5*10^-3; // Drain current in mA Vds=8; // Drain-source voltage in V Vdd=30; // Drain voltage in V R1=1*10^6; // R1 value in M-ohms R2=500*10^3; // R2 value in K-ohms Idss=15*10^-3; // Drain-source current in mA Vp=-5; // Pinch off voltage in volts // Calculation Vgs=5*(sqrt(5/30)-1); V2=(Vdd*R2)/(R1+R2); Rs=(V2-Vgs)/Id; printf("Rs = %0.2e ohms\n",Rs); Rd=(Vdd-Vds-(Id*Rs))/Id; printf("Rd = %0.2e ohms",Rd); // Result // Rs = 5.18 K-ohms // Rd = 3.62 K-ohms
68ae9026016c9c69d761437b00767862caeb7a4d
449d555969bfd7befe906877abab098c6e63a0e8
/2762/CH2/EX2.9.1/2_9_1.sce
818b382066ac140e23d26a9e1c19875224697111
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
554
sce
2_9_1.sce
//Transport Processes and Seperation Process Principles //Chapter 2 //Example 2.9-1 //Principles of Momentum Transfer and Overall Balances //given data rho=820;//density in kg/m3 del=1.7/1000;//film thikness in m g=9.806;//g force mu=0.2;//viscocity in Pa.s T=(rho^2)*(del^3)*g/(3*mu);//T= mass flow rate per unit width of wall Re=(4*T)/mu;//Reynolds Number v=(rho*g*(del^2))/(3*mu);//avg velocity mprintf("mass flow rate per unit width of wall= %f kg/(s.m)",T) mprintf(" Reynolds Number= %f",Re) mprintf(" avg velocity= %f m/s",v) //end
307ee300964f321f3c2d874fa48129cca0d08c91
449d555969bfd7befe906877abab098c6e63a0e8
/2459/CH11/EX11.9/Ex11_9.sce
0da9b7b3c94871ae2098b95a668020231f8a7867
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex11_9.sce
//chapter11 //example11.9 //page210 gain_beta=50 Ib=20d-3 // mA // since gain_beta = Ic/Ib we get Ic=gain_beta*Ib Ie=Ic+Ib printf("emitter current = %.3f mA \n",Ie)
138865aaf114f5fc9df7d3e72c722c1bab0a0a8b
86ae7e24466d959da945d5b6d8ab93354a9e8a1d
/T9_eg_plotlable&title.sce
94d0c94680a5d50546ae7fd198838afad3de265a
[]
no_license
AnujaNagare/Scilab-Programs
be27fdeb0db8cfa4b00ac5121676b18412b8a222
4152eac1a3e87ec7408fb3dfea55cac984cca2d9
refs/heads/master
2021-08-30T16:53:33.876536
2017-12-18T19:11:47
2017-12-18T19:11:47
114,677,855
0
0
null
null
null
null
UTF-8
Scilab
false
false
191
sce
T9_eg_plotlable&title.sce
clc;clear; close; pi=22/7; x=linspace(0,2*pi,100); y=sin(x); z=cos(x); plot2d3(x,y,z) xlabel('x axis') ylabel('y axis') zlabel('z axis') title('plot created by BE Mechanical')
283fa2f5c1ca289c87cef9bb429143a47a50117f
449d555969bfd7befe906877abab098c6e63a0e8
/770/CH8/EX8.3/8_3.sce
ceffe5b235418dedcede10e6cba435ceaadba522
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
745
sce
8_3.sce
clear; clc; //Example - 8.3 //Page number - 291 printf("Example - 8.3 and Page number - 291\n\n"); //Given W = 1.1;//[kW] - Work done per ton of refrigeration //1 ton refrigeration = 3.517 kW, therefore H = 3.517;//[kW] - Heat absorbed T_low = -30 + 273.15;//[K] - Low temperature maintained //COP can be calculated as //COP = (Heat absorbed/Work done) COP = H/W; //For reversed carnot cycle, COP = T_low/(T_high - T_low). Solving this we get T_high = (T_low/COP) + T_low;//[K] - Higher temperature //Heat rejected is H_rej = W + H;//[kW]; printf("The COP is %f\n\n",COP); printf("The higher temperature of the cycle is %f K\n\n",T_high); printf("The heat rejected per ton of refrigeration is %f kW\n\n",H_rej);
f2902e8425d7c6d79c3a7bcac280baba573b813e
449d555969bfd7befe906877abab098c6e63a0e8
/1523/CH8/EX8.13/8_13.sce
414e27672042a70e73a31b119cd4e874aca0478a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
555
sce
8_13.sce
//Transient analysis //pg no - 8.17 //example no - 8.13 a=((10*30)/(10+30)); d=5/a; b=0; c=5*(20/30); printf("iL(0-) = %.2f A", d); printf("\nvb(0-) = %.f", b); printf("\nva(0-) = %.2f V", c); disp("Applying Kcl equations at t=0+"); disp("((va(0+)-5)/10)+(va(0+)/10)+(va(0+)-vb(0+))/20 = 0"); //equation 1 disp("((vb(0+)-va(0+))/20)+((vb(0+)-5)/10)+(2/3) = 0"); //equation 2 //solving 1 and 2 M=[0.25, -0.05; -0.05, 0.15]; N=[0.5, -0.167]'; O=inv(M); X=O*N; disp(X); disp("va(0+)= 1.9 A"); disp("vb(0+)= -0.477 A");
d59d9a7559102fcfdd1941f053bf2d463405dc26
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH1/EX1.16/1_16.sce
08d26b0a3dd86966c373300460265c92f43e4bbe
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
679
sce
1_16.sce
//pathname=get_absolute_file_path('1.16.sce') //filename=pathname+filesep()+'1.16-data.sci' //exec(filename) //Diameter of the vessel(in m): d=1 //Height of the vessel(in m): h=4 //Volume of the vessel(in m^3): v=%pi*d^2*h/4 //Initial pressure(in kPa): p1=100 //Initial temperature(in K): t1=300 //Final pressure(in kPa): p2=125 //Cp of hydrogen(in kJ/kg-K): Cp=14.307 //Cv of volume(in kJ/kg-K): Cv=10.183 //Final temperature(in K): t2=p2*t1/p1 //Gas constant for hydrogen: R=Cp-Cv //Mass of hydrogen(in kg): m=p1*v/(R*t1) //Heat supplied at const. volume(in kJ): Q=m*Cv*(t2-t1) printf("\n\n RESULT \n\n") printf("\n\n Heat to be supplied = %f kJ",Q)
b0087e28d285c012ae3d723592a20cfd47b6828e
449d555969bfd7befe906877abab098c6e63a0e8
/1835/CH6/EX6.10/Ex6_10.sce
d83b1aac31f8f9ad47f747ef307d46fbde65ccf2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,307
sce
Ex6_10.sce
//CHAPTER 6 ILLUSRTATION 10 PAGE NO 183 //TITLE:Turning Moment Diagram and Flywheel clc clear pi=3.141 Cs=.02// coefficient of fluctuation of speed N=200// speed of the engine in rpm //T2=15000-6000cosθ Torque required by the machine in Nm //T1=15000+8000sin2θ Torque supplied by the engine in Nm //T1-T2=8000sin2θ+6000cosθ Change in torque theta1=acosd(0) theta2=asind(-6000/16000) theta2=180-theta2 //=============================================== //largest area,representing fluctuation of energy lies between theta1 and theta2 E=6000*sind(theta2)-8000/2*cosd(2*theta2)-(6000*sind(theta1)-8000/2*cosd(2*theta1))// total fluctuation of energy in Nm Theta=180// angle with which cycle will be repeated in degrees Theta1=0 Tmean=1/pi*((15000*pi+(-8000*cosd(2*Theta))/2)-((15000*Theta1+(-8000*cosd(2*Theta1))/2)))// mean torque of engine in Nm P=2*pi*N*Tmean/60000// power of the engine in kw w=2*pi*N/60// angular speed of the engine in rad/s I=E/(w^2*Cs)// mass moment of inertia of flywheel in kg-m^2 printf('Power of the engine= %.3f kw\n minimum mass moment of inertia of flywheel= %.3f kg-m^2\n E value calculated in the textbook is wrong. Its value is -15,124. In textbook it is given as -1370.28',P,-I)
fb7319758f175f0ee10b71b99caae84f7b018d0f
449d555969bfd7befe906877abab098c6e63a0e8
/25/CH2/EX2.4/2_4.sce
eba66e05c12595b9938da20de99c06d9bf7fd677
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
622
sce
2_4.sce
// example:-2.4,page no.-34. // program to show that a circularly polarized plane wave can be decomposed in to RHCP and LHCP. A=sym('A'); B=sym('B'); Eo=sym('Eo'); x=sym('x'); y=sym('y'); Ko=sym('Ko'); z=sym('z'); E=Eo*(x+2*y)*exp(-%i*Ko*z); // given // can be written as:=>E=A*(x-y)*exp(-%i*Ko*z)+B*(x+y)*exp(-%i*Ko*z),so p=[1 1;-%i/2 %i/2]; q=[A;B]; r=[1;1]; p*q==Eo*r; q=inv(p)*Eo*r; //result disp('value of A and B will be=') disp(q) disp(q(1,1)*(x-y)*exp(-%i*Ko*z)+q(2,1)*(x+y)*exp(-%i*Ko*z),'E=') //conclusion:-any linearly polarized wave can be decomposed in to two circularly polarized waves.
14a0e5a6427121f1e9e502ffd9fc747c20fe3e33
449d555969bfd7befe906877abab098c6e63a0e8
/650/CH1/EX1.11/11.sce
49ea06213f591cdcd6dd1d1971c712243714bf60
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
177
sce
11.sce
clc rho=800; //kg/m^3 g=9.81; //m/s^2 L=0.12; theta=%pi/180*20; // radians dp=rho*g*L*sin(theta); disp("The gauge pressure across the filter =") disp(dp) disp("N/m^2")
879003946c45f992fb3a572a39ccd20ec83b1793
449d555969bfd7befe906877abab098c6e63a0e8
/914/CH7/EX7.11/ex7_11.sce
4cd104c97bb38adf3f3575dd9a3bf47c843197c5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
737
sce
ex7_11.sce
clc; warning("off"); printf("\n\n example7.11 - pg300"); // given sp=1.45; // specific gravity of trichloroethylene pwater=62.4; //[lb/ft^3] - density of water p=sp*pwater; d1=1.049; //[inch] - density of pipe at point 1 d2=0.6; //[inch] - density of pipe at point 2 d3=1.049; //[inch] - density of pipe at point 3 // using the formula U1*S1=U2*S2; we get U1=U2*(d2/d1); // then using the bernoulli equation deltap/p=(1/2)*(U2^2-U1^2); deltap=4.2*(144); //[lb/ft^2] - pressure difference U2=((2*(deltap/p)*(1/(1-(d2/d1)^4)))^(1/2))*(32.174)^(1/2); // using the formula w=p*U2*S w=p*U2*((%pi/4)*(0.6/12)^2); w1=w/(2.20462); printf("\n\n the mass flow rate is \n w=%flb/sec\n or in SI units \n w=%fkg/sec",w,w1);
c800b5a4649898bdfd4fc5f7d2538d270dabec68
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH6/EX6.22/6_22.sce
1512aa4dc1fd666090a4aab6a9b55640de246fb8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
750
sce
6_22.sce
//pathname=get_absolute_file_path('6.22.sce') //filename=pathname+filesep()+'6.22-data.sci' //exec(filename) //Initial pressure(in MPa): p1=6 //Final pressure(in MPa): p2=5 //Initial temperature(in °C): T1=400 //Atmospheric pressure(in kPa): patm=100 //Atmospheric temperature(in °K): Ta=20+273 //From steam tables: h1=3177.2 //kJ/kg s1=6.5408 //kJ/kg.K h2=h1 T2=392.7 //°C(by interpolation) s2=6.6172 //kJ/kg.K(//By interpolation Entropy) h0=83.96 //kJ/kg s0 = 0.2966 //kJ/kg //Availability at state 1(in kJ/kg): A1=(h1-h0)-Ta*(s1-s0) //Availability at state 2(in kJ/kg): A2=(h2-h0)-Ta*(s2-s0) //Change in availibilty(in kJ/kg): dA=A2-A1 printf("\nRESULTS\n") printf("\nChange in availability = %f kJ/kg decrease",-dA)
b9aa8b65f7bfeb5e47386e24efd30abebffc169a
449d555969bfd7befe906877abab098c6e63a0e8
/2159/CH7/EX7.12/712.sce
a7cc2d67fd2225f3324311f5a48944adb21a6e17
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
233
sce
712.sce
// problem 7.12 b=10 d=4 i=1/1000 N=0.03 A=b*d P=b+(2*d) m=A/P z1=23+(0.00155/i)+(1/N) z2=1+((23+(0.00155/i))*(N/(m^0.5))) C=z1/z2 Q=A*C*((m*i)^0.5) disp(Q*1000,"discharge through the rectangular channel in litres/sec")
29a68ceeabe4646c4cf8a959916f2f4281e7c016
449d555969bfd7befe906877abab098c6e63a0e8
/2006/CH14/EX14.7/ex14_7.sce
85812cd578d9c1f0b72b493788bdd90ee7817da7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
789
sce
ex14_7.sce
clc; //From table 14.2 at 25 oC and 1 atm for C8H8 del_Ho=-2039.7; // LHV in MJ/kmol // Combustion equation is C3H8+ 5O2 +18.8N2 → 3CO2 +4H2O +18.8N2 // From table 14.3 h333_C3H8=2751; // h333_h298 of C3H8 in kJ/kmol h333_O2=147; // h333_h298 of O2 in kJ/kmol h333_N2=145; // h333_h298 of N2 in kJ/kmol h1333_CO2=52075; // h1333_h298 of CO2 in kJ/kmol h1333_H2O=32644; // h1333_h298 of H2O in kJ/kmol h1333_N2=32644; // h1333_h298 of N2 in kJ/kmol M=44; // molecular mass of C3H8 Ha_H1=h333_C3H8+5*h333_C3H8+18.8*h333_N2; // The enthalpy differences Hb_H2=3*h1333_CO2+4*h1333_H2O+18.8*h1333_N2; // The enthalpy differences Q=(del_Ho+Hb_H2/1000-Ha_H1/1000)/M; // Heat transfer from combustion chamber disp ("MJ/kg C3H8",abs (Q),"Heat transfer from combustion chamber =");
8abc93aafbba3d0ec5b7a62c130c3e9ac30c1c4c
449d555969bfd7befe906877abab098c6e63a0e8
/74/CH1/EX1.7/example7_sce.sce
a319b1d682e59b6211227d19a7f20d61cf4e99ab
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
example7_sce.sce
//chapter 1 // example 1.7 //page 32,figure 1.36 Vee=12;Vbe=0.7;Rin=100;Re=8400;Rc=3900;Vcc=12; Xdc=100// dc gain Icq=(Vee-Vbe)/((Rin/Xdc)+2*Re); Vceq=Vcc+Vbe-Icq*Rc; disp(Vceq,Icq)//the DC base point or Q point is at(volt,ampere) Hie=1100// assuming Ri=2*(Rin+Hie);//input resistance disp(Ri)// input resistance in ohm Ro=Rc// output resistance
45608755ebb7a80e3a67a780dde451f11965e925
449d555969bfd7befe906877abab098c6e63a0e8
/3311/CH10/EX10.1/Ex10_1.sce
de368d75413a827c80055e93f6f7ebe43a22696c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,174
sce
Ex10_1.sce
// chapter 10 // example 10.1 // Determine required supply voltage, thyristor rating and power factor of the supply current // page-698-699 clear; clc; // given m=3; // number of phases PF=0.7; // power factor (lagging) Edc=190; // in V (load voltage) I_L=45; // in A // calculate // since Edc=(m/%pi)*Eph*sin(%pi/m), therefore we get Eph=Edc/((m/%pi)*sin(%pi/m)); // calculation of required supply voltage Eph_max=Eph*sqrt(2); // calculation of required supply voltage maximum value Imax=I_L*sqrt(2); // calculation of maximum value of cycloconvertor current Irms=Imax/sqrt(3); // calculation of thyristor rms current PIV=sqrt(3)*Eph_max; // calculation of peak inverse voltage Irms_1_3=sqrt(I_L^2/3); // calculation of rms current for one-third cycle Pin=(1/3)*Edc*I_L*PF; // calculation of input power per phase pf=Pin/(Eph*Irms_1_3); // calculation of power factor of the supply current printf("\nThe required supply voltage is \t\t\t Eph=%.2f V",Eph); printf("\nThe thyristor ratings are \t\t\t Irms==%.2f A \t PIV=%.2f V",Irms,PIV); printf("\nThe power factor of the supply current is \t pf=%.2f",pf); // Note: 1. The answers vary slightly due to precise calculation.
32c97f65b69c39b5844362a1607b24d507996dff
449d555969bfd7befe906877abab098c6e63a0e8
/770/CH1/EX1.10/1_10.sce
b53c9152d7256e6316199dec0e8138179868aa00
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
531
sce
1_10.sce
clear; clc; //Example - 1.10 //Page number - 27 printf("Example - 1.10 and Page number - 27\n\n"); //Given // log(P)=-(1640/T)+10.56 (solid) // log(P)=-(1159/T)+7.769 (liquid),where T is in K // F+P=C+2, at triple point F+3=1+2 or,F=0 i.e,vapour pressure of liquid and solid at triple point are same,we get // -(1640/T)+10.56 = -(1159/T)+7.769 T = (1640-1159)/(10.56-7.769);//[K] P = 10^((-1640/T)+10.56);//[torr] printf(" The temperature is %f K\n",T); printf(" The pressure is %f torr (or mm Hg)",P);
d42b4e803aa3827949af154bfc71fce56896112e
449d555969bfd7befe906877abab098c6e63a0e8
/1962/CH5/EX5.8/example5_8.sce
290fe7d4a9531b49711f4aa3cc272a5578bdc291
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
460
sce
example5_8.sce
//example 5.8 //page 211 clc; funcprot(0); //initialisation of variable pi=3.14; mdot=0.0022;//mas flow rate V1=220*5280/3600;//velocity V=12000/pi/6^2*4;//velocity V4=2*V-V1;//velocity //part1 F=mdot*(V4-V1)*12000; disp(F,"thurst force (lbs)"); //part2 neta=V1/V*100; disp(neta,"efficiency (%)"); Hp=F*V1/500/neta*100; disp(Hp,"theoritical horse power (hp)="); delP=mdot/2*(V4^2-V1^2); disp(delP,"change in pressure (lbs/ft^2)="); clear
f88f8d24288ac0dc44bca84a792449ca62131fbe
449d555969bfd7befe906877abab098c6e63a0e8
/182/CH3/EX3.10/example3_10.sce
e9ee1d601eed25c74d0935fa6e86478e32e42a14
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
352
sce
example3_10.sce
//To find the sensitivity //example 3-10 in page 54 clc; //given data Im=157e-6;// peak current=157 micro ampere Vrms=100;// FSD rms voltage in volt //calculation Irms=0.707*Im;//FSD rms current R=Vrms/Irms;// total circuit resistance S=R/Vrms;//sensitivity printf("sensitivity=%d K-ohm/volt\n",S/1000); //result //sensitivity=9 k-ohm/Volt
5a86388932ff04d4c78661563f55ff018a4f1e60
b74b2ace796d50f1d2550b2ac8747b0c55e7faa7
/macros/gitinit.sci
aacbbc6f60545315a06abf7d72415f77f7fef11f
[]
no_license
slevin48/plotdeploy
2f1a5aea6b14b540b7890a86c588e8361e237152
2bbba304a9151beb4b01104746ea41f95d73bd78
refs/heads/master
2023-02-14T22:09:40.476472
2021-01-08T19:00:04
2021-01-08T19:00:04
263,965,966
0
0
null
null
null
null
UTF-8
Scilab
false
false
421
sci
gitinit.sci
function [res1,res2] = gitinit(herokuapp) // herokuapp = "plotdeploy"; if ~isdir(SCIHOME+'\plotdeploy\') & type(herokuapp) == 10 then // check that herokuapp contains a string cd(SCIHOME) mkdir("plotdeploy") cd("plotdeploy") res1 = unix_g("git init") res2 = unix_g("heroku git:remote -a "+herokuapp) else res1 = [] res2 = [] end endfunction
e2dfe6f8977cb561d9704691a54208bbfb4c0621
de4a05983c71acce126215edc1ef3dc68303d939
/oper/print.tst
b88e50d1beca89a89c784e6e8c0c06e7f53b5057
[]
no_license
TYMCOM-X/169283.tape
31a10122e6ac6394a8aa4f6ae215cfb48a4e8552
f58dedd26328b5c0ba3fd2a76f722194df41d933
refs/heads/master
2023-03-27T17:37:41.524138
2021-03-21T16:14:00
2021-03-21T16:14:00
345,965,863
0
0
null
null
null
null
UTF-8
Scilab
false
false
270
tst
print.tst
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0
969a954c9feb939dd03813dccd4d95e2617e9b05
449d555969bfd7befe906877abab098c6e63a0e8
/67/CH8/EX8.3/example8_3.sce
9494b35906bf1ab199212d6e13d1161c4274092d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
example8_3.sce
//Example 8.3 //Compute DFT of x(n)={1,1,0,0} and IDFT of y(n)={1,0,1,0} clc; x=[1,1,0,0]; Y=[1,0,1,0]; X=fft(x,-1); y=fft(Y,1);
eae72de6c0ac2da5619df13f83c4116b2fa2da5a
1bb72df9a084fe4f8c0ec39f778282eb52750801
/test/MA09.prev.tst
70d3002145aa1b713f848566ca4951ef0e6cd235
[ "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
277
tst
MA09.prev.tst
[[2,2,1,0],[1,1,1,1],[1,2,2,0],[2,3,2,0]] [[2,2,1,0],[1,2,2,0],[1,1,1,1],[2,3,2,0]] [[2,3,2,0],[1,2,2,0],[1,1,1,1],[2,2,1,0]] [[-2,-3,-2,0],[-1,-2,-2,0],[1,1,1,1],[2,2,1,0]] [[-2,-3,-2,0],[-1,-2,-2,0],[-1,-1,-1,-1],[-2,-2,-1,0]] [[2,3,2,0],[1,2,2,0],[1,1,1,1],[2,2,1,0]]
c55ae4f3cfff95b5f8e6c1a65e48e1d9bfb12199
449d555969bfd7befe906877abab098c6e63a0e8
/575/DEPENDENCIES/272.sci
2839ad4513259231f58eefc9ad03585e1328d6d1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
62
sci
272.sci
T=[10 20 40 80] M=[14.76 20.14 27.73 38.47] sqrtT=sqrt(T);
0dd66c5247fa2b015f3c9e51996dd4f854014afe
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set10/s_Fluid_Mechanics_And_Hydraulic_Machines_B._K._Sarkar_2159.zip/Fluid_Mechanics_And_Hydraulic_Machines_B._K._Sarkar_2159/CH2/EX2.7/27.sce
d82a6fb23ccaa9c15eb906d1ec5b8c3c1830282e
[]
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
177
sce
27.sce
errcatch(-1,"stop");mode(2);// problem 2.7 s1=19.3 s2=9 x=14/24 wg=x*10 wc=(1-x)*10 vg=wg/s1 vc=wc/s2 vt=vg+vc disp(vt,"volume of 10gm,14 carat gold in cm3") exit();
8d70dc5e4c6417e1ec44b059f928d536e68ac77e
364fc2bac23ae5482a18e5e9392ff63e68642dae
/TP2/exo_bis_1.sce
e37bf6c16ab5e57aefeeb05581ec85b410f75f82
[]
no_license
Raphael-De-Wang/2M310TP
259e55e9dc931b0a0102ed7a5dbbb31e82b88295
af21ffee07fadeb5b27c5f30d0deb1926972ccee
refs/heads/master
2021-01-11T14:14:21.447623
2017-03-29T20:27:35
2017-03-29T20:27:35
81,227,258
0
0
null
null
null
null
UTF-8
Scilab
false
false
701
sce
exo_bis_1.sce
clear; // Q1 function rst = div7(n) if modulo(n,7) == 0 then, rst = "oui" else, rst = "non" end endfunction // testcase div7(7) div7(10) // Q2 function S = Syracuse(n) S = [n] count = 1 while n <> 1, if modulo(n,2) == 0 then, n = n/2; else, n = n * 3 + 1; end S(count+1) = n; count = count + 1; end endfunction // testcase Syracuse(7) // Q3 function alt = genQ(n) alt = (rand(1,n) > 0.5) * 1; endfunction function alt = genE(n,s) alt = []; for i = (1:10), cnt = 0; x = 0; while x < s, x = rand(); cnt = cnt + 1 end alt(i) = cnt; end endfunction // testcase genQ(10) genE(10,0.9)
84b1acf707eca58e008a8d2019405b36b9bd4cce
b3385e278ba1e11155ec4a0d21d3abb3b4ec8c33
/dsssnormal.sce
7604997a2fc9e4bc200e5907e3f691f1866d4b5b
[]
no_license
akashmahale237/ael
7443658b7bb04f72e775fda0f0abe643207d660d
549e47cd7fd25b8dfca51f0502cec4d632328abe
refs/heads/master
2020-03-28T08:54:12.647042
2018-10-23T01:39:00
2018-10-23T01:39:00
147,997,869
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,701
sce
dsssnormal.sce
t=0:0.2:5 N=10; wt=0:0.01:1; bt=[ones(1,10) zeros(1,10) ones(1,6)]; bt_polar=[ones(1,10) -1*ones(1,10) ones(1,6)] ct=[0,0,1,1,1,0,1,0,0,1,1,1,0,1,1,1,1,0,0,0,0,1,1,0,1,0]; ct_polar =[-1,-1,1,1,1,-1,1,-1,-1,1,1,1,-1,1,1,1,1,-1,-1,-1,-1,1,1,-1,1,-1]; mt=[]; mt=bt_polar .* ct_polar; disp(mt); Carrier=2*sin(wt*2*%pi+%pi); st=[]; for i = 1:length(mt) st = [st mt(i)*Carrier]; end figure(); subplot(3,1,1); a =gca(); a.x_location = "origin"; a.y_location = "origin"; a.data_bounds = [0,-1;5,1]; plot2d2(t,bt_polar) xlabel(' t'); title('Data b(t)'); subplot(3,1,2); a =gca(); a.x_location = "origin"; a.y_location = "origin"; a.data_bounds = [0,-1;5,1]; plot2d2(t,ct_polar); xlabel(' t'); title('Spreading code c(t)'); subplot(3,1,3); a =gca(); a.x_location = "origin"; a.y_location = "origin"; a.data_bounds = [0,-1;5,1]; plot2d2(t,mt); xlabel(' t'); title('Product Signal m(t)'); figure(); subplot(3,1,1); a =gca(); a.x_location = "origin"; a.y_location = "origin"; a.data_bounds = [0,-1;5,1]; plot2d2(t,mt); xlabel(' t'); title('Product Signal m(t)'); subplot(3,1,2); a =gca(); a.x_location = "origin"; a.y_location = "origin"; a.data_bounds = [0,-2;20,2]; plot(Carrier); xlabel(' t'); title('Carrier Signal'); subplot(3,1,3); a =gca(); a.x_location = "origin"; a.y_location = "origin"; a.data_bounds = [0,-2;20,2]; plot(st);
a6d9e0b320bbd6b2cbec2f12dfcce3c89c687407
449d555969bfd7befe906877abab098c6e63a0e8
/3630/CH3/EX3.4/Ex3_4.sce
43d874e3a8bc7152d48b3f503d7850022d717c1b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
454
sce
Ex3_4.sce
clc; //ex3.4 Vprms=120; //volt Vppk=Vprms/0.707; //volt Ns=1; Np=3; Vspk=(Ns/Np)*Vppk; //volt Vf=0.7; //volt VLpk=Vspk-Vf; //volt RL=10000; //ohm ILpk=VLpk/RL; //Ampere disp('V',Vppk,"Vppk="); //The answers vary due to round off error disp('V',Vspk,"Vspk="); //The answers vary due to round off error disp('V',VLpk,"VLpk="); //The answers vary due to round off error disp('mA',ILpk*1000,"ILpk="); //The answers vary due to round off error
b6ec6cc1e8ae310b2ff83cfb24dff3bf87f66db3
449d555969bfd7befe906877abab098c6e63a0e8
/2951/CH5/EX1.A/additional_ex_1.sce
bb29d609a3883cf4e4a626b28154a23d302a2acb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
553
sce
additional_ex_1.sce
clear; clc; //("current through the capacitor is i=C(dv/dt)"); t=15; //acquisition time in us i=5; //current in mA v=5; //maximum voltage across capacitor in V // to satisfy current requirement disp("to satisfy current requirement"); C_current_req=i*t/v; disp(C_current_req,"C(nF)="); //to satisfy accuracy requirement disp("to satisfy accuracy requirement"); C_accuracy_req=t/(6.9*15)*1000;// to convert into "nanoFarad" disp(C_accuracy_req,"C(nF)="); disp("to satisfy both requirements,smaller of the two can b taken");
971a000d28a968131cd292bae331d1e9cf4960fa
449d555969bfd7befe906877abab098c6e63a0e8
/42/CH10/EX10.10/sadiku_10_10.sce
0951436be9559ce86eb3dba6af4536a72b208309
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
181
sce
sadiku_10_10.sce
clear; clc; kx=0,ky=.866,kz=.5,Eo=10^-9 /(36*%pi),Uo=4*%pi*10^-7; k=sqrt(kx*kx+ky*ky+kz*kz); w=k/(sqrt(Uo*Eo)); disp(w*10^-6,'w im Mrad/sec'); l=2*%pi/k; disp(l,'lamda = ')
5647812f42529fc494e9e8e5f63e3f62063db4c7
717ddeb7e700373742c617a95e25a2376565112c
/3424/CH8/EX8.1/Ex8_1.sce
ee2905a2d275511325c6a32b6fa5c771855d4bf5
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
507
sce
Ex8_1.sce
clc // Intialization of variables Re1 = 2100 // Reynold's number Re2 = 4000 // Reynold's number U = 2.73 * (10^(-5)) // lb.s/ft^2 D = 0.73/12 //ft d = 1.94 //slugs/ft^3 Vo = 0.0125 //ft^3 // Calculations V1 = Re1*U/(D*d) // ft/s t1 = Vo/((%pi/4)*(D^2)*V1) //s V2 = Re2*U/(D*d) // ft/s t2 = Vo/((%pi/4)*(D^2)*V2)//s // results printf("minimum time required to fill the glass for laminar flow is %.2f s",t1) printf("\n maximum time required to fill the glass for turbulent flow is %.2f s",t2)
8084e1b8adcde1295577e35c7560ad604c5d8382
449d555969bfd7befe906877abab098c6e63a0e8
/536/CH9/EX9.25/Example_9_25.sce
caaf845d2256d9303e5d07261d827f3874b1b259
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
783
sce
Example_9_25.sce
clc; clear; printf("\n Example 9.25") C_p=4e3; //If T K is the temperature of the liquid at time / s, then a heat balance on //the vessel gives: x=poly([0],'x'); T_max=roots((600*0.5)*(393-x)-(10*6)*(x-293)); printf("\n\n Maximum temperature to which it can be heated = %.1f K",T_max) //solving the equation finally we get t1=integrate('11111*(1/(376.3-T))','T',293,353); printf("\n Time taken to heat the liquid from 293 K to 353 K = %.0f s",t1); //The steam is turned off for 7200 s and during this time a heat balance gives: //on solving as given in book we get T=346.9; //The time taken to reheat the liquid to 353 K is then given by: t2=integrate('11111*(1/(376.3-T))','T',346.9,353); printf("\n Time taken to reheat the liquid to 353 K = %.0f s",t2);
cdb68e5c8e6f7b3c6e9f50614d9052930b678bb2
449d555969bfd7befe906877abab098c6e63a0e8
/2081/CH14/EX14.3/Ex14_3.sce
0381f75e1be9d3e9899a7ce3bb9a6336e39060f3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
122
sce
Ex14_3.sce
TDR=2000//transmission data rate Size=20*8 dtt=Size/TDR//data transfer time printf('data transfer time= %.f ms',dtt*10^3)
337fdf163ed6c1bd6d5a0be9373e630fa74924b9
449d555969bfd7befe906877abab098c6e63a0e8
/611/CH14/EX14.11/Chap14_Ex11.sce
37c1d9af796f65ab75ab24a9b429fdea3552f90f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,312
sce
Chap14_Ex11.sce
// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India. //Chapter-14,Example 11,Page 506 //Title: Primary reactions //================================================================================================================ clear clc //INPUT //The reactions occuring during steam reformation are given by: //CH4(g)+H2O(g)---->CO(g)+3H2(g) //CO(g)+H2O(g)----->CO2(g)+H2(g) //CH4(g)+2H2O(g)---->CO2(g)+4H2(g) //CO2(g)---->CO(g)+(1/2)O2(g) //CH4(g)+2O2(g)---->CO2(g)+2H2O(g) //CH4(g)+O2(g)---->CO(g)+H2O(g)+H2(g) //Let CH4=A1,H2O=A2,CO=A3,H2=A4,CO2=A5,O2=A6 stoichio_matrix=[-1 -1 1 3 0 0;0 -1 -1 1 1 0;-1 -2 0 4 1 0;0 0 1 0 -1 0.5;-1 2 0 0 1 -2;-1 1 1 1 0 -1]//Framing the stoichiometric coefficient matrix //CALCULATION r=rank(stoichio_matrix);//Determining the rank of the given matrix(number of independent row/columns),which is indicative of the number of primary reactions //Performing elementary row operations to obtain diagonal elements as 0 or 1 and all elements below the diagonal as zero stoichio_matrix(1,:)=-stoichio_matrix(1,:); stoichio_matrix(3,:)=stoichio_matrix(3,:)+stoichio_matrix(1,:); stoichio_matrix(5,:)=stoichio_matrix(5,:)+stoichio_matrix(1,:); stoichio_matrix(6,:)=stoichio_matrix(6,:)+stoichio_matrix(1,:); stoichio_matrix(2,:)=-stoichio_matrix(2,:); stoichio_matrix(3,:)=stoichio_matrix(3,:)+stoichio_matrix(2,:); stoichio_matrix(5,:)=stoichio_matrix(5,:)-(3*stoichio_matrix(2,:)); stoichio_matrix(6,:)=stoichio_matrix(6,:)-(2*stoichio_matrix(2,:)); x=stoichio_matrix(:,3); y=stoichio_matrix(:,4); stoichio_matrix(:,3)=y; stoichio_matrix(:,4)=x; stoichio_matrix(5,:)=stoichio_matrix(5,:)+(4*stoichio_matrix(4,:)); stoichio_matrix(6,:)=stoichio_matrix(6,:)+(2*stoichio_matrix(4,:)); //OUTPUT mprintf('\n The stoichiometric coefficient matrix after performing the elementary row operations=\n'); disp(stoichio_matrix); mprintf('\n The number of primary reactions=%d\n',r); mprintf('\n The non zero rows are (1,2,4)\n'); mprintf('\n The primary reactions are: CH4(g)+H2O(g)--->CO(g)+3H2(g), CO(g)+H2O(g)--->CO2(g)+H2(g), CO2(g)--->CO(g)+(1/2)O2(g)\n'); //===============================================END OF PROGRAM===================================================
290d0d4cc7ba4d77690b2f8b0e883df1fac46428
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set7/s__elelectronics_instrumentation_and_measurements_U._S._Shah_2195.zip/_elelectronics_instrumentation_and_measurements_U._S._Shah_2195/CH9/EX9.14.2/ex_9_14_2.sce
d14cd3725f77b076c08260e6929f53af8330fb39
[]
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
251
sce
ex_9_14_2.sce
errcatch(-1,"stop");mode(2);//Example 9.14.2 // time interval ; ; format('v',7) vdv=2;//volts per division in micro seconds/div n=2;//no. of divisions Tint=vdv*n;//peak to peak voltage in volts disp(Tint,"time interval in micro seconds is") exit();
67aefcbc09187488991d30da70457c25cd1ad12e
05ac16985ed247964c257764b2c14776a4cd6771
/trip-tests/trip03.tst
30a4067747f97f18b50fb4a863833722d00fb8e3
[]
no_license
felixitous/Graphs
e7887a194429cdbf073c6e41d0d1b9969e2e8ec7
395364c7bac49812d28a72dc8862e41ab39651ca
refs/heads/master
2021-01-22T10:01:56.943976
2014-01-15T22:45:23
2014-01-15T22:45:23
15,950,368
0
0
null
null
null
null
UTF-8
Scilab
false
false
104
tst
trip03.tst
java -ea trip.Main -m trip-tests/trip02 <<EOF Schenectady, Battery_Park, Great_Barrington, Fort_Lee EOF
bb038c783e8abbf5499fd48f882585ec7dc92d60
449d555969bfd7befe906877abab098c6e63a0e8
/3754/CH7/EX7.7/7_7.sce
e8e2a7eee67295a5871b2459811eb93ed7902e09
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
441
sce
7_7.sce
clear// //Variables k = 5.0 //dielectric constant A = 0.04 //Plate area (in meter-square) d = 0.02 //Thickness of dielectric(in meter) eps0 = 8.85 * 10**-12 //Absolute permittivity (in kg*m**3*s**-3*A**-2) //Calculation C = eps0 * k * A / d //Capacitance (in Farad) //Result printf("\n Capacitance of parallel plate capacitor is %0.3f pF." ,C * 10**12)
7c03fa1cb87def427fe99915785ecb5eead9435c
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set6/s_Electric_Machines_-_I_M._Verma_And_V._Ahuja_695.zip/Electric_Machines_-_I_M._Verma_And_V._Ahuja_695/CH2/EX2.32/Ex2_32.sce
6ee2f1aa1802c7daf069547ca21844fe4c896c60
[]
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
367
sce
Ex2_32.sce
errcatch(-1,"stop");mode(2);//Caption:Determine the resistance to be inserted in series //Exa:2.32 ; ; V=500;//in volts R_a=0.5;//in ohms I_a1=60;//in amperes E_1=V-(I_a1*R_a);//in volts I_a2=sqrt(((0.75)^3)*I_a1^2);//in amperes E_2=0.75*E_1*I_a2/I_a1;//in volts R=-(E_2-480.5)/38.97; disp(R,'the resistance to be inserted in series (in ohms)=') exit();
b9bad8167b3d08dcf56d78a09b54b312c33c88c9
449d555969bfd7befe906877abab098c6e63a0e8
/182/CH8/EX8.7/example8_7.sce
90fe0ec5d0188078458e8e3f3d7da85df855a19a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
520
sce
example8_7.sce
// to find the resistance inductance and the Q factor of the inductor // example 8-7 in page 209 clc; // given data // it is a maxwell's induction bridge C3=0.1e-6; R1=1.26e+3; R4=500; R3=470; // capacitance and resistor values in farad and ohm f=100;// frequency =100 Hz //calculation printf("Ls=%d mH\n",C3*R1*R4*1000);// here Ls=C3*R1*R4 printf("Rs=%.2f K-ohm\n",R1*R4/(R3*1000));//here Rs=R1*R4/R3 printf("Q=%.2f",(2*%pi*f*C3*R1*R4)/(R1*R4/R3));// Q=w*Ls/Rs //result //Ls=63 mH //Rs=1.34 K-ohm //Q=0.03
33d6f26a9607cf63dba99e33ba95bccf562b5825
0eea7d48e039f70051ddf39a431c9325998e775e
/elim_Gauss.sce
8d5fa06a6d3b40db42beaa17738260c88d9f2462
[]
no_license
dannylong/Dannylong
dc3e200009a356e5c63481737a6f3c3a515fbdab
5103df01e5bfef3031627b7eb35f815b63ed862c
refs/heads/master
2016-09-14T04:58:31.471187
2016-05-09T00:32:58
2016-05-09T00:32:58
58,337,691
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,043
sce
elim_Gauss.sce
clear; // Geração de números aleatórios de 1 a 6 //fix(6*rand()+1); A = [6 2 -1; 2 4 1; 3 2 8]; b = [7 7 13]; function Ab = gauss(A, b) Ab = [A b']; //Matriz aumentada Ab [linhas colunas] = size(A); for j = 1:colunas pivo = Ab(j, j); // PIVOTAMENTO PARCIAL //Pivotamento maiorLinha = j; for i = (j+1):linhas //procurar a linha do maior elemento if (abs(Ab(i,j)) > abs(Ab(maiorLinha, j))) then maiorLinha = i; end end //Permutar a linha do pivo(j) com a linha maiorLinha aux = Ab(j,:); Ab(j,:) = Ab(maiorLinha, :); Ab(maiorLinha, :) = aux; //Atualizar o pivo após o pivotamento pivo = Ab(j,j) for i = (j+1):linhas //zerar todos os termos abaixo do pivo //zerar o elemento Ab(i,j) Ab(i,:) = Ab(i, :) - (Ab(i,j)/pivo)*Ab(j,:); end end endfunction // Tratamento da Matriz aumentada "triangular superior" function x = resolMatTrSupAumentada(Ab) [linhas colunas] = size(Ab); x = (1:linhas)'; // Vetor solução, inicializado com uma sequência de 1 à ordem da Matriz A for i = linhas:-1:1 pivo = Ab(i, i); x(i) = Ab(i, colunas)/pivo; for j = 1:(colunas-1); if (j<>i) then x(i) = x(i) - x(j)*Ab(i, j)/pivo; end end end endfunction // Tratamento da Matriz aumentada "triangular inferior" function x = resolMatTrInfAumentada(Ab) [linhas colunas] = size(Ab); x = (1:linhas)'; // Vetor solução, inicializado com uma sequência de 1 à ordem da Matriz A for i = 1:linhas pivo = Ab(i, i); x(i) = Ab(i, colunas)/pivo; for j = 1:(colunas-1); if (j<>i) then x(i) = x(i) - x(j)*Ab(i, j)/pivo; end end end endfunction function x = resolverSistemaLinear(A, b) x = resolMatTrSupAumentada(gauss(A,b)); endfunction
e49203405646920958a4ee0f9e206c1c0e043e95
14880498693284f57507e99d65f9d65104a4566c
/html/pages/contact.php.tst
bf8e10f69ee96e938fed6cccd5e8ca41f9bd5e96
[]
no_license
hasakura12/AWS_QuikID_website
350f727586804909087a91bd0e31d144fa388749
55a03e0633099744b447eedd8fc88d6249b29ccb
refs/heads/master
2021-05-30T07:24:11.738439
2016-01-07T21:44:43
2016-01-07T21:44:43
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,543
tst
contact.php.tst
<?php $areas_of_int = array("QuickSafe Solutions","Partner","Other"); require_once('sweetcaptcha.php'); $contact = 'class="on"'; $title = "Contact"; $contacttpl = file_get_contents('pages/contact.tpl'); $action = _GET('action',''); $name = secureText(_POST('inputName','')); $email = secureText(_POST('inputEmail','')); $company = secureText(_POST('inputCompany','')); $phone = secureText(_POST('inputPhone','')); $interest = (int)_POST('inputSelect',''); $message = secureText(_POST('inputMessage','')); if (isset($areas_of_int[$interest]))$interest_s = $areas_of_int[$interest];else $interest_s = "it was try of attack, so don't need to reply... just skip him ;)"; $contactfrm = file_get_contents('pages/contact.frm.tst'); $what = array("@@NAME@@","@@EMAIL@@","@@COMPANY@@","@@PHONENUM@@","@@MESSAGE@@"); $towhat= array($name,$email,$company,$phone,$message); /* $contactfrm = str_replace("@@NAME@@", $name, $contactfrm); $contactfrm = str_replace("@@EMAIL@@", $email, $contactfrm); $contactfrm = str_replace("@@COMPANY@@", $company, $contactfrm); $contactfrm = str_replace("@@PHONENUM@@", $phone, $contactfrm); $contactfrm = str_replace("@MESSAGE@", $message, $contactfrm); */ $contactfrm = str_replace($what, $towhat, $contactfrm); $captchaCorrect = 0; $captcha = $sweetcaptcha->get_html(); if (!empty($_POST)){ if (isset($_POST['sckey']) and isset($_POST['scvalue']) and $sweetcaptcha->check(array('sckey' => $_POST['sckey'], 'scvalue' => $_POST['scvalue'])) == "true") { $captchaCorrect = 1; }else $captchaCorrect = -1; } if (($captchaCorrect==1)&&($action == 'dosend')){ $myemail = 'tricha.oh@fusionpipe.com'; //$myemail = 'kzapior@fusionpipe.com'; $errorstr = ''; if (!$name)$errorstr .= " Name"; if (!$email)$errorstr.= " E-mail Address"; if (!$company)$errorstr.= " Company"; if (!$phone)$errorstr.= " Phone Number"; if (!$interest)$errorstr.= " Area of Interest"; if (!$message)$errorstr.= " Message"; $sent_success = 0; if ($errorstr!=""){ $errorstr = 'Error!'.$errorstr." have an invalid value"; }else{//1 /* If e-mail is not valid show error message */ if (preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email)){ /* Let's prepare the message for the e-mail */ $subject = " $name has sent you a message"; $message = "$name has sent you a message using your contact form: Name: $name Email: $email Company: $company Phone: $phone Area of Interest: $interest_s Message: $message"; if (isset($_POST['cadv'])){ $adverts = 1; }else $adverts = 0; /* Send the message using mail() function */ if (mail($myemail, $subject, $message)){ $sent_success = 1; }else{ $errorstr = "Unfortunately we couldn't deliver your email, please try to contact us using phone"; } AddMarketingUser($name,'',$company,$email,3,$interest,$adverts); }else{ $errorstr = "Invalid e-mail address"; } }//1 if ($sent_success){ $thankinfo = file_get_contents('pages/contact.thx'); $contacttpl = str_replace('@CONTACT@',$thankinfo,$contacttpl); }else { $contacttpl = str_replace('@CONTACT@',$contactfrm,$contacttpl); } }//dosend else{ //nobody sends :( $contacttpl = str_replace('@CONTACT@',$contactfrm,$contacttpl); } if ($captchaCorrect == -1){ $errorstr = "The images are not matched correctly. Please try again."; } $contacttpl = str_replace("@CAPTCHA@",$captcha,$contacttpl); $contacttpl = str_replace("@ERROR@", $errorstr, $contacttpl); $content = $contacttpl; ?>
a3f2eddd85f27937e7e275e47dfe66d78df5ad95
449d555969bfd7befe906877abab098c6e63a0e8
/1370/CH5/EX5.7/exp5_7.sce
0a409466488642395f0a85144336903c23813ec4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
870
sce
exp5_7.sce
//Example 5.7 calculate torque developed on full load by the motor. clc disp("P = 4, f = 50 Hz, R2 = 0.1 ohm, X2 = 1 ohm, N = 1440 r.p.m") disp("Stator turns/Rotor turns = 2/1") disp("Therefore, K = E2/E1 = Rotor turns/Stator turns = 1/2 = 0.5") ns=(120*50)/4 format(5) disp(ns,"N_s(in r.p.m) = 120f/P =") disp("E_1line = 400 V ...Stator line voltage given") e1=400/sqrt(3) format(7) disp(e1,"Therefore, E_1ph(in V) = E_1line/sqrt(3) =") disp("But E_2ph/E_1ph = 0.5 = K") e2=230.94/2 disp(e2,"Therefore, E_2ph(in V) =") s=(1500-1440)/1500 format(5) disp(s,"Full load slip, s = N_s-N / N_s =") ns=1500/60 disp("n_s(in r.p.s) = Synchoronous speed in r.p.s") disp(ns," = N_s/60 =") t=(3/(2*%pi*25))*((0.04*0.1*115.47^2)/((0.1^2)+(0.04^2))) format(6) disp(t,"T(in N-m) = (3 / 2*pi*ns) * (s*E2^2*R2 / R2^2+(s*X2)^2) =")
356d13326897ab7d7c7081360b3ac94b11564c3a
449d555969bfd7befe906877abab098c6e63a0e8
/1793/CH18/EX18.1/18Q1.sce
b02ebc5d99ce2ee48ffe910d4bb718a474efc246
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
101
sce
18Q1.sce
clc //solving for z=5 only To=0.275 Cn=To^(-0.5) N60=8 N160=Cn*N60 printf('(N1)60 = %f',N160)
f417b9db589c4a344323fd9d8066431184c8f7f7
449d555969bfd7befe906877abab098c6e63a0e8
/2561/CH12/EX12.4/Ex12_4.sce
ce649cddfef3d3b0d05c11bd6a57c113cd9683b2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
603
sce
Ex12_4.sce
//Ex12_4 clc VI=-15 disp("VI= "+string(VI)+" volts") // Input voltage TSW=2*10^(-3) disp("TSW= "+string(TSW)+" seconds")// triangular wave Sweep time R=10*10^(3) disp("R= "+string(R)+ " ohm") // resistance as ckt. parameter C=0.5*10^(-6) disp("C= "+string(C)+" farad") // capacitance as ckt. parameter S=-VI/(R*C) disp("Sweep rate=VI/(R*C)="+string(S)+ " V/s") // Sweep rate for sweep generator VSW=TSW*S disp("VSW=TSW*S= "+string(VSW)+" volts") // Sweep voltage amplitude // note in book author has not provided any variable for sweep rate ... but here I have used 'S' for it .
a77f4c14314f8d51002033303827b08e3f7c1162
449d555969bfd7befe906877abab098c6e63a0e8
/213/CH11/EX11.7/11_7.sce
0ea507ea152d015b8405bcaaa6a9fa71c6f13b9f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,512
sce
11_7.sce
//To find stress in the belt clc //Given: N1=200, N2=300 //rpm P=6*1000 //W b=100, t=10 //mm x=4, d2=0.5 //m mu=0.3 //Solution: //Stress in the belt for an open belt drive: //Calculating the diameter of the larger pulley d1=d2*(N2/N1) //m //Calculating the velocity of the belt v=%pi*d2*N2/60 //m/s //Calculating the angle alpha for an open belt drive alphao=asin((d1-d2)/x)*180/%pi //degrees //Calculating the angle of contact on the smaller pulley thetao=(180-2*alphao)*%pi/180 //radians //Calculating the tensions in the belt //Ratio of the tensions in the belt, T1/T2 = exp(mu*thetao), or T1-T2*exp(mu*thetao) = 0 //Power transmitted, P = (T1-T2)*v, or T1-T2 = P/v A=[1 -exp(mu*thetao); 1 -1] B=[0; P/v] V=A \ B T1o=V(1) //N T2o=V(2) //N //Calculating the stress in the belt sigmao=T1o/(b*t) //MPa //Stress in the belt for a cross belt drive: //Calculating the angle alpha for a cross belt drive alphac=asin((d1+d2)/(2*x))*180/%pi //degrees //Calculating the angle of contact thetac=(180+2*alphac)*%pi/180 //radians //Calculating the tensions in the belt //Ratio of the tensions in the belt, T1/T2 = exp(mu*thetac), or T1-T2*exp(mu*thetac) = 0 //Power transmitted, P = (T1-T2)*v, or T1-T2 = P/v A=[1 -exp(mu*thetac); 1 -1] B=[0; P/v] V=A \ B T1c=V(1) //N T2c=V(2) //N //Calculating the stress in the belt sigmac=T1c/(b*t) //MPa //Results: printf("\n\n Stress in the belt for an open belt drive, sigma = %.3f MPa.\n\n",sigmao) printf(" Stress in the belt for a cross belt drive, sigma = %.3f MPa.\n\n",sigmac)
c7350bf424cc623b5c5a1a615cf43eaa27789df2
449d555969bfd7befe906877abab098c6e63a0e8
/34/CH2/EX2.6/Ch2Exa6.sci
446e10bd04d61e63553e6310ae80d84bb5120f52
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
647
sci
Ch2Exa6.sci
//Example 2.6 (b) c=3*10^8; //velocity of light, m/s V= 0.5*c; //velocity of electron and positron, m/s y= 1/sqrt(1-(V/c^2)); //gamma, for relativistic momentum m=0.511/c^2; //MeV K= 2*y*m*V; //difference in momentum of both photons L= 2*y*m*c; //conservation of energy, sum of momentum of both photons p1= (L+K)/2; //momentum of first photon, MeV disp(p1*c ,"The momentum of forst photon, in MeV /c, is: ") disp((1-p1*c) ,"The momentum of second photon, in MeV /c, is: ") //Result // The momentum of forst photon, in MeV /c, is: // 0.7665 // The momentum of second photon, in MeV /c, is: // 0.2335
7f263dd3275bff1e237211725f32f48f65e996b8
449d555969bfd7befe906877abab098c6e63a0e8
/3760/CH9/EX9.6/ExB_6.sce
0875e20300266c40a93d8e75b50e6008284a51b2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
421
sce
ExB_6.sce
clc; w1=85; // reading of wattmeter 1; w2=35; // reading of wattmeter 2; P=w1+w2; // total input power n=0.85; // efficiency of motor vl=1100; // supply voltage pf=cosd(atand((sqrt(3)*(w1-w2))/(w1+w2))); il=(P*1000)/(sqrt(3)*vl*pf); // line current ps=n*P; printf('Input power is %f KW\n',P); printf('Line current is %f A\n',il); printf('power factor is %f lagging\n',pf); printf('shaft power is %f KW',ps);
73c99fbbbe8c5c86492f5c00d6097fef9ee2a09d
e41b69b268c20a65548c08829feabfdd3a404a12
/3DCosmos/Data/Scripts/StereoPictures/SlideShows.SCI
d9f58b5dcc3ab8c1f270f69f009cd712eb34fe3a
[ "LicenseRef-scancode-khronos", "MIT" ]
permissive
pvaut/Z-Flux
870e254bf340047ed2a52d888bc6f5e09357a8a0
096d53d45237fb22f58304b82b1a90659ae7f6af
refs/heads/master
2023-06-28T08:24:56.526409
2023-03-01T12:44:08
2023-03-01T12:44:08
7,296,248
1
1
null
2023-06-13T13:04:58
2012-12-23T15:40:26
C
UTF-8
Scilab
false
false
17,387
sci
SlideShows.SCI
codeblock readtextfile(ScriptDir+"\_TOOLS.sci"); ############################################################################################### # INIT SCENE AND VIEWPORT ############################################################################################### sf=T_scene_create; sss=T_getscene; vp=T_getviewport; vp.CameraPos=point(0,0,1); vp.CameraDir=vector(0,0,-1); vp.FocalDistance=1; vp.NearClipPlane=0.1; vp.FarClipPlane=20; vp.enableusernavigation=false; vp.EnableUserStop=true; ############################################################################################### # PROMPT USER ############################################################################################### slideshowfilename=""; if isdefined(ScriptArgument) then if ScriptArgument.Length>0 then slideshowfilename=ScriptArgument; if slideshowfilename.length<=0 then { slideshowlist=GetFileList(datadir+"\SlideShows\*.sci"); menu=T_createmenu("Select slide show",true); menu.sizex=0.35; root.SC.Universe.MenuFrame.Color=color(1,1,1,1); vp.ShowControls=true; foreach slideshowfilename in slideshowlist do { slideshowname=slideshowfilename;slideshowname.Invert;slideshowname.split(".");slideshowname.Invert; menu.Add("",slideshowname,slideshowfilename); } T_menu_appendclose; menufinished=false; while not(menufinished) do { if menu.WasModified then { menufinished=true; currentfolder=menu.SelectID; } render; } slideshowfilename=datadir+"\SlideShows\"+menu.SelectID; if menu.SelectID=="[Close]" then stop; T_delmenu; } ########################################################################### # action functions definitions ########################################################################### actions=list; attime=0; function picturefolder(foldername) { act=map; act.AtTime=attime; act.ID="PictureFolder"; act.FolderName=foldername; actions.add(act); } function videofolder(foldername) { act=map; act.AtTime=attime; act.ID="VideoFolder"; act.FolderName=foldername; actions.add(act); } function transition(tpe,delay) { act=map; act.AtTime=attime; act.ID="Transition"; act.Tpe=tpe; act.Delay=delay; actions.add(act); } function showstereopic(imagename,exarg1,exarg2,exarg3,exarg4,exarg5) { act=map; act.AtTime=attime; act.ID="ShowStereoPic"; act.ImageName=imagename; exargs=map; if isvardefined("exarg1") then exargs.additem(exarg1); if isvardefined("exarg2") then exargs.additem(exarg2); if isvardefined("exarg3") then exargs.additem(exarg3); if isvardefined("exarg4") then exargs.additem(exarg4); if isvardefined("exarg5") then exargs.additem(exarg5); act.exargs=exargs; actions.add(act); } function panstereopic(imagename,exarg1,exarg2,exarg3,exarg4,exarg5) { act=map; act.AtTime=attime; act.ID="PanStereoPic"; act.ImageName=imagename; exargs=map; if isvardefined("exarg1") then exargs.additem(exarg1); if isvardefined("exarg2") then exargs.additem(exarg2); act.exargs=exargs; actions.add(act); } function hidestereopic(imagename) { act=map; act.AtTime=attime; act.ID="HideStereoPic"; act.ImageName=imagename; actions.add(act); } function AutoHidePrevious(newstatus) { act=map; act.AtTime=attime; act.ID="AutoHidePrevious"; act.NewStatus=newstatus; actions.add(act); } function showstereovideo(filename) { act=map; act.AtTime=attime; act.ID="ShowStereoVideo"; act.FileName=filename; actions.add(act); } function showtext(content,posit,exarg1,exarg2,exarg3,exarg4,exarg5) { act=map; act.AtTime=attime; act.ID="ShowText"; act.Content=content; act.Posit=posit; exargs=map; if isvardefined("exarg1") then exargs.additem(exarg1); if isvardefined("exarg2") then exargs.additem(exarg2); if isvardefined("exarg3") then exargs.additem(exarg3); if isvardefined("exarg4") then exargs.additem(exarg4); if isvardefined("exarg5") then exargs.additem(exarg5); act.exargs=exargs; actions.add(act); } function SoundFolder(folder) { act=map; act.AtTime=attime; act.ID="SoundFolder"; act.FolderName=folder; actions.add(act); } function PlaySound(filename,volume) { act=map; act.AtTime=attime; act.ID="PlaySound"; act.FileName=filename; act.Volume=500; if isvardefined("volume") then act.Volume=volume; actions.add(act); } function StopSound(filename) { act=map; act.AtTime=attime; act.ID="StopSound"; act.FileName=filename; actions.add(act); } function FadeSound(filename,newvol,durat) { act=map; act.AtTime=attime; act.ID="FadeSound"; act.FileName=filename; act.NewVol=newvol; act.Durat=durat; actions.add(act); } function delay(seconds) { act=map; act.AtTime=attime; act.ID="Delay"; act.Seconds=seconds; actions.add(act); attime=attime+seconds; } function waituser() { act=map; act.AtTime=attime; act.ID="WaitUser"; actions.add(act); } function loop() { act=map; act.AtTime=attime; act.ID="Loop"; act.Durat=attime; actions.add(act); } function end() { act=map; act.AtTime=attime; act.ID="End"; act.Durat=attime; actions.add(act); } ###########################################################################" # Here comes the scenario writeout codeblock readtextfile(slideshowfilename); ########################################################################### # RENDER VARIABLE DEFINITIONS ########################################################################### PictureFolder=slideshowfilename; PictureFolder.invert;PictureFolder.split(".");PictureFolder.invert; SoundFolder=PictureFolder; VideoFolder=PictureFolder; extension="jpg"; activetransition="fade"; transitionspeed=1.5; autohideprevious=true; activepics=list; rootframe=T_getrootframe; screensizey=2*tan(vp.aperture/2); screensizex=screensizey*vp.aspectratio; activesounds=list; curpicfactor=1; ########################################################################### # ACTION FUNCTION IMPLEMENTATIONS ########################################################################### function Exec_ShowStereoPic(args) { actpic=map; actpic.ImageName=args.ImageName; actpic.FileName=PictureFolder+"\"+actpic.ImageName+"."+extension; actpic.Frame=rootframe.addsubframe(actpic.ImageName); actpic.StopAt=9999999999; sizefactor=1; if args.exargs.IsPresent("Size") then sizefactor=args.exargs.Size; pos=point(0,0,0); if args.exargs.IsPresent("Position") then pos=args.exargs.Position; bmp=loadbitmap(actpic.FileName); xr=bmp.xres/2; yr=bmp.yres; if (xr==0) or (yr==0) then throw("Invalid or absent file "+actpic.FileName); bmp1=bmp.crop(0,0,xr,yr); bmp2=bmp.crop(xr,0,xr,yr); frx=vp.aspectratio/xr; fry=1/yr; fr=min(frx,fry); fr=fr*screensizey; tx1=actpic.Frame.CreateBitmapTexture("tx1",bmp1); tx2=actpic.Frame.CreateBitmapTexture("tx2",bmp2); actpic.posit=pos; actpic.sizex=fr*xr*sizefactor; actpic.sizey=fr*yr*sizefactor; actpic.Frame.add("Rectangle","Name":"REC","Axis1":vector(actpic.sizex,0,0),"Axis2":vector(0,actpic.sizey,0), "position":point(pos.x-0.5*actpic.sizex,pos.y-0.5*actpic.sizey,-0.0001-pos.z),"EnableLight":false, "Texture":tx1.name, "TextureRight":tx2.name, "color":color(1,1,1), "BlendType":BlendTransLucent, "DepthMask":DepthMaskDisable); actpic.StartAt=timer.elapsed; actpic.dopanning=false; if autohideprevious then foreach pic in activepics do pic.StopAt=timer.elapsed; activepics.add(actpic); curpicframe=actpic.frame; curpicfactor=actpic.sizex; } function Exec_PanStereoPic(args) { durat=1; if args.exargs.IsPresent("Duration") then durat=args.exargs.Duration; destpos=point(0,0,0); if args.exargs.IsPresent("Position") then destpos=args.exargs.Position; foreach pic in activepics do if pic.ImageName==args.ImageName then { pic.dopanning=true; pic.panningstarted=timer.elapsed; pic.panningduration=durat; pic.panningpositfrom=pic.posit; pic.panningpositto=destpos; } } function Exec_HideStereoPic(args) { foreach pic in activepics do if pic.ImageName==args.ImageName then pic.StopAt=timer.elapsed; } function Exec_AutoHidePrevious(args) { autohideprevious=args.NewStatus; } function Exec_loop(args) { nextaction=0; foreach action in actions do action.AtTime=action.AtTime+args.durat; } function Exec_ShowText(args) { # curpicfactor=1; output("exec_showtext "+str(curpicfactor)); textsize=curpicfactor; if args.exargs.IsPresent("Size") then textsize=curpicfactor*args.exargs.Size; textcolor=color(1,1,1); if args.exargs.IsPresent("Color") then textcolor=args.exargs.Color; psit=point(curpicfactor*args.posit.x,curpicfactor*args.posit.y,args.posit.z); curpicframe.add("Text3D","Content":args.content,"Position":(psit+vector(0.05*textsize,-0.05*textsize,0.001)), "UnitX":vector(textsize,0,0),"UnitY":vector(0,textsize,0),"EnableLight":false, "BlendType":BlendTransLucent, "DepthMask":DepthMaskDisable, "Color":color(0,0,0)); curpicframe.add("Text3D","Content":args.content,"Position":(psit+vector(0,0,0.002)), "UnitX":vector(textsize,0,0),"UnitY":vector(0,textsize,0),"EnableLight":false, "BlendType":BlendTransLucent, "DepthMask":DepthMaskDisable, "Color":textcolor); } function Exec_PlaySound(args) { snd=addsound(SoundFolder+"\"+args.FileName); snd.custom.filename=args.FileName; activesounds.add(snd); snd.SetVolume(args.Volume); snd.Start; } function Exec_StopSound(args) { snd=findactivesound(args.FileName); snd.dispose; } function Exec_FadeSound(args) { snd=findactivesound(args.FileName); snd.FadeVolume(args.NewVol,args.Durat); } function Exec_ShowStereoVideo(args) { actvid=map; actvid.ImageName=args.FileName; FileName=VideoFolder+"\"+args.FileName; filename.replace("/","\"); actvid.Frame=rootframe.addsubframe(FileName); soundfilename=filename+".mp3"; vdleft=addvideo(filename+"_L.avi"); vdright=addvideo(filename+"_R.avi"); vdxres=vdleft.GetXRes; vdyres=vdleft.GetYRes; vdframerate=round(vdleft.GetFrameRate); vdframecount=vdleft.GetFrameCount; frx=vp.aspectratio/vdxres; fry=1/vdyres; fr=min(frx,fry); fr=fr*screensizey; sizex=fr*vdxres; sizey=fr*vdyres; vdrc=actvid.frame.add("Rectangle","Name":"VidREC","Axis1":vector(sizex,0,0),"Axis2":vector(0,sizey,0), "position":point(0-0.5*sizex,0-0.5*sizey,0),"EnableLight":false); txl=actvid.frame.CreateVideoTexture("left",vdleft); txr=actvid.frame.CreateVideoTexture("right",vdright); vdrc.Texture="left"; vdrc.TextureRight="right"; oldframerate=root.FrameRate; root.FrameRate=vdframerate; #Fade in for i=0 to 30 do { vp.FadeColor=color(0,0,0,1-i/30); render; } #Start sound file createvar(snd); soundpresent=false; if FileIsPresent(soundfilename) then { snd=addsound(soundfilename); snd.Start; soundpresent=true; } #Play video frnr=0; while frnr<vdframecount do { incrtime; vdleft.CurrentFrame=frnr; vdright.CurrentFrame=frnr; frnr=frnr+1; render; } #fade out for i=0 to 30 do { vp.FadeColor=color(0,0,0,i/30); render; } root.FrameRate=oldframerate; actvid.frame.dispose; vdleft.dispose; vdright.dispose; if soundpresent then { snd.stop; snd.dispose; } vp.fadecolor=color(0,0,0,0); } function Exec_WaitUser() { aaa=0; } ############################################################################################ # SOME INTERNAL FUNCTIONS ############################################################################################ function findactivesound(filename) { foreach snd in root.sounds.getmembers do if snd.custom.filename==filename then return(snd); throw("Invalid active sound "+filename); } function apply_appear(subframe,frac) { frac=max(frac,0); frac=min(frac,1); if activetransition=="Curtain" then { subframe.transf.reset; subframe.transf.rotate(vector(0,1,0),(frac-1)*Pi/2); subframe.transf.origin=point((frac-1)*screensizex,0,0.5*sin((frac-1)*Pi/2)); return(0); } if activetransition=="Pan" then { subframe.transf.reset; subframe.transf.origin=point((frac-1)*screensizex,0,0); return(0); } if activetransition=="Transient" then { subframe.Color=color(1,1,1,frac); return(0); } if activetransition=="Zoom" then { subframe.getparent.moveobject(subframe.name,-999); subframe.REC.Color=color(frac,frac,frac,frac); frac2=1-frac;frac2=sqr(frac2); subframe.transf.origin=point(0,0,-15*frac2); return(0); } frac=min(1,2*frac-1); subframe.Color=color(1,1,1,frac); } function apply_disappear(subframe,frac) { frac=max(frac,0); frac=min(frac,1); frac=frac; if activetransition=="Curtain" then { subframe.transf.reset; subframe.transf.rotate(vector(0,1,0),frac*Pi/2); subframe.transf.origin=point(frac*screensizex,0,-0.5*sin(frac*Pi/2)); return(0); } if activetransition=="Pan" then { subframe.transf.reset; subframe.transf.origin=point((frac)*screensizex,0,0); return(0); } if activetransition=="Transient" then { subframe.Color=color(1,1,1,1-frac); return(0); } if activetransition=="Zoom" then { subframe.REC.Color=color(1,1,1,1-frac); subframe.transf.origin=point(0,0,0.9*frac); return(0); } frac=min(1,2*frac); subframe.Color=color(1,1,1,1-frac); } function sweep_appear() { foreach pic in activepics do { if pic.StartAt+transitionSpeed>timer.elapsed-1/10 then { apply_appear(pic.Frame,(timer.elapsed-pic.StartAt)/transitionspeed); } } } function sweep_disappear() { picnr=0; while picnr<activepics.size do { pic=activepics(picnr); if pic.StopAt<timer.elapsed then { apply_disappear(pic.Frame,(timer.elapsed-pic.StopAt)/transitionspeed); if pic.StopAt+transitionspeed<timer.elapsed then { pic.Frame.dispose; activepics.del(picnr);picnr=picnr-1; } } picnr=picnr+1; } } function sweep_pan() { foreach pic in activepics do { if pic.dopanning then { fr=(timer.elapsed-pic.panningstarted)/pic.panningduration; if (fr>=0) and (fr<=1) then { fr=1-(1-fr)*(1-fr); fr=fr*fr; pic.posit=pic.panningpositfrom+fr*(pic.panningpositto-pic.panningpositfrom); pic.Frame.REC.position=point(pic.posit.x-0.5*pic.sizex,pic.posit.y-0.5*pic.sizey,-0.0001-pic.posit.z); } else { pic.dopanning=false; } } } } ########################################################################### # THE RENDER LOOP ########################################################################### timer=chrono; nextaction=0; createvar(curpicframe); while nextaction<actions.size do { if actions(nextaction).attime<timer.elapsed then { actID=actions(nextaction).ID; timer.pauze; if actID=="PictureFolder" then PictureFolder=actions(nextaction).Foldername; if actID=="SoundFolder" then SoundFolder=actions(nextaction).Foldername; if actID=="VideoFolder" then VideoFolder=actions(nextaction).Foldername; if actID=="Transition" then { activetransition=actions(nextaction).tpe; transitionspeed=actions(nextaction).delay; } if actID=="Loop" then Exec_loop(actions(nextaction)); if actID=="ShowStereoPic" then Exec_ShowStereoPic(actions(nextaction)); if actID=="PanStereoPic" then Exec_PanStereoPic(actions(nextaction)); if actID=="HideStereoPic" then Exec_HideStereoPic(actions(nextaction)); if actID=="AutoHidePrevious" then Exec_AutoHidePrevious(actions(nextaction)); if actID=="ShowStereoVideo" then Exec_ShowStereoVideo(actions(nextaction)); if actID=="ShowText" then Exec_ShowText(actions(nextaction)); if actID=="PlaySound" then Exec_PlaySound(actions(nextaction)); if actID=="StopSound" then Exec_StopSound(actions(nextaction)); if actID=="FadeSound" then Exec_FadeSound(actions(nextaction)); if actID=="WaitUser" then Exec_WaitUser; timer.Resume; nextaction=nextaction+1; } if UIIsKeyDown("return") or UIIsLeftMouseButtonDown or JoystickButtonClicked(0,4) or NavigatorPressing then { while UIIsKeyDown("return") or UIIsLeftMouseButtonDown or JoystickButtonClicked(0,4) do { render; } if nextaction<actions.size then { timer.set(actions(nextaction).attime); } } if UIIsKeyDown("escape") or RightMouseClicked or NavigatorPulling or JoystickButtonClicked(0,6) then { while UIIsKeyDown("escape") do { render; } stop; } sweep_appear; sweep_disappear; sweep_pan; render; } resetallsounds;
d7d2045e49a8f38c6e271bfd6046063c516d6947
449d555969bfd7befe906877abab098c6e63a0e8
/770/CH17/EX17.13/17_13.sce
7500d046968d80fa4fe780c416abb4d96fbd66c7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
3,967
sce
17_13.sce
clear; clc; //Example - 17.13 //Page number - 611 printf("Example - 17.13 and Page number - 611\n\n"); // Given T_1 = 298.15;//[K] T = 2600;//[K] R = 1.987;//[cal/mol-K] - Universal gas constant // Cp_0 = a + b*T + c*T^(2) + d*T^(3) delta_H_CO_298 = -26.416;//[kcal/mol] - Enthalpy of formation of CO at 298.15 K delta_G_CO_298 = -32.808;//[kcal/mol] - Gibbs free energy change for formation of CO at 298.15 K delta_H_CO2_298 = -94.052;//[kcal/mol] - Enthalpy of formation of C02 at 298.15 K delta_G_CO2_298 = -94.260;//[kcal/mol] - Gibbs free energy change for formation of CO2 at 298.15 K // CO + (1/2)*O2 - CO2 a_CO = 6.726; a_O2 = 6.0685; a_CO2 = 5.316; b_CO = 0.04001*10^(-2); b_O2 = 0.3631*10^(-2); b_CO2 = 1.4285*10^(-2); c_CO = 0.1283*10^(-5); c_O2 = -0.1709*10^(-5); c_CO2 = -0.8362*10^(-5); d_CO = -0.5307*10^(-9); d_O2 = 0.3133*10^(-9); d_CO2 = 1.784*10^(-9); delta_H_rkn_298 = delta_H_CO2_298 - delta_H_CO_298;//[kcal] delta_H_rkn_298 = delta_H_rkn_298*10^(3);//[cal] delta_G_rkn_298 = delta_G_CO2_298 - delta_G_CO_298;//[kcal] delta_G_rkn_298 = delta_G_rkn_298*10^(3);//[cal] delta_a = a_CO2 - (a_CO) - (a_O2/2); delta_b = b_CO2 - (b_CO) - (b_O2/2); delta_c = c_CO2 - (c_CO) - (c_O2/2); delta_d = d_CO2 - (d_CO) - (d_O2/2); // delta_H_rkn_T = delta_H_rkn_298 + integrate('delta_a+(delta_b*T)+(delta_c*T^(2))+(delta_d*T^(3))','T',T_1,T); // On simplification we get delta_H_rkn_T = -66773.56 - 4.45*T + 0.605*10^(-2)*T^(2) - 0.29*10^(-5)*T^(3) + 0.54*10^(-9)*T^(4); // log(K/K_298) = integrate('delta_H_rkn_T/(R*T^(2))','T',T_1,T) // We know that delta_G_rkn_T = -R*T*log(K) // At 298.15 K K_298 = exp(-delta_G_rkn_298/(R*T_1) ); // Therfore on simplification we get //log(K) = 2.94 + 33605.2/T - 2.24*log(T) + 0.304*10(-2)*T - 0.073*10^(-5)*T^(2) + 0.09*10^(-9)*T^(3) K = exp(2.94 + 33605.2/T - 2.24*log(T) + 0.304*10^(-2)*T - 0.073*10^(-5)*T^(2) + 0.09*10^(-9)*T^(3)); printf(" The value of equilibrium constant at 2600 K is given by, K_298 = %f\n\n",K); //(a) P_1 = 1;//[atm] Kp_1 = P_1^(-1/2); Ky_1 = K/Kp_1; // Let the reaction coordinate at equilibrium for the reaction be X // At equilibrium, the moles of the components be // n_CO_1_eq = 1 - X // n_02_1_eq = 0.5- 0.5X // n_CO2_1_eq = X // Total moles = 1.5 - 0.5*X // Ky = y_CO2/(y_CO^(1/2)*y_CO) //ky = (X*(1.5-0.5*X)^(1/2))/((1-X)*(0.5-0.5*X)^(1/2)) deff('[y]=f(X)','y= Ky_1-(X*(1.5-0.5*X)^(1/2))/((1-X)*(0.5-0.5*X)^(1/2))'); X_1 = fsolve(0.9,f); y_CO2_1 = X_1/(1.5-0.5*X_1); y_CO_1 = (1-X_1)/(1.5-0.5*X_1); y_O2_1 = (0.5-0.5*X_1)/(1.5-0.5*X_1); printf(" (a).The equilibrium composition (at 1 atm) is given by, y_CO2 = %f, y_CO = %f and y_O2 = %f\n\n",y_CO2_1,y_CO_1,y_O2_1); //(b) P_2 = 10;//[atm] Kp_2 = P_2^(-1/2); Ky_2 = K/Kp_2; // Ky = y_CO2/(y_CO^(1/2)*y_CO) //ky = (X*(1.5-0.5*X)^(1/2))/((1-X)*(0.5-0.5*X)^(1/2)) deff('[y]=f1(X)','y= Ky_2-(X*(1.5-0.5*X)^(1/2))/((1-X)*(0.5-0.5*X)^(1/2))'); X_2 = fsolve(0.9,f1); y_CO2_2 = X_2/(1.5-0.5*X_2); y_CO_2 = (1-X_2)/(1.5-0.5*X_2); y_O2_2 = (0.5-0.5*X_2)/(1.5-0.5*X_2); printf(" (b).The equilibrium composition (at 10 atm) is given by, y_CO2 = %f, y_CO = %f and y_O2 = %f\n\n",y_CO2_2,y_CO_2,y_O2_2); //(c) P_3 = 1;//[atm] Kp_3 = P_3^(-1/2); Ky_3 = K/Kp_3; // Ky = y_CO2/(y_CO^(1/2)*y_CO) //ky = (X*(1.5-0.5*X)^(1/2))/((1-X)*(0.5-0.5*X)^(1/2)) // At equilibrium, the moles of the components be // n_CO_3_eq = 1 - X // n_02_3_eq = 0.5- 0.5X // n_CO2_3_eq = X // n_N2_eq = 1; // Total moles = 2.5 - 0.5*X deff('[y]=f2(X)','y= Ky_3-(X*(2.5-0.5*X)^(1/2))/((1-X)*(0.5-0.5*X)^(1/2))'); X_3 = fsolve(0.9,f2); y_CO2_3 = X_3/(2.5-0.5*X_3); y_CO_3 = (1-X_3)/(2.5-0.5*X_3); y_O2_3 = (0.5-0.5*X_3)/(2.5-0.5*X_3); y_N2 = 1/(2.5-0.5*X_3); printf(" (c).The equilibrium composition (at 1 atm and 1 mol N2) is given by, y_CO2 = %f, y_CO = %f , y_O2 = %f and y_N2 = %f\n\n",y_CO2_3,y_CO_3,y_O2_3,y_N2);
1909a4043c31139260e0c4d2e764fdc3b7195c76
dc1af20bca10db33d1adcbf61d5fe874eb6eab07
/qa_demo_vcast_pipeline/qa_demo/environment/UUT_DATABASE/UUT_DATABASE.tst
6488c7379ee267b08d0c667b5dc01f0d156b552d
[]
no_license
TimSVector/PointOfSales_v2
2d1130516cfc5d77f2e5d0f60adcde96374f6fc2
ef630f05850715568725cf94cc0e497146a049d4
refs/heads/master
2023-08-04T10:51:50.031346
2023-08-03T20:50:28
2023-08-03T20:50:28
133,404,783
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,307
tst
UUT_DATABASE.tst
-- VectorCAST 21 (04/16/21) -- Test Case Script -- -- Environment : UUT_DATABASE -- Unit(s) Under Test: database -- -- Script Features TEST.SCRIPT_FEATURE:C_DIRECT_ARRAY_INDEXING TEST.SCRIPT_FEATURE:CPP_CLASS_OBJECT_REVISION TEST.SCRIPT_FEATURE:MULTIPLE_UUT_SUPPORT TEST.SCRIPT_FEATURE:REMOVED_CL_PREFIX TEST.SCRIPT_FEATURE:MIXED_CASE_NAMES TEST.SCRIPT_FEATURE:STATIC_HEADER_FUNCS_IN_UUTS TEST.SCRIPT_FEATURE:VCAST_MAIN_NOT_RENAMED -- -- Unit: database -- Subprogram: Get_Table_Record -- Test Case: BASIS-PATH-001 TEST.UNIT:database TEST.SUBPROGRAM:Get_Table_Record TEST.NEW TEST.NAME:BASIS-PATH-001 TEST.BASIS_PATH:1 of 1 TEST.NOTES: No branches in subprogram TEST.END_NOTES: TEST.VALUE:database.Get_Table_Record.Table:<<MIN>> TEST.END -- Subprogram: Update_Table_Record -- Test Case: BASIS-PATH-001 TEST.UNIT:database TEST.SUBPROGRAM:Update_Table_Record TEST.NEW TEST.NAME:BASIS-PATH-001 TEST.BASIS_PATH:1 of 1 TEST.NOTES: No branches in subprogram TEST.END_NOTES: TEST.VALUE:database.Update_Table_Record.Table:<<MIN>> TEST.END -- Test Case: BASIS-PATH-002 TEST.UNIT:database TEST.SUBPROGRAM:Update_Table_Record TEST.NEW TEST.NAME:BASIS-PATH-002 TEST.BASIS_PATH:1 of 1 TEST.NOTES: No branches in subprogram TEST.END_NOTES: TEST.VALUE:database.Update_Table_Record.Table:<<MIN>> TEST.END
86fd81aeb4d89820840d4299b03485a5f495ad42
449d555969bfd7befe906877abab098c6e63a0e8
/2495/CH4/EX4.7.11/Ex4_7_11.sce
e943e521b22712a4b757f613284d979bf74cdffb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
510
sce
Ex4_7_11.sce
clear clc Tb=353.25;//temperature of benzene in K Tt=383.75;//temperature of toluene in K T=368.15;//temperature in K DelS_vR=-10.6;// Xb=((exp(DelS_vR))-(exp((DelS_vR)*(Tt/T))))/((exp((DelS_vR)*(Tb/T)))-(exp((DelS_vR)*(Tt/T))));//mole fraction of benzene printf('Xb=%.4f',Xb) Xt=(1-Xb);//mole fraction of benzene printf('\nXt=%.4f',Xt) Yb=Xb*(exp((-DelS_vR)*(1-(Tb/T))));// printf('\nYb=%.4f',Yb) Yt=1-Yb;// printf('\nYt=%.4f',Yt) //There are minor errors in solution in textbook //page 151
58faabf1d034e5c4d595f17e0de38985791898da
b29e9715ab76b6f89609c32edd36f81a0dcf6a39
/ketpic2escifiles6/Skeletonpers3data.sci
57dde938b2a0c8af45f185b365fe31121c1200e7
[]
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
843
sci
Skeletonpers3data.sci
// 09.09.25 // 11.12.12 function Out=Skeletonpers3data(varargin) global MilliIn; Nargs=length(varargin); Out=[]; ObjL=Flattenlist(varargin(1)); Plt3L=Flattenlist(varargin(2)); R=0.075*1000/2.54/MilliIn; if Nargs>2 R=R*varargin(3); end; Eps2=0.05; // changed at 08.10.16 if Nargs>3 Eps2=varargin(4); end; Plt2L=[]; for I=1:Mixlength(Plt3L) Tmp=CameracoordCurve(Mixop(I,Plt3L)); Plt2L=Mixadd(Plt2L,Tmp); end; Out=list(); for I=1:length(ObjL) Obj3=ObjL(I); Tmp=CameracoordCurve(Obj3); Data=Makeskeletonpersdata(Mix(Tmp),Plt2L,R,Eps2); for J=1:length(Data) Gd=Data(J); PtD=[]; for J=1:size(Gd,1) Tmp=Gd(J,:); Tmp1=Invperspt(Tmp,Obj3); Tmp1=Mixop(1,Tmp1); PtD=[PtD;Tmp1]; end; Out($+1)=PtD; end; end; endfunction
e1b5d7634362ae3c1790276b32eac7f95a167c83
449d555969bfd7befe906877abab098c6e63a0e8
/3825/CH3/EX3.2/Ex3_2.sce
28e043a2da1ded5aaa623e4fbc86636058508835
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
991
sce
Ex3_2.sce
clc R=8.314*(10^3)//universal gas constant T=473 //temperature of bath in kelvin v1=0.6 //volume of steel vessel in metre-cube P=R*T/v1 //pressure developed by ideal gas law mprintf("P=%fMPa\n",P*10^-6)//ans may vary due to roundoff error a=453.046*(10^-3) //vander waals constant in Pa(metre-cube/mol)^2 b=0.057*(10^-3)//vander waals constant in metre cube/mol P=((R*T)/(v1-b))-(a/(v1*v1))//pressure by vander waals equation mprintf("P=%fMPa\n",P*10^-6)//ans may vary due to roundofff error Pc=51.17 //pressure in bars Tc=283.1 //temperature in kelvin a=(0.42748*R*R*(Tc^2.5))/((Pc*10^5)*(T^0.5))//Redlich-Kwong equation b=0.0867*R*Tc/(Pc*(10^5))//Redlich-Kwong equation mprintf("a=%fPam^6/mol square\n",a*10^-6)//ans may vary due to roundoff error mprintf("b=%fm^3/mol\n",b*10^-3)//ans may vary due to roundoff error P=(R*T/(v1-b))-(a/(v1*(v1+b))) //pressure by Redlich-Kwong euation mprintf("P=%fMPa",P*10^-6)//ans may vary due to roundoff error
256e12b8d1938d1af5abd2662a1a47efb8e8f16e
449d555969bfd7befe906877abab098c6e63a0e8
/671/CH2/EX2.28/2_28.sce
833b7b84a6a8d0ad337f4475e9af4821fd342731
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
149
sce
2_28.sce
//Mesh Analysis A=[4,-2;998,24.5] I=inv(A)*[1/1000;0] disp(I) P1=I(2)^2*2.5*1000 P2=1/1000*I(1) P3=-10^6*I(1)*I(2) P=[P1,P2,P3] disp(P)
d48193751e64f246c6fd368f86a7c3e2e3e2cbe6
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH9/EX9.41/Ex9_41.sce
002cadcbc959b69a87555c9c1821bd365f288fab
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
220
sce
Ex9_41.sce
clear //Given V=2 //V R=2000.0 //ohm //Calculation I=V/R pd=I*R //Result printf("\n Reading of ammeter is %0.3f mA \nReading of voltmeter is %0.3f V",I*10**3,pd)
718e0f427b767eda3ff8fd36ce47f3eadbe2b090
449d555969bfd7befe906877abab098c6e63a0e8
/3774/CH9/EX9.5/Ex9_5.sce
6f574129508c5f6ce26df299f64891d1ac787838
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
811
sce
Ex9_5.sce
// exa 9.5 Pg 262 clc;clear;close; // Given Data d=12;// mm dc=10;// mm p=2;// mm Do=10;//mm mu=0.15;// coefficient of thread friction mu_c=0.18;// coefficient of collar friction F=100;// N l=150;// mm dm=dc+p/2;// mm alfa=atand(p/(%pi*dm));// degree fi=atand(mu);// degree TfByW=dm/2*tand(alfa+fi);// where TfByW = Tf/W TcByW=mu_c/3*Do;// where TcByW = Tc/W TByW=TfByW+TcByW;// N.mm (total torque at B-B) Tapplied=F*l;// N.mm (torque applied by the operator) //putting T= Tapplied W= Tapplied/TByW;// N printf('\n (a) Clamping force between the jaws = %.f N',W) eta=W*dm/2*tand(alfa)/Tapplied*100;// % printf('\n (b) Efficiency of vice = %.2f %%',eta) Tf=TfByW*W;// N.mm printf('\n (c) Torque at A-A, Tf = %.1f N.mm & Torque at B-B = %.f N.mm',Tf,Tapplied) // Note- Answer in the textbook are not accurate.
e5e145c51c8e8bc901b46742590c27db587baed3
319e18105d3bb4e50502225693804b3a76b29ac3
/OTHER_FISTA/OTHER_numerical_tour/numerical-tour/toolbox_signal/read_bmp.sci
1b5cca05de28fb92c65061fb04ce52cd713395c6
[ "BSD-2-Clause" ]
permissive
Venergon/Extrapolated-Bregman-Proximal-DC-method
0c5e5184b9f04cedec38c4bd28bc066cce6e1be2
031bd9fb1a441af325a4aacc194433aa9e781950
refs/heads/master
2023-01-25T03:02:44.822773
2020-11-17T09:56:40
2020-11-17T09:56:40
275,793,157
0
0
null
null
null
null
UTF-8
Scilab
false
false
5,430
sci
read_bmp.sci
function M = read_bmp(name) // read_bmp - read a 8 bit bw binary file // // M = read_bmp(name); // // Copyright (c) 2008 Gabriel Peyre if isempty((strfind(name, '.'))) name = [name '.bmp']; end fid = mopen(name, 'rb'); if fid<0 error(['File ' name ' does not exists.']); end // sizes [n,p,toReachMOf4] = read_header(fid); // read data [M,cnt] = mtlb_fread(fid, Inf, 'us'); mclose(fid); nchannels = 3; L = n*p*nchannels; if length(M)<L error('size error'); end M = reshape( M(end-L+1:end), nchannels, n, p ); M = permute(M, [3 2 1]); // M = M'; M = M(size(M,1):-1:1,:,:); endfunction //////////////////////////////////////////////////////////////////// function [width,height,toReachMOf4] = read_header(fid) //first two bytes should be 'BM' // bytes 0x 0-1 BM = mtlb_fread(fid,2,'us'); if(BM(1) ~= 66 | BM(2) ~= 77) warning(['Possible File Corruption/Invalid File format. ',... 'File Indicator (''BM'') not present in bytes 0x 00-01.']); end //the file size is the number of bytes in the entire file. Not all renderers //use it, but it's best to have, since many (like Window Previewer) do. // b 0x 2-5 fileSize = mtlb_fread(fid,1,'ul'); % ul->ul if (fileSize == 0) warning(['Poor Formatting Practice: Size of File should be ',... 'specified in bytes 0x 02-05']); end //The next 4 bytes are reserved and should be set to 0. // b 0x 6-9 reserved = mtlb_fread(fid,1,'ul'); if(reserved ~= 0) warning(['Possible File Corruption/Invalid File Format. ',... 'Reserved bytes 0x 06-09 should be set to zero.']); end //Next four bytes evaluate to the offset (in bytes from the beginning of the //file = 0) of the image data // b 0x 0A-0D offset = mtlb_fread(fid,1,'ul'); //Size of Info Header. Lke the size of the file, some renderers don't care //about this, but it should be there for the ones who do. It gives the size //of the InfoHeaderStructure (not to be confused with the //FileHeaderStructure through which we are currently stepping) in bytes. // b 0x 0E-11 InfoHeaderSize = mtlb_fread(fid,1,'ul'); if (InfoHeaderSize == 0) warning(['Poor Formatting Practice: Size of InfoHeader should be ',... 'specified in bytes 0x 0E-11']); end //the width of the bitmap image (in pixels). // b 0x 12-15 width = mtlb_fread(fid,1,'ul'); //the height of the bitmap image (in pixels). // b 0x 16-19 height = mtlb_fread(fid,1,'ul'); //the number of "planes" in the bitmap. I'm not entire clear on what that //means, but it's almost always 1 for standard bitmaps planes = mtlb_fread(fid,1,'ubit16'); //the number of bits used to represent each pixel. // b 0x 1C-1D bitsPerPixel = mtlb_fread(fid,1,'ubit16'); //figure out how we'll have to read each pixel component (r,g, and b). bitsPerComponent = bitsPerPixel/3; //Number of bytes written to each row must be a mutliple of 4. 0's are // appended to end to make it fit. bytesPerRow = width*bitsPerPixel/8; if mod(bytesPerRow,4) == 0 toReachMOf4 = 0; else toReachMOf4 = 4 - mod(bytesPerRow,4); end //the true width (in bytes) of each row that will be read. twidth = width + toReachMOf4; // the total number of bytes in the Image data. bytesInImage = width*height*bitsPerPixel/8 + height*toReachMOf4; //The compression. This function can currently only read uncompressed files. // b 0x 1E-21 compression = mtlb_fread(fid,1,'ul'); //Size of the image data section in bytes. Like FileSize and InfoHeader //Size, this isn't always needed, but should be there. // b 0x 22-25 imageDataSize = mtlb_fread(fid,1,'ul'); if (imageDataSize == 0) // warning(['Poor Formatting Practice: Size of Image Data should be ',... // 'specified in bytes 0x 22-25']); end //Bits per meter wide. Don't ask me why this would be important. I don't //know of any renderers who require this, or any encoders who write it. // b 0x 26-29 bitsPerMeterWide = mtlb_fread(fid,1,'ul'); //Bits per meter high. Don't ask me why this would be important. I don't //know of any renderers who require this, or any encoders who write it. // b 0x 2A-2D bitsPerMeterHigh = mtlb_fread(fid,1,'ul'); //Number of colors used. not real clear on this one yet. I think it's only //needed for precision other than 24 bit, so it will be more fully //implemented at another time. // b 0x 2E-31 colorsUsed = mtlb_fread(fid,1,'ul'); //Number of important colors used. Again, not real sure about this, it has //to do with specifying a color table for precision other than 24 bit. Look //for it in future versions // b 0x 32-35 importantColors = mtlb_fread(fid,1,'ul'); //we may or may not be at the beginning of the image data now. Until I //figure out how to read color table and all that good stuff, we'll just //skip over whatever's left. //so far we've read 54 bytes (from 0-53 or 0x00 to 0x35); //read the rest, up to the actual iamge data filler = mtlb_fread(fid,offset-54,'us'); //colorUsed should specify either the size of the colortable, or be 0, in //which case the length that we just read won't be less than it. if length(filler)<colorsUsed*4 error(['There doesn''t appear to be a valid colortable here. If ',... 'you are sure this is a valid bitmap (e.g., windows opens it) ',... 'send it to me, so I can try to fix the bug']); end //at least some of the filler should be a color table, if specified. colorTable = filler(1:colorsUsed*4); //fourth byte in each colortable row is reserved. colorTable = reshape(colorTable,4,colorsUsed)'; endfunction
e8742bc0e961e822a1dacfa10a05311a6c451c97
449d555969bfd7befe906877abab098c6e63a0e8
/3020/CH4/EX4.2/ex4_2.sce
21660e933508e19cfe305fdf203bc6120aae4dc0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
246
sce
ex4_2.sce
clc; clear all; I1 = 100;// Intensity of sound produced by turbine in Watts per square meters I0 = 1e-12; // standard intensity b = 10*log10(I1/I0);//The relative intensity of a turbine disp('dB',b,'The relative intensity of a turbine is')
90eb4df875ea17a656cccf37b85b59cf9496b1ed
9d51752f8238cddfc424f702c2c74c7ca7d9ed5f
/07/test/StackArithmetic/SimpleEq/SimpleEq.tst
116df40ef1ffd04c3a5cbf728a9d939e6f56f443
[]
no_license
nirasan/go-nand2tetris
afd26e3520ebc37bdf7edbbcd5b2116f0320ef84
4d61fd62aab220d1e721506f98c50ebd6adbe09c
refs/heads/master
2020-03-19T09:58:00.195206
2018-06-11T22:26:17
2018-06-11T22:26:17
136,331,312
0
0
null
null
null
null
UTF-8
Scilab
false
false
736
tst
SimpleEq.tst
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/07/StackArithmetic/SimpleAdd/SimpleAdd.tst load SimpleEq.asm, output-file SimpleEq.out, compare-to SimpleEq.cmp, output-list RAM[0]%D2.6.2 RAM[256]%D2.6.2 RAM[257]%D2.6.2 RAM[258]%D2.6.2 RAM[259]%D2.6.2 RAM[260]%D2.6.2 RAM[261]%D2.6.2; set RAM[0] 256, // initializes the stack pointer repeat 300 { // enough cycles to complete the execution ticktock; } output; // the stack pointer and the stack base output-list RAM[262]%D2.6.2 RAM[263]%D2.6.2 RAM[264]%D2.6.2 RAM[265]%D2.6.2; output; // the stack pointer and the stack base
10184ec06151cadeccdac4981b8165d6904159a3
449d555969bfd7befe906877abab098c6e63a0e8
/3651/CH4/EX4.7/7.sce
d0dfb5c121e0389744423b04289a92b4806d4d8e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
212
sce
7.sce
//Variable declaration n=8.5*10**28 e=1.602*10**-19 t=2*10**-14 m=9.1*10**-31 //Calculations Tc=n*(e**2)*t/m //Result printf('The mean free collision time =%0.3f *10**7 ohm**-1 m**-1 \n ',(Tc/10**7))
41b67375620c6253a0e20fb87ae7e09c1ba46fcb
449d555969bfd7befe906877abab098c6e63a0e8
/135/CH2/EX2.14/EX14.sce
ade81eeec62c774af8abb14258d9565d7943535e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
655
sce
EX14.sce
// Example 2.14: (a) Change in capacitance // (b) Change in capacitance clc, clear C=4e-12; // Depletion capacitance in farads V=4; // in volts K=C*sqrt(V); // a constant disp("Part (a)"); V=4+0.5; // in volts C_new=K/sqrt(V); // in farads deltaC=C_new-C; // Change in capacitande in farads deltaC=deltaC*1e12; // Change in capacitande in pico-farads disp(deltaC,"Change in capacitance (pF) ="); disp("Part (b)"); V=4-0.5; // in volts C_new=K/sqrt(V); // in farads deltaC=C_new-C; // Change in capacitande in farads deltaC=deltaC*1e12; // Change in capacitande in pico-farads disp(deltaC,"Change in capacitance (pF) =");
71a3cab24ca8d58a0e04b30cbea940efa418a643
aeaf7f37fcb0a9af1a236399e0771bde28863d82
/vcast/Tutorial/build/697635216/MATH/MATH_auto.tst
c788c763cbe79fd58fd6b8d06b16a39e03e36b88
[]
no_license
Yukio-Kita/manager
c7b772034d87195a838a69bc62fae6ffff352a74
d570594662aac497e1579e68635aab72d2ee0760
refs/heads/main
2023-07-31T22:35:35.444174
2021-09-14T04:35:21
2021-09-14T04:35:21
406,196,563
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,502
tst
MATH_auto.tst
-- Script Features TEST.SCRIPT_FEATURE:C_DIRECT_ARRAY_INDEXING TEST.SCRIPT_FEATURE:CPP_CLASS_OBJECT_REVISION TEST.SCRIPT_FEATURE:MULTIPLE_UUT_SUPPORT TEST.SCRIPT_FEATURE:REMOVED_CL_PREFIX TEST.SCRIPT_FEATURE:MIXED_CASE_NAMES TEST.SCRIPT_FEATURE:STATIC_HEADER_FUNCS_IN_UUTS TEST.SCRIPT_FEATURE:VCAST_MAIN_NOT_RENAMED -- ------------------------------ TEST.UNIT: math TEST.SUBPROGRAM: Add TEST.REPLACE TEST.NAME:BASIS-PATH-001 TEST.BASIS_PATH:1 of 1 TEST.VALUE:math.Add.x:<<MIN>> TEST.VALUE:math.Add.y:<<MIN>> TEST.NOTES: No branches in subprogram TEST.END_NOTES: TEST.END ------------------------------ ------------------------------ TEST.UNIT: math TEST.SUBPROGRAM: Subtract TEST.REPLACE TEST.NAME:BASIS-PATH-001 TEST.BASIS_PATH:1 of 1 TEST.VALUE:math.Subtract.x:<<MIN>> TEST.VALUE:math.Subtract.y:<<MIN>> TEST.NOTES: No branches in subprogram TEST.END_NOTES: TEST.END ------------------------------ ------------------------------ TEST.UNIT: math TEST.SUBPROGRAM: Multiply TEST.REPLACE TEST.NAME:BASIS-PATH-001 TEST.BASIS_PATH:1 of 1 TEST.VALUE:math.Multiply.x:<<MIN>> TEST.VALUE:math.Multiply.y:<<MIN>> TEST.NOTES: No branches in subprogram TEST.END_NOTES: TEST.END ------------------------------ ------------------------------ TEST.UNIT: math TEST.SUBPROGRAM: Divide TEST.REPLACE TEST.NAME:BASIS-PATH-001 TEST.BASIS_PATH:1 of 1 TEST.VALUE:math.Divide.y:<<MIN>> TEST.VALUE:math.Divide.x:<<MIN>> TEST.NOTES: No branches in subprogram TEST.END_NOTES: TEST.END ------------------------------
c6da17ed4e2dcf31a0ddadda8b1a1ba1db55c17b
449d555969bfd7befe906877abab098c6e63a0e8
/2183/CH9/EX9.7/Ex_9_7.sce
9650a1ba7007183b711fb0ad7d9c55be502e98b9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
155
sce
Ex_9_7.sce
//Example 9.7// cavity gain clc; clear; close; x=0.5;// y=(1-(sqrt(x)))/(1+sqrt(x));// g=(y/(1-y)^2);// disp("cavity gain is "+string(g)+"/(sqrt(R1*R2))")
1687c3a5a836a152e065c94808d09bfec3c98673
931df7de6dffa2b03ac9771d79e06d88c24ab4ff
/tracer stationary box tracking.sce
082a377d5ed57cef2f55df9d2e00ae82f2305213
[]
no_license
MBHuman/Scenarios
be1a722825b3b960014b07cda2f12fa4f75c7fc8
1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137
refs/heads/master
2023-01-14T02:10:25.103083
2020-11-21T16:47:14
2020-11-21T16:47:14
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
24,516
sce
tracer stationary box tracking.sce
Name=tracer stationary box tracking PlayerCharacters=Racer BotCharacters=TileFrenzy Cube.bot IsChallenge=true Timelimit=60.0 PlayerProfile=Racer AddedBots=TileFrenzy Cube.bot PlayerMaxLives=0 BotMaxLives=0 PlayerTeam=1 BotTeams=2 MapName=kovaim1.map MapScale=1.0 BlockProjectilePredictors=false BlockCheats=true InvinciblePlayer=true InvincibleBots=true Timescale=1.0 BlockHealthbars=false TimeRefilledByKill=0.0 ScoreToWin=1000.0 ScorePerDamage=1.0 ScorePerKill=0.0 ScorePerMidairDirect=0.0 ScorePerAnyDirect=0.0 ScorePerTime=0.0 ScoreLossPerDamageTaken=0.0 ScoreLossPerDeath=0.0 ScoreLossPerMidairDirected=0.0 ScoreLossPerAnyDirected=0.0 ScoreMultAccuracy=true ScoreMultDamageEfficiency=true ScoreMultKillEfficiency=true GameTag=Overwatch WeaponHeroTag=Tracer DifficultyTag=3 AuthorsTag=cookie BlockHitMarkers=false BlockHitSounds=false BlockMissSounds=true BlockFCT=false Description=track box. GameVersion=1.0.8.0 ScorePerDistance=0.0 MBSEnable=false MBSTime1=0.25 MBSTime2=0.5 MBSTime3=0.75 MBSTime1Mult=1.0 MBSTime2Mult=2.0 MBSTime3Mult=3.0 MBSFBInstead=false MBSRequireEnemyAlive=false [Aim Profile] Name=_ MinReactionTime=0.000001 MaxReactionTime=0.000001 MinSelfMovementCorrectionTime=0.000001 MaxSelfMovementCorrectionTime=0.000001 FlickFOV=90.0 FlickSpeed=10.0 FlickError=0.0 TrackSpeed=10.0 TrackError=0.0 MaxTurnAngleFromPadCenter=360.0 MinRecenterTime=0.0 MaxRecenterTime=0.0 OptimalAimFOV=360.0 OuterAimPenalty=0.0 MaxError=0.0 ShootFOV=90.0 VerticalAimOffset=0.0 MaxTolerableSpread=0.0 MinTolerableSpread=0.0 TolerableSpreadDist=100000.0 MaxSpreadDistFactor=1.0 [Bot Profile] Name=TileFrenzy Cube DodgeProfileNames=Nothing DodgeProfileWeights=1.0 DodgeProfileMaxChangeTime=100.0 DodgeProfileMinChangeTime=100.0 WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=_;_;_;_;_;_;_;_ WeaponSwitchTime=60.0 UseWeapons=false CharacterProfile=TileFrenzy Cube SeeThroughWalls=false NoDodging=false NoAiming=false [Character Profile] Name=Racer MaxHealth=150.0 WeaponProfileNames=Machine Pistols;;;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=30.0 CrouchHeightModifier=0.69 CrouchAnimationSpeed=5.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=1.0 MovementType=Base MaxSpeed=533.333313 MaxCrouchSpeed=270.0 Acceleration=10000.0 AirAcceleration=16000.0 Friction=100.0 BrakingFrictionFactor=0.0 JumpVelocity=270.0 Gravity=1.0 AirControl=0.16 CanCrouch=true CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=true EnemyBodyColor=X=0.774 Y=0.000 Z=0.000 EnemyHeadColor=X=0.691 Y=0.514 Z=0.294 TeamBodyColor=X=0.000 Y=0.000 Z=0.774 TeamHeadColor=X=0.691 Y=0.514 Z=0.294 BlockSelfDamage=true InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=true AirJumpCount=0 AirJumpVelocity=1600.0 MainBBType=Cylindrical MainBBHeight=105.0 MainBBRadius=20.0 MainBBHasHead=true MainBBHeadRadius=12.5 MainBBHeadOffset=-12.5 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=105.0 ProjBBRadius=20.0 ProjBBHasHead=true ProjBBHeadRadius=12.5 ProjBBHeadOffset=-12.5 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.5 JetpackFullFuelTime=1000.0 JetpackFuelIncPerSec=100.0 JetpackFuelRegensInAir=true JetpackThrust=6000.0 JetpackMaxZVelocity=600.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=Phase.abilmov;Unwind.abilrecall;;Melee.abilmelee HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=0.9 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false [Character Profile] Name=TileFrenzy Cube MaxHealth=1.0 WeaponProfileNames=;;;;;;; MinRespawnDelay=0.000001 MaxRespawnDelay=0.000001 StepUpHeight=0.0 CrouchHeightModifier=1.0 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=0.0 MovementType=Base MaxSpeed=0.0 MaxCrouchSpeed=0.0 Acceleration=0.0 AirAcceleration=16000.0 Friction=0.0 BrakingFrictionFactor=0.0 JumpVelocity=0.0 Gravity=0.0 AirControl=0.0 CanCrouch=false CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=false EnemyBodyColor=X=1.000 Y=1.000 Z=1.000 EnemyHeadColor=X=1.000 Y=0.000 Z=0.000 TeamBodyColor=X=0.000 Y=0.000 Z=255.000 TeamHeadColor=X=255.000 Y=255.000 Z=255.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cuboid MainBBHeight=256.0 MainBBRadius=128.0 MainBBHasHead=false MainBBHeadRadius=0.1 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cuboid ProjBBHeight=256.0 ProjBBRadius=128.0 ProjBBHasHead=false ProjBBHeadRadius=0.1 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=true AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.0 AllowBufferedJumps=false BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=0.0 VerticalSpawnOffset=-128.0 SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false [Dodge Profile] Name=Nothing MaxTargetDistance=100000.0 MinTargetDistance=0.0 ToggleLeftRight=false ToggleForwardBack=false MinLRTimeChange=0.2 MaxLRTimeChange=0.5 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=false DamageReactionChanceToIgnore=0.0 DamageReactionMinimumDelay=0.1 DamageReactionMaximumDelay=0.15 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.0 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=100.0 MaxProfileChangeTime=100.0 MinCrouchTime=10.0 MaxCrouchTime=10.0 MinJumpTime=0.0 MaxJumpTime=0.0 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=10.0 StrafeSwapMaxPause=10.0 BlockedMovementPercent=0.0 BlockedMovementReactionMin=0.0 BlockedMovementReactionMax=0.0 [Weapon Profile] Name=Machine Pistols Type=Hitscan ShotsPerClick=2 DamagePerShot=6.0 KnockbackFactor=0.1 TimeBetweenShots=0.05 Pierces=false Category=FullyAuto BurstShotCount=2 TimeBetweenBursts=0.1 ChargeStartDamage=0.1 ChargeStartVelocity=X=1500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=3000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=3000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=3.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=40 AmmoPerShot=2 ReloadTimeFromEmpty=1.0 ReloadTimeFromPartial=1.0 DamageFalloffStartDistance=1500.0 DamageFalloffStopDistance=3000.0 DamageAtMaxRange=1.5 DelayBeforeShot=0.0 HitscanVisualEffect=None ProjectileGraphic=Ball VisualLifetime=0.1 WallParticleEffect=Gunshot HitParticleEffect=Blood BounceOffWorld=true BounceFactor=0.6 BounceCount=0 HomingProjectileAcceleration=6000.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.1 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.03 HitSoundCooldown=0.03 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.1 RecoilNegatable=true DecalType=1 DecalSize=15.0 DelayAfterShooting=0.25 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=10.3 ADSFOVScale=Overwatch ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.1 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=true DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=5.0 BlockedByWorld=true SpreadSSA=1.05,9.0,0.0,3.6 SpreadSCA=1.05,9.0,0.0,3.6 SpreadMSA=1.05,9.0,0.0,3.6 SpreadMCA=1.05,9.0,0.0,3.6 SpreadSSH=1.05,9.0,0.0,3.6 SpreadSCH=1.05,9.0,0.0,3.6 SpreadMSH=1.05,9.0,0.0,3.6 SpreadMCH=1.05,9.0,0.0,3.6 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.05 TimeToRecoilReset=0.45 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.5 AAMaxSpeed=5.0 AADeadZone=0.0 AAFOV=720.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=0.1 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 PBS1=0.0,0.0 [Movement Ability Profile] Name=Phase MaxCharges=3.0 ChargeTimer=3.0 ChargesRefundedOnKill=0.0 DelayAfterUse=0.1 FullyAuto=false AbilityDuration=0.075 LockDirectionForDuration=true NegateGravityForDuration=true MainVelocity=8000.0 MainVelocityCanGoVertical=false MainVelocitySetToMovementKeys=true UpVelocity=0.0 EndVelocityFactor=0.075 Hurtbox=false HurtboxRadius=50.0 HurtboxDamage=50.0 HurtboxGroundKnockbackFactor=1.0 HurtboxAirKnockbackFactor=1.0 AbilityBlocksTurning=false AbilityBlocksMovement=true AbilityBlocksAttack=false AttackCancelsAbility=false AbilityReloadsWeapon=false HealthRestore=0.0 AIUseInCombat=true AIUseOutOfCombat=false AIUseOnGround=true AIUseInAir=true AIReuseTimer=1.0 AIMinSelfHealth=0.0 AIMaxSelfHealth=100.0 AIMinTargHealth=0.0 AIMaxTargHealth=100.0 AIMinTargDist=1500.0 AIMaxTargDist=1000000.0 AIMaxTargFOV=15.0 AIDamageReaction=true AIDamageReactionIgnoreChance=0.75 AIDamageReactionMinDelay=0.125 AIDamageReactionMaxDelay=0.25 AIDamageReactionCooldown=1.0 AIDamageReactionThreshold=25.0 AIDamageReactionResetTimer=1.0 [Melee Ability Profile] Name=Melee MaxCharges=1.0 ChargeTimer=0.25 ChargesRefundedOnKill=0.0 DelayAfterUse=1.0 FullyAuto=false AbilityDuration=0.15 HurtboxRadius=100.0 HurtboxDamage=30.0 HurtboxGroundKnockbackFactor=0.0 HurtboxAirKnockbackFactor=0.0 BlockAttackTimer=0.5 AbilityBlockedWhenAttacking=false AmmoPerShot=0 FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 AIUseInCombat=true AIUseOutOfCombat=false AIUseOnGround=true AIUseInAir=true AIReuseTimer=1.0 AIMinSelfHealth=0.0 AIMaxSelfHealth=100.0 AIMinTargHealth=0.0 AIMaxTargHealth=100.0 AIMinTargDist=0.0 AIMaxTargDist=600.0 AIMaxTargFOV=15.0 AIDamageReaction=false AIDamageReactionIgnoreChance=0.0 AIDamageReactionMinDelay=0.125 AIDamageReactionMaxDelay=0.25 AIDamageReactionCooldown=1.0 AIDamageReactionThreshold=0.0 AIDamageReactionResetTimer=0.1 [Recall Ability Profile] Name=Unwind MaxCharges=1.0 ChargeTimer=10.0 ChargesRefundedOnKill=1.0 DelayAfterUse=0.5 FullyAuto=false AbilityDuration=1.0 BlockAttackTimer=0.25 AbilityBlockedWhenAttacking=false RecallTimer=3.0 RefillAmmo=true AIUseInCombat=false AIUseOutOfCombat=false AIUseOnGround=true AIUseInAir=true AIReuseTimer=1.0 AIMinSelfHealth=0.0 AIMaxSelfHealth=100.0 AIMinTargHealth=0.0 AIMaxTargHealth=100.0 AIMinTargDist=0.0 AIMaxTargDist=2000.0 AIMaxTargFOV=15.0 AIDamageReaction=true AIDamageReactionIgnoreChance=0.25 AIDamageReactionMinDelay=0.25 AIDamageReactionMaxDelay=0.5 AIDamageReactionCooldown=1.0 AIDamageReactionThreshold=75.0 AIDamageReactionResetTimer=1.0 [Map Data] reflex map version 8 global entity type WorldSpawn String32 targetGameOverCamera end UInt8 playersMin 1 UInt8 playersMax 16 brush vertices -576.000000 0.000000 256.000000 448.000000 0.000000 256.000000 448.000000 0.000000 -768.000000 -576.000000 0.000000 -768.000000 -576.000000 -16.000000 256.000000 448.000000 -16.000000 256.000000 448.000000 -16.000000 -768.000000 -576.000000 -16.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 272.000000 -768.000000 448.000000 272.000000 -768.000000 448.000000 272.000000 -784.000000 -576.000000 272.000000 -784.000000 -576.000000 0.000000 -768.000000 448.000000 0.000000 -768.000000 448.000000 0.000000 -784.000000 -576.000000 0.000000 -784.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 272.000000 272.000000 448.000000 272.000000 272.000000 448.000000 272.000000 256.000000 -576.000000 272.000000 256.000000 -576.000000 0.000000 272.000000 448.000000 0.000000 272.000000 448.000000 0.000000 256.000000 -576.000000 0.000000 256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 448.000000 272.000000 256.000000 464.000000 272.000000 256.000000 464.000000 272.000000 -768.000000 448.000000 272.000000 -768.000000 448.000000 0.000000 256.000000 464.000000 0.000000 256.000000 464.000000 0.000000 -768.000000 448.000000 0.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -592.000000 272.000000 256.000000 -576.000000 272.000000 256.000000 -576.000000 272.000000 -768.000000 -592.000000 272.000000 -768.000000 -592.000000 0.000000 256.000000 -576.000000 0.000000 256.000000 -576.000000 0.000000 -768.000000 -592.000000 0.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -592.000000 704.000000 256.000000 -576.000000 704.000000 256.000000 -576.000000 704.000000 -768.000000 -592.000000 704.000000 -768.000000 -592.000000 272.000000 256.000000 -576.000000 272.000000 256.000000 -576.000000 272.000000 -768.000000 -592.000000 272.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices 448.000000 704.000000 256.000000 464.000000 704.000000 256.000000 464.000000 704.000000 -768.000000 448.000000 704.000000 -768.000000 448.000000 272.000000 256.000000 464.000000 272.000000 256.000000 464.000000 272.000000 -768.000000 448.000000 272.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 704.000000 -768.000000 448.000000 704.000000 -768.000000 448.000000 704.000000 -784.000000 -576.000000 704.000000 -784.000000 -576.000000 272.000000 -768.000000 448.000000 272.000000 -768.000000 448.000000 272.000000 -784.000000 -576.000000 272.000000 -784.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 704.000000 272.000000 448.000000 704.000000 272.000000 448.000000 704.000000 256.000000 -576.000000 704.000000 256.000000 -576.000000 272.000000 272.000000 448.000000 272.000000 272.000000 448.000000 272.000000 256.000000 -576.000000 272.000000 256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 720.000000 256.000000 448.000000 720.000000 256.000000 448.000000 720.000000 -768.000000 -576.000000 720.000000 -768.000000 -576.000000 704.000000 256.000000 448.000000 704.000000 256.000000 448.000000 704.000000 -768.000000 -576.000000 704.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 96.000000 -384.000000 -320.000000 96.000000 -384.000000 -320.000000 96.000000 -512.000000 -576.000000 96.000000 -512.000000 -576.000000 0.000000 -384.000000 -320.000000 0.000000 -384.000000 -320.000000 0.000000 -512.000000 -576.000000 0.000000 -512.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 192.000000 96.000000 0.000000 448.000000 96.000000 0.000000 448.000000 96.000000 -128.000000 192.000000 96.000000 -128.000000 192.000000 0.000000 0.000000 448.000000 0.000000 0.000000 448.000000 0.000000 -128.000000 192.000000 0.000000 -128.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 entity type PlayerSpawn Vector3 position -64.000000 0.000000 -736.000000 entity type CameraPath UInt32 entityIdAttachedTo 5 UInt8 posLerp 2 UInt8 angleLerp 2 entity type Effect Vector3 position 0.000000 256.000000 0.000000 String64 effectName internal/misc/reflectionprobe entity type Target Vector3 position 320.000000 256.000000 320.000000 Vector3 angles -135.000000 30.000000 0.000000 String32 name end entity type PlayerSpawn Vector3 position -64.000000 0.000000 224.000000 Vector3 angles 180.000000 0.000000 0.000000 entity type PlayerSpawn Vector3 position 416.000000 0.000000 -256.000000 Vector3 angles 270.000000 0.000000 0.000000 entity type PlayerSpawn Vector3 position -544.000000 0.000000 -256.000000 Vector3 angles 90.000000 0.000000 0.000000
ffe4884aac9ace2537945bbe08a42e1b0dccdbaf
449d555969bfd7befe906877abab098c6e63a0e8
/278/CH20/EX20.2/ex_20_2.sce
d9c91321c47e1ea8ff21cfe5bce8e74fd2d64e72
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
569
sce
ex_20_2.sce
//find.. clc //soltuion //given n=2 B=15//deg A=750*10^-6 u=0.12 rho=1200//kg/m^3 f=7*10^6//N/m^2 d=0.300//m N=1500//rpm m=A*rho//kg/m v=(%pi*N*d)/60//m/s Tc=m*v^2//N q=%pi printf("the centrifugl tension is,%f N\n",Tc) T=f*A//N printf("max tension is,%f N\n",T) T1=T-Tc//N //log(T1/T2)=u*q*cosec(%pi/180*B)=0.6335 T2=T1/4.3//N P=(T1-T2)*v*n//W printf("the power trans is,%f W\n",P) //for max power tranfer //let N1 be speed //Tc1=T/3 //Tc1=m*v1^2 v1=sqrt(T/(3*m))//m/s N1=(v1*60/(%pi*d)) printf("rpm of shaft at max power trans,%f rpm",N1)
9a3414dbeb2169f0d435f832e23171fa7a9ec97a
449d555969bfd7befe906877abab098c6e63a0e8
/1151/CH1/EX1.31/example31.sce
ad0a4d933a0419db4824417bdf7de948fafda9ab
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
339
sce
example31.sce
//find the transfer function using block diagram reduction printf("syms R1 R2 C1 C2 \n l1=1/(1+R2*C2*s);//unity feedback\nl2=1/(s*C1); \n l3=1/R1;\n l4=s*C2;\n l5=1+R2*C2*s;\n g1=l1*l2;//cascading of blocks\ng2=g1/(1+g1*l4);//feedback configuration\n g3=l3*g2;//cascading of blocks\n g4=g3/(1+g3*l5);\nTransfer function Vo(s)/Vi(s)=g4")
b0e51e3b17bdafd6703f41c5efa5f44c148b3baa
dabaa151dd30205dd92a6844c0cd61cf046fb8fe
/SMul8/SMuL8.tst
749f0dc7c3cf44e92ffaecd70549eeb727e4b4b3
[]
no_license
hakesh729/Project_hack
627ef8260f81dbc971bb5371839523daac4a2646
a1ea76fa612bbe4515863495922167bb4c65c418
refs/heads/main
2023-01-13T13:37:09.828021
2020-11-27T06:05:39
2020-11-27T06:05:39
316,411,714
0
0
null
null
null
null
UTF-8
Scilab
false
false
694
tst
SMuL8.tst
//Tests the Signed 8 Bit Mutliplication using csa (SMuL8) load SMuL8.hdl, output-file SMuL8.out, output-list a%B1.8.1 b%B1.8.1 out%B1.8.1 OF%B1.1.1; //Non overflow cases.(-128 to 127 range) set a %B00000101,set b %B00011001,eval,output; //5 * 25 = 125 set a %B00000101,set b %B11100111,eval,output; //5 * (-25) = -125 set a %B11111011,set b %B00011001,eval,output; //(-5) * 25 = -125 set a %B11111011,set b %B11100111, eval, output; //(-5) * (-25) = 125 //Overflowing cases set a %B00010000,set b %B00001000,eval,output; //16 * 8 = 128 > 127 set a %B00001111,set b %B11110111,eval,output; //15 * -9 = -135 < -128
b4674ea45a6387ea313ae7941fec333bf3aec18b
449d555969bfd7befe906877abab098c6e63a0e8
/1847/CH2/EX2.9/Ch02Ex9.sce
b444e31fa09d26912bad4b99b03d3f2559cd7029
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
549
sce
Ch02Ex9.sce
// Scilab Code Ex2.9:: Page-2.12 (2009) clc; clear; n1 = 69; // Number of interference fringes obtained with yellow wavelength lambda1 = 5893e-008; // Wavelength of yellow light used, cm lambda2 = 5461e-008; // Wavelength of green light used, cm // As n*lambda = l*d/D = constant, therefore n2 = n1*lambda1/lambda2; // Number of interference fringes for green wavelength printf("\nThe number of interference fringes for changed wavelength = %2d", ceil(n2)); // Result // The number of interference fringes for changed wavelength = 75
7fbcc1073f13b3d7b55a068eb4c242aa529cbbf4
99376cb1d247806f4566fa7f6aa9b889529cc69a
/tests/layout/overlap.tst
2c8624eea71840c269a90f8901a7f6ddb88190e7
[ "LicenseRef-scancode-other-permissive", "NTP", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
maxatome/ctwm-mirror
a7d9b4eda5dbe8844f4b8579796125f45a77ec1c
f688ce4ccb5f3af5b133e073556cd5cb688488fa
refs/heads/master
2023-03-17T02:53:18.402463
2023-01-28T01:04:30
2023-01-28T01:04:30
579,309,302
0
0
NOASSERTION
2022-12-17T09:02:45
2022-12-17T09:02:44
null
UTF-8
Scilab
false
false
3,395
tst
overlap.tst
layout left:10x12+0+0 \ right:10x12+10+0 \ overlap:10x12+5+6 =comment 1111111111 01234567890123456789 0+left----++right---+ 1| || | 2| || | 3| || | 4| || | 5| || | 6| +overlap-+ | 7| | || | | 8| | || | | 9| | || | | 10| | || | | 11+----|---++---|----+ 12 | | 13 | | 14 | | 15 | | 16 | | 17 +--------+ =end check_horizontal_layout 20x12+0+0 \ 10x6+5+12 =comment 1111111111 01234567890123456789 0+------------------+ 1| | 2| | 3| | 4| | 5| | 6| | 7| | 8| | 9| | 10| | 11+------------------+ 12 +--------+ 13 | | 14 | | 15 | | 16 | | 17 +--------+ =end check_vertical_layout 5x12+0+0 \ 10x18+5+0 \ 5x12+15+0 =comment 1111111111 01234567890123456789 0+---++--------++---+ 1| || || | 2| || || | 3| || || | 4| || || | 5| || || | 6| || || | 7| || || | 8| || || | 9| || || | 10| || || | 11+---+| |+---+ 12 | | 13 | | 14 | | 15 | | 16 | | 17 +--------+ =end ######################################################################## window 6x7+2+3 =comment 1111111111 01234567890123456789 0+left----++right---+ 1| || | 2| || | 3| +win.+ || | 4| : : || | 5| : : || | 6| : +overlap-+ | 7| : | : || | | 8| : | : || | | 9| +..|.+ || | | 10| | || | | 11+----|---++---|----+ 12 | | 13 | | 14 | | 15 | | 16 | | 17 +--------+ =end RLayoutFindTopBottomEdges 0 11 RLayoutFindLeftRightEdges 0 19 RLayoutFindMonitorTopEdge 0 RLayoutFindMonitorBottomEdge 11 RLayoutFindMonitorLeftEdge 0 RLayoutFindMonitorRightEdge 9 RLayoutFull 20x12+0+0 RLayoutFullHoriz 20x7+0+3 RLayoutFullVert 6x12+2+0 # greater window area is in "left" monitor RLayoutFull1 10x12+0+0 RLayoutFullHoriz1 10x7+0+3 RLayoutFullVert1 6x12+2+0 ######################################################################## window 6x7+7+3 =comment 1111111111 01234567890123456789 0+left----++right---+ 1| || | 2| || | 3| +win.+ | 4| : || : | 5| : || : | 6| +overlap-+ | 7| | : || : | | 8| | : || : | | 9| | +.||.+ | | 10| | || | | 11+----|---++---|----+ 12 | | 13 | | 14 | | 15 | | 16 | | 17 +--------+ =end RLayoutFindTopBottomEdges 0 17 RLayoutFindLeftRightEdges 0 19 RLayoutFindMonitorTopEdge 0 RLayoutFindMonitorBottomEdge 11 RLayoutFindMonitorLeftEdge 5 RLayoutFindMonitorRightEdge 14 RLayoutFull 20x12+0+0 RLayoutFullHoriz 20x7+0+3 RLayoutFullVert 6x18+7+0 # greater window area is in "overlap" monitor RLayoutFull1 10x12+5+6 RLayoutFullHoriz1 10x4+5+6 RLayoutFullVert1 6x12+7+6
9b6fe94e7c46cb1326d350418c64aa24e1d9d20d
1a00eb132340e145c8a7d8fd0ef79a02b24605a2
/macros/ARDUINO_DCMOTOR.sci~
054b4ef98e50dd214b2cc1d898127188eeb38c09
[]
no_license
manasdas17/Scilab-Arduino-Toolbox
e848d75dc810cb0700df34b1e5c606802631ada4
2a6c9d3f9f2e656e1f201cecccd4adfe737175e7
refs/heads/master
2018-12-28T15:51:35.378091
2015-08-06T07:22:15
2015-08-06T07:22:15
37,854,821
3
2
null
null
null
null
UTF-8
Scilab
false
false
5,072
ARDUINO_DCMOTOR.sci~
// // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab // Copyright (C) 2011-2011 - DIGITEO - Bruno JOFRET // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt // // function [x, y, typ]=ARDUINO_DCMOTOR(job, arg1, arg2) x=[]; y=[]; typ=[]; select job case 'plot' then // deprecated case 'getinputs' then // deprecater case 'getoutputs' then // deprecated case 'getorigin' then // deprecated case 'set' then x=arg1; graphics=arg1.graphics; exprs=graphics.exprs model=arg1.model; while %t do [ok1,type_shield,num_arduino,exprs1]=scicos_getvalue('Arduino DC MOTOR parameters',.. [gettext('Type of Shield (1 : Adafruit, 2: MotorShield Rev3, 3: PMODHB5 (L298), 4: L293 (2 PWM))');... gettext('Arduino card number')],list('vec',1,'vec',1), exprs(1:2)) mess=[]; if ~ok1 then break; end //cancel if num_arduino<>1 then mess=[mess ;gettext("Only card 1 can be used with this toolbox version ")]; ok1=%f; end if type_shield~=1 & type_shield~=2 & type_shield~=3 & type_shield~=4 mess=[mess ;_("Type shield must be 1, 2, 3 or 4")] ok1 = %f end if ok1 then num_pin_1=0; num_pin_2=0; if type_shield==1 then //get number of motor (between 1 et 4) // if evstr(exprs(3))>2 then // exprs(3)=string(1) // end [ok,motor_number,exprs2]=scicos_getvalue('Motorshield Rev 3 parameters',.. [gettext('Number of DC motor : 1 or 2')],list('vec',1), exprs(5)) if ~ok then break; end //cancel if (motor_number < 1 | motor_number>2) mess=[mess ;_("Motor number must be 1 or 2 for Motorshield Rev 3 card")] ok = %f end if motor_number==1 then num_pin_1=12; num_pin_2=3; else num_pin_1=13; num_pin_2=11; end elseif type_shield==2 then [ok,num_pin_1,num_pin_2,motor_number,exprs2]=scicos_getvalue('PMODHB5 or L298 driver parameters',.. [gettext('Direction pin ');gettext('Enable (speed) Pin');gettext('Motor number (between 1 and 4)')],list('vec',1,'vec',1,'vec',1), exprs(3:5)) if ~ok then break; end //cancel if (motor_number < 1 | motor_number>4) mess=[mess ;_("Motor number must be between 1 and 4")] ok = %f end elseif type_shield==3 then [ok,num_pin_1,num_pin_2,motor_number,exprs2]=scicos_getvalue('L293 driver parameters (control 2 PWM)',.. [gettext('PWM 1 Pin');gettext('PWM 2 Pin');gettext('Motor number (between 1 and 3)')],list('vec',1,'vec',1,'vec',1), exprs(3:5)) if ~ok then break; end //cancel if (motor_number < 1 | motor_number>4) mess=[mess ;_("Motor number must be between 1 and 4")] ok = %f end end if ok then exprs2=string([num_pin_1;num_pin_2;motor_number]) // Everything's ok model.rpar=[type_shield;num_arduino;num_pin_1;num_pin_2;motor_number]; graphics.exprs = string(model.rpar) x.model=model; x.graphics = graphics; break else message(mess); end else message(mess); end end case 'define' then model=scicos_model(); model.sim=list("ARDUINO_DCMOTOR_sim", 5) model.blocktype='d'; model.dep_ut=[%f %f]; model.in=[1]; model.evtin=[1] model.evtout=[1] model.firing=[0;-1] num_arduino=1; type_shield=1; num_pin_1=13; num_pin_2=11; motor_number=1; model.rpar=[type_shield;num_arduino;num_pin_1;num_pin_2;motor_number]; //Default Pin number and Arduino card number x=standard_define([2 2],model,[],[]); x.graphics.in_implicit=['E']; x.graphics.style=["blockWithLabel;verticalLabelPosition=bottom;verticalAlign=top;spacing=-2;displayedLabel=Typeshield %s<br>on card %s"] x.graphics.exprs=string([type_shield;num_arduino;num_pin_1;num_pin_2;motor_number]); end endfunction
527f1733dfa1a240b6a85fad52637cfa8eacd23f
449d555969bfd7befe906877abab098c6e63a0e8
/154/CH2/EX2.1/ch2_1.sce
06689b41386f508235e5d6b3b54103a83f781309
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
649
sce
ch2_1.sce
disp("Example 2.1") printf("\n") printf("Given") disp("Resistance used is 4 ohm") disp("Current flow is i=2.5*sin(w*t)") disp("Angular frequency(w)=500 rad/s") R=4; iamp=2.5;w=500; t=0:0.001:0.012566 i=2.5*sin(w*t) Vamp=iamp*R; printf("v=%d*sin(%d*t)(V)\n",Vamp,w) pamp=iamp*iamp*R; printf("p=%d(sin(%d*t))^2(W)\n",pamp,w) p=pamp*sin(w*t)^2; //On integrating p with respect to t W=25*(t/2-sin(2*w*t)/(4*w)) function p=f(t),p=pamp*sin(w*t)^2,endfunction w1=intg(0,2*%pi/w,f); subplot(221) plot(t,i) xtitle ('i vs wt','wt','i '); subplot(222) plot(t,p) xtitle ('p vs wt','wt','p '); subplot(223) plot(t,W) xtitle ('w vs wt','wt','w ');
bb153ffe3dce5903a2a76e66faa1bd43556fb422
449d555969bfd7befe906877abab098c6e63a0e8
/1208/CH4/EX4.14.3/Exa14_3.sce
bab6ee9a345d8892b536f54007ccf34669da71c3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,775
sce
Exa14_3.sce
//Exa 14(iii) clc; clear; close; //given data : inINV=50000;//initial investment in Rs. and equal for all projects life=5;//in years salvage=0;//in Rs. TaxRate=55;//in % //depreciation type :Straight line D=inINV/life;//in Rs //cash flows before tax of 1st,2nd,3rd,4th and 5th years CBFT1=10000;//in Rs. CBFT2=11000;//in Rs. CBFT3=14000;//in Rs. CBFT4=15000;//in Rs. CBFT5=25000;//in Rs. //Income before tax after depreciation IBT1=CBFT1-D;//in Rs. IBT2=CBFT2-D;//in Rs. IBT3=CBFT3-D;//in Rs. IBT4=CBFT4-D;//in Rs. IBT5=CBFT5-D;//in Rs. //Net income after Tax (55%) and depreciation IATD1=IBT1-(IBT1*55)/100;//in Rs IATD2=IBT2-(IBT2*55)/100;//in Rs IATD3=IBT3-(IBT3*55)/100;//in Rs IATD4=IBT4-(IBT4*55)/100;//in Rs IATD5=IBT5-(IBT5*55)/100;//in Rs //Average annual income after tax and depreciation IATD=(IATD1+IATD2+IATD3+IATD4+IATD5)/5;//in Rs. //Average Investment AvgInv=(inINV+salvage)/2;//in Rs //Annual cash inflows ACI1=IATD1+D;//in RS ACI2=IATD2+D;//in RS ACI3=IATD3+D;//in RS ACI4=IATD4+D;//in RS ACI5=IATD5+D;//in RS //Project A : Cummulative cash in flows of 1st,2nd,3rd,4th and 5th years CumCIF1=ACI1;//in Rs. CumCIF2=ACI1+ACI2;//in Rs. CumCIF3=ACI1+ACI2+ACI3;//in Rs. CumCIF4=ACI1+ACI2+ACI3+ACI4;//in Rs. CumCIF5=ACI1+ACI2+ACI3+ACI4+ACI5;//in Rs. //part (iii) calculation of Net Present value //PV at 10% //P.V factor at 10% rate of discount PV1=0.909; PV2=0.826; PV3=0.751; PV4=0.683; PV5=0.621; //Present value for all cash in flows at 10% discount Rate P1=ACI1*PV1;// in Rs P2=ACI2*PV2;// in Rs P3=ACI3*PV3;// in Rs P4=ACI4*PV4;// in Rs P5=ACI5*PV5;// in Rs //Total Present Value P=P1+P2+P3+P4+P5;// in Rs //Net Present Value NPV=P-inINV;// in Rs disp(NPV,"Part(iii) Net Present Value is : ")
50eed8f055ff81983588f0f0785eced389672352
449d555969bfd7befe906877abab098c6e63a0e8
/1583/CH2/EX2.4/SSA_Ex_2_4.sce
c5697e26ee2bd98a73f2db544d478c5731780a11
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
397
sce
SSA_Ex_2_4.sce
clc //Chapter 2:Small Signal Amplifiers //example 2.4 page no 30 //given VDS=15 IDSS=8*10^-3 gmo=4*10^-3 rd=13*10^3 ID=2*10^-3//drain current Vs=0//source is grounded Vgs=Vg-Vs=Vi RL=2*10^3//load resistance R_L=(RL*rd)/(RL+rd)//equivalent load resistance gm=gmo*sqrt(ID/IDSS)//transconductance Av=-gm*R_L//voltage gain Av=Vo/Vi=-gm*R_L mprintf('the midband voltage gain is %f ',Av)
a365bfddb945e17cef7914d53a3cd921eda3af57
624a7ca19d7a8e1ba0d1d2dc4c345f6ae06f4f94
/starmath/qa/unoapi/sm.sce
c68d48d74d4487854d3d774f6a3cacfa041b91b8
[]
no_license
jonasfj/libreoffice-writer
e6c4c92ece47bc61f1f6bf93fe24b34a1836c53c
2d415c9854fb6111ac924ee95044c7e1a931433c
refs/heads/master
2021-01-25T08:42:25.367195
2010-10-03T14:16:52
2010-10-03T14:16:52
954,612
0
1
null
null
null
null
UTF-8
Scilab
false
false
195
sce
sm.sce
-o sm.SmEditAccessible -o sm.SmGraphicAccessible -o sm.SmModel -o sm.XMLExporter -o sm.XMLImporter -o sm.XMLMetaExporter -o sm.XMLMetaImporter -o sm.XMLSettingsExporter -o sm.XMLSettingsImporter
73e3e2ced41639e44b1126447545e20fedf4b02e
449d555969bfd7befe906877abab098c6e63a0e8
/2495/CH2/EX2.11.4/Ex2_11_4.sce
5da996822923600fd4edca004039513c4e0091ae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
614
sce
Ex2_11_4.sce
clear clc M=78*10^-3;//molar mass of C6H6 in Kg/mol R=8.314;//gas constant in J/Kmol Tf2=278.4;//melting point of pure C6H6 in K DelHm_v=10.042*10^3;//heat of fusion in J/mol Kf=((M*R*Tf2^2)/DelHm_v);//inKkg/mol Tf1=277.4;//melting point of C6H6 in Kg/mol M1=(Tf2-Tf1)/Kf;//molality in mol/kg X1=0.02;//molefraction of CH3COOH M2=X1/M;//molality in mol/kg Md=(M2-M1);//molality of dimer in mol/kg Mm=M1-Md;//molality of monomer in mol/kg Keq=(Md)/(Mm^2);//equilibrium constant fo dimerization of CH3COOH printf('Keq=%.2f',Keq) //There are some errors in the solution given in textbook //page 76
f17635847cb35738c33428ea59c0d1053e62f089
449d555969bfd7befe906877abab098c6e63a0e8
/1319/CH12/EX12.21/i_21.sce
eca2c552d12ce9b9dec07b9f43bf97a1512d97e2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
821
sce
i_21.sce
// To calculate current from a battery and pd across points A and B clc; clear; // Resistances in the given network R1=4; R2=2; R3=3; R4=6; R5=8; // MESH Equations //9*i1-5*i2=10 //-5*i1+19*i2=0 // Supply voltage 10V R=[(R1+R2+R3) -(R2+R3); -(R2+R3) (R2+R3+R4+R5)]; V=[10;0]; //Loop Currents I=inv(R)*V; i1=I(1); i2=I(2); i3=i1-i2; // From Mesh 1 // Point Voltages Va=i3*R3; Vb=i2*R5; disp('amperes',abs(i1),'The current through 4 ohm resistor and the battery =') disp('amperes',abs(i2),'The current through 6 ohm and 8 ohm resistors =') disp('amperes',abs(i3),'The current through 2 ohm and 3 ohm resistors =') disp('volts',abs(Va),'The voltage at point A =') disp('volts',abs(Vb),'The voltage at point B =') disp('volts',(Va-Vb),'The voltage across Points A and B =')
939c99843a2262c8f3277d5dcbec75ae93de5327
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.5/demos/lmitool/lmidem.sci
64ea0325e8d749afa316557967443a2737b50e5f
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
5,432
sci
lmidem.sci
function [txtdo]=lmidem(PROBNAME,XNAME,DNAME) // Copyright INRIA [LHS,RHS]=argn(0); txtdo=[] if RHS ~=3 then PROBNAME1='foo'; XNAME1='X1,X2,...'; DNAME1='D1,D2,...'; if RHS==1 then tt=read(PROBNAME,-1,1,'(a)'); tt=stripblanks(tt); mat=str2vec(tt); [q1,p1]=find(mat'=='['); [q2,p2]=find(mat'==']'); XNAME1=mat(p1(1),q1(1)+1:q2(1)-1); XNAME1=strcat(XNAME1); [q1,p1]=find(mat'=='('); [q2,p2]=find(mat'==')'); DNAME1=mat(p1(1),q1(1)+1:q2(1)-1); DNAME1=strcat(DNAME1); [q2,p2]=find(mat'=='='); PROBNAME1=mat(p2(1),q2(1)+1:q1(1)-1); PROBNAME1=strcat(PROBNAME1); end labels=['LMI problem name: ';'Names of unknown matrices: ';... 'Names of data matrices: ']; // [ok,PROBNAME,XNAME,DNAME]=getvalue(['Problem definition'; // 'LMITOOL will generate for you a skeleton of the functions needed'; // ' (see User''s Guide for details). For that, you need to specify:'; // '1- Name of you problem which will be given to the solver function,'; // '2- Names of unknown matrices or list of unknown matrices,'; // '3- Names of data matrices or list of data matrices.'],labels,... // list('str',1,'str',1,'str',1),... // [PROBNAME1+' ',XNAME1+' ',DNAME1+' ']); ok=%t PROBNAME=PROBNAME1;XNAME=XNAME1;DNAME=DNAME1; if ok==%f then txtdo='Try again';return; end end // PROBNAME=stripblanks(PROBNAME); // XNAME=stripblanks(XNAME); // DNAME=stripblanks(DNAME); pathname=getcwd(); fname = pathname+'/'+PROBNAME+'.sci'; txt0='function ['+XNAME+']='+PROBNAME+'('+DNAME+')' txt0=[txt0;'/'+'/ Generated by lmitool on ';' ']; txt0=[txt0; ' Mbound = 1e3;'; ' abstol = 1e-10;'; ' nu = 10;'; ' maxiters = 100;'; ' reltol = 1e-10;'; ' options=[Mbound,abstol,nu,maxiters,reltol];' ' '] nv=length(XNAME); index_commas=[]; for k=1:nv if part(XNAME,k)==',' then index_commas=[index_commas,k],end end vnum = length(index_commas)+1; index_commas = [0 index_commas length(XNAME)+1]; txt1=[];txt2=[]; for i = 1:vnum, vname = part(XNAME,index_commas(i)+1:index_commas(i+1)-1); if RHS<>1 then txt1 = [txt1; vname+'_init=...'] end txt2=[txt2,vname+'_init']; end txts1=['function [LME,LMI,OBJ]='+PROBNAME+'_eval(XLIST)'; '['+XNAME+']=XLIST(:)'] if RHS ~= 1 then txts2=['LME=...';'LMI=...';'OBJ=...'] else [p,q]=size(mat); ind=[] for i=1:p if mat(i,2:7)==['/','/','/','/','/','/'] then ind=[ind i]; end end if prod(size(ind))<>4 then error('File not generated by lmitool or badly modified'); end txt1=[]; for i=ind(1)+1:ind(2)-1 txt1=[txt1;strcat(mat(i,:))]; end txts2=[]; for i=ind(4)+1:p txts2=[txts2;strcat(mat(i,:))]; end end sep11=['/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'... +'/'+'INITIAL GUESS'] sep12=['/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'... +'/'+' '] sep13=['/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'... +'/'+'LME, LMI and OBJ'] sep2=['/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'... +'/'+'EVALUATION FUNCTION'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'+'/'] txt2=[ 'XLIST0=list('+strcat(txt2,',')+')'; 'XLIST=lmisolver(XLIST0,'+PROBNAME+'_eval,options)'; '['+XNAME+']=XLIST(:)']; txt4=[txt0;sep11;txt1;sep12;' ';txt2;' ';' ';' ';... sep2;' ';txts1;' ';sep13;txts2]; if RHS==0|RHS==1 then select %demo_ case 1 txtdem=['The problem is here:'; 'Minimize gama under the constraints:' ' X''-X = 0'; ' and ' '[A X + X A'''+', B, X C'']'; '[ B'''+', -gama I, D'']'; '[C X, D, -gama I] < 0'; ' '; 'This problem is solved by the function below (do not edit)' ] case 2 txtdem=['The problem is here:'; 'Minimize trace(P+Q) under the constraints:' ' P''-P = 0'; ' Q''-Q = 0'; ' and ' ' NB'' (A Q + Q A'' + Q) NB < 0'; ' NC'' (A P + P A'' + P) NC < 0'; ' [P I; I Q] > 0' ' where NB=kernel(B) and NC=kernel(C'')' ' '; 'This problem is solved by the function below (do not edit)' ] case 3 txtdem=['The problem is here:'; 'Find X such that A*X+X*B-C (continuous time)' 'or Find X such that A*X*B-C (discrete time)' ] end [txt4]=x_dialog(txtdem,[txt4]); end if txt4==[] then txtdo='Try again';return;end txt=[txt4]; n=1; function [vec]=str2vec(str) w=length(str); [p,q]=size(w);ma=max(w); vec=[]; for i=1:ma vec=[vec part(str,i)] end
52f97b8bfdbe21556bfdf794f0f923b8c8aa9e3c
449d555969bfd7befe906877abab098c6e63a0e8
/1709/CH10/EX10.6/10_6.sce
d51e69c940a53441985849f648c2efe9f58af862
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
332
sce
10_6.sce
clc //Initialization of variables w1=0.0176 //lbm w2=0.0093 //lbm T2d=73//F T2=55 //F //calculations disp("From steam tables,") hv1=1061+0.445*100 hv2=1061+0.445*55 hf=23.06 q1=20 q2=4.88 //results printf("Heat removed in cooling section = %d Btu/lbm ",q1) printf("Heat added in heating section = %.2f Btu/lbm ",q2)
2f8eb7366cf2f616828a6932bc340ed3ebb6a944
449d555969bfd7befe906877abab098c6e63a0e8
/557/CH6/EX6.1/1.sce
2ca6e42a2530d8479731a2c9b09e7598bd850d27
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
709
sce
1.sce
clc;funcprot(0); //Example 6.1 //Initializing the variables Pc = 0; // Atmospheric Pressure Z3 = 30+2; //height of nozzle Ep = 50 ; //Energy per unit weight supplied by pump d1 = 0.150; //Diameter of sump d2 = 0.100; //Diameter of delivery pipe d3 = 0.075 ; //Diameter of nozzle g = 9.81; // Acceleration due to gravity Z2 = 2; //Height of pump rho = 1000; // Density of water //Calculations U3 = sqrt(2*g*(Ep-Z3)/(1+5*(d3/d1)^4 + 12*(d3/d2)^4)); U1 = U3/4; Pb = rho*g*Z2 + 3*rho*U1^2; disp(U3, "Velocity of Jet through nozzle (m/s) :"); disp(Pb/1000 , "Pressure in the suction pipe at the inlet to the pump at B(kN/m2) :");
b34046eb0ad18341b35bb4a282ce86c9fac2e4cd
9715cbe7e8e57bb70f628b3bd021842f99fbad75
/ejemplos/03_optimization/scilab/01_basic/01_golden_search/golden.sce
0c9ebc88f9fb9d981c0b755637ee1b8ebb17f601
[]
no_license
UNIVALLE-EISC/numerical-methods
a3e3f432a6dc54a5ba845789ace2bf39db7ac6fe
3ea9401e281523e15be0525bfe36e48560caf646
refs/heads/master
2021-01-10T15:22:36.080955
2018-10-02T21:37:42
2018-10-02T21:37:42
51,824,833
2
2
null
null
null
null
UTF-8
Scilab
false
false
501
sce
golden.sce
function [xlow, x2, fx2, x1, fx1, xup, d, xopt, ea] = golden(funcion, xlow, xup, niter) phi = (1 + sqrt(5))/2; for i=1:niter d = (xup - xlow)/phi; x1 = xlow + d; x2 = xup - d; fx1 = funcion(x1); fx2 = funcion(x2); if (fx1 < fx2) then xopt = x1; xlow = x2; else xopt = x2; xup = x1; end ea = (2-phi)*abs((xup-xlow)/xopt)*100 end endfunction
daa93f92fbb4b350187f74210b2aa959f5da9a79
449d555969bfd7befe906877abab098c6e63a0e8
/842/CH10/EX10.9/Example10_9.sce
25f22311c1439e000e42cf7ec590d12c563a8e3a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Example10_9.sce
//clear// //Example10.9:Inverse Z Transform:ROC |z|>1/3 z = %z; syms n z1;//To find out Inverse z transform z must be linear z = z1 X =z*(3*z-(5/6))/((z-(1/4))*(z-(1/3))) X1 = denom(X); zp = roots(X1); X1 = z1*(3*z1-(5/6))/((z1-(1/4))*(z1-(1/3))) F1 = X1*(z1^(n-1))*(z1-zp(1)); F2 = X1*(z1^(n-1))*(z1-zp(2)); h1 = limit(F1,z1,zp(1)); disp(h1,'h1[n]=') h2 = limit(F2,z1,zp(2)); disp(h2,'h2[n]=') h = h1+h2; disp(h,'h[n]=') ////Result //h[n]= (1/4)^n+(2/3)^n
34fd623b5b29d731cf1d0ddb5ad99ddf411a4057
449d555969bfd7befe906877abab098c6e63a0e8
/534/CH14/EX14.2/14_2_Diffusion_mass_transfer_Water_droplet.sce
8d01d3d7741641e7e5cfa9a800c6b6fd6e4cec29
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,397
sce
14_2_Diffusion_mass_transfer_Water_droplet.sce
clear; clc; printf('FUNDAMENTALS OF HEAT AND MASS TRANSFER \n Incropera / Dewitt / Bergman / Lavine \n EXAMPLE 14.2 Page 898 \n')// Example 14.2 // Evaporation rate through a single pore T = 298 ;//[K] Temperature D = 10*10^-6 ;//[m] L = 100*10^-6; //[m] H = .5 ;// Moist Air Humidity p = 1.01325 ;//[bar] //Table A.6 Saturated Water vapor Properties at 298 K psat = .03165; //[bar] saturated Pressure //Table A.8 Water vapor-air Properties at 298 K Dab = .26*10^-4; //[m^2/s] diffusion coefficient C = p/(8.314*10^-2*298) ;//Total Concentration //From section 6.7.2, the mole fraction at x = 0 is xa0 = psat/p; //the mole fraction at x = L is xaL = H*psat/p; //Evaporation rate per pore Using Equation 14.41 with advection N = (%pi*D^2)*C*Dab/(4*L)*2.303*log10((1-xaL)/(1-xa0)) ;//[kmol/s] //Neglecting effects of molar averaged velocity Equation 14.32 //Species transfer rate per pore Nh = (%pi*D^2)*C*Dab/(4*L)*(xa0-xaL) ;//[kmol/s] printf('\n Evaporation rate per pore Without advection effects %.2e kmol/s and With Advection effects %.2e kmol/s',Nh,N) clf(); x = linspace(300,800,100); y1 = N*x^1.5/298^1.5*10^15; y2 = Nh*x^1.5/298^1.5*10^15; plot(x,y1,x,y2); xtitle("Evaporation Temp vs Temp", "T (K)", "Na *10^15(kmol/s)"); legend ("Without Advection", "With Advection");
fbb1f549def0b4eeb66aed0f4ca58228924cc561
fd56912428cdd6be1cdaaecf2b551af84d20cafa
/2b.sce
d966bafbfaad27fe7b174ad782b50dde13db285e
[]
no_license
prernams/LAA-Assignment
ebb528f06918c2b9a054376908c7f236bf3d97ec
c3bea5b3d3dd7edf93662cc92ee82c6919310fd6
refs/heads/main
2023-05-27T16:15:08.449010
2021-06-16T04:48:20
2021-06-16T04:48:20
377,373,595
0
0
null
null
null
null
UTF-8
Scilab
false
false
495
sce
2b.sce
clc; clear; close; format('v',5); A=[2,3,1;4,7,5;0,-2,2]; for l=1:3 L(l,l)=1; end for i=1:3 for j=1:3 s=0; if j>=i for k=1:i-1 s=s+L(i,k)*U(k,j); end U(i,j)=A(i,j)-s; else for k=1:j-1 s=s+L(i,k)*U(k,j); end L(i,j)=(A(i,j)-s)/U(j,j); end end end b=[8;20;0]; c=L\b; x=U\c; disp(x,'Solution of the given equations is :');
6c1fcdf2ee930843196684f3d8e057144f232732
45e046b9cab35a22858077ef405f8c8b8125a87f
/Assignment-1/Questn-5/matrix.sce
f069d4673001055fed118cf43a547ef284452fee
[]
no_license
shilpasunil/AP-laboratory
4a67e510a05e5ce48f200ee73183627a12a19d55
87d55510d6f3c4a80ce1779e9b39430ee20e69b2
refs/heads/main
2023-02-09T16:13:34.048845
2021-01-07T04:43:35
2021-01-07T04:43:35
327,504,813
0
0
null
null
null
null
UTF-8
Scilab
false
false
580
sce
matrix.sce
cmp = zeros(1,7); cp = zeros(1,7); noe = zeros(1,7) for n =1:7 k=0; noe(n) = n; t= 2.^n; A = zeros(t,t); B= zeros(t,t); C= zeros(t,t); for i = 1:t for j= 1:t for z= 1:t k=k+1; C(i,j) = A(i,j)*B(i,j); end end end cmp(n)=k/100000; cp(n)= strassen_algorithm(A,B,C,t)/100000; end plot(noe,cmp,"r"); plot(noe,cp); xgrid(2); title("PERFORMANCE ANALYSIS OF MATRIX MULTIPLICATION"); xlabel("n {MATRIX SIZE: 2^n}"); ylabel("Number of comparisons in 100000"); legend("NAIVE","STRASSEN");
4d406f56e3fc2959eeb174b029164e261ecc84d9
449d555969bfd7befe906877abab098c6e63a0e8
/2078/CH5/EX5.10/Example5_10.sce
f32f97e6f723c413855fbdcb2a9d91a6410b741e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
975
sce
Example5_10.sce
//Exa 5.10 clc; clear; close; //Given data : l=200;//km P=50;//MVA VRL=132*10^3;//Volt f=50;//Hz R=l*0.15;//ohm X=l*0.50;//ohm Y=l*2*10^-6;//mho pf=0.85;//power factor cos_fi_r=pf; sin_fi_r=sqrt(1-cos_fi_r^2); VR=VRL/sqrt(3);//Volt IR=P*10^6/(sqrt(3)*VRL);//A Z=R+%i*X;//ohm IR=IR*(cos_fi_r-%i*sin_fi_r);//A Vdash=VR+1/2*IR*Z;//Volt IC=Vdash*%i*Y;//A IS=IR+IC;//A disp("Sending end current(A), magnitude is "+string(abs(IS))+" and angle in degree is "+string(atand(imag(IS),real(IS)))); VS=Vdash+1/2*IS*Z;//Volt VSL=abs(VS)*sqrt(3);//Volt disp(VSL/1000,"Sending end line voltage(kV) :"); Reg=(VSL-VRL)/VRL*100;//% disp(Reg,"Regulation(%) : "); fi_s=atand(imag(VS),real(VS))-atand(imag(IS),real(IS));// cos_fi_s=cosd(fi_s);//sending end pf Eta_T=sqrt(3)*VRL*abs(IR)*cos_fi_r/(sqrt(3)*VSL*abs(IS)*cos_fi_s)*100;//% disp(Eta_T,"Transmission Efficiency(%) : "); //Ans is wrong in the book.Angle of VS is calculated wrong leads to wrong answers.
445a072803c48ec17c0356155af6c927058cea90
449d555969bfd7befe906877abab098c6e63a0e8
/797/CH11/EX11.5e/11_05_example.sci
3d0294d308af29e0b5204a9ad79ade8d14024131
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
457
sci
11_05_example.sci
//Example 11-5 Lift and Drag of commercial Airplane m = 70000 //mass of commercial airplane [kg] A = 150 //wing planeform area [m^2] V = 558 //crusing speed of the plane [km/hr] rho_altitude = 0.312 //density of air at altitude of 12000m [kg/m^3] rho_ground = 1.2 //density of air on ground [kg/m^3] C_Lmax_flap = 3.48 //maximum lift coefficient with flaps C_Lmax = 1.52 //maximum lift coefficient without flaps g = 9.81 //gravitational acceleration [m/s^2]
a274ee44522d8e8d052e70a37914ddc0d2f16b95
449d555969bfd7befe906877abab098c6e63a0e8
/1862/CH20/EX20.1/C20P1.sce
423ddd9a84397270c4ec6b1976f11266b2bf121f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,099
sce
C20P1.sce
clear clc //to find minimum speed of muon in the Earth's fram of reference //to find minimum speed of muon in the muon's fram of reference //Given: //refer to figure 20-8(a)and (b) from page no. 457 //lifetime of muon delta_t0 = 2.2//in microsesonds //height of atmosphere L0 = 100//in Km //speed of light c = 3.00e8//in m/s //Solution: //appiying Einstein's posulates //in the Earth's fram of reference //time of travel delta_t = (L0*10^3)/c//in microseconds //minimum speed of muon u = sqrt((1-((delta_t0/(delta_t)*10^-6)^2)))//in m/s //in the muon's fram of reference //height of atmosphere L = c*(delta_t0*10^-6)//in meters //minimum speed of muon u1 = sqrt((1-(((L)/(L0*1000))^2)))//in m/s printf ("\n\n Time of travel in the Earth fram of reference delta_t = \n\n %.2e seconds" ,delta_t); printf ("\n\n Minimum speed of muon in the Earth fram of reference u = \n\n %.6fc" ,u); printf ("\n\n Height of atmosphere in the muon fram of reference L = \n\n %3i meters" ,L); printf ("\n\n Minimum speed of muon in the muon fram of reference u = \n\n %.6fc" ,u1);
d8587eadb2b5bde62c1c0f5cbc65d343264a34c4
f542bc49c4d04b47d19c88e7c89d5db60922e34e
/PresentationFiles_Subjects - Kopie/CONT/VW42LKU/ATWM1_Working_Memory_MRI_VW42LKU/ATWM1_Working_Memory_MRI_Nonsalient_Cued_Run1.sce
ec449ef7ced5296133570df3f8ae8232a781fdbe
[]
no_license
atwm1/Presentation
65c674180f731f050aad33beefffb9ba0caa6688
9732a004ca091b184b670c56c55f538ff6600c08
refs/heads/master
2020-04-15T14:04:41.900640
2020-02-14T16:10:11
2020-02-14T16:10:11
56,771,016
0
1
null
null
null
null
UTF-8
Scilab
false
false
12,492
sce
ATWM1_Working_Memory_MRI_Nonsalient_Cued_Run1.sce
# ATWM1 MRI Experiment scenario = "ATWM1_Working_Memory_MRI_nonsalient_cued_run1"; scenario_type = fMRI; # Fuer Scanner #scenario_type = fMRI_emulation; # Zum Testen #scenario_type = trials; scan_period = 2000; # TR pulses_per_scan = 1; pulse_code = 1; #pulse_width=6; default_monitor_sounds = false; active_buttons = 2; response_matching = simple_matching; button_codes = 10, 20; default_font_size = 28; default_font = "Arial"; default_background_color = 0 ,0 ,0 ; #write_codes=true; # for MEG only begin; #Picture definitions box { height = 300; width = 300; color = 0, 0, 0;} frame1; box { height = 290; width = 290; color = 255, 255, 255;} frame2; box { height = 30; width = 4; color = 0, 0, 0;} fix1; box { height = 4; width = 30; color = 0, 0, 0;} fix2; box { height = 30; width = 4; color = 255, 0, 0;} fix3; box { height = 4; width = 30; color = 255, 0, 0;} fix4; box { height = 290; width = 290; color = 128, 128, 128;} background; TEMPLATE "StimuliDeclaration.tem" {}; trial { sound sound_incorrect; time = 0; duration = 1; } wrong; trial { sound sound_correct; time = 0; duration = 1; } right; trial { sound sound_no_response; time = 0; duration = 1; } miss; # baselinePre (at the beginning of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }default; time = 0; duration = 9400; mri_pulse = 1; code = "BaselinePre"; #port_code = 1; }; TEMPLATE "ATWM1_Working_Memory_MRI.tem" { trigger_volume_encoding trigger_volume_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4; 6 12 292 292 399 125 11543 2992 14342 fixation_cross gabor_107 gabor_148 gabor_084 gabor_026 gabor_107 gabor_148 gabor_084_alt gabor_026_alt "1_1_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_107_148_084_026_target_position_1_2_retrieval_position_1" gabor_061_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_1_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_061_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 21 26 292 292 399 125 9543 2992 14342 fixation_cross gabor_087 gabor_127 gabor_049 gabor_015 gabor_087 gabor_127_alt gabor_049_alt gabor_015 "1_2_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_087_127_049_015_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_015_framed blank blank blank blank fixation_cross_target_position_1_4 "1_2_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 35 40 292 292 399 125 9543 2992 12342 fixation_cross gabor_034 gabor_097 gabor_081 gabor_066 gabor_034_alt gabor_097_alt gabor_081 gabor_066 "1_3_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_034_097_081_066_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_018_framed blank blank blank blank fixation_cross_target_position_3_4 "1_3_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_018_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 48 54 292 292 399 125 11543 2992 14342 fixation_cross gabor_021 gabor_148 gabor_039 gabor_061 gabor_021_alt gabor_148 gabor_039 gabor_061_alt "1_4_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_021_148_039_061_target_position_2_3_retrieval_position_2" gabor_circ gabor_148_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_4_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_148_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 63 69 292 292 399 125 11543 2992 14342 fixation_cross gabor_179 gabor_154 gabor_070 gabor_041 gabor_179 gabor_154 gabor_070_alt gabor_041_alt "1_5_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_11601_3000_14400_gabor_patch_orientation_179_154_070_041_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_070_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_5_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_070_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 78 83 292 292 399 125 9543 2992 12342 fixation_cross gabor_136 gabor_120 gabor_083 gabor_049 gabor_136 gabor_120_alt gabor_083_alt gabor_049 "1_6_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_136_120_083_049_target_position_1_4_retrieval_position_1" gabor_136_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_6_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_136_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 91 96 292 292 399 125 9543 2992 12342 fixation_cross gabor_171 gabor_109 gabor_001 gabor_056 gabor_171 gabor_109 gabor_001_alt gabor_056_alt "1_7_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_171_109_001_056_target_position_1_2_retrieval_position_1" gabor_171_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_7_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_171_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 104 109 292 292 399 125 9543 2992 12342 fixation_cross gabor_109 gabor_065 gabor_129 gabor_041 gabor_109 gabor_065_alt gabor_129 gabor_041_alt "1_8_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_109_065_129_041_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_129_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_8_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_129_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 117 123 292 292 399 125 11543 2992 14342 fixation_cross gabor_029 gabor_105 gabor_174 gabor_087 gabor_029 gabor_105 gabor_174_alt gabor_087_alt "1_9_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_029_105_174_087_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 "1_9_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_056_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 132 137 292 292 399 125 9543 2992 14342 fixation_cross gabor_150 gabor_045 gabor_026 gabor_104 gabor_150_alt gabor_045_alt gabor_026 gabor_104 "1_10_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_150_045_026_104_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_075_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_10_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_075_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 146 152 292 292 399 125 11543 2992 12342 fixation_cross gabor_171 gabor_117 gabor_053 gabor_140 gabor_171 gabor_117_alt gabor_053_alt gabor_140 "1_11_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_11601_3000_12400_gabor_patch_orientation_171_117_053_140_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_053_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_11_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_053_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 160 165 292 292 399 125 9543 2992 14342 fixation_cross gabor_001 gabor_035 gabor_111 gabor_158 gabor_001 gabor_035_alt gabor_111_alt gabor_158 "1_12_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_001_035_111_158_target_position_1_4_retrieval_position_1" gabor_001_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_12_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_001_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 174 179 292 292 399 125 9543 2992 14342 fixation_cross gabor_022 gabor_146 gabor_131 gabor_007 gabor_022 gabor_146_alt gabor_131_alt gabor_007 "1_13_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_022_146_131_007_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_057_framed blank blank blank blank fixation_cross_target_position_1_4 "1_13_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_057_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 188 194 292 292 399 125 11543 2992 12342 fixation_cross gabor_063 gabor_012 gabor_044 gabor_096 gabor_063_alt gabor_012_alt gabor_044 gabor_096 "1_14_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_063_012_044_096_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_179_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_14_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 202 208 292 292 399 125 11543 2992 12342 fixation_cross gabor_168 gabor_009 gabor_050 gabor_125 gabor_168 gabor_009 gabor_050_alt gabor_125_alt "1_15_Encoding_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_11601_3000_12400_gabor_patch_orientation_168_009_050_125_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_078_framed blank blank blank blank fixation_cross_target_position_1_2 "1_15_Retrieval_Working_Memory_MRI_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_078_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; }; # baselinePost (at the end of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }; time = 0; duration = 20600; code = "BaselinePost"; #port_code = 2; };
c5f6cb158bc39ba7b06da940ff3abb7a470be4ad
449d555969bfd7befe906877abab098c6e63a0e8
/1655/CH5/EX5.2.6/Example_5_2_6.sce
a452b399b5a1b8a7c2a14811135a6514813f3df5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,135
sce
Example_5_2_6.sce
// Example 5.2.6 page 5.8 clc; clear; n1=1.47; //refractive index of fiber n=1; //refractive index of air theta=3; //angle in degree d=80d-6; //core diameter y=2d-6; //lateral dispalcement delta=2/100; //relative refractive index a=d/2; //computing core radius eta_lateral = (16*(n1/n)^2)/(%pi*(1+(n1/n))^4)*(2*acos(y/(2*a))-(y/a)*(1-(y/(2*a))^2)^0.5); //computing eta lateral loss_lateral=-10*log10(eta_lateral); //computing loss due to lateral misalignment eta_angular= (16*(n1/n)^2)/((1+(n1/n))^4)*(1-((n*theta*%pi/180)/(%pi*n1*(sqrt(2*delta))))); //computing eta angular loss_angular=-10*log10(eta_angular); //computing loss due to angular misalignment total_loss=loss_lateral+loss_angular; //computing total loss due to misalignment printf("\nloss due to lateral misalignment is %.2f dB.\nloss due to angular misalignment is %.2f dB.\nTotal loss is %.2f dB",loss_lateral,loss_angular,total_loss); //answer in the book for loss due to lateral misalignment is 0.48 dB, deviation of 0.02. //answer in the book for total loss due is 1.05 dB, deviation of 0.02.