blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50 values | src_encoding stringclasses 23 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 29 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
961ca2fb2125cc5236d517e3f63b99d767cfc5b2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2783/CH1/EX1.6/Ex1_6.sce | 34e19d644955dcea2b5220295539b3108d4387a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 340 | sce | Ex1_6.sce | clc
//initialization of new variables
clear
E=2.34*10^9 //N/m^2 Modulus of Elasticity
d=1 //km depth
rho=1000 //kg/m^3 density
g=9.8 //m/s^2 Acceleration due to gravity
//calculations
d=d*1000
dp=rho*g*d
dVV=dp/E
//result
printf('The change in pressure is %.2e N/m^2 ',dp)
printf('\n Change in volume is %.3e ',dVV)
|
dee8676f4a5c455c093f7760070dd3a08d75acf5 | 4a1effb7ec08302914dbd9c5e560c61936c1bb99 | /Project 2/Experiments/GFS-GCCL-C/results/GFS-GCCL-C.vowel-10-1tra/result1s0.tst | 92d7f2dc206ac5fb5d3317002a357797a2b79f24 | [] | no_license | nickgreenquist/Intro_To_Intelligent_Systems | 964cad20de7099b8e5808ddee199e3e3343cf7d5 | 7ad43577b3cbbc0b620740205a14c406d96a2517 | refs/heads/master | 2021-01-20T13:23:23.931062 | 2017-05-04T20:08:05 | 2017-05-04T20:08:05 | 90,484,366 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 970 | tst | result1s0.tst | @relation vowel
@attribute TT integer[0,1]
@attribute SpeakerNumber integer[0,14]
@attribute Sex integer[0,1]
@attribute F0 real[-5.211,-0.941]
@attribute F1 real[-1.274,5.074]
@attribute F2 real[-2.487,1.431]
@attribute F3 real[-1.409,2.377]
@attribute F4 real[-2.127,1.831]
@attribute F5 real[-0.836,2.327]
@attribute F6 real[-1.537,1.403]
@attribute F7 real[-1.293,2.039]
@attribute F8 real[-1.613,1.309]
@attribute F9 real[-1.68,1.396]
@attribute Class{0,1,2,3,4,5,6,7,8,9,10}
@inputs TT,SpeakerNumber,Sex,F0,F1,F2,F3,F4,F5,F6,F7,F8,F9
@outputs Class
@data
6 7
0 0
4 3
4 6
8 7
1 1
4 6
9 7
7 7
0 0
2 1
3 3
7 7
5 3
6 3
9 6
3 3
9 6
4 3
7 6
8 6
9 9
8 6
0 0
1 1
6 4
5 4
6 4
7 7
4 4
0 0
1 1
9 9
2 1
5 3
9 9
6 6
8 1
2 3
1 1
4 3
0 9
3 10
5 4
2 2
5 4
3 4
2 0
7 7
3 3
10 6
10 5
0 0
2 1
9 9
4 6
5 3
1 0
10 10
3 3
1 0
7 7
10 2
1 0
5 4
0 0
3 3
3 3
6 7
8 7
2 3
5 3
1 1
3 3
0 0
7 7
8 7
9 9
10 6
4 4
5 3
6 6
9 9
1 1
2 3
4 4
6 6
8 1
0 0
2 0
8 1
7 7
10 6
7 7
10 1
8 1
10 1
6 6
10 10
|
f6b950c522a7240f4d3b3b49e0f2c55a0ceb477e | 449d555969bfd7befe906877abab098c6e63a0e8 | /527/CH4/EX4.6/4_6exam.sce | 61af41d2e0ecc9d56bbe5d4fc263d286ce3c8903 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 779 | sce | 4_6exam.sce | //Engineering and Chemical Thermodynamics
//Example 4.6
//Page no :190
clear ; clc ;
//Given
Pc_B = 49.1 ; // [bar] , From table
Pc_T = 42.0 ; // [bar] , From table
Pc_C = 40.4 ; // [bar] , From table
Tc_B = 562 ; // [K] , From table
Tc_T = 594 ; // [K] , From table
Tc_C = 553 ; // [K] , From table
R = 8.314 ;
A = [Pc_B , Tc_B ; Pc_T , Tc_T ; Pc_C , Tc_C];
for i=1:3
A(i,3) = 27/64 * (R * A(i,2))^2 /( A(i,1) * 10^5) ;
A(i,4) = R * A(i,2) / (8 * A(i,1) * 10^5) ;
end
disp(" Example: 4.6 Page no : 190") ;
disp(" P_c T_c a b ") ;
disp(A) ;
disp(" The attractive interactions of all three compounds are dominated by dispersion interactions ( parameter a) , while size affects parameter b .") |
fc7db40000af6efb58f653bade70f5405fcfe352 | f2635c3a10a2508720f5d231581bbcf58664cf12 | /pl/math/test/testcases/directed/cbrtf.tst | 0dd8d09f1d4fb552d4baecea111facfbac4384c4 | [
"LLVM-exception",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | xboxfanj/optimized-routines | 9ed0fef9346076e3eaf952cecd9b6c39cca8d92b | e312306d13daf9c044145ca26fb34ef7704fae81 | refs/heads/master | 2023-01-21T08:14:26.298438 | 2022-12-21T00:02:54 | 2023-01-10T16:39:37 | 232,194,104 | 0 | 0 | MIT | 2020-01-06T22:07:31 | 2020-01-06T22:07:30 | null | UTF-8 | Scilab | false | false | 1,353 | tst | cbrtf.tst | ; cbrtf.tst
;
; Copyright (c) 2009-2023, Arm Limited.
; SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
func=cbrtf op1=7f800000 result=7f800000 errno=0
func=cbrtf op1=ff800000 result=ff800000 errno=0
func=cbrtf op1=7f800001 result=7fc00001 errno=0 status=i
func=cbrtf op1=7fc00001 result=7fc00001 errno=0
func=cbrtf op1=00000000 result=00000000 errno=0
func=cbrtf op1=00000001 result=26a14517.cc7 errno=0
func=cbrtf op1=00000002 result=26cb2ff5.29f errno=0
func=cbrtf op1=00000003 result=26e89768.579 errno=0
func=cbrtf op1=00000004 result=27000000.000 errno=0
func=cbrtf op1=00400000 result=2a4b2ff5.29f errno=0
func=cbrtf op1=00800000 result=2a800000.000 errno=0
func=cbrtf op1=3f800000 result=3f800000.000 errno=0
func=cbrtf op1=40000000 result=3fa14517.cc7 errno=0
func=cbrtf op1=7f7fffff result=54cb2ff4.e63 errno=0
func=cbrtf op1=80000000 result=80000000 errno=0
func=cbrtf op1=80000001 result=a6a14517.cc7 errno=0
func=cbrtf op1=80000002 result=a6cb2ff5.29f errno=0
func=cbrtf op1=80000003 result=a6e89768.579 errno=0
func=cbrtf op1=80000004 result=a7000000.000 errno=0
func=cbrtf op1=80400000 result=aa4b2ff5.29f errno=0
func=cbrtf op1=80800000 result=aa800000.000 errno=0
func=cbrtf op1=bf800000 result=bf800000.000 errno=0
func=cbrtf op1=c0000000 result=bfa14517.cc7 errno=0
func=cbrtf op1=ff7fffff result=d4cb2ff4.e63 errno=0
|
974d84646ac1e3ace6ce86416398f8c598b4c6f3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/CH4/EX4.2/4_2.sce | bf954994015eb45f8f373279141f08d99b7fdc4d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 384 | sce | 4_2.sce | pathname=get_absolute_file_path('4_2.sce')
filename=pathname+filesep()+'4_2data.sci'
exec(filename)
M=(W*a*(L-a))/(L);
deff("[y]=f(x)","y=(W*x*(L-x))/(L)")//manding moment
x=[0:0.05:L];
fplot2d(x,f);
xgrid(3);
datatipToggle();
xtitle( 'Banding Moment versus a', ' -a- ', '-M-');
printf("\nMB: %f N.m",M);
printf("\n\nclick on the point to view its coordinate on the plot"); |
92e25188b1b385f43f5c3319f324bf9b8f0fa1af | 449d555969bfd7befe906877abab098c6e63a0e8 | /3665/CH12/EX12.2/Ex12_2.sce | 353be87170eb02f804f1cc3af2dbc6c378ff17e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 295 | sce | Ex12_2.sce | clc//
//
//
//Variable declaration
a1=4*10^-3; //diameter(m)
a2=6*10^-3; //diameter(m)
d1=1; //distance(m)
d2=2; //distance(m)
//Calculation
theta=(a2-a1)/(2*(d2-d1)); //divergence(radian)
//Result
printf("\n divergence is %0.3f milli radian",theta*10^3)
|
3a1ae66b3945fbf0f4c5deeefc526aa565c749d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3755/CH6/EX6.25/Ex6_25.sce | 6aa58d695ba6c1520e8826bbe5b33a9e058a14e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 333 | sce | Ex6_25.sce | clear
//
//
//
//Variable declaration
dlamda=10^-4*10^-10; //width(m)
lamda=6000*10^-10; //wavelength(m)
c=3*10^8; //velocity of light(m/sec)
//Calculations
delta_t=lamda^2/(2*%pi*c*dlamda); //time required(second)
//Result
printf("\n time required is %0.1f *10^-8 second",delta_t*10^8)
|
c3a27072319fef3f586baf14870da6fd57a16fe3 | eec0cb8a9a3987d4e28fc22c89750a158a00ea84 | /Assignment4_Team8/WTM8bu.tst | ccb55cd5e877e712ac22cd72e15659461b645a08 | [] | no_license | Archaic-Mage/CS2310_LAB_Assignments | 8ac90e0123de95f5cf8db709cd7761962bf8cef2 | e922b59fc1350db3f23b07b8f5986ac54f197c8d | refs/heads/main | 2023-08-29T23:42:07.913682 | 2021-11-16T14:00:05 | 2021-11-16T14:00:05 | 401,640,543 | 1 | 1 | null | 2021-10-01T05:55:36 | 2021-08-31T09:10:15 | Scilab | UTF-8 | Scilab | false | false | 337 | tst | WTM8bu.tst | /**this is test file for unsigned multiplier**/
load WTM8bu.hdl;
output-file WTM8bu.out,
compare-to WTM8bu.cmp,
output-list x%B1.8.1 x%D1.3.1 y%B1.8.1 y%D1.3.1 z%B1.8.1 z%D1.3.1 isoverflow%B5.1.4;
set x 11,
set y 12,
eval,
output;
set x 13,
set y 15,
eval,
output;
set x 255,
set y 1,
eval,
output;
set x 29,
set y 13,
eval,
output;
|
a2a784e6171facec31abf4f49322e3e4fbe50679 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.10_11.tst | 47bdd576499c27f03690b98069a3735144097ff6 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,842 | tst | bow.10_11.tst | 10 55:0.16666666666666666 56:1.0
10 2:0.058823529411764705 4:0.25 13:1.0 88:1.0 143:1.0 939:1.0
10 13:1.0 27:0.16666666666666666 29:0.125 42:1.0 45:1.0 68:0.3333333333333333 69:0.5 70:1.0 71:1.0 73:1.0 108:0.5 115:0.6666666666666666 165:1.0 169:0.5 211:0.5 282:0.3333333333333333 469:1.0 548:1.0 558:1.0 580:1.0 1148:1.0
10 2:0.058823529411764705 17:0.5 32:0.14285714285714285
10 2:0.058823529411764705 4:0.25 169:0.5 184:1.0
10 29:0.125 74:1.0
10 2:0.058823529411764705 57:0.3333333333333333 68:0.3333333333333333 114:0.2 116:1.0 408:1.0 450:1.0 636:1.0 652:1.0 1034:0.5 1607:1.0
10 2:0.058823529411764705 8:1.0 371:1.0
10 2:0.058823529411764705 4:0.25 32:0.2857142857142857 34:0.5 125:1.0 233:1.0 305:1.0 311:1.0 560:1.0 890:1.0
10 34:0.5 556:1.0
10 639:1.0
10 55:0.16666666666666666 56:1.0
10 29:0.125 31:1.0 32:0.14285714285714285 222:0.5 343:1.0 436:1.0
10 2:0.058823529411764705 4:0.25 17:0.5 23:1.0 29:0.125 31:2.0 32:0.2857142857142857 57:0.3333333333333333 118:0.2 130:0.2 144:1.0 153:0.5 253:1.0 292:0.1111111111111111 1485:1.0
10 2:0.058823529411764705 4:0.25 13:1.0 32:0.14285714285714285 63:1.0 115:0.3333333333333333 118:0.2 308:0.5 338:0.3333333333333333 502:1.0 541:1.0 962:1.0 1288:1.0
10 8:1.0 12:0.16666666666666666 15:0.047619047619047616 23:1.0 32:0.42857142857142855 68:0.3333333333333333 104:0.09090909090909091 115:0.3333333333333333 116:1.0 121:1.0 127:1.0 153:0.5 283:1.0 346:1.0 355:1.0 581:1.0 1114:1.0 1272:0.5
10 269:0.3333333333333333 639:1.0
10 55:0.16666666666666666 56:1.0
10 15:0.047619047619047616 32:0.14285714285714285 161:1.0 228:0.16666666666666666 711:1.0
10 4:0.25 12:0.16666666666666666 15:0.047619047619047616 32:0.14285714285714285 37:1.0 112:1.0 153:0.5 931:1.0
10 12:0.16666666666666666 15:0.047619047619047616 618:1.0
10 71:1.0 72:1.0 118:0.2 143:1.0 165:1.0 269:0.3333333333333333 270:1.0 503:1.0
10 2:0.058823529411764705 12:0.16666666666666666 15:0.047619047619047616 19:0.25 68:0.3333333333333333 121:1.0 450:1.0 640:0.3333333333333333 694:1.0 776:1.0 1253:1.0 1259:1.0
10 4:0.25 22:0.16666666666666666 26:1.0 29:0.125 239:1.0
10 4:0.25 12:0.3333333333333333 13:1.0 15:0.14285714285714285 26:1.0 31:1.0 32:0.14285714285714285 37:1.0 90:1.0 100:0.5 114:0.2 115:1.0 180:0.3333333333333333 209:0.5 216:1.0 336:1.0 382:1.0 450:1.0 525:0.3333333333333333 580:1.0 655:1.0 662:1.0 1148:1.0 1207:1.0
10 4:0.5 12:0.16666666666666666 15:0.09523809523809523 16:1.0 31:2.0 32:0.14285714285714285 58:1.0 115:0.3333333333333333 118:0.2 143:2.0 146:1.0 148:0.5 209:1.5 225:1.0 235:0.5 249:1.0 262:1.0 305:1.0 371:1.0 502:1.0 1036:0.5 1434:1.0
10 4:0.25 15:0.09523809523809523 16:1.0 22:0.16666666666666666 29:0.125 32:0.14285714285714285 68:0.3333333333333333 83:1.0 216:1.0 222:0.5 251:1.0 305:1.0 609:1.0 926:1.0 958:1.0
10 12:0.16666666666666666 15:0.09523809523809523 43:1.0 108:1.0 110:0.5 544:1.0 580:1.0 609:1.0
10 12:0.16666666666666666 1008:1.0
10 12:0.16666666666666666 104:0.09090909090909091 108:0.5 641:1.0
10 13:1.0 31:1.0 92:0.3333333333333333 1008:1.0 1163:1.0
10 15:0.047619047619047616 16:1.0 37:1.0 84:1.0 222:0.5
10 4:0.25 27:0.16666666666666666 143:1.0 150:1.0 176:1.0 292:0.1111111111111111 305:1.0 773:1.0
10 639:1.0
10 55:0.16666666666666666 84:1.0 130:0.2
10 2:0.17647058823529413 4:0.75 13:1.0 19:0.5 23:1.0 29:0.125 32:0.2857142857142857 68:0.3333333333333333 76:2.0 92:0.3333333333333333 104:0.09090909090909091 108:0.5 110:0.5 119:1.0 131:1.0 145:1.0 148:0.5 179:1.0 216:1.0 222:0.5 464:1.0 496:1.0 580:1.0 983:1.0 1115:1.0 1418:1.0
10 2:0.058823529411764705 4:0.25 15:0.047619047619047616 22:0.16666666666666666 32:0.14285714285714285 68:0.3333333333333333 76:2.0 104:0.09090909090909091 172:0.5 229:1.0 288:1.0 1021:1.0
10 2:0.058823529411764705 15:0.047619047619047616 83:1.0
10 2:0.058823529411764705 15:0.047619047619047616 16:1.0 108:0.5 115:0.3333333333333333 171:0.25
|
ffbb744718489ae0fb89ec171446aba4dbca34be | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH3/EX3.26/Ex3_26.sce | c53ecbfddee96a7eadcc8de1653552b4812d1d79 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex3_26.sce | clear
//Given
E=200
a=0.05
e=8.854*10**-12
d=3.14
//Calculation
//
b=E*%pi*a**2
c=2*b
q=e*d
//Result
printf("\n (a) Net outward flux through each flat face is %0.2f Nm**2C-1",b)
printf("\n (b) Flux through the side of cylinder is zero ")
printf("\n (c) Net outward flux through the cylinder is %0.2f Nm**2C-1",c)
printf("\n (d) The net charge in the cylinder is %0.2f *10**-11 C",q*10**11)
|
7bbd3efbfa43721ce0f729afa8afd27ebaa1b30b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH7/EX7.15/Ex7_15.sce | d305ce310d948c8d4b4871e9d74b5785603f9cf5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 747 | sce | Ex7_15.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 7 Field Effect Transistors Pg no. 251 and 252
clear;
clc;
//Given Data
IDSS=20D-3;//drain saturation current in amperes
VGS0=6;//gate to source cutoff voltage in volts
VGS_1=3;//gate to source voltage in volts
VGS_2=-3;//gate to source voltage in volts
//Solution
ID_1=IDSS*(1-VGS_1/VGS0)^2;//drain current for VGS_1 in amperes
ID_2=IDSS*(1-VGS_2/VGS0)^2;//drain current for VGS_2 in amperes
printf("For VGS = %d Volts\nID = %d mA\n\n",VGS_1,ID_1*10^3);
printf("For VGS = %d Volts\nID = %d mA\n\n",VGS_2,ID_2*10^3);
if VGS0>0 then
printf("Since VGS0 is positive,this is an p-channel MOSFET");
else
printf("Since VGS0 is negative,this is an n-channel MOSFET");
end
|
e8d14843dcc7f23c65b1120257e1067a74bd685b | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfas_nv_hrz_col/~BivLCM-SR-bfas_nv_hrz_col-PLin-VLin.tst | 76ae7123f7f819af6af5d0fc0a7c91b14e112592 | [] | no_license | psdlab/life-in-time-values-and-personality | 35fbf5bbe4edd54b429a934caf289fbb0edfefee | 7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e | refs/heads/master | 2020-03-24T22:08:27.964205 | 2019-03-04T17:03:26 | 2019-03-04T17:03:26 | 143,070,821 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,974 | tst | ~BivLCM-SR-bfas_nv_hrz_col-PLin-VLin.tst |
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM.
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.481961D+00
2 -0.661839D-02 0.401459D-02
3 -0.120540D+00 0.270829D-02 0.278793D+00
4 0.286056D-02 -0.841578D-03 -0.574509D-02 0.205267D-02
5 -0.183339D-02 0.141124D-03 -0.220836D-02 0.101952D-03 0.250070D-02
6 -0.987698D-03 0.184983D-03 -0.402884D-03 0.191343D-04 0.499493D-04
7 -0.784762D-03 0.826299D-04 0.153415D-02 -0.813791D-04 -0.343142D-03
8 -0.202932D-02 -0.758575D-04 0.193820D-02 -0.201118D-04 0.752357D-04
9 -0.337875D+00 0.484833D-02 0.589072D+00 -0.112100D-02 0.115763D+00
10 0.130321D+00 0.414651D-02 -0.159069D+00 0.125808D-01 0.134317D+00
11 0.770782D-01 0.296084D-01 -0.315855D-01 0.281132D-02 -0.128089D-01
12 0.795875D+00 -0.261044D-01 -0.641027D+00 0.252636D-01 0.258136D-01
13 -0.134966D+00 0.134877D-01 0.320519D-01 -0.515446D-02 -0.926860D-02
14 0.159255D+00 -0.563569D-02 -0.309612D+00 0.141927D-01 -0.560055D-02
15 0.942002D+00 -0.319473D-02 0.625992D-01 0.827627D-02 -0.214412D+00
16 0.444264D-01 0.610589D-02 0.101855D-01 -0.160697D-02 -0.316007D-02
17 0.314579D-02 0.109338D-02 -0.319157D-02 -0.218237D-03 0.334766D-03
18 -0.297923D+00 -0.105736D-01 0.115268D+01 -0.383650D-01 -0.287647D-01
19 -0.116560D+00 -0.333532D-02 -0.152934D-01 0.202728D-02 -0.816210D-02
20 0.112062D+01 -0.375681D-01 -0.262711D+01 0.681458D-01 0.240535D-01
21 0.106597D+00 0.250617D-02 0.821917D-02 0.379615D-02 0.529678D-02
22 0.116312D-02 -0.262286D-03 -0.142883D-02 0.371261D-03 0.407090D-03
23 -0.222141D-03 0.226764D-02 0.411477D-01 -0.831276D-02 -0.101448D-02
24 -0.231865D-02 0.367450D-03 0.162716D-02 0.624851D-04 -0.572198D-04
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 0.168714D-02
7 0.593391D-03 0.136496D-02
8 -0.426588D-03 0.737512D-04 0.276715D-02
9 0.282543D-01 0.516571D-02 0.200255D-01 0.154846D+03
10 0.131342D-03 -0.215097D-01 0.104535D-01 0.820460D+01 0.307203D+02
11 0.493288D-01 0.394894D-01 -0.184331D-01 -0.141212D+02 -0.431836D+00
12 -0.532195D-01 -0.168782D-01 -0.155108D-01 0.172969D+02 0.332510D+01
13 0.624040D-01 0.671362D-01 -0.213202D-01 -0.497024D+00 -0.326885D+01
14 -0.245519D-01 -0.709797D-02 0.103359D+00 0.443742D+01 0.187482D+01
15 0.377530D-01 0.317286D-01 -0.428631D-01 -0.246128D+02 -0.293461D+02
16 -0.462347D-03 0.612541D-03 0.424598D-03 0.224740D+01 -0.546368D+00
17 -0.236461D-03 -0.134985D-03 0.149285D-03 -0.371919D+00 0.636069D-01
18 -0.108082D+00 -0.333262D-01 0.106682D+00 0.388410D+01 0.106122D+01
19 -0.178515D-01 0.149014D-01 0.108133D-01 0.104192D+01 -0.626970D+00
20 0.557352D-01 -0.351124D-01 -0.218586D+00 -0.320172D+01 0.408805D+01
21 0.133572D-01 -0.139170D-01 -0.883224D-02 -0.165831D+01 0.188997D+00
22 0.347542D-03 -0.326398D-03 -0.408812D-03 0.250107D-01 0.511801D-01
23 -0.906657D-03 0.130683D-02 -0.479370D-02 0.729843D+00 -0.193400D+00
24 0.129819D-03 0.980670D-04 0.809956D-03 -0.106730D+00 -0.883557D-02
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 0.508286D+02
12 -0.676646D+01 0.121904D+03
13 0.165178D+01 -0.145923D+01 0.130921D+02
14 -0.141993D+01 0.200511D+01 -0.294640D+01 0.264868D+02
15 -0.141855D+01 -0.486356D+01 0.595959D+00 -0.653500D+01 0.596057D+03
16 -0.396251D+00 0.553771D+00 0.832882D-01 -0.135397D+00 0.546471D+01
17 0.754605D-01 -0.971101D-01 -0.485283D-02 0.486590D-01 -0.289588D+01
18 -0.341575D+01 -0.298847D+01 -0.559416D+01 0.531215D+01 -0.141635D+03
19 0.118086D+01 -0.242345D+01 0.918508D+00 0.188241D+01 -0.321887D+01
20 0.182344D+01 -0.156218D+02 0.237501D+01 -0.146870D+02 0.587768D+02
21 -0.436766D-01 0.190672D+01 -0.103152D+01 -0.162405D+01 0.342151D+01
22 -0.118905D+00 0.340973D-01 -0.631542D-02 -0.316251D-01 0.628547D+00
23 -0.194778D+00 0.890300D+00 0.222051D+00 -0.343406D+00 -0.468265D+00
24 0.367052D-01 -0.124997D+00 -0.119644D-01 0.641204D-01 -0.247970D+00
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 0.775297D+00
17 -0.682595D-01 0.289890D-01
18 -0.517251D+00 0.730280D+00 0.238057D+03
19 -0.815852D-01 0.197711D-01 0.399451D+01 0.548813D+01
20 -0.494711D+00 -0.294381D+00 -0.118225D+03 -0.173690D+01 0.241224D+03
21 -0.279058D+00 0.705721D-02 -0.201590D+01 -0.464181D+01 0.171196D+01
22 0.138466D-01 -0.731629D-02 -0.110240D+01 -0.627944D-01 0.499978D+00
23 0.120589D+00 -0.663208D-02 0.263917D+00 -0.592751D-01 0.823187D+00
24 -0.495102D-02 0.433905D-02 0.428162D+00 0.130365D-01 -0.912550D+00
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 0.554577D+01
22 -0.760020D-02 0.136903D-01
23 -0.311730D+00 0.914330D-02 0.566857D+00
24 0.801131D-02 -0.538737D-02 -0.533014D-01 0.120915D-01
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 1.000
2 -0.150 1.000
3 -0.329 0.081 1.000
4 0.091 -0.293 -0.240 1.000
5 -0.053 0.045 -0.084 0.045 1.000
6 -0.035 0.071 -0.019 0.010 0.024
7 -0.031 0.035 0.079 -0.049 -0.186
8 -0.056 -0.023 0.070 -0.008 0.029
9 -0.039 0.006 0.090 -0.002 0.186
10 0.034 0.012 -0.054 0.050 0.485
11 0.016 0.066 -0.008 0.009 -0.036
12 0.104 -0.037 -0.110 0.051 0.047
13 -0.054 0.059 0.017 -0.031 -0.051
14 0.045 -0.017 -0.114 0.061 -0.022
15 0.056 -0.002 0.005 0.007 -0.176
16 0.073 0.109 0.022 -0.040 -0.072
17 0.027 0.101 -0.036 -0.028 0.039
18 -0.028 -0.011 0.141 -0.055 -0.037
19 -0.072 -0.022 -0.012 0.019 -0.070
20 0.104 -0.038 -0.320 0.097 0.031
21 0.065 0.017 0.007 0.036 0.045
22 0.014 -0.035 -0.023 0.070 0.070
23 0.000 0.048 0.104 -0.244 -0.027
24 -0.030 0.053 0.028 0.013 -0.010
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 1.000
7 0.391 1.000
8 -0.197 0.038 1.000
9 0.055 0.011 0.031 1.000
10 0.001 -0.105 0.036 0.119 1.000
11 0.168 0.150 -0.049 -0.159 -0.011
12 -0.117 -0.041 -0.027 0.126 0.054
13 0.420 0.502 -0.112 -0.011 -0.163
14 -0.116 -0.037 0.382 0.069 0.066
15 0.038 0.035 -0.033 -0.081 -0.217
16 -0.013 0.019 0.009 0.205 -0.112
17 -0.034 -0.021 0.017 -0.176 0.067
18 -0.171 -0.058 0.131 0.020 0.012
19 -0.186 0.172 0.088 0.036 -0.048
20 0.087 -0.061 -0.268 -0.017 0.047
21 0.138 -0.160 -0.071 -0.057 0.014
22 0.072 -0.076 -0.066 0.017 0.079
23 -0.029 0.047 -0.121 0.078 -0.046
24 0.029 0.024 0.140 -0.078 -0.014
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 1.000
12 -0.086 1.000
13 0.064 -0.037 1.000
14 -0.039 0.035 -0.158 1.000
15 -0.008 -0.018 0.007 -0.052 1.000
16 -0.063 0.057 0.026 -0.030 0.254
17 0.062 -0.052 -0.008 0.056 -0.697
18 -0.031 -0.018 -0.100 0.067 -0.376
19 0.071 -0.094 0.108 0.156 -0.056
20 0.016 -0.091 0.042 -0.184 0.155
21 -0.003 0.073 -0.121 -0.134 0.060
22 -0.143 0.026 -0.015 -0.053 0.220
23 -0.036 0.107 0.082 -0.089 -0.025
24 0.047 -0.103 -0.030 0.113 -0.092
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 1.000
17 -0.455 1.000
18 -0.038 0.278 1.000
19 -0.040 0.050 0.111 1.000
20 -0.036 -0.111 -0.493 -0.048 1.000
21 -0.135 0.018 -0.055 -0.841 0.047
22 0.134 -0.367 -0.611 -0.229 0.275
23 0.182 -0.052 0.023 -0.034 0.070
24 -0.051 0.232 0.252 0.051 -0.534
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 1.000
22 -0.028 1.000
23 -0.176 0.104 1.000
24 0.031 -0.419 -0.644 1.000
|
03366c8a37d11104c881654eb906812e29a1f11a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH8/EX8.3/EX8_3.sce | 0a67bd9aa76590f4ebc7c9283dab24bc2ac4985c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 576 | sce | EX8_3.sce | L=0.015; //INDUCTANCE
C=0.5*10^-6; //CAPACITOR
Z=200;
Fc=1/(4*%pi*(L*C)^0.5);
Z0=(L/C)^0.5;
Z2=(%i*2)*%pi*Z*L;
Z1=1/(%i*2*%pi*Z*C);
F1=2000;
Z01=[(Z1*Z2)/(1+(Z1/(4*Z2)))]^0.5;
A=8.147;
disp('ii) Impedance (ZO) is = '+string ([Z0]) +' W ');
disp('ii) FREQUENCY is = '+string ([Fc]) +' HZ ');
disp('ii) Impedance(Z1) is = '+string ([Z1]) +' W ');
disp('ii) Impedance(Z2) is = '+string ([Z2]) +' W ');
disp('ii) Impedance(Z01) is = '+string ([Z01]) +' W ');
disp('ii) ALPHA is = '+string ([A]) +' ');
|
e095df3494f22f65a078df7edd98a57f06edb7fa | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH5/EX5.7/Example5_7.sce | 43e712f9db6daeddab10c7361118995aef00548a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 445 | sce | Example5_7.sce | exec("degree_rad.sci", -1)
//Given that
m = 15 //in kg
g = 9.8 //in m/s^2
T = m* g* sin(dtor(27))
N = m* g* cos(dtor(27))
//Sample Problem 5-7a
printf("**Sample Problem 5-7a**\n")
printf("The tension in the chord is %f N\n", T)
printf("The Normal force is %f N\n", N)
//Sample Problem 5-7b
printf("\n**Sample Problem 5-7b**\n")
a = g * sin(dtor(27))
printf("The acceleration of block after cutting the chord is %f m/s^2", a) |
9e7ce202941c6e30e9a7fcc49dfb35dd1939083b | 449d555969bfd7befe906877abab098c6e63a0e8 | /704/CH2/EX2.14/ex2_14.sce | 80a2d0cac84a01bb37c2127df983dc2811a5b350 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 760 | sce | ex2_14.sce | //Caption:Calculate the drop in speed when motor takes 51 Amp
//Exam2.13
clc;
clear;
close;
V=220;//supply voltage(in V)
R_sh=220;//shunt field resistance(in Ohm)
R_a=0.2;//armature resistance(in Ohm)
I_sh=V/R_sh;//shunt field current(in Amp)
N_1=1200;//starting speed of the motor(in rpm)
I_1=5.4;//at N_1 speed current in motor(in Amp)
I_a1=I_1-I_sh;//armature current at speed N_1(in Amp)
E_b1=V-I_a1*R_a;//emf induced due to I_a1(in V)
I_2=51;//new current which motor taking(in Amp)
I_a2=I_2-I_sh;//armature current at I_2(in Amp)
E_b2=V-I_a2*R_a;//emf induced due to I_a2(in V)
N_2=E_b2*N_1/E_b1;//speed of the motor when taking I_2 current(in rpm)
N_r=ceil(N_1-N_2);//reduction in speed(in rpm)
disp(N_r,'reduction in speed(in rpm)='); |
917403b256d15213c2846b06f2f44ec883df14a5 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/gaussdesign/gaussdesign7.sce | b442d12d8822df2ecbac5e940c5334e72c25952b | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 262 | sce | gaussdesign7.sce | bt = 0.3;
span = 4;
sps = 8;
h = gaussdesign(bt);
disp(h);
//output
// column 1 to 3
//
// 0.0014136 0.0348089 0.2379628
//
// column 4 to 6
//
// 0.4516294 0.2379628 0.0348089
//
// column 7
//
// 0.0014136
//
|
bb2eea44ea3cd086a20706d747b67478a7dff178 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2183/CH4/EX4.9.b/Ex_4_9_b.sce | 85fd6a15e27889c2b287abe43eb9dd34e9722148 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 370 | sce | Ex_4_9_b.sce | // Example 4.9.b;//Pulse broadning due to intermodal dispersion
clc;
clear;
close;
d=0.01;// Change in refractive index
n1=1.5;//Core refrctive index
L=6*10^3;//Length in meter
C=2.998*10^8;//Speed of light in m/s
Ss=(L*n1*d)/(2*sqrt(3)*C)*10^9;//Pulse broadning due to intermodal dispersion in ns
disp(Ss,"Pulse broadning due to intermodal dispersion in ns")
|
34e163aee1f8359279f958da69eda026f3c6aea2 | 6d1f05d2074f1d6f18d3d473f2dbd867c94fc7ee | /giarratano/SOURCE/TESTING/mfvmatch.tst | dc50e4042e30a1c0b95a48ce3be876902aa49352 | [] | no_license | arranger1044/icse-1516 | c40d2c86892cd90c14042a95581cbb0e238190fb | ee4bafb57bb549ef40e29b8edf8cdad038e97162 | refs/heads/master | 2020-12-24T19:04:01.588095 | 2016-05-31T07:46:47 | 2016-05-31T07:46:47 | 56,578,768 | 14 | 5 | null | null | null | null | UTF-8 | Scilab | false | false | 360 | tst | mfvmatch.tst | (set-strategy depth)
(unwatch all)
; mfvmatch.clp test
(clear)
(load "mfvmatch.clp")
(progn (dribble-on "mfvmatch.out") (reset) (run) (dribble-off))
(load compline.clp)
(open "mfvmatch.rsl" mfvmatch "w")
(printout mfvmatch "mfvmatch.clp differences are as follows:" crlf)
(compare-files mfvmatch.exp mfvmatch.out mfvmatch)
; close result file
(close mfvmatch)
|
5e9d8018dcf496e794a1643c195807bc19a0a90f | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/DEPENDENCIES/8_4_4.sci | 166fefd315083cc3a86e5422ddf10e20340ae035 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 55 | sci | 8_4_4.sci | basis=1 //mol feed
x=0.684 //mole fraction Of B
y=0.4 |
490f10f2e2a852da58f97e21bb2146c11ec29557 | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH12/EX12.2/c12_2.sce | 1ca5f6411d8e13045a983cd4335686f4079fe67d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,625 | sce | c12_2.sce | //(12.2) A gas mixture has the following composition in terms of mass fractions: H2, 0.10; N2, 0.60; CO2, 0.30. Determine (a) the composition in terms of mole fractions and (b) the apparent molecular weight of the mixture.
//solution
//variable initialization
mf1 = .1 //mass fractiion of H2
mf2 = .6 //mass fraction of N2
mf3 = .3 //mass fraction of CO2
//part(a)
M1 = 2 //molar mass of H2 in kg/kmol
M2 = 28 //molar mass of N2 in kg/kmol
M3 = 44 //molar mass of CO2 in kg/kmol
n1 = (mf1/M1)/(mf1/M1 + mf2/M2 + mf3/M3) //mole fraction of H2
n2 = (mf2/M2)/(mf1/M1 + mf2/M2 + mf3/M3) //mole fraction of N2
n3 = (mf3/M3)/(mf1/M1 + mf2/M2 + mf3/M3) //mole fraction of CO2
printf('the mole fraction of H2 in percentage is: %f',n1*100)
printf('\nthe mole fraction of N2 in percentage is: %f',n2*100)
printf('\nthe mole fraction of CO2 in percentage is: %f',n3*100)
//part(b)
M = n1*M1 + n2*M2 + n3*M3 //in kg/kmol
printf('\n\nthe apparent molecular weight of the mixture in kg/kmol is: %f',M) |
186fed56bde1b0937ef1c991565dce715c131e9a | 24fb1e72f2244733455f40fda1ae95423110e82a | /samp1.sce | dbe682bade5f5a92dabafe953b6bef8ae7f57576 | [] | no_license | Aie-Aie/scilab | a4cbed5b58134009de1c084950a45da1e2b6f2db | 616568e7589f61dcda425410fbedc943b238f11b | refs/heads/master | 2021-09-11T20:42:55.522610 | 2018-04-12T05:29:52 | 2018-04-12T05:29:52 | 106,638,444 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 353 | sce | samp1.sce | disp("Array of a")
a=[1, 2, 3;
4, 5, 6;
7, 8, 9]
disp(a)
disp("Array of z")
z=a^2
disp(z)
disp("Array of az in column")
azc=[a;z]
disp(azc)
disp("Array of az in column")
azr=[a,z]
disp(azr)
disp("Array of az with 2 rows")
az1=[a; z(1:2,1:3)]
disp(az1)
disp("Array of az with rows and columns")
az2=[a(1:2,1:2), z(1:2,1:2)]
disp(az2)
|
c400c593135056cd1a4a33d46bcbf34a79435ab4 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/modulo.man.tst | 31b57fc0ea84cbd72b109c331b01d92976a3494d | [
"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 | 55 | tst | modulo.man.tst | clear;lines(0);
n=[1,2,10,15];m=[2,2,3,5];
modulo(n,m)
|
2d1dbbabc8fa8e7d330abd75876b8a7709a76c9d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1217/CH8/EX8.1/Exa8_1.sce | c96d0c55bad417bab2fe475072348cf238e10c16 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 358 | sce | Exa8_1.sce | // Exa 8.1
clc;
clear;
close;
// given data
disp("We have : ");
disp("Io1=gm1*V1");
disp("Io2=-gm2*Vo");
disp("I=Io1+Io2=gm1*V1-gm2*Vo");
disp("We also have : I=(Vo-V1)*s*C");
disp("From above two eqn :");
disp("gm1*V1-gm2*Vo=(Vo-V1)*s*C");
disp("Arranging terms to get Vo/V1 we have : ");
disp("Transfer Function : V0/V1=(gm1+s*C)/(gm2+s*C)"); |
723f96af5431a65d2a21891f542b8db745d306ff | 59b742e36fbe9d77cb51ec949c6625f665133d2b | /Resultados/results_LocGlo_12/results/12/lvar-2/result4s0.tst | 72d71abd0c42a2bc2416df77a058b15a70a609c3 | [] | no_license | Tiburtzio/TFG | 3132fd045de3a0e911e2c9e23e9c46e1075a3274 | 864ce4dd00b7f8fe90eafa65b11d799c5907177e | refs/heads/master | 2023-01-03T12:44:56.269655 | 2020-10-24T18:37:02 | 2020-10-24T18:37:02 | 275,638,403 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,539 | tst | result4s0.tst | @relation unknow
@attribute at1 real[0.0,100.0]
@attribute at2 real[0.0,100.0]
@attribute at3 real[0.0,100.0]
@attribute at4 real[0.0,100.0]
@attribute at5 real[0.0,100.0]
@attribute at6 real[0.0,100.0]
@attribute at7 real[0.0,100.0]
@attribute at8 real[0.0,100.0]
@attribute at9 real[0.0,100.0]
@attribute at10 real[0.0,100.0]
@attribute at11 real[0.0,100.0]
@attribute at12 real[0.0,100.0]
@attribute at13 real[0.0,100.0]
@attribute at14 real[0.0,100.0]
@attribute at15 real[0.0,100.0]
@attribute at16 real[0.0,100.0]
@attribute class{0,1,2,3,4,5,6,7,8,9}
@inputs at1,at2,at3,at4,at5,at6,at7,at8,at9,at10,at11,at12,at13,at14,at15,at16
@outputs class
@data
8 8
6 6
1 1
6 6
1 1
8 8
6 6
0 0
2 2
7 7
6 6
1 1
3 3
2 2
8 8
9 9
7 7
6 6
0 0
4 4
2 2
0 0
1 1
5 5
1 1
6 6
3 3
1 1
6 6
0 0
4 4
4 4
2 2
0 3
9 9
8 8
2 2
1 8
9 9
0 0
1 1
2 2
9 9
3 3
8 8
1 1
4 4
5 5
5 5
5 5
3 7
9 9
7 7
0 0
8 8
5 5
9 9
7 7
9 9
0 0
8 8
5 5
7 5
9 9
2 2
1 1
9 9
9 9
2 2
5 5
4 4
2 2
7 7
3 3
0 0
7 7
0 0
1 1
7 7
4 4
5 5
1 1
8 8
0 0
2 2
4 4
6 6
8 8
1 5
6 6
7 7
2 2
7 7
3 3
2 2
8 8
1 1
2 2
8 8
6 6
2 7
2 2
8 8
7 7
5 5
5 5
9 9
0 0
5 5
1 2
4 4
7 7
0 0
3 3
6 6
1 1
3 3
7 7
6 6
8 8
4 4
1 2
5 5
5 3
8 8
0 0
7 7
4 4
7 7
0 0
5 3
1 1
3 3
9 9
8 8
0 0
7 7
9 9
2 2
6 6
6 8
4 4
3 3
7 7
2 7
7 7
5 5
8 8
5 5
9 9
3 3
6 6
0 0
3 3
5 5
9 9
9 9
4 4
3 3
8 8
4 4
9 3
8 8
2 2
0 0
6 6
6 6
9 9
7 7
2 2
8 8
1 1
8 8
5 5
7 4
4 4
2 2
6 6
0 0
4 4
1 1
1 1
9 9
5 5
3 3
4 4
1 1
0 0
7 7
0 0
3 3
5 5
6 6
4 4
9 9
3 3
0 0
0 0
3 3
3 3
8 8
4 4
2 2
3 3
2 2
5 5
4 4
7 7
3 3
9 9
4 4
6 6
9 9
6 6
2 2
4 4
3 3
4 4
7 7
4 4
|
54cc25785c99aaf2a30afd3efd67d7980e927002 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH22/EX22.2/Ex22_2.sce | 940759f0d8b41ddb4d97234471d39d00ac698a79 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 407 | sce | Ex22_2.sce | clc
// Given that
lambda = 2.63e-5 // Mean free path of the molecules of the gas in m
t = 25 // Temperature in degree centigrade
r = 2.56e-10 // Radius of the molecules in m
printf("\n Example 22.2 \n")
sigma = 4*%pi*r^2
n = 0.707/(sigma*lambda)
p = n*(t+273)*(1.38*10^-23)
N = 1/lambda
printf("\n Pressure of the gas = %f Pa,\n No of collisions made by a molecule per meter of path = %e",p,N)
|
ec121e28f84d2a1ee63e4a16d64975732e269510 | 1573c4954e822b3538692bce853eb35e55f1bb3b | /DSP Functions/zpkbpc2bpc/test_2.sce | 64aa3f64c7f6d4d1110e3df80c78fb0fc66fb535 | [] | no_license | shreniknambiar/FOSSEE-DSP-Toolbox | 1f498499c1bb18b626b77ff037905e51eee9b601 | aec8e1cea8d49e75686743bb5b7d814d3ca38801 | refs/heads/master | 2020-12-10T03:28:37.484363 | 2017-06-27T17:47:15 | 2017-06-27T17:47:15 | 95,582,974 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 174 | sce | test_2.sce | // Test # 2 : Excess Input Arguments
exec('./zpkbpc2bpc.sci',-1);
[z,p,k,n,d]=zpkbpc2bpc(0.3,0.2,0.7,[0.5,0.6],[0.4,0.8],12);
//!--error 58
//Wrong number of input arguments
|
8c3473f70b0249e15c037cf5bf4cce631345bd9a | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH6/EX6.6/example6_6.sce | 076ec1bc59893a365c69711e1e8c9130fa9b3727 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 725 | sce | example6_6.sce | //clc()
Pswater1 = 6.08;//kPa
T1 = 313;//K
//lnPs = 16.26205 - 3799.887/(T - 46.854)
Tb1 =3799.887/(16.26205 - log(Pswater1)) + 46.854;
disp("K",Tb1,"boiling point of water at 6.08kPa vapour pressure = ")
Pswater2 = 39.33;//kPa
T2 = 353;//K
Tb2 =3799.887/(16.26205 - log(Pswater2)) + 46.854;
disp("K",Tb2,"boiling point of water at 39.33 kPa vapour pressure = ")
Tb = [Tb1 Tb2];
T = [T1 T2];
plot(T,Tb);
xtitle('Equal pressure reference plot for sulphuric acid','Boiling point of solution,K','Boiling point of water, K');
T3 = 333;//K
//corresponding to T3 on x axis, on y we get
Tb3 = 329;//K
Pswater3 = exp(16.26205 - 3799.887/(Tb3 - 46.854));
disp("kPa",Pswater3,"Vapour pressure of solution at 333K")
|
f2a67788db4d98dfa0c70e752964fadbc36ac799 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1967/CH4/EX4.6/4_6.sce | 47b75a91228a7747457c924c57d4f7d003998c40 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 527 | sce | 4_6.sce | clc
//initialisation of variables
clear
k1= 6.45//cal deg^-1 mol^-1
k2= 1.41*10^-3 //cal deg^-2 mol^-1
k3= -0.81*10^-7 //cal deg^-3 mol^-1
T= 300 //K
k4= -0.21*1.36 //cal deg^-3 mol^-1 atm^-1
k5= 6.87*1.5//cal deg^-3 mol^-1 atm^-2
p= 10^-3
//CALCULATIONS
Cp= k1+k2*T+k3*T^2
dCp= k2+2*k3*T
dCp1= k4*p+k5*p
//RESULTS
printf ('Cp = %.2f cal deg^-1 mole^-1',Cp)
printf ('\n Specific heat at temperature = %.2e cal deg^-2 mole^-1',dCp)
printf ('\n Specific heat at pressure = %.2e cal deg^-2 mole^-1 atm^-1',dCp1)
|
eefba67d7b6f7025ee0a437b8daab8d54eaa44b3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1092/CH14/EX14.12/Example14_12.sce | b66edc909a1a209ac02aae555ac809ff84f02d27 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,804 | sce | Example14_12.sce | // Electric Machinery and Transformers
// Irving L kosow
// Prentice Hall of India
// 2nd editiom
// Chapter 14: TRANSFORMERS
// Example 14-12
clear; clc; close; // Clear the work space and console.
// Given data(from Example 14-11)
V_1 = 2300 ; // Primary voltage in volt
V_2 = 230 ; // Secondary voltage in volt
I_2 = 2174 ; // Secondary current in A
I_1 = 217.4 ; // Primary current in A
// calculated values from Example 14-11
Z_2 = 0.00316 ; // Secondary internal impedance in ohm
Z_1 = 0.316 ; // Primary internal impedance in ohm
// Calculations
alpha = V_1 / V_2 ; // Transformation ratio
// case a
Z_L = V_2 / I_2 ; // Load impedance in ohm
// case b
Z_p = V_1 / I_1 ; // Primary input impedance in ohm
Zp = (alpha)^2 * Z_L ; // Primary input impedance in ohm
// Display the results
disp("Example 14-12 Solution : ");
printf(" \n a: Load impedance :\n Z_L = %.4f ohm \n ", Z_L );
printf(" \n b: Primary input impedance : ");
printf(" \n (method 1) :\n Z_p = %.2f ohm \n ",Z_p );
printf(" \n (method 2) :\n Z_p = %.2f ohm \n ",Zp );
printf(" \n c: The impedance of the load Z_L = %.4f Ω, which is much greater",Z_L);
printf(" \n than the internal secondary impedance Z_2 = %.5f Ω .\n ",Z_2);
printf(" \n The primary input impedance Z_p = %.2f Ω,which is much greater",Z_p);
printf(" \n than the internal primary impedance Z_1 = %.3f Ω .\n",Z_1);
printf(" \n d: It is essential for Z_L to be much greater than Z_2 so that the ");
printf(" \n major part of the voltage produced by E_2 is dropped across the ");
printf(" \n load impedance Z_L. As Z_L is reduced in proportion to Z_2, the ");
printf(" \n load current increases and more voltage is dropped internally ");
printf(" \n across Z_2.");
|
8c3017831f7122b64eb4b2e61242c391de345072 | eb7eeb04a23a477e06f3c0e3d099889caee468b4 | /src/examples/scilab/scilab_wave_ws/submitsaastest1.sce | 5e93e7e7c816d9d1c79a854d247f0db69d156021 | [] | no_license | mikeg64/iome | 55699b7d7b3d5c1b006d9c82efe5136b8c909dfd | cc1c94433133e32776dcf16704ec4ec337b1b4a0 | refs/heads/master | 2020-03-30T15:57:33.056341 | 2016-04-13T09:24:27 | 2016-04-13T09:24:27 | 151,387,236 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 769 | sce | submitsaastest1.sce | //this is the standalone version for submitting work to a saas
tdp=getenv('SCILAB_HOME')+'/share/scilab/contrib/iome_toolbox/loader.sce';
exec(tdp);
//this application is started using the io start scilab application
exec('paramssaastest1.sce');
//stacksize('max');
//stacksize(268435454);
elistremote=iome('localhost',8080,0);
simfile=metadata.name+'.xml';
simfileout=metadata.name+'_out.xml';
newsimulation(metadata.name,'test1.xsl',elist);
createsim(param1,params2,metadata,elist);
//[consts,domain,source]=loadsim('test1_16_02_09.xml',elist);
//chdir(metadata.directory);
writesimulation(simfile,elist);
//runsim(consts,domain,source,metadata,simfile,elist);
submitsimulation(simfile,elistremote);
//WriteSimulation(simfile,elist);
//chdir('..');
//exit();
|
7b0fd41b003f2928de69598a45cac0279036a7a6 | e28bd20fb430c3bdacde74d5950991850ae0ca5e | /codes/dm2_nddl.sce | 46e10f724ad12aa9f43f0e29c3c2466e12efcfda | [] | no_license | JohnMada/dm2vibration | 7b19094335f5465a19b165fbcf76a05b63bd17da | ae69057a0a02ae5d34056e64122ff9f2484f7b86 | refs/heads/master | 2021-01-13T03:13:17.354990 | 2017-01-09T02:38:11 | 2017-01-09T02:38:11 | 77,625,158 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,498 | sce | dm2_nddl.sce | // DM2 vibrations
// Programme principal
// Yedhir MEZACHE
// Jonathan RAVAHIMANANA
// Hasinantenaina RAZAFIMAHALEO
clear;
clc;
exec("dm2_nddl.sci",-1);
xdel(winsid());
//Donnees du probleme
// Poutre
rho = 5000; // kg/m3
L = 1; // m longueur
h = .05; // m hauteur de section
b = .05; // m base de section
E = 2e11; // N/m2 module d'Young de la poutre
I = b*h^3; // m4 moment d'inertie de section
EI = E*I;
S = b*h; // m2 surface de section
// Sollicitation
w = 5000; // 2*pi/s pulsation de l'excitation
// Disque
m = 20; // kg masse du disque
R = 0.15; // m rayon du disque
Iz = m*R^2; // moment d'inertie du disque autour de z
// Approximation
/// 2ddl
//
/// nddl
ne = 8; // Nombre d'elements. Doit etre pair pour prendre en compte le fait qu'il y a un disque au milieu
ndisque = ne/2; // Numero de l element qui porte le disque
dx = L/ne;
[K,M] = assemblage(ne); // Matrices elementaires
c1 = .1; c2 = .5
C = c1*K + c2*M; // Matrice d'amortissement visqueux,frottement proportionnel
// Analyse modale
[al, be, V] = spec(K,M); // val. propres generalisees
V = real(V); // Etrangement, scilab considere ces vecteurs comme complexe meme si leur parties imaginaires sont toutes nulles
ki = vmodales(V, K); // vecteur des raideurs modales
ci = vmodales(V, C); // vecteur des amortissements modaux
mi = vmodales(V, M); // masses modales
wi = sqrt(ki./mi); // pulsations modales
B = eigenvscale(mi, V); // vecteurs propres divises par les masses modales associee a leur modes respectifs
// On peut verifier que Bt*M*B = matrice identite
// RVF
dt = .1;
t = 0:dt:5; // duree de l'excitation
// Deformees
X = linspace(0, L, 100*ne+1); // intervalle [0,L]
// Deformee du mode 1
v1 = defmodale(X, B(:,$));
v2 = defmodale(X, B(:,$-1));
v3 = defmodale(X, B(:,$-2));
v4 = defmodale(X, B(:,$-3));
v5 = defmodale(X, B(:,$-4));
// Traces de ces modes
// fonctions de base
b1 = []; b2 = [], b3 = [], b4 = [];
x = [];
for i=1:ne
b1 = [b1,base(X, ne, i, n1)];
end
for i=1:ne
b3 = [b3, base(X, ne, i, n2)];
end
for i=1:ne
b2 = [b2,base(X, ne, i, h1)];
end
for i=1:ne
b4 = [b4,base(X, ne, i, h2)];
x = [x, linspace((i-1)*dx,(i-1)*dx + dx,length(base(X, ne, i, h2)))]
end
figure("figure_name","bases",'BackgroundColor',[1,1,1])
plot(x,b1, x,b2, x,b3, x,b4)
figure('figure_name','modes symétriques','BackgroundColor',[1,1,1])
title('Déformées modales, modes symétriques');
plot(X, v1, X, v3, X, v5);
txtlegs = [
'mode 1, w = '+string(wi($))+' rad/s',
'mode 3, w = '+string(wi($-2))+' rad/s',
'mode 5, w = '+string(wi($-4))+' rad/s'
];
legend(txtlegs);
xsave("results/deformees_sym.png");
figure('figure_name','modes anti-symétriques','BackgroundColor',[1,1,1])
title('Déformées modales, modes anti-symétrique');
plot(X, v2, X, v4);
txtlegas = [
'mode 2, w = '+string(wi($-1))+' rad/s',
'mode 4, w = '+string(wi($-3))+' rad/s'
];
legend(txtlegas);
xsave("results/deformees_asym.png");
// Vibration forcee
// Resolution numerique par une methode iterative
w = 1510; // pulsation forcee
f0 = 2000; // N amplitude maximale de la force
F = sollicit(f0, ne);
Fp = reform(F,ne);
q = repmodale(w, wi, ci, Fp, t);
v = B*q;
cnp = diag(B'*C*B); // amortissements modales normalises au sens de la masse
dnp = diag(B'*K*B); // pulsation modales carrees normalisees au sens de la masse
//t = 0:0.1:5; // duree de simulation
//V0 = zeros(length(cnp),1); // La poutre n'est pas deformee au debut de la sollicitation
//Q0 = reform(V0, ne);
//
//A = matiter(cnp, dnp, ne);
//Q = rvf(cnp, dnp, Q0, w, Fp, ne, t);
//V = B*Q(1:2:$,:);
figure("figure_name","reponse forcee",'BackgroundColor',[1,1,1])
plot(t,v(ndisque-1,:), t, v(ndisque,:)); // amplitude de deplacement du disque
title("Déplacement vertical du disque au cours du temps, w = '+string(w)+' rad/s')
xlabel('t [s]')
ylabel('v(x'+string(ndisque - 1) + ',t) [m], theta(x'+string(ndisque-1) + ',t) [rad]')
legend('translation','rotation')
temps = [10, 25, 35, 50]; // *dx
couleur = ['k' 'b' 'r' '--'];
legende = []
figure("figure_name","poutre",'BackgroundColor',[1,1,1])
for i = 1:length(temps)
ti = temps(i);
ci = couleur(i)
plot(X, defmodale(X, v(:,ti)), ci)
legende = [legende, 't = '+string(ti*dt)+' s'];
end
//plot(X, defmodale(X, v(:,10)), X, defmodale(X, v(:,25)), X, defmodale(X, v(:,50)))
title('Déformation de la poutre au cours du temps, w = '+string(w)+' rad/s')
xlabel('x [m]')
ylabel('v(x, t) [m]')
legend(legende)
// w = w2
Fp = inv(B)*F;
w = wi($-1)*0.85;
q = repmodale(w, wi, ci, Fp, t);
v = B*q; // retour dans l'espace physique
figure("figure_name","reponse forcee",'BackgroundColor',[1,1,1])
plot(t,v(ndisque-1,:), t, v(ndisque,:)); // amplitude de deplacement du disque
title("Réponse du disque au cours du temps, w = '+string(w)+' rad/s')
xlabel('t [s]')
ylabel('v(x'+string(ndisque - 1) + ',t) [m], theta(x'+string(ndisque-1) + ',t) [rad]')
legend('translation','rotation')
figure("figure_name","poutre",'BackgroundColor',[1,1,1])
for i = 1:length(temps)
ti = temps(i);
ci = couleur(i)
plot(X, defmodale(X, v(:,ti)), ci)
legende = [legende, 't = '+string(ti*dt)+' s'];
end
//plot(X, defmodale(X, v(:,10)), X, defmodale(X, v(:,25)), X, defmodale(X, v(:,50)))
title('Déformation de la poutre au cours du temps, w = '+string(w)+' rad/s')
xlabel('x [m]')
ylabel('v(x, t) [m]')
legend(legende)
|
a4fa667089a7826bc907b8199a9bf2409aa56555 | f8bb2d5287f73944d0ae4a8ddb85a18b420ce288 | /Scilab/example/2本のサイン波入力に対する応答.sce | 7f96735683f3b721805ae221baa9776c5367b7e4 | [] | no_license | nishizumi-lab/sample | 1a2eb3baf0139e9db99b0c515ac618eb2ed65ad2 | fcdf07eb6d5c9ad9c6f5ea539046c334afffe8d2 | refs/heads/master | 2023-08-22T15:52:04.998574 | 2023-08-20T04:09:08 | 2023-08-20T04:09:08 | 248,222,555 | 8 | 20 | null | 2023-02-02T09:03:50 | 2020-03-18T12:14:34 | C | SHIFT_JIS | Scilab | false | false | 352 | sce | 2本のサイン波入力に対する応答.sce | //2本のサイン波入力に対する応答
s=%s;
G=1/(1+0.5*s);
t=0:0.01:10;
u1=[3*sin(2*t)];
sys=syslin('c',G);
y1=csim(u1,t,sys);
xset("window",0);clf();plot2d(t',[u1',y1'])
u2=[4*sin(2*sqrt(3)*t)];
y2=csim(u2,t,sys);
xset("window",1);clf();plot2d(t',[u2',y2'])
u12=u1+u2;
y12=csim(u12,t,sys);;
xset("window",2);clf();plot2d(t',[y1',y2',y12'])
|
4887ed7a0374b4277555b3b590a783083f8fb267 | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH14/EX14.1/14_1.sce | 258c26c9b514fe34d3e7f2fcee689b42be3c8552 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 483 | sce | 14_1.sce | clear;
clc;
//Example - 14.1
//Page number - 455
printf("Example - 14.1 and Page number - 455\n\n");
//This problem involves proving a relation in which no mathematics and no calculations are involved.
//For prove refer to this example 14.1 on page number 455 of the book.
printf(" This problem involves proving a relation in which no mathematics and no calculations are involved.\n\n");
printf(" For prove refer to this example 14.1 on page number 455 of the book.")
|
3bbd17219a21239b6c8d8c2dbd3bb86a7406178d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3014/CH4/EX4.18/Ex4_18.sce | a894f4969d405d44124c529d248148aaac118037 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex4_18.sce |
clc
//Given that
t = 1.8e-5 // Relaxation time in second
epsilon_r = 1 // let
printf("Example 4.18")
f = 1/(2*%pi*t) // Calculation of frequency
delta = atan(epsilon_r/epsilon_r)
phi = 90 - delta*180/%pi // Calculation of phase difference
printf("\n Frequency is %f KHz\n",f/1e3)
printf(" Phase difference between current and voltage is %d degree.",phi)
|
7e37326443817e26a255df1cb948b83ee2fb9b6a | cbca9419e2164c69f2a10dca98f2dc139864cd90 | /opencores/uart2bus_latest/uart2bus/trunk/scilab/calc_baud_gen.sce | 7378718d79965cad297fe66b6ba76661049e0804 | [
"BSD-2-Clause"
] | permissive | jpmh1309/mp6134 | 59ccb6520bb530fdf01bb227f69565131a54d8d1 | 8c70cd690e5453eeae5dfb2e5d1b10ab743a3907 | refs/heads/master | 2023-01-15T17:29:17.481830 | 2020-11-26T01:02:09 | 2020-11-26T01:02:09 | 299,168,743 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,682 | sce | calc_baud_gen.sce | // a short script to calaculate the baud rate generation parameters for the
// UART to Bus core
mode(-1)
// define the GCD function since Scilab prefers to use a different function as gcd
function x = gcdn(a,b)
x = zeros(length(b),length(a));
for n=1:length(a),
for m=1:length(b),
x=a(n);
y=b(m);
while y~=0
r=modulo(x,y);
x=y;
y=r;
end
x(m,n) = x;
end
end
endfunction
// request the required clock rate and baud rate parameters
dig_labels = ["Clock Frequency in MHz"; "UART Baud Rate in bps"];
default_val = ["40"; "115200"];
params = evstr(x_mdialog("Enter Core Parameters", dig_labels, default_val));
// extract the parameters
global_clock_freq = params(1)*1e6;
baud_rate = params(2);
// calculate the baud rate generator parameters
D_BAUD_FREQ = 16*baud_rate / gcdn(global_clock_freq, 16*baud_rate);
D_BAUD_LIMIT = (global_clock_freq / gcdn(global_clock_freq, 16*baud_rate)) - D_BAUD_FREQ;
// print the values to the command window
printf("Calculated core baud rate generator parameters:\n");
printf(" D_BAUD_FREQ = 12''d%d\n", D_BAUD_FREQ);
printf(" D_BAUD_LIMIT = 16''d%d\n", D_BAUD_LIMIT);
// open a message with the calculated values
mes_str = ["Calculated core baud rate generator parameters:"; ...
" D_BAUD_FREQ = "+string(D_BAUD_FREQ); ...
" D_BAUD_LIMIT = "+string(D_BAUD_LIMIT); ...
""; ...
"The verilog definition can be copied from the following lines:"; ...
"`define D_BAUD_FREQ 12''d"+string(D_BAUD_FREQ); ...
"`define D_BAUD_LIMIT 16''d"+string(D_BAUD_LIMIT);
];
messagebox(mes_str);
|
a7dde0ebc1d70644f51317a7812d432bb8ad3dd3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1388/CH10/EX10.14/10_14.sce | 4f67072a398a3a0738ca70bf7fb95cd6289cd3b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 272 | sce | 10_14.sce | clc
//initialisation of variables
R= 1.987 //atm lit/mol K
T= 573.2 //K
T1= 594.6 //K
k= 3.95*10^-6 //mol^-1 sec^-1
k1= 1.07*10^-6 //mol^-1 sec^-1
//CALCULATIONS
H= R*T*T1*2.303*log10((k/k1))/(T1-T)
//RESULTS
printf (' activation energy= %.f calmol^-1',H-39)
|
b7a6acb03792c9a3fceb0e24e997d8ac87de901d | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/robust/colinout.sci | 09519472b9175119f2b76409de6606d3009e49d8 | [
"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 | 112 | sci | colinout.sci | function [Inn,X,Gbar]=colinout(G)
// Copyright INRIA
[Innt,Xt,Gbart]=rowinout(G');
Inn=Innt';X=Xt';Gbar=Gbart';
|
42cf17b561228e157851a546b4e5a63d16550212 | 449d555969bfd7befe906877abab098c6e63a0e8 | /269/CH13/EX13.2/ex2.sce | 3ca10d5f6cb308046dd36100226ebb39efe3cb8a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 59 | sce | ex2.sce | s=poly(0,'s')
F=syslin('c',1/(3*s+1))
y=evans(F)
disp(y) |
3654a07dc52a5789049b0c144f4601fc33de4d49 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH9/EX9.6/6.sci | bfd1f4b3dd9810339e028184defc96cdd0de1465 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 529 | sci | 6.sci | clc;
clear all;
disp("power dissipation/length")
d=0.01;//m
e=0.92;
ts=260;// degree C
rhol=958.4;// kg/m^3
hfg=2257*10^3;//J/kg
rhov=4.807;// k/m^3
cpv=2.56*10^3;// J/kg.K
k=0.0331;// W/m.K
muv=14.85*10^(-6);// Ns/m^2
mug=muv;;
g=9.81;//m/s
ta=100;// degree C
te=ts-ta;// excess temperature
hconv=0.65*(k^3*rhov*(rhol-rhov)*g*(hfg+0.4*cpv*te)/(muv*d*te))^0.25;
hrad=5.67*10^(-8)*e*(ts^4-ta^4)/(ts-ta);
h=hconv+3*hrad/4;
Q=h*%pi*d*(ts-ta);//
disp("W",Q,"power dissipation per unit length for the heater =")
|
7ebb9cf233e9b1c6021f02f91c53f1f6c596c27a | 449d555969bfd7befe906877abab098c6e63a0e8 | /746/DEPENDENCIES/9_04.sci | 05ba26f5a8ae20f069ddf29edc1a31a10383785f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 168 | sci | 9_04.sci | //Veocity of flow(in m/sec):
U=1;
//Length of flat plate(in m):
L=1;
//Density of water(in kg/m^3):
d=999;
//Kinematic viscosity of water(in m^2/sec):
v=10^-6;
|
58cac025c97ba1426a586237dbd4075f82ee8f24 | 17dd6e9c9459b72f85b0a71f73e670abf1ca9f4e | /Wiskunde1/cursus/oefeningen/elementenGroterDanGemiddelde.sci | 34f88cb7c979519725cef0bc8fd92ca2df0bd5da | [] | no_license | Woumpousse/KHL | e80c9a00bf71321539b218d8ec047883a9c2fc91 | 066a06c131c617e8be9ec6ac2f4c76b637aba34e | refs/heads/master | 2020-12-24T13:18:20.656259 | 2014-09-29T16:14:00 | 2014-09-29T16:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 221 | sci | elementenGroterDanGemiddelde.sci | function R = elementenGroterDanGemiddelde(M)
g = gemiddelde(M)
R = []
for col = M
for x = col'
if x > g then
R = [R, x]
end
end
end
endfunction
|
0088abbfdae38c21e7c20107bad7842435b14e40 | 683d55d55e7449e5ffb06e17d669fd6e8d7eca1c | /entrega1/ej1-2-b.sce | e17a4dbf9de954a6d438d3ea5532f772ae373728 | [] | no_license | lucciano/ssc-lcc | 58efd303220cb36c09a305457fe5e5cc97e77b63 | fcd50437ca953ef0b0491672a71bee19383bc09b | refs/heads/master | 2021-01-19T20:15:53.904767 | 2014-04-26T20:15:03 | 2014-04-26T20:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 106 | sce | ej1-2-b.sce | ra=2;
re=1;
A=[-ra,0;ra,-re];
B=[0;0];
u = 0;
x0=[1;0];
t=[0:0.01:8];
x=ltisol(A,B,u,x0, t);
plot(t,x); |
e40f1a736fa4579a412e70de8aedb6a8227add33 | 449d555969bfd7befe906877abab098c6e63a0e8 | /980/CH2/EX2.4/2_4.sce | 83ff3a1c956bad38657d2ef67ee1234a4bca2365 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 992 | sce | 2_4.sce | clc;
clear;
format('v',11);
r=[2 3 4]; //Given Position vector r
disp(r,'Given the vector r=');
modr=sqrt(2^2+3^2+4^2); //Magnitude of the given vector r
Ax=(2/modr); //Coeffitient in the X direction
Ay=(3/modr); //Coeffitient in the Y direction
Az=(4/modr); //Coeffitient in the Z direction
//Displaying the direction cosines and the angles
format('v',8)
disp('The direction cosines of the given vector are:');
disp(Ax,'Ax=')
disp(Ay,'Ay=')
disp(Az,'Az=')
x=[Ax Ay Az];
format('v',6)
y=acosd(x);
disp(y,'The angles that the given vector makes with the three vectors are (in Degree):')
|
454635c7395ea743071156a9e5f929732c8604ec | a45f93853fdb67523e71e3e7fb88c4298eae1ef7 | /Screens/Create Player Profile Dialog Screen.tst | 69622e36fc83e6c0260bce11d430e285e4879ed1 | [] | no_license | voarsh/Disney-Treasure-Planet-Battle-at-Procyon | 68192cbfdf8b823bc8399e3ea1e62d4976b74aed | 99cbbc70701ef6e8f9d95eba1052635de992910f | refs/heads/master | 2020-04-16T01:44:03.761947 | 2016-06-08T10:25:05 | 2016-06-08T10:25:05 | 38,745,932 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,957 | tst | Create Player Profile Dialog Screen.tst | ScreenName String 'Create Player Profile Dialog Screen'
ImplName String 'Dialog Screen'
ElementChunkArray Int 6
ScreenElementType Int 0
ImplName String 'Front End Dialog Screen Backdrop'
TabIndex Int 1
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 162, 168, 524, 428 ) # left,top,right,bottom
ScreenElementType Int 3
ImplName String 'Player Name Text Entry'
TabIndex Int 2
Selectable Bool True
Enabled Bool True
ReferenceArea Rect( 275, 257, 532, 305 ) # left,top,right,bottom
Font String 'Univers12'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_NULL'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
ScreenElementType Int 1
ImplName String 'Open Dialog Next Button'
TabIndex Int 5
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 414, 320, 543, 364 ) # left,top,right,bottom
Font String 'BlackChancery16'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_ADD'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Open Dialog Previous Button'
TabIndex Int 7
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 259, 320, 388, 364 ) # left,top,right,bottom
Font String 'BlackChancery16'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_CANCEL'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Center Justify Label'
TabIndex Int 8
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 4, 225, 800, 253 ) # left,top,right,bottom
Font String 'Univers12'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_TYPE_IN_YOUR_NAME'
Color Colour( 0.000000, 0.000000, 0.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Center Justify Label'
TabIndex Int 9
Selectable Bool True
Enabled Bool True
ReferenceArea Rect( 0, 224, 800, 250 ) # left,top,right,bottom
Font String 'Univers12'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_TYPE_IN_YOUR_NAME'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
|
e1feef93a80627e8f42220e7aed17b4505af1514 | 449d555969bfd7befe906877abab098c6e63a0e8 | /767/CH7/EX7.7.2/Ch07Exa7_7_2.sci | f4e0e22038f184b5f0768b218d3b5e67aa28eb65 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,076 | sci | Ch07Exa7_7_2.sci | // Scilab code Exa7.7.2 : To calculate the capacitance and the amplitude of voltage pulse across the detector :Page 316 (2011)
E_r = 12; // Relative permittivity
E_o = 8.85e-012; // Permittivity of free space
E = E_r*E_o; // Absolute dielectric constant
A = 2e-04; // Area of the detector, m^2
e = 1.602e-019; // Charge of an electron, C
d = 100e-06; // The thickness of the depletion layer, m
C = E*A/d; // The capacitance of the dielectric, F
E_p = 3.0; // Energy required to create an ion pair, eV
E_s = 5.48e+06; // Energy required to stopped ion pair, eV
n = E_s/E_p; // Number of ion-pair produced
Q = n*e; // Charge of these ion pair, C
A = Q/C*1000; // The amplitude of voltage pulse, mV
printf("\n The capacitance of dielectric = %5.3e F \n The amplitude of voltage pulse = %5.3f mV ", C, A)
// Result
// The capacitance of dielectric = 2.124e-010 F
// The amplitude of voltage pulse = 1.378 mV
|
616e524b0efbbf90f335ff326f8c75f0945c6b06 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1511/CH2/EX2.5/ex2_5.sce | 1d3a555529dd7b1dc32b56a3cd1d01244acc7d34 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 465 | sce | ex2_5.sce | // Example 2.5 page no-48
clear
clc
f=10*10^6 //Hz
h=6.626*10^-34 //Joules/sec
e=1.6*10^-19 //C
//(a)
E=h*f/e
printf("\n(a)Energy of each radiated quantum,\n\tE=%.3f*10^-27 Joules/Quantum\n\tE=%.2f*10^-8 eV/Quantum",h*f*10^27,E*10^8)
//(b)
E=1000 //Joule/sec
N=E/(h*f)
printf("\n\n(b)\nTotal number of quanta per sec, N=%.2f*10^29",N/10^29)
//(c)
o=10^-7
printf("\n\n(c)\nNumber of quanta emitted per cycle = %.2f*10^22 per cycle",o*N/10^22)
|
6ce8fb9d8c714a885357df2ac8d44085eed59567 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1664/CH6/EX6.7/Ex6_7.sce | bdc496f894031c972565a2f04cdf35c68b8ad47e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 501 | sce | Ex6_7.sce |
//Example No.6.7
//Page No.188.
//Find the angle between two planes (111) and (212) in a cubic lattice.
clc;clear;
// (u1,v1,w1) are the miller indices of the plane (111).
u1 = 1;
v1 = 1;
w1 = 1;
// (u2,v2,w2) are the miller indices of the plane (212).
u2 = 2;
v2 = 1;
w2 = 2;
u = acosd(((u1*u2)+(v1*v2)+(w1*w2))/((sqrt((u1^2)+(v1^2)+(w1^2))*sqrt((u2^2)+(v2^2)+(w2^2)))));//u is the angle between two planes.
printf("\n The angle between the planes (111) and (212) is %.3f degree",u);
|
e1e73ce19ada3e180d3c77ffaa4fd1ed54921a80 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1847/CH1/EX1.39/Ch01Ex39.sce | a59442403d51a41ef91df61e086305ba66e94d9c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 719 | sce | Ch01Ex39.sce | // Scilab Code Ex1.39: : Page-1.57 (2009)
clc; clear;
h = 6.6e-034; // Planck's constant, Js
m0 = 9.1e-031; // Electronic mass, kg
c = 3e+08; // Speed of light, m/s
e = 1.6e-019; // Energy equivalent of 1 eV, J/eV
phi = 60; // Scattering angle of X-rays, degrees
E = 75; // Incident energy of X-rays, keV
// As from Compton shift formula
delta_L = h/(m0*c)*(1-cosd(phi)); // Change in photon wavelength, m
lambda = 0.198e-010; // Wavelength of incident photon, m
lambda_prime = (lambda+delta_L)/1e-010; // Wavelength of scattered X-ray, angstrom
printf("\nThe wavelength of scattered X-ray = %6.4f angstrom", lambda_prime);
// Result
// The wavelength of scattered X-ray = 0.2101 angstrom
|
bccc9fc4c1e6f39eae0702b7201cd2d70dcb50a0 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set10/s_Fluid_Mechanics_For_Chemical_Engineers_N._D._Nevers_896.zip/Fluid_Mechanics_For_Chemical_Engineers_N._D._Nevers_896/CH19/EX19.3/3.sce | 08ce26106b2630ba0ede8d3831e48468beac5dc6 | [] | 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 | 377 | sce | 3.sce | errcatch(-1,"stop");mode(2);
//Example 19.3
//Calculate the impeller speed in a model of a large mixer if the power per unit volume remains the same
//let D1/D2 be denoted by ratio_D
ratio_D=5//dimentionless
N2=240//rpm
N1=N2/ratio_D^(2/3)//rpm
printf("the impeller speed in a model of a large mixer if the power per unit volume remains the same is %f rpm",N1);
exit();
|
80696f0b4ec24346530f17c44cdad68dd901ece3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2159/CH7/EX7.17/717.sce | 762cad40d53b921689d490e7d2ad7934bdb7a15d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 317 | sce | 717.sce | // problem 7.17
n=1
Q=14
i=1/1000
C=44
a=1.828
d=((Q*(2^0.5))/(C*a*(i^0.5)))^0.4
b=d*0.828
cost=(b+n*d)*4
A=1.828*d*d
C1=70
d1=((Q*(2^0.5))/(C1*a*(i^0.5)))^0.4
b1=0.828*d1
cost1=(b1+n*d1)*4
costl=(b1+(2*d1*((n*n+1)^0.5)))
totalcost= cost1+costl
disp(d1,b1,"lined channel is cheaper ,dimension in m")
|
859db8f29bb823539f371fb34e62dc53953621ff | 4ed576b765859807d6c29665521e0697d6f9bae7 | /archive/04/ex4.3.sce | 2ffc61c05133605ae6ab22b65a2ce2b5ad438076 | [] | no_license | sbednarz/scilab | 96b9182730fa48d11f27840fc197d151adb01e2c | 28f81c58bc4972eeb41f403cb157fb989e809f41 | refs/heads/master | 2021-07-11T04:42:04.289126 | 2021-05-17T20:55:19 | 2021-05-17T20:55:19 | 100,467,366 | 3 | 1 | null | 2020-06-19T06:49:18 | 2017-08-16T08:37:06 | Scilab | UTF-8 | Scilab | false | false | 1,146 | sce | ex4.3.sce |
// second order reaction
// A + B => C, k
function dy = model(t, y)
A = y(1) // A,B,C
B = y(2)
C = y(3)
dAdt = -k*A*B
dBdt = -k*A*B
dCdt = k*A*B
dy=[dAdt, dBdt, dCdt] // A,B,C
endfunction
//
A0 = 2
B0 = 1
C0 = 0
y0 = [A0; B0; C0] // A,B,C
t0 = 0
k = 3e-3 // L/(mol*s)
// time span
t = linspace(0,3600)
y = ode(y0, t0, t, model)
//disp(t)
//disp(y)
//A(t)
A=y(1,:) // first row
//B(t)
B=y(2,:) // second row
//C(t)
C=y(3,:) // second row
// clear plot area
clf
//
subplot(211)
plot(t, A, '-or') //A(t)
plot(t, B, '-ob') //B(t)
plot(t, C, '-og') //C(t)
legend(['A'; 'B'; 'C'])
xlabel('Time')
ylabel('Concentration')
subplot(212)
plot(t, A + C, '-+r')
plot(t, B + C, '-+p')
legend(['A+C';'B+C'])
// equilibria
// 2A => B, k1
// B => 2A, k2
function dy = model(t, y)
A = y(1) // A,B
B = y(2)
dAdt = -2*k1*A*A + 2*k2*B
dBdt = k1*A*A - k2*B
dy=[dAdt, dBdt] //
endfunction
k1 = 1e-3
k2 = 1e-4
A0 = 0.6
B0 = 0
y0 = [A0; B0]
//t = linspace(0,20000)
//y = ode(y0, t0, t, model)
//clf
//A=y(1,:) // first row
//B=y(2,:) // second row
//plot(t,A,'-b')
//plot(t,B,'--g')
|
6c1d7a35c31dfe374316b8163a412be79ef6280a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2528/CH10/EX10.3/Ex10_3.sce | 78868b48f2b2d0396f07a5fe424cf89b04fe5117 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 640 | sce | Ex10_3.sce | //Chapter 10
//Sketch the output Waveform
//page no. 358
//Example10_3
//Figure 10.7
//Given
clc;
clear;
T0=4;
t=-5.99:0.01:6;
t_temp=0.01:0.01:T0/4;
s=length(t)/length(t_temp);
dx=[];
x=[];
for i=1:s
if modulo(i,2)==1 then
dx=[dx -ones(1,length(t_temp))];
x=[x .1*t_temp($:-1:1)];
else
dx=[dx ones(1,length(t_temp))];
x=[x .1*t_temp];
end
end
clf();
subplot(1,2,2)
plot(50*t,10*x-0.5,8)
xtitle("Output Waveform","Microsecond","V");
t=-30:0.01:30;
subplot(1,2,1);
plot('onn',10*t,[2*squarewave(2*t/(%pi),50)])
xtitle("Input Waveform","Microsecond","V");
|
4d45bd783939c52be71a245e21f983ae4df65174 | 46954c17b2977a4b3f009774048467842b32bd16 | /nand2tetris/projects/05/Jump.tst | e09759d2dc95d4fae0a47dfe969446152b0ae396 | [] | no_license | colinfrankb/nand-to-tetris | b22da93feab12f50e7ff8d041ece48c6deb7ad8a | 8e7091aeeff21956edd023fdca3206c955e6c2a8 | refs/heads/master | 2020-06-13T13:38:36.638012 | 2019-08-30T19:48:10 | 2019-08-30T19:48:10 | 194,674,854 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 741 | tst | Jump.tst | load Jump.hdl,
output-file Jump.out,
compare-to Jump.cmp,
output-list j1%B3.1.3 j2%B3.1.3 j3%B3.1.3 zr%B3.1.3 ng%B3.1.3 out%B3.1.3;
set j1 0,
set j2 0,
set j3 1,
set zr 0,
set ng 0,
eval,
output;
set j1 0,
set j2 1,
set j3 0,
set zr 1,
set ng 0,
eval,
output;
set j1 0,
set j2 1,
set j3 1,
set zr 1,
set ng 0,
eval,
output;
set j1 1,
set j2 0,
set j3 0,
set zr 0,
set ng 1,
eval,
output;
//region JNE if out != 0, therefore zr should be 0 and ng should be (0 or 1)
set j1 1,
set j2 0,
set j3 1,
set zr 0,
set ng 0,
eval,
output;
set j1 1,
set j2 0,
set j3 1,
set zr 0,
set ng 1,
eval,
output;
//end region
set j1 1,
set j2 1,
set j3 0,
set zr 1,
set ng 1,
eval,
output;
set j1 1,
set j2 1,
set j3 1,
set zr 0,
set ng 0,
eval,
output; |
3497a9224978471cf85d09031d2a51ad1c7e6a93 | 449d555969bfd7befe906877abab098c6e63a0e8 | /479/CH1/EX1.3/Example_1_3.sce | 40c1957c543a238dc307adfb90b42a1dec3ee0fc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 209 | sce | Example_1_3.sce | //Chemical Engineering Thermodynamics
//Chapter
//Introduction
//Example 1.3
clear;
clc;
//Given
//The given example is a theoretical problem and it does not involve any numerical computation
//end |
6c82130e3e570d366fb710a0ee7d168b15db6475 | 449d555969bfd7befe906877abab098c6e63a0e8 | /752/CH4/EX4.13.1/4_13_1.sce | 6ce520017899d0d0bf2c962d5a183494c0686e83 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 286 | sce | 4_13_1.sce | clc;
// page no 139
// prob no 4_13_1
//Noise fig. of an amplifier is 7 dB with input SNR=35 dB
SNRin=35;//SNR at i/p of amplifier
F=7;//Noise figure of an amplifier
//Determination of output SNR
SNRout=SNRin-F;
disp('dB',SNRout,'The value of output signal to noise ratio is '); |
0514f3188bb48408e8374605f148e17dc6f34bdc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH18/EX18.10/18_10.sce | 63b84440ee66530724b4b0a21487ce49de467468 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 361 | sce | 18_10.sce | //ques-18.10
//Calculating work done and heat rejected and efficiency
clc
T1=0; T2=100;//temperature (in degree celsius)
q2=840;//energy absorbed (in J)
q1=q2*((T1+273)/(T2+273));//heat rejected (in J)
W=q2-q1;//work done (in J)
n=(T2-T1)/(T2+273);//efficiency
printf("The work done is %.1f J, heat rejected is %.1f J and efficiency is %.3f.",W,q1,n);
|
cb039b4387793553b02f42511fb9b50883b61f67 | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH11/EX11.8/11_8.sce | f3ca3bf2859b22d9545162b15f918d5babac3909 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 227 | sce | 11_8.sce | P=12E6
Q=6E6
V=22000
Xs=8
S=P+%i*Q
theta=atan(Q/P)
disp(theta/%pi*180)
Ia=norm(S)/sqrt(3)/V
Ef=V/sqrt(3)+%i*Xs*Ia*exp(-%i*theta)
delta=atan(imag(Ef)/real(Ef))
disp(delta/%pi*180)
emf=norm(Ef)*sqrt(3)
disp(emf)
|
8303fb755938728ff7e783728220a482bc481e6f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH3/EX3.21.1/Ex3_21.sce | ff2653d4c30ac53ca79366946f5cd663b8761e32 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 425 | sce | Ex3_21.sce | clc
clear
//Inputs
//The Values in the program are as follows:
//Temperature in Celcius converted to Kelvin(by adding 273)
//Pressure in bar converted to kPa (by multiplying 100)
//Volume in m^3
//Value of R,Cp and Cv in kJ/kg K
V=1.6;
P=1;
m=2;
T=17+273;
G=1.4;
R=(P*100*V)/(m*T);
Cv=(R)/(G-1);
printf('The Value of Cv: %1.2f kJ/kg K',Cv);
printf('\n');
Cp=Cv+R;
printf('The Value of Cp: %1.3f kJ/kg K',Cp);
printf('\n')
|
766b1c745e8edae8ac9a1d4e5d1c7fa4e3f7b1ce | 449d555969bfd7befe906877abab098c6e63a0e8 | /172/CH12/EX12.4/ex4.sce | 58b5c94993ccbb5f270d53089d5abcb99a8c6e58 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 368 | sce | ex4.sce | //ques4
//Calculation of work in the given cycle
clear
clc
R=0.287;//gas constant
T1=288.2;//compressor temperature K
T2=1373.2;//K turbine temperature K
//Pe/Pi=c=10, Pi/Pe=1/c from example 12.1
c=10;
wc=-R*T1*log(c);
printf('Isothermal work in compressor = %.1f kJ/kg \n',wc);
wt=-R*T2*log(1/c);
printf(' Isothermal work in turbine = %.1f kJ/kg\n',wt); |
cb70e6889a62f20d965a1cfb9a3ecbf069656a45 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH2/EX2.9/Ex2_9.sce | 6a5b0b890f4c99a4f289f9180d15b0117a5ef4b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 191 | sce | Ex2_9.sce | //Finding T and R
//applying Lami's Theorem we get
T=(100*sind(90))/sind(90+15) //N
R=(100*sind(180-15))/sind(90+15) //N
printf("\nThe required values are:-\nT=%.1f N \nR=%.1f N",T,R)
|
db82d43ed04ade65730c7e7388b12eb47d26a0ee | 449d555969bfd7befe906877abab098c6e63a0e8 | /1697/CH5/EX5.4/Exa5_4.sce | d259bcfa3cd319eb6bfd48ecacdedf721d74f2b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 447 | sce | Exa5_4.sce | //Exa 5.4
clc;
clear;
close;
//Given data :
N=20;//turns
D=1;//in meter
r=D/2;//in meter
E=200*10^-6;//in V/m
L=50*10^-6;//in H
R=2;//in Ohm
f=1.5;//in MHz
f=f*10^6;//in Hz
c=3*10^8;//speed of light in m/s
lambda=c/f;//in meter
A=%pi*r^2;//in m^2
Vrms=2*%pi*E*A*N/lambda;//in Volts
Q=2*%pi*f*L/R;//unitless
Vc_rms=Vrms*Q;//in Volts
disp(Vc_rms*1000,"Voltage across the capacitor in mV :");
//Note : Answer in the book is wrong. |
d8e09b63f12fe13437bc467d39882581e7534501 | 449d555969bfd7befe906877abab098c6e63a0e8 | /991/CH6/EX6.32/Example6_32.sce | a73ec0a850f58cdf0d694743a29fcff07e674b87 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 817 | sce | Example6_32.sce | //Example 6.32. refer fig.6.30.
clc
format(5)
R1=56*10^3
R2=12.2*10^3
RC=2*10^3
RE=400
VCC=10
VBE=0.7
beta=150
disp("From the Thevenin equivalent circuit shown in fig.6.30(b),")
RTH=(R1*R2)/(R1+R2)
RTH1=round(RTH*10^-3)
disp(RTH1,"RTH(k-ohm) = R1 || R2 =")
VTH=(R2/(R1+R2))*VCC
disp(VTH,"VTH(V) = (R2 / (R1+R2)) * VCC =")
disp("By kirchhoff voltage law equation,")
IBQ=(VTH-VBE)/(RTH+((1+beta)*RE))
IBQ1=IBQ*10^6
disp(IBQ1,"IBQ(uA) = (VTH-VBE(on)) / (RTH + ((1+beta)*RE)) = ")
ICQ=beta*IBQ
ICQ1=ICQ*10^3
disp(ICQ1,"Therefore, ICQ(mA) = beta * IBQ = ")
format(6)
IEQ=IBQ+ICQ
IEQ1=IEQ*10^3
disp(IEQ1,"IEQ(mA) = IBQ + ICQ")
VCEQ=VCC-(ICQ*RC)-(IEQ*RE)
disp(VCEQ,"VCEQ(V) = VCC - (ICQ*RC) - (IEQ*RE)")
disp("The Q point is at :")
disp(VCEQ,"VCEQ(V) = ")
format(5)
disp(ICQ1,"ICQ(mA) = ") |
3270a114668e882c9f5515f369d31887235da5fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /3515/CH2/EX2.24/Ex2_24.sce | b462e93a345d4ea5a484cf9c8e9379e9aeaabb25 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 741 | sce | Ex2_24.sce | // Exa 2.24
format('v',6);
clc;
clear;
close;
// Given data
Rsig= 100;// in kΩ
Rsig= Rsig*10^3;// in Ω
R_G= 4.7;// in MΩ
R_G= R_G*10^6;// in Ω
R_D= 15;// in kΩ
R_D= R_D*10^3;// in Ω
R_L= R_D;// in Ω
gm= 1;//in mA/V
gm= gm*10^-3;//in A/V
ro=150;// in kΩ
ro=ro*10^3;// in Ω
Cgs= 1;// in pF
Cgs=Cgs*10^-12;//in F
Cgd= 0.4;// in pF
Cgd=Cgd*10^-12;//in F
vgsBYvsig= R_G/(Rsig+R_G);
Rdesh_L= R_D*R_L/(R_D+R_L);// in Ω
voBYvgs= -gm*Rdesh_L;
Av= voBYvgs/vgsBYvsig;// in V/V
disp(Av,"The Mid-band gain in V/V is :")
CM= Cgd*(1+gm*Rdesh_L);// in F
// f_H= 1/(2*%pi*(Rsig || R_G)*(Cgs*CM))
f_H= 1/(2*%pi*(Rsig * R_G/(Rsig + R_G))*(Cgs+CM));// in Hz
f_H= f_H*10^-3;// in kHz
disp(f_H,"Frequency in kHz is : ")
|
06066dd9650caaf1202c7278df6462f7db0d2ff0 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.2/Unix/scilab-2.2/doc/intro/macros/foo.sci | 3071c95cb85024b0732dc59647e35fa62922c84e | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 154 | sci | foo.sci | function [z]=foo(x,y)
[in,out]=argn(0);
if x=0 then,
error('division by zero');
end,
slope=y/x;
pause,
z=sqrt(slope);
s=resume(slope);
|
737987f14abf297d22629f572575f794694ff8a5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /122/CH5/EX5.a.10/exaA_5_10.sce | bc40d7be53a5af57f1ab75bdb83d1a7b7676d0a1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 442 | sce | exaA_5_10.sce | // Example A-5-10
// Plot the unit step response and find the transient parameters
// viz. - rise time, peak time , settling time and maximum overshoot
clear; clc;
xdel(winsid()); //close all windows
mode(0);
// Please edit path if needed
// cd "/<your code path>/";
// exec("stepch.sci");
N = poly( [12.811 18 6.3223],'s','c') ;
D = poly( [12.811 18 11.3223 6 1], 's','c');
G = syslin('c',N,D);
[Mp tp tr ts] = stepch(G,0,20,0.01,0.02)
|
b6552617cd3a04fffafd2fee17c3aaba0f1e0c46 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1922/CH4/EX4.3/4_3.sce | cc9151fa2683464f3a66ba67562d5397296cddc9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 303 | sce | 4_3.sce |
clc
clear
//Initialization of variables
ratio=1/2
R=8.314
p1=0.5 //kPa
p2=0.1 //kPa
//calculations
ya=ratio/(1+ratio)
ds=-ya*R*log(ya) - (1-ya)*R*log(1-ya)
dss=R*log(p1/p2)
//results
printf("Entropy of mixing = %.3f kJ/kmol K",ds)
printf("\n Total entropy change of the universe = %.2f kJ/kmol K",dss)
|
5e2f0371e6947b4fef7fe68d353e4778b79b3c04 | 1468f13d61172c83130184bd54d023deb150303d | /test/delete.tst | 45ff82b3b421cae402ab7c937a72e0e4f4ca06f5 | [
"Apache-2.0"
] | permissive | longde123/sqlparse | 2fce59d9a1fe92b26dcd92b1f0c34cca6487e5be | 4b2101a6ef9d7d4a23445add164fb915e158786a | refs/heads/master | 2021-01-13T12:09:04.472322 | 2016-10-17T13:23:26 | 2016-10-17T13:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 532 | tst | delete.tst | %%-*- mode: erlang -*-
%%-*- coding: utf-8 -*-
% Test control options
[{tests, []}].
%%
%% TESTS
%%
"DELETE FROM table_name".
"DELETE FROM table_name WHERE some_column=some_value".
"DELETE FROM table_name WHERE some_column=some_value RETURN c,d INTO :c, :d".
"DELETE FROM table_name WHERE some_column=some_value RETURN lob_column INTO :out_locator".
"DELETE FROM table_name WHERE some_column=some_value RETURNING c,d INTO :c, :d".
"DELETE FROM table_name WHERE some_column=some_value RETURNING lob_column INTO :out_locator".
|
53d32eb02982d2e394bd366e06212a5ff0c598f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /374/CH5/EX5.4/54.sci | bd73fa4b8ddecc8b58541b6a04bcecc7eee662f1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | 54.sci | //chapter 5 example 4//
clc
clear
//length of cavity=L,refractive index of GaAs=n1,wavelength=l,seperation wavelength between two mode=dl//
n1=3.6;//refractive index//
l=0.85*(10^-6);//wavelength//
L=200*(10^-6);//length of cavity//
dl=(l^2)/(2*n1*L)*(10^9);//seperation wavelength between two mode//
printf("\n seperation wavelength between two mode=%f nm\n",dl) |
90f201805c6d8e0d913b7b5c07fe6d670f1892df | 449d555969bfd7befe906877abab098c6e63a0e8 | /3836/CH13/EX13.5/Ex13_5.sce | 26d136a355aed05ed66b172f7807394d9392d2bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 244 | sce | Ex13_5.sce | clear
//Initialization
C1=10*10**-6 //capacitance in Farad
C2=25*10**-6 //capacitance in Farad
//Calculation
C=C1+C2 //capacitance in Farad
//Results
printf("\n C = %d uF",C*10**6)
|
095a73be03a47f5bc5b98ea6906682a9d2304bc4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /773/CH10/EX10.09/10_09.sci | 02fb8ecc09ab12debf3fe3ea3c7413176e034976 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 794 | sci | 10_09.sci | //equation//
ieee(2);
s=%s;
m=s^5+s^4+3*s^3+3*s^2+4*s+8
r=coeff(m); //Extracts the coefficient of the polynomial
n=length(r);
routh=[r([6,4,2]);r([5,3,1])]
syms eps;
routh=[routh;eps,-det(routh(1:2,2:3))/routh(2,2),0];
routh=[routh;-det(routh(2:3,1:2))/routh(3,1),-det(routh(2:3,2:3))/routh(3,2),0];
routh=[routh;-det(routh(3:4,1:2))/routh(4,1),-det(routh(3:4,2:3))/routh(4,2),0];
routh=[routh;-det(routh(4:5,1:2))/routh(5,1),0,0];
disp(routh,"routh=")
//To check the stability
routh(4,1)=limit(routh(4,1),eps,0); //Putting the value of eps=0 in routh(4,1)
disp(routh(4,1),"routh(4,1)=")
routh(5,1)= limit(routh(5,1),eps,0); //Putting the value of eps=0 in routh(5,1)
disp(routh(5,1),"routh(5,1)=')
routh
printf("There are two sign changes of first column,hence the system is unstable \n")
|
e4e297f60ff53cf2aabc021a3f0c4a8e256ee810 | 96ddb5c7e26f4c4665fed642bcd3e7492c8b3af9 | /genqammod.sci | b7fa2fa9d3d4e301120959ac50d17ca18c0a4db4 | [] | no_license | kUser18/comm_scilab | 8faa238d1affd5842ae20b8dbc0d59324d12b477 | c98d78ba55b73644bf32cf1f901b6c0e45d73bc2 | refs/heads/master | 2020-03-26T11:00:15.328570 | 2018-09-30T20:35:50 | 2018-09-30T20:35:50 | 144,823,988 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,317 | sci | genqammod.sci | function mod = genqammod(x, constellation)
//
//Function Description
//genqammod: This function modulates a sequence of integers
//x into a complex baseband signal, according to a specified constellation.
//
//Calling sequence:-
//genqammod(x, constellation)
//
//Parameters:
//x: int - matrix
// The sequence of integers to be modulated.
// Each integer in x should be in [0,length(constellation)-1]
//constellation: complex - vector
// The constellation map to modulate x.
// Must be a vector of complex numbers.
//
//Example Usage
// mod = genqammod(0:4, [1, -1, %i, -%i])
//
//Authors
//Devdatta Kathale
//
//Function Description Ends
//
//Check inputs
if argn(2)~=2 then
error('genqammod: This function takes exactly 2 arguments.')
end
if ~or(size(constellation)==1) then
error('genqammod: The constellation must be a vector.')
end
if or(x>ceil(x)) | or(x<0) then
error('genqammod: The entries of x must all be non-negative integers.')
end
if or(x+1>length(constellation)) then
error('genqammod: The entries of x must all be in [0,length(constellation)-1].')
end
//
//Flatten, assign values, and restore shape
x_dim = size(x)
x_flat = matrix(x, [-1,1] )
mod = constellation(x_flat+1)
mod = matrix(mod, x_dim)
//
endfunction
|
0d47a8c018af465c1e431baba8f4b932720899da | 449d555969bfd7befe906877abab098c6e63a0e8 | /149/CH2/EX2.20/ex20.sce | 6758353c2a667ad165201d55b1ae8b6cf0de2e6b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 88 | sce | ex20.sce | clc
A=[11 -25;4 -9]
n=input('Enter the value of n ");
disp('calculating A^n ');
A^n |
383993f937ed8df8b82e378bb4ac4928445bd60e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH9/EX9.20/pp_pid.sci | 7071ab6716944bcb9eb5b67280172ced36919e84 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 468 | sci | pp_pid.sci | // Solution to Aryabhatta's identity arising in PID controller design, namely Eq. 9.37 on page 363.
// 9.20
function [Rc,Sc] = pp_pid(B,A,k,phi,Delta)
// Setting up and solving Aryabhatta identity
dB = length(B) - 1; dA = length(A) - 1;
[zk,dzk] = zpowk(k);
[N,dN] = polmul(B,dB,zk,dzk);
dDelta = length(Delta)-1;
[D,dD] = polmul(A,dA,Delta,dDelta);
dphi = length(phi)-1;
[Sc,dSc,R,dR] = xdync(N,dN,D,dD,phi,dphi);
Rc = convol(R,Delta);
endfunction;
|
478dbc75b39b927c47ec7b008d8c2f1b57aefa7a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1757/CH14/EX14.1/EX14_1.sce | 39da23bc951cb9391e2516dfd97cbdfb977e3ce7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 396 | sce | EX14_1.sce | //Example14.1 // to determine the regulated voltage
clc;
clear;
close;
R1 = 250 ; //ohm
R2 = 2500 ; // ohm
Vref = 2 ; //V //reference voltage
Iadj = 100*10^-6; // A // adjacent current
//the output voltage of the adjustable voltage regulator is defined by
Vo = (Vref*((R2/R1)+1)+(Iadj*R2)) ;
disp('the output voltage of the adjustable voltage regulator is = '+string(Vo)+' V ');
|
a6d3ce3fb993c66669b6ffc9ef31e472dbf95a43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1322/CH18/EX18.2/159ex1.sce | 58e42a01bd7cfab2d3e5ac3c90e1fdd1d2f32d13 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 231 | sce | 159ex1.sce |
clear;
clc;
close;
//EX(1):
function [val]=answer(u,v,x,y)
val=u*v*10^(x+y)
endfunction
val=answer(1.2,2.3,4,3)
//EX(2):
function[val1]=answer1(u,v,x,y)
val1=(u/v)*10^(x-y)
endfunction
val1=answer1(4.8,1.6,8,3)
|
0491301f9109791d09fa41ea9e903228ad4431b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3281/CH2/EX2.23/ex2_23.sce | 27c8a019cad616e0978e3a97abec610397f04155 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 279 | sce | ex2_23.sce | //Page Number: 107
//Example 2.23
clc;
//Given
c=3D+8; //m/s
f=9D+9; //hz
a=5; //cm
a1=a/100; //m
e=1;
mu=1/(c*c);
p11=1.841;
fc=(p11*c)/(2*%pi*a1);
//Maximum power transmitted
pmax=1790*(a1*a1)*sqrt(1-((fc/f)^2));
disp('kW',pmax,'Maximum power transmitted:');
|
7675b7b830cf2acc1283267c93c93556aec21923 | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/DEPENDENCIES/20_1data.sci | 4400a90b03a906f5705262ce590e049c2e588263 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 213 | sci | 20_1data.sci | L16=400;//given in mm
L34=200;//given in mm
L12=600;//given in mm
L23=600;//given in mm
t12=2;//given in mm
t23=1.5;//given in mm
t34=2;//given in mm
t25=2.5;//given in mm
t16=3;//given in mm
A=300;//given in mm^2 |
90256478afc8ec59197f785e255236f06b1f81a8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1754/CH3/EX3.6/Exa3_6.sce | 7701e5ff2da289781a4948157adf31c4b0e7a1f6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 484 | sce | Exa3_6.sce | //Exa 3.6
clc;
clear;
close;
//Given data :
RC=10;//in kohm
hfe=330;//unitless
hie=4.5;//in kOhm
//RS<<hie
AVM=hfe*RC*10^3/(hie*10^3+RC*10^3);//unitless
AVM1=AVM;//Gain of 1st stage
AVM2=AVM;//Gain of 2nd stage
AVM3=hfe*RC*10^3/(hie*10^3);//unitless(//Gain of 3rd stage)
OverallGain=AVM1*AVM2*AVM3;//unitless
disp(AVM,"Gain in mid frequeny range : ");
disp("This is the gain of 1st and 2nd stage.")
disp(OverallGain,"Overall Voltage gain for mid frequency range : "); |
b29d8799ee462ce3a9dd5f2d44a82e67020d1374 | 449d555969bfd7befe906877abab098c6e63a0e8 | /34/CH3/EX3.6/Ch3Exa6.sci | 62758a699d7e9894cd3f28581c36c0aae4dc8609 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 385 | sci | Ch3Exa6.sci | Xo= 10^(-11); //uncertainty at time t=o, mts
hb= 1.054*(10^(-34)); //h-bar, reduced Planck's constant, J.s
t= 1; //time, s
m= 1.672*(10^(-27)); //mass, kg
x1= hb*t/(2*m*Xo); //uncertainty at time t=1, mts
disp(x1,"accuracy in position of proton after 1.00 seconds (in m) is : ")
//Result
// accuracy in position of proton after 1.00 seconds (in m) is :
// 3151.9139 |
7be10b74d71c726b37c26d64c4e1d44562593182 | 449d555969bfd7befe906877abab098c6e63a0e8 | /172/CH11/EX11.1/ex1.sce | bae723cedbc2ece411c40dc13bc8eebc657730ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 849 | sce | ex1.sce | //Ques 1
//To determine the efficiency of Rankine cycle
clc
clear
//1-Inlet state of pump
//2-Exit state of pump
P2=2000;//Exit pressure in kPa
P1=10;//Inlet pressure in kPa
v=0.00101;//specific weight of water in m^3/kg
wp=v*(P2-P1);//work done in pipe in kJ/kg
h1=191.8;//Enthalpy in kJ/kg from table
h2=h1+wp;//enthalpy in kJ/kg
//2-Inlet state for boiler
//3-Exit state for boiler
h3=2799.5;//Enthalpy in kJ/kg
//3-Inlet state for turbine
//4-Exit state for turbine
//s3=s4(Entropy remain same)
s4=6.3409;//kJ/kg
sf=0.6493;//Entropy at liquid state in kJ/kg
sfg=7.5009;//Entropy difference for vapor and liquid state in kJ/kg
x4=(s4-sf)/sfg;//x-factor
hfg=2392.8;//Enthalpy difference in kJ/kg for turbine
h4=h1+x4*hfg;//Enthalpy in kJ/kg
nth=((h3-h2)-(h4-h1))/(h3-h2);
printf('Percentage efficiency = %.1f ',nth*100); |
f54334ffde75aba1f1bd91b4356191193a76733d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1394/CH17/EX17.2.1/Ex17_2_1.sce | 8ab0329e98c6107d03f96831b3ab26edaf261b63 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 495 | sce | Ex17_2_1.sce |
clc
//initialization of variables
D2 = 5*10^-6 // The diffusion co efficient of the new compound in cm^2/sec
Nu = 3 // The factor
D1 = 0.7*10^-5 // The diffusion co efficient of the original compound in cm^2/sec
c2l = 1.5*10^-5 // the new solubility in mol/cc
c1l = 3*10^-7 // The old solubility in mol/cc
//Calculations
k = 1 + ((D2*c2l)/(Nu*D1*c1l))// The number of times the rate has increased to the previous rate
//Results
printf("There is about a %.f fold increase in rate",k)
|
0ebc9cf525f687167669e17b87012dc0bb94057f | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH6/EX6.17/example6_17_TACC.sce | 4a2df57c22503c9ef3f6d2f9020e8ffb1dbcd366 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 515 | sce | example6_17_TACC.sce | //example 6.17
clear;
clc;
//Given:
m2=1.35;//mass of a macromolecule[gm]
V=100;//volume of solution[cm^3]
R=82;//Universal gas constant[atm.cm^3.K^-1]
T=300;//Temperature[K]
II=9.9;//osmotic pressure of the solution[cm]
d=1;//density
p=1013250;//Atmospheric pressure
g=980.67;//gravitational field
//To find the molar mass of macromolecule
a=m2*R*T*p;
b=V*9.9*d*g;
M2=a/b;//molar mass of macromolecule
printf(" M2 = molar mass of macromolecule , therefore M2 = %f g.mol^-1",M2);
|
63bee79609431109f739eb88fffd399c5529e180 | fa428f297a915e9a041597642bfe29627ab69c42 | /app/views/components/listingrow.sce | 40573287f724fae15ed85dc05ca8a0b0ef42a91b | [] | no_license | TheBrenny/Web-Dev-and-Security | dff903be92838b14f7126dd1f7092922b86bf2cc | e4abb96dc24e606704b09f5acdd2684d6d5d577d | refs/heads/main | 2023-06-17T08:33:35.176024 | 2021-06-15T05:07:20 | 2021-06-15T05:07:20 | 343,603,444 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 656 | sce | listingrow.sce | <div class="row
[[?= link == 'true' ]]
linkedRow
[[?==]]
" target="/listings/[[item.id]]">
<div class="cell center"><img src="/assets/img/products/[[item.image]]" alt="Preview Image"></div>
<div class="cell center">[[item.name]]</div>
<div class="cell center">[[item.description]]</div>
<div class="cell center">$[[item.cost]]</div>
<div class="cell center">[[item.seller.name]]</div>
<div class="cell center" style="width:2em;">
[[?= showAddButton == "true" ]]
<div class="btn white" style="padding:0.55rem;" action="addToCart" target="[[item.id]]">Add</div>
[[?==]]
</div>
</div> |
7d8b70c61cec20ad81d409382d1911ea2b5d4220 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/phasez/phasez2.sce | f83b425f9af9f84d89634fae20865a60cac30f1b | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 315 | sce | phasez2.sce | //i/p args b and a are matrices
b=[1 2 3; 5 6 7];
a=[2 3 4;5 7 8];
n=10;
[phi,w] = phasez(b,a,n);
disp(phi);
disp(w);
//output
// !--error 4
//Undefined variable: cas
//at line 36 of function phasez called by :
//[phi,w] = phasez(b,a,n);
//at line 4 of exec file called by :
//!!/phasez2.sce', -1
|
839145323e800e1d5bdffb8fe328be2ff7b446bf | 31cfd6fac62ce1e0f8bb81f96db3978b301d4fd2 | /Raízes (zero de funções reais)/Pegaso/pegaso.sci | bd9f9fd8224f46dd2c8833d7abdceb99c1782927 | [] | no_license | PierreVieira/Scilab_Programs | 2205084b7356cf9ab68e8b04525e55fd7e29636c | 63d717f04db929c81dc1ff7fa9eb886f3c6b6a8c | refs/heads/master | 2020-09-09T00:59:34.924700 | 2020-03-17T18:46:50 | 2020-03-17T18:46:50 | 221,296,397 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,101 | sci | pegaso.sci | /*
Objetivo: Calcular a raiz de uma equação pelo método pégaso
Parâmetros de entrada: a, b, Toler, IterMax
Parâmetros de saída: Raiz, Iter, CondErro
*/
function [Raiz, Iter, CondErro] = Pegaso(a, b, Toler, IterMax)
deff('y = f(x)', 'y = 2*x^3 - cos(x+1) - 3')
Fa = f(a)
Fb = f(b)
x = b
Fx = Fb
Iter = 0
printf("Iter\ta\tFa\tb\tFb\tx\tFx\tDeltaX\n")
while 1 do
DeltaX = -Fx/(Fb - Fa)*(b-a)
x = x + DeltaX
Fx = f(x) // Avaliar a função em x
printf("%d\t%f\t%f\t%f\t%f\t%f\t%f\t%f\n", Iter, a, Fa, b, Fb, x, Fx, DeltaX)
if abs(DeltaX) <= Toler & abs(Fx) <= Toler | Iter >= IterMax then
break
end
if Fx * Fb < 0 then
a = b
Fa = Fb
else
Fa = Fa * Fb /(Fb + Fx)
end
b = x
Fb = Fx
Iter = Iter + 1
end
Raiz = x
//Teste de convergência
if abs (DeltaX) <= Toler & abs(Fx) <= Toler then
CondErro = 0
else
CondErro = 1
end
endfunction
|
64e3b6cd213d91390eecf22269bba7e27ce333ca | 449d555969bfd7befe906877abab098c6e63a0e8 | /1793/CH10/EX10.1/10q1.sce | 81acaf8c56786bf5624e5b909a3e7798b156f28f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 489 | sce | 10q1.sce | clc
//initialisation of variables
sx= 2000 //lb/ft^3
sy= 2500 //lb/ft^3
T= 800 //lb/ft^3
t= 0.348//radians
//calculations
s1= (sx+sy)/2+sqrt(((sy-sx)/2)^2+T^2)
s2= (sx+sy)/2-sqrt(((sy-sx)/2)^2+T^2)
sn= (sx+sy)/2+(sy-sx)*cos(2*t)/2-T*sin(2*t)
Tn= (sy-sx)*sin(2*t)/2+T*cos(2*t)
//results
printf ('principle stress s1 = % 2f lb/ft^3 ',s1)
printf ('principle stress s2 = % 2f lb/ft^3 ',s2)
printf ('normal stress = % 2f lb/ft^3 ',sn)
printf ('shear stress = % 2f lb/ft^3 ',Tn)
|
29ff21e38182300a73303d0e44e8553d8988e3a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1040/CH7/EX7.1/Chapter7_Ex1.sce | d3f4bfd4956595bdea8cbc5cf8eeaace8bcd3e2f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,356 | sce | Chapter7_Ex1.sce | //Harriot P.,2003,Chemical Reactor Design (I-Edition) Marcel Dekker,Inc.,USA,pp 436.
//Chapter-7 Ex7.1 Pg No.260
//Title:Overall Reaction Rate Coefficient, Percent Resistance, Reaction Volume and Reactor Size
//===========================================================================================================
clear
clc
// COMMON INPUT
k2=8.5;//Reaction rate constant (L/mol-sec)
T=50;//Reaction condition temperature(°C)
P=2;//Reaction Pressure (atm)
H_O2=8*10^4;// Solubility (atm/mol fraction)
F=17000//Feed rate (L/hr)
C_B_feed=1.6;//Feed concentration(M)
C_B_product=0.8;//Product concentration(M)
k_L_a=900;//Liquid film mass transfer coefficient(hr-1)
k_g_a=80;//Gas film mass transfer coefficient(mol/hr L atm)
Epsilon=0.1;//Porosity
percent_inc=0.2;//Percentage excess required for reactor volume
//CALCULATION (Ex7.1.a)
H_O2_conv=H_O2*18/1000;// Convert (atm L/mole O2)
k_L_a_by_H=k_L_a/H_O2_conv;
reaction_resistance=H_O2_conv/(k2*C_B_product*(1-Epsilon)*3600);
Kg_a=1/((1/k_g_a)+(1/k_L_a_by_H)+(reaction_resistance));//Refer equation7.10
gasfilm_resistance_per=((1/k_g_a)/(1/Kg_a))*100;
liq_film_resistance_per=((1/k_L_a_by_H)/(1/Kg_a))*100;
reaction_resistance_per=((reaction_resistance)/(1/Kg_a))*100;
//CALCULATION (Ex7.1.b)
delta_C_B=C_B_feed-C_B_product;
mol_O2_needed=F*delta_C_B/4;
N_air=100;//Assuming 100 mole of feed air
f_O2=0.209;//Fraction of O2
f_N2=1-f_O2;//Fraction of N2
N_O2_in=N_air*f_O2;
N_N2_in=N_air*f_N2;
N_O2_out=N_O2_in/2;//Half of O2 fed
N_N2_out=N_N2_in;
N_air_out=N_N2_out+N_O2_out;
P_O2_out=P*(N_O2_out/N_air_out);
P_O2_in=P*(N_O2_in/N_air);
P_O2_bar=(P_O2_in-P_O2_out)/(log(P_O2_in/P_O2_out));//Log mean Pressure
volume=mol_O2_needed/(Kg_a*P_O2_bar);
reactor_vol=volume+volume*percent_inc;
volume_gal=volume*0.264;
reactor_vol_gal=reactor_vol*0.264;
//OUTPUT (Ex7.1.a)
mprintf('\n OUTPUT Ex7.1.a');
mprintf('\n==========================================================');
mprintf('\nThe percentage gas-film resistance : %0.1f%%',gasfilm_resistance_per);
mprintf('\nThe percentage liquid-film resistance: %0.1f%%',liq_film_resistance_per);
mprintf('\nThe percentage chemical reaction resistance: %0.1f%%',reaction_resistance_per);
//OUTPUT (Ex7.1.b)
mprintf('\n\n\n OUTPUT Ex7.1.b');
mprintf('\n==========================================================');
mprintf('\n Reaction volume calculated : %0.0f L ',volume );
mprintf('\n Reactor size to be chosen : %0.0f L',reactor_vol);
// FILE OUTPUT
fid= mopen('.\Chapter7-Ex1-Output.txt','w');
mfprintf(fid,'\n OUTPUT Ex7.1.a');
mfprintf(fid,'\n==========================================================');
mfprintf(fid,'\nThe percentage gas-film resistance : %0.1f%%',gasfilm_resistance_per);
mfprintf(fid,'\nThe percentage liquid-film resistance: %0.1f%%',liq_film_resistance_per);
mfprintf(fid,'\nThe percentage chemical reaction resistance: %0.1f%%',reaction_resistance_per);
mfprintf(fid,'\n\n\n OUTPUT Ex7.1.b');
mfprintf(fid,'\n==========================================================');
mfprintf(fid,'\n Reaction volume calculated : %0.0f L ',volume );
mfprintf(fid,'\n Reactor size to be chosen : %0.0f L',reactor_vol);
mclose(fid);
//===================================================END OF PROGRAM======================================================
|
4351214a5721f3b6b2a428be727a360fbe84c082 | 8c802fb8c6a8dc8ed61222ce257eb61f580a462e | /projects/07/MemoryAccess/PointerTest/PointerTestVME.tst | ad32d2574ae057eb36bb6f4efacfd9e1522b414f | [] | no_license | radavis/nand2tetris | 0703b55695378cd8ec279599a34114cbfba48ef7 | 021ba06dbbe203206b44360f162a0d64e2dc41f9 | refs/heads/master | 2021-01-01T20:05:37.036752 | 2015-05-16T19:13:31 | 2015-05-16T19:13:31 | 34,955,667 | 8 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 318 | tst | PointerTestVME.tst | // File name: projects/07/MemoryAccess/PointerTest/PointerTestVME.tst
load PointerTest.vm,
output-file PointerTest.out,
compare-to PointerTest.cmp,
output-list RAM[256]%D1.6.1 RAM[3]%D1.6.1 RAM[4]%D1.6.1
RAM[3032]%D1.6.1 RAM[3046]%D1.6.1;
set RAM[0] 256,
repeat 15 {
vmstep;
}
output;
|
05b911d285dfcc38c5ebff2534d967c4f509342e | c565d26060d56f516d954d4b378b8699c31a71ef | /Vikas_self/codes/SelfTuning_Vikas/PIControllerFandisturbance/piselftunedwithDS30to45.sce | e78954caf6317803f691b8a78dd1d9cf3a7519f6 | [] | no_license | rupakrokade/sbhs-manual | 26d6e458c5d6aaba858c3cb2d07ff646d90645ce | 5aad4829d5ba1cdf9cc62d72f794fab2b56dd786 | refs/heads/master | 2021-01-23T06:25:53.904684 | 2015-10-24T11:57:04 | 2015-10-24T11:57:04 | 5,258,478 | 0 | 0 | null | 2012-11-16T11:45:07 | 2012-08-01T11:36:17 | Scilab | UTF-8 | Scilab | false | false | 36,000 | sce | piselftunedwithDS30to45.sce | 0.100E+00 0.000E+00 0.000E+00 0.100E+03
0.110E+01 0.191E+02 0.000E+00 0.100E+03
0.210E+01 0.191E+02 0.000E+00 0.100E+03
0.310E+01 0.191E+02 0.281E+01 0.100E+03
0.410E+01 0.191E+02 0.563E+01 0.100E+03
0.510E+01 0.191E+02 0.844E+01 0.100E+03
0.610E+01 0.190E+02 0.113E+02 0.100E+03
0.710E+01 0.190E+02 0.152E+02 0.100E+03
0.810E+01 0.190E+02 0.180E+02 0.100E+03
0.910E+01 0.191E+02 0.209E+02 0.100E+03
0.101E+02 0.190E+02 0.226E+02 0.100E+03
0.111E+02 0.191E+02 0.265E+02 0.100E+03
0.121E+02 0.191E+02 0.283E+02 0.100E+03
0.131E+02 0.193E+02 0.311E+02 0.100E+03
0.141E+02 0.193E+02 0.318E+02 0.100E+03
0.151E+02 0.193E+02 0.346E+02 0.100E+03
0.161E+02 0.194E+02 0.373E+02 0.100E+03
0.171E+02 0.195E+02 0.390E+02 0.100E+03
0.181E+02 0.196E+02 0.390E+02 0.100E+03
0.191E+02 0.197E+02 0.390E+02 0.100E+03
0.201E+02 0.198E+02 0.390E+02 0.100E+03
0.211E+02 0.201E+02 0.390E+02 0.100E+03
0.221E+02 0.203E+02 0.386E+02 0.100E+03
0.231E+02 0.205E+02 0.390E+02 0.100E+03
0.241E+02 0.208E+02 0.390E+02 0.100E+03
0.251E+02 0.210E+02 0.385E+02 0.100E+03
0.261E+02 0.213E+02 0.389E+02 0.100E+03
0.271E+02 0.216E+02 0.383E+02 0.100E+03
0.281E+02 0.218E+02 0.377E+02 0.100E+03
0.291E+02 0.222E+02 0.379E+02 0.100E+03
0.301E+02 0.225E+02 0.365E+02 0.100E+03
0.311E+02 0.229E+02 0.358E+02 0.100E+03
0.321E+02 0.231E+02 0.343E+02 0.100E+03
0.331E+02 0.234E+02 0.343E+02 0.100E+03
0.341E+02 0.237E+02 0.336E+02 0.100E+03
0.351E+02 0.240E+02 0.328E+02 0.100E+03
0.361E+02 0.241E+02 0.320E+02 0.100E+03
0.371E+02 0.246E+02 0.327E+02 0.100E+03
0.381E+02 0.247E+02 0.304E+02 0.100E+03
0.391E+02 0.250E+02 0.310E+02 0.100E+03
0.401E+02 0.251E+02 0.302E+02 0.100E+03
0.411E+02 0.253E+02 0.307E+02 0.100E+03
0.421E+02 0.255E+02 0.305E+02 0.100E+03
0.431E+02 0.255E+02 0.303E+02 0.100E+03
0.441E+02 0.257E+02 0.314E+02 0.100E+03
0.451E+02 0.259E+02 0.312E+02 0.100E+03
0.461E+02 0.259E+02 0.309E+02 0.100E+03
0.471E+02 0.260E+02 0.320E+02 0.100E+03
0.481E+02 0.261E+02 0.324E+02 0.100E+03
0.491E+02 0.262E+02 0.328E+02 0.100E+03
0.501E+02 0.262E+02 0.332E+02 0.100E+03
0.511E+02 0.265E+02 0.342E+02 0.100E+03
0.521E+02 0.265E+02 0.333E+02 0.100E+03
0.531E+02 0.266E+02 0.342E+02 0.100E+03
0.541E+02 0.267E+02 0.346E+02 0.100E+03
0.551E+02 0.268E+02 0.349E+02 0.100E+03
0.561E+02 0.269E+02 0.352E+02 0.100E+03
0.571E+02 0.270E+02 0.355E+02 0.100E+03
0.581E+02 0.273E+02 0.357E+02 0.100E+03
0.591E+02 0.274E+02 0.347E+02 0.100E+03
0.601E+02 0.275E+02 0.350E+02 0.100E+03
0.611E+02 0.276E+02 0.352E+02 0.100E+03
0.621E+02 0.277E+02 0.354E+02 0.100E+03
0.631E+02 0.279E+02 0.356E+02 0.100E+03
0.641E+02 0.280E+02 0.351E+02 0.100E+03
0.651E+02 0.281E+02 0.353E+02 0.100E+03
0.661E+02 0.282E+02 0.355E+02 0.100E+03
0.671E+02 0.283E+02 0.356E+02 0.100E+03
0.681E+02 0.283E+02 0.357E+02 0.100E+03
0.691E+02 0.284E+02 0.364E+02 0.100E+03
0.701E+02 0.286E+02 0.366E+02 0.100E+03
0.711E+02 0.286E+02 0.361E+02 0.100E+03
0.721E+02 0.288E+02 0.367E+02 0.100E+03
0.731E+02 0.288E+02 0.362E+02 0.100E+03
0.741E+02 0.289E+02 0.369E+02 0.100E+03
0.751E+02 0.288E+02 0.370E+02 0.100E+03
0.761E+02 0.289E+02 0.382E+02 0.100E+03
0.771E+02 0.290E+02 0.382E+02 0.100E+03
0.781E+02 0.290E+02 0.383E+02 0.100E+03
0.791E+02 0.290E+02 0.389E+02 0.100E+03
0.801E+02 0.293E+02 0.390E+02 0.100E+03
0.811E+02 0.294E+02 0.379E+02 0.100E+03
0.821E+02 0.294E+02 0.379E+02 0.100E+03
0.831E+02 0.295E+02 0.385E+02 0.100E+03
0.841E+02 0.296E+02 0.385E+02 0.100E+03
0.851E+02 0.296E+02 0.385E+02 0.100E+03
0.861E+02 0.297E+02 0.390E+02 0.100E+03
0.871E+02 0.297E+02 0.390E+02 0.100E+03
0.881E+02 0.298E+02 0.390E+02 0.100E+03
0.891E+02 0.300E+02 0.390E+02 0.100E+03
0.901E+02 0.301E+02 0.384E+02 0.100E+03
0.911E+02 0.301E+02 0.383E+02 0.100E+03
0.921E+02 0.302E+02 0.388E+02 0.100E+03
0.931E+02 0.302E+02 0.388E+02 0.100E+03
0.941E+02 0.304E+02 0.390E+02 0.100E+03
0.951E+02 0.304E+02 0.384E+02 0.100E+03
0.961E+02 0.305E+02 0.388E+02 0.100E+03
0.971E+02 0.305E+02 0.387E+02 0.100E+03
0.981E+02 0.305E+02 0.390E+02 0.100E+03
0.991E+02 0.308E+02 0.390E+02 0.100E+03
0.100E+03 0.308E+02 0.378E+02 0.100E+03
0.101E+03 0.309E+02 0.382E+02 0.100E+03
0.102E+03 0.309E+02 0.381E+02 0.100E+03
0.103E+03 0.309E+02 0.385E+02 0.100E+03
0.104E+03 0.309E+02 0.389E+02 0.100E+03
0.105E+03 0.310E+02 0.390E+02 0.100E+03
0.106E+03 0.310E+02 0.389E+02 0.100E+03
0.107E+03 0.312E+02 0.390E+02 0.100E+03
0.108E+03 0.311E+02 0.383E+02 0.100E+03
0.109E+03 0.312E+02 0.390E+02 0.100E+03
0.110E+03 0.314E+02 0.388E+02 0.100E+03
0.111E+03 0.315E+02 0.382E+02 0.100E+03
0.112E+03 0.315E+02 0.380E+02 0.100E+03
0.113E+03 0.315E+02 0.383E+02 0.100E+03
0.114E+03 0.315E+02 0.386E+02 0.100E+03
0.115E+03 0.316E+02 0.390E+02 0.100E+03
0.116E+03 0.316E+02 0.388E+02 0.100E+03
0.117E+03 0.316E+02 0.390E+02 0.100E+03
0.118E+03 0.316E+02 0.390E+02 0.100E+03
0.119E+03 0.317E+02 0.390E+02 0.100E+03
0.120E+03 0.318E+02 0.388E+02 0.100E+03
0.121E+03 0.317E+02 0.386E+02 0.100E+03
0.122E+03 0.318E+02 0.390E+02 0.100E+03
0.123E+03 0.319E+02 0.388E+02 0.100E+03
0.124E+03 0.319E+02 0.386E+02 0.100E+03
0.125E+03 0.320E+02 0.389E+02 0.100E+03
0.126E+03 0.319E+02 0.387E+02 0.100E+03
0.127E+03 0.320E+02 0.390E+02 0.100E+03
0.128E+03 0.319E+02 0.388E+02 0.100E+03
0.129E+03 0.320E+02 0.390E+02 0.100E+03
0.130E+03 0.322E+02 0.388E+02 0.100E+03
0.131E+03 0.320E+02 0.380E+02 0.100E+03
0.132E+03 0.320E+02 0.390E+02 0.100E+03
0.133E+03 0.320E+02 0.390E+02 0.100E+03
0.134E+03 0.320E+02 0.390E+02 0.100E+03
0.135E+03 0.320E+02 0.390E+02 0.100E+03
0.136E+03 0.320E+02 0.390E+02 0.100E+03
0.137E+03 0.322E+02 0.390E+02 0.100E+03
0.138E+03 0.320E+02 0.383E+02 0.100E+03
0.139E+03 0.320E+02 0.390E+02 0.100E+03
0.140E+03 0.322E+02 0.390E+02 0.100E+03
0.141E+03 0.322E+02 0.383E+02 0.100E+03
0.142E+03 0.323E+02 0.385E+02 0.100E+03
0.143E+03 0.322E+02 0.383E+02 0.100E+03
0.144E+03 0.323E+02 0.390E+02 0.100E+03
0.145E+03 0.323E+02 0.388E+02 0.100E+03
0.146E+03 0.325E+02 0.390E+02 0.100E+03
0.147E+03 0.324E+02 0.382E+02 0.100E+03
0.148E+03 0.324E+02 0.390E+02 0.100E+03
0.149E+03 0.324E+02 0.390E+02 0.100E+03
0.150E+03 0.324E+02 0.390E+02 0.100E+03
0.151E+03 0.325E+02 0.390E+02 0.100E+03
0.152E+03 0.325E+02 0.387E+02 0.100E+03
0.153E+03 0.326E+02 0.390E+02 0.100E+03
0.154E+03 0.326E+02 0.387E+02 0.100E+03
0.155E+03 0.326E+02 0.389E+02 0.100E+03
0.156E+03 0.327E+02 0.390E+02 0.100E+03
0.157E+03 0.329E+02 0.387E+02 0.100E+03
0.158E+03 0.329E+02 0.379E+02 0.100E+03
0.159E+03 0.329E+02 0.381E+02 0.100E+03
0.160E+03 0.326E+02 0.383E+02 0.100E+03
0.161E+03 0.326E+02 0.390E+02 0.100E+03
0.162E+03 0.326E+02 0.390E+02 0.100E+03
0.163E+03 0.326E+02 0.390E+02 0.100E+03
0.164E+03 0.327E+02 0.390E+02 0.100E+03
0.165E+03 0.327E+02 0.387E+02 0.100E+03
0.166E+03 0.327E+02 0.389E+02 0.100E+03
0.167E+03 0.327E+02 0.390E+02 0.100E+03
0.168E+03 0.327E+02 0.390E+02 0.100E+03
0.169E+03 0.329E+02 0.390E+02 0.100E+03
0.170E+03 0.329E+02 0.382E+02 0.100E+03
0.171E+03 0.329E+02 0.384E+02 0.100E+03
0.172E+03 0.329E+02 0.386E+02 0.100E+03
0.173E+03 0.330E+02 0.388E+02 0.100E+03
0.174E+03 0.329E+02 0.385E+02 0.100E+03
0.175E+03 0.330E+02 0.390E+02 0.100E+03
0.176E+03 0.330E+02 0.387E+02 0.100E+03
0.177E+03 0.331E+02 0.389E+02 0.100E+03
0.178E+03 0.330E+02 0.386E+02 0.100E+03
0.179E+03 0.330E+02 0.390E+02 0.100E+03
0.180E+03 0.330E+02 0.390E+02 0.100E+03
0.181E+03 0.331E+02 0.390E+02 0.100E+03
0.182E+03 0.330E+02 0.387E+02 0.100E+03
0.183E+03 0.331E+02 0.390E+02 0.100E+03
0.184E+03 0.330E+02 0.387E+02 0.100E+03
0.185E+03 0.329E+02 0.390E+02 0.100E+03
0.186E+03 0.329E+02 0.390E+02 0.100E+03
0.187E+03 0.330E+02 0.390E+02 0.100E+03
0.188E+03 0.329E+02 0.387E+02 0.100E+03
0.189E+03 0.329E+02 0.390E+02 0.100E+03
0.190E+03 0.329E+02 0.390E+02 0.100E+03
0.191E+03 0.330E+02 0.390E+02 0.100E+03
0.192E+03 0.330E+02 0.387E+02 0.100E+03
0.193E+03 0.331E+02 0.389E+02 0.100E+03
0.194E+03 0.331E+02 0.386E+02 0.100E+03
0.195E+03 0.330E+02 0.387E+02 0.100E+03
0.196E+03 0.331E+02 0.390E+02 0.100E+03
0.197E+03 0.331E+02 0.387E+02 0.100E+03
0.198E+03 0.331E+02 0.389E+02 0.100E+03
0.199E+03 0.332E+02 0.390E+02 0.100E+03
0.200E+03 0.331E+02 0.387E+02 0.100E+03
0.201E+03 0.331E+02 0.390E+02 0.100E+03
0.202E+03 0.332E+02 0.390E+02 0.100E+03
0.203E+03 0.333E+02 0.387E+02 0.100E+03
0.204E+03 0.333E+02 0.384E+02 0.100E+03
0.205E+03 0.332E+02 0.385E+02 0.100E+03
0.206E+03 0.332E+02 0.390E+02 0.100E+03
0.207E+03 0.332E+02 0.390E+02 0.100E+03
0.208E+03 0.333E+02 0.390E+02 0.100E+03
0.209E+03 0.334E+02 0.387E+02 0.100E+03
0.210E+03 0.333E+02 0.383E+02 0.100E+03
0.211E+03 0.334E+02 0.390E+02 0.100E+03
0.212E+03 0.333E+02 0.386E+02 0.100E+03
0.213E+03 0.333E+02 0.390E+02 0.100E+03
0.214E+03 0.333E+02 0.390E+02 0.100E+03
0.215E+03 0.333E+02 0.390E+02 0.100E+03
0.216E+03 0.334E+02 0.390E+02 0.100E+03
0.217E+03 0.334E+02 0.387E+02 0.100E+03
0.218E+03 0.334E+02 0.388E+02 0.100E+03
0.219E+03 0.334E+02 0.390E+02 0.100E+03
0.220E+03 0.336E+02 0.390E+02 0.100E+03
0.221E+03 0.337E+02 0.382E+02 0.100E+03
0.222E+03 0.337E+02 0.378E+02 0.100E+03
0.223E+03 0.337E+02 0.379E+02 0.100E+03
0.224E+03 0.337E+02 0.381E+02 0.100E+03
0.225E+03 0.339E+02 0.382E+02 0.100E+03
0.226E+03 0.337E+02 0.373E+02 0.100E+03
0.227E+03 0.337E+02 0.384E+02 0.100E+03
0.228E+03 0.337E+02 0.385E+02 0.100E+03
0.229E+03 0.337E+02 0.386E+02 0.100E+03
0.230E+03 0.338E+02 0.387E+02 0.100E+03
0.231E+03 0.337E+02 0.384E+02 0.100E+03
0.232E+03 0.336E+02 0.390E+02 0.100E+03
0.233E+03 0.337E+02 0.390E+02 0.100E+03
0.234E+03 0.338E+02 0.386E+02 0.100E+03
0.235E+03 0.337E+02 0.383E+02 0.100E+03
0.236E+03 0.337E+02 0.389E+02 0.100E+03
0.237E+03 0.337E+02 0.390E+02 0.100E+03
0.238E+03 0.337E+02 0.390E+02 0.100E+03
0.239E+03 0.337E+02 0.390E+02 0.100E+03
0.240E+03 0.337E+02 0.390E+02 0.100E+03
0.241E+03 0.338E+02 0.390E+02 0.100E+03
0.242E+03 0.338E+02 0.386E+02 0.100E+03
0.243E+03 0.338E+02 0.387E+02 0.100E+03
0.244E+03 0.339E+02 0.389E+02 0.100E+03
0.245E+03 0.337E+02 0.385E+02 0.100E+03
0.246E+03 0.337E+02 0.390E+02 0.100E+03
0.247E+03 0.337E+02 0.390E+02 0.100E+03
0.248E+03 0.338E+02 0.390E+02 0.100E+03
0.249E+03 0.338E+02 0.386E+02 0.100E+03
0.250E+03 0.339E+02 0.387E+02 0.100E+03
0.251E+03 0.338E+02 0.384E+02 0.100E+03
0.252E+03 0.337E+02 0.389E+02 0.100E+03
0.253E+03 0.337E+02 0.390E+02 0.100E+03
0.254E+03 0.338E+02 0.390E+02 0.100E+03
0.255E+03 0.338E+02 0.386E+02 0.100E+03
0.256E+03 0.338E+02 0.387E+02 0.100E+03
0.257E+03 0.338E+02 0.389E+02 0.100E+03
0.258E+03 0.337E+02 0.390E+02 0.100E+03
0.259E+03 0.337E+02 0.390E+02 0.100E+03
0.260E+03 0.337E+02 0.390E+02 0.100E+03
0.261E+03 0.339E+02 0.390E+02 0.100E+03
0.262E+03 0.339E+02 0.382E+02 0.100E+03
0.263E+03 0.339E+02 0.383E+02 0.100E+03
0.264E+03 0.338E+02 0.384E+02 0.100E+03
0.265E+03 0.339E+02 0.389E+02 0.100E+03
0.266E+03 0.338E+02 0.386E+02 0.100E+03
0.267E+03 0.338E+02 0.390E+02 0.100E+03
0.268E+03 0.338E+02 0.390E+02 0.100E+03
0.269E+03 0.339E+02 0.390E+02 0.100E+03
0.270E+03 0.338E+02 0.386E+02 0.100E+03
0.271E+03 0.339E+02 0.390E+02 0.100E+03
0.272E+03 0.339E+02 0.386E+02 0.100E+03
0.273E+03 0.339E+02 0.387E+02 0.100E+03
0.274E+03 0.339E+02 0.388E+02 0.100E+03
0.275E+03 0.339E+02 0.389E+02 0.100E+03
0.276E+03 0.339E+02 0.390E+02 0.100E+03
0.277E+03 0.339E+02 0.390E+02 0.100E+03
0.278E+03 0.340E+02 0.390E+02 0.100E+03
0.279E+03 0.340E+02 0.386E+02 0.100E+03
0.280E+03 0.340E+02 0.387E+02 0.100E+03
0.281E+03 0.340E+02 0.388E+02 0.100E+03
0.282E+03 0.340E+02 0.389E+02 0.100E+03
0.283E+03 0.339E+02 0.390E+02 0.100E+03
0.284E+03 0.339E+02 0.390E+02 0.100E+03
0.285E+03 0.339E+02 0.390E+02 0.100E+03
0.286E+03 0.339E+02 0.390E+02 0.100E+03
0.287E+03 0.339E+02 0.390E+02 0.100E+03
0.288E+03 0.338E+02 0.390E+02 0.100E+03
0.289E+03 0.338E+02 0.390E+02 0.100E+03
0.290E+03 0.340E+02 0.390E+02 0.100E+03
0.291E+03 0.339E+02 0.382E+02 0.100E+03
0.292E+03 0.339E+02 0.387E+02 0.100E+03
0.293E+03 0.339E+02 0.388E+02 0.100E+03
0.294E+03 0.340E+02 0.389E+02 0.100E+03
0.295E+03 0.339E+02 0.385E+02 0.100E+03
0.296E+03 0.340E+02 0.390E+02 0.100E+03
0.297E+03 0.340E+02 0.386E+02 0.100E+03
0.298E+03 0.340E+02 0.387E+02 0.100E+03
0.299E+03 0.340E+02 0.388E+02 0.100E+03
0.300E+03 0.341E+02 0.389E+02 0.500E+02
0.301E+03 0.341E+02 0.385E+02 0.500E+02
0.302E+03 0.343E+02 0.386E+02 0.500E+02
0.303E+03 0.340E+02 0.377E+02 0.500E+02
0.304E+03 0.341E+02 0.390E+02 0.500E+02
0.305E+03 0.344E+02 0.386E+02 0.500E+02
0.306E+03 0.345E+02 0.373E+02 0.500E+02
0.307E+03 0.346E+02 0.369E+02 0.500E+02
0.308E+03 0.348E+02 0.365E+02 0.500E+02
0.309E+03 0.351E+02 0.356E+02 0.500E+02
0.310E+03 0.352E+02 0.342E+02 0.500E+02
0.311E+03 0.354E+02 0.338E+02 0.500E+02
0.312E+03 0.357E+02 0.328E+02 0.500E+02
0.313E+03 0.359E+02 0.315E+02 0.500E+02
0.314E+03 0.361E+02 0.305E+02 0.500E+02
0.315E+03 0.364E+02 0.296E+02 0.500E+02
0.316E+03 0.365E+02 0.282E+02 0.500E+02
0.317E+03 0.367E+02 0.276E+02 0.500E+02
0.318E+03 0.368E+02 0.266E+02 0.500E+02
0.319E+03 0.369E+02 0.261E+02 0.500E+02
0.320E+03 0.369E+02 0.255E+02 0.500E+02
0.321E+03 0.370E+02 0.253E+02 0.500E+02
0.322E+03 0.369E+02 0.248E+02 0.500E+02
0.323E+03 0.367E+02 0.250E+02 0.500E+02
0.324E+03 0.368E+02 0.257E+02 0.500E+02
0.325E+03 0.367E+02 0.252E+02 0.500E+02
0.326E+03 0.368E+02 0.255E+02 0.500E+02
0.327E+03 0.367E+02 0.249E+02 0.500E+02
0.328E+03 0.367E+02 0.252E+02 0.500E+02
0.329E+03 0.362E+02 0.250E+02 0.500E+02
0.330E+03 0.366E+02 0.271E+02 0.500E+02
0.331E+03 0.366E+02 0.253E+02 0.500E+02
0.332E+03 0.366E+02 0.251E+02 0.500E+02
0.333E+03 0.364E+02 0.250E+02 0.500E+02
0.334E+03 0.364E+02 0.257E+02 0.500E+02
0.335E+03 0.364E+02 0.256E+02 0.500E+02
0.336E+03 0.362E+02 0.255E+02 0.500E+02
0.337E+03 0.362E+02 0.263E+02 0.500E+02
0.338E+03 0.362E+02 0.262E+02 0.500E+02
0.339E+03 0.361E+02 0.261E+02 0.500E+02
0.340E+03 0.362E+02 0.264E+02 0.500E+02
0.341E+03 0.362E+02 0.259E+02 0.500E+02
0.342E+03 0.361E+02 0.258E+02 0.500E+02
0.343E+03 0.360E+02 0.261E+02 0.500E+02
0.344E+03 0.358E+02 0.265E+02 0.500E+02
0.345E+03 0.358E+02 0.273E+02 0.500E+02
0.346E+03 0.359E+02 0.272E+02 0.500E+02
0.347E+03 0.358E+02 0.267E+02 0.500E+02
0.348E+03 0.358E+02 0.271E+02 0.500E+02
0.349E+03 0.357E+02 0.270E+02 0.500E+02
0.350E+03 0.357E+02 0.274E+02 0.500E+02
0.351E+03 0.355E+02 0.273E+02 0.500E+02
0.352E+03 0.357E+02 0.281E+02 0.500E+02
0.353E+03 0.357E+02 0.272E+02 0.500E+02
0.354E+03 0.357E+02 0.272E+02 0.500E+02
0.355E+03 0.355E+02 0.271E+02 0.500E+02
0.356E+03 0.355E+02 0.279E+02 0.500E+02
0.357E+03 0.357E+02 0.279E+02 0.500E+02
0.358E+03 0.355E+02 0.270E+02 0.500E+02
0.359E+03 0.358E+02 0.278E+02 0.500E+02
0.360E+03 0.357E+02 0.264E+02 0.500E+02
0.361E+03 0.358E+02 0.268E+02 0.500E+02
0.362E+03 0.357E+02 0.263E+02 0.500E+02
0.363E+03 0.357E+02 0.267E+02 0.500E+02
0.364E+03 0.357E+02 0.266E+02 0.500E+02
0.365E+03 0.357E+02 0.266E+02 0.500E+02
0.366E+03 0.357E+02 0.265E+02 0.500E+02
0.367E+03 0.355E+02 0.264E+02 0.500E+02
0.368E+03 0.355E+02 0.273E+02 0.500E+02
0.369E+03 0.357E+02 0.272E+02 0.500E+02
0.370E+03 0.355E+02 0.263E+02 0.500E+02
0.371E+03 0.357E+02 0.271E+02 0.500E+02
0.372E+03 0.355E+02 0.262E+02 0.500E+02
0.373E+03 0.357E+02 0.271E+02 0.500E+02
0.374E+03 0.357E+02 0.261E+02 0.500E+02
0.375E+03 0.357E+02 0.261E+02 0.500E+02
0.376E+03 0.358E+02 0.260E+02 0.500E+02
0.377E+03 0.358E+02 0.255E+02 0.500E+02
0.378E+03 0.358E+02 0.254E+02 0.500E+02
0.379E+03 0.359E+02 0.254E+02 0.500E+02
0.380E+03 0.358E+02 0.249E+02 0.500E+02
0.381E+03 0.358E+02 0.252E+02 0.500E+02
0.382E+03 0.358E+02 0.252E+02 0.500E+02
0.383E+03 0.358E+02 0.251E+02 0.500E+02
0.384E+03 0.357E+02 0.250E+02 0.500E+02
0.385E+03 0.357E+02 0.254E+02 0.500E+02
0.386E+03 0.357E+02 0.253E+02 0.500E+02
0.387E+03 0.357E+02 0.253E+02 0.500E+02
0.388E+03 0.355E+02 0.252E+02 0.500E+02
0.389E+03 0.357E+02 0.261E+02 0.500E+02
0.390E+03 0.355E+02 0.251E+02 0.500E+02
0.391E+03 0.355E+02 0.260E+02 0.500E+02
0.392E+03 0.355E+02 0.259E+02 0.500E+02
0.393E+03 0.355E+02 0.259E+02 0.500E+02
0.394E+03 0.355E+02 0.258E+02 0.500E+02
0.395E+03 0.357E+02 0.258E+02 0.500E+02
0.396E+03 0.354E+02 0.249E+02 0.500E+02
0.397E+03 0.355E+02 0.262E+02 0.500E+02
0.398E+03 0.355E+02 0.257E+02 0.500E+02
0.399E+03 0.355E+02 0.256E+02 0.500E+02
0.400E+03 0.355E+02 0.256E+02 0.500E+02
0.401E+03 0.353E+02 0.255E+02 0.500E+02
0.402E+03 0.353E+02 0.264E+02 0.500E+02
0.403E+03 0.353E+02 0.264E+02 0.500E+02
0.404E+03 0.354E+02 0.264E+02 0.500E+02
0.405E+03 0.355E+02 0.259E+02 0.500E+02
0.406E+03 0.355E+02 0.254E+02 0.500E+02
0.407E+03 0.354E+02 0.254E+02 0.500E+02
0.408E+03 0.357E+02 0.258E+02 0.500E+02
0.409E+03 0.355E+02 0.244E+02 0.500E+02
0.410E+03 0.354E+02 0.252E+02 0.500E+02
0.411E+03 0.354E+02 0.256E+02 0.500E+02
0.412E+03 0.354E+02 0.256E+02 0.500E+02
0.413E+03 0.353E+02 0.256E+02 0.500E+02
0.414E+03 0.355E+02 0.260E+02 0.500E+02
0.415E+03 0.355E+02 0.251E+02 0.500E+02
0.416E+03 0.355E+02 0.250E+02 0.500E+02
0.417E+03 0.357E+02 0.250E+02 0.500E+02
0.418E+03 0.357E+02 0.241E+02 0.500E+02
0.419E+03 0.355E+02 0.240E+02 0.500E+02
0.420E+03 0.357E+02 0.248E+02 0.500E+02
0.421E+03 0.357E+02 0.239E+02 0.500E+02
0.422E+03 0.357E+02 0.238E+02 0.500E+02
0.423E+03 0.358E+02 0.238E+02 0.500E+02
0.424E+03 0.358E+02 0.233E+02 0.500E+02
0.425E+03 0.358E+02 0.232E+02 0.500E+02
0.426E+03 0.357E+02 0.231E+02 0.500E+02
0.427E+03 0.357E+02 0.235E+02 0.500E+02
0.428E+03 0.357E+02 0.235E+02 0.500E+02
0.429E+03 0.355E+02 0.234E+02 0.500E+02
0.430E+03 0.355E+02 0.242E+02 0.500E+02
0.431E+03 0.355E+02 0.242E+02 0.500E+02
0.432E+03 0.357E+02 0.242E+02 0.500E+02
0.433E+03 0.355E+02 0.232E+02 0.500E+02
0.434E+03 0.354E+02 0.241E+02 0.500E+02
0.435E+03 0.354E+02 0.245E+02 0.500E+02
0.436E+03 0.354E+02 0.244E+02 0.500E+02
0.437E+03 0.353E+02 0.244E+02 0.500E+02
0.438E+03 0.353E+02 0.248E+02 0.500E+02
0.439E+03 0.353E+02 0.248E+02 0.500E+02
0.440E+03 0.352E+02 0.248E+02 0.500E+02
0.441E+03 0.352E+02 0.252E+02 0.500E+02
0.442E+03 0.351E+02 0.252E+02 0.500E+02
0.443E+03 0.351E+02 0.256E+02 0.500E+02
0.444E+03 0.351E+02 0.256E+02 0.500E+02
0.445E+03 0.351E+02 0.256E+02 0.500E+02
0.446E+03 0.352E+02 0.256E+02 0.500E+02
0.447E+03 0.351E+02 0.251E+02 0.500E+02
0.448E+03 0.351E+02 0.256E+02 0.500E+02
0.449E+03 0.352E+02 0.256E+02 0.500E+02
0.450E+03 0.352E+02 0.251E+02 0.500E+02
0.451E+03 0.352E+02 0.251E+02 0.500E+02
0.452E+03 0.352E+02 0.251E+02 0.500E+02
0.453E+03 0.351E+02 0.250E+02 0.500E+02
0.454E+03 0.352E+02 0.255E+02 0.500E+02
0.455E+03 0.353E+02 0.250E+02 0.500E+02
0.456E+03 0.353E+02 0.246E+02 0.500E+02
0.457E+03 0.353E+02 0.245E+02 0.500E+02
0.458E+03 0.353E+02 0.245E+02 0.500E+02
0.459E+03 0.352E+02 0.245E+02 0.500E+02
0.460E+03 0.353E+02 0.249E+02 0.500E+02
0.461E+03 0.353E+02 0.244E+02 0.500E+02
0.462E+03 0.352E+02 0.244E+02 0.500E+02
0.463E+03 0.353E+02 0.248E+02 0.500E+02
0.464E+03 0.351E+02 0.244E+02 0.500E+02
0.465E+03 0.351E+02 0.253E+02 0.500E+02
0.466E+03 0.351E+02 0.252E+02 0.500E+02
0.467E+03 0.351E+02 0.252E+02 0.500E+02
0.468E+03 0.352E+02 0.252E+02 0.500E+02
0.469E+03 0.351E+02 0.248E+02 0.500E+02
0.470E+03 0.351E+02 0.252E+02 0.500E+02
0.471E+03 0.351E+02 0.252E+02 0.500E+02
0.472E+03 0.351E+02 0.252E+02 0.500E+02
0.473E+03 0.351E+02 0.252E+02 0.500E+02
0.474E+03 0.351E+02 0.252E+02 0.500E+02
0.475E+03 0.350E+02 0.252E+02 0.500E+02
0.476E+03 0.350E+02 0.256E+02 0.500E+02
0.477E+03 0.350E+02 0.256E+02 0.500E+02
0.478E+03 0.351E+02 0.256E+02 0.500E+02
0.479E+03 0.351E+02 0.252E+02 0.500E+02
0.480E+03 0.351E+02 0.252E+02 0.500E+02
0.481E+03 0.351E+02 0.251E+02 0.500E+02
0.482E+03 0.351E+02 0.251E+02 0.500E+02
0.483E+03 0.352E+02 0.251E+02 0.500E+02
0.484E+03 0.352E+02 0.247E+02 0.500E+02
0.485E+03 0.352E+02 0.246E+02 0.500E+02
0.486E+03 0.352E+02 0.246E+02 0.500E+02
0.487E+03 0.353E+02 0.246E+02 0.500E+02
0.488E+03 0.352E+02 0.241E+02 0.500E+02
0.489E+03 0.352E+02 0.246E+02 0.500E+02
0.490E+03 0.353E+02 0.246E+02 0.500E+02
0.491E+03 0.353E+02 0.241E+02 0.500E+02
0.492E+03 0.353E+02 0.241E+02 0.500E+02
0.493E+03 0.352E+02 0.240E+02 0.500E+02
0.494E+03 0.353E+02 0.245E+02 0.500E+02
0.495E+03 0.351E+02 0.240E+02 0.500E+02
0.496E+03 0.351E+02 0.249E+02 0.500E+02
0.497E+03 0.352E+02 0.249E+02 0.500E+02
0.498E+03 0.350E+02 0.244E+02 0.500E+02
0.499E+03 0.350E+02 0.253E+02 0.500E+02
0.500E+03 0.350E+02 0.253E+02 0.500E+02
0.501E+03 0.351E+02 0.253E+02 0.500E+02
0.502E+03 0.351E+02 0.248E+02 0.500E+02
0.503E+03 0.352E+02 0.248E+02 0.500E+02
0.504E+03 0.352E+02 0.244E+02 0.500E+02
0.505E+03 0.351E+02 0.244E+02 0.500E+02
0.506E+03 0.352E+02 0.248E+02 0.500E+02
0.507E+03 0.352E+02 0.243E+02 0.500E+02
0.508E+03 0.351E+02 0.243E+02 0.500E+02
0.509E+03 0.353E+02 0.248E+02 0.500E+02
0.510E+03 0.351E+02 0.238E+02 0.500E+02
0.511E+03 0.352E+02 0.247E+02 0.500E+02
0.512E+03 0.351E+02 0.243E+02 0.500E+02
0.513E+03 0.351E+02 0.247E+02 0.500E+02
0.514E+03 0.352E+02 0.247E+02 0.500E+02
0.515E+03 0.351E+02 0.242E+02 0.500E+02
0.516E+03 0.352E+02 0.247E+02 0.500E+02
0.517E+03 0.351E+02 0.242E+02 0.500E+02
0.518E+03 0.351E+02 0.246E+02 0.500E+02
0.519E+03 0.352E+02 0.246E+02 0.500E+02
0.520E+03 0.352E+02 0.242E+02 0.500E+02
0.521E+03 0.352E+02 0.242E+02 0.500E+02
0.522E+03 0.352E+02 0.241E+02 0.500E+02
0.523E+03 0.352E+02 0.241E+02 0.500E+02
0.524E+03 0.352E+02 0.241E+02 0.500E+02
0.525E+03 0.352E+02 0.241E+02 0.500E+02
0.526E+03 0.352E+02 0.241E+02 0.500E+02
0.527E+03 0.351E+02 0.241E+02 0.500E+02
0.528E+03 0.351E+02 0.245E+02 0.500E+02
0.529E+03 0.351E+02 0.245E+02 0.500E+02
0.530E+03 0.351E+02 0.245E+02 0.500E+02
0.531E+03 0.351E+02 0.245E+02 0.500E+02
0.532E+03 0.351E+02 0.245E+02 0.500E+02
0.533E+03 0.351E+02 0.245E+02 0.500E+02
0.534E+03 0.350E+02 0.244E+02 0.500E+02
0.535E+03 0.348E+02 0.249E+02 0.500E+02
0.536E+03 0.350E+02 0.258E+02 0.500E+02
0.537E+03 0.351E+02 0.249E+02 0.500E+02
0.538E+03 0.350E+02 0.245E+02 0.500E+02
0.539E+03 0.350E+02 0.249E+02 0.500E+02
0.540E+03 0.350E+02 0.249E+02 0.500E+02
0.541E+03 0.350E+02 0.249E+02 0.500E+02
0.542E+03 0.350E+02 0.249E+02 0.500E+02
0.543E+03 0.351E+02 0.249E+02 0.500E+02
0.544E+03 0.351E+02 0.245E+02 0.500E+02
0.545E+03 0.351E+02 0.244E+02 0.500E+02
0.546E+03 0.351E+02 0.244E+02 0.500E+02
0.547E+03 0.351E+02 0.244E+02 0.500E+02
0.548E+03 0.352E+02 0.244E+02 0.500E+02
0.549E+03 0.352E+02 0.240E+02 0.500E+02
0.550E+03 0.353E+02 0.239E+02 0.500E+02
0.551E+03 0.351E+02 0.235E+02 0.500E+02
0.552E+03 0.351E+02 0.244E+02 0.500E+02
0.553E+03 0.351E+02 0.244E+02 0.500E+02
0.554E+03 0.351E+02 0.243E+02 0.500E+02
0.555E+03 0.351E+02 0.243E+02 0.500E+02
0.556E+03 0.352E+02 0.243E+02 0.500E+02
0.557E+03 0.351E+02 0.239E+02 0.500E+02
0.558E+03 0.352E+02 0.243E+02 0.500E+02
0.559E+03 0.352E+02 0.238E+02 0.500E+02
0.560E+03 0.352E+02 0.238E+02 0.500E+02
0.561E+03 0.352E+02 0.238E+02 0.500E+02
0.562E+03 0.352E+02 0.238E+02 0.500E+02
0.563E+03 0.351E+02 0.238E+02 0.500E+02
0.564E+03 0.351E+02 0.242E+02 0.500E+02
0.565E+03 0.352E+02 0.242E+02 0.500E+02
0.566E+03 0.352E+02 0.237E+02 0.500E+02
0.567E+03 0.352E+02 0.237E+02 0.500E+02
0.568E+03 0.352E+02 0.237E+02 0.500E+02
0.569E+03 0.351E+02 0.237E+02 0.500E+02
0.570E+03 0.351E+02 0.241E+02 0.500E+02
0.571E+03 0.351E+02 0.241E+02 0.500E+02
0.572E+03 0.351E+02 0.241E+02 0.500E+02
0.573E+03 0.350E+02 0.241E+02 0.500E+02
0.574E+03 0.351E+02 0.245E+02 0.500E+02
0.575E+03 0.350E+02 0.241E+02 0.500E+02
0.576E+03 0.350E+02 0.245E+02 0.500E+02
0.577E+03 0.350E+02 0.245E+02 0.500E+02
0.578E+03 0.351E+02 0.245E+02 0.500E+02
0.579E+03 0.351E+02 0.241E+02 0.500E+02
0.580E+03 0.350E+02 0.241E+02 0.500E+02
0.581E+03 0.350E+02 0.245E+02 0.500E+02
0.582E+03 0.350E+02 0.245E+02 0.500E+02
0.583E+03 0.348E+02 0.245E+02 0.500E+02
0.584E+03 0.350E+02 0.254E+02 0.500E+02
0.585E+03 0.350E+02 0.245E+02 0.500E+02
0.586E+03 0.350E+02 0.245E+02 0.500E+02
0.587E+03 0.350E+02 0.245E+02 0.500E+02
0.588E+03 0.350E+02 0.245E+02 0.500E+02
0.589E+03 0.350E+02 0.245E+02 0.500E+02
0.590E+03 0.348E+02 0.245E+02 0.500E+02
0.591E+03 0.350E+02 0.255E+02 0.500E+02
0.592E+03 0.350E+02 0.246E+02 0.500E+02
0.593E+03 0.347E+02 0.246E+02 0.500E+02
0.594E+03 0.350E+02 0.260E+02 0.500E+02
0.595E+03 0.350E+02 0.246E+02 0.500E+02
0.596E+03 0.351E+02 0.246E+02 0.500E+02
0.597E+03 0.351E+02 0.242E+02 0.500E+02
0.598E+03 0.352E+02 0.241E+02 0.500E+02
0.599E+03 0.353E+02 0.237E+02 0.500E+02
0.600E+03 0.353E+02 0.232E+02 0.500E+02
0.601E+03 0.354E+02 0.232E+02 0.500E+02
0.602E+03 0.355E+02 0.227E+02 0.500E+02
0.603E+03 0.355E+02 0.222E+02 0.500E+02
0.604E+03 0.355E+02 0.222E+02 0.500E+02
0.605E+03 0.355E+02 0.221E+02 0.500E+02
0.606E+03 0.354E+02 0.221E+02 0.500E+02
0.607E+03 0.354E+02 0.225E+02 0.500E+02
0.608E+03 0.354E+02 0.225E+02 0.500E+02
0.609E+03 0.353E+02 0.224E+02 0.500E+02
0.610E+03 0.353E+02 0.229E+02 0.500E+02
0.611E+03 0.353E+02 0.228E+02 0.500E+02
0.612E+03 0.352E+02 0.228E+02 0.500E+02
0.613E+03 0.352E+02 0.232E+02 0.500E+02
0.614E+03 0.351E+02 0.232E+02 0.500E+02
0.615E+03 0.350E+02 0.237E+02 0.500E+02
0.616E+03 0.350E+02 0.241E+02 0.500E+02
0.617E+03 0.350E+02 0.241E+02 0.500E+02
0.618E+03 0.350E+02 0.241E+02 0.500E+02
0.619E+03 0.348E+02 0.241E+02 0.500E+02
0.620E+03 0.348E+02 0.250E+02 0.500E+02
0.621E+03 0.347E+02 0.251E+02 0.500E+02
0.622E+03 0.347E+02 0.255E+02 0.500E+02
0.623E+03 0.347E+02 0.256E+02 0.500E+02
0.624E+03 0.346E+02 0.256E+02 0.500E+02
0.625E+03 0.347E+02 0.261E+02 0.500E+02
0.626E+03 0.348E+02 0.256E+02 0.500E+02
0.627E+03 0.348E+02 0.252E+02 0.500E+02
0.628E+03 0.348E+02 0.252E+02 0.500E+02
0.629E+03 0.348E+02 0.252E+02 0.500E+02
0.630E+03 0.348E+02 0.253E+02 0.500E+02
0.631E+03 0.348E+02 0.253E+02 0.500E+02
0.632E+03 0.350E+02 0.253E+02 0.500E+02
0.633E+03 0.347E+02 0.244E+02 0.500E+02
0.634E+03 0.350E+02 0.258E+02 0.500E+02
0.635E+03 0.348E+02 0.244E+02 0.500E+02
0.636E+03 0.348E+02 0.254E+02 0.500E+02
0.637E+03 0.348E+02 0.254E+02 0.500E+02
0.638E+03 0.348E+02 0.254E+02 0.500E+02
0.639E+03 0.348E+02 0.254E+02 0.500E+02
0.640E+03 0.350E+02 0.254E+02 0.500E+02
0.641E+03 0.350E+02 0.245E+02 0.500E+02
0.642E+03 0.351E+02 0.245E+02 0.500E+02
0.643E+03 0.351E+02 0.241E+02 0.500E+02
0.644E+03 0.351E+02 0.241E+02 0.500E+02
0.645E+03 0.352E+02 0.241E+02 0.500E+02
0.646E+03 0.353E+02 0.236E+02 0.500E+02
0.647E+03 0.354E+02 0.231E+02 0.500E+02
0.648E+03 0.357E+02 0.227E+02 0.500E+02
0.649E+03 0.355E+02 0.213E+02 0.500E+02
0.650E+03 0.357E+02 0.221E+02 0.500E+02
0.651E+03 0.355E+02 0.212E+02 0.500E+02
0.652E+03 0.355E+02 0.220E+02 0.500E+02
0.653E+03 0.355E+02 0.220E+02 0.500E+02
0.654E+03 0.354E+02 0.219E+02 0.500E+02
0.655E+03 0.353E+02 0.223E+02 0.500E+02
0.656E+03 0.352E+02 0.228E+02 0.500E+02
0.657E+03 0.353E+02 0.232E+02 0.500E+02
0.658E+03 0.352E+02 0.227E+02 0.500E+02
0.659E+03 0.352E+02 0.232E+02 0.500E+02
0.660E+03 0.352E+02 0.231E+02 0.500E+02
0.661E+03 0.351E+02 0.231E+02 0.500E+02
0.662E+03 0.350E+02 0.236E+02 0.500E+02
0.663E+03 0.350E+02 0.240E+02 0.500E+02
0.664E+03 0.350E+02 0.240E+02 0.500E+02
0.665E+03 0.350E+02 0.240E+02 0.500E+02
0.666E+03 0.350E+02 0.240E+02 0.500E+02
0.667E+03 0.348E+02 0.240E+02 0.500E+02
0.668E+03 0.350E+02 0.249E+02 0.500E+02
0.669E+03 0.348E+02 0.240E+02 0.500E+02
0.670E+03 0.348E+02 0.250E+02 0.500E+02
0.671E+03 0.348E+02 0.250E+02 0.500E+02
0.672E+03 0.348E+02 0.250E+02 0.500E+02
0.673E+03 0.348E+02 0.250E+02 0.500E+02
0.674E+03 0.348E+02 0.250E+02 0.500E+02
0.675E+03 0.348E+02 0.250E+02 0.500E+02
0.676E+03 0.348E+02 0.251E+02 0.500E+02
0.677E+03 0.348E+02 0.251E+02 0.500E+02
0.678E+03 0.347E+02 0.251E+02 0.500E+02
0.679E+03 0.348E+02 0.256E+02 0.500E+02
0.680E+03 0.347E+02 0.251E+02 0.500E+02
0.681E+03 0.347E+02 0.256E+02 0.500E+02
0.682E+03 0.347E+02 0.256E+02 0.500E+02
0.683E+03 0.347E+02 0.257E+02 0.500E+02
0.684E+03 0.348E+02 0.257E+02 0.500E+02
0.685E+03 0.350E+02 0.253E+02 0.500E+02
0.686E+03 0.351E+02 0.244E+02 0.500E+02
0.687E+03 0.351E+02 0.239E+02 0.500E+02
0.688E+03 0.351E+02 0.239E+02 0.500E+02
0.689E+03 0.352E+02 0.239E+02 0.500E+02
0.690E+03 0.351E+02 0.234E+02 0.500E+02
0.691E+03 0.351E+02 0.239E+02 0.500E+02
0.692E+03 0.351E+02 0.239E+02 0.500E+02
0.693E+03 0.351E+02 0.238E+02 0.500E+02
0.694E+03 0.351E+02 0.238E+02 0.500E+02
0.695E+03 0.351E+02 0.238E+02 0.500E+02
0.696E+03 0.351E+02 0.238E+02 0.500E+02
0.697E+03 0.351E+02 0.238E+02 0.500E+02
0.698E+03 0.352E+02 0.238E+02 0.500E+02
0.699E+03 0.351E+02 0.233E+02 0.500E+02
0.700E+03 0.351E+02 0.238E+02 0.500E+02
0.701E+03 0.351E+02 0.238E+02 0.500E+02
0.702E+03 0.350E+02 0.238E+02 0.500E+02
0.703E+03 0.351E+02 0.242E+02 0.500E+02
0.704E+03 0.351E+02 0.238E+02 0.500E+02
0.705E+03 0.352E+02 0.237E+02 0.500E+02
0.706E+03 0.352E+02 0.233E+02 0.500E+02
0.707E+03 0.350E+02 0.233E+02 0.500E+02
0.708E+03 0.352E+02 0.242E+02 0.500E+02
0.709E+03 0.352E+02 0.233E+02 0.500E+02
0.710E+03 0.352E+02 0.232E+02 0.500E+02
0.711E+03 0.352E+02 0.232E+02 0.500E+02
0.712E+03 0.353E+02 0.232E+02 0.500E+02
0.713E+03 0.352E+02 0.227E+02 0.500E+02
0.714E+03 0.352E+02 0.232E+02 0.500E+02
0.715E+03 0.353E+02 0.231E+02 0.500E+02
0.716E+03 0.353E+02 0.227E+02 0.500E+02
0.717E+03 0.354E+02 0.227E+02 0.500E+02
0.718E+03 0.354E+02 0.222E+02 0.500E+02
0.719E+03 0.354E+02 0.221E+02 0.500E+02
0.720E+03 0.353E+02 0.221E+02 0.500E+02
0.721E+03 0.353E+02 0.225E+02 0.500E+02
0.722E+03 0.352E+02 0.225E+02 0.500E+02
0.723E+03 0.352E+02 0.229E+02 0.500E+02
0.724E+03 0.351E+02 0.229E+02 0.500E+02
0.725E+03 0.351E+02 0.234E+02 0.500E+02
0.726E+03 0.350E+02 0.233E+02 0.500E+02
0.727E+03 0.350E+02 0.238E+02 0.500E+02
0.728E+03 0.351E+02 0.238E+02 0.500E+02
0.729E+03 0.350E+02 0.233E+02 0.500E+02
0.730E+03 0.350E+02 0.238E+02 0.500E+02
0.731E+03 0.350E+02 0.238E+02 0.500E+02
0.732E+03 0.348E+02 0.238E+02 0.500E+02
0.733E+03 0.348E+02 0.247E+02 0.500E+02
0.734E+03 0.348E+02 0.247E+02 0.500E+02
0.735E+03 0.348E+02 0.247E+02 0.500E+02
0.736E+03 0.348E+02 0.248E+02 0.500E+02
0.737E+03 0.348E+02 0.248E+02 0.500E+02
0.738E+03 0.348E+02 0.248E+02 0.500E+02
0.739E+03 0.348E+02 0.248E+02 0.500E+02
0.740E+03 0.347E+02 0.248E+02 0.500E+02
0.741E+03 0.348E+02 0.253E+02 0.500E+02
0.742E+03 0.347E+02 0.249E+02 0.500E+02
0.743E+03 0.347E+02 0.253E+02 0.500E+02
0.744E+03 0.347E+02 0.254E+02 0.500E+02
0.745E+03 0.347E+02 0.254E+02 0.500E+02
0.746E+03 0.348E+02 0.254E+02 0.500E+02
0.747E+03 0.347E+02 0.250E+02 0.500E+02
0.748E+03 0.347E+02 0.255E+02 0.500E+02
0.749E+03 0.347E+02 0.255E+02 0.500E+02
0.750E+03 0.347E+02 0.255E+02 0.500E+02
0.751E+03 0.347E+02 0.255E+02 0.500E+02
0.752E+03 0.348E+02 0.256E+02 0.500E+02
0.753E+03 0.347E+02 0.251E+02 0.500E+02
0.754E+03 0.348E+02 0.256E+02 0.500E+02
0.755E+03 0.348E+02 0.252E+02 0.500E+02
0.756E+03 0.348E+02 0.252E+02 0.500E+02
0.757E+03 0.350E+02 0.252E+02 0.500E+02
0.758E+03 0.350E+02 0.243E+02 0.500E+02
0.759E+03 0.348E+02 0.243E+02 0.500E+02
0.760E+03 0.350E+02 0.252E+02 0.500E+02
0.761E+03 0.350E+02 0.243E+02 0.500E+02
0.762E+03 0.351E+02 0.243E+02 0.500E+02
0.763E+03 0.351E+02 0.239E+02 0.500E+02
0.764E+03 0.351E+02 0.239E+02 0.500E+02
0.765E+03 0.348E+02 0.239E+02 0.500E+02
0.766E+03 0.350E+02 0.252E+02 0.500E+02
0.767E+03 0.352E+02 0.243E+02 0.500E+02
0.768E+03 0.352E+02 0.234E+02 0.500E+02
0.769E+03 0.353E+02 0.234E+02 0.500E+02
0.770E+03 0.352E+02 0.230E+02 0.500E+02
0.771E+03 0.352E+02 0.234E+02 0.500E+02
0.772E+03 0.352E+02 0.234E+02 0.500E+02
0.773E+03 0.352E+02 0.234E+02 0.500E+02
0.774E+03 0.353E+02 0.233E+02 0.500E+02
0.775E+03 0.352E+02 0.229E+02 0.500E+02
0.776E+03 0.351E+02 0.233E+02 0.500E+02
0.777E+03 0.351E+02 0.237E+02 0.500E+02
0.778E+03 0.351E+02 0.237E+02 0.500E+02
0.779E+03 0.351E+02 0.237E+02 0.500E+02
0.780E+03 0.351E+02 0.237E+02 0.500E+02
0.781E+03 0.351E+02 0.237E+02 0.500E+02
0.782E+03 0.350E+02 0.237E+02 0.500E+02
0.783E+03 0.350E+02 0.241E+02 0.500E+02
0.784E+03 0.351E+02 0.241E+02 0.500E+02
0.785E+03 0.350E+02 0.237E+02 0.500E+02
0.786E+03 0.351E+02 0.241E+02 0.500E+02
0.787E+03 0.351E+02 0.237E+02 0.500E+02
0.788E+03 0.350E+02 0.237E+02 0.500E+02
0.789E+03 0.350E+02 0.241E+02 0.500E+02
0.790E+03 0.350E+02 0.241E+02 0.500E+02
0.791E+03 0.348E+02 0.241E+02 0.500E+02
0.792E+03 0.350E+02 0.250E+02 0.500E+02
0.793E+03 0.350E+02 0.241E+02 0.500E+02
0.794E+03 0.348E+02 0.241E+02 0.500E+02
0.795E+03 0.350E+02 0.251E+02 0.500E+02
0.796E+03 0.350E+02 0.242E+02 0.500E+02
0.797E+03 0.348E+02 0.242E+02 0.500E+02
0.798E+03 0.348E+02 0.251E+02 0.500E+02
0.799E+03 0.347E+02 0.251E+02 0.500E+02
|
58074beb33b147d0d96c4b09eeeec4d2cf3df8b8 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronic_Devices_And_Circuits_K._L._Kishore_1511.zip/Electronic_Devices_And_Circuits_K._L._Kishore_1511/CH3/EX3.4/ex3_4.sce | 5aad967ce84d4a719a8315b7776f6f6b728608f6 | [] | 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 | 158 | sce | ex3_4.sce | errcatch(-1,"stop");mode(2);// Example 3.4 page no-157
Rl=5010 //ohm
idc=0.001
Vrms=idc*%pi*Rl/(2*sqrt(2))
printf("\nVrms = %.2f V",Vrms)
exit();
|
e054af3d56fdc98eacefd2841cb509eb291854c6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1757/CH5/EX5.7/EX5_7.sce | 99d92a6fc6a15b26e2baed95ab2740dbc3c01f09 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 513 | sce | EX5_7.sce | //Example5.7 // Determine the bias current of inverting and non-inverting
clc;
clear;
close;
Ios = 5 ; //nA // input offset current
Ib = 30 ; //nA // input bias current
// the input bias current of an op-amp is
//Ib =(Ib1+Ib2)/(2);
// the offset current Ios is define as
//Ios = abs(Ib1-Ib2) ;
Ib1=Ib-(Ios/2);
disp('The current in the inverting input terminal is = '+string(Ib1)+' nA ');
Ib2 =Ib+(Ios/2);
disp('The current in the non-inverting input terminal is= '+string(Ib2)+' nA ');
|
385f38d053d0eed46d6870525e1d59687fee2522 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2243/CH11/EX11.11/Ex11_11.sce | b8adcf9df3f6d728e233a8ae64f3067e36a32df3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 621 | sce | Ex11_11.sce | clc();
clear;
//Given :
ni = 1.5*10^16; // ni for Si in m^-3
mue = 0.135; // mobility of free electrons in m^2/Vs
muh = 0.048; // mobility of holes in m^2/Vs
Nd = 10^21; // phosphorus atoms/m^3
e = 1.6*10^-19;// charge of an electron in C
//(a)
n = Nd; // electrons/m^3
//(b)
p = ni^2/Nd; // holes/m^3
//(c)
sigma = e*(n*mue + p*muh); // conductivity in mho m^-1
rho = 1/sigma; // resistivity in ohm m
printf("Major carrier concentration = %.1f x 10^21 electrons/m^3 \n",n*10^-21);
printf("Minor carrier concentration = %.2f x 10^11 holes/m^3\n",p*10^-11);
printf("Resistivity = %.3f ohm m",rho);
|
7f6599e2cfec55c05fc7585d6b8c07763b8a8050 | 8d3c087a2901691e2dfc69e29dc8a1f9ba67ed57 | /EEGetMouvement_NoOutput.sce | 6d3d92ce44bf72dddf53be38173f541dbc0d7dc6 | [] | no_license | EmSavalle/Expe2Simple | a1807cc29ba6120de057ee4cf60146821641f442 | 78fb663aae07eca32c014bafeb8822100e30b8ae | refs/heads/main | 2023-04-03T22:27:02.041471 | 2021-04-20T09:21:20 | 2021-04-20T09:21:20 | 359,751,249 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 48,529 | sce | EEGetMouvement_NoOutput.sce | scenario = "EEGetMouvement";
response_matching = simple_matching;
default_background_color = 255,255,255;
active_buttons =20;
button_codes = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20;
#pulse_out = false;
pulse_value = 5;
pulse_width = 20; # if using parallel port
#-----------------Définition des variables--------------------------------------
begin;
#-----------------Chargement des sons--------------------------------
sound { wavefile { filename = "800ms/audioMosquito24_0.wav";};} sCalib;
sound { wavefile { filename = "800ms/audioMosquito0_m50.wav";};} stimPos;
sound { wavefile { filename = "800ms/audioMosquito0_1.wav";};} stimNeg;
sound { wavefile { filename = "800ms/audioMosquito0_m50.wav";};} stimPosGauche;
sound { wavefile { filename = "800ms/audioMosquito0_1.wav";};} stimNegGauche;
sound { wavefile { filename = "800ms/audioMosquito0_50.wav";};} stimPosDroite;
sound { wavefile { filename = "800ms/audioMosquito0_m1.wav";};} stimNegDroite;
array{
sound { wavefile { filename = "800ms/audioMosquito0_m5.wav";};} sound0_m5;
sound { wavefile { filename = "800ms/audioMosquito3_m4.wav";};} sound3_m4;
sound { wavefile { filename = "800ms/audioMosquito4_m2.wav";};} sound4_m2;
sound { wavefile { filename = "800ms/audioMosquito5_0.wav";};} sound5_0;
sound { wavefile { filename = "800ms/audioMosquito4_2.wav";};} sound4_2;
sound { wavefile { filename = "800ms/audioMosquito3_4.wav";};} sound3_4;
sound { wavefile { filename = "800ms/audioMosquito0_5.wav";};} sound0_5;
sound { wavefile { filename = "800ms/audioMosquito0_m8.wav";};} sound0_m8;
sound { wavefile { filename = "800ms/audioMosquito4_m7.wav";};} sound4_m7;
sound { wavefile { filename = "800ms/audioMosquito7_m4.wav";};} sound7_m4;
sound { wavefile { filename = "800ms/audioMosquito8_0.wav";};} sound8_0;
sound { wavefile { filename = "800ms/audioMosquito7_4.wav";};} sound7_4;
sound { wavefile { filename = "800ms/audioMosquito4_7.wav";};} sound4_7;
sound { wavefile { filename = "800ms/audioMosquito0_8.wav";};} sound0_8;
sound { wavefile { filename = "800ms/audioMosquito0_m14.wav";};} sound0_m14;
sound { wavefile { filename = "800ms/audioMosquito7_m12.wav";};} sound7_m12;
sound { wavefile { filename = "800ms/audioMosquito12_m7.wav";};} sound12_m7;
sound { wavefile { filename = "800ms/audioMosquito14_0.wav";};} sound14_0;
sound { wavefile { filename = "800ms/audioMosquito12_7.wav";};} sound12_7;
sound { wavefile { filename = "800ms/audioMosquito7_12.wav";};} sound7_12;
sound { wavefile { filename = "800ms/audioMosquito0_14.wav";};} sound0_14;
sound { wavefile { filename = "800ms/audioMosquito0_m24.wav";};} sound0_m24;
sound { wavefile { filename = "800ms/audioMosquito12_m21.wav";};} sound12_m21;
sound { wavefile { filename = "800ms/audioMosquito21_m12.wav";};} sound21_m12;
sound { wavefile { filename = "800ms/audioMosquito24_0.wav";};} sound24_0;
sound { wavefile { filename = "800ms/audioMosquito21_12.wav";};} sound21_12;
sound { wavefile { filename = "800ms/audioMosquito12_21.wav";};} sound12_21;
sound { wavefile { filename = "800ms/audioMosquito0_24.wav";};} sound0_24;
sound { wavefile { filename = "800ms/audioMosquito0_m41.wav";};} sound0_m41;
sound { wavefile { filename = "800ms/audioMosquito21_m36.wav";};} sound21_m36;
sound { wavefile { filename = "800ms/audioMosquito36_m20.wav";};} sound36_m20;
sound { wavefile { filename = "800ms/audioMosquito41_0.wav";};} sound41_0;
sound { wavefile { filename = "800ms/audioMosquito36_20.wav";};} sound36_20;
sound { wavefile { filename = "800ms/audioMosquito21_36.wav";};} sound21_36;
sound { wavefile { filename = "800ms/audioMosquito0_41.wav";};} sound0_41;
}sounds;
picture {box { height = 100; width = 100; color = 255,0,0; };x=0;y=0;}red;
picture {box { height = 100; width = 100; color = 0,255,0; };x=0;y=0;}green;
box { height = 1080; width = 1920; color = 255,0,0; }redbox;
box { height = 1080; width = 1920; color = 0,255,0; }greenbox;
box { height = 1080; width = 1920; color = 0,0,0; }blackbox;
#Trial de reponse pendant la trajectoire
picture{
display_index = 1;
bitmap {
filename = "blank.png";
}bp;
x = 0 ; y = -300;
text { caption = "o"; font_size = 20; font_color = 0,0,0; transparent_color = 255,255,255;};
x = 0; y = 0;
}picQuestion;
#Trial de pause
picture{
text{
caption ="C'est le moment de faire une pause!\n Prenez le temps qu'il vous faut pour souffler,\n et lorsque vous êtes prêt à repartir, appuyez sur [Entrée]";
font_size = 40;
font_color = 0,0,0;
text_align = align_center;
};
x = 0 ; y = 0;
}picPause;
#Trial de question sur l'anxiété en fin de trajectoire
text {
caption = "A quel point cette trajectoire a été désagréable?\n 1 : Pas désagréable du tout - 9 : Très désagréable";
font_size = 40;
font_color = 0,0,0;
text_align = align_center;
}ecranDesagreable;
#Picture affiché en permanence en arrière plan (utilisé pour la question intra trajectoire)
picture {
bitmap bp;
x = 0; y = -300;
text { caption = "o"; font_size = 20; font_color = 0,0,0; transparent_color = 255,255,255;};
x = 0; y = 0;
} default;
#Textes pour les infos de trajectoires
text {
caption = "Trajectoire suivante :";
font_size = 40;
font_color = 0,0,0;
text_align = align_center;
} textPreTraj1;
text {
caption = "Elle sera courte";
font_size = 40;
font_color = 0,0,0;
text_align = align_center;
} textPreTrajLongueur;
text {
caption = "Elle aura x% de chances de finir par vous piquer";
font_size = 40;
font_color = 0,0,0;
text_align = align_center;
} textPreTrajObjectif;
#---------------Trials-------------
#Trials d'initialisation
trial{ #Choix de la latéralité de la cible négative
stimulus_event{
picture{
text{
caption = "Choisissez la position cible :\n 1 : Gauche \n 2 : Droite";
font_color = 0,0,0;
font_size = 40;
};
x = 0 ; y = 0 ;
};
response_active = true;
duration = response;
deltat = 10;
};
}trialInit;
trial{ #Information sur la main dominante du sujet
stimulus_event{
picture{
text{
caption = "Quel est la main dominante du sujet :\n 1 : Gauche \n 2 : Droite";
font_color = 0,0,0;
font_size = 40;
};
x = 0 ; y = 0 ;
};
response_active = true;
duration = response;
deltat = 10;
};
}trialMain;
#Trial d'explication de l'expérience
trial{
picture{ bitmap { filename = "Preparation/Preparation1.png";};x = 0 ; y = 0;};
time = 0;
duration = response;
picture{bitmap { filename = "Preparation/InfoTraj.png";};x = 0 ; y = 0;};
deltat = 0;
duration = response;
picture{bitmap { filename = "Preparation/InfoTraj2.png";};x = 0 ; y = 0;};
deltat = 0;
duration = response;
picture{bitmap { filename = "Preparation/InfoTraj3.png";};x = 0 ; y = 0;};
deltat = 0;
duration = response;
picture{bitmap { filename = "Preparation/InstructionQuestion.png";};x = 0 ; y = 0;};
deltat = 0;
duration = response;
}trialPreparation;
#Trial calibration
trial {
stimulus_event{
picture{
bitmap { filename = "Preparation/EssaiTest.png";};
x = 0; y = 0;
};
duration = 1500;
time = 0;
};
}trialCalibration;
trial {
picture{bitmap { filename = "Preparation/EssaiTest.png";};x = 0 ; y = 0;};
deltat = 0;
duration = response;
}essaiTest;
trial {
picture{bitmap { filename = "Preparation/FinPreparation.png";};x = 0 ; y = 0;};
deltat = 0;
duration = response;
}trialDebutExpe;
#Trials de calibration de niveaux de son
trial{
stimulus_event{
picture{
text{
caption = "Nous allons calibrer l'experience en fonction de vos capacitées auditives\nConcentrez vous sur ce que vous entendez et suivez les instructions\nAppuyez sur [Entrée] pour commencer la calibration";
font_color = 0,0,0;
font_size = 40;
}te;
x = 0 ; y = 0 ;
};
response_active = true;
duration = response;
deltat = 10;
};
}trialDebCalib;
trial{
stimulus_event{
picture{
text{
caption = "Appuyez sur [Entrée] pour passer à la suite";
font_color = 0,0,0;
font_size = 40;
}tPrep;
x = 0 ; y = 0 ;
};
response_active = true;
duration = response;
deltat = 10;
};
}trialPrep;
trial{
sound sCalib;
time = 0;
duration = 1000;
picture{
text{
caption = "Appuyez sur [Entrée] dès que vous entendez un son";
font_color = 0,0,0;
font_size = 40;
}t;
x = 0; y = 0;
};
deltat=0;
}
trialCalib;
#Trial de debut de trajectoire
trial{
picture{
text textPreTraj1;
x = 0 ; y = 100;
text textPreTrajLongueur;
x = 0 ; y = 0;
bitmap{
filename = "V70.png";
}bpIncert;
x = 0; y = -300;
#text textPreTrajObjectif;
#x = 0 ; y = -100;
}tp;
time = 0 ;
duration = 2000;
}trialPreparationTrajectoire;
trial{
stimulus_event{
picture{
text{
caption = "Début de la trajectoire";
font_color = 0,0,0;
font_size = 40;
};
x = 0 ; y = 0 ;
};
duration = 1000;
};
}trialDebutTrajectoire;
# Trial presentant un son de moustique
trial{
stimulus_event{
sound sound36_20;
time = 0;
#duration = 800;
}s1;
stimulus_event{
picture{
bitmap { filename = "moustique.jpg";};x = 0 ; y = 0;
bitmap bp; x = 0 ; y = -300;
text { caption = "o"; font_size = 20; font_color = 0,0,0; transparent_color = 255,255,255;}tSouris;
x = 0; y = 0;
}picM;
code = "picM";
time = 0;
#duration = 800;
};
}trialSon;
#Trial de pause entre sons
trial{
stimulus_event{
picture picPause;
};
}trialPause;
#Trial Question pendant Son
trial{
picture picM;
}trialPicSon;
#Trial posant la question lié au risque de piqûre
trial{
picture picQuestion;
}trialQuestion;
#Trial portant le stimulus final (a modifier avec le stimulateur)
trial{
picture {
box blackbox;
x = 0 ; y = 0 ;
} pic2;
stimulus_event{
picture{
text{
caption = "Fin de trajectoires";
font_color = 0,0,0;
font_size = 40;
}tF;
x = 0 ; y = 0 ;
};
time=0;
duration = 1000;
}seFinal;
}trialStimulusFinal;
#Trial pour la stimulation électrique
trial{
picture {
box blackbox;
x = 0 ; y = 0 ;
} picPiqure;
stimulus_event{
nothing{};
port_code = 1;
port = 1;
time = 0;
code = "stim 1";
}sePiqure;
}trialPiqure;
#Trial pour la question sur l'anxiété post trajectoire
trial{
stimulus_event{
picture {
text ecranDesagreable;
x = 0 ; y = 0 ;
}pictureDesagreable;
time = 0;
response_active = true;
duration = response;
}seDesagreable;
}trialDesagreable;
#Trial de fin de trajectoire
trial{
stimulus_event{
picture{
text{
caption = "Fin de trajectoires";
font_color = 0,0,0;
font_size = 40;
};
x = 0 ; y = 0 ;
};
duration = 1000;
};
}trialFinTrajectoire;
begin_pcl;
#Fonctions de marquage
sub int triggerTrajectoire (int traj_num)
begin
return traj_num*2+2;
end;
sub int triggerSon (int son_num)
begin
#return son_num+64;
return 2;
end;
sub int triggerTrajectoireV2(bool valence, bool valenceReel, bool longueur, int chance)
begin
int vval = 0,vvalR = 0,vLong = 0, vChance = 0;
if(valence == true) then
vval=1;
end;
if(valenceReel == true) then
vvalR=1;
end;
if(longueur == true) then
vLong=1;
end;
if(chance == 90) then
vChance=1;
end;
int trig = 128 + vval*64 + vvalR * 32 + vLong * 16 + vChance*8;
return trig;
end;
sub int triggerSonV2(int position)
begin
return position *2;
end;
sub int updatePosition
begin
mouse mse = response_manager.get_mouse( 1 );
mse.poll();
int selec = 0;
int posx=mse.x();
int posy=mse.y();
picQuestion.set_part_x(2, posx);
picQuestion.set_part_y(2, posy);
picM.set_part_x(3, posx);
picM.set_part_y(3, posy);
if(-200 > posy && posy > -400)then
if(-600 <= posx && posx <= -434)then
selec = 1;
end;
if(-433 <= posx && posx <=-260)then
selec = 2;
end;
if(-260 <= posx && posx <=-90)then
selec = 3;
end;
if(-91 <= posx && posx <=90)then
selec = 4;
end;
if(91 <= posx && posx <=255)then
selec = 5;
end;
if(256 <= posx && posx <=430)then
selec = 6;
end;
if(431 <= posx && posx <=600)then
selec = 7;
end;
end;
return selec;
end;
sub array<int,1> calcPosCursor(array <int> infoCursor[12], string cursorFName)
begin
int cursorPos = infoCursor[1];
int lastCursorPos = infoCursor[2];
int countPos = infoCursor[3];
int countNeg = infoCursor[4];
int countn3 = infoCursor[5];
int countn2 = infoCursor[6];
int countn1 = infoCursor[7];
int countne = infoCursor[8];
int countp1 = infoCursor[9];
int countp2 = infoCursor[10];
int countp3 = infoCursor[11];
int countClic = infoCursor[12];
#Selection position curseur
if(response_manager.total_response_count( 11 ) > countNeg) then
cursorPos = cursorPos+(response_manager.total_response_count( 11 ) - countNeg);
countNeg = response_manager.total_response_count( 11 );
end;
if(response_manager.total_response_count( 10 ) > countPos) then
cursorPos = cursorPos-(response_manager.total_response_count( 10 ) - countPos);
countPos = response_manager.total_response_count( 10 );
end;
if(cursorPos < 1) then
cursorPos = 1;
end;
if (cursorPos > 7) then
cursorPos = 7;
end;
if (countn3 != response_manager.total_response_count( 13 )) then
countn3 = response_manager.total_response_count( 13 );
cursorPos=1;
end;
if (countn2 != response_manager.total_response_count( 14 ))then
countn2 = response_manager.total_response_count( 14 );
cursorPos=2;
end;
if (countn1 != response_manager.total_response_count( 15 ))then
countn1 = response_manager.total_response_count( 15 );
cursorPos=3;
end;
if (countne != response_manager.total_response_count( 16 ))then
countne = response_manager.total_response_count( 16 );
cursorPos=4;
end;
if (countp1 != response_manager.total_response_count( 17 ))then
countp1 = response_manager.total_response_count( 17 );
cursorPos=5;
end;
if (countp2 != response_manager.total_response_count( 18 ))then
countp2 = response_manager.total_response_count( 18 );
cursorPos=6;
end;
if (countp3 != response_manager.total_response_count( 19 ))then
countp3 = response_manager.total_response_count( 19 );
cursorPos=7;
end;
int sel = updatePosition();
if(sel != 0 && countClic != response_manager.total_response_count( 20 )) then
cursorPos = sel;
countClic = response_manager.total_response_count( 20 );
end;
if(lastCursorPos != cursorPos) then
bp.unload();
bp.set_filename(cursorFName+string(cursorPos)+".jpg");
bp.load();
lastCursorPos = cursorPos;
end;
array<int> ret[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
ret[1] = cursorPos;
ret[2] = lastCursorPos;
ret[3] = countPos;
ret[4] = countNeg;
ret[5] = countn3;
ret[6] = countn2;
ret[7] = countn1;
ret[8] = countne;
ret[9] = countp1;
ret[10] = countp2;
ret[11] = countp3;
ret[12] = countClic;
return ret;
end;
#Chargement du fichier log
output_file ofile1 = new output_file;
string nameFile = logfile.subject()+"ReponseStimuli";
string nameFileTest = nameFile;
int cptname = 1;
loop until !file_exists(logfile_directory +nameFileTest+".txt") begin
nameFileTest = nameFile+string(cptname);
cptname=cptname+1;
end;
ofile1.open(nameFileTest+".txt" , true );
set_system_volume(1,1);
int count = response_manager.total_response_count( 12 );
bool calibSonore = true;
bool presentation = false;
bool essaiT = true;
bool outputAvailable = false;
bool mosquitoCartoon = true; #Ajoute l'image du moustique gentil/méchant dans les infos de traj
#Gestion de la souris
mouse mse = response_manager.get_mouse( 1 );
int max_x = display_device.width() / 2;
int min_x = -max_x;
int max_y = display_device.height() / 2;
int min_y = -max_y;
mse.set_min_max( 1, min_x, max_x );
mse.set_min_max( 2, min_y, max_y );
mse.set_restricted( 1, true );
mse.set_restricted( 2, true );
#Ouverture du port parallel
#if(outputAvailable == true) then
output_port output = output_port_manager.get_port(1);
#end;
#Tableaux contenant les informations de trajectoires
array <int> positions[35][2] = {{0,-5},{3,-4},{4,-2},{5,0},{4,2},{3,4},{0,5},{0,-8},{4,-7},{7,-4},{8,0},{7,4},{4,7},{0,8},{0,-14},{7,-12},{12,-7},{14,0},{12,7},{7,12},{0,14},{0,-24},{12,-21},{21,-12},{24,0},{21,12},{12,21},{0,24},{0,-41},{21,-36},{36,-20},{41,0},{36,20},{21,36},{0,41}};
array <int> trajectoiresN[100][12] ={{25,33,27,33,25,24,30,-1,-1,-1,-1,-1},{25,33,32,24,23,16,17,11,12,20,12,6},{25,26,34,28,20,26,33,32,24,30,-1,-1},{25,19,20,28,20,13,6,-1,-1,-1,-1,-1},{25,32,24,23,31,24,25,18,10,16,24,30},{25,32,26,27,20,27,26,19,20,13,6,-1},{25,24,25,17,24,23,29,-1,-1,-1,-1,-1},{25,26,19,13,14,21,27,28,20,13,7,-1},{25,31,32,31,23,24,30,24,16,23,29,-1},{25,32,31,32,26,33,32,25,17,25,19,13},{25,31,25,24,31,30,29,-1,-1,-1,-1,-1},{25,33,32,25,31,24,31,30,29,-1,-1,-1},{25,32,26,25,31,25,18,12,6,-1,-1,-1},{25,17,10,4,3,4,3,10,9,16,24,30},{25,33,32,24,25,17,11,12,6,-1,-1,-1},{25,17,25,32,25,17,25,24,30,-1,-1,-1},{25,18,19,25,19,12,13,7,-1,-1,-1,-1},{25,26,18,19,11,19,26,20,12,11,5,6},{25,32,33,32,24,25,32,31,25,26,20,12},{25,33,26,20,28,27,19,26,25,18,17,23},{25,17,16,10,17,25,24,30,-1,-1,-1,-1},{25,24,32,26,32,26,19,13,7,-1,-1,-1},{25,31,24,18,10,4,12,13,5,12,13,7},{25,32,26,19,27,34,26,20,19,13,7,-1},{25,19,26,19,18,24,25,17,10,17,16,23},{25,24,17,24,18,19,13,7,-1,-1,-1,-1},{25,26,25,32,31,23,29,-1,-1,-1,-1,-1},{25,18,19,18,10,11,17,24,30,-1,-1,-1},{25,24,16,24,25,32,26,33,34,27,21,13},{25,24,32,25,19,13,7,-1,-1,-1,-1,-1},{25,24,31,32,25,19,25,32,24,23,29,-1},{25,26,25,33,27,19,13,7,-1,-1,-1,-1},{25,31,32,31,24,31,32,24,18,19,13,7},{25,31,25,31,23,17,18,24,17,11,19,13},{25,33,32,26,18,12,6,-1,-1,-1,-1,-1},{25,31,23,31,25,32,31,23,29,-1,-1,-1},{25,18,25,17,18,25,31,23,29,-1,-1,-1},{25,19,26,34,28,34,28,27,20,12,18,24},{25,17,16,23,24,18,26,25,33,32,24,30},{25,19,27,33,32,24,30,-1,-1,-1,-1,-1},{25,18,19,13,19,27,33,27,19,18,24,30},{25,31,30,24,25,33,32,24,30,-1,-1,-1},{25,32,33,25,19,20,13,7,-1,-1,-1,-1},{25,32,25,19,20,12,5,6,-1,-1,-1,-1},{25,17,25,31,23,22,15,9,10,18,12,6},{25,24,17,18,25,18,12,6,-1,-1,-1,-1},{25,31,32,26,19,13,7,-1,-1,-1,-1,-1},{25,17,16,8,9,2,3,11,12,6,7,-1},{25,18,19,27,21,27,34,27,19,13,6,7},{25,18,10,11,17,10,4,10,4,11,5,6},{25,32,31,32,31,23,29,-1,-1,-1,-1,-1},{25,26,20,28,20,13,7,-1,-1,-1,-1,-1},{25,18,24,32,33,26,18,19,12,13,7,-1},{25,33,34,26,32,33,26,33,26,20,13,7},{25,17,18,25,24,25,31,25,17,23,31,30},{25,18,12,11,12,20,12,11,5,13,7,-1},{25,24,32,24,31,25,18,19,13,14,7,-1},{25,19,12,4,12,18,17,10,18,12,6,-1},{25,32,25,19,18,12,6,-1,-1,-1,-1,-1},{25,32,26,25,19,11,5,6,-1,-1,-1,-1},{25,33,26,18,17,23,29,-1,-1,-1,-1,-1},{25,19,12,18,10,16,23,29,-1,-1,-1,-1},{25,31,25,31,30,22,29,30,29,30,-1,-1},{25,32,25,26,19,13,6,-1,-1,-1,-1,-1},{25,24,32,31,23,17,18,12,6,-1,-1,-1},{25,19,20,28,34,33,25,31,30,-1,-1,-1},{25,32,25,31,24,18,12,6,-1,-1,-1,-1},{25,24,16,23,24,30,23,31,32,31,23,29},{25,24,25,32,24,32,25,19,12,6,7,-1},{25,18,25,26,18,11,5,6,-1,-1,-1,-1},{25,26,20,28,27,21,20,12,11,17,24,30},{25,24,32,33,26,25,31,23,17,18,12,6},{25,18,19,27,19,25,24,30,29,-1,-1,-1},{25,32,26,18,19,13,14,21,20,12,18,24},{25,32,33,25,33,25,31,30,-1,-1,-1,-1},{25,18,25,24,31,25,18,25,19,25,24,30},{25,24,16,24,31,25,19,13,7,-1,-1,-1},{25,33,25,26,20,27,35,34,26,19,18,24},{25,26,33,32,24,17,24,25,19,13,7,-1},{25,17,16,17,24,18,19,26,19,26,18,24},{25,17,23,22,23,22,23,30,31,24,18,12},{25,31,32,24,18,11,12,6,7,-1,-1,-1},{25,19,11,12,5,13,14,13,20,19,25,24},{25,19,18,24,16,22,15,22,23,29,22,29},{25,26,19,27,33,26,25,31,30,-1,-1,-1},{25,17,11,10,17,23,16,24,18,12,6,-1},{25,33,34,27,28,21,20,12,18,24,30,-1},{25,31,25,18,26,20,12,6,-1,-1,-1,-1},{25,18,26,19,27,21,14,6,-1,-1,-1,-1},{25,18,24,16,15,9,17,18,12,18,24,30},{25,17,18,26,25,17,10,11,18,24,23,29},{25,31,25,31,24,18,24,18,19,13,14,7},{25,18,10,17,11,12,6,-1,-1,-1,-1,-1},{25,31,25,32,25,24,30,29,-1,-1,-1,-1},{25,31,32,31,24,18,19,13,7,-1,-1,-1},{25,33,25,26,34,33,34,28,27,19,12,6},{25,19,11,10,17,23,29,-1,-1,-1,-1,-1},{25,24,30,23,29,-1,-1,-1,-1,-1,-1,-1},{25,31,32,25,19,25,24,30,-1,-1,-1,-1},{25,19,12,19,18,24,23,29,-1,-1,-1,-1}};
array <int> trajectoiresInv[100][12] ={{25,31,23,31,25,26,34,-1,-1,-1,-1,-1},{25,31,32,26,27,20,19,11,10,16,10,2},{25,24,30,22,16,24,31,32,26,34,-1,-1},{25,17,16,22,16,9,2,-1,-1,-1,-1,-1},{25,32,26,27,33,26,25,18,12,20,26,34},{25,32,24,23,16,23,24,17,16,9,2,-1},{25,26,25,19,26,27,35,-1,-1,-1,-1,-1},{25,24,17,9,8,15,23,22,16,9,1,-1},{25,33,32,33,27,26,34,26,20,27,35,-1},{25,32,33,32,24,31,32,25,19,25,17,9},{25,33,25,26,33,34,35,-1,-1,-1,-1,-1},{25,31,32,25,33,26,33,34,35,-1,-1,-1},{25,32,24,25,33,25,18,10,2,-1,-1,-1},{25,19,12,4,5,4,5,12,13,20,26,34},{25,31,32,26,25,19,11,10,2,-1,-1,-1},{25,19,25,32,25,19,25,26,34,-1,-1,-1},{25,18,17,25,17,10,9,1,-1,-1,-1,-1},{25,24,18,17,11,17,24,16,10,11,3,2},{25,32,31,32,26,25,32,33,25,24,16,10},{25,31,24,16,22,23,17,24,25,18,19,27},{25,19,20,12,19,25,26,34,-1,-1,-1,-1},{25,26,32,24,32,24,17,9,1,-1,-1,-1},{25,33,26,18,12,4,10,9,3,10,9,1},{25,32,24,17,23,30,24,16,17,9,1,-1},{25,17,24,17,18,26,25,19,12,19,20,27},{25,26,19,26,18,17,9,1,-1,-1,-1,-1},{25,24,25,32,33,27,35,-1,-1,-1,-1,-1},{25,18,17,18,12,11,19,26,34,-1,-1,-1},{25,26,20,26,25,32,24,31,30,23,15,9},{25,26,32,25,17,9,1,-1,-1,-1,-1,-1},{25,26,33,32,25,17,25,32,26,27,35,-1},{25,24,25,31,23,17,9,1,-1,-1,-1,-1},{25,33,32,33,26,33,32,26,18,17,9,1},{25,33,25,33,27,19,18,26,19,11,17,9},{25,31,32,24,18,10,2,-1,-1,-1,-1,-1},{25,33,27,33,25,32,33,27,35,-1,-1,-1},{25,18,25,19,18,25,33,27,35,-1,-1,-1},{25,17,24,30,22,30,22,23,16,10,18,26},{25,19,20,27,26,18,24,25,31,32,26,34},{25,17,23,31,32,26,34,-1,-1,-1,-1,-1},{25,18,17,9,17,23,31,23,17,18,26,34},{25,33,34,26,25,31,32,26,34,-1,-1,-1},{25,32,31,25,17,16,9,1,-1,-1,-1,-1},{25,32,25,17,16,10,3,2,-1,-1,-1,-1},{25,19,25,33,27,28,21,13,12,18,10,2},{25,26,19,18,25,18,10,2,-1,-1,-1,-1},{25,33,32,24,17,9,1,-1,-1,-1,-1,-1},{25,19,20,14,13,6,5,11,10,2,1,-1},{25,18,17,23,15,23,30,23,17,9,2,1},{25,18,12,11,19,12,4,12,4,11,3,2},{25,32,33,32,33,27,35,-1,-1,-1,-1,-1},{25,24,16,22,16,9,1,-1,-1,-1,-1,-1},{25,18,26,32,31,24,18,17,10,9,1,-1},{25,31,30,24,32,31,24,31,24,16,9,1},{25,19,18,25,26,25,33,25,19,27,33,34},{25,18,10,11,10,16,10,11,3,9,1,-1},{25,26,32,26,33,25,18,17,9,8,1,-1},{25,17,10,4,10,18,19,12,18,10,2,-1},{25,32,25,17,18,10,2,-1,-1,-1,-1,-1},{25,32,24,25,17,11,3,2,-1,-1,-1,-1},{25,31,24,18,19,27,35,-1,-1,-1,-1,-1},{25,17,10,18,12,20,27,35,-1,-1,-1,-1},{25,33,25,33,34,28,35,34,35,34,-1,-1},{25,32,25,24,17,9,2,-1,-1,-1,-1,-1},{25,26,32,33,27,19,18,10,2,-1,-1,-1},{25,17,16,22,30,31,25,33,34,-1,-1,-1},{25,32,25,33,26,18,10,2,-1,-1,-1,-1},{25,26,20,27,26,34,27,33,32,33,27,35},{25,26,25,32,26,32,25,17,10,2,1,-1},{25,18,25,24,18,11,3,2,-1,-1,-1,-1},{25,24,16,22,23,15,16,10,11,19,26,34},{25,26,32,31,24,25,33,27,19,18,10,2},{25,18,17,23,17,25,26,34,35,-1,-1,-1},{25,32,24,18,17,9,8,15,16,10,18,26},{25,32,31,25,31,25,33,34,-1,-1,-1,-1},{25,18,25,26,33,25,18,25,17,25,26,34},{25,26,20,26,33,25,17,9,1,-1,-1,-1},{25,31,25,24,16,23,29,30,24,17,18,26},{25,24,31,32,26,19,26,25,17,9,1,-1},{25,19,20,19,26,18,17,24,17,24,18,26},{25,19,27,28,27,28,27,34,33,26,18,10},{25,33,32,26,18,11,10,2,1,-1,-1,-1},{25,17,11,10,3,9,8,9,16,17,25,26},{25,17,18,26,20,28,21,28,27,35,28,35},{25,24,17,23,31,24,25,33,34,-1,-1,-1},{25,19,11,12,19,27,20,26,18,10,2,-1},{25,31,30,23,22,15,16,10,18,26,34,-1},{25,33,25,18,24,16,10,2,-1,-1,-1,-1},{25,18,24,17,23,15,8,2,-1,-1,-1,-1},{25,18,26,20,21,13,19,18,10,18,26,34},{25,19,18,24,25,19,12,11,18,26,27,35},{25,33,25,33,26,18,26,18,17,9,8,1},{25,18,12,19,11,10,2,-1,-1,-1,-1,-1},{25,33,25,32,25,26,34,35,-1,-1,-1,-1},{25,33,32,33,26,18,17,9,1,-1,-1,-1},{25,31,25,24,30,31,30,22,23,17,10,2},{25,17,11,12,19,27,35,-1,-1,-1,-1,-1},{25,26,34,27,35,-1,-1,-1,-1,-1,-1,-1},{25,33,32,25,17,25,26,34,-1,-1,-1,-1},{25,17,10,17,18,26,27,35,-1,-1,-1,-1}};
array <int> mouvementsN[100][11] ={{7,1,9,3,6,9,-1,-1,-1,-1,-1},{7,6,3,6,2,4,1,4,7,3,1},{4,7,1,3,9,8,6,3,9,-1,-1},{1,4,7,3,2,2,-1,-1,-1,-1,-1},{8,3,6,7,2,4,2,3,9,7,9},{8,1,4,2,8,6,2,4,2,2,-1},{6,4,3,8,6,9,-1,-1,-1,-1,-1},{4,2,1,4,8,9,4,3,2,1,-1},{9,4,6,3,4,9,1,3,8,9,-1},{8,6,4,1,8,6,2,3,7,1,1},{9,1,6,8,6,6,-1,-1,-1,-1,-1},{7,6,2,9,2,8,6,6,-1,-1,-1},{8,1,6,9,1,2,1,1,-1,-1,-1},{3,2,1,6,4,6,8,6,8,7,9},{7,6,3,4,3,1,4,1,-1,-1,-1},{3,7,8,2,3,7,6,9,-1,-1,-1},{2,4,9,1,2,4,1,-1,-1,-1,-1},{4,3,4,3,7,8,1,3,6,1,4},{8,4,6,3,4,8,6,1,4,1,3},{7,2,1,7,6,3,8,6,2,6,9},{3,6,1,8,7,6,9,-1,-1,-1,-1},{6,7,1,9,1,2,1,1,-1,-1,-1},{9,2,1,3,1,7,4,3,8,4,1},{8,1,2,7,8,3,1,6,1,1,-1},{1,8,2,6,9,4,3,2,8,6,8},{6,2,8,1,4,1,1,-1,-1,-1,-1},{4,6,8,6,3,9,-1,-1,-1,-1,-1},{2,4,6,3,4,9,8,9,-1,-1,-1},{6,3,7,4,8,1,8,4,2,1,3},{6,7,2,1,1,1,-1,-1,-1,-1,-1},{6,8,4,2,1,9,8,3,6,9,-1},{4,6,7,1,3,1,1,-1,-1,-1,-1},{9,4,6,2,8,4,3,1,4,1,1},{9,1,9,3,1,4,9,2,1,7,1},{7,6,1,3,1,1,-1,-1,-1,-1,-1},{9,3,7,1,8,6,3,9,-1,-1,-1},{2,8,3,4,8,9,3,9,-1,-1,-1},{1,8,7,1,9,1,6,2,3,9,9},{3,6,8,4,1,7,6,7,6,3,9},{1,7,9,6,3,9,-1,-1,-1,-1,-1},{2,4,1,9,7,9,1,3,6,9,9},{9,6,1,4,7,6,3,9,-1,-1,-1},{8,4,3,1,4,2,1,-1,-1,-1,-1},{8,2,1,4,3,2,4,-1,-1,-1,-1},{3,7,9,3,6,2,1,4,7,1,1},{6,2,4,8,2,1,1,-1,-1,-1,-1},{9,4,1,2,1,1,-1,-1,-1,-1,-1},{3,6,3,4,2,4,7,4,1,4,-1},{2,4,7,1,9,8,2,3,1,2,4},{2,3,4,9,2,1,9,1,8,1,4},{8,6,4,6,3,9,-1,-1,-1,-1,-1},{4,1,7,3,2,1,-1,-1,-1,-1,-1},{2,9,7,4,2,3,4,2,4,1,-1},{7,4,3,9,4,2,8,2,1,2,1},{3,4,8,6,4,9,1,3,9,7,6},{2,1,6,4,7,3,6,1,7,1,-1},{6,7,3,8,1,2,4,1,4,2,-1},{1,2,3,7,9,6,2,7,1,1,-1},{8,2,1,6,1,1,-1,-1,-1,-1,-1},{8,1,6,1,3,1,4,-1,-1,-1,-1},{7,2,3,6,9,9,-1,-1,-1,-1,-1},{1,2,9,3,9,8,9,-1,-1,-1,-1},{9,1,9,6,3,8,4,6,4,-1,-1},{8,2,4,2,1,2,-1,-1,-1,-1,-1},{6,7,6,3,1,4,1,1,-1,-1,-1},{1,4,7,9,6,3,9,6,-1,-1,-1},{8,2,9,2,1,1,1,-1,-1,-1,-1},{6,3,8,4,9,2,7,4,6,3,9},{6,4,8,3,7,2,1,2,1,4,-1},{2,8,4,3,2,1,4,-1,-1,-1,-1},{4,1,7,6,1,6,3,6,9,8,9},{6,7,4,2,6,9,3,1,4,1,1},{2,4,7,3,9,6,9,6,-1,-1,-1},{8,1,3,4,1,4,8,6,3,9,9},{8,4,3,7,3,9,6,-1,-1,-1,-1},{2,8,6,8,1,2,8,1,9,6,9},{6,3,7,8,1,1,1,1,-1,-1,-1},{7,3,4,1,8,7,6,3,2,6,9},{4,8,6,3,2,8,4,1,1,1,-1},{3,6,4,8,1,4,8,2,8,3,9},{3,9,6,4,6,4,8,4,2,1,1},{9,4,3,1,2,4,1,4,-1,-1,-1},{1,3,4,2,7,4,6,8,6,9,6},{1,6,9,3,9,2,8,4,9,2,8},{4,2,7,9,2,6,9,6,-1,-1,-1},{3,1,6,8,9,2,7,1,1,1,-1},{7,4,2,4,2,6,3,9,9,9,-1},{9,1,2,7,1,3,1,-1,-1,-1,-1},{2,7,2,7,1,2,3,-1,-1,-1,-1},{2,9,3,6,1,7,4,1,9,9,9},{3,4,7,6,3,2,4,8,9,6,9},{9,1,9,2,1,9,1,4,1,4,2},{2,3,8,1,4,1,-1,-1,-1,-1,-1},{9,1,8,2,6,9,6,-1,-1,-1,-1},{9,4,6,2,1,4,1,1,-1,-1,-1},{7,3,4,7,6,4,1,6,3,2,1},{1,3,6,8,9,9,-1,-1,-1,-1,-1},{6,9,2,9,-1,-1,-1,-1,-1,-1,-1},{9,4,2,1,9,6,9,-1,-1,-1,-1},{1,2,8,6,9,6,9,-1,-1,-1,-1}};
array <int> mouvementsInv[100][11] ={{9,3,7,1,4,7,-1,-1,-1,-1,-1},{9,4,1,4,2,6,3,6,9,1,3},{6,9,3,1,7,8,4,1,7,-1,-1},{3,6,9,1,2,2,-1,-1,-1,-1,-1},{8,1,4,9,2,6,2,1,7,9,7},{8,3,6,2,8,4,2,6,2,2,-1},{4,6,1,8,4,7,-1,-1,-1,-1,-1},{6,2,3,6,8,7,6,1,2,3,-1},{7,6,4,1,6,7,3,1,8,7,-1},{8,4,6,3,8,4,2,1,9,3,3},{7,3,4,8,4,4,-1,-1,-1,-1,-1},{9,4,2,7,2,8,4,4,-1,-1,-1},{8,3,4,7,3,2,3,3,-1,-1,-1},{1,2,3,4,6,4,8,4,8,9,7},{9,4,1,6,1,3,6,3,-1,-1,-1},{1,9,8,2,1,9,4,7,-1,-1,-1},{2,6,7,3,2,6,3,-1,-1,-1,-1},{6,1,6,1,9,8,3,1,4,3,6},{8,6,4,1,6,8,4,3,6,3,1},{9,2,3,9,4,1,8,4,2,4,7},{1,4,3,8,9,4,7,-1,-1,-1,-1},{4,9,3,7,3,2,3,3,-1,-1,-1},{7,2,3,1,3,9,6,1,8,6,3},{8,3,2,9,8,1,3,4,3,3,-1},{3,8,2,4,7,6,1,2,8,4,8},{4,2,8,3,6,3,3,-1,-1,-1,-1},{6,4,8,4,1,7,-1,-1,-1,-1,-1},{2,6,4,1,6,7,8,7,-1,-1,-1},{4,1,9,6,8,3,8,6,2,3,1},{4,9,2,3,3,3,-1,-1,-1,-1,-1},{4,8,6,2,3,7,8,1,4,7,-1},{6,4,9,3,1,3,3,-1,-1,-1,-1},{7,6,4,2,8,6,1,3,6,3,3},{7,3,7,1,3,6,7,2,3,9,3},{9,4,3,1,3,3,-1,-1,-1,-1,-1},{7,1,9,3,8,4,1,7,-1,-1,-1},{2,8,1,6,8,7,1,7,-1,-1,-1},{3,8,9,3,7,3,4,2,1,7,7},{1,4,8,6,3,9,4,9,4,1,7},{3,9,7,4,1,7,-1,-1,-1,-1,-1},{2,6,3,7,9,7,3,1,4,7,7},{7,4,3,6,9,4,1,7,-1,-1,-1},{8,6,1,3,6,2,3,-1,-1,-1,-1},{8,2,3,6,1,2,6,-1,-1,-1,-1},{1,9,7,1,4,2,3,6,9,3,3},{4,2,6,8,2,3,3,-1,-1,-1,-1},{7,6,3,2,3,3,-1,-1,-1,-1,-1},{1,4,1,6,2,6,9,6,3,6,-1},{2,6,9,3,7,8,2,1,3,2,6},{2,1,6,7,2,3,7,3,8,3,6},{8,4,6,4,1,7,-1,-1,-1,-1,-1},{6,3,9,1,2,3,-1,-1,-1,-1,-1},{2,7,9,6,2,1,6,2,6,3,-1},{9,6,1,7,6,2,8,2,3,2,3},{1,6,8,4,6,7,3,1,7,9,4},{2,3,4,6,9,1,4,3,9,3,-1},{4,9,1,8,3,2,6,3,6,2,-1},{3,2,1,9,7,4,2,9,3,3,-1},{8,2,3,4,3,3,-1,-1,-1,-1,-1},{8,3,4,3,1,3,6,-1,-1,-1,-1},{9,2,1,4,7,7,-1,-1,-1,-1,-1},{3,2,7,1,7,8,7,-1,-1,-1,-1},{7,3,7,4,1,8,6,4,6,-1,-1},{8,2,6,2,3,2,-1,-1,-1,-1,-1},{4,9,4,1,3,6,3,3,-1,-1,-1},{3,6,9,7,4,1,7,4,-1,-1,-1},{8,2,7,2,3,3,3,-1,-1,-1,-1},{4,1,8,6,7,2,9,6,4,1,7},{4,6,8,1,9,2,3,2,3,6,-1},{2,8,6,1,2,3,6,-1,-1,-1,-1},{6,3,9,4,3,4,1,4,7,8,7},{4,9,6,2,4,7,1,3,6,3,3},{2,6,9,1,7,4,7,4,-1,-1,-1},{8,3,1,6,3,6,8,4,1,7,7},{8,6,1,9,1,7,4,-1,-1,-1,-1},{2,8,4,8,3,2,8,3,7,4,7},{4,1,9,8,3,3,3,3,-1,-1,-1},{9,1,6,3,8,9,4,1,2,4,7},{6,8,4,1,2,8,6,3,3,3,-1},{1,4,6,8,3,6,8,2,8,1,7},{1,7,4,6,4,6,8,6,2,3,3},{7,6,1,3,2,6,3,6,-1,-1,-1},{3,1,6,2,9,6,4,8,4,7,4},{3,4,7,1,7,2,8,6,7,2,8},{6,2,9,7,2,4,7,4,-1,-1,-1},{1,3,4,8,7,2,9,3,3,3,-1},{9,6,2,6,2,4,1,7,7,7,-1},{7,3,2,9,3,1,3,-1,-1,-1,-1},{2,9,2,9,3,2,1,-1,-1,-1,-1},{2,7,1,4,3,9,6,3,7,7,7},{1,6,9,4,1,2,6,8,7,4,7},{7,3,7,2,3,7,3,6,3,6,2},{2,1,8,3,6,3,-1,-1,-1,-1,-1},{7,3,8,2,4,7,4,-1,-1,-1,-1},{7,6,4,2,3,6,3,3,-1,-1,-1},{9,1,6,9,4,6,3,4,1,2,3},{3,1,4,8,7,7,-1,-1,-1,-1,-1},{4,7,2,7,-1,-1,-1,-1,-1,-1,-1},{7,6,2,3,7,4,7,-1,-1,-1,-1},{3,2,8,4,7,4,7,-1,-1,-1,-1}};
array <int> pourcent[100]={90,90,90,70,90,70,90,90,70,70,90,90,90,90,70,70,90,90,70,90,70,70,90,70,90,90,70,90,90,70,70,70,70,90,70,70,90,70,70,70,70,70,70,90,90,70,70,70,70,90,70,70,90,70,70,70,70,90,90,90,90,70,90,70,90,90,70,90,70,90,70,70,90,70,90,70,70,90,90,90,70,70,90,70,70,90,70,70,90,90,70,70,70,90,70,90,90,70,70,90};
array <bool> indic[100][2] ={{true,true},{false,true},{true,true},{false,true},{true,true},{false,false},{true,true},{false,true},{true,false},{false,true},{true,true},{true,true},{false,true},{true,true},{false,true},{true,false},{false,true},{false,true},{false,false},{true,true},{true,true},{false,true},{false,false},{false,true},{true,true},{false,true},{true,true},{true,true},{false,true},{false,true},{true,false},{false,false},{false,false},{false,true},{false,true},{true,true},{true,true},{true,true},{true,true},{true,true},{true,false},{true,false},{false,true},{false,true},{false,true},{false,true},{false,false},{false,true},{false,false},{false,false},{true,true},{false,false},{false,true},{false,true},{true,true},{false,false},{false,true},{false,true},{false,true},{false,true},{true,true},{true,true},{true,true},{false,true},{false,true},{true,true},{false,true},{true,false},{false,true},{false,true},{true,true},{false,true},{true,true},{true,true},{true,false},{true,true},{false,true},{true,true},{false,true},{true,true},{false,false},{false,true},{true,true},{true,false},{true,true},{false,true},{true,false},{false,false},{false,true},{true,true},{true,true},{false,false},{false,true},{true,true},{false,true},{false,true},{true,true},{true,true},{true,true},{true,true}};
array <string> conversionMvmIntStr[9] = {"Approche Gauche","Approche","Approche Droite","Gauche","Neutre","Droite","Eloignement Gauche","Eloignement","Eloignement Droite"};
array <int> trajectoires[100][12] ={{25,18,12,11,4,12,18,24,30,-1,-1,-1},{25,17,11,4,12,19,11,5,4,12,6,-1},{25,33,32,33,25,24,30,22,29,-1,-1,-1},{25,33,27,33,25,19,25,18,24,30,-1,-1},{25,33,25,33,26,32,24,30,24,18,12,6},{25,33,34,26,25,26,19,13,6,-1,-1,-1},{25,32,25,19,11,17,24,30,29,-1,-1,-1},{25,24,18,25,26,19,26,25,18,12,6,-1},{25,19,26,34,33,25,31,24,30,-1,-1,-1},{25,31,23,16,24,17,11,12,6,-1,-1,-1},{25,24,16,23,22,15,9,15,23,30,-1,-1},{25,24,18,25,24,30,31,25,19,13,7,-1},{25,18,26,25,26,25,17,24,30,24,23,29},{25,26,25,18,19,18,24,31,23,29,-1,-1},{25,18,17,25,17,16,23,31,30,29,-1,-1},{25,31,24,18,19,13,7,-1,-1,-1,-1,-1},{25,32,31,32,25,26,18,19,12,6,-1,-1},{25,32,26,18,19,12,6,-1,-1,-1,-1,-1},{25,33,34,26,33,26,20,13,7,-1,-1,-1},{25,19,26,34,35,34,26,25,31,30,-1,-1},{25,32,33,32,33,25,18,12,5,6,-1,-1},{25,31,32,26,19,13,7,-1,-1,-1,-1,-1},{25,19,18,25,26,34,33,25,31,30,29,-1},{25,19,25,32,25,19,13,7,-1,-1,-1,-1},{25,17,23,30,31,23,31,30,-1,-1,-1,-1},{25,18,19,11,17,18,12,6,-1,-1,-1,-1},{25,31,25,18,19,13,7,-1,-1,-1,-1,-1},{25,33,26,20,19,12,18,24,30,-1,-1,-1},{25,18,10,9,16,24,30,-1,-1,-1,-1,-1},{25,33,26,18,17,23,29,-1,-1,-1,-1,-1}};
array <int> mouvements[100][11] ={{2,1,6,2,7,9,9,9,-1,-1,-1},{3,1,2,7,8,3,1,6,7,1,-1},{7,6,4,3,6,9,3,8,-1,-1,-1},{7,1,9,3,1,9,2,9,9,-1,-1},{7,3,7,2,9,3,9,1,1,1,1},{7,4,3,6,4,2,1,2,-1,-1,-1},{8,2,1,3,9,8,9,6,-1,-1,-1},{6,1,8,4,2,8,6,2,1,1,-1},{1,8,7,6,3,9,2,9,-1,-1,-1},{9,3,2,7,2,1,4,1,-1,-1,-1},{6,3,8,6,2,1,9,7,8,-1,-1},{6,1,8,6,9,4,1,1,1,1,-1},{2,7,6,4,6,3,8,9,1,6,9},{4,6,2,4,6,9,8,3,9,-1,-1},{2,6,7,3,6,8,7,6,6,-1,-1},{9,2,1,4,1,1,-1,-1,-1,-1,-1},{8,6,4,2,4,3,4,2,1,-1,-1},{8,1,3,4,2,1,-1,-1,-1,-1,-1},{7,4,3,8,2,1,2,1,-1,-1,-1},{1,8,7,4,6,3,6,9,6,-1,-1},{8,4,6,4,3,2,1,2,4,-1,-1},{9,4,1,2,1,1,-1,-1,-1,-1,-1},{1,6,8,4,7,6,3,9,6,6,-1},{1,9,8,2,1,1,1,-1,-1,-1,-1},{3,9,8,4,3,7,6,-1,-1,-1,-1},{2,4,3,9,4,1,1,-1,-1,-1,-1},{9,1,2,4,1,1,-1,-1,-1,-1,-1},{7,2,1,6,2,9,9,9,-1,-1,-1},{2,3,6,8,7,9,-1,-1,-1,-1,-1},{7,2,3,6,9,9,-1,-1,-1,-1,-1}};
array <int> convMouvementValence[9] = {-1,-1,0,-1,0,1,0,1,1};
array <int> convMouvementValenceInv[9] = {0,-1,-1,1,0,-1,1,1,0};
#Recupération de la position de la cible négative
trialInit.present();
int positionCible=response_manager.last_response();
if(positionCible == 1) then
ofile1.print("Cible Gauche"+"\n");
trajectoires = trajectoiresN;
mouvements=mouvementsN;
stimPos = stimPosGauche;
stimNeg = stimNegGauche;
else
ofile1.print("Cible Droite"+"\n");
trajectoires = trajectoiresInv;
mouvements=mouvementsInv;
stimPos = stimPosDroite;
stimNeg = stimNegDroite;
end;
#Récupération de la main dominante du sujet
trialMain.present();
int main=response_manager.last_response();
string mainDominante = "";
if(main == 1)then
mainDominante = "Gauche";
else
mainDominante = "Droite";
end;
ofile1.print("Main "+mainDominante+"\nFin\n");
#Informations pour la gestion du curseur;
array<int> infoCursor[12] = {0,0,0,0,0,0,0,0,0,0,0,0};
int countPos = response_manager.total_response_count( 10 );
int countNeg = response_manager.total_response_count( 11 );
int countn3 = response_manager.total_response_count( 13 );
int countn2 = response_manager.total_response_count( 14 );
int countn1 = response_manager.total_response_count( 15 );
int countne = response_manager.total_response_count( 16 );
int countp1 = response_manager.total_response_count( 17 );
int countp2 = response_manager.total_response_count( 18 );
int countp3 = response_manager.total_response_count( 19 );
int countClic = response_manager.total_response_count( 20 );
#Reset position curseur
int cursorPos = 4;
int prevCursorPos = cursorPos;
string cursorFName = "Question";
infoCursor[1] = cursorPos;
infoCursor[2] = prevCursorPos;
infoCursor[3] = countPos;
infoCursor[4] = countNeg;
infoCursor[5] = countn3;
infoCursor[6] = countn2;
infoCursor[7] = countn1;
infoCursor[8] = countne;
infoCursor[9] = countp1;
infoCursor[10] = countp2;
infoCursor[11] = countp3;
infoCursor[12] = countClic;
#Calibration du niveau de son
if(calibSonore) then
output_file ofileCalib = new output_file;
ofileCalib.open("Calib"+ logfile.subject()+"ApprocheReponseStimuli.txt", true );
trialDebCalib.present();
sCalib.set_attenuation(0.5);
double deltaAtt = 0.025;
double att = 0.7;
double attFinale = 0;
int nombreRepetCalib = 2;
int rep = 0;
double smallOffset = 0.05;
loop until rep == nombreRepetCalib
begin
att = 0.8+smallOffset;
count = response_manager.total_response_count( 12 );
#Produit un son de moustique de moins en moins atténué jusqu'a ce que l'utilisateur appuie sur Entree lorsqu'il entend le son
loop bool endL = false until endL == true
begin
att = att-deltaAtt;
sCalib.set_attenuation(att);
t.set_caption("Phase ascendante\nAppuyez sur [Entrée] dès que vous entendez un son",true);
trialCalib.present();
if(att <= 0 || count != response_manager.total_response_count( 12 ))then
endL = true;
end;
end;
double attApparition = att;
attFinale = attFinale+att;
ofileCalib.print("AttenuationApparition "+string(att)+"\n");
trialPrep.present();
#Produit un son de moustique de plus en plus atténué jusqu'à ce que l'utilisateur appuie sur Entree lorsqu'il entend le son
sCalib.set_attenuation(0+smallOffset);
att = 0;
count = response_manager.total_response_count( 12 );
loop bool endL = false until endL == true
begin
att = att+deltaAtt;
sCalib.set_attenuation(att);
t.set_caption("Phase descendante\nAppuyez sur [Entrée] dès que vous n'entendez plus le son",true);
trialCalib.present();
if(att == 1 || count != response_manager.total_response_count( 12 ))then
endL = true;
end;
end;
double attDisparition = att;
attFinale = attFinale+att;
ofileCalib.print("AttenuationDisparition "+string(att)+"\n");
trialPrep.present();
rep = rep+1;
smallOffset=smallOffset+0.05
end;
#Rep
attFinale = attFinale/((rep)*2);
#Calcul atténuation finale
#L'atténuation déterminé est la moyenne des deux attenuations détérminé par l'appuie de la touche [Entrée] par l'utilisateur auquel on soustrait 0.2
ofileCalib.print("AttenuationFinale "+string(attFinale));
deltaAtt = 0.3;
attFinale = attFinale-deltaAtt;
if((attFinale <=0))then
attFinale = 0;
end;
#Application de l'attenuation déterminée
loop int s = 1 until s > sounds.count()
begin
sounds[s].set_attenuation(attFinale);
s=s+1;
end;
stimPos.set_attenuation(attFinale);
stimNeg.set_attenuation(attFinale);
stimPosGauche.set_attenuation(attFinale);
stimNegGauche.set_attenuation(attFinale);
stimPosDroite.set_attenuation(attFinale);
stimNegDroite.set_attenuation(attFinale);
#te.set_caption(string(att)+"\nAppuyez sur [Entrée]",true);
#trialDebCalib.present();
else
loop int s = 1 until s > sounds.count()
begin
sounds[s].set_attenuation(0);
s=s+1;
end;
end;
if(presentation) then
trialPreparation.present();
end;
#Trial de test
if(essaiT == true)then
essaiTest.present();
#Présentation des trajectoires
loop int i = 1 until i > 4
begin
cursorPos = 4;
infoCursor[1] = cursorPos;
infoCursor[2] = cursorPos;
#Presentation trial début de trajectoire
trialDebutTrajectoire.present();
int valence = -1;
int longueur = 0;
bool v = indic[i][1];
if(v == true) then
valence = 1;
else
valence = 0;
end;
loop int k = 1 until k > trajectoires[i].count()
begin
k=k+1;
longueur = k;
if(k <= trajectoires[i].count())then
if(trajectoires[i][k] == -1) then
break;
end;
end;
end;
if(valence == 0)then
pic2.set_part(1,redbox);
picPiqure.set_part(1,redbox);
else
pic2.set_part(1,greenbox);
picPiqure.set_part(1,greenbox);
end;
#Trial de préparation a la trajectoire a suivre
if(longueur < 8) then
textPreTrajLongueur.set_caption("Elle sera courte",true);
else
textPreTrajLongueur.set_caption("Elle sera longue",true);
end;
string rrv="";
bpIncert.unload();
string extensionImg = ".png";
if(mosquitoCartoon == true)then
extensionImg = "M.png";
end;
if(indic[i][2] == true) then
if(valence == 0) then
bpIncert.set_filename("R"+string(pourcent[i])+extensionImg);
rrv = "La trajectoire aura "+string(pourcent[i])+"% de chance de vous piquer";
else
bpIncert.set_filename("V"+string(pourcent[i])+extensionImg);
rrv = "La trajectoire aura "+string(pourcent[i])+"% de chance de ne pas vous piquer";
end;
else
if(valence == 0) then
bpIncert.set_filename("V"+string(pourcent[i])+extensionImg);
rrv = "La trajectoire aura "+string(pourcent[i])+"% de chance de ne pas vous piquer";
else
bpIncert.set_filename("R"+string(pourcent[i])+extensionImg);
rrv = "La trajectoire aura "+string(pourcent[i])+"% de chance de vous piquer";
end;
end;
bpIncert.load();
string textTraj = "";
if(valence == 0) then
if(pourcent[i] > 80) then
rrv = "Le moustique est affamé";
else
rrv = "Le moustique semble avoir faim";
end;
else
if(pourcent[i] > 80) then
rrv = "Le moustique s'est déjà nourri";
else
rrv = "Le moustique ne semble pas avoir faim";
end;
end;
rrv="";
textPreTrajLongueur.set_caption(textPreTrajLongueur.caption()+"\n"+rrv,true);
#Marquage des données EEG pour indiquer quel est la trajectoire actuelle
bool l = false;
if(longueur >= 8) then
l = true;
end;
bool vval = false;
if(valence == 1) then
vval=true;
end;
int trigTraj = triggerTrajectoireV2(vval,indic[i][2],l,pourcent[i]);
#Affichage des infos de trajectoires
textPreTrajObjectif.set_caption(rrv,true);
trialPreparationTrajectoire.present();
int positionx = 0;
int positiony = 0;
int lastRep = -1;
bp.unload();
bp.set_filename(cursorFName+string(cursorPos)+".jpg");
bp.load();
#Boucle intra-trajectoire
loop int j = 1 until j == trajectoires[i].count()
begin
ofile1.print("Son\nNumero "+string(j)+"\n");
#Selection position curseur
infoCursor = calcPosCursor(infoCursor, cursorFName);
if(j != 1)then
#tPostSon.set_caption("Mouvement effectué :"+conversionMvmIntStr[mouvements[i][j-1]],true);
ofile1.print("Mouvement "+conversionMvmIntStr[mouvements[i][j-1]]+"\n");
#Ajout valence du mouvement
if(positionCible == 1)then
ofile1.print("Valence "+string(convMouvementValence[mouvements[i][j-1]])+"\n");
else
ofile1.print("Valence "+string(convMouvementValenceInv[mouvements[i][j-1]])+"\n");
end;
end;
if(trajectoires[i][j] != -1)then
positionx = positions[trajectoires[i][j]][1];
positiony = positions[trajectoires[i][j]][2];
ofile1.print("Position "+string(positionx)+"_"+string(positiony)+"\n");
end;
#Choix du stimulus audio
sound sd1 = sounds[trajectoires[i][j]];
s1.set_stimulus(sd1);
#Marker pour capture EEG
#output.send_code(triggerSonV2(trajectoires[i][j]));
#Presentation stimulus audio
trialSon.present();
double ti = clock.time();
loop until clock.time()>ti+1500
begin
infoCursor = calcPosCursor(infoCursor, cursorFName);
#trialPicSon.present();
trialQuestion.present();
end;
infoCursor = calcPosCursor(infoCursor, cursorFName);
cursorPos = infoCursor[1];
if(lastRep != -1 && j != 1) then
lastRep=cursorPos;
else
lastRep=cursorPos;
end;
j=j+1;
if(j <= trajectoires[i].count())then
if(trajectoires[i][j] == -1) then
break;
end;
end;
end;
#Presentation du stimulus final
if(valence == 0) then
seFinal.set_stimulus(stimNeg);
else
seFinal.set_stimulus(stimPos);
end;
if(valence == 0)then
#Activation du stimulus electrique
if(outputAvailable == true) then
output.send_code(1);
end;
end;
trialStimulusFinal.present();
bp.set_filename("blank.png");
bp.load();
#Presentation de la question sur le ressenti
trialDesagreable.present();
int desagreable=response_manager.last_response();
i=i+1;
end;
end;
trialDebutExpe.present();
#Présentation des trajectoires
loop int i = 1 until i > trajectoires.count()
begin
#Reset position curseur
cursorPos = 4;
infoCursor[1] = cursorPos;
infoCursor[2] = cursorPos;
#Presentation trial début de trajectoire
ofile1.print("Trajectoire "+string(i)+"\n");
trialDebutTrajectoire.present();
int valence = -1;
int longueur = 0;
bool v = indic[i][1];
if(v == true) then
valence = 1;
else
valence = 0;
end;
loop int k = 1 until k > trajectoires[i].count()
begin
k=k+1;
longueur = k;
if(k <= trajectoires[i].count())then
if(trajectoires[i][k] == -1) then
break;
end;
end;
end;
if(valence == 0)then
ofile1.print("ValenceTraj Negatif\n");
pic2.set_part(1,redbox);
picPiqure.set_part(1,redbox);
else
ofile1.print("ValenceTraj Positif\n");
pic2.set_part(1,greenbox);
picPiqure.set_part(1,greenbox);
end;
ofile1.print("Longueur "+string(longueur)+"\n");
#Trial de préparation a la trajectoire a suivre
if(longueur < 8) then
textPreTrajLongueur.set_caption("Elle sera courte",true);
else
textPreTrajLongueur.set_caption("Elle sera longue",true);
end;
string rrv="";
bpIncert.unload();
string extensionImg = ".png";
if(mosquitoCartoon == true)then
extensionImg = "M.png";
end;
if(indic[i][2] == true) then
if(valence == 0) then
bpIncert.set_filename("R"+string(pourcent[i])+extensionImg);
rrv = "La trajectoire aura "+string(pourcent[i])+"% de chance de vous piquer";
else
bpIncert.set_filename("V"+string(pourcent[i])+extensionImg);
rrv = "La trajectoire aura "+string(pourcent[i])+"% de chance de ne pas vous piquer";
end;
else
if(valence == 0) then
bpIncert.set_filename("V"+string(pourcent[i])+extensionImg);
rrv = "La trajectoire aura "+string(pourcent[i])+"% de chance de ne pas vous piquer";
else
bpIncert.set_filename("R"+string(pourcent[i])+extensionImg);
rrv = "La trajectoire aura "+string(pourcent[i])+"% de chance de vous piquer";
end;
end;
bpIncert.load();
string textTraj = "";
if(valence == 0) then
if(pourcent[i] > 80) then
rrv = "Le moustique est affamé";
else
rrv = "Le moustique semble avoir faim";
end;
else
if(pourcent[i] > 80) then
rrv = "Le moustique s'est déjà nourri";
else
rrv = "Le moustique ne semble pas avoir faim";
end;
end;
rrv="";
textPreTrajLongueur.set_caption(textPreTrajLongueur.caption()+"\n"+rrv,true);
#Marquage des données EEG pour indiquer quel est la trajectoire actuelle
bool l = false;
if(longueur >= 8) then
l = true;
end;
bool vval = false;
if(valence == 1) then
vval=true;
end;
int trigTraj = triggerTrajectoireV2(vval,indic[i][2],l,pourcent[i]);
if(outputAvailable == true) then
output.send_code(trigTraj);
end;
ofile1.print("TriggerTraj "+string(trigTraj)+"\n");
ofile1.print("PreparationTraj "+string(pourcent[i])+" "+string(indic[i][2])+"\n");
#Affichage des infos de trajectoires
textPreTrajObjectif.set_caption(rrv,true);
trialPreparationTrajectoire.present();
int positionx = 0;
int positiony = 0;
int lastRep = -1;
bp.unload();
bp.set_filename(cursorFName+string(cursorPos)+".jpg");
bp.load();
#Boucle intra-trajectoire
loop int j = 1 until j == trajectoires[i].count()
begin
ofile1.print("Son\nNumero "+string(j)+"\n");
infoCursor = calcPosCursor(infoCursor, cursorFName);
if(j != 1)then
ofile1.print("Mouvement "+conversionMvmIntStr[mouvements[i][j-1]]+"\n");
#Ajout valence du mouvement
if(positionCible == 1)then
ofile1.print("Valence "+string(convMouvementValence[mouvements[i][j-1]])+"\n");
else
ofile1.print("Valence "+string(convMouvementValenceInv[mouvements[i][j-1]])+"\n");
end;
end;
if(trajectoires[i][j] != -1)then
positionx = positions[trajectoires[i][j]][1];
positiony = positions[trajectoires[i][j]][2];
ofile1.print("Position "+string(positionx)+"_"+string(positiony)+"\n");
end;
#Choix du stimulus audio
sound sd1 = sounds[trajectoires[i][j]];
s1.set_stimulus(sd1);
#Marker pour capture EEG
if(outputAvailable == true) then
output.send_code(triggerSonV2(trajectoires[i][j]));
end;
ofile1.print("TriggerSon "+string(triggerSonV2(trajectoires[i][j]))+"\n");
#Presentation stimulus audio
trialSon.present();
double ti = clock.time();
loop until clock.time()>ti+1500
begin
infoCursor=calcPosCursor(infoCursor, cursorFName);
#trialPicSon.present();
trialQuestion.present();
end;
infoCursor = calcPosCursor(infoCursor, cursorFName);
cursorPos = infoCursor[1];
if(j != 1)then
ofile1.print("Reponse "+string(cursorPos)+"\n");
end;
if(lastRep != -1 && j != 1) then
ofile1.print("DifRep "+string(cursorPos-lastRep)+"\n");
lastRep=cursorPos;
else
lastRep=cursorPos;
end;
j=j+1;
if(j <= trajectoires[i].count())then
if(trajectoires[i][j] == -1) then
break;
end;
end;
end;
ofile1.print("FinSon \n");
#Presentation du stimulus final
if(valence == 0) then
seFinal.set_stimulus(stimNeg);
else
seFinal.set_stimulus(stimPos);
end;
if(valence == 0)then
#Activation du stimulus electrique
if(outputAvailable == true) then
output.send_code(1);
end;
end;
trialStimulusFinal.present();
bp.set_filename("blank.png");
bp.load();
#Presentation de la question sur le ressenti
trialDesagreable.present();
int desagreable=response_manager.last_response();
ofile1.print("Desagreable "+string(desagreable)+"\n");
i=i+1;
ofile1.print("Fin\n");
#Pause
if(i%(trajectoires.count()/5) == 0 && i != trajectoires.count()) then
trialPause.present();
end;
end;
|
8b31428c69d1a33dfe0d94f1f4e87fa090a2b8e7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3862/CH6/EX6.14/Ex6_14.sce | 6d9d7fdaebb578842395aba2fdc9823d1ea332b1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 299 | sce | Ex6_14.sce | clear
D=40.0 //Screw diameter
l=20.0 //Screw lwngth
p=l/3.0 //Lead of the screw
W=40000.0 //effort
R = 400 //Lever length
u = 0.12 //coefficient of friction between screw and nut
P = (D/(2*R))*W*((u+(p/(3.14*D)))/(1-u*(p/(3.14*D)))) //Effort
printf("\n Effort is %0.3f N",P)
|
17aa1ff1eea84119edc48c3aec0d1789ea990f36 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1598/CH4/EX4.17/ex4_17.sce | 62affab72fead10ea0e5d67c7b56f8be611cdb54 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 163 | sce | ex4_17.sce | clc;
V=250; //potential difference in Volt
C=10^-11; //capacitance in farad
q=C*V; //calculating charge
disp(q,"Charge in Coulomb = "); //displaying result |
fa041253e63ede90b3a3bf39d2b41af02388befa | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/vco/vco14.sce | 59e7abaf78cf7a09e5f20d1cfbee8be2a7127cb0 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 357 | sce | vco14.sce | //i/p vector contains complex elements
x=[1 0.2 -0.1+0.3*%i 0.4 0.1+0.5*%i];
y=vco(x,150,500);
disp(y);
////output
// column 1 to 2
//
// - 0.3090170 - 0.5358268
//
// column 3
//
// 1.0533942 + 0.2538114i
//
// column 4
//
// - 0.6842960 - 0.4822634i
//
// column 5
//
// - 1.0088598 + 1.9436435i
//
|
34b6ac529f8143a45d00d3d6a1e809232b10e3f2 | 3073307fa4b6da9371518f0718c199501b8c5c71 | /biseccion.sci | 649bfee2cdb9ea145b5c8792a508aaed12a1bf32 | [] | no_license | fern17/CalculoNumerico | 8b04abdf8e1da4b69a1256334a4bc58ff5c9180d | c793733ce17616361dd02f358ef63c1d9be5c99e | refs/heads/master | 2020-06-04T00:06:19.723655 | 2011-12-20T13:47:40 | 2011-12-20T13:47:40 | 2,929,202 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 794 | sci | biseccion.sci | //Realiza el método de la Bisección
//[a,b] extremos del intérvalo. Deben cumplir f(a)*f(b) < 0
// Tol: tolerancia a buscar
// maxit: numero maximo de iteraciones
function [x,it] = biseccion(a,b,tol,maxit)
fa = sign(bf(a));
fb = sign(bf(b));
x = 0;
if (fa*fb > 0)
disp("Intervalo incorrecto");
return;
end
for i=1:maxit
p = a + (b-a)/2;
fp = bf(p);
if(abs(fp) < tol)
x = p;
it = i;
return;
end
fa = sign(bf(a));
fb = sign(bf(b));
if(sign(fp)*fa < 0)
b = p;
else
a = p;
end
end
disp("Maximo numero de iteraciones alcanzadas");
it = maxit;
endfunction
function y = bf(x)
y = x^2 - 1;
endfunction |
efc2d2f94dcc443cb2015fe6f09ec662f3324de0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /50/CH4/EX4.35/ex_4_35.sce | d7dceb1692b5ee06f8556002688a31f022691b8b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 195 | sce | ex_4_35.sce | // example 4.35
// obtain least square approximation of second degree;
x=[-2 -1 0 1 2];
f=[15 1 1 3 19];
[P]=quadraticapprox(x,f) // call of the function to get the desired solution |
96cb7ded2baff066ccb950c58dc5d448cd6ee1b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3535/CH6/EX6.2/Ex6_2.sce | cf304d4e3fbe24e579ed3ad10aaa6fe2c667733c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 195 | sce | Ex6_2.sce | //Chapter 6, Example 6.2, Page 145
clc
clear
// Maximum Energy loss
me = 0.0005486
M = 4.003
EM = 4
Emax = 4*(me/M)*EM
printf("Emax = %f keV",Emax*10^3)
//Answers may vary due to round off error
|
0eee531ed0573378771ada22cd7a6f494191bab2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /165/CH11/EX11.14/ex11_14.sce | ad1b134e39610aef0443211b8507334d304af2df | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex11_14.sce | //Example 11.14
clc;
//Anderson's Bridge
//Given values of bridge elements
r=496;
R2=200;
R3=1000;
R4=1000;
C=10*10^-6;
//R1 for Anderson's bridge
R1=R2*R3/R4;
//L1 for Anderson's bridge
L1=(r*(R4+R2)+R2*R4)*C*R3/R4;
printf('\nValue of resistence R1 is %.2f ohm\n',R1)
printf('\nValue of inductance L1 is %.4f H\n',L1) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.