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
b07383f63d2c953b96765f2203517c21e9f5a254
449d555969bfd7befe906877abab098c6e63a0e8
/2708/CH14/EX14.4/ex_14_4.sce
c3ef3f28625ba79835362d8dfc4d8e7d07bfc9b4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
ex_14_4.sce
//Example 14.4 // wavelength & angle clc; clear; //given data : d=2.82;//spacing between successive planes in A theta=8+35/60;//in degree theta=theta*%pi/180;// to convert in radian n=1;// order of reflection lamda=2*d*sin(theta) /n;//de-broglie equation disp(lamda,"wavelength of NaCl in A ") n=2;//to find angleof reflection theta=asin(n*lamda/(2*d));//angle of reflection radian theta=theta*180/%pi;// to convert in degree disp(theta,"angle of reflection in degree")
dd0e86204ed7ba529508a4f297823f3b7509b774
449d555969bfd7befe906877abab098c6e63a0e8
/1223/CH12/EX12.22/Ex12_22.sce
caab2aad9b1ff1476d43ff25f2caa7204df8e9a5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex12_22.sce
clear; clc; //Example 12.22 Ao=10^6; fPD=0.010;//KHz b=0.01; Af=Ao/(1+b*Ao); printf('\nlow frequency closed loop gain=%.2f\n',Af) fc=fPD*(1+b*Ao); printf('\nclosed loop 3dB frequency=%.2f KHz\n',fc)
de7593b6e02e77c31e713d897a2a1139bf58bf6c
449d555969bfd7befe906877abab098c6e63a0e8
/24/CH45/EX45.3/Example45_3.sce
37de01a845c24d286856de4bb424459f3ca993c2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Example45_3.sce
//Given that Ep = 938.3 //in Mev Epi = 135.0 //in Mev Epip = 139.6 //in Mev //Sample Problem 45-3 pt = mopen('Example45_3_result.txt', 'wt') mfprintf(pt, '**Sample Problem 45-3**\n') Q = Ep - Epi - Epip if (Q > 0) then mfprintf(pt, 'The proton can decay according to given scheme') else mfprintf(pt, 'The proton cannot decay according to the given scheme') end mclose(pt)
c131c6a3db7f0484f610c0c75a656957583eb576
717ddeb7e700373742c617a95e25a2376565112c
/3165/CH3/EX3.13/Ex3_13.sce
11aba534f9cbfea209d6e7e6dbdf04e634b0ab4a
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
701
sce
Ex3_13.sce
//Example 3-13 //Program to Pl o t Magni tude Responce o f i d e a l d i f f e r e n t i a t o r wi th s p e c i f i c a t i o n s : //N=8 ,w=p i // u s i n g Re c t angul a r window clc ; N =8; alpha =7/2; U =1; h_Rect = window ( 're' ,N); for n =0+ U :1:7+ U hd(n)=-( sin (%pi *(n-U- alpha )))/( %pi *(n-U- alpha )*(n-U-alpha )); h(n)=hd(n)* h_Rect (n); end [ hzm ,fr ]= frmag (h ,256) ; hzm_dB = 20* log10 (hzm)./ max ( hzm ); figure plot (2* fr , hzm_dB ) a= gca (); xlabel ( ' Fr equency w p i ' ); ylabel ( 'Magni tude i n dB ' ); title ( ' Fr equency Re spons e o f g i v e n i d e a l d i f f e r e n t i a t o r u s i n g Re c t angul a r Window , N=8 ' ); xgrid (2)
13f6ff684f73a2c8fb735481ec155763d316320e
449d555969bfd7befe906877abab098c6e63a0e8
/1892/CH3/EX3.13/Example3_13.sce
cd3c192ffaf430ba07bf86338c8ab3fd446397c8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
386
sce
Example3_13.sce
// Example 3.13 clear; clc; close; format('v',7); // Given data J=3*10^-4;//in Kgm^2; f1=1000;//in Hz f2=2000;//in Hz delt=100;//in ms Tf=0.05;//in N-m Qs=1.8;//in degree //Calculations delt=100*10^-3;//in sec Qs=Qs*%pi/180;//in radian w1=Qs*f1;//in rad/sec w2=Qs*f2;//in rad/sec dwBYdt=(w2-w1)/delt;// Tm=J*dwBYdt+Tf;//in N-m disp(Tm,"Motor Torque in N-m : ");
0869cfb70daf3b9a8d326db3d52919b1db29c71b
1b969fbb81566edd3ef2887c98b61d98b380afd4
/Rez/bivariate-lcmsr-post_mi/bfas_ap_vrt_ind_d/~BivLCM-SR-bfas_ap_vrt_ind_d-PLin-VLin.tst
74697d33cd3eff057c940cca5ff5ae0aff062533
[]
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_ap_vrt_ind_d-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.255153D+00 2 -0.347966D-02 0.195187D-02 3 -0.131830D+00 0.221831D-02 0.403058D+00 4 0.331633D-02 -0.905853D-03 -0.706901D-02 0.331086D-02 5 -0.143322D-03 0.806913D-05 0.720882D-03 -0.266993D-04 0.254794D-02 6 -0.541884D-03 0.150351D-04 -0.827425D-03 -0.460999D-04 0.284385D-03 7 -0.174617D-02 -0.792815D-06 -0.724491D-03 -0.930061D-05 -0.479820D-03 8 -0.563256D-03 0.577183D-04 0.114418D-02 0.154268D-03 -0.858455D-04 9 -0.245491D+00 0.153551D-03 0.202263D+00 0.795739D-02 0.420382D-01 10 -0.201145D+00 -0.390959D-02 0.311386D+00 -0.130141D-02 0.115961D+00 11 0.254584D-01 0.909760D-02 0.817922D-01 0.361555D-02 -0.298056D-01 12 0.185165D+00 -0.284117D-02 0.171104D+00 -0.599263D-01 0.137462D-01 13 -0.171545D-01 0.823001D-02 -0.220406D+00 -0.119663D-01 -0.105863D-02 14 0.745340D-01 -0.371388D-02 0.373985D+00 0.226773D-01 0.494361D-02 15 -0.151144D+01 0.164397D-01 0.558580D+00 -0.190362D-01 -0.869955D-01 16 -0.115912D-01 -0.764644D-02 0.333432D-02 0.359395D-02 0.591187D-03 17 -0.633732D-03 -0.336475D-03 0.985517D-03 0.198457D-03 -0.233550D-03 18 0.552241D+00 -0.189208D-01 -0.345647D+00 0.269470D-01 -0.983971D-02 19 0.844391D-02 0.851524D-02 -0.879425D-01 0.253310D-02 -0.257456D-01 20 -0.245552D+00 -0.507317D-02 -0.988409D+00 -0.710241D-01 0.961346D-01 21 -0.155097D-01 0.717875D-03 0.840817D-01 -0.632409D-02 0.230348D-01 22 0.288529D-02 0.195844D-03 -0.476569D-03 -0.215236D-03 0.224662D-03 23 0.648205D-02 -0.322211D-02 0.609381D-02 -0.383240D-03 0.256885D-02 24 -0.242524D-02 -0.725624D-04 0.557209D-02 0.117336D-02 -0.542501D-03 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 6 7 8 9 10 ________ ________ ________ ________ ________ 6 0.664570D-03 7 0.458253D-03 0.345541D-02 8 -0.240823D-03 0.632231D-03 0.294334D-02 9 0.207663D-02 -0.438020D-01 -0.146060D-01 0.354126D+02 10 0.995915D-02 -0.291796D-01 0.333894D-02 0.114985D+01 0.132355D+02 11 0.110727D-01 0.859961D-02 -0.555355D-02 -0.105865D+02 0.280655D+00 12 -0.228114D-01 -0.129691D-01 0.820881D-01 0.875790D+01 0.228476D+01 13 0.487772D-01 0.101303D+00 -0.158273D-01 -0.119916D+01 -0.204004D+01 14 -0.358759D-01 0.503221D-01 0.249603D+00 -0.874184D+00 0.398614D+01 15 -0.328413D-02 0.524267D-01 -0.287944D-01 -0.393532D+01 -0.705988D+01 16 0.126531D-03 -0.741991D-03 -0.109038D-02 0.469028D+00 0.933858D-01 17 0.198597D-03 0.369074D-04 0.227638D-03 -0.643756D-01 0.622579D-03 18 -0.235099D-01 -0.921002D-01 -0.823793D-02 -0.276650D+00 0.922725D+00 19 -0.120325D-01 0.113834D-01 -0.272836D-02 -0.154876D+00 -0.217252D+01 20 0.561188D-02 -0.113151D+00 -0.251417D+00 0.267552D+01 0.744935D+01 21 0.117804D-01 -0.144258D-01 0.280036D-02 -0.500535D+00 0.194433D+01 22 -0.130809D-03 0.149424D-03 0.356239D-03 0.146541D-01 0.727400D-02 23 -0.914519D-04 -0.396259D-02 -0.226549D-02 0.953987D-01 0.195928D+00 24 0.124903D-03 0.478423D-03 -0.619730D-04 -0.562394D-02 -0.410491D-01 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 11 12 13 14 15 ________ ________ ________ ________ ________ 11 0.388226D+02 12 -0.353039D+02 0.190025D+03 13 -0.202174D+01 -0.232320D+01 0.131305D+02 14 0.308434D+00 0.123668D+02 -0.941686D+01 0.848720D+02 15 -0.194169D+01 0.950370D+01 0.119194D+01 -0.307916D+01 0.168078D+03 16 -0.313769D+00 0.923281D-01 -0.186501D-01 0.187980D-01 0.421318D+00 17 0.583801D-01 -0.103696D+00 0.168539D-01 0.242262D-01 -0.760098D+00 18 0.316014D+01 -0.309413D+01 -0.560286D+01 0.105398D+02 -0.711125D+02 19 0.407823D+00 -0.288710D+01 -0.933774D-01 -0.137266D+01 -0.754625D+00 20 -0.695775D+01 -0.170190D+02 0.416133D+01 -0.572550D+02 0.178154D+02 21 0.201237D+00 0.222341D+01 -0.217505D-01 0.106268D+01 0.115930D+01 22 -0.840321D-01 0.140073D+00 0.155697D-01 0.395718D-02 0.314747D+00 23 -0.577693D+00 0.124608D+01 -0.229042D-01 -0.162635D+00 -0.659577D+00 24 0.121549D+00 -0.318331D+00 -0.145165D-01 0.630818D-01 -0.486188D-01 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 16 17 18 19 20 ________ ________ ________ ________ ________ 16 0.319331D+00 17 -0.150157D-01 0.100746D-01 18 0.948567D-01 0.347757D+00 0.147399D+03 19 -0.160391D+00 0.125691D-01 -0.600748D+00 0.464143D+01 20 -0.291914D+00 -0.118682D+00 -0.972992D+02 -0.712467D+00 0.388447D+03 21 -0.107751D+00 0.531794D-02 0.164332D+01 -0.433720D+01 0.302790D+00 22 0.815080D-02 -0.444335D-02 -0.692388D+00 0.201709D-02 0.417901D+00 23 0.571899D-01 -0.908452D-03 0.490772D-01 -0.139288D+00 0.262753D+01 24 -0.163909D-02 0.172055D-02 0.417255D+00 0.172327D-01 -0.163555D+01 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 21 22 23 24 ________ ________ ________ ________ 21 0.516140D+01 22 -0.433507D-01 0.867317D-02 23 -0.244980D+00 0.151892D-01 0.644999D+00 24 0.146720D-01 -0.553026D-02 -0.623182D-01 0.183525D-01 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 1 2 3 4 5 ________ ________ ________ ________ ________ 1 1.000 2 -0.156 1.000 3 -0.411 0.079 1.000 4 0.114 -0.356 -0.194 1.000 5 -0.006 0.004 0.022 -0.009 1.000 6 -0.042 0.013 -0.051 -0.031 0.219 7 -0.059 0.000 -0.019 -0.003 -0.162 8 -0.021 0.024 0.033 0.049 -0.031 9 -0.082 0.001 0.054 0.023 0.140 10 -0.109 -0.024 0.135 -0.006 0.631 11 0.008 0.033 0.021 0.010 -0.095 12 0.027 -0.005 0.020 -0.076 0.020 13 -0.009 0.051 -0.096 -0.057 -0.006 14 0.016 -0.009 0.064 0.043 0.011 15 -0.231 0.029 0.068 -0.026 -0.133 16 -0.041 -0.306 0.009 0.111 0.021 17 -0.012 -0.076 0.015 0.034 -0.046 18 0.090 -0.035 -0.045 0.039 -0.016 19 0.008 0.089 -0.064 0.020 -0.237 20 -0.025 -0.006 -0.079 -0.063 0.097 21 -0.014 0.007 0.058 -0.048 0.201 22 0.061 0.048 -0.008 -0.040 0.048 23 0.016 -0.091 0.012 -0.008 0.063 24 -0.035 -0.012 0.065 0.151 -0.079 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 6 7 8 9 10 ________ ________ ________ ________ ________ 6 1.000 7 0.302 1.000 8 -0.172 0.198 1.000 9 0.014 -0.125 -0.045 1.000 10 0.106 -0.136 0.017 0.053 1.000 11 0.069 0.023 -0.016 -0.286 0.012 12 -0.064 -0.016 0.110 0.107 0.046 13 0.522 0.476 -0.081 -0.056 -0.155 14 -0.151 0.093 0.499 -0.016 0.119 15 -0.010 0.069 -0.041 -0.051 -0.150 16 0.009 -0.022 -0.036 0.139 0.045 17 0.077 0.006 0.042 -0.108 0.002 18 -0.075 -0.129 -0.013 -0.004 0.021 19 -0.217 0.090 -0.023 -0.012 -0.277 20 0.011 -0.098 -0.235 0.023 0.104 21 0.201 -0.108 0.023 -0.037 0.235 22 -0.054 0.027 0.071 0.026 0.021 23 -0.004 -0.084 -0.052 0.020 0.067 24 0.036 0.060 -0.008 -0.007 -0.083 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 11 12 13 14 15 ________ ________ ________ ________ ________ 11 1.000 12 -0.411 1.000 13 -0.090 -0.047 1.000 14 0.005 0.097 -0.282 1.000 15 -0.024 0.053 0.025 -0.026 1.000 16 -0.089 0.012 -0.009 0.004 0.058 17 0.093 -0.075 0.046 0.026 -0.584 18 0.042 -0.018 -0.127 0.094 -0.452 19 0.030 -0.097 -0.012 -0.069 -0.027 20 -0.057 -0.063 0.058 -0.315 0.070 21 0.014 0.071 -0.003 0.051 0.039 22 -0.145 0.109 0.046 0.005 0.261 23 -0.115 0.113 -0.008 -0.022 -0.063 24 0.144 -0.170 -0.030 0.051 -0.028 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 16 17 18 19 20 ________ ________ ________ ________ ________ 16 1.000 17 -0.265 1.000 18 0.014 0.285 1.000 19 -0.132 0.058 -0.023 1.000 20 -0.026 -0.060 -0.407 -0.017 1.000 21 -0.084 0.023 0.060 -0.886 0.007 22 0.155 -0.475 -0.612 0.010 0.228 23 0.126 -0.011 0.005 -0.081 0.166 24 -0.021 0.127 0.254 0.059 -0.613 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 21 22 23 24 ________ ________ ________ ________ 21 1.000 22 -0.205 1.000 23 -0.134 0.203 1.000 24 0.048 -0.438 -0.573 1.000
429e7808ff0be9674bb65a8d1360c156ea907db4
449d555969bfd7befe906877abab098c6e63a0e8
/3683/CH3/EX3.9/Ex3_9.sce
aefc35ea1ec29b6325ccab7ef71306ecaeeaeb03
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
628
sce
Ex3_9.sce
Bf=1250//width of flange, in mm Df=120//thickness of flange, in mm d=700//effective depth, in mm m=13.33//modular ratio Ast=5500//in sq mm W=60//UDL including self-weight, in kN/m l=8//span, in m M=W*l^2/8*10^6//in N-mm //Assume x>Df. Equating moments of area on compressiona and tension sides about N.A. x=(m*Ast*d+Bf*Df^2/2)/(m*Ast+Bf*Df)//in mm //let sigma_cbc_dash=a*sigma_cbc a=(x-Df)/x //to find lever arm z=d-(1+2*a)/(1+a)*Df/3//in mm sigma_cbc=2*M/(Bf*Df*(1+a)*z)//in MPa sigma_st=m*sigma_cbc*(d-x)/x//in MPa mprintf("Stress in concrete=%f N/mm^2\nStress in tension steel=%f N/mm^2",sigma_cbc,sigma_st)
f6e03abd33814b7af6231db7df35c052e56a77e1
e41b69b268c20a65548c08829feabfdd3a404a12
/3DCosmos/Data/Scripts/Space/OrbitSimulations/CalculateLaunchWindow.SCI
cc82c12fa3f1283c0546f410eb70171972d5bca1
[ "LicenseRef-scancode-khronos", "MIT" ]
permissive
pvaut/Z-Flux
870e254bf340047ed2a52d888bc6f5e09357a8a0
096d53d45237fb22f58304b82b1a90659ae7f6af
refs/heads/master
2023-06-28T08:24:56.526409
2023-03-01T12:44:08
2023-03-01T12:44:08
7,296,248
1
1
null
2023-06-13T13:04:58
2012-12-23T15:40:26
C
UTF-8
Scilab
false
false
4,557
sci
CalculateLaunchWindow.SCI
codeblock readtextfile(ScriptDir+"\_TOOLS.sci"); codeblock readtextfile(ScriptDir+"\_SSYS.sci"); sf=T_scene_create; sc=T_getscene; vp=T_getviewport; vp.nearclipplane=0.1; vp.farclipplane=50; vp.camerapos=point(0,0,10); vp.cameradir=vecnorm(point(0,0,0)-vp.camerapos); vp.focaldistance=13; sc.Light0Pos=point(100,300,100); sc.ambientlightcolor=color(0.1,0.1,0.1); textcl=color(0.5,0.5,0.5); eqposx=-5.5; eqposy=3.5; eqlineh=0.95; textframe=sf.addsubframe("TextFrame"); textframe.transf.translate(vector(0,0,-1.5)); textframe.transf.rotate(vector(0,1,0),Pi/8); function addeq(content) { txt=textframe.add("FormattedText","Position":point(eqposx,eqposy,0),"Size":0.35,"MaxLenX":9999,"Content":content, "Enablelight":false,"color":textcl); eqposy=eqposy-eqlineh; } function addsep(py) { eqposy=eqposy-py; } addeq("$\Omega_a(t) = \alpha_a + \omega_a t$\ \ \ $(\omega_a=\frac{2 \pi}{T_a})$"); addeq("$\Omega_b(t) = \alpha_b + \omega_b t$\ \ \ $(\omega_b=\frac{2 \pi}{T_b})$"); AA=1.4;AB=2.2; TA=360.0/(0.9856076686/(AA^1.5)); TB=360.0/(0.9856076686/(AB^1.5)); AC=(AA+AB)/2; TC=360.0/(0.9856076686/(AC^1.5)); EC=(AB-AA)/(AA+AB); colA=color(0,0.4,0.7);colB=color(0.7,0.4,0);colC=color(0,0.6,0); ocenter=sf.addsubframe("OrbitCenter"); ocenter.transf.origin=point(1.75,1.2,0.7); ocenter.transf.rotate(vector(1,0,0),-0.6*Pi/2); #ocenter.transf.rotate(vector(0,0,1),Pi/6); function createorbit(A,T,E,periang,cl,createcurve) { oframe=ocenter.addsubframe; oframe.motion=MotionKepler.create(oframe); oframe.motion.SemiMajorAxis=A; oframe.motion.Eccentricity=E; oframe.motion.Period=T; oframe.motion.ArgPerigee=periang; oframe.motion.PeriTime=root.time; oframe.add("sphere","radius":0.05,"color":(cl+color(1,1,1))); if createcurve then { crv=ocenter.add("Curve","color":cl); oframe.motion.CreateCurve(crv,200); } return(oframe); } Astartang=1.4*Pi/4; Bstartang=Astartang+Pi-((TC/2)/TB)*2*Pi; aframe=createorbit(AA,TA,0,Astartang,colA,true); bframe=createorbit(AB,TB,0,Bstartang,colB,true); cframe=createorbit(AC,TC,EC,Astartang,colC,false); ocenter.add("Curve","size":2,"color":colc).track(cframe,0.01); ocenter.add("Curve","color":textcl,"CurveRenderType":CurveRenderDash).makeline(point(0,0,0),point(1.2*AB,0,0)); ocenter.add("Curve","color":textcl,"CurveRenderType":CurveRenderDash).makeline(point(0,0,0),radial2point(1.2*AB,Astartang,0)); ocenter.add("Curve","color":textcl,"CurveRenderType":CurveRenderDash).makeline(point(0,0,0),radial2point(1.2*AB,Bstartang,0)); a1=ocenter.add("Curve","Size":2,"Arrow2Size":0.15,"color":textcl); a1.Generate(functor("radial2point(AA+0.1,a,0)","a"),0,Astartang,60); labelf=ocenter.addviewdirframe(radial2point(AA+0.4,Astartang/2,0)); labelf.add("FormattedText","position":point(-0.2,0.2),"enablelight":false,"color":textcl,"Content":"$\Omega_a$","size":0.3); a1=ocenter.add("Curve","Size":2,"Arrow2Size":0.15,"color":textcl); a1.Generate(functor("radial2point(AB+0.1,a,0)","a"),0,Bstartang,60); labelf=ocenter.addviewdirframe(radial2point(AB+0.4,Bstartang/2,0)); labelf.add("FormattedText","position":point(-0.2,0.2),"enablelight":false,"color":textcl,"Content":"$\Omega_b$","size":0.3); stepnr=0; root.TimeSpeedFactor=0; starttime=root.time; while true do { incrtime; donextstep=false; if UIGetKeyPressed=="Return" then { donextstep=true; stepnr=stepnr+1; } if (donextstep) and (stepnr==1) then { addeq('Start at'+" $t=t_0$ $\rightarrow$ "+'rendez-vous'+": \\ \begin{itemize} \item $t~'=t_0+T_c\,/2$ \item $\Omega~'=\Omega_a(t_0)+\pi$ \end{itemize}"); addsep(0.7); } if (donextstep) and (stepnr==2) then { root.TimeSpeedFactor=10000000; } if (donextstep) and (stepnr==3) then { addeq('Rendez-vous succeeded'+": \\ $\Omega_b(t~')=\Omega~'+2 \pi . n$"); } if (donextstep) and (stepnr==4) then { addeq("$\alpha_b + \omega_b ( t_0+T_C / 2 ) = \alpha_a + \omega_a t_0 + \pi + 2 \pi . n$"); } if (donextstep) and (stepnr==5) then { addsep(-0.3); addeq("$t_0=C+\frac{2 \pi . n}{\omega_b-\omega_a} = C + n . \frac{T_a T_b}{T_a - T_b}$"); } if (donextstep) and (stepnr==6) then { addeq("$\frac{T_a T_b}{T_a - T_b}=$ \textbf{"+'synodic period'+"}"); } if (root.TimeSpeedFactor>1) and (root.time-starttime>TC/2*24*60*60) then { root.TimeSpeedFactor=0; ocenter.add("Curve","color":textcl,"CurveRenderType":CurveRenderDash).makeline(point(0,0,0),radial2point(1.2*AB,Astartang+Pi,0)); } render; }
bfc272a0f2c515507fcb7a555a0ee07a09895732
449d555969bfd7befe906877abab098c6e63a0e8
/1703/CH11/EX11.4/11_4.sce
cb3dd0476d68c379130ef30db5eead0496c77510
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
615
sce
11_4.sce
clear clc //initialisation of variables g= 32.2 //ft/sec^2 u1= 90 //ft/sec w1= 70 //ft e= 0.8 h1= 10 //ft h2= 16 //ft h3= 5 //ft k= 2/5 f1= 20 //ft/sec f= 18 //ft/sec a= 45 //degrees x1= 164.4 //ft //CALCULATIONS Hm= u1*w1/g Hm1= e*Hm lh= Hm-Hm1-h1-h2-h3 vg= k*sqrt(f1^2+w1^2) pr= ((f^2+u1^2-f1^2/(sind(a))^2)/(2*g))-h2 pr1= x1-pr ge= pr1*g*2*100/(vg/k)^2 //RESULTS printf ('manometer Head = %.1f ft ',Hm1) printf ('\n outlet velocity from guides = %.1f ft/sec ',vg) printf ('\n Pressure rise through impeller only = %.1f ft ',pr) printf ('\n Guide balde efficiency = %.f per cent ',ge)
f7d41423af7251aae7b0b071a2632693ec581023
449d555969bfd7befe906877abab098c6e63a0e8
/2144/CH6/EX6.30/ex6_30.sce
1dd856512b329fc27d57897080cd1d51638be2af
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
448
sce
ex6_30.sce
// Exa 6.30 clc; clear; close; // Given data Cp= 2.3;// in kJ/kg-K T_sat= 179.9;// in °C T_sat= T_sat+273;// in K H= 3052;// enthalpy in kJ/kg P= 10*10^2;// in kN/m^2 h_f= 763;// in kJ/kg h_fg= 2015;// in kJ/kg V= 0.1944;// in m^3 // Formula H= h_f+h_fg*Cp*(t_sup-T_sat)-P*V*(t_sup/T_sat) t_sup= (h_f+h_fg-Cp*T_sat-H)/(P*V/T_sat-Cp);// in K t_sup= t_sup-273;// in °C disp(t_sup,"The final temperature of the steam in °C is : ")
6218019d4ab14ea93f8bbd28100f19739081a155
449d555969bfd7befe906877abab098c6e63a0e8
/75/CH8/EX8.11/ex_11.sce
3aac8402e16fa4ae784d879c265aa82bdba40623
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
343
sce
ex_11.sce
//EXAMPLE (PG 549) //Gauss Seidel Method exec gaussseidel.sce A = [10 3 1;2 -10 3;1 3 10] // Coefficient matrix b = [14 -5 14]' // Right hand matrix x0 = [0 0 0]' // Initial Gauss gaussseidel(A,b,x0) // Calling function // End the problem
c3f9e73f486652822e44121a472a4d77259950d3
449d555969bfd7befe906877abab098c6e63a0e8
/1238/CH2/EX2.33/33.sce
43f26eed8ab510e5b7838ffe1e384c8707f60db4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
717
sce
33.sce
//finding SOP and POS// //example 33// clc //clears the command window// clear //clears// disp('given f=B''C') disp('f=(B''+AA''+CC'')(C+AA''+BB'')') disp('f=((B''+A)(B''+A'')+CC'')((C+A)(C+A'')+BB'')') disp('f=[C+(B''+A)(B''+A'')][C''+(B''+A)(B''+A'')][B+(C+A)(C+A'')][B''+(C+A)+(C+A'')]');//using distributive property// disp('f=(A+B''+C)(A''+B''+C)(A+B''+C'')(A''+B''+C'')(A+B+C)(A''+B+C)');//using distributive property and retaining repeated factors only once// disp('f=(010)(110)(011)(111)(000)(100)') disp('required POS form:') disp('f=product(0,2,3,4,6,7)') //finding SOP// disp('f=(A+A'').B''C') disp('f=AB''C+A''BC') disp('f=101+001') disp('required SOP form:') disp('f=summation(5,1)')
cbf47cc5736abc32d6a07242e511d5479d0a9053
93961eacae3ff81569a398200d1ae75e92552235
/A_estrela.sce
f9a6a540c61cb6f394118c7ad3595cdc088befff
[]
no_license
FabianoPessoa/Scilab
b271dfad4861e4bab260071e8e0fa2d17ce713f4
6968addae2a3dfc93b5b9f4ab9d97f9af0d95820
refs/heads/master
2023-03-26T10:59:40.033652
2021-03-30T11:09:17
2021-03-30T11:09:17
298,696,087
0
0
null
null
null
null
ISO-8859-1
Scilab
false
false
26,592
sce
A_estrela.sce
//********************************************************************************** //Botoes de dialogo na caixa de dialogo answ=buttondialog("Programa Algoritmo de Busca A*\nEsse programa foi criado para implementação do algoritmo de busca A*\nTravalho número 01 de controle Inteligente\nPara começar leia a tela de mansagem e escolha o tipo de entrada\nImplementado por Fabiano de Sousa Pessoa em 19/05/2006","ok"); //********************************************************************************** //********************************************************************************** //Esplicações sobre o programa x_message_modeless(['DESCRIÇÃO DO ALGORITMO DE BUSCA A*' 'O seguinte trabalho destina-se a escrever, na linguagem Scilab-3.1.1,' 'um programa que use a estratégia de busca A*.' ' ' 'O algoritmo A* consiste no caminho de menor custo do nó de partida até o nó objetivo' 'considerando obstáculos entre os dois nós. Dessa forma, este algoritmo é aplicável' 'quando se dispõe de uma função e avaliação heurística do custo, denotada de f(.).' 'Nessa aplicação, o custo incorrido ao percorrer, a partir de S, um certo caminho até o' 'nó N, pode ser calculado através de uma função g(.). Se for disponível uma função' 'heurística h(.) que permite estimar o custo para percorrer a árvore de N até o nó' 'objetivo G(goal), então, f(N)= g(N)+h(N).' '' 'Essa algoritmo possui duas entrada possíveis. Pelo arquivo em bloco de notas txt. ou' 'através das caixas de diálogo que serão apresentadas na sequência do programa' '' '' '' 'Implementado por Fabiano de Sousa Pessoa' 'Click em ""Ok"" para fechar a mensagem']); //********************************************************************************** ////************************************************************************************ function[]=branco(cor) rect=[0,0,100,100]; plot2d(0,0,[0],'012','leg',rect); xclip('clipgrf'); x=[0 100 100 0 0]'; y=[0 0 100 100 0]'; fill=cor*ones(1,1); xfpolys(x,y,fill); xclip(); endfunction //*********************************************************************************** //void maberto(void) function[]=maberto(marca,linsucessores,colsucessores,custosucessores,g,nl,nc,hr,vr,dg,m,inf_esqx,inf_dirx,sup_dirx,sup_esqx,inf_esqy,inf_diry,sup_diry,sup_esqy) //=expande(linha,coluna,g,nl,nc,hr,vr,dg,m,inf_esqx,inf_dirx,sup_dirx,sup_esqx,inf_esqy,inf_diry,sup_diry,sup_esqy) //{int i,j; /* indices */ // int menor; /* variavel que contem o menor custo*/ // int indmenor; /* indice que contem o menor custo */ // int linmenor; /*linha do no de menor custo*/ // int colmenor; /*coluna do no de menor custo*/ // /*identificar qual no de sucessores tem o menor custo*/ // /* colocar registradores de posicao em custo regini e regfin*/ // menor = custosucessores[regini]; // for(i=regini;i<regfin;i++) // {/*procura o custo menor e quarda a posicao do vetor custosucessores*/ // if(menor>custosucessores[i]) // {indmenor = i; // menor = custosucessores[i]; // } // } //procura o custo menor e quarda a posicao do vetor custosucessores menor = custosucessores(1,1); for i=1:size(custosucessores,1) if (menor >= custosucessores(i,1))&(custosucessores(i,1)<>0) then indmenor = i; menor = custosucessores(i,1); end end //tenho menor: menor valor da funcao custo*/ //tenho o indmenor: posicao do vetor custo*/ // linmenor = linsucessores(indmenor,2); colmenor = colsucessores(indmenor,2); printf("\n***Coordenada do proximo no selecionado:***\n"); printf("\nlinmenor:%d",linmenor); printf("\ncolmenor:%d",colmenor); printf("\n"); //introduzir preenchimento do no escolhino na tela //nobusca(colmenor+1,linmenor+1,indmenor); // // if(matriz[linmenor][colmenor]!=3) // {nobusca(colmenor+1,linmenor+1,indmenor); // expande(linmenor,colmenor); // } if m(linmenor,colmenor)<>3 then xpause(2E6); //Obstaculos sao quadrados pretos // coor_x = size(m,1) - linmenor + 1; coor_y = colmenor; xx=[inf_esqx(coor_x,coor_y),inf_dirx(coor_x,coor_y),sup_dirx(coor_x,coor_y),sup_esqx(coor_x,coor_y),inf_esqx(coor_x,coor_y)]'; yy=[inf_esqy(coor_x,coor_y),inf_diry(coor_x,coor_y),sup_diry(coor_x,coor_y),sup_esqy(coor_x,coor_y),inf_esqy(coor_x,coor_y)]'; fill = 4*ones(1,1); xfpolys(xx,yy,fill); end ///* expande(linmenor,colmenor);*/ expande(marca,linmenor,colmenor,g,nl,nc,hr,vr,dg,m,inf_esqx,inf_dirx,sup_dirx,sup_esqx,inf_esqy,inf_diry,sup_diry,sup_esqy) //} endfunction //************************************************************************************ //********************************************************************************** function[]=expande(marca,linha,coluna,g,nl,nc,hr,vr,dg,m,inf_esqx,inf_dirx,sup_dirx,sup_esqx,inf_esqy,inf_diry,sup_diry,sup_esqy) descoluna = 1;//armazenar na primeira coluna o no que sera expandido linsucessores = zeros(8,2); colsucessores = zeros(8,2); custosucessores = zeros(8,1); marca(linha,coluna) = 1;//marca a posicao para nao voltar la for i = 1:8 linsucessores(i,descoluna) = linha; colsucessores(i,descoluna) = coluna; end descoluna = 2;//armazenar na segunda coluna os nos de expansao deslinha = 1; // /*Comeca expandindo o no de entrada*/ //descoluna = descoluna + 1; regini = deslinha; for i=1:4 if i==1 then//Expansao Horizontal //{/* No Direito */ if coluna<=(size(m,2)) then//limite lateral direito if (m(linha,coluna+1)<>1)&(marca(linha,coluna+1)<>1) then //cosidera os obstaculos linsucessores(deslinha,descoluna) = linha; //posicoes ja ocupadas colsucessores(deslinha,descoluna) = coluna + 1; custosucessores(deslinha) = g(linha,coluna+1) + hr; deslinha = deslinha + 1; end end // * No Esquerdo */ if coluna>1 then//limite lateral esquerdo if (m(linha,coluna-1)<>1)&(marca(linha,coluna-1)<>1) then //considera os obstaculos linsucessores(deslinha,descoluna) = linha; //posicoes ja ocupadas colsucessores(deslinha,descoluna) = coluna - 1; custosucessores(deslinha) = g(linha,coluna-1) + hr; deslinha = deslinha + 1; end//if m(linha,coluna-1)<>1 then //considera os obstaculos end//if coluna>=1 then end//if i==0 then //* Expansao Vertical */ if i==2 then //* No de Cima */ if linha>1 then//limite superio if (m(linha-1,coluna)<>1)&(marca(linha-1,coluna)<>1) then//considera obstaculos linsucessores(deslinha,descoluna) = linha - 1; //posicoes ja ocupadas colsucessores(deslinha,descoluna) = coluna; custosucessores(deslinha) = g(linha-1,coluna) + vr; deslinha = deslinha + 1; end//if m(linha-1,coluna)<>1 then//cosidera obstaculos end//if linha>=1 then //* No de Baixo */ if linha<size(m,1) then //limite inferior if (m(linha+1,coluna)<>1)&(marca(linha+1,coluna)<>1) then //cosidera os obstaculos linsucessores(deslinha,descoluna)=linha + 1;//posicoes ja ocupadas colsucessores(deslinha,descoluna) = coluna; custosucessores(deslinha) = g(linha+1,coluna) + vr; deslinha = deslinha + 1; end//if m(linha+1,coluna)<>1 then//cosidera os obstaculos end//if linha<(lin-1) then end//if i==1 then //* Expansao Diagonal Principal*/ //if(i==2) if i==3 then //{/* No de Cima */ //no de cima if (linha>1)&(coluna>1) then//limite diagonal principal no superior if (m(linha-1,coluna-1)<>1)&(marca(linha-1,coluna-1)<>1) then//considera obstaculos linsucessores(deslinha,descoluna)=linha - 1;//posicoes ja ocupadas colsucessores(deslinha,descoluna) = coluna - 1; custosucessores(deslinha)= g(linha-1,coluna-1) + dg; deslinha = deslinha +1; end//if m(linha-1,coluna-1)<>1 then//considera obstaculos end//if (linha>=1)&(coluna>=1) then //No de Baixo */ if (linha<size(m,1))&(coluna<size(m,2)) then//Limite diagonal principal no inferior if (m(linha+1,coluna+1)<>1)&(marca(linha+1,coluna+1)<>1) then//considera obstaculos//posicoes ja ocupadas linsucessores(deslinha,descoluna) = linha + 1;//posicoes ja ocupadas colsucessores(deslinha,descoluna) = coluna + 1; custosucessores(deslinha) = g(linha+1,coluna+1) + dg; deslinha= deslinha + 1; end//if m(linha_1,coluna+1)<>1 then end//if m(linha_1,coluna+1)<>1 then end // Expansao Diagonal Secundaria*/ if i==4 then//diagonal secundaria // {/* No de Cima */ if (linha>1)&(coluna<size(m,2)) then//Limite diagonal secundaria no de cima if (m(linha-1,coluna+1)<>1)&(marca(linha-1,coluna+1)<>1) then//considera obstaculos//posicoes ja ocupadas linsucessores(deslinha,descoluna) = linha - 1;//posicoes ja ocupadas colsucessores(deslinha,descoluna)=coluna + 1; custosucessores(deslinha)=g(linha-1,coluna+1) + dg; deslinha = deslinha + 1; end end //No de Baixo */ if (linha<size(m,1))&(coluna>1) then//Limite diagonal secundaria no inferior if (m(linha+1,coluna-1)<>1)&(marca(linha+1,coluna-1)<>1) then//considera obstaculos linsucessores(deslinha,descoluna) = linha + 1; colsucessores(deslinha,descoluna)= coluna - 1; custosucessores(deslinha)=g(linha+1,coluna-1) + dg; deslinha = deslinha + 1; end//if m(linha+1,coluna-1)<>1 then end//if (linha<(lin-1))&(coluna>=1) then end//if i==3 then end//for i = 1:4 //imprimir os dados obtidos da expansao printf("\n*** Dados da expansao**\n"); for i =1:size(linsucessores,1) printf("\n********************\n"); printf("\nLinsucessores:%d",linsucessores(i,2)); printf("\nColsucessores:%d",colsucessores(i,2)); printf("\nCustosucessores:%d",custosucessores(i)); end //***************** printf("\n"); // regfin = deslinha; // maberto(); printf("\n***Inicio da funcao maberto***\n") //maberto(linsucessores,colsucessores,custosucessores,m,inf_esqx,inf_dirx,sup_dirx,sup_esqx,inf_esqy,inf_diry,sup_diry,sup_esqy); maberto(marca,linsucessores,colsucessores,custosucessores,g,nl,nc,hr,vr,dg,m,inf_esqx,inf_dirx,sup_dirx,sup_esqx,inf_esqy,inf_diry,sup_diry,sup_esqy); //chamada para a funcao que coloca o no em aberto endfunction //********************************************************************************** //************************************************************************************ function[]=A_estrela(inf_esqx,inf_dirx,sup_dirx,sup_esqx,inf_esqy,inf_diry,sup_diry,sup_esqy,nl,nc,hr,vr,dg,m) // ////Obstaculos sao quadrados pretos ////----------------------------------------------------------------------------------- //coor_x = 3; //coor_y = 5; //xx=[inf_esqx(coor_x,coor_y),inf_dirx(coor_x,coor_y),sup_dirx(coor_x,coor_y),sup_esqx(coor_x,coor_y),inf_esqx(coor_x,coor_y)]'; //yy=[inf_esqy(coor_x,coor_y),inf_diry(coor_x,coor_y),sup_diry(coor_x,coor_y),sup_esqy(coor_x,coor_y),inf_esqy(coor_x,coor_y)]'; //fill = 1*ones(1,1); //xfpolys(xx,yy,fill); ////----------------------------------------------------------------------------------- ////Partida sao quadrados amarelos ////----------------------------------------------------------------------------------- //coor_x = 1; //coor_y = 5; //xx=[inf_esqx(coor_x,coor_y),inf_dirx(coor_x,coor_y),sup_dirx(coor_x,coor_y),sup_esqx(coor_x,coor_y),inf_esqx(coor_x,coor_y)]'; //yy=[inf_esqy(coor_x,coor_y),inf_diry(coor_x,coor_y),sup_diry(coor_x,coor_y),sup_esqy(coor_x,coor_y),inf_esqy(coor_x,coor_y)]'; //fill = 7*ones(1,1); //xfpolys(xx,yy,fill); ////----------------------------------------------------------------------------------- ////Objetivo sao quadrados vermelho ////----------------------------------------------------------------------------------- //coor_x = 5; //coor_y = 5; //xx=[inf_esqx(coor_x,coor_y),inf_dirx(coor_x,coor_y),sup_dirx(coor_x,coor_y),sup_esqx(coor_x,coor_y),inf_esqx(coor_x,coor_y)]'; //yy=[inf_esqy(coor_x,coor_y),inf_diry(coor_x,coor_y),sup_diry(coor_x,coor_y),sup_esqy(coor_x,coor_y),inf_esqy(coor_x,coor_y)]'; //fill = 5*ones(1,1); //xfpolys(xx,yy,fill); ////----------------------------------------------------------------------------------- //Inicio da algorimo A* //de acordo com a matriz for i=1:(size(m,1)) for j=1:(size(m,2)) if m(i,j)== 1 then //Obstaculos sao quadrados pretos //----------------------------------------------------------------------------------- coor_x = 1 + (size(m,1)) - i; coor_y = j; xx=[inf_esqx(coor_x,coor_y),inf_dirx(coor_x,coor_y),sup_dirx(coor_x,coor_y),sup_esqx(coor_x,coor_y),inf_esqx(coor_x,coor_y)]'; yy=[inf_esqy(coor_x,coor_y),inf_diry(coor_x,coor_y),sup_diry(coor_x,coor_y),sup_esqy(coor_x,coor_y),inf_esqy(coor_x,coor_y)]'; fill = 1*ones(1,1); xfpolys(xx,yy,fill); //----------------------------------------------------------------------------------- end if m(i,j)==2 then //Partida sao quadrados amarelos //----------------------------------------------------------------------------------- coor_x = 1 + (size(m,1)) - i; coor_y = j; xx=[inf_esqx(coor_x,coor_y),inf_dirx(coor_x,coor_y),sup_dirx(coor_x,coor_y),sup_esqx(coor_x,coor_y),inf_esqx(coor_x,coor_y)]'; yy=[inf_esqy(coor_x,coor_y),inf_diry(coor_x,coor_y),sup_diry(coor_x,coor_y),sup_esqy(coor_x,coor_y),inf_esqy(coor_x,coor_y)]'; fill = 7*ones(1,1); xfpolys(xx,yy,fill); //----------------------------------------------------------------------------------- end if m(i,j)==3 then //Objetivo sao quadrados vermelho //----------------------------------------------------------------------------------- coor_x = 1 + (size(m,1)) - i; coor_y = j; xx=[inf_esqx(coor_x,coor_y),inf_dirx(coor_x,coor_y),sup_dirx(coor_x,coor_y),sup_esqx(coor_x,coor_y),inf_esqx(coor_x,coor_y)]'; yy=[inf_esqy(coor_x,coor_y),inf_diry(coor_x,coor_y),sup_diry(coor_x,coor_y),sup_esqy(coor_x,coor_y),inf_esqy(coor_x,coor_y)]'; fill = 5*ones(1,1); xfpolys(xx,yy,fill); //----------------------------------------------------------------------------------- end end end //**************************************************************************** //void crimtrzgarq(void) //{int i,j; /*indices*/ // int coorl,coorc; /*indice que quarda a posicao do objetivo */ // int cont; /*contador*/ // int flag; /*flags*/ // coorl = 0; // coorc = 0; // /*Inicializa a matriz g com um valor muito alto*/ // for(i=0;i<12;i++) // {for(j=0;j<14;j++) // {g[i][j] = 10; // } // } // /*---------------------------------------------*/ g = 10*ones(size(m,1),size(m,2)); // /*Procura a posicao do objetivo*/ // for(i=0;i<lin;i++) // {for(j=0;j<col;j++) // {if(matriz[i][j]==3) // {g[i][j] = 0; // coorl = i; // coorc = j; // } // } // } for i=1:size(m,1) for j=1:size(m,2) if m(i,j)==3 then g(i,j) = 0; coorl = i; coorc = j; end end end // /*----------------------------*/ // /*Fixa linha e varia a coluna da esq para a dir*/ flag = 0; cont = 0; // for(j=0;j<col;j++) // {if( (g[coorl][j]==0) || (flag==1) ) // {g[coorl][j]= cont; // cont = cont + 1; // flag = 1; // } // } for j=1:size(m,2) if (g(coorl,j)==0)|(flag==1) then g(coorl,j) = cont; cont =cont + 1; flag = 1; end end // /*---------------------------*/ // /*Fixa coluna e varia a linha da baixo para cima*/ flag = 0; cont = 0; // for(i=0;i<lin;i++) // {if( (g[i][coorc]==0) || (flag==1) ) // {g[i][coorc] = cont; // cont = cont + 1; // flag = 1; // } // } for i =1:size(m,1) if (g(i,coorc)==0)|(flag==1) then g(i,coorc) = cont; cont =cont + 1; flag = 1; end end // /*---------------------------*/ // /*Fixa linha e varia a coluna da direta para aesquerda*/ flag = 0; cont = 0; // for(j=(col-1);j>=0;j--) // {if( (g[coorl][j]==0) || (flag==1) ) // {g[coorl][j]= cont; // cont = cont + 1; // flag = 1; // } // } for j=size(m,2):-1:1 if (g(coorl,j)==0)|(flag==1) then g(coorl,j) = cont; cont = cont + 1; flag = 1; end end // /*---------------------------*/ // /*Fixa coluna e varia a linha da cima para a baixo*/ flag = 0; cont = 0; // for(i=(lin-1);i>=0;i--) // {if( (g[i][coorc]==0) || (flag==1) ) // {g[i][coorc] = cont; // cont = cont + 1; // flag = 1; // } // } for i=size(m,1):-1:1 if (g(i,coorc)==0)|(flag==1)then g(i,coorc)= cont; cont = cont+1 flag=1; end end // /*---------------------------*/ // /*Preenche as linhas a esqueda da cruz*/ // for(i=0;i<lin;i++) // {flag = 0; // cont = 0; // for(j=0;j<col;j++) // {if( (j==coorc) || (flag==1) ) // {g[i][j]= cont + g[i][coorc]; // cont = cont + 1; // flag = 1; // } // } // } for i=1:size(m,1) flag=0; cont=0; for j=1:size(m,2) if (j==coorc)|(flag==1)then g(i,j) = cont + g(i,coorc); cont = cont + 1; flag = 1; end end end // /*---------------------------*/ // /*Preenche as linhas a direita da cruz*/ // for(i=(lin-1);i>=0;i--) // {flag = 0; // cont = 0; // for(j=(col-1);j>=0;j--) // {if( (j==coorc) || (flag==1) ) // {g[i][j]= cont + g[i][coorc]; // cont = cont + 1; // flag = 1; // } // } // } for i=size(m,1):-1:1 flag=0; cont=0; for j=size(m,2):-1:1 if (j==coorc)|(flag==1) then g(i,j)=cont+g(i,coorc); cont = cont + 1; flag = 1; end end end // /*---------------------------*/ // /*Preenche as colunas a cima para baixo*/ // for(i=0;i<col;i++) // {flag = 0; // cont = 0; // for(j=0;j<lin;j++) // {if( (j==coorl) || (flag==1) ) // {g[j][i]= cont + g[coorl][i]; // cont = cont + 1; // flag = 1; // } // } // } for i=1:size(m,2) flag=0; cont=0; for j=0:size(m,1) if (j==coorl)|(flag==1)then g(j,i) = cont + g(coorl,i); cont = cont +1; flag =1; end end end // /*---------------------------*/ // /*Preenche as colunas a baixo para cima*/ // for(i=(col-1);i>=0;i--) // {flag = 0; // cont = 0; // for(j=(lin-1);j>=0;j--) // {if( (j==coorl) || (flag==1) ) // {g[j][i]= cont + g[coorl][i]; // cont = cont + 1; // flag = 1; // } // } // } for i=size(m,2):-1:1 flag = 0; cont=0; for j =size(m,1):-1:1 if (j==coorl)|(flag==1)then g(j,i)=cont+g(coorl,i) cont =cont +1 ; flag=1; end end end // /*---------------------------*/ //imprimir a matriz cirada printf("\nImprimi a matriz g criada\n"); for i=1:size(g,1) for j=1:size(g,2) printf("%3.0f",g(i,j)); end printf("\n"); end // algoritmo(); //} ///*-------------------------------------------------------------------------*/ //void algoritmo(void) //{ // int i,j; /*indices*/ // int coorc,coorl; /*coordenadas consideradas*/ // // /*Procura a posicao de partida*/ // for(i=0;i<lin;i++) // {for(j=0;j<col;j++) // {if(matriz[i][j]==2) // {coorc = j; // coorl = i; // } // } // } for i=1:size(m,1) for j=1:size(m,2) if m(i,j)==2 then//alteracao de matriz por m coorc = j; coorl = i; end end end // /*-----------------------------*/ // //Marcar o no que sera espandido para que eu nao entre novamente marca = zeros(nl,nc); // /*Envia o no de partida para expande*/ expande(marca,coorl,coorc,g,nl,nc,hr,vr,dg,m,inf_esqx,inf_dirx,sup_dirx,sup_esqx,inf_esqy,inf_diry,sup_diry,sup_esqy);// // /*----------------------------------*/ //} ///*------------------------------------------------------------------------*/ endfunction //********************************************************************************** //********************************************************************************** function[]=layout2(nl,nc,hr,vr,dg,m) //entrada // //nl = 3; //nc = 4; // //Inserir os retangulos rect=[0,0,100,100]; plot2d(0,0,[0],'012','leg',rect); xclip('clipgrf'); //x=[0 25 25 0 0]'+ 12*ones(5,1); //y=[0 0 25 25 0]'+ 12*ones(5,1); col = 100/nc; lin_ = 100/nl; x=[0 col col 0 0]' ;//+0*ones(5,1); y=[0 0 lin_ lin_ 0]';//+0*ones(5,1); dx=col*[1 1 1 1 1]'; dy=lin_*[1 1 1 1 1]';; xx=[]; yy=[]; i=0; //alteracao:definicao das matrizes de coordenadas //quardam a coordenada em x inf_esqx = zeros(nl,nc); inf_dirx = zeros(nl,nc); sup_esqx = zeros(nl,nc); sup_dirx = zeros(nl,nc); //quardam a coordenada em y inf_esqy = zeros(nl,nc); inf_diry = zeros(nl,nc); sup_esqy = zeros(nl,nc); sup_diry = zeros(nl,nc); // desl = 0; for k=1:nl //desl = 0;//delocamento xx e yy for l=1:nc xx=[xx,(l-1)*dx+x]; yy=[yy,y+(k-1)*dy]; //alteracao: guardar os valores dos retangulos //em quatro matrizes cada uma com uma coordenada desl = desl + 1; inf_esqx(k,l)=xx(1,desl); printf("\ninf_esqx(k,l):%f",inf_esqx(k,l)); inf_dirx(k,l)=xx(2,desl); printf("inf_dirx(k,l):%f",inf_dirx(k,l)); sup_dirx(k,l)=xx(3,desl); printf("sup_esqx(k,l):%f",sup_dirx(k,l)); sup_esqx(k,l)=xx(4,desl); printf("sup_dirx(k,l):%f",sup_esqx(k,l)); inf_esqy(k,l)=yy(1,desl); printf("inf_esqy(k,l):%f",inf_esqy(k,l)); inf_diry(k,l)=yy(2,desl); printf("inf_diry(k,l):%f",inf_diry(k,l)); sup_diry(k,l)=yy(3,desl); printf("isup_esqy(k,l):%f",sup_diry(k,l)); sup_esqy(k,l)=yy(4,desl); printf("sup_diry(k,l):%f\n",sup_esqy(k,l)); end end fill=8*ones(1,nl*nc); xfpolys(xx,yy,fill); xclip(); //Escrever o título xset('font size',5); xstring(35,100,'Algoritmo A*'); A_estrela(inf_esqx,inf_dirx,sup_dirx,sup_esqx,inf_esqy,inf_diry,sup_diry,sup_esqy,nl,nc,hr,vr,dg,m); endfunction //************************************************************************************ //************************************************************************************ //Inicio da construçào do Labirinto //Entrada de dados function[]=Layout(nl,nc,hr,vr,dg,m) printf("\n*** Programa da Incialização da Tela principal de Labirinto***\n"); printf("\n Matriz de Labirinto:\n"); for i =1:nl for j =1:nc printf("%.0f ",m(i,j)); end printf("\n"); end printf("\n nl:%d",nl); printf("\n nc:%d",nc); printf("\n hr:%f",hr); printf("\n vr:%f",vr); printf("\n dg:%f",dg); //Inicio da construção da Tela principal cor da tela branco(4); //Preenchimento da tela com a matriz de quadrados printf("\nEntrada na função:layout2()\n"); layout2(nl,nc,hr,vr,dg,m); endfunction //********************************************************************************** //********************************************************************************** function[retorno] = Ent_caixa() //Perguntar sobre o numero de linha o numero de colunas e os custos //Pagina 1 txt=['Número(s) de linha(s)';'Número(s) de coluna(s)']; sig=x_mdialog('Entre com a configuração do labirinto',txt,['0';'0']); nl=evstr(sig(1)) nc=evstr(sig(2)) //Pagina 2 txt=['Custo Horizontal';'Custo Vertical';'Custo Diagonal']; sig=x_mdialog('Entre os valores de custo',txt,['0';'0';'0']); hr=evstr(sig(1)) vr=evstr(sig(2)) dg=evstr(sig(3)) //Pagina3 //entrada do labirinto condicao = 0;//incializacao while condicao==0 m=evstr(x_dialog('Entre com a configuração da matriz labirito',['[0 0 0';'0 0 0';'0 0 0]'])); if (size(m,1)==nl) & (size(m,2)==nc) then condicao =1; else answ=buttondialog("Matriz de configuração não possui as dimenções especificadas\nTente outra vêz\nImplementado por Fabiano de Sousa Pessoa em 19/05/2006","ok"); condicao =0; end end//while condicao==1 retorno = m; Layout(nl,nc,hr,vr,dg,m); endfunction //********************************************************************************** //********************************************************************************** //Falta uma funcao para inicializar o arquivo escrevendo nele valores de ex. ////Leitura do arquivo em txt function[] = Ent_txt() printf("***\n Entrada para o txt em processo ***\n") u = mopen('LABIRI.txt','r'); nl = mfscanf(u,'%d'); nc = mfscanf(u,' %d'); hr = mfscanf(u,' %d'); vr = mfscanf(u,' %d\n'); //printf("%d %d %d %d",nl,nc,hr,vr); matriz = zeros(nl,nc); for i=1:nl for j=1:nc if j==nc then matriz(i,j) = mfscanf(u,'%d\n'); else matriz(i,j) = mfscanf(u,'%d '); end printf(" %d",matriz(i,j)); end printf("\n"); end dg = ( (hr^2) + (vr^2) )^(1/2); Layout(nl,nc,hr,vr,dg,matriz); mclose(u); endfunction //********************************************************************************** //********************************************************************************** answ = buttondialog("Escolha o método de entrada\nImplementado por Fabiano de Sousa Pessoa em 19/05/2006","Blco de notas|Cx de Diálogo"); escolha = answ; if answ == '1' then Ent_txt(); end if answ == '2' then Ent_caixa(); end //********************************************************************************** //********************************************************************************** ////adiciona menu na barra de ferramentas addmenu(0,'Inicio',['Ler Bloco txt';'Ler Cx Dialogo';'Ler Mouse']); Inicio_0=['disp(''Ler Bloco txt'')';'disp(''Ler Cx Dialogo'')';'disp(''Ler Mouse'')']; //**********************************************************************************
41dae58f016aa742b8a00f0754409ec79c8ff6c8
449d555969bfd7befe906877abab098c6e63a0e8
/73/CH2/EX2.4/Example2_4.sci
a5653d11b8c6c04404d97472b799231e983c0c24
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
748
sci
Example2_4.sci
//Chapter 2_Thick Film and Thin Film Hybrid ICs //Caption : Design Capacitor //Example2.4: Design a circular 100pF capacitor with the thick film dielectric having dielectric film thickness=0.02mm(or 0.002cm), assume Er=100 //Solution: We have to find the radius of crcular capacitor inorder to design it. clear; clc; function r1= myfunction5(c,t) r1=c*t// constant=capacitor * thickness of thick film Er=100//given relative permeability of thick film r=sqrt(r1/(Er*%pi*8.85*10^-12))//radius of circular capacitor, Eo=8,85*10^-12(dielectric constant of free space) disp('radius of circular capacitor is=')//include ";" at the time of calling the function disp('meter',r) endfunction //myfunction5(100*10^-12,0.002);
8ee4bfcd276d22b918a3f8a6c520f0b4340590f5
adaa1dc1e9781bebdc15cc0c3a4bfbfa059442fa
/cs506/HW2/Expander16.tst
70abba33a7966fe83c9bad7d05b7ae30bf379644
[]
no_license
rodrigo-r-martins/pace_university
e87fbf9d2eb47797f0652af59304bdbe5293f5cc
7bfc407c2b7ae90e4e9d5cc650c6ae719358b084
refs/heads/main
2023-05-27T04:38:33.513928
2021-06-17T04:24:22
2021-06-17T04:24:22
377,698,848
0
0
null
null
null
null
UTF-8
Scilab
false
false
161
tst
Expander16.tst
load Expander16.hdl, output-file Expander16.out, compare-to Expander16.cmp, output-list in%B3.1.3 out%B3.16.3; set in 0, eval, output; set in 1, eval, output;
3e32659cf17a6d229c915cc8649c4148e52ad50d
449d555969bfd7befe906877abab098c6e63a0e8
/1076/CH20/EX20.1/20_1.sce
f3c2c24fe54245d8b5251c1178b693dc62e4063d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
283
sce
20_1.sce
clear; clc; l=.4; Ft=.8; Fd=8.2; Tt=6; Td=5; Rf=Ft + (Fd*l); mprintf("\n(a)Failure Rate = %.2f outages/year",Rf); t=((Ft*Tt)+(Fd*Td*l))/Rf; mprintf("\n(b)Down Time = %.3f Hours per outage",t);; T=t*Rf; mprintf("\n(c)Total Outage Time = %.1f Hours per year",T);;
17adddcbfb151457417b389f9b97757f2c0376e9
67ba0a56bc27380e6e12782a5fb279adfc456bad
/STAMPER_PROG_7.4/DuperPlot.sci
859e53546489955103805ebbf9054d7570476da9
[]
no_license
2-BiAs/STAMPER_PROG
8c1e773700375cfab0933fc4c2b0f5be0ab8e8f0
4fdc0bcdaef7d6d11a0dcd97bd25a9463b9550d0
refs/heads/master
2021-01-18T19:30:06.506977
2016-11-10T23:32:40
2016-11-10T23:32:40
71,999,971
0
0
null
null
null
null
UTF-8
Scilab
false
false
655
sci
DuperPlot.sci
function DuperPlot(plA) if typeof(plA) == 'list' then for i=1:size(plA) DuperPlot(plA(i)); end end axGrooveProfile = gca(); axGrooveProfile.isoview = "on" axGrooveProfile.axes_visible = ["on" "on" "off"]; axGrooveProfile.data_bounds=[min(plA(:,1)),min(plA(:,2));max(plA(:,1)),max(plA(:,2))]; xpoly(plA(:,1), plA(:,2)); xpPath = get("hdl"); xpPath.line_style = 1; xpPath.polyline_style = 1; xpPath.mark_style = 1; xpPath.thickness = 2; xpPath.foreground = round(rand()*16); endfunction
801a034cd41eb5d83a8fec4c4cd13aaf8196c529
449d555969bfd7befe906877abab098c6e63a0e8
/36/DEPENDENCIES/prob9_18data.sci
26dd5f1b2afc2cd4c4bf3ef0bfc807801a4034cf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
111
sci
prob9_18data.sci
//problem 9-18 data //size of the array words=1024; //as given we are using a four module memory organization
bd5b3df4c491112268b02797f1bee3504ee6ce25
449d555969bfd7befe906877abab098c6e63a0e8
/2528/CH10/EX10.4/Ex10_4.sce
5dfeace3ccb6663ca86848ac3ffecb9e4e8c4177
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex10_4.sce
//chapter 10 //Vout //page no. 359 //Figure 10.11a //Given clc; clear; Rf=400000; //in Ohm C=20*10^-9; //in farad flow=1/(2*%pi*Rf*C); printf("\n Flow = %.1f Hz",flow); Ri=15000; //in Ohm //integration function Vin=f(t),Vin=.6,endfunction exact=-2.5432596188; I=intg(0,10^-3,f) Vout=-1*I/Ri/C; printf("\n Vout(t) = %.1f V",Vout);//Result //Graph t=(0:0.001:6); V=Vout*ones(1:0.001:4); for i=0.001:0.001:1-.001 V=[Vout*(1-i) V Vout*(1-i)] end V=[V zeros(5.001:0.001:6)] V=[2 V 0] clf; plot(t,V) xgrid; xtitle('Integrator output','$t$',"$Voltage$")
7ca7b63521da611552d0c3718aee4d99e5d1f81f
449d555969bfd7befe906877abab098c6e63a0e8
/154/DEPENDENCIES/ch4_4.sce
9deb374dc0b960d79c14bebf58ffa06c69726339
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,640
sce
ch4_4.sce
clc disp("Problem 4.4") printf("\n") //From figure 4.7 //Let us consider a tree with 5,6,7,8 as tree branches //Correspondingly links be 1,2,3,4 //By adding links one after other Loops can be formed //The fundamental loops are.. disp("L1={1,5,6} L2={2,5,6,7,8} L3={3,6,7,8} L4={4,6,7}") disp("1 is written if the direction of flow is along the direction of loop") disp("-1 is written if the direction of flow is opposite to the direction of loop") disp("0 is written if the branch is not a part of loop") disp("The loop incidence matrix is") B=[1 0 0 0 -1 1 0 0 0 1 0 0 1 -1 1 1 0 0 1 0 0 -1 1 1 0 0 0 1 0 -1 1 0] disp(B,"B=") //The above matrix has branches as columns and the number of loops as rows //As we need to find branch currents(8 in number)in terms of loop currents(4 in number) //Let i=[ i1 also iL=[ iL1 // i2 iL2 // i3 iL3 // i4 iL4 ] // i5 // i6 // i7 // i8] //We know i=BT*iL //i=[ i1 [1 0 0 0 iL=[ iL1 // i2 0 1 0 0 iL2 // i3 0 0 1 0 * iL3 // i4 = 0 0 0 1 iL4 ] // i5 -1 1 0 0 // i6 -1 -1 -1 -1 // i7 0 1 1 1 // i8] 0 1 1 0 ] disp("The branch currents are") disp("i1=iL1") disp("i2=iL2") disp("i3=iL3") disp("i4=iL4") disp("i5=-iL1+iL2") disp("i6=iL1-iL2-iL3-iL4") disp("i7=iL2+iL3+iL4") disp("i8=iL2+iL3")
720569ecb6ed14517b88ce7d31dc1f1f0bff59e9
449d555969bfd7befe906877abab098c6e63a0e8
/1955/CH9/EX9.13/example13.sce
b55b40db4e15c005089101740a3cd336b4657d82
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
841
sce
example13.sce
clc clear //input data H=30//Working head of the turbine in m D1=1.2//Inlet wheel diameter in m D2=0.6//Outlet wheel diameter in m b11=90//Vane angle at entrance in degree a11=15//Guide blade angle in degree Cx2=0//Velocity of whirl at inlet in m/s g=9.81//Acceleration due to gravity in m/s^2 dw=1000//Density of water in kg/m^3 //calculations U11=1/tand(a11)//Runner tip speed at inlet in m/s in terms of Cr1 Cr1=(H/((U11^2/g)+(1/(2*g))))^(1/2)//Flow velocity at inlet in m/s Cr2=Cr1//Flow velocity at outlet in m/s U1=Cr1*U11//Runner tip speed at inlet in m/s N=(60*U1)/(3.1415*D1)//Speed of the wheel in rpm U2=(3.1415*D2*N)/60//Runner tip speed at inlet in m/s b22=atand(Cr2/U2)//Vane angle at exit in degree //output printf('(a)Speed of the wheel is %3.2f rpm\n(b)Vane angle at exit is %3.2f degree',N,b22)
cc5d807bf42c5906cd7cc1f5562dddbf6a197efe
6e51f2fdd036612dc2b51c405904fed97d2ae8b0
/src/test_server_1_a.tst
67b6291053884e08af7cdf0eb3b18f6989cee775
[ "MIT", "Zlib", "BSD-3-Clause", "OML" ]
permissive
joe-nano/ciyam
92c6ccb58029a1b2a641a7e00417ab524cb9f957
a92c296b911b29620a7bb3b758eb55339e040219
refs/heads/master
2022-04-16T14:39:55.822434
2020-03-27T06:39:13
2020-03-27T06:39:13
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,368
tst
test_server_1_a.tst
> version 0.1 > session_list -min 1* session_list <none> <unknown> 0:0 0:0 2 > encrypt -no_ssl -no_salt for_testing_password Zm9yX3Rlc3RpbmdfcGFzc3dvcmQ= > > > > X > X. > .X > X > X. > .X > XY > XY. > .XY > X.Y. > XY > .XY > XY. > X.Y. > XYZ > XYZ. > .XYZ. > X.Y.Z. > XYZ > XYZ. > .XYZ. > X.Y.Z. > crypto_keys XBT test 1Hri98tpTekszQQTBnKbBrMsecrjik4PX8 02b0dbb9b8c580f2cc7b45aaf10d8353cea7880903e1f07ce996614260c55db4a1 0f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 > > > > addr is: 1Hri98tpTekszQQTBnKbBrMsecrjik4PX8 > pubkey is 02b0dbb9b8c580f2cc7b45aaf10d8353cea7880903e1f07ce996614260c55db4a1 > privkey is 0f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 > > abcdefghi > > abcdefgh > > abcdefg > > defghi > > abcdef > > def > > abc<def>ghi > > def > > > ff00000000000000 > > 00000000000000ff > > ff000000 > > 000000ff > > 4080 > > 4100 > > 4000 > > 1 > > ifdef true > > > > > > > ifndef false > > > > > > ifdef false > > > ifndef true > > > > > 1234567890 > > 31323334353637383930 > > 1234567890 > > c775e7b757ede630cd0aa1113bd102661ab38829ca52a6422ab782862f268646 > > > > > > @ifeq x y false > > > @ifneq x y true > > > > > > @ifeq y y true > > > > > > > @ifneq y y false > > > xxyyzz > > xxyyxx > > ab/cd/ef > > ab:cd:ef > > ab/cd/ef > > (no history is available) > a > b > c > d > e > 1 #a 2 #b 3 #c 4 #d 5 #e > > 1 #b 2 #c 3 #d 4 #e > > 1 #b 2 #c 3 #d > b > d > c > b c > e > c d > c d e > f > g > 1 #b 2 #c 3 #d 4 #e 5 #f 6 #g > > 1 #b 2 #c 3 #d > b c d > e > f > g > 1 #b 2 #c 3 #d 4 #e 5 #f 6 #g > > 1 #b 2 #f 3 #g > h > i > j > 1 #b 2 #f 3 #g 4 #h 5 #i 6 #j > > 1 #b 2 #f > > > > > > > Looping with aaa > > > > > > Looping with bbb > > > > > Looping with ccc > > > > > Looping with ddd > > > > > > > > > > > > > > > > > > > > > NEXT > > > XXX YYY > > > > > > > > > CONT > > > > CONT CONT DONE > > > NEXT XX YYYY CONT CONT CONT CONT DONE NEXT X YYYYY CONT CONT CONT CONT CONT DONE END > > > session_variable @set aaa > session_variable @set aaa aaa > session_variable @set bbb > session_variable @set bbb bbb > session_variable @set ccc > session_variable @set ccc ccc > session_variable @set aaa aaa > session_variable @set bbb bbb > session_variable @set ccc ccc > session_variable @set aaa bbb ccc > session_variable @deque @set > session_variable @deque aaa bbb ccc > session_variable @deque @set > session_variable @deque aaa bbb ccc aaa bbb ccc > session_variable @deque "push_back yyy" > session_variable @deque "push_front xxx" > session_variable @deque xxx aaa bbb ccc aaa bbb ccc yyy > session_variable @deque pop_back > session_variable @deque pop_front > session_variable @deque aaa bbb ccc aaa bbb ccc > session_variable @deque "push_front eee" > session_variable @deque "push_front ddd" > session_variable @deque ddd eee aaa bbb ccc aaa bbb ccc > session_variable @set @deque > session_variable @set aaa bbb ccc ddd eee > > arg $0 is "test_args.cin" arg $1 is "XXX" arg $2 is "" arg $3 is "" > arg $0 is "test_args.cin" arg $1 is "XXX" arg $2 is "YYY" arg $3 is "" > arg $0 is "test_args.cin" arg $1 is "XXX" arg $2 is "YYY" arg $3 is "ZZZ" > arg $0 is "test_args.cin" arg $1 is "XXX" arg $2 is "" arg $3 is "ZZZ" > arg $0 is "test_args.cin" arg $1 is "" arg $2 is "" arg $3 is "ZZZ" > > utc_to_local AEST "2013-10-05 15:00" 2013-10-06 01:00 AEST > utc_to_local AEST+ "2013-10-05 15:00" 2013-10-06 01:00 AEST > utc_from_local AEST "2013-10-06 01:00" 2013-10-05 15:00 > utc_to_local AEST "2013-10-06 16:00" 2013-10-07 02:00 AEST > utc_to_local AEST+ "2013-10-06 16:00" 2013-10-07 03:00 AEDT > utc_from_local AEST "2013-10-07 03:00" 2013-10-06 17:00 > utc_from_local AEDT "2013-10-07 03:00" 2013-10-06 16:00 > utc_to_local AEST "2014-04-05 15:00" 2014-04-06 01:00 AEST > utc_to_local AEST+ "2014-04-05 15:00" 2014-04-06 02:00 AEDT > utc_from_local AEST "2014-04-06 02:00" 2014-04-05 16:00 > utc_from_local AEDT "2014-04-06 02:00" 2014-04-05 15:00 > utc_to_local AEST "2014-04-05 16:00" 2014-04-06 02:00 AEST > utc_to_local AEST+ "2014-04-05 16:00" 2014-04-06 02:00 AEST > utc_from_local AEST "2014-04-06 02:00" 2014-04-05 16:00 >
12eb6c0ad751774ccaabfd1af745d5d5d0b3e268
449d555969bfd7befe906877abab098c6e63a0e8
/1919/CH11/EX11.10/Ex11_10.sce
43b4ffbcb51644576bcb98ab8822b91a34ccc397
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,101
sce
Ex11_10.sce
// Theory and Problems of Thermodynamics // Chapter 11 // Kinetic Theory of Gases // Example 10 clear ;clc; //Given data r1 = 0.18 // radius of oxygen molecule in nm P = 0.01 // pressure of oxygen in MPa T = 500 // temperature of oxygen in K R = 8.314 // gas constant N0 = 6.023*1e23 // number of atoms per mole M = 32*1e-3 // molar mass of oxygen in kg/mol // Calculations sig = 4*%pi*((r1*1e-9)^2) // collision cross section n = P*N0/(R*T) // molecules per m^3 lam = 1/(sig*n) // mean free path X1 = exp(-1.5/lam) // fraction of free paths longer than 1.5m X2 = 1- X1 // fraction of free paths shorter than 1.5m X3 = 1- exp(-2/lam) // fraction of free paths shorter than 2m r_f = X3 - X2 // fraction between 1.5 and 2 m // output results mprintf('(a) Fraction of free paths longer than 1.5 m = %4.4f ', X1) mprintf('\n (b) Fraction of free paths longer than 1.5 m but shorter than 2 m = %4.4f ', r_f)
d015f7c06f78e41182900089d1c433c0dc2839a9
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH13/EX13.03/13_03.sce
8e57e219faa9118e0e129c09cef92386110ec4ae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
968
sce
13_03.sce
//pathname=get_absolute_file_path('13.03.sce') //filename=pathname+filesep()+'13.03-data.sci' //exec(filename) //Pressure of steam entering(in bar): p1=12 //Pressure at exit(in bar): p2=6 //Mass flow rate(in kg/s): m1=5 m2=m1 m3=m1 //Exit velocity(in m/s): C3a=500 //From steam tables: h1=3045.8 //kJ/kg h2=2900.05 //kJ/kg s2=7.0317 //kJ/kg.K s1=s2 s3=s2 v2=0.3466 //m^3/kg h3=2882.55 //kJ/kg v3=0.3647 //m^3/kg //For superheated steam: n=1.3 //Pressue at state 2(in bar): p2=p1*(2/(n+1))^(n/(n-1)) //Velocity at throat(in m/s): C2=sqrt(2*(h1-h2)*10^3) //Cross-sectional area at throat(in m^2): A2=m2*v2/C2 //Ideal velocity at exit(in m/s): C3=sqrt(2*(h1-h3)*10^3) //Cross-sectional area at exit(in m^2): A3=m3*v3/C3a //Coefficient of velocity: r=C3a/C3 printf("\nRESULT\n") printf("\nCross-sectional area at throat = %f m^2",A2) printf("\nCross-sectional area at exit = %f m^2",A3) printf("\nCoefficient of velocity = %f",r)
c20fe3adc1085fcffd618d77c291177409d377f5
449d555969bfd7befe906877abab098c6e63a0e8
/1760/CH3/EX3.2/EX3_2.sce
7a1a4b051837ea75df1082fc3fdd35e392084522
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
851
sce
EX3_2.sce
//EXAMPLE 2-32 PG NO 173 Vp=400; //Peak voltage VL=400; Z=8-%i*10; //Impedance Ip=VL/12.81; IL=sqrt(3)*Ip; S=sqrt(3)*VL*IL; P=S*cos(-51.34); Q=S*sin(-51.34); Vab=Vp+%i*0; Vbc=-200-%i*346.410; Vca=-200+%i*346; Iab=Vab/Z; Ibc=Vbc/Z; Ica=Vca/Z; Ia=Iab-Ibc; Ib=Ibc-Iab; Ic=Ica-Ibc; disp('i) Peak current = '+string (Ip)+'A ') disp('i) S = '+string (S)+'VA ') disp('i) Active Power = '+string (P)+'W ') disp('i) Reactive power = '+string (Q)+'Vars ') disp('i) Iab is in reactance form = '+string (Iab)+'A ') disp('i) Ibc is in reactance form = '+string (Ibc)+'A ') disp('i) Ica is in reactance form= '+string (Ica)+'A ') disp('i) Ia is in reactance form = '+string (Ia)+'A ') disp('i) Ib is in reactance form = '+string (Ib)+'A ') disp('i) Ic is in reactance = '+string (Ic)+'A ')
1c0fc7ea6eae7aa68c3dd30e24929d0f22eae201
449d555969bfd7befe906877abab098c6e63a0e8
/2417/CH11/EX11.4/Ex11_4.sce
a1ac89fa9c4a498aad56a97820f656ab7a090f04
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,656
sce
Ex11_4.sce
//scilab 5.4.1 clear; clc; printf("\t\t\tProblem Number 11.4\n\n\n"); // Chapter 11 : Heat Transfer // Problem 11.4 (page no. 558) // Solution //For Brick, deltaX=6/12; //6 inch = 6/12 feet //deltaX=length //unit:ft A=1; //area //unit:ft^2 k=0.40; //Unit:Btu/(hr*ft*F) //k=proportionality constant //k=thermal conductivity //From the table R=deltaX/(k*A); //Thermal resistance //Unit:(hr*f)/Btu printf("For brick,\n"); printf("The resistance is %f (hr*F)/Btu\n\n",R); R1=R; //For Concrete, deltaX=(1/2)/12; //(1/2) inch = (1/2)/12 feet //deltaX=length //unit:ft A=1; //area //ft^2 k=0.80; //Unit:Btu/(hr*ft*F) //k=proportionality constant //k=thermal conductivity //From the table R=deltaX/(k*A); //Thermal resistance //Unit:(hr*f)/Btu printf("For Concrete,\n"); printf("The resistance is %f (hr*F)/Btu\n\n",R); R2=R; //For plaster, deltaX=(1/2)/12; // (1/2) inch = 6/12 feet //deltaX=length //unit:ft A=1; //area //ft^2 k=0.30; //Unit:Btu/(hr*ft*F) //k=proportionality constant //k=thermal conductivity //From the table R=deltaX/(k*A); //Thermal resistance //Unit:(hr*f)/Btu printf("For plaster,\n"); printf("The resistance is %f (hr*F)/Btu\n\n",R); R3=R; Rot=R1+R2+R3; //Rot=The overall resistance //unit:(hr*F)/Btu printf("The overall resistance is %f (hr*F)/Btu\n\n",Rot); T1=70; //temperature maintained at one face //fahrenheit T2=30; //tempetature maintained at other face //fahrenheit deltaT=T2-T1; //fahrenheit //Change in temperature Q=deltaT/Rot; //Q=Heat transfer //Unit:Btu/(hr*ft^2); //ohm's law (fourier's equation) printf("Heat transfer per square foot of wall is %f Btu/hr*ft^2",abs(Q));
02ca4a9d0cd2d48f6dbe5587fe0f95a2deb57c1c
ab89c2161afc0845367b8e25f534e4f99bd36759
/LAB3/ex3.sce
3436b7c7260ac3bafd7c3378750d44b90fb3e7c5
[]
no_license
PhiTruongCE/Digital_Signal_Processing
22446ebfa65765d1dfcd2c420e05c83dc861ec15
bacaf762f31a333a641ac48f6b5cc18f120c65be
refs/heads/main
2023-06-04T03:38:36.140107
2021-06-17T04:04:49
2021-06-17T04:04:49
377,699,926
0
0
null
null
null
null
UTF-8
Scilab
false
false
211
sce
ex3.sce
clc; clf; clear all; n=-1:3; x1=[0,0,1,3,-2]; x2=[0,1,2,3,0]; y=x1+x2; a=gca(); a.x_location='origin'; b=gca(); b.y_location='origin'; plot2d3(n,y,10); title('y(n)'); xlabel('n'); ylabel('y(n)');
ce8b99043b3dd93183e569e1254069c7d76f7f05
717ddeb7e700373742c617a95e25a2376565112c
/40/CH8/EX8.6/Exa_8_6.sce
be5c3cbb94fdf30b03a0e49fc165da131a115fec
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
426
sce
Exa_8_6.sce
//Signal and spectrum replication xn=[2 3 2 1]; XDFT=dft(xn,-1) yn=[xn xn xn]; YDFT=dft(yn,-1) YDFT1=3*[XDFT(1:1/3:length(XDFT))]; for i=2:3 YDFT1(i:3:length(YDFT1))=0; end YDFT1(12:-1:11)=0; disp(YDFT1,'the DFT of x[n/3] is'); hn=[xn(1:1/3:length(xn))] for i=2:3 hn(i:3:length(hn))=0; end hn(12:-1:11)=0; hn HDFT=dft(hn,-1) HDFT1=[XDFT;XDFT;XDFT]; disp(HDFT1,'the DFT of y[n]=[x[n],x[n],x[n]] is');
8f0722fc52c3fc8592df35600328361266ae407b
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH12/EX12.3/Ex12_3.sce
0dff24b4fc35e50cd927236efbb22c7198a506df
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
429
sce
Ex12_3.sce
//Defining Matrices t=[0 1 2 3 4 5 10] //s //Displacement matrix s=[8*t^2+2*t] //m //Velocity Matrix v=[16*t+2] //m/s //Acceleration Matrix a=16 //m/s^2 //Plotting the curves //S-T curve subplot(221) plot(t,s) xlabel('t(s)') ylabel('s(m)') subplot(222) plot(t,v) xlabel('t(s)') ylabel('v(m/s)') subplot(223) plot(t,a) xlabel('t(s)') ylabel('a(m/s^2)') //Result clc printf('The graphs are the solutions')
2014fef819ca1db92da9751fdeea01fcd73fe560
e6d5f1d801a3fe887b5dc04b8cc0a9eabc1fd432
/Semana_0/masa.sce
b451117b76b78f6934d9fde2a72a746580361145
[]
no_license
lordjuacs/MateIII
70def332063e56eb10fb47678a7e6130dc0dca63
164c53b61c9e35e565121f77ba2c578680a3ab56
refs/heads/master
2021-05-24T15:56:01.078904
2020-07-27T19:57:34
2020-07-27T19:57:34
253,643,962
0
0
null
null
null
null
UTF-8
Scilab
false
false
64
sce
masa.sce
function masa = a(y,t) masa = 7 - (8*y)/(100-t) endfunction
3dacc7f6b2a6f79d59c87c0a7fdc00f3d3314b4d
449d555969bfd7befe906877abab098c6e63a0e8
/1967/CH12/EX12.2/12_2.sce
3bc3c81b686512a30f9679259d8c1e85498807ce
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
422
sce
12_2.sce
clc //initialisation of variables clear p1= 50 //atm p2= 100 //atm p3= 200 //atm p4= 400 //atm r1= 0.98 r2= 0.97 r3= 0.98 r4= 1.07 //CALCULATIONS f1= p1*r1 f2= p2*r1 f3= p3*r3 f4= p4*r4 //RESULTS printf ('fugacity of nitrogen gas = %.f atm',f1) printf ('\n fugacity of nitrogen gas = %.f atm',f2) printf ('\n fugacity of nitrogen gas = %.f atm',f3) printf ('\n fugacity of nitrogen gas = %.f atm',f4)
83c66166974ae9ac32c8dd8cd8c73a250edcbc2f
449d555969bfd7befe906877abab098c6e63a0e8
/1529/CH22/EX22.25/22_25.sce
32291a6c44fcaa4f5c0f261be7cc62efbf56c18e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
309
sce
22_25.sce
//Chapter 22, Problem 25 clc; V=250; //supply voltage I=40; //current Ra=0.15; //armature resistance Rf=0.05; //field resistance n=(((V*I)-(2*I^2*(Ra+Rf)))/(V*I))*100; //overall efficiency printf("Efficiency = %.1f percent",n);
a4a0b567c685e5915770c90f3e1f067cf8d9768b
449d555969bfd7befe906877abab098c6e63a0e8
/3681/CH9/EX9.32/Ex9_32.sce
bde0c0ef8252677e38719c6febb0d96e800b9228
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
564
sce
Ex9_32.sce
// Calculating the minimum number of poles clc; disp('Example 9.32, Page No. = 9.92') // Given Data P = 1200;// Power rating (in kW) Ec = 15;// Average voltage between commutator segments (in Volts) ATa = 10000;// Armature mmf per pole // Calculation of the minimum number of poles a = P*10^(3)/(ATa*Ec);// Minimum number of parallel paths p = a;// Minimum number of poles. Since these parallel paths can be obtained by using a simplex winding disp(p,'Minimum number of poles ='); //in book answer is 8 poles. The answers vary due to round off error
f826412541be091d29cd27b59e3554c3b8a7c0d6
449d555969bfd7befe906877abab098c6e63a0e8
/40/CH8/EX8.5b/Exa_8_5b.sce
0c97e81c75a50b9c5c06f261853c7a7306bead77
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
835
sce
Exa_8_5b.sce
//b1)modulation XDFT=[4 -2*%i 0 2*%i]; xn=dft(XDFT,1) for i=1:length(xn) zn(i)=xn(i)*%e^((%i*%pi*(i-1))/2); end disp(zn,'The IDFT of XDFT[k-1] is'); ZDFT=[2*%i 4 -2*%i 0]; zn1=dft(ZDFT,1) //b2)periodic convolution HDFT=(convol(XDFT,XDFT)) HDFT=[HDFT,zeros(8:12)]; HDFT=[HDFT(1:4);HDFT(5:8);HDFT(9:12)]; HDFT1=[0 0 0 0]; for i=1:4 for j=1:3 HDFT1(i)=HDFT1(i)+HDFT(j,i); end end HDFT1; hn=dft(HDFT1,1) hn1=4*(xn.*xn); disp(hn1,'The IDFT of XDFT*XDFT is'); //b3)product WDFT=XDFT.*XDFT; wn=dft(WDFT,1) wn1=convol(xn,xn); wn1=[wn1,zeros(8:12)]; wn1=[wn1(1:4);wn1(5:8);wn1(9:12)]; WN=[0 0 0 0]; for i=1:4 for j=1:3 WN(i)=WN(i)+wn1(j,i); end end disp(WN,'The IDFT of XDFT.XDFT is'); //b4)Central ordinates and signal Energy E=0; for i=1:length(xn) E=E+abs(xn(i)^2); end disp(E,'the signal energy is');
c3ad4d718b868da10d9d2703c13d3c621f48f836
4038e640183a33a5edcfa99a2f4dcfe5153a500e
/Guass_with_start.sce
32178fe969eac18a860210367a21743b75819f9c
[]
no_license
BrenoPeixotobr/scilabcodes
2da4518cb6449942e39fae5b3319ed99ea226c43
213bdae495fc97ff24b7625a2be30449798e5e4d
refs/heads/master
2020-07-11T12:43:20.753002
2019-09-17T14:58:34
2019-09-17T14:58:34
204,541,979
0
0
null
null
null
null
UTF-8
Scilab
false
false
789
sce
Guass_with_start.sce
/* refinamento de solução r = b -Ax uma solução aproximada X¹=X⁰+xC⁰ Ax¹=b A(X⁰+C⁰)=b */ function [x,residuo] = Gauss(A,b) [m,n] = size(A); b1=b; A1=A; for k = 1:n-1 for i = k+1:n mult = A(k,k)/A(i,k); b(i)=b(k)-mult*b(i); A(i,k:n) = A(k,k:n)-mult*A(i,k:n); end end // retrosubstituicao x = zeros(n,1); x(n)=b(n)/A(n,n); for i = n-1:-1:1 x(i) = (b(i)-A(i,i+1:n)*x(i+1:n))/A(i,i); end residuo=b1-(A1*x); endfunction A=[2 -1 4 1 -1;-1 3 -2 -1 2;5 1 3 -4 1;3 -2 -2 -2 3;-4 -1 -5 3 -4]; b=[7;1;33;24;-80]; [a1,a2]=Gauss(A,b); r=a2; C=[]; x=a1; for interacao=1:1000 erro=norm(r,'inf'); if(erro<10^(-14)) disp(interacao); break; else [L,U]=lu(A); Y=L\r; C=U\Y; x=x+C; r=b-A*x end end
b5da0dfab8cc4e391d8d808ffbb83b4ff5abffa2
449d555969bfd7befe906877abab098c6e63a0e8
/401/CH14/EX14.8/Example14_8.sce
0de6389219c5ac09d2b63ca348fe3bc5dd67fe32
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
610
sce
Example14_8.sce
//Example 14.8 //Program to calculate the ratio in dB of back scattered optical //power to the forward optical power at the fiber input clear; clc ; close ; //Given data NA=0.2; //NUMERICAL APERTURE gamma_r=0.7*10^-3; //per m - RAYLEIGH SCATTERING COEFFICIENT Wo=50*10^(-9); //s - PULSE DURATION c=2.998*10^8; //m/s - VELOCITY OF LIGHT IN VACCUM n1=1.5; //CORE REFRACTIVE INDEX //Calculated Ratio Pra(0)/Pi Pra0_by_Pi=0.5*NA^2*gamma_r*Wo*c/(4*n1^3); //Displaying the Result in command window printf("\n\n\t Pra(0)/Pi = %0.1f dB.",10*log10(Pra0_by_Pi));
894c272fabed0bb4c067453d43761f38f38101fc
d627d1d5236a46b4791d0486d60e7c1a74602d56
/docker/planners/symba-2/src/search/cudd-2.5.0/nanotrav/s27.tst
d69cdbf96e742428c55ed32d785d38afd0c85368
[]
no_license
racinmat/PDDL-docker
caebde3ab174c110771c15a5ec65cd8986d3a3d3
4b53d44ea52f50bf87c194cd799e8fcfd4da0666
refs/heads/master
2021-01-17T22:21:01.284588
2020-01-27T23:21:10
2020-01-27T23:21:10
84,191,113
5
2
null
null
null
null
UTF-8
Scilab
false
false
2,918
tst
s27.tst
# Nanotrav Version #0.12, Release date 2003/12/31 # ./nanotrav -p 1 -trav s27.blif # CUDD Version 2.5.0 Order before final reordering G0 G1 G2 G3 G5 G6 G7 Number of inputs = 7 Building transition relation. Time = 0.00 sec @@@ Transition relation: 1 parts 3 latches 9 nodes Traversing. Time = 0.00 sec S0: 4 nodes 1 leaves 1 minterms From[1]: 5 nodes 1 leaves 4 minterms Reached[1]: 5 nodes 1 leaves 5 minterms 5 5e+0 From[2]: 4 nodes 1 leaves 1 minterms Reached[2]: 3 nodes 1 leaves 6 minterms 6 6e+0 depth = 2 R: 3 nodes 1 leaves 6 minterms **** CUDD modifiable parameters **** Hard limit for cache size: 699050 Cache hit threshold for resizing: 30% Garbage collection enabled: yes Limit for fast unique table growth: 419430 Maximum number of variables sifted per reordering: 1000 Maximum number of variable swaps per reordering: 2000000 Maximum growth while sifting a variable: 1.2 Dynamic reordering of BDDs enabled: no Default BDD reordering method: 4 Dynamic reordering of ZDDs enabled: no Default ZDD reordering method: 4 Realignment of ZDDs to BDDs enabled: no Realignment of BDDs to ZDDs enabled: no Dead nodes counted in triggering reordering: no Group checking criterion: 7 Recombination threshold: 0 Symmetry violation threshold: 10 Arc violation threshold: 10 GA population size: 0 Number of crossovers for GA: 0 Next reordering threshold: 4004 **** CUDD non-modifiable parameters **** Memory in use: 1609928 Peak number of nodes: 1022 Peak number of live nodes: 95 Number of BDD variables: 10 Number of ZDD variables: 0 Number of cache entries: 32768 Number of cache look-ups: 173 Number of cache hits: 26 Number of cache insertions: 151 Number of cache collisions: 1 Number of cache deletions: 0 Cache used slots = 0.46% (expected 0.46%) Soft limit for cache size: 11264 Number of buckets in unique table: 2816 Used buckets in unique table: 4.94% (expected 5.15%) Number of BDD and ADD nodes: 150 Number of ZDD nodes: 0 Number of dead BDD and ADD nodes: 75 Number of dead ZDD nodes: 0 Total number of nodes allocated: 150 Total number of nodes reclaimed: 12 Garbage collections so far: 0 Time for garbage collection: 0.00 sec Reorderings so far: 0 Time for reordering: 0.00 sec Final size: 16 total time = 0.00 sec Runtime Statistics ------------------ Machine name: alvaro-U36SD User time 0.0 seconds System time 0.0 seconds Average resident text size = 0K Average resident data+stack size = 0K Maximum resident size = 1312K Virtual text size = 4630K Virtual data size = 7386K data size initialized = 2134K data size uninitialized = 138K data size sbrk = 5114K Virtual memory limit = 18014398509481984K (18014398509481984K) Major page faults = 0 Minor page faults = 717 Swaps = 0 Input blocks = 0 Output blocks = 8 Context switch (voluntary) = 0 Context switch (involuntary) = 2
33beeb340d2c9deb19a4aa07967f68a3e6327b77
449d555969bfd7befe906877abab098c6e63a0e8
/695/CH1/EX1.10/ex1_10.txt
40205ea3f939d77113310ee8f684c564c9541ce5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
310
txt
ex1_10.txt
//Caption:Find the average value of emf induced in the coil //Exa:1.10 clc; clear; close; N=1000;//No.of turns Phy_1=2000*10^-6;//In Webers //On reversal of current Phy_2=2000*10^-6;//In Webers t=0.2;//in seconds e=N*(Phy_1-(-Phy_2))/t; disp(e,'Average value of emf induced in the coil (in volts)=')
92abc2f05b54ee789d2988dec806b82c2053b3d1
449d555969bfd7befe906877abab098c6e63a0e8
/1286/CH6/EX6.8/6_8.sce
3ceb16a501ff0c0b23d29f72c643ce72ea582c17
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
146
sce
6_8.sce
clc //initialisations e=4*10^-3//erg p=1*13.6*981 //calculations kt=2*e/3//erg n=p/kt //results printf(' number of molecules = % 1f',kt)
30fd85f18f616065acca29365ab7e27517e5dd59
449d555969bfd7befe906877abab098c6e63a0e8
/2465/CH10/EX10.11/Example_11.sce
3577f29b4d4e85e652879094a784a1e09253a4e7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
265
sce
Example_11.sce
//Chapter-10,Example 11,Page 255 clc(); close(); E_cell = 0.123 E_calomel = 0.2415 E_Q = 0.6990 //E_Q/H2Q = E_Q - 0.0592 *pH //E_cell= E_Q/H2Q - E_calomel pH = (E_cell + E_calomel - E_Q)/(-0.0592) printf('the pH of solution is pH = %.2f',pH)
568ce8671c444c558f94af41878fed7dd1c49527
449d555969bfd7befe906877abab098c6e63a0e8
/3131/CH6/EX6.9/6_9.sce
023ce2e7f197e372ffbfa0b1e500ffb689976d4f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
107
sce
6_9.sce
clear all; clc; disp("Ex 6_9") disp("THe free body diagrams are shown in figures 6-21b, 6-21c and 6-21d")
84f2af829999c9b2ac86bccfcd2d44204bba60e8
5c94cf84436ff620c517792d888ff3ff8e02e08c
/polar.sce
4683fea80dc38af730b6f524fd09f0ae57419e15
[]
no_license
paulomarcondes/COVplot
8d8287511f73b919619b7f132b2460e33d385402
91496810202761606a4cf486069367db19ca6152
refs/heads/master
2016-09-06T20:04:19.905597
2015-07-01T01:39:51
2015-07-01T01:39:51
38,181,630
0
0
null
null
null
null
UTF-8
Scilab
false
false
139
sce
polar.sce
rho=1:0.1:4;theta=(0:0.02:1)*2*%pi; z=30+round(theta'*(1+rho^2)); f=gcf(); f.color_map= hotcolormap(128); clf();graypolarplot(theta,rho,z)
edb85ed3972671dc9f2aede2c0a9b7833167ddfa
449d555969bfd7befe906877abab098c6e63a0e8
/3831/CH18/EX18.8/Ex18_8.sce
499697759d020bdfca78a65ecc1f5e02c655fc1d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
594
sce
Ex18_8.sce
// Example 18_8 clc;funcprot(0); // Given data m=3.50;// kg T_1=20.0+273.15;// K p_1=0.101325;// MPa p_2=10.0;// MPa R_u=8.3143;// kJ/kg.K W_12=-100;// kJ // Calculation // (a) M_krypton=83.80; R_krypton=R_u/M_krypton;// kJ/kg.K Q_12=0;// kJ T_2=T_1-((W_12/(3*m*R_krypton/2)));// K // (b) S_p12=m*R_krypton*log(((T_2/T_1)^(5/2))*(p_1/p_2));// kJ/kg.K printf("\n(a)The final temperature of the krypton gas after compression,T_2=%3.0f K \n(b)The entropy production of the compression process,1(S_p)2=%1.2f kJ/kg.K",T_2,S_p12); // The answer provided in the textbook is wrong
7598bf163edd1bf1ace6a390a3c69961794d2462
449d555969bfd7befe906877abab098c6e63a0e8
/2175/CH6/EX6.11/6_11.sce
be01c692e34c64f346e550bc9f6dfae0c7e7676a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
263
sce
6_11.sce
clc; V=0.3;//m^3 vg=4.133;//m^3/kg m=V/vg; disp("mass of water injected:"); disp("kg",m) //part B pa=0.7;//bar pg=0.3855;//bar v=0.001026; ms=(V-[pa*v])/[vg-v]; mw=pa-ms; V_d=ms*vg pa2=pa*V/V_d; disp("total pressure is:"); disp("bar",pa2+pg);
822bec2ff47d897afa7c44890f5dad7460661aaf
449d555969bfd7befe906877abab098c6e63a0e8
/2210/CH1/EX1.4/1_4.sce
0d972a4704d33177e5b9828163025767abb60941
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
500
sce
1_4.sce
//Chapter 1, Example 1.4 clc n=105 //no of coil turns a=8*10^-5 //cross sectional area in metre square ur=230 //relative permeability uo=4*%pi*10^-7 //permeability of air Erms=10*10^-6 //electric field strength f=10^6 //frequency in hertz //calculation erms=n*2*%pi*f*ur*uo*Erms*a*cos(0) printf("r.m.s open circuit voltage = %.2f microVolt",erms*10^6)
af6a3ccaa1484034a6a5934129ca1fa985e8977a
449d555969bfd7befe906877abab098c6e63a0e8
/1958/CH13/EX13.5/Chapter13_example5.sce
d7fb4906dbefc621c1289544ae4eb62bf4a11c49
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
377
sce
Chapter13_example5.sce
clc clear //Input data R=5000//Resistance in ohms L=2//Inductance in H Vrms=200//rms Voltage in V f=50//Frequency in Hz //Calculations Xl=(2*3.14*f*L)//Inductive reactance in ohms Z=sqrt(R^2+Xl^2)//Impedence in ohms Vl=(Vrms*Xl)/Z//rms potential difference across the inductor in V //Output printf('rms potential difference across the inductor is %3.2f V',Vl)
4f5cadf8b9596c375cec44f1cfb9d2dc2fec3b3d
449d555969bfd7befe906877abab098c6e63a0e8
/2870/CH13/EX13.1/Ex13_1.sce
13834aa73949833b2936620b6390267225f77b4d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
765
sce
Ex13_1.sce
clc;clear; //Example 13.1 //given data mO2=3; mN2=5; mCH4=12; //molecular masses MO2=32; MN2=28; MCH4=16; //constants used Ru=8.314;//in kJ/kg - K //calculations //part - a mm=mO2+mN2+mCH4; mfO2=mO2/mm; mfN2=mN2/mm; mfCH4=mCH4/mm; disp(mfO2,'mass fraction of oxygen is'); disp(mfN2,'mass fraction of nitrogen is'); disp(mfCH4,'mass fraction of methane is'); //part - b NO2=mO2/MO2; NN2=mN2/MN2; NCH4=mCH4/MCH4; Nm=NO2+NN2+NCH4; yO2=NO2/Nm; yN2=NN2/Nm; yCH4=NCH4/Nm; disp(yO2,'mole fraction of oxygen is'); disp(yN2,'mole fraction of nitrogen is'); disp(yCH4,'mole fraction of methane is'); //part - c Mm=mm/Nm; disp(Mm,'average molecular mass in kg/kmol'); Rm=Ru/Mm; disp(Rm,'gas constant of mixture in kJ/kg - K')
89161d2d4cf65cb285560954a0d7ad8484dcd354
449d555969bfd7befe906877abab098c6e63a0e8
/416/CH9/EX9.6/exp9_6.sce
c48db4719235b40481762da7078bdf2570bd7661
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
exp9_6.sce
clear clc disp("example 9.6") pp=235 pe=0.33 lf=1 teo=pp*8760*3600*10^6 ei=teo/pe nfr=3.1*10^10//fessions required tnfr=nfr*ei t1gu=2.563*10^21 //total uranium atoms in 1 grm fure=tnfr/t1gu printf("total energy input %eWatt sec \n energy input is %eWatt-sec\n total number of fissions required is %efissions \n fuel required is %e grams %dkg",teo,ei,tnfr,fure,fure/1000)
00f59101c1eabee2d3bd11e554782e3a1c9a7772
449d555969bfd7befe906877abab098c6e63a0e8
/1658/CH8/EX8.12/Ex8_12.sce
cc6102f92c932af21ac5ed44a3b94c1bf642698b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
173
sce
Ex8_12.sce
clc; //e.g 8.12 alpha=0.98; Ico=5*10**-6; Ib=100*10**-6; Ic=((alpha*Ib)/(1-alpha))+(Ico/(1-alpha)); disp('mA',Ic*10**3,"Ic="); Ie=Ib+Ic; disp('mA',Ie*10**3,"Ie=");
b3b6ce364c6f7182ea59ebb09c768191bcd36563
449d555969bfd7befe906877abab098c6e63a0e8
/174/CH9/EX9.2/example9_2.sce
a1414ca898f87f4c86072d06f85a3f418238d507
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
587
sce
example9_2.sce
// To find minimum detectable signal // Modern Electronic Instrumentation And Measurement Techniques // By Albert D. Helfrick, William D. Cooper // First Edition Second Impression, 2009 // Dorling Kindersly Pvt. Ltd. India // Example 9-2 in Page 277 clear; clc; close; // Given data NF = 20; //Noise figure in dB BW = 1*10^3; //Bandwidth in Hz //Calculations MDS = -114 +10* log10 ([BW/(1*10^6)]) +NF; printf("The minimum detectable signal of the spectrum analyser = %d dBm",MDS); //Result // The minimum detectable signal of the spectrum analyser = -124 dBm
15f0980c61459153cef1bad3638d10229545187d
e9e370052f7ecbe6a5e198a1432f6424815f9a68
/Demo/Tests/Scripting.tst
cb2d304ca846e322003e6f5fb273372736a50925
[]
no_license
willcademo/devtest
e766df0df0a30f89dd85da93057bf14cea7e382f
c4be35f52210d727fdbafabaa4c6c69aa7e07ced
refs/heads/master
2020-03-23T22:42:19.895576
2018-07-26T00:26:37
2018-07-26T00:26:37
142,192,866
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,963
tst
Scripting.tst
<?xml version="1.0" encoding="UTF-8"?> <TestCase name="Scripting" version="5"> <meta> <create author="admin" buildNumber="10.1.0.283" date="07/23/2018" host="truwi01mac1448" version="10.1.0"/> <lastEdited author="admin" buildNumber="10.1.0.283" date="07/23/2018" host="truwi01mac1448" version="10.1.0"/> </meta> <id>E68534518EC911E89A8C025041000101</id> <Documentation>Put documentation of the Test Case here.</Documentation> <IsInProject>true</IsInProject> <sig>ZWQ9NSZ0Y3Y9NSZsaXNhdj0xMC4xLjAgKDEwLjEuMC4yODMpJm5vZGVzPS0xNjU2MzQ3NjA0</sig> <subprocess>false</subprocess> <initState> </initState> <resultState> </resultState> <deletedProps> </deletedProps> <Node log="" name="Execute script (JSR-223)" next="end" quiet="false" think="500-1S" type="com.itko.lisa.test.UserScriptNode" uid="F17A616F8EC911E89A8C025041000101" useFilters="true" version="1"> <!-- Assertions --> <CheckResult assertTrue="true" name="Any Exception Then Fail" type="com.itko.lisa.dynexec.CheckInvocationEx"> <log>Assertion name: Any Exception Then Fail checks for: true is of type: Assert on Invocation Exception.</log> <then>fail</then> <valueToAssertKey/> <param>.*</param> </CheckResult> <onerror>abort</onerror> <language>BeanShell</language> <copyProps>TestExecProps</copyProps> <script>import com.mgm.devtest.demo.*; return DemoUtility.concat("Foo", "Bar");</script> </Node> <Node log="" name="abort" next="" quiet="true" think="0h" type="com.itko.lisa.test.AbortStep" uid="E68534538EC911E89A8C025041000101" useFilters="true" version="1"> </Node> <Node log="" name="fail" next="abort" quiet="true" think="0h" type="com.itko.lisa.test.Abend" uid="E68534558EC911E89A8C025041000101" useFilters="true" version="1"> </Node> <Node log="" name="end" next="fail" quiet="true" think="0h" type="com.itko.lisa.test.NormalEnd" uid="E68534578EC911E89A8C025041000101" useFilters="true" version="1"> </Node> </TestCase>
e36f16a77a8170c53cd1148bd6854a555bd6ad3a
a89d5fe13e368f75763c9bfdaa34356f448ac48f
/BE SEM 7 Exp/DSP/EXP2/exp2.sce
bac107982a4715a490857fdeeb86a7c9789c4921
[]
no_license
oldcompilerharris/Practice
6954f5d69f3008d3f520ab329a7bb60d4a7da4b7
2752358aa7e46430bfd5355c90bf7320ef277b55
refs/heads/master
2021-07-04T05:52:05.504582
2017-09-24T12:01:38
2017-09-24T12:01:38
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,474
sce
exp2.sce
// This GUI file is generated by guibuilder version 3.0 ////////// f=figure('figure_position',[400,50],'figure_size',[646,506],'auto_resize','on','background',[33],'figure_name','Graphic window number %d'); ////////// delmenu(f.figure_id,gettext('File')) delmenu(f.figure_id,gettext('?')) delmenu(f.figure_id,gettext('Tools')) toolbar(f.figure_id,'off') handles.dummy = 0; handles.ass= newaxes();handles.ass.margins = [ 0 0 0 0];handles.ass.axes_bounds = [0.3046875,0.1083333,0.396875,0.3895833]; handles.plotA=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Noto Sans','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.5546875,0.1020833,0.0890625,0.10875],'Relief','default','SliderStep',[0.01,0.1],'String','plot','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','plotA','Callback','plotA_callback(handles)') handles.Botton2=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Noto Sans','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.353125,0.1008969,0.100625,0.1108969],'Relief','default','SliderStep',[0.01,0.1],'String','Clear','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Botton2','Callback','Botton2_callback(handles)') handles.Edit=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Noto Sans','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.35,0.3033981,0.3046875,0.1019417],'Relief','default','SliderStep',[0.01,0.1],'String','','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Edit','Callback','') ////////// // Callbacks are defined as below. Please do not delete the comments as it will be used in coming version ////////// function plotA_callback(handles) //Write your callback for plotA here a=gca(); sca(a); x=[1,4,0,0,0,6,9]; plot2d3(x); replot(0,0,5,5); endfunction function Botton2_callback(handles) //Write your callback for Botton2 here delete(handles.ass.children); delete.handles.string="" endfunction
a25029bd10da1eca5e4502793311617d37882735
b73e9d989ebb6c74535238e10eede063a5d7e66b
/assignment1_part4b.sce
c8f27703c5a13b5e22345a0850dc075c496cf87f
[]
no_license
ParthaSurve/CODES_SEM_VI
930a520ccdbc7cb389dac6b6f03900674b5e1a6b
1f6afa9b92ad8263d0773ce0f90f9ffa5943b8e4
refs/heads/master
2021-01-21T05:13:44.089655
2017-02-25T17:46:44
2017-02-25T17:46:44
83,149,933
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,598
sce
assignment1_part4b.sce
// Assigment 1 Computational Methods for compressible flow //--------------------------------------------------------// // January 27-01-2017 // Steady state time for Implicit Backward Time Central Space scheme (BTSC) for solving PDEs // Author: Partha Surve (SC14B036, Aerospace Engineering 3rd year, IIST) clc; clear; clf; //initializing the parameters //--------------------------// L = 1 //length of the domain t_max = 1 //end time n_x = 8 // No of nodes n_t = 101 // time steps dx = L/(n_x-1); //spacial step size dt = t_max/(n_t-1);//temporal step size alpha=1; //initializing an array A=zeros(n_x,n_x); T=zeros(n_t,n_x); T_old=ones(1,n_x); //components of the tridiagonal matrix a= 1+(2*alpha*dt/(dx*dx)); b= -alpha*dt/(dx*dx); c= -alpha*dt/(dx*dx); //Boundary condition //-------------------// for i = 1:1:n_x A(i,i)=a; end for i = 1:1:n_x-1 A(i,i+1)=b; A(i+1,i)=c; end //Boundary condition A(1,1) = 1; //dirichlet at the tip and end node A(2,1) = 0; A(n_x,n_x) = 1; A(n_x-1,n_x) = 0; //temperature at the nodes T_old(1) = 0; T_old(n_x) = 0; for i = 2:1:n_x-1// initial temp of rod T_old(i)=20; end //inverting the matrix to get the temp at the nodes //TDMA can be used for more effiecient calculation.... need to work on that for i = 1:1:n_t-1 T(1,:)=T_old T(i+1,:)=T(i,:)*inv(A); end //Calculating the RMS error for j = 1:1:n_t-1 err=0 for i = 1:1:n_x err=(T(j,i)-T(j+1,i))^2 +err end RMS_err(j)=sqrt(err/n_x) TIME=j*dt if RMS_err(j) < n_x*10^(-3)*dt break end end
db20882eabe2e650acf34ac3baecc4586a495f65
449d555969bfd7befe906877abab098c6e63a0e8
/2360/CH7/EX7.10/ex7_10.sce
b458e45e9cb9a0ea6de94a3920ae0bba47e6bbb4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
466
sce
ex7_10.sce
// Exa 7.10 format('v',7);clc;clear;close; // Given data Vd = 4;// vertical division Va = 0.5;//Vertical attenuation in V/Div App = Vd*Va;//peak to peak amplitude in V disp(App ,"The peak to peak amplitude of the signal in V is"); TimebyDiv = 2;//time per division in µs/Div Hd = 4;// horizontal division Time = Hd*TimebyDiv;// in µs f = 1/(Time*10^-6);// frequency of signal in Hz f = f * 10^-3;// in kHz disp(f,"The frequency of signal in kHz is");
8ee3b2f5d6a01c7e6e1be461f669a02345b59f25
449d555969bfd7befe906877abab098c6e63a0e8
/1226/CH3/EX3.4/EX3_4.sce
121ef04b88e07bf844d35ee0e6724505989651e1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
475
sce
EX3_4.sce
clc;funcprot(0);//EXAMPLE 3.4 // Initialisation of Variables eta=1/6;...................//Efficiency of the engine rts=70;.................//The amount of temp which is reduced in the sink in C //Calculation t1byt2=1/(1-eta); t2=(rts+273)/((2*eta*t1byt2)-t1byt2+1);............//Temperature of the sink in K disp(t2-273,"Temperature of the sink in Celsius:") t1=t1byt2*t2;...............//Temperature of source in K disp(t1-273,"temperature of source in Celsius:")
91fa60878ade71b36e5440a0fe4596971a0bb7ad
ed1c05f846a64e6a8308394b3f3a4edbf4801a04
/raytracer/scenes/cube/cube.sce
c615401676606e1fd5d0d22323fc18cc545ec27d
[]
no_license
Gorzen/Computer-Graphics-2019
e56b85314fa7b4782041977480e4d7b01a854a6c
c17a640342414402a6efe8859cfc9e3aa042960b
refs/heads/master
2020-04-24T09:39:56.561728
2019-05-30T11:41:20
2019-05-30T11:41:20
171,869,278
0
0
null
null
null
null
UTF-8
Scilab
false
false
482
sce
cube.sce
# camera: eye, center, up, fovy, width, height camera 5 2 5 0 0 0 0 1 0 45 500 500 # recursion depth depth 1 # background color background 1 1 1 # global ambient light ambience 0.2 0.2 0.2 # light: position and color light -1 10 -1 1.0 0.2 0.2 light 10 0 5 0.2 0.2 1.0 # mesh: filename, FLAT/SMOOTH, material mesh cube.off FLAT 0.5 0.5 0.5 0.5 0.5 0.5 0.0 0.0 0.0 0.0 0.0 #mesh cube.off PHONG 0.5 0.5 0.5 0.5 0.5 0.5 0.0 0.0 0.0 0.0 0.0
05a226c76f5c7a086c4fe4a036c3e70c45012260
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set7/s_Electronic_Measurements_And_Instrumentation_R._K._Rajput_2096.zip/Electronic_Measurements_And_Instrumentation_R._K._Rajput_2096/CH5/EX5.1/ex_5_1.sce
ea819c14353845076c2cbf387f07a44741f98b30
[]
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
180
sce
ex_5_1.sce
errcatch(-1,"stop");mode(2);//Example 5.1 // frequency ; ; //given data : N=45; // count t=10; // gate period in ms f=(N/(t*10^-3))*10^-3; disp(f,"frequency,f(k-Hz) = ") exit();
3dcf0f15cf7f31e0dbaf497fd0824117bc2045f3
449d555969bfd7befe906877abab098c6e63a0e8
/317/CH6/EX6.5/example5.sce
b9a8bc8d6e0c0fe7ac793a1458362e6cfeedd335
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
847
sce
example5.sce
// find Ib,Ic,Vce,Pd // Electronic Principles // By Albert Malvino , David Bates // Seventh Edition // The McGraw-Hill Companies // Example 6-5, page 201 clear;clc; close; // Given data Rc=2*10^3;// resistance in ohms Bdc=300;// current gain Vbb=10;// base source voltage in volts Vbe=0.7;// emitter diode in volts Rb=1*10^6;// resistance in ohms Vcc=10;// in volts // Calculations Ib=(Vbb-Vbe)/Rb;// current through base resistor in amperes Ic=Ib*Bdc;// collector current in amperes Vce=Vcc-(Ic*Rc);// collector-emitter voltage in volts Pd=Vce*Ic;// collector power dissipation in watts disp("Amperes",Ib,"base current =") disp("Amperes",Ic,"collector current =") disp("Volts",Vce,"collector-emitter voltage =") disp("watts",Pd,"dissipated power=") // Result // Ib is 9.3 microAmperes,Ic is 2.79 mAmperes,Vce is 4.42 volts,Pd is 12.3 mWatts
f22116257eb71cdc07cbe32f4b64ad9eae64cf2d
f1275bcc58e973ff76ca7292f9105d658455170c
/scilab/rei5-3.sce
cff816b479f7aeb1c8088471c7162e9dcc26455c
[]
no_license
MasahiroAraki/SpeechRecognition
5987f03ea4629e56c88851321cff60847ec9feb7
d095897fb77f1051396c72d2c6454e9589b5bc4a
refs/heads/master
2023-08-31T01:26:01.624052
2023-08-16T23:23:08
2023-08-16T23:23:08
212,271,685
17
3
null
null
null
null
UTF-8
Scilab
false
false
631
sce
rei5-3.sce
clear; X = [1.0 0.5 -0.2 -0.4 -1.3 -2.0]'; // 学習データ y = [1 1 0 1 0 0]'; // 教師信号 [n d] = size(X); X = [ones(n,1), X]; // x_0 軸を追加 eps = 1e-8; // 終了判定の閾値 differ = %inf; // 二乗誤差の変化量 olderr = %inf; // 前回の二乗誤差 w = [0.2 0.3]'; // 初期重み rho = 0.2; // 学習係数 while differ > eps w = w - rho * sum(X .* repmat((X * w - y), [1,2]), 'r')'; sqrerr = 0.5 * sum((X * w - y).^2); differ = abs(olderr - sqrerr); olderr = sqrerr; printf("w0=%6.3f, w1=%6.3f, err=%11.8f\n",w(1), w(2), sqrerr) end printf("Results: w0 = %6.3f, w1 = %6.3f\n",w(1), w(2))
7c270c444371e4c4fc3c4710fe50aa42fb9d4042
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.3.1/macros/elem/coth.sci
507c15e34d5d8a840d642c06ecf6ee7b68515f06
[ "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
158
sci
coth.sci
function t=coth(x) //Syntax : t=coth(x) // // hyperbolic co-tangent of x //! if type(x)<>1 then error(53),end t=exp(x); t=(t-ones(x)./t).\(t+ones(x)./t)
be42e7e2b489b66b70f70038ceda013b4d816a13
2ae858a680a4ccf8a2ec89a45a1e48a0292d8eab
/macros/projectPoints.sci
ce4d3d6ff9b38c987faf7241b8d9467262adf127
[]
no_license
shreyneil/FOSSEE-Image-Processing-Toolbox
f315a82c325b2d6cbd0611689f3e30071a38490d
dd1cbd0dcbe0c3dd11d6ce1ab205b4b72011ae56
refs/heads/master
2020-12-02T16:26:13.755637
2017-07-07T19:22:33
2017-07-07T19:22:33
96,552,147
0
0
null
2017-07-07T15:32:15
2017-07-07T15:32:15
null
UTF-8
Scilab
false
false
1,310
sci
projectPoints.sci
function [newpoints] = projectPoints(worldPoints, rvect, tvect,camMat, disCoefMat) // Returns the ideal point coordinates from the observed point coordinates // // Calling Sequence // [idealPoints] = distortPoints(observedPoints, camMat, disCoefMat,alpha) // // Parameters // observedPoints: 1xN or Nx1 2-channel (CV_32FC2 or CV_64FC2). // camMat: \vecthreethree{f_x}{0}{c_x}{0}{f_y}{c_y}{0}{0}{1} // disCoefMat: Input vector of distortion coefficients (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6]]) of 4, 5, or 8 elements. If the vector is NULL/empty, the zero distortion coefficients are assumed. // idealPoints: ideal point coordinates matrix. If matrix newCamMat is identity or omitted, idealPoints will contain normalized point coordinates. // // Description // Returns the ideal points coordinates from the observed point coordinates after distortion and reverse perpective transformation. // // Examples // [worldPoints] = [1 2 3 4 4 3 2 1] // [tvect] = [3 2 1] // [rvect] = [1 2 3] // [camMat] = [450 0 231; 0 876.3 87.1; 0 0 1] // [disCoefMat] = [3 2 0 9] // [newpoints] = projectPoints(worldPoints, rvect, tvect,camMat, disCoefMat) // // Authors // Shreyash Sharma output = raw_projectPoints(worldPoints, rvect, tvect,camMat, disCoefMat) newpoints = output endfunction
327d0303e08336880057eb4552b3347293dc532a
f8bb2d5287f73944d0ae4a8ddb85a18b420ce288
/Scilab/step(p,pi,pid).sce
e275d360cc78fd562427463f5dede40b80476736
[]
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
UTF-8
Scilab
false
false
590
sce
step(p,pi,pid).sce
s = %s; t = 0:0.01:15; L = 0.5; G0 = 1/((s+1)*(s+4)); DelayN = 1-(L/2)*s+(1/10)*(L*s)^2-(1/120)*(L*s)^3; DelayD = 1+(L/2)*s+(1/10)*(L*s)^2+(1/120)*(L*s)^3; Delay = DelayN/DelayD; G = Delay*G0; Le = 0.6;Re = 1.56; Cp = 1/(Re*Le); Tcp = G*Cp/(1+G*Cp); sysp = syslin('c',Tcp); yp = csim("step",t,sysp); Cpi = 0.9/(Re*Le)*(1+1/(3.3*Le*s)); Tcpi = G*Cpi/(1+G*Cpi); syspi = syslin('c',Tcpi); ypi = csim("step",t,syspi); Cpid = 1.2/(Re*Le)*(1+1/(2*Le*s)+0.5*Le*s); Tcpid = G*Cpid/(1+G*Cpid); syspid = syslin('c',Tcpid); ypid = csim("step",t,syspid); clf();plot2d(t,yp) plot2d(t,ypi) plot2d(t,ypid)
6bc6f74101df0d3369a2bbf08edba459f833a35d
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set14/s_Materials_Science_R._S._Khurmi_And_R._S._Sedha_2153.zip/Materials_Science_R._S._Khurmi_And_R._S._Sedha_2153/CH5/EX5.7/ex_5_7.sce
e3dbe95139e88446806874fdd64974b7b0cfb571
[]
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
241
sce
ex_5_7.sce
errcatch(-1,"stop");mode(2);// Example 5.7: mobility of electrons , // given : format('v',8) e=1.602*10^-19; // in C m=9.1*10^-31; // in kg t=10^-14; // time in sec mu=(e*t)/m; disp(mu,"mobility of electrons,mu(m^2/volts.sec) = ") exit();
167f0ed5134816b80a65e6ce465729104ead2ee5
449d555969bfd7befe906877abab098c6e63a0e8
/174/CH6/EX6.5/example6_5.sce
6cc18f4ef194b34acfbfc817ff48f549a9a4b2dd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
842
sce
example6_5.sce
// To find the self capacitance // Modern Electronic Instrumentation And Measurement Techniques // By Albert D. Helfrick, William D. Cooper // First Edition Second Impression, 2009 // Dorling Kindersly Pvt. Ltd. India // Example 6-5 in Page 162 clear; clc; close; // Given data // Values of frequencies in Hz f_1 = 2*10^6; f_2 = 5*10^6; // Values of the tuning capacitors in F C_1 = 450*10^-12; C_2 = 60*10^-12; //Calculations //Using the equation f = 1/(2*%pi*sqrt(L*(C_2+C_d))); //Since f_2 = 2.5*f_1 //Equating & reducing the equations // 1/(C_2 +C_d) = 6.25/(C_1 +C_d) C_d = (C_1 -6.25*C_2)/5.25 printf("C_d = %0.2E F\n",C_d); printf("i.e The value of the distributed capacitance = %0.1f pF",(C_d*10^12)); //Result // C_d = 1.43E-011 F // i.e The value of the distributed capacitance = 14.3 pF
0b0284d898279a2654286994680bc7cfd2ec3ebf
76cd50cd5e5d8e4afa2af9b79740e2cff65ab2c8
/gauss_jordan_exp6.sce
3a2c5ad037dcc5c27a2a6e424df8ba128f0869ba
[]
no_license
ankitparekh21698/Numerical-Techniques-Lab
60de11c65db0be65acc14a055cb5b57ca3158e26
c3ba81f085f22dab8a3f93e6f86ea956a886e410
refs/heads/master
2022-12-17T21:32:04.681008
2020-09-10T16:07:17
2020-09-10T16:07:17
280,810,961
0
0
null
null
null
null
UTF-8
Scilab
false
false
938
sce
gauss_jordan_exp6.sce
clc() mat =[0,0,0,0;0,0,0,0;0,0,0,0]; for i=1:3 for j=1:4 mat(i,j) = input("Enter the (" +string(i)+" , "+string(j) +" ) element:"); end end disp("Entered matrix is :"); for i=1:3 disp("" + string(mat(i,1)) + " " + string(mat(i,2)) + " " + string(mat(i,3))+" "+string(mat(i,4))) end for i=1:3 mat(i,:) = mat(i,:)/mat(i,i); for j=i+1:3 mat(j,:) = mat(j,:) - mat(i,:)*mat(j,i); end end for i=1:3 for j=i+1:3 mat(i,:)= mat(i,:) - mat(j,:)*mat(i,j); end end disp("Identity matrix is :"); for i=1:3 disp("" + string(mat(i,1)) + " " + string(mat(i,2)) + " " + string(mat(i,3))+" "+string(mat(i,4))) end x3 = mat(3,4); x2 = mat(2,4) - mat(2,3)*x3; x1 = mat(1,4) - mat(1,3)*x3 - mat(1,2)*x2; disp("The solutions from guass jordan method are :"); disp(" " + string(x1) + " , " + string(x2) + " , " + string(x3))
178f781ad3b31935a068860abbd4a5a92cbe92df
abed134eb329d44a339af93997f34c76b7649173
/P1Codes/Xnor.tst
2e8944df48eb3b089e0b3717628ad34a610cca4e
[]
no_license
Patrickyyh/CSCE-312
8823df9f53d378b96c8018064da3823faef95ce3
b9ba0fd8592ce5d91d1689219ff48d638a66aee0
refs/heads/master
2023-05-03T18:46:15.689810
2021-05-22T06:02:17
2021-05-22T06:02:17
369,727,875
0
0
null
null
null
null
UTF-8
Scilab
false
false
478
tst
Xnor.tst
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/01/Xnor.tst load Xnor.hdl, output-file Xnor.out, compare-to Xnor.cmp, output-list a%B3.1.3 b%B3.1.3 out%B3.1.3; // example tst command given set a 0, set b 0, eval, output; // now complete the remaining tst commands set a 0, set b 1, eval, output; set a 1, set b 0, eval, output; set a 1, set b 1, eval, output;
b4f4d6785e4867f37e82ec9867fe3ed209c43791
449d555969bfd7befe906877abab098c6e63a0e8
/1379/CH10/EX10.1.4/example10_4.sce
5cf847dbb7ddfc1ff17953cfe80b7d3cedd28bdc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
730
sce
example10_4.sce
//example 10.4 clc; funcprot(0); //exapple 10.4 // Initialization of Variable rho=998; w0=40;//density of slurry mu=1.01/1000; g=9.81; rho1=2660;//density quartz h=0.25; t=18.5*60; mp=[5 11.8 20.2 24.2 28.5 37.6 61.8]; d=[30.2 21.4 17.4 16.2 15.2 12.3 8.8]/1000000; u=h/t; d1=sqrt(18*mu*u/g/(rho1-rho)); function[a]=inter(d,f,g,b);//interpolation linear for i=1:b if d>f(i+1)& d<=f(i) then break else continue end break end a=-(d-f(i+1))/(f(i)-f(i+1))*(g(i+1)-g(i))+g(i+1); endfunction [a]=inter(d1,d,mp,6); phi=1-a/100; rhot=phi*(rho1-rho)/rho1*w0+rho; disp(rhot,"the density of suspension at depth 25cm in kg/m^3 is")
82c2384d76fc5696e54b06bc15d7486cd14fc0de
fa11034f9ded2f7e35e68c4c578ab24bee926f36
/MT/MT/test.tst
9d93ad5b46f71dcdf388f5957d213b8277cbb046
[]
no_license
padzikm/MT
aa3ee2ff442c6df474e5d9feb5abf8c9c949f83d
015ab559b610d982b5c48cbca07889428058fe9d
refs/heads/master
2021-01-16T21:18:38.679336
2014-11-30T23:43:53
2014-11-30T23:43:53
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
431
tst
test.tst
real a real b real c real d a=2 b=-3 c=-2 d=sqrt(b*b-4*a*c) print (-b+d)/(2*a) print (-b-d)/(2*a) print Pi/4 bool aa aa=false int i i=5 real x x=7.5 bool bb bb = i<=x print aa print bb print aa==bb int y y=0 bb= i>10*x && aa==(x/y>-2) print !bb print 0090 exit -------------- Prawidlowe wyniki Result: 2r Result: -0.5r Result: 0.785398163397448r Result: false Result: true Result: false Result: true Result: 90i
af04cacde9c15223f34133989c72c4c502107624
0592c9e4cfbb77a0755aff6f0c798d9fe31f6ff4
/scilab/Calibration_Equity/interface.sci
a2f80800006afd9875dd1a7492828bc96b8c980c
[]
no_license
FinancialEngineerLab/premia-13-cpp_FICC
e19caa6a9cadb4ad1361053efc0dfc9418071cf9
e271da627dbfc8c2c1f7e9f700766544f64c72b2
refs/heads/master
2023-03-16T11:11:26.830681
2016-04-19T05:58:16
2016-04-19T05:58:16
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
7,498
sci
interface.sci
flag=1; color=2; while flag==1 l1=list('Calibration Method',1,[' PDE Dupire simulator', 'Monte Carlo Weighted', 'Stochastic Control', 'Markovian Calibration']); rep1=x_choices('Methods Choice',list(l1)); if rep1==1 then l2=list('OPTIONS',2,['PUT','CALL']); callorput=x_choices('Options Choiche',list(l2))-1; x0=[590.0 //S_0 0.06; // r 0.0262; //q 0.; //time origin ]; y0=[2.0 //maturity ]; z0 = [400 //Space Step 100; // Time Step ]; ystr_models=['s'; 'r';'divid';'Time origin']; ystr_options=['Maturity']; ystr_methods=['Space Step';'Time Step']; x0=evstr(x_mdialog(['Model Parameters'],ystr_models,string(x0))); y0=evstr(x_mdialog(['Option Parameters'],ystr_options,string(y0))); z0=evstr(x_mdialog(['Method Parameters'],ystr_methods,string(z0))); chdir("./src/PDEDupire/src"); exec builder.sce; exec loader.sce; if MSDOS then unix('del calib.in'); else unix('rm -f calib.in'); end, u = file('open','calib.in','unknown') fprintf(u,'%f\n',x0(1)); fprintf(u,"%f\n",x0(2)); fprintf(u,"%f\n",x0(3)); fprintf(u,"%d\n",callorput); fprintf(u,"%f\n",x0(4)); fprintf(u,"%f\n",y0(1)); fprintf(u,"%f\n",-7); fprintf(u,"%f\n",7); fprintf(u,"%d\n",z0(1)); fprintf(u,"%d\n",z0(2)); fprintf(u,"%d\n",0); fprintf(u,"%f\n",.5); fprintf(u,"%d\n",2); fprintf(u,"optim2.in"); fprintf(u,"sp500prices.data"); fprintf(u,"sigmainit_n1m1_0_013.ddl"); fprintf(u,"v2_008_1_sigmaest_n1m1_0_013.ddl"); fprintf(u,"visusigma"); fprintf(u,"sigmainit_n1m1_0_013.visu"); fprintf(u,"v2_008_1_sigmaest_n1m1_0_013.visu"); file('close',u); calib() flag=x_choose(['Stop';'Continue'],'Another Test ?'); chdir("../.."); end, if rep1==2 then x0=[120.0 //S_0 0.06; // r 0.0262; //q ]; y0=[1 // Option Volatility 1 // Option Constraint 1.0; //maturity ]; z0 = [0.3 //Volatility of generated path 0.001; // Time Step 20; // Number of Calibration Put 1; //Perturbation coefficient of volatility 5.;// Return to mean 0.7; // Correlation 1;//Option constraint ]; ystr_models=['s'; 'r';'divid']; ystr_options=['Option Volatility'; 'Option Constraint';'Maturity']; ystr_methods=['Volatility of generated path';'Time Step';'Number of Calibration Put';'Perturbation coefficient of volatility'; 'Return to mean';' Correlation';'Option constraint']; x_dialog("Message","The datas have to be in file ./src/CalibMc/datas.in") ; x0=evstr(x_mdialog(['Model Parameters'],ystr_models,string(x0))); y0=evstr(x_mdialog(['Option Parameters'],ystr_options,string(y0))); z0=evstr(x_mdialog(['Method Parameters'],ystr_methods,string(z0))); chdir("./src/Calib_Mc"); exec builder.sce; exec loader.sce; if MSDOS then unix('del parameters.in'); else unix('rm -f parameters.in'); end, u = file('open','parameters.in','unknown') fprintf(u,'%f\n',x0(1)); fprintf(u,"%f\n",x0(2)); fprintf(u,"%f\n",x0(3)); fprintf(u,"%f\n",y0(1)); fprintf(u,"%f\n",y0(2)); fprintf(u,"%f\n",y0(3)); fprintf(u,"%d\n",z0(1)); fprintf(u,"%d\n",z0(2)); fprintf(u,"%d\n",z0(3)); fprintf(u,"%d\n",z0(4)); fprintf(u,"%d\n",z0(5)); fprintf(u,"%d\n",z0(6)); fprintf(u,"%d\n",z0(7)); calib() flag=x_choose(['Stop';'Continue'],'Another Test ?'); chdir("../.."); end, if rep1==3 then x0=[100.0 //S_0 0.05; // r 0.0; //q ]; y0=[ 100; // N : number of space steps of the fine grid 0.21; // sigma_0 : --> prior 0.1;// sigma_min 0.46; // sigma_max 0.48; // sigma_bar : --> ]; z0 = [0.00001 // gradtol : tolerance on the relative gradient 0.00001 // steptol : tolerance on the relative change of x 1; // verbosity : level of printed information (0 --> 3) 0; // saveSuccessiveXinFile : save successive x0 in the file data.out (0 or 1) 100; // maxCounter : maximum number of iterations 0; // lambda : Initial default value of lagrange parametre 1; // alpha : Tune this parametre when the program do not converge ]; ystr_models=['s'; 'r';'divid']; ystr_options=['number of space steps';'sigma_0 : --> prior';'sigma_min';'sigma_max';'sigma_bar']; ystr_methods=['tolerance on gradient';'tolerance on change';'Verbosity';'saveSuccessiveXinFile';'maximum number of iterations' 'Initial default value of lagrange parameters';'Tune this parameter when no convergence']; x0=evstr(x_mdialog(['Model Parameters'],ystr_models,string(x0))); y0=evstr(x_mdialog(['Option Parameters'],ystr_options,string(y0))); z0=evstr(x_mdialog(['Method Parameters'],ystr_methods,string(z0))); chdir("./src/Calib_Ave/src"); exec builder.sce; exec loader.sce; if MSDOS then unix('del calib_Avellaneda.in'); else unix('rm -f calib_Avellaneda.in'); end, x_dialog("Message","The datas have to be in file ./src/CalibMc/VolStoPut.data") ; u = file('open','calib_Avellaneda.in','unknown') fprintf(u,'%f\n',x0(1)); fprintf(u,"%f\n",x0(2)); fprintf(u,"%f\n",x0(3)); fprintf(u,"%f\n",y0(1)); fprintf(u,"%f\n",y0(2)); fprintf(u,"%f\n",y0(3)); fprintf(u,"%f\n",y0(4)); fprintf(u,"%f\n",y0(5)); fprintf(u,"%d\n",z0(1)); fprintf(u,"%d\n",z0(2)); fprintf(u,"%d\n",z0(3)); fprintf(u,"%d\n",z0(4)); fprintf(u,"%d\n",z0(5)); fprintf(u,"%d\n",z0(6)); fprintf(u,"%d\n",z0(7)); fprintf(u,"VolStoPut.data"); fprintf(u,"VolStoLoc.out"); file('close',u); calib_ave_scilab() flag=x_choose(['Stop';'Continue'],'Another Test ?'); chdir("../../.."); end, if rep1==4 then x0=[100.0 //S_0 ]; y0=[1.0 //maturity ]; z0 = [ 12; // N : number of time steps 20; // M Number of space steps (large grid) 3;// Number of finite elements 250; // Number of space steps (fine grid) ]; ystr_models=['s']; ystr_options=['Maturity']; ystr_methods=['number of time steps ';'Number of space steps';'Number of finite elements';'Number of space steps']; x0=evstr(x_mdialog(['Model Parameters'],ystr_models,string(x0))); y0=evstr(x_mdialog(['Option Parameters'],ystr_options,string(y0))); z0=evstr(x_mdialog(['Method Parameters'],ystr_methods,string(z0))); chdir("./src/Markov/src"); exec("builder.sce"); exec("loader.sce"); if MSDOS then unix('del param.in'); else unix('rm -f param.in'); end, x_dialog("Message","The datas have to be in file ./src/Markov/Call.dat") ; u = file('open','param.in','unknown') fprintf(u,'%f\n',x0(1)); fprintf(u,"%f\n",y0(1)); fprintf(u,"%d\n",z0(1)); fprintf(u,"%d\n",z0(2)); fprintf(u,"%d\n",z0(3)); fprintf(u,"%d\n",z0(4)); file('close',u); exec calib_ef.sci; flag=x_choose(['Stop';'Continue'],'Another Test ?'); chdir("../../.."); end, end;
7c9f63b33735e7f916fbd0b6d04626792db7daf1
449d555969bfd7befe906877abab098c6e63a0e8
/1208/CH9/EX9.17/Exa17.sce
63b97695e9708257e152c57ae6971bf678f82f95
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,745
sce
Exa17.sce
//Exa 17 clc; clear; close; // given data : STs=1600;//in hours STu=2400;//in hours ATs=2500;//in hours ATu=2500;//in hours SRs=0.50;//in Rs/Hour SRu=0.60;//in Rs/Hour ARs=0.40;//in Rs/Hour ARu=0.50;//in Rs/Hour //Labour Cost variance LCVs=(STs*SRs)-(ATs*ARs) LCVu=(STu*SRu)-(ATu*ARu) //Labour Efficiency variance LEVs=SRs*(STs-ATs);// in Rs LEVu=SRu*(STu-ATu);// in Rs //Labour Rate variance LRVs=ATs*(SRs-ARs);// in Rs LRVu=ATu*(SRu-ARu);// in Rs //Labour Mix variance TAMT=ATs+ATu;// total of actual mix time TSMT=STs+STu;// total of standard mix time RSTs=(STs*TAMT)/TSMT RSTu=(STu*TAMT)/TSMT LMVs=SRs*(RSTs-ATs);// in Rs LMVu=SRu*(RSTu-ATu);// in Rs //Labour Sub Efficiency variance LSEVs=SRs*(STs-RSTs);// in Rs LSEVu=SRu*(STu-RSTu);// in Rs disp("Labour Cost variance :") disp(LCVs,"Labour Cost variance LCVs: ") disp(LCVu,"Labour Cost variance LCVu: ") disp(LCVs+LCVu,"Labour Cost variance :") disp("Labour Efficiency variance :") disp(LEVs,"Labour Efficiency variance LEVs: ") disp(LEVu,"Labour Efficiency variance LEVu: ") disp(LEVs+LEVu,"Labour Efficiency variance :") disp("Labour Rate variance :") disp(LRVs,"Labour Rate variance LRVs: ") disp(LRVu,"Labour Rate variance LRVu: ") disp(LRVs+LRVu,"Labour Rate variance :") disp("Labour Mix variance :") disp(LMVs,"Labour Mix variance LMVs: ") disp(LMVu,"Labour Mix variance LMVu: ") disp(LMVs+LMVu,"Labour Mix variance :") disp("Labour Sub Efficiency variance :") disp(LSEVs,"Labour Sub Efficiency variance LMVs: ") disp(LSEVu,"Labour Sub Efficiency variance LMVu: ") disp(LSEVs+LSEVu,"Labour Sub Efficiency variance :") disp("Negative variances indicate adverse value "); disp("Positive variances indicate favourable value ");
6228889a9e91cd2ac8ab88e1e48fe9d9a3c96eff
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4/macros/mtlb/mtlb_cumsum.sci
7cd2bc960b9a87e3c1348164e42eefedeba0f9da
[ "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
153
sci
mtlb_cumsum.sci
function r=mtlb_cumsum(a) // Copyright INRIA if type(a)==4 then a=bool2s(a);end if size(a,1)==1|size(a,2)==1 then r=cumsum(a) else r=cumsum(a,1) end
60bdee33597d75109cd65534c281c4ea8795a080
d60e8cf5de9384449a9b6a643bfe4c1d2339b1ae
/windows/nxt.sci
d7d63f8804093ee0b9ba81f820f0691a990b092b
[]
no_license
tizar/lego
165ec2ac333bed642d96a33db77ab7d00ffbfba9
351c8824b3457f4735cf65ec4740d1c9fc89dd21
refs/heads/master
2016-09-08T05:06:23.607494
2011-03-03T10:46:31
2011-03-03T10:46:31
1,434,570
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,174
sci
nxt.sci
link('lego.dll',['nxtinit','nxtstop','getbatterylevel','playtone','playsoundfile','motor_setforward','motor_setreverse','motor_stop','motor_resetrotation','motor_getrotation'],'c') //call('playtone',1,440,'i',2,1000,'i','out',[1,1],3,'i') ; function status=nxt_init() status=call('nxtinit',1,1,'i','out',[1,1],1,'i') endfunction function level=nxt_batlevel() level=call('getbatterylevel','out',[1,1],1,'i'); endfunction function nxt_playtone(frequency,duration) call('playtone',frequency,1,'i',duration,2,'i','out',[1,1],1,'i'); endfunction function nxt_forward(port,power) call('motor_setforward',port,1,'i',power,2,'i','out',[1,1],1,'i'); endfunction function nxt_reverse(port,power) call('motor_setreverse',port,1,'i',power,2,'i','out',[1,1],1,'i'); endfunction function nxt_stop(port,brake) call('motor_stop',port,1,'i',brake,2,'i','out',[1,1],1,'i'); endfunction function nxt_resetrotation(port,relative) call('motor_resetrotation',port,1,'i',relative,2,'i','out',[1,1],1,'i'); endfunction function rotation=nxt_getrotation(port) rotation=call('motor_getrotation',port,1,'i','out',[1,1],2,'i'); endfunction
e03aaf6b4b3e4bf609c146dfbf8c5467da2e304d
449d555969bfd7befe906877abab098c6e63a0e8
/2006/CH14/EX14.12/ex14_12.sce
bec785529a58684f22c801e24fd14f83233afa97
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
908
sce
ex14_12.sce
clc; // the combustion equation // n1C3H8+n2O2+n3 N2 → n4 CO2+ n5 H2O+n6 O2+n7 N2 T0=298; // Temperature of surroundings in kelvin // (a).Product species at 25 oC and 1 atm d_gfC3H8=-24290; d_gfCO2=-394359; d_gfH2O=-228570; // in kJ/kmol GR=d_gfC3H8; GP=3*d_gfCO2+4*d_gfH2O; Wmax=GR-GP; // Maximum possible work output M=44;//Molecular weight Wmax=Wmax/M; disp ("kJ/kg fuel (answer mentioned in the textbook is wrong)",Wmax,"Maximum possible work output = ","(a)."); // (b).The actual partial pressures of products n1=1; n2=20; n3=75.2; n4=3; n5=4; n6=15; n7=75.2; // refer equation SR=19233; SP=19147; // in kJ/K from table HR=-104680; // in kJ/kmol fuel d_h0fCO2=-393509; d_h0fH2O=-241818; // in kJ/kmol HP=3*d_h0fCO2+4*d_h0fH2O; Wmax=HR-HP-T0*(SR-SP); // Maximum possible work output Wmax=Wmax/M; disp ("kJ/kg (round off error)",Wmax,"Maximum possible work output = ","(b).");
d5a3d434b2efdabeaa235038700edef4dfc0f2cf
449d555969bfd7befe906877abab098c6e63a0e8
/3754/CH10/EX10.6/10_6.sce
c97cef0de7d1def6797f884db8b2e72371230c6a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
946
sce
10_6.sce
clear// //Variables l = 0.2 * 10**-3 //length (in meter) A = 0.04 * 10**-6 //Area of cross section (in square-meter) V = 1 //Voltage (in volts) I = 8 * 10**-3 //current (in Ampere) un = 0.13 //mobility of electron (in m**2 per volt-second) q = 1.6 * 10**-19 //charge on electron (in Coulomb) //Calculation R = V/I //Resistance (in ohm) p = R * A/l //Resistivity (in ohm-meter) sig = 1/p //Conductivity (in siemen per meter) n = sig / (q * un) //concentration (in per cubic-meter) J = I/A //current density (in Ampere per square-meter) v = J/(n*q) //Result printf("\n Concentration of free electrons is %e m**-3.\nDrift velocity is %0.3f m/s.",n,v)
7d5aaffa87698abe3609ded8ad06c5c03dd5e001
449d555969bfd7befe906877abab098c6e63a0e8
/1439/CH14/EX14.9/14_9.sce
6bc167ce6e9ebe03440ec06019301c02324075aa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
198
sce
14_9.sce
clc //initialisation of variables E0= 0.0140 //volt n= 2 r= 2 V= 96500 //coloumbs //CALCULATIONS E= E0-0.0576*log10(n) G= -n*V*E/4.1840 //RESULTS printf ('gibbs free energy = %.f cal',G)
6a9f9bcd0f175de2ff2040f6ed2b022df18b009a
449d555969bfd7befe906877abab098c6e63a0e8
/788/CH13/EX13.12.b/13_12_soln.sce
1d484ffab1203e2a0d8bf141b76d396df7a2772b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
579
sce
13_12_soln.sce
clc; pathname=get_absolute_file_path('13_12_soln.sce') filename=pathname+filesep()+'13_12_data.sci' exec(filename) // Solution: // atmospheric temperature in deg Rankine, T1=T1+460; //deg R // temperature of air in deg Rankine in pneumatic cylinder, T2=T2+460; //deg R // absolute pneumatic cylinder pressure, p2=p2+14.7; //psia // the volume per minute of air consumed by cylinder, Q2=(%pi/4)*(d/12)^2*(L/12)*N; //ft^3/min // air consumption rate, Q1=Q2*(p2/p1)*(T1/T2); //scfm // Results: printf("\n Results: ") printf("\n The air consumption rate in scfm is %.2f.",Q1)
e8ef6191053f6971a86274ac54f404791c9b6b8b
66106821c3fd692db68c20ab2934f0ce400c0890
/test/disassembler/cpse.instr.tst
a790dbd07732052c2cf7e08469a0d6f7449d0e74
[]
no_license
aurelf/avrora
491023f63005b5b61e0a0d088b2f07e152f3a154
c270f2598c4a340981ac4a53e7bd6813e6384546
refs/heads/master
2021-01-19T05:39:01.927906
2008-01-27T22:03:56
2008-01-27T22:03:56
4,779,104
2
0
null
null
null
null
UTF-8
Scilab
false
false
2,622
tst
cpse.instr.tst
; @Harness: disassembler ; @Result: PASS section .text size=0x00000080 vma=0x00000000 lma=0x00000000 offset=0x00000034 ;2**0 section .data size=0x00000000 vma=0x00000000 lma=0x00000000 offset=0x000000b4 ;2**0 start .text: label 0x00000000 ".text": 0x0: 0x00 0x10 cpse r0, r0 0x2: 0x10 0x10 cpse r1, r0 0x4: 0x20 0x10 cpse r2, r0 0x6: 0x30 0x10 cpse r3, r0 0x8: 0x40 0x10 cpse r4, r0 0xa: 0x50 0x10 cpse r5, r0 0xc: 0x60 0x10 cpse r6, r0 0xe: 0x70 0x10 cpse r7, r0 0x10: 0x80 0x10 cpse r8, r0 0x12: 0x90 0x10 cpse r9, r0 0x14: 0xa0 0x10 cpse r10, r0 0x16: 0xb0 0x10 cpse r11, r0 0x18: 0xc0 0x10 cpse r12, r0 0x1a: 0xd0 0x10 cpse r13, r0 0x1c: 0xe0 0x10 cpse r14, r0 0x1e: 0xf0 0x10 cpse r15, r0 0x20: 0x00 0x11 cpse r16, r0 0x22: 0x10 0x11 cpse r17, r0 0x24: 0x20 0x11 cpse r18, r0 0x26: 0x30 0x11 cpse r19, r0 0x28: 0x40 0x11 cpse r20, r0 0x2a: 0x50 0x11 cpse r21, r0 0x2c: 0x60 0x11 cpse r22, r0 0x2e: 0x70 0x11 cpse r23, r0 0x30: 0x80 0x11 cpse r24, r0 0x32: 0x90 0x11 cpse r25, r0 0x34: 0xa0 0x11 cpse r26, r0 0x36: 0xb0 0x11 cpse r27, r0 0x38: 0xc0 0x11 cpse r28, r0 0x3a: 0xd0 0x11 cpse r29, r0 0x3c: 0xe0 0x11 cpse r30, r0 0x3e: 0xf0 0x11 cpse r31, r0 0x40: 0x00 0x10 cpse r0, r0 0x42: 0x01 0x10 cpse r0, r1 0x44: 0x02 0x10 cpse r0, r2 0x46: 0x03 0x10 cpse r0, r3 0x48: 0x04 0x10 cpse r0, r4 0x4a: 0x05 0x10 cpse r0, r5 0x4c: 0x06 0x10 cpse r0, r6 0x4e: 0x07 0x10 cpse r0, r7 0x50: 0x08 0x10 cpse r0, r8 0x52: 0x09 0x10 cpse r0, r9 0x54: 0x0a 0x10 cpse r0, r10 0x56: 0x0b 0x10 cpse r0, r11 0x58: 0x0c 0x10 cpse r0, r12 0x5a: 0x0d 0x10 cpse r0, r13 0x5c: 0x0e 0x10 cpse r0, r14 0x5e: 0x0f 0x10 cpse r0, r15 0x60: 0x00 0x12 cpse r0, r16 0x62: 0x01 0x12 cpse r0, r17 0x64: 0x02 0x12 cpse r0, r18 0x66: 0x03 0x12 cpse r0, r19 0x68: 0x04 0x12 cpse r0, r20 0x6a: 0x05 0x12 cpse r0, r21 0x6c: 0x06 0x12 cpse r0, r22 0x6e: 0x07 0x12 cpse r0, r23 0x70: 0x08 0x12 cpse r0, r24 0x72: 0x09 0x12 cpse r0, r25 0x74: 0x0a 0x12 cpse r0, r26 0x76: 0x0b 0x12 cpse r0, r27 0x78: 0x0c 0x12 cpse r0, r28 0x7a: 0x0d 0x12 cpse r0, r29 0x7c: 0x0e 0x12 cpse r0, r30 0x7e: 0x0f 0x12 cpse r0, r31 start .data:
6346ef995252b3d85b67d5f406e9eabacb186e2a
80e9b7e2c503a7a3287b23b40bfcace1181ebf7f
/Emotional-contagion-wave-1/FMOV.sce
7e7bf447dcee100112ffb24bec2a37371f5aa0a6
[ "MIT" ]
permissive
GNilsonne/Stimulus-presentation-code-Oxazepam-and-emotion
fc339e60846adad70ac27c97dd51023ada77b980
f53ff90084f192fdae47c7a909063e0ac38fec16
refs/heads/master
2020-05-20T05:22:49.851254
2015-07-21T14:54:33
2015-07-21T14:54:33
28,912,550
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,717
sce
FMOV.sce
#define your files scenario = "FMOV"; pcl_file = "FMOV.pcl"; #standard settings scenario_type = trials; response_logging = log_active; #log only if response is expected response_matching = simple_matching; active_buttons = 5; button_codes = 1,2,3,4,5; default_output_port = 1; #parallel port response_port_output = false; write_codes = true; pulse_width = 100; #duration of shock default_background_color = 0,0,0; default_font_size = 40; default_text_color = 255,255,255; default_font = "Tahoma"; ##################################################### begin; ##################################################### text { caption = "XXX"; font_size =20; preload = false; } gap; # RANGE OF RATING SCALE # array{ text {caption = "0";}; text {caption = "100";}; } number; # QUESTION ABOVE RATING SCALE # array{ text { caption = "Hur attraktiv upplevde du att personen var?";}; text { caption = "Hur attraktiv upplevde du att personen var?";}; } questions; # RATING SCALE # picture { box { height = 10; width = 200; color = 255,255,255; }; x = 0; y = 0; box { height = 50; width = 5;color = 255,255,255; }; x = 0; y = 0; text gap; x = -200; y = 0; text gap; x = 200; y = 0; text gap; x=0; y=150; }scale; #Stimuli picture {} default; picture {text {caption = "+"; font_size=100; font_color = 255,255,255,;}; x=0;y=0;} fixation_cross; picture {text {caption = "+"; font_size=100; font_color = 255,255,255,;}; x=0;y=0;} rest; #Videos array { video { filename = "2_happy.avi"; description = "vid1"; }vid1; video { filename = "3_happy.avi"; description = "vid2"; }; video { filename = "4_happy.avi"; description = "vid3"; }; video { filename = "5_happy.avi"; description = "vid4"; }; }videos_happy; array { video { filename = "2_angry.avi"; description = "vid5"; }; video { filename = "3_angry.avi"; description = "vid6"; }; video { filename = "4_angry.avi"; description = "vid7"; }; video { filename = "5_angry.avi"; description = "vid8"; }; }videos_angry; array { video { filename = "2_neutral.avi"; description = "vid9"; }; video { filename = "3_neutral.avi"; description = "vid10"; }; video { filename = "4_neutral.avi"; description = "vid11"; }; video { filename = "5_neutral.avi"; description = "vid12"; }; }videos_neutral; #Trials trial { trial_duration = stimuli_length; trial_type = fixed; all_responses = true; stimulus_event{ video vid1; port_code = 2; } ev_vid; } tr_vid; #Rest trial trial { all_responses = false; trial_duration = stimuli_length; trial_type = fixed; stimulus_event{ picture fixation_cross; deltat = 0; duration = 2000; code="fixation_cross"; } ev_fixation_cross; } tr_rest;
7275bc017409eb12607e1c62dd2b8fedda8d5cef
93c7fb5ee09b14b93d6c6a5a99d15e57555802be
/pushswap42/scripts/docker_file/test_500/test12.tst
010c2e3d3b375d26d606c461b2e1f3823d7001ce
[]
no_license
ach5910/42PushSwap.com
b1cd724453b20296e39c18e5d576bdfb6290f7da
bfa2755c1cb84c7d72a4858c77193743a5583a1a
refs/heads/master
2020-04-05T12:35:36.043271
2017-07-26T06:33:40
2017-07-26T06:33:40
95,174,903
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,896
tst
test12.tst
14661 1371 15184 45640 35857 28813 43785 24347 48214 13059 9989 44636 9986 3140 34909 22898 2066 4333 38585 43254 41059 27113 37529 31731 49917 47273 1359 9368 46398 35854 24834 14680 40047 16513 24327 29457 21965 17405 18484 48618 44885 44710 44677 2576 7851 43615 36600 10339 6640 31231 44901 25808 25848 37547 37015 46399 12742 30539 4130 36642 43464 23274 46351 18784 45005 34738 21531 9467 17003 46018 45533 17790 41922 44360 46246 36297 21807 45815 24875 11892 26235 27665 38760 32257 47153 40442 42903 18384 25569 32730 41302 30140 15397 17800 33908 43778 32026 21452 9985 28051 3052 11291 7794 47877 30309 30981 7739 48854 46792 35656 21784 30514 25360 37014 18896 33688 42974 18750 23094 40012 48351 23425 48009 25557 6009 1553 4649 14605 40552 39111 26532 28547 33164 26207 21949 42889 16351 1810 27565 6253 47551 36752 26692 2354 38404 43094 39602 14037 9375 308 12001 46383 45769 3749 7969 41996 9110 15673 16535 40226 10042 299 24629 43497 2525 10503 28747 25384 25121 43406 49460 18611 7621 14844 41005 47633 12109 4195 33415 2624 43619 7397 33255 5894 4233 10384 32070 40197 47425 15729 27973 10515 12515 36538 37347 45601 17199 46593 12223 20335 37508 40799 4109 17449 15785 30512 4335 14679 39233 27268 45540 8974 26427 33615 46917 27930 11531 22491 40744 32454 22971 24585 2490 20113 29427 37456 47461 1889 44892 47400 32711 8388 44155 36009 15825 40706 18193 5080 8795 30625 6366 9045 17890 25978 41696 44338 1418 48747 25490 5768 34751 3416 36803 38025 14219 42489 18583 20354 18339 17537 49536 36055 929 9109 7730 49240 44737 430 14825 44132 42049 39403 47665 26261 15740 17123 43536 7827 48527 46764 47262 43207 25591 24330 8626 3113 30621 3546 46200 38446 37995 12206 25034 37992 35222 30490 5650 5111 33423 43448 3582 22923 4719 25242 10869 37362 34386 6047 17804 25545 20172 8417 23441 35472 3476 1770 47229 23329 43890 7692 27488 30954 49627 725 30224 37938 33007 40798 39344 28447 10942 31976 43714 10077 17918 36309 34624 18366 37828 31886 29837 36399 45595 11202 26164 1513 15264 14484 35241 32748 36310 17471 15438 46112 33114 46562 49397 20173 41077 19169 39075 8155 18047 36316 27213 27519 29273 375 26631 44704 39976 10531 16835 33489 32916 27723 24648 35578 49101 32920 47360 49866 41719 21375 11369 41387 25287 20274 40284 31217 16320 19856 26038 18918 48006 43558 24173 49249 32728 38459 15901 41586 36441 26297 9422 6109 10522 26409 48135 43014 28754 27804 34078 11882 1042 38157 30624 9873 1440 39283 28181 31839 14545 29579 4162 7890 35592 23336 48095 15959 17694 20833 17724 39616 16005 618 12550 576 40110 13221 7626 29969 30684 46074 44913 22986 31196 40893 29297 47019 45974 20033 29954 8008 23879 31571 26640 43623 3716 6099 8169 35338 28413 23352 47539 32014 46839 27124 25029 29062 3577 37283 35107 8842 95 34028 14536 24771 5420 11220 43523 38896 49915 40461 8720 44159 42208 22914 35395 9193 27956 9210 35556 44717 41015 25742 49 16993 49509 24711
dfe595ff5a5ffcba32c7a4f707e24b5d61bdd9fb
449d555969bfd7befe906877abab098c6e63a0e8
/1088/CH5/EX5.7/Example7.sce
cce0b8443e872fb5c4ec42bc464414bb90883849
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,150
sce
Example7.sce
clear flag=1 clc mode(-1) printf("Example 7 : Show the method of file handling using the od command \n") disp("****************************************************************") disp("Answer : ") disp("INSTRUCTIONS : ") printf("\nHere all instructions are preloaded in the form of a demo\nPRESS ENTER AFTER EACH COMMAND to see its RESULT\nPRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND\n") halt('.............Press [ENTER] to continue.....') halt("") clc printf("\tUNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)\n\n\n") printf("\n# Enter the name of the file which you want to access \n\n") nam=input('$ od ','s') printf("# This searches for a file named %s \n\n",nam) if ~isfile(nam) then flag=0 printf("\n%s : file not found \n",nam) printf("# Create a new file named %s?\n # y : Yes \n # n : No \n",nam) resp=input('','s') if resp=='y' then flag=1 printf("\n#***Enter the contents of the file %s*****\n# [Enter ^ in a newline to end and close the file]\n",nam) printf('\n\n$ cat > %s #to create a file named %s and fill its contents\n',nam,nam) fhdr=mopen(nam,'wt') i=1 while %t cont=input(string(i)+'. ','s') if (cont=='^') then break end mfprintf(fhdr,"%s\n",cont) i=i+1 end mclose(fhdr) end end if flag==1 then i=1 clc printf("\n $ od %s #to display %s in octal characters\n\n",nam,nam) printf("\n ===========> %s <============\n\n\n",nam) fhdr=mopen(nam,'rt') while %t [n,a]=mfscanf(fhdr,"%c") if meof(fhdr) then break end printf(" %o",ascii(a)) if ascii(a)==10 then printf("\n") end i=i+1 end mclose(fhdr) printf("\n\n%d characters present in the file.\n[hit ENTER to continue]\n",i) halt('') else printf("\n\n# file %s is not found and not created also\n",nam) end flag=flag+1 octs=blanks(0) if flag==2 then i=1 clc printf("\n $ od -bc %s #to display %s in octal characters\n\n",nam,nam) printf("\n ===========> %s <============\n\n\n",nam) fhdr=mopen(nam,'rt') while %t [n,a]=mfscanf(fhdr,"%c") if meof(fhdr) then break end printf(" %c ",a) octs=octs+string(dec2oct(ascii(a)))+' ' if ascii(a)==10 then printf("%s\n\n",octs) clear('octs') octs=blanks(0) end i=i+1 end mclose(fhdr) printf("\n\n%d characters present in the file.\n[hit ENTER to continue]\n",i) halt('') else printf("\n\n# file %s is not found and not created also\n",nam) end printf("\n\n\n$ exit #To exit the current simulation terminal and return to Scilab console\n\n") halt("........# (hit [ENTER] for result)") //clc() printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment') sleep(1000)
8cde4d6acbba16c7f7e8213155032b3338044496
449d555969bfd7befe906877abab098c6e63a0e8
/620/CH2/EX2.7/example2_7.sce
0b91f4a49de72668052a3847cd5d05aeaeaa696f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
285
sce
example2_7.sce
disp("Part a"); d=0.064*2.54/100; a=%pi*(d^2)/4; i=15; q=1.6*10^(-19); n=8.85*10^28; v=i/(a*q*n); disp("the drift velocity of an individual electron (in m/s) is"); disp(v); disp("Part b"); t=60; d=v*t*100/2.54; disp("the distance an electron moves (in inches) is"); disp(d);
d5912a64a8552c1617928e046dfbb23f302b64a9
449d555969bfd7befe906877abab098c6e63a0e8
/848/CH8/EX8.1/Example8_1.sce
8f27ab20c24c9f23355388ee621654589fa6b6db
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
405
sce
Example8_1.sce
//clear// //Caption:Program to calculate the Total Optical Power loss //Example8.1 //page 287 clear; clc; close; system_margin = 6; //in dB alpha = 3.5; //attenuation in dB/Km L =6; // Length of transmission path in Km lc = 1; //connector loss in dB PT = 2*lc+alpha*L+system_margin; disp(PT,'The total optical power loss in dB PT =') //Result //The total optical power loss in dB PT = 29.
5ebcf7d5215f8da56df7b41c0d35ab4a9befab37
e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4
/New LSTMAttn Model/.data/lemma-split/SURPRISE-LANGUAGES/Romance/xno.tst
3e7fb48b1f31375292a78fbda225ea2904bae9a2
[]
no_license
davidgu13/Lemma-vs-Form-Splits
c154f1c0c7b84ba5b325b17507012d41b9ad5cfe
3cce087f756420523f5a14234d02482452a7bfa5
refs/heads/master
2023-08-01T16:15:52.417307
2021-09-14T20:19:28
2021-09-14T20:19:28
395,023,433
3
0
null
null
null
null
UTF-8
Scilab
false
false
1,338
tst
xno.tst
adouochi V;PFV;IND;SG;1;PST adouochi V;IND;SG;2;PRS adouochi V;IPFV;SBJV;PL;3;PST;LGSPEC1 adouochi V;IND;SG;3;PRS adouochi V;PFV;IND;PL;1;PST adouochi V;SBJV;PL;1;PRS adouochi V;IMP;SG;2;POS adouochi V;IPFV;SBJV;PL;2;PST adouochi V;IND;PL;1;FUT adouochi V;COND;PL;3 adouochi V;PFV;IND;PL;2;PST adouochi V;IND;PL;1;PRS adouochi V;IMP;PL;1;NEG adouochi V;IPFV;IND;SG;2;PST adouochi V;COND;SG;2 adouochi V;IMP;PL;2;POS adouochi V;IPFV;IND;SG;1;PST adouochi V;IND;SG;1;FUT adouochi V;IPFV;SBJV;SG;2;PST adouochi V;NFIN adouochi V;SBJV;PL;2;PRS adouochi V;IPFV;SBJV;SG;1;PST adouochi V;COND;SG;3 adouochi V;IPFV;SBJV;SG;3;PST;LGSPEC2 adouochi V;SBJV;SG;2;PRS adouochi V;IPFV;IND;PL;1;PST adouochi V;PFV;IND;PL;3;PST adouochi V;SBJV;PL;3;PRS adouochi V;IND;SG;1;PRS adouochi V;IND;PL;2;PRS adouochi V;IPFV;SBJV;SG;3;PST;LGSPEC1 adouochi V;COND;SG;1 adouochi V;IPFV;SBJV;PL;1;PST adouochi V;SBJV;SG;3;PRS adouochi V;IND;PL;2;FUT adouochi V;IPFV;IND;PL;2;PST adouochi V;IND;PL;3;FUT adouochi V;SBJV;SG;1;PRS adouochi V;COND;PL;1 adouochi V;IND;SG;2;FUT adouochi V;IMP;SG;2;NEG adouochi V;PFV;IND;SG;2;PST adouochi V;IND;PL;3;PRS adouochi V;IPFV;IND;SG;3;PST adouochi V;IND;SG;3;FUT adouochi V;IMP;PL;2;NEG adouochi V;PFV;IND;SG;3;PST adouochi V;IPFV;SBJV;PL;3;PST;LGSPEC2 adouochi V;IPFV;IND;PL;3;PST adouochi V;IMP;PL;1;POS adouochi V;COND;PL;2
7256cca5fc7151d13e25a5baf5d189f1ffddf2ff
0cb85cd0c88a9b9f0cca4472742c2bf9febef2d8
/klava/kernel/ntreelib/tests/002_join.tst
1cbe2a11caefbbd4fc691840dc76013db98ee237
[]
no_license
seth1002/antivirus-1
9dfbadc68e16e51f141ac8b3bb283c1d25792572
3752a3b20e1a8390f0889f6192ee6b851e99e8a4
refs/heads/master
2020-07-15T00:30:19.131934
2016-07-21T13:59:11
2016-07-21T13:59:11
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,456
tst
002_join.tst
# test: long (hashed) nodes # create "test.td" autocheck on clear printf test0.tmp norm # 001 ------------------ add 1 "'long signature must be folded to hashed node'" printf test1.tmp norm printf test2.tmp norm compare 002_join_001.txt norm del "'long signature must be folded to hashed node'" compare test0.tmp norm # 002 ------------------ add 1 "'0123456789ABCDEF'" printf test1.tmp norm printf test2.tmp norm compare 002_join_002.txt norm del "'0123456789ABCDEF'" compare test0.tmp norm # 003 ------------------ add 1 "'0123456789ABCDEF0'" printf test1.tmp norm printf test2.tmp norm compare 002_join_003.txt norm del "'0123456789ABCDEF0'" compare test0.tmp norm # 004 ------------------ # just below hashed threshold (should remain joined) add 1 "'0123456789ABCDEF0123456'" printf test1.tmp norm printf test2.tmp norm compare 002_join_004.txt norm del "'0123456789ABCDEF0123456'" compare test0.tmp norm # 005 ------------------ # just above hashed threshold (should become hashed) add 1 "'0123456789ABCDEF01234567'" printf test1.tmp norm compare 002_join_005.txt norm del "'0123456789ABCDEF01234567'" compare test0.tmp norm # 006 ------------------ # extended above hashed threshold add 1 "'0123456789ABCDEF0123456'" printf test1.tmp norm compare 002_join_004.txt norm add 2 "'0123456789ABCDEF01234567890123'" compare 002_join_006.txt norm del "'0123456789ABCDEF0123456'" del "'0123456789ABCDEF01234567890123'" compare test0.tmp norm # 007 ------------------ # short hashed node - stored as joined add 1 "'0123456789ABCDEF01234567890123'" printf test1.tmp norm add 2 "'0123456789ABCDEF01234567890123456789'" compare 002_join_007.txt norm del "'0123456789ABCDEF01234567890123456789'" del "'0123456789ABCDEF01234567890123'" compare test0.tmp norm # 008 ------------------ # long hashed nodes - converting to/from joined add 1 "'0123456789ABCDEF01234567890123'" printf test1.tmp norm add 2 "'0123456789ABCDEF0123456789012345678901234567890123456789'" printf test2.tmp norm add 3 "'0123456789ABCDEF01234567890123456789'" printf test3.tmp norm add 4 "'0123456789ABCDEF0123456789012345678901234567890'" printf test4.tmp norm compare 002_join_008a.txt norm del "'0123456789ABCDEF01234567890123'" printf test5.tmp norm del "'0123456789ABCDEF01234567890123456789'" printf test6.tmp norm del "'0123456789ABCDEF0123456789012345678901234567890'" compare 002_join_008b.txt norm del "'0123456789ABCDEF0123456789012345678901234567890123456789'" compare test0.tmp norm # 009 ------------------ # splitting node in two short, then merge into hashed add 1 "'0123456789ABCDEF0123456789012345678901234567890123456789'" printf test1.tmp norm add 2 "'0123456789ABCDEF01234567890123456789'" printf test2.tmp norm add 3 "'0123456789ABCDEF012345678901234567890123'" printf test3.tmp norm add 4 "'0123456789ABCDEF012345678901234567890123456'" printf test4.tmp norm compare 002_join_009a.txt norm del "'0123456789ABCDEF012345678901234567890123'" printf test5.tmp norm compare 002_join_009b.txt norm del "'0123456789ABCDEF012345678901234567890123456'" printf test6.tmp norm compare 002_join_009c.txt norm del "'0123456789ABCDEF01234567890123456789'" compare test1.tmp norm del "'0123456789ABCDEF0123456789012345678901234567890123456789'" compare test0.tmp norm
6e5a9149b377fd4be84da1fed1f71c822df2d876
449d555969bfd7befe906877abab098c6e63a0e8
/3375/CH7/EX7.4/Ex7_4.sce
a7cde5808382ba01af92ae2df6dfbdcf9aaa5dd5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
769
sce
Ex7_4.sce
//Example 7.4 //Developed flow of water //Page No. 431 clc;clear;close; D=6; //in mm D=D/100; //conversion to m R=D/2; Q=5*10^-3; //conversion to m^3/s L=10; //in m n=7; //no unit rho=1000; //in kg/m^3 nu=1.02*10^-6; //in m^2/s U_av=Q/(%pi*D^2/4); Re=U_av*D/nu; f=0.3164/Re^(1/4); Pg=(f*rho*U_av^2)/(2*D); //Pressure Gradient Pd=Pg*L; //Pressure Drop over 10m Tw=Pg*R/2; u_s=U_av*(n+1)*(2*n+1)/(2*n^2); ds=(Tw*R^(1/7)/(nu*u_s*1000))^(-7/6); //Thickness of laminar sublayer printf('\nFriction Factor = %f \nPressure Drop over 10m = %f N/m^2\nThickness of laminar sublayer = %f m',f,Pd,ds); printf('\n\n\nNote: Slight computational errors in book')
d6610612819764383ea238dee253431b6d9fa0c8
449d555969bfd7befe906877abab098c6e63a0e8
/226/CH19/EX19.27/example27_sce.sce
8f3aad99522ee266f95064b3ab727daa1ca98dd8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
291
sce
example27_sce.sce
//chapter 19 //example 19.27 //page 883 printf("\n") printf("given") Rw=.1;f=1*10^6;Lp=19.5*10^-6;Rl=1.2*10^3;Vcc=30;Idc=12.3*10^-3;Vce=0.5; Vp=Vcc-Vce; Po=((Vp)^2) /(2*Rl); QL=(2*3.14*f*Lp)/Rw Qp=Rl/(2*3.14*f*Lp) B=f/Qp Il=(.707*Vp)/(2*3.14*f*Lp) Pl=(Il)^2 *Rw Pi=(Vcc*Idc)+Pl n=(Po/Pi)*100
35df12037895fa4b78a4828ffd80036c15cbd605
449d555969bfd7befe906877abab098c6e63a0e8
/767/CH7/EX7.6.2/Ch07Exa7_6_2.sci
44c5b8bda04481f6e05c0e02a0534e24ed0aa74b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
551
sci
Ch07Exa7_6_2.sci
// Scilab code Exa7.6.2 : To calculate the amplitude of output voltage pulse for NaI(Tl) :P.no. 314 (2011) e = 1.6e-019; // Charge of an electron, C n = 4.2e+08; // Number of photoelectrons C = 200e-012; // Capacitance, F A = n*e/C; // Amplitude of output voltage pulse, V printf("\n Amplitude of output voltage pulse : %4.2f V ",A) // Result // Amplitude of output voltage pulse : 0.34 V
0edbbbaf516be86fd8807a36ba3a8ee512f55a7b
e2ae697563b1b764d79ea1933b555ab0d5e3849c
/macros/LinearSimulate.sci
e77658715f4c9c2e9cf0c5695817b88e4711bb8b
[]
no_license
gq-liu/IPDesignLab
c49b760740f47ec636232a6947aecb3c0626518a
b2f9a9eecad6616c99a2ec20fcceb14fb3ed0c3f
refs/heads/master
2022-01-18T13:30:55.972779
2019-05-06T17:23:12
2019-05-06T17:23:12
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,748
sci
LinearSimulate.sci
function [y,x]=LinearSimulate(u,dt,sl,x0,tol) //Syntax: // [y [,x]]=csim(u,dt,sl,[x0]) // simulation of the controlled linear system sl. // sl is assumed to be a continuous-time system. // u is the control and x0 the initial state. // //u can be: // - a function // [inputs]=u(t) // - a list // list(ut,parameter1,....,parametern) such that // inputs=ut(t,parameter1,....,parametern) // - the character string 'impuls' for impulse response calculation // (here sl is assumed SISO without direct feedthrough and x0=0) // - the character string 'step' for step response calculation // (here sl is assumed SISO without direct feedthrough and x0=0) //dt is a vector of instants with dt(1) = initial time // that is: x0=x // dt(1) // //y matrix such that: // y=[y y ... y ] // dt(1) dt(2) dt(n) //x matrix such that: // x=[x x ... x ] // dt(1) dt(2) dt(n) // //See also: // dsimul flts ltitr rtitr ode impl //! // Copyright INRIA [lhs,rhs]=argn(0) // if rhs<3 then error(39),end if type(sl)<>16 then error(56,1),end flag=sl(1) select flag(1) case 'lss' then , case 'r' then sl=tf2ss(sl) else error(97,1), end; if sl(7)<>'c' then warning('csim: time domain is assumed continuous'),end // [a,b,c,d]=sl(2:5); if type(d)==2&degree(d)>0 then d=coeff(d,0);warning('D set to constant');end [ma,mb]=size(b); // imp=0;text='if t==0 then y=0, else y=1,end' // select type(u) case 10 then // if mb<>1 then error(95,1);end; if part(u,1)=='i' then imp=1; if norm(d,1)<>0 then warning('direct feedthrough (d) <> 0;set to zero'); d=0*d; end; end; deff('[y]=u(t)',text); case 11,comp(u) case 13, case 1 then [mbu,ntu]=size(u); if mbu<>mb | ntu<>size(dt,'*') then error('wrong size of u'), end case 15 then uu=u(1), if type(uu)==11 then comp(uu), u(1)=uu, end else error(44,2) end; // if rhs==3 then x0=sl(6),end if imp==1 then x0=0*x0,end nt=size(dt,'*');x=0*ones(ma,nt) [a,v]=balanc(a); //apply transformation u without matrix inversion [k,l]=find(v<>0) //get the permutation //apply right transformation v=v(k,l);c=c(:,k)*v; //apply left transformation v=diag(1 ./diag(v));b=v*b(k,:);x0=v*x0(k) [a,v,bs]=bdiag(a,1);b=v\b;c=c*v;x0=v\x0; // if type(u)==1 then ut=u; if min(size(ut))==1 then ut=matrix(ut,1,-1),end deff('[y]=u(t)',['ind=find(dt<=t);nn=ind($)' 'if (t==dt(nn)|nn==nt) then ' ' y=ut(:,nn)' 'else ' ' y=ut(:,nn)+(t-dt(nn))/(dt(nn+1)-dt(nn))*(ut(:,nn+1)-ut(:,nn))' 'end']); deff('[ydot]=%sim2(%tt,%y)','ydot=ak*%y+bk*u(%tt)'); elseif type(u)<>15 then deff('[ydot]=%sim2(%tt,%y)','ydot=ak*%y+bk*u(%tt)'); ut=ones(mb,nt);for k=1:nt, ut(:,k)=u(dt(k)),end else %sim2=u tx=' ';for l=2:size(u), tx=tx+',%'+string(l-1);end; deff('[ydot]=sk(%tt,%y,u'+tx+')','ydot=ak*%y+bk*u(%tt'+tx+')'); %sim2(0)=sk;u=u(1) deff('[ut]=uu(t)',... ['['+part(tx,3:length(tx))+']=%sim2(3:'+string(size(%sim2))+')'; 'ut=ones(mb,nt);for k=1:nt, ut(:,k)=u(t(k)'+tx+'),end']) ut=uu(dt); end; //simulation k=1; for n=bs', kk=k:k+n-1 ak=a(kk,kk) bk=b(kk,:) nrmu=max([norm(bk*ut,1),norm(x0(kk))]) if nrmu > 0 then if rhs<5 then atol=1.d-10*nrmu;rtol=atol/100 else atol=tol(1);rtol=tol(2) end x(kk,:)=ode('rkf',x0(kk),dt(1),dt,rtol,atol,%sim2) if imp==1 then x(kk,:)=ak*x(kk,:)+bk*ut,end end; k=k+n end; if imp==0 then y=c*x+d*ut,else y=c*x,end if lhs==2 then x=v*x,end endfunction
005bed3db6b535facc1567745fa59712a2baa6fa
31e4300165c63baae330532146643d9cf88ace38
/scilab/promoter_search/helper_functions.sce
956cd1995c772451442b660710b02330d8f15149
[]
no_license
Laknath1996/Genomic-Signal-Processing
8556ba2bced9a512cfdd338bfd30d6ddb85b45a1
5c9a0d75f7712ecae3fdd4d0a85df719e5774548
refs/heads/master
2020-05-23T09:04:38.309925
2019-06-22T16:22:59
2019-06-22T16:22:59
186,701,178
0
0
null
null
null
null
UTF-8
Scilab
false
false
24,255
sce
helper_functions.sce
// BM4321 Genomic Signal Processing // // Operations // 1. Reading of a FASTA file // 2. Extraction of coding and non-coding DNA // 3. Reading of a GenBank Protein Table // 4. Basic analysis of a coding and non-coding region // // Objectives // 1. Familiarization with the coding regions of different organisms (Archaea, Bacteria, Eukaryota etc.) // 2. Preliminary investigation of gene promoter regions // // Upeka Premaratne, ENTC, University of Moratuwa (upeka@uom.lk) 2016/12/05 // Free to use, distribute and modify for educational purposes with attribution function result = remove_eols(text_in) // Remove EOLs of fasta file keys = find(text_in==10); if (isempty(keys)) then result = text_in; else text_out = text_in(1:(keys(1)-1)); k_n = length(keys)-1; for k=1:k_n text_i = text_in((keys(k)+1):(keys(k+1)-1)); text_out = [text_out, text_i]; end result = [text_out,text_in((keys(k_n+1)+1):length(text_in))]; end endfunction function comp=get_comp(base) if (base==65) then comp = 84; elseif (base==67) then comp = 71; elseif (base==71) then comp = 67; elseif (base==84) then comp = 65; end endfunction function inc=base_inc(base,c_val) if (base==65) then inc=c_val+[1 0 0 0]'; elseif (base==67) then inc=c_val+[0 1 0 0]'; elseif (base==71) then inc=c_val+[0 0 1 0]'; elseif (base==84) then inc=c_val+[0 0 0 1]'; end endfunction function gen_code=get_fasta_at(file_name,g_pos,g_end,strand) //Estimate the necessary overread to compensate for the EOL charactors of FASTA files g_len = g_end-g_pos; if g_len>0 then n_extra = floor(g_len/70); n_offset = floor(g_pos/70); file_details = fileinfo(file_name); file_len = file_details(1); fd = mopen(file_name,'rb'); mseek(0,fd); header = mgetl(fd,1); g_start = length(header); mseek(g_start+g_pos+n_offset,fd); raw_code = mget(g_len+n_extra,'c',fd); mclose(fd); code_i = remove_eols(raw_code); if strand==1 then gen_code = code_i; else //get complementary strand len = length(code_i); code_c = []; for k=1:len code_c = [code_c,get_comp(code_i(k))]; gen_code = code_c; end end else gen_code = []; end endfunction function [validity] = verify(seq, que, thresh_len_down, y_len) // check whether the whole query is in the sequence idx = find(ascii(que)==ascii('W')); if length(idx) < y_len then validity = 0; elseif length(idx(idx > length(seq)-thresh_len_down)) ~= 0 then validity = 0; elseif length(seq(idx)(seq(idx)==ascii('C') | seq(idx)==ascii('G'))) ~= 0 then validity = 0; else validity = 1; end endfunction function dna_seq = get_dna_seq(n_key, fasta_file, gp, gn, thresh_up, thresh_down, st_genes) if n_key > st_genes then // if gn(n_key-st_genes,2)-thresh_up >= 1 then dna_seq = get_fasta_at(fasta_file,gn(n_key-st_genes,2)-thresh_down+1,gn(n_key-st_genes,2)+thresh_up+3,0); dna_seq = dna_seq(1:thresh_up+thresh_down); dna_seq = flipdim(dna_seq,2); // end else // if gp(n_key,1)-thresh_up >= 1 then dna_seq = get_fasta_at(fasta_file,gp(n_key,1)-thresh_up,gp(n_key,1)+thresh_down+3,1); dna_seq = dna_seq(1:thresh_up+thresh_down); // end end endfunction function N = get_consecutive_Ws(ay, d_len, thresh_down) idx = find(ascii(ay) == ascii('W'))(1); N = 1; while (1) idx = idx + 1; if dna_seq(idx) == ascii('W') & idx <= d_len - thresh_down then //disregard Ws beyond d_len-thresh_dow N = N + 1; else break; end end endfunction function result=compare_oligo(oligo_a,oligo_b) if (length(oligo_a)~=length(oligo_b)) then result = -1; else s = sum(abs(oligo_a-oligo_b)) if (s==0) then result = 1; else result = 0; end end endfunction function [gene_array_p,gene_array_n,noncoding_array_p,noncoding_array_n]=get_protein_pos_array(filename) // Get the coding and non-coding DNA positions from a protein table fd = mopen(filename,'r'); data = mgetl(fd,1); ga_p = []; ga_n = []; nca_p = []; nca_n = []; nc_prev_p = 0; nc_prev_n = 0; while (~meof(fd)) if (data == []) then break; end data = mgetl(fd,1); //disp(type(data)); keys = strindex(data,ascii(9)); p_data = strsplit(data,keys); pg_start = strtod(p_data(3)); pg_stop = strtod(p_data(4)); //disp(strcmp(p_data(5),'-')); //disp(strcmp(p_data(5),'+')); if (~isempty(p_data(5))) then if (strcmp(p_data(5),'-')==1) then ga_n = [ga_n; pg_start,pg_stop]; nca_n = [nca_n; nc_prev_n, (pg_start-1)]; nc_prev_n = pg_stop+1; else ga_p = [ga_p; pg_start,pg_stop]; nca_p = [nca_p; nc_prev_p, (pg_start-1)]; nc_prev_p = pg_stop+1; end end end mclose(fd); gene_array_p=ga_p; noncoding_array_p=nca_p; gene_array_n=ga_n; noncoding_array_n=nca_n; endfunction function save_fasta(filename,header_line,gen_code) // Save results into a FASTA file fd = mopen(filename,'wc'); mputl(header_line,fd); gen_len = length(gen_code); for key=1:gen_len mput(gen_code(key),'c'); if pmodulo(key,70)==0 then mputl('',fd); end end mclose(fd) endfunction // BM4321 Genomic Signal Processing // // Standalone function file for alignment // // Operations // 1. Global Search // 2. Local Search // 3. Semi-Global Search // // Objectives // 1. Familiarization with basic sequence alignment algorithms // // Upeka Premaratne, ENTC, University of Moratuwa (upeka@uom.lk) 2016/12/05 // Free to use, distribute and modify for educational purposes with attribution function g=gap_penalty(k) // Gap penalty function g_alpha = 0; g_beta = 2; g = -(g_alpha+g_beta*k); endfunction function result=prom_base(base_x,base_y,score_m,score_mm) // Match mismatch score // score_m - match score // score_mm - mismatch score if (base_x==base_y) then result = score_m; else result = score_mm; end endfunction function result=comp_base(base_x,base_y,score_m,score_mm) if (base_y == base_x) then result = score_m; else result = score_mm; end endfunction function matrix_result = scorematrix_global(seq_x,seq_y,score_m,score_mm,gap_penalty) // Function to perform global search len_x = length(seq_x); len_y = length(seq_y); basic_mat = zeros(len_x+1,len_y+1); //Initialize with gap penalties for k_x=1:(len_x+1) basic_mat(k_x,1)=gap_penalty(k_x-1); end for k_y=1:(len_y+1) basic_mat(1,k_y)=gap_penalty(k_y-1); end //Recurrance relation for k_x=2:(len_x+1) for k_y=2:(len_y+1) score_match = basic_mat(k_x-1,k_y-1)+comp_base(seq_x(k_x-1),seq_y(k_y-1),score_m,score_mm); score_gap_x = basic_mat(k_x,k_y-1)+gap_penalty(1); score_gap_y = basic_mat(k_x-1,k_y)+gap_penalty(1); basic_mat(k_x,k_y)=max([score_match score_gap_x score_gap_y]); end end matrix_result = basic_mat; endfunction function [align_x,align_y] = traceback_global(seq_x,seq_y,score_m,score_mm,gap_penalty) // Traceback for global alignment score_matrix = scorematrix_global(seq_x,seq_y,score_m,score_mm,gap_penalty); len_x = length(seq_x); len_y = length(seq_y); base_x = seq_x; base_y = seq_y; out_x = []; out_y = []; k_x = len_x; k_y = len_y; // Perform the traceback while (k_x>0&k_y>0) then k_gx = score_matrix(k_x,k_y+1); k_gy = score_matrix(k_x+1,k_y); k_diag = score_matrix(k_x,k_y); k_c = score_matrix(k_x+1,k_y+1); if k_c==k_diag+comp_base(seq_x(k_x),seq_y(k_y),score_m,score_mm) then out_x = [out_x,base_x(k_x)]; out_y = [out_y,base_y(k_y)]; k_x=k_x-1; k_y=k_y-1; elseif k_c==k_gx+gap_penalty(1) then out_x = [out_x,base_x(k_x)]; out_y = [out_y,45]; k_x=k_x-1; elseif k_c==k_gy+gap_penalty(1) then out_x = [out_x,45]; out_y = [out_y,base_y(k_y)]; k_y=k_y-1; end end // Write the output if (k_x>0&k_y==0) then pre_x = ascii(base_x(1:k_x)); pre_y = ascii(45*ones(1,k_x)); align_x = strcat([pre_x,strrev(ascii(out_x))]); align_y = strcat([pre_y,strrev(ascii(out_y))]); elseif (k_x==0&k_y>0) then pre_y = ascii(base_y(1:k_y)); pre_x = ascii(45*ones(1,k_y)); align_x = strcat([pre_x,strrev(ascii(out_x))]); align_y = strcat([pre_y,strrev(ascii(out_y))]); else align_x = strrev(ascii(out_x)); align_y = strrev(ascii(out_y)); end endfunction function matrix_result = scorematrix_local(seq_x,seq_y,score_m,score_mm,gap_penalty) //Function to perform local search len_x = length(seq_x); len_y = length(seq_y); basic_mat = zeros(len_x+1,len_y+1); //No need to initialize because gap penalty will always be negative //Recurrance relation for k_x=2:(len_x+1) for k_y=2:(len_y+1) score_match = basic_mat(k_x-1,k_y-1)+comp_base(seq_x(k_x-1),seq_y(k_y-1),score_m,score_mm); score_gap_x = basic_mat(k_x,k_y-1)+gap_penalty(1); score_gap_y = basic_mat(k_x-1,k_y)+gap_penalty(1); basic_mat(k_x,k_y)=max([score_match score_gap_x score_gap_y 0]); // Add the zero to global search end end matrix_result = basic_mat; endfunction function [align_x,align_y] = traceback_local(seq_x,seq_y,score_m,score_mm,gap_penalty) // Traceback for local alignment score_matrix = scorematrix_local(seq_x,seq_y,score_m,score_mm,gap_penalty); //disp(score_matrix'); len_x = length(seq_x); len_y = length(seq_y); base_x = seq_x; base_y = seq_y; out_x = []; out_y = []; [m,n]=max(score_matrix); k_x = n(1,1)-1; k_y = n(1,2)-1; post_x = ascii(seq_x((k_x+1):len_x)); post_y = ascii(seq_y((k_y+1):len_y)); // Perform the traceback while (k_x>0&k_y>0) then k_gx = score_matrix(k_x,k_y+1); k_gy = score_matrix(k_x+1,k_y); k_diag = score_matrix(k_x,k_y); k_c = score_matrix(k_x+1,k_y+1); if k_c==k_diag+comp_base(seq_x(k_x),seq_y(k_y),score_m,score_mm) then out_x = [out_x,base_x(k_x)]; out_y = [out_y,base_y(k_y)]; k_x=k_x-1; k_y=k_y-1; elseif k_c==k_gx+gap_penalty(1) then out_x = [out_x,base_x(k_x)]; out_y = [out_y,45]; k_x=k_x-1; elseif k_c==k_gy+gap_penalty(1) then out_x = [out_x,45]; out_y = [out_y,base_y(k_y)]; k_y=k_y-1; elseif k_c==0; break; end end // Write the output if (k_x>0&k_y==0) then pre_x = ascii(base_x(1:k_x)); pre_y = ascii(45*ones(1,k_x)); align_x = strcat([pre_x,strrev(ascii(out_x)),post_x]); align_y = strcat([pre_y,strrev(ascii(out_y)),post_y]); elseif (k_x==0&k_y>0) then pre_y = ascii(base_y(1:k_y)); pre_x = ascii(45*ones(1,k_y)); align_x = strcat([pre_x,strrev(ascii(out_x)),post_x]); align_y = strcat([pre_y,strrev(ascii(out_y)),post_y]); else align_x = strrev(ascii(out_x)); align_y = strrev(ascii(out_y)); end endfunction function matrix_result = scorematrix_prom(seq_x,seq_y,score_m,score_mm,gap_penalty) //Function to perform local search len_x = length(seq_x); len_y = length(seq_y); basic_mat = zeros(len_x+1,len_y+1); //No need to initialize because gap penalty will always be negative //Recurrance relation for k_x=2:(len_x+1) for k_y=2:(len_y+1) score_match = basic_mat(k_x-1,k_y-1)+prom_base(seq_x(k_x-1),seq_y(k_y-1),score_m,score_mm); score_gap_x = basic_mat(k_x,k_y-1)+gap_penalty(1); score_gap_y = basic_mat(k_x-1,k_y)+gap_penalty(1); basic_mat(k_x,k_y)=max([score_match score_gap_x score_gap_y 0]); // Add the zero to global search end end matrix_result = basic_mat; endfunction function [align_x,align_y] = traceback_prom(seq_x,seq_y,score_m,score_mm,gap_penalty) // Traceback for local alignment score_matrix = scorematrix_prom(seq_x,seq_y,score_m,score_mm,gap_penalty); disp(score_matrix'); len_x = length(seq_x); len_y = length(seq_y); base_x = seq_x; base_y = seq_y; out_x = []; out_y = []; [m,n]=max(score_matrix); k_x = n(1,1)-1; k_y = n(1,2)-1; post_x = ascii(seq_x((k_x+1):len_x)); post_y = ascii(seq_y((k_y+1):len_y)); // Perform the traceback while (k_x>0&k_y>0) then k_gx = score_matrix(k_x,k_y+1); k_gy = score_matrix(k_x+1,k_y); k_diag = score_matrix(k_x,k_y); k_c = score_matrix(k_x+1,k_y+1); if k_c==k_diag+prom_base(seq_x(k_x),seq_y(k_y),score_m,score_mm) then out_x = [out_x,base_x(k_x)]; out_y = [out_y,base_y(k_y)]; k_x=k_x-1; k_y=k_y-1; elseif k_c==k_gx+gap_penalty(1) then out_x = [out_x,base_x(k_x)]; out_y = [out_y,45]; k_x=k_x-1; elseif k_c==k_gy+gap_penalty(1) then out_x = [out_x,45]; out_y = [out_y,base_y(k_y)]; k_y=k_y-1; elseif k_c==0; break; end end // Write the output if (k_x>0&k_y==0) then pre_x = ascii(base_x(1:k_x)); pre_y = ascii(45*ones(1,k_x)); align_x = strcat([pre_x,strrev(ascii(out_x)),post_x]); align_y = strcat([pre_y,strrev(ascii(out_y)),post_y]); elseif (k_x==0&k_y>0) then pre_y = ascii(base_y(1:k_y)); pre_x = ascii(45*ones(1,k_y)); align_x = strcat([pre_x,strrev(ascii(out_x)),post_x]); align_y = strcat([pre_y,strrev(ascii(out_y)),post_y]); else align_x = strrev(ascii(out_x)); align_y = strrev(ascii(out_y)); end endfunction function matrix_result = scorematrix_semiglobal(seq_x,seq_y,score_m,score_mm,gap_penalty) //Function to perform local search len_x = length(seq_x); len_y = length(seq_y); basic_mat = zeros(len_x+1,len_y+1); //No need to initialize because gap penalty will always be negative //Recurrance relation for k_x=2:(len_x+1) for k_y=2:(len_y+1) score_match = basic_mat(k_x-1,k_y-1)+comp_base(seq_x(k_x-1),seq_y(k_y-1),score_m,score_mm); score_gap_x = basic_mat(k_x,k_y-1)+gap_penalty(1); score_gap_y = basic_mat(k_x-1,k_y)+gap_penalty(1); basic_mat(k_x,k_y)=max([score_match score_gap_x score_gap_y]); // Same as global search end end matrix_result = basic_mat; endfunction function [align_x,align_y] = traceback_semiglobal(seq_x,seq_y,score_m,score_mm,gap_penalty) // Traceback for semi-global alignment // Assuming x is longer than y to make code simpler score_matrix = scorematrix_semiglobal(seq_x,seq_y,score_m,score_mm,gap_penalty); len_x = length(seq_x); len_y = length(seq_y); base_x = seq_x; base_y = seq_y; out_x = []; out_y = []; k_x = len_x; [n_max,k_y] = max(score_matrix(len_x+1,:)); k_y=k_y-1; post_x = ascii(seq_x((k_x+1):len_x)); post_y = ascii(seq_y((k_y+1):len_y)); // Perform the traceback while (k_x>0&k_y>0) then k_gx = score_matrix(k_x,k_y+1); k_gy = score_matrix(k_x+1,k_y); k_diag = score_matrix(k_x,k_y); k_c = score_matrix(k_x+1,k_y+1); if k_c==k_diag+comp_base(seq_x(k_x),seq_y(k_y),score_m,score_mm) then out_x = [out_x,base_x(k_x)]; out_y = [out_y,base_y(k_y)]; k_x=k_x-1; k_y=k_y-1; elseif k_c==k_gx+gap_penalty(1) then out_x = [out_x,base_x(k_x)]; out_y = [out_y,45]; k_x=k_x-1; elseif k_c==k_gy+gap_penalty(1) then out_x = [out_x,45]; out_y = [out_y,base_y(k_y)]; k_y=k_y-1; end end // Write the output if (k_x>0&k_y==0) then pre_x = ascii(base_x(1:k_x)); pre_y = ascii(45*ones(1,k_x)); align_x = strcat([pre_x,strrev(ascii(out_x)),post_x]); align_y = strcat([pre_y,strrev(ascii(out_y)),post_y]); elseif (k_x==0&k_y>0) then pre_y = ascii(base_y(1:k_y)); pre_x = ascii(45*ones(1,k_y)); align_x = strcat([pre_x,strrev(ascii(out_x)),post_x]); align_y = strcat([pre_y,strrev(ascii(out_y)),post_y]); else align_x = strrev(ascii(out_x)); align_y = strrev(ascii(out_y)); end endfunction // BM4321 Genomic Signal Processing // // Operations // 1. Position probability matrix // 2. Statitical sequence alignment // 3. Calculation of ppm entropy // // Objectives // 1. Introduction to statistical sequence alignment // // Upeka Premaratne, ENTC, University of Moratuwa (upeka@uom.lk) 2019/04/03 // Free to use, distribute and modify for educational purposes with attribution function bk=get_amino_key(amino) // Keys of all amino acids and stop codons if (amino==ascii('A')) then bk=1; // L-Alanine (Ala/A) elseif (amino==ascii('C')) then bk=2; // L-Cysteine (Cys/C) elseif (amino==ascii('D')) then bk=3; // L-Aspartic acid (Asp/D) elseif (amino==ascii('E')) then bk=4; // L-Glutamic acid (Glu/E) elseif (amino==ascii('F')) then bk=5; // L-Phenylalanine (Phe/F) elseif (amino==ascii('G')) then bk=6; // Glycine (Gly/G) elseif (amino==ascii('H')) then bk=7; // L-Histidine (His/H) elseif (amino==ascii('I')) then bk=8; // L-Isoleucine (Ile/I) elseif (amino==ascii('K')) then bk=9; // L-Lysine (Lys/K) elseif (amino==ascii('L')) then bk=10; // L-Leucine (Leu/L) elseif (amino==ascii('M')) then bk=11; // L-Methionine (Met/M) elseif (amino==ascii('N')) then bk=12; // L-Asparagine (Asn/ N) elseif (amino==ascii('P')) then bk=13; // L-Proline (Pro/P) elseif (amino==ascii('Q')) then bk=14; // L-Glutamine (Gln/Q) elseif (amino==ascii('R')) then bk=15; // L-Arginine (Arg/R) elseif (amino==ascii('S')) then bk=16; // L-Serine (Ser/S) elseif (amino==ascii('T')) then bk=17; // L-Threonine (Thr/T) elseif (amino==ascii('V')) then bk=18; // L-Valine (Val/V) elseif (amino==ascii('W')) then bk=19; // L-Tryptophan (Trp/W)' elseif (amino==ascii('Y')) then bk=20; // L-Tyrosine (Tyr/Y) elseif (amino==ascii('+')|amino==ascii('U')|amino==ascii('O')) then bk=21; //Stop codons end endfunction function bk=get_base_key(base) // Base key as A=1, C=2, G=3, T=4 (alphabetic) if (base==65) then bk=1; elseif (base==67) then bk=2; elseif (base==71) then bk=3; elseif (base==84) then bk=4; // For multiple possibilities assign one for consistency // Evenly distributed as much as possible A=3,C=3, G=3, T=2 elseif (base==ascii('R')) then bk=1; // Assign A (A or G) elseif (base==ascii('Y')) then bk=2; // Assign C (C or T) elseif (base==ascii('S')) then bk=3; // Assign G (C or G) elseif (base==ascii('W')) then bk=4; // Assign T (A or T) elseif (base==ascii('K')) then bk=3; // Assign G (G or T) elseif (base==ascii('M')) then bk=1; // Assign A (A or C) elseif (base==ascii('B')) then bk=2; // Assign C (C or G or T) elseif (base==ascii('D')) then bk=3; // Assign G (A or G or T) elseif (base==ascii('H')) then bk=4; // Assign T (A or C or T) elseif (base==ascii('V')) then bk=1; // Assign A (A or C or G) elseif (base==ascii('N')) then bk=2; // Assign C (any base) end endfunction function bk=get_ct_key(base) // Base key according to the codon table T=1, C=2, A=3, G=4 if (base==65) then bk=3; elseif (base==67) then bk=2; elseif (base==71) then bk=4; elseif (base==84) then bk=1; elseif (base==ascii('Y')|base==ascii('N')) then bk=2; elseif (base==ascii('R')|base==ascii('W')) then bk=3; // For multiple possibilities assign one for consistency // Evenly distributed as much as possible A=3,C=3, G=3, T=2 elseif (base==ascii('R')) then bk=3; // Assign A (A or G) elseif (base==ascii('Y')) then bk=2; // Assign C (C or T) elseif (base==ascii('S')) then bk=4; // Assign G (C or G) elseif (base==ascii('W')) then bk=1; // Assign T (A or T) elseif (base==ascii('K')) then bk=4; // Assign G (G or T) elseif (base==ascii('M')) then bk=3; // Assign A (A or C) elseif (base==ascii('B')) then bk=2; // Assign C (C or G or T) elseif (base==ascii('D')) then bk=3; // Assign G (A or G or T) elseif (base==ascii('H')) then bk=1; // Assign T (A or C or T) elseif (base==ascii('V')) then bk=3; // Assign A (A or C or G) elseif (base==ascii('N')) then bk=2; // Assign C (any base) end endfunction function base_hist=get_base_hist(seq) hist=ones(1,4)/4; l_seq = length(seq); for pos=1:l_seq key=get_base_key(seq(pos)); hist(key)=hist(key)+1; end base_hist=hist; endfunction function ppm=get_ppm(motif) // Get the position probability matrix [m,n]=size(motif); hist_mat = []; for pos=1:n base_hist = get_base_hist(motif(1:m,pos)); hist_mat = [hist_mat,base_hist']; end ppm=hist_mat/(m+1); endfunction function [w,su]=ppm_info(ppm,p0) [m,n]=size(ppm); // p_mat = []; // for k=1:m // p_row = ones(1,n)/p0(k); // p_mat = [p_mat; p_row]; // end p_mat = ones(m, n)/p0 // w = log(ppm.*p_mat)/log(2); w = log(ppm.*p_mat); su = ppm.*w; endfunction function [sm_score,sm_pos,sm_seq]=get_motif_score(seq,ppm) l_seq = length(seq); [m,n]=size(ppm); score=[]; max_score = -%inf; max_pos = 0; max_seq = []; for pos=1:(l_seq-n-1) sub_seq = seq(pos:(pos+n-1)); ss_score=0; for pos_ss=1:n bk=get_base_key(sub_seq(pos_ss)); ppm_s = ppm(bk,pos_ss); ss_score=ss_score+log(ppm_s); end score=[score,ss_score]; if (ss_score>max_score) then max_score=ss_score; max_pos= pos; max_seq=sub_seq; end end sm_score = max_score; sm_pos = max_pos; sm_seq = max_seq; endfunction function score = get_score(seq, ppm) score=0; n = size(ppm,2); for pos_ss=1:n bk=get_base_key(seq(pos_ss)); ppm_s = ppm(bk,pos_ss); score=score+log(ppm_s); end endfunction // if n_key > size(gp,1) then // if gn(n_key-size(gp,1),1)-thresh_up >= 1 then // dna_seq = get_fasta_at(fasta_file,gn(n_key-size(gp,1),1)-thresh_up,gn(n_key-size(gp,1),1)+thresh_down,0); // end // else // if gp(n_key,1)-thresh_up >= 1 then // dna_seq = get_fasta_at(fasta_file,gp(n_key,1)-thresh_up,gp(n_key,1)+thresh_down,1); // end // end
24d621a7deef56fc73ba28c540bfe3769ce392ce
931df7de6dffa2b03ac9771d79e06d88c24ab4ff
/Oblique Clicking 540 (Smaller).sce
4f00ff266706dbb85f9c89422a1db569607c44ef
[]
no_license
MBHuman/Scenarios
be1a722825b3b960014b07cda2f12fa4f75c7fc8
1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137
refs/heads/master
2023-01-14T02:10:25.103083
2020-11-21T16:47:14
2020-11-21T16:47:14
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
63,165
sce
Oblique Clicking 540 (Smaller).sce
Name=Oblique Clicking 540 (Smaller) PlayerCharacters=A_air_pistol_frozen;MovingTarget;StaticTarget BotCharacters=StaticTarget.bot;MovingTarget.bot IsChallenge=true Timelimit=45.0 PlayerProfile=A_air_pistol_frozen AddedBots=MovingTarget.bot PlayerMaxLives=0 BotMaxLives=0 PlayerTeam=1 BotTeams=2 MapName=boxerhalflimitedglassvertical.map MapScale=3.8 BlockProjectilePredictors=false BlockCheats=true InvinciblePlayer=false InvincibleBots=false Timescale=0.6 BlockHealthbars=true TimeRefilledByKill=0.0 ScoreToWin=1.0 ScorePerDamage=3.0 ScorePerKill=0.0 ScorePerMidairDirect=0.0 ScorePerAnyDirect=0.0 ScorePerTime=0.0 ScoreLossPerDamageTaken=0.0 ScoreLossPerDeath=0.0 ScoreLossPerMidairDirected=0.0 ScoreLossPerAnyDirected=0.0 ScoreMultAccuracy=false ScoreMultDamageEfficiency=false ScoreMultKillEfficiency=false GameTag= WeaponHeroTag=Pistol/LG/RL DifficultyTag=2 AuthorsTag=Softparts, Whisper BlockHitMarkers=false BlockHitSounds=false BlockMissSounds=false BlockFCT=false Description=Track a bouncing target that slowly increases speed. Much like Pong. Pistol/LG/RL GameVersion=2.0.2.0 ScorePerDistance=0.0 MBSEnable=false MBSTime1=0.25 MBSTime2=0.5 MBSTime3=0.75 MBSTime1Mult=1.0 MBSTime2Mult=2.0 MBSTime3Mult=3.0 MBSFBInstead=false MBSRequireEnemyAlive=false LockFOVRange=false LockedFOVMin=60.0 LockedFOVMax=120.0 LockedFOVScale=Clamped Horizontal [Aim Profile] Name=Default MinReactionTime=0.1 MaxReactionTime=0.2 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=90.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 AimingStyle=Original ScanSpeedMultiplier=1.0 MaxSeekPitch=30.0 MaxSeekYaw=30.0 AimingSpeed=5.0 MinShootDelay=0.3 MaxShootDelay=0.6 [Aim Profile] Name=At Feet MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=-1000.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 AimingStyle=Original ScanSpeedMultiplier=1.0 MaxSeekPitch=30.0 MaxSeekYaw=30.0 AimingSpeed=5.0 MinShootDelay=0.3 MaxShootDelay=0.6 [Bot Profile] Name=StaticTarget DodgeProfileNames=Mimic DodgeProfileWeights=1.0 DodgeProfileMaxChangeTime=5.0 DodgeProfileMinChangeTime=1.0 WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=false CharacterProfile=StaticTarget SeeThroughWalls=false NoDodging=false NoAiming=false AbilityUseTimer=0.1 UseAbilityFrequency=1.0 UseAbilityFreqMinTime=0.3 UseAbilityFreqMaxTime=0.6 ShowLaser=false LaserRGB=X=1.000 Y=0.300 Z=0.000 LaserAlpha=1.0 [Bot Profile] Name=MovingTarget DodgeProfileNames=Stop DodgeProfileWeights=1.0 DodgeProfileMaxChangeTime=5.0 DodgeProfileMinChangeTime=1.0 WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=At Feet;Default;Default;Default;Default;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=true CharacterProfile=MovingTarget SeeThroughWalls=true NoDodging=false NoAiming=false AbilityUseTimer=0.1 UseAbilityFrequency=1.0 UseAbilityFreqMinTime=0.3 UseAbilityFreqMaxTime=0.6 ShowLaser=false LaserRGB=X=1.000 Y=0.300 Z=0.000 LaserAlpha=1.0 [Character Profile] Name=A_air_pistol_frozen MaxHealth=100.0 WeaponProfileNames=BB Gun;;;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=8.0 MovementType=Base MaxSpeed=0.0 MaxCrouchSpeed=500.0 Acceleration=16000.0 AirAcceleration=16000.0 Friction=8.0 BrakingFrictionFactor=2.0 JumpVelocity=0.0 Gravity=0.2 AirControl=1.0 CanCrouch=true CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=false EnemyBodyColor=X=255.000 Y=0.000 Z=0.000 EnemyHeadColor=X=255.000 Y=255.000 Z=255.000 TeamBodyColor=X=0.000 Y=0.000 Z=255.000 TeamHeadColor=X=255.000 Y=255.000 Z=255.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cylindrical MainBBHeight=230.0 MainBBRadius=55.0 MainBBHasHead=true MainBBHeadRadius=45.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=230.0 ProjBBRadius=55.0 ProjBBHasHead=true ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.3 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=None CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Character Profile] Name=MovingTarget MaxHealth=1920.0 WeaponProfileNames=Boop Rocket;;;;;;; MinRespawnDelay=0.3 MaxRespawnDelay=0.4 StepUpHeight=75.0 CrouchHeightModifier=1.0 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=0.0 MovementType=Base MaxSpeed=900.0 MaxCrouchSpeed=1.0 Acceleration=100000.0 AirAcceleration=16000.0 Friction=0.0 BrakingFrictionFactor=0.0 JumpVelocity=865.0 Gravity=0.05 AirControl=0.0 CanCrouch=false CanPogoJump=true CanCrouchInAir=false CanJumpFromCrouch=false EnemyBodyColor=X=1.000 Y=0.725 Z=0.000 EnemyHeadColor=X=255.000 Y=0.725 Z=0.000 TeamBodyColor=X=0.000 Y=0.000 Z=255.000 TeamHeadColor=X=255.000 Y=255.000 Z=255.000 BlockSelfDamage=false InvinciblePlayer=true InvincibleBots=true BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=400.0 MainBBType=Spheroid MainBBHeight=74.0 MainBBRadius=37.0 MainBBHasHead=false MainBBHeadRadius=35.0 MainBBHeadOffset=-50.0 MainBBHide=false ProjBBType=Spheroid ProjBBHeight=80.0 ProjBBRadius=40.0 ProjBBHasHead=false ProjBBHeadRadius=0.1 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.0 JetpackFullFuelTime=100000.0 JetpackFuelIncPerSec=0.1 JetpackFuelRegensInAir=true JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.0 AbilityProfileNames=Boop Rocket.abilwep;;; HideWeapon=true AerialFriction=0.0 StrafeSpeedMult=2.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.0 AllowBufferedJumps=true BounceOffWalls=true LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=0.001 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=None CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Character Profile] Name=StaticTarget MaxHealth=1.0 WeaponProfileNames=Projectile Rifle_slow;;;;;;; MinRespawnDelay=0.01 MaxRespawnDelay=0.01 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=8.0 MovementType=Base MaxSpeed=0.0 MaxCrouchSpeed=500.0 Acceleration=16000.0 AirAcceleration=16000.0 Friction=8.0 BrakingFrictionFactor=2.0 JumpVelocity=800.0 Gravity=0.0 AirControl=0.25 CanCrouch=false CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=false EnemyBodyColor=X=255.000 Y=0.000 Z=0.000 EnemyHeadColor=X=255.000 Y=255.000 Z=255.000 TeamBodyColor=X=0.000 Y=0.000 Z=255.000 TeamHeadColor=X=255.000 Y=255.000 Z=255.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Spheroid MainBBHeight=70.0 MainBBRadius=35.0 MainBBHasHead=false MainBBHeadRadius=70.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Spheroid ProjBBHeight=70.0 ProjBBRadius=35.0 ProjBBHasHead=false ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=100000.0 JetpackFuelIncPerSec=0.1 JetpackFuelRegensInAir=true JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=1.0 AbilityProfileNames=;;; HideWeapon=true AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=5.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=None CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Dodge Profile] Name=Mimic MaxTargetDistance=2500.0 MinTargetDistance=750.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.2 MaxLRTimeChange=0.5 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.5 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.1 MaxJumpTime=0.2 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 WaypointLogic=Ignore WaypointTurnRate=200.0 MinTimeBeforeShot=0.15 MaxTimeBeforeShot=0.25 IgnoreShotChance=0.0 ForwardTimeMult=1.0 BackTimeMult=1.0 DamageReactionChangesFB=false [Dodge Profile] Name=Stop MaxTargetDistance=2500.0 MinTargetDistance=750.0 ToggleLeftRight=false ToggleForwardBack=false MinLRTimeChange=10.0 MaxLRTimeChange=10.0 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.0 DamageReactionMinimumDelay=0.1 DamageReactionMaximumDelay=0.15 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.5 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.1 MaxCrouchTime=0.1 MinJumpTime=0.0001 MaxJumpTime=0.0001 LeftStrafeTimeMult=10.0 RightStrafeTimeMult=10.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 WaypointLogic=Ignore WaypointTurnRate=200.0 MinTimeBeforeShot=0.15 MaxTimeBeforeShot=0.25 IgnoreShotChance=0.0 ForwardTimeMult=1.0 BackTimeMult=1.0 DamageReactionChangesFB=false [Weapon Profile] Name=BB Gun Type=Hitscan ShotsPerClick=1 DamagePerShot=1.0 KnockbackFactor=4.0 TimeBetweenShots=0.1 Pierces=false Category=SemiAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=false HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 ProjectileGraphic=Ball VisualLifetime=0.1 BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=true ADSZoomDelay=0.0 ADSZoomSensFactor=0.4 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=false AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=false MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=3 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=36.0 ADSFOVScale=Vertical (1:1) ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.1 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=None ParticleBodyImpact=Flare ParticleProjectileTrail=None ParticleHitscanTrace=None ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,5.0 SpreadSCA=1.0,1.0,-1.0,5.0 SpreadMSA=1.0,1.0,-1.0,5.0 SpreadMCA=1.0,1.0,-1.0,5.0 SpreadSSH=0.0,0.1,0.0,0.0 SpreadSCH=1.0,1.0,-1.0,5.0 SpreadMSH=0.0,0.1,0.0,0.0 SpreadMCH=1.0,1.0,-1.0,5.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=true AAAlpha=1.0 AAMaxSpeed=360.0 AADeadZone=0.0 AAFOV=360.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=Boop Rocket Type=Projectile ShotsPerClick=1 DamagePerShot=0.0 KnockbackFactor=0.0 TimeBetweenShots=0.3 Pierces=false Category=FullyAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=0.010 Y=0.000 Z=0.000 MuzzleVelocityMax=X=0.010 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=10.0 HeadshotCapable=false HeadshotMultiplier=2.0 MagazineMax=999 AmmoPerShot=1 ReloadTimeFromEmpty=0.1 ReloadTimeFromPartial=0.1 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=0.0 DelayBeforeShot=0.0 ProjectileGraphic=Rocket VisualLifetime=0.1 BounceOffWorld=false BounceFactor=0.1 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=999.0 HitSoundCooldown=999.0 HitscanVisualOffset=X=0.000 Y=0.000 Z=0.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.0 RecoilNegatable=false DecalType=0 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=8.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=8.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Clamped Horizontal ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=None ParticleBodyImpact=Flare ParticleProjectileTrail=None ParticleHitscanTrace=Tracer ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=true Radius=1100.0 DamageAtCenter=0.0 DamageAtEdge=0.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=2.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0001 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,0.0 SpreadSCA=1.0,1.0,-1.0,0.0 SpreadMSA=1.0,1.0,-1.0,0.0 SpreadMCA=1.0,1.0,-1.0,0.0 SpreadSSH=1.0,1.0,-1.0,0.0 SpreadSCH=1.0,1.0,-1.0,0.0 SpreadMSH=1.0,1.0,-1.0,0.0 SpreadMCH=1.0,1.0,-1.0,0.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=30.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=Spawn Push Type=Projectile ShotsPerClick=1 DamagePerShot=0.0 KnockbackFactor=4.0 TimeBetweenShots=0.3 Pierces=false Category=FullyAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=0.010 Y=5.000 Z=500.000 MuzzleVelocityMax=X=0.010 Y=5.000 Z=500.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=false HeadshotMultiplier=2.0 MagazineMax=1 AmmoPerShot=1 ReloadTimeFromEmpty=5.0 ReloadTimeFromPartial=5.0 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=0.0 DelayBeforeShot=0.0 ProjectileGraphic=Rocket VisualLifetime=0.1 BounceOffWorld=false BounceFactor=0.1 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=999.0 HitSoundCooldown=999.0 HitscanVisualOffset=X=0.000 Y=0.000 Z=0.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=0 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=830.0 FlatKnockbackVertical=-680.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=830.0 FlatKnockbackVerticalMin=-680.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Clamped Horizontal ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=None ParticleBodyImpact=Flare ParticleProjectileTrail=None ParticleHitscanTrace=Tracer ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=true Radius=1100.0 DamageAtCenter=0.0 DamageAtEdge=0.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=2.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0001 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,0.0 SpreadSCA=1.0,1.0,-1.0,0.0 SpreadMSA=1.0,1.0,-1.0,0.0 SpreadMCA=1.0,1.0,-1.0,0.0 SpreadSSH=1.0,1.0,-1.0,0.0 SpreadSCH=1.0,1.0,-1.0,0.0 SpreadMSH=1.0,1.0,-1.0,0.0 SpreadMCH=1.0,1.0,-1.0,0.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=30.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=Projectile Rifle_slow Type=Projectile ShotsPerClick=1 DamagePerShot=50.0 KnockbackFactor=0.1 TimeBetweenShots=0.7 Pierces=false Category=FullyAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=1200.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=1200.000 Y=0.000 Z=0.000 InheritOwnerVelocity=1.0 OriginOffset=X=100.000 Y=0.000 Z=-10.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=0.0 HeadshotCapable=false HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=80.0 DelayBeforeShot=0.0 ProjectileGraphic=Rocket VisualLifetime=0.5 BounceOffWorld=false BounceFactor=0.0 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=3.0 CanAimDownSight=true ADSZoomDelay=0.05 ADSZoomSensFactor=0.5 ADSMoveFactor=0.5 ADSStartDelay=0.25 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=0.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.1 RecoilNegatable=true DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot=Sniper Rifle StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=51.5 ADSFOVScale=Clamped Horizontal ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=Flare ParticleBodyImpact=Flare ParticleProjectileTrail=Squares ParticleHitscanTrace=Tracer ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=true Radius=300.0 DamageAtCenter=100.0 DamageAtEdge=0.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,0.0 SpreadSCA=1.0,1.0,-1.0,0.0 SpreadMSA=1.0,1.0,-1.0,0.0 SpreadMCA=1.0,1.0,-1.0,0.0 SpreadSSH=1.0,1.0,-1.0,0.0 SpreadSCH=1.0,1.0,-1.0,0.0 SpreadMSH=1.0,1.0,-1.0,0.0 SpreadMCH=1.0,1.0,-1.0,0.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=30.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false [Weapon Profile] Name=Sniper Rifle Type=Hitscan ShotsPerClick=1 DamagePerShot=13.0 KnockbackFactor=0.1 TimeBetweenShots=0.1 Pierces=false Category=FullyAuto BurstShotCount=2 TimeBetweenBursts=0.1 ChargeStartDamage=0.1 ChargeStartVelocity=X=1500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=3000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=3000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=3.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=1.0 ReloadTimeFromPartial=0.8 DamageFalloffStartDistance=2500.0 DamageFalloffStopDistance=4000.0 DamageAtMaxRange=6.0 DelayBeforeShot=0.0 ProjectileGraphic=Ball VisualLifetime=0.1 BounceOffWorld=true BounceFactor=0.6 BounceCount=0 HomingProjectileAcceleration=6000.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=true ADSZoomDelay=0.05 ADSZoomSensFactor=0.38 ADSMoveFactor=0.5 ADSStartDelay=0.25 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=true ShootingBlocksADS=false KnockbackFactorAir=0.1 RecoilNegatable=true DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot=Zoomed Sniper Rifle StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=50.985001 ADSFOVScale=Clamped Horizontal ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=Gunshot ParticleBodyImpact=Blood ParticleProjectileTrail=None ParticleHitscanTrace=Tracer ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=true DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=5.0 BlockedByWorld=true SpreadSSA=2.0,5.5,0.0,3.0 SpreadSCA=2.0,5.5,0.0,3.0 SpreadMSA=2.0,5.5,0.0,3.0 SpreadMCA=2.0,5.5,0.0,3.0 SpreadSSH=2.0,5.5,0.0,3.0 SpreadSCH=2.0,5.5,0.0,3.0 SpreadMSH=2.0,5.5,0.0,3.0 SpreadMCH=2.0,5.5,0.0,3.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.05 TimeToRecoilReset=0.45 AAMode=2 AAPreferClosestPlayer=false AAAlpha=1.0 AAMaxSpeed=1.5 AADeadZone=0.0 AAFOV=75.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=true AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=true TriggerBotDelay=0.01 TriggerBotFOV=0.1 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false [Weapon Ability Profile] Name=Boop Rocket MaxCharges=1.0 ChargeTimer=600.0 ChargesRefundedOnKill=1.0 DelayAfterUse=0.1 FullyAuto=false WeaponProfile=Spawn Push BlockAttackTimer=0.0 AbilityBlockedWhenAttacking=false AmmoPerShot=1 AIUseInCombat=true AIUseOutOfCombat=true AIUseOnGround=true AIUseInAir=true AIReuseTimer=1.0 AIMinSelfHealth=0.0 AIMaxSelfHealth=100.0 AIMinTargHealth=0.0 AIMaxTargHealth=100.0 AIMinTargDist=1.0 AIMaxTargDist=99999.0 AIMaxTargFOV=360.0 AIDamageReaction=false AIDamageReactionIgnoreChance=0.0 AIDamageReactionMinDelay=0.01 AIDamageReactionMaxDelay=0.01 AIDamageReactionCooldown=0.1 AIDamageReactionThreshold=1.0 AIDamageReactionResetTimer=1.0 [Map Data] reflex map version 8 global entity type WorldSpawn String32 targetGameOverCamera end UInt8 playersMin 1 UInt8 playersMax 16 brush vertices -576.000000 0.000000 256.000000 448.000000 0.000000 256.000000 448.000000 0.000000 -768.000000 -576.000000 0.000000 -768.000000 -576.000000 -16.000000 256.000000 448.000000 -16.000000 256.000000 448.000000 -16.000000 -768.000000 -576.000000 -16.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 272.000000 -768.000000 448.000000 272.000000 -768.000000 448.000000 272.000000 -784.000000 -576.000000 272.000000 -784.000000 -576.000000 0.000000 -768.000000 448.000000 0.000000 -768.000000 448.000000 0.000000 -784.000000 -576.000000 0.000000 -784.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 272.000000 272.000000 448.000000 272.000000 272.000000 448.000000 272.000000 256.000000 -576.000000 272.000000 256.000000 -576.000000 0.000000 272.000000 448.000000 0.000000 272.000000 448.000000 0.000000 256.000000 -576.000000 0.000000 256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 448.000000 272.000000 256.000000 464.000000 272.000000 256.000000 464.000000 272.000000 -768.000000 448.000000 272.000000 -768.000000 448.000000 0.000000 256.000000 464.000000 0.000000 256.000000 464.000000 0.000000 -768.000000 448.000000 0.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -592.000000 272.000000 256.000000 -576.000000 272.000000 256.000000 -576.000000 272.000000 -768.000000 -592.000000 272.000000 -768.000000 -592.000000 0.000000 256.000000 -576.000000 0.000000 256.000000 -576.000000 0.000000 -768.000000 -592.000000 0.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -592.000000 704.000000 256.000000 -576.000000 704.000000 256.000000 -576.000000 704.000000 -768.000000 -592.000000 704.000000 -768.000000 -592.000000 272.000000 256.000000 -576.000000 272.000000 256.000000 -576.000000 272.000000 -768.000000 -592.000000 272.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices 448.000000 704.000000 256.000000 464.000000 704.000000 256.000000 464.000000 704.000000 -768.000000 448.000000 704.000000 -768.000000 448.000000 272.000000 256.000000 464.000000 272.000000 256.000000 464.000000 272.000000 -768.000000 448.000000 272.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 704.000000 -768.000000 448.000000 704.000000 -768.000000 448.000000 704.000000 -784.000000 -576.000000 704.000000 -784.000000 -576.000000 272.000000 -768.000000 448.000000 272.000000 -768.000000 448.000000 272.000000 -784.000000 -576.000000 272.000000 -784.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 704.000000 272.000000 448.000000 704.000000 272.000000 448.000000 704.000000 256.000000 -576.000000 704.000000 256.000000 -576.000000 272.000000 272.000000 448.000000 272.000000 272.000000 448.000000 272.000000 256.000000 -576.000000 272.000000 256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 720.000000 256.000000 448.000000 720.000000 256.000000 448.000000 720.000000 -768.000000 -576.000000 720.000000 -768.000000 -576.000000 704.000000 256.000000 448.000000 704.000000 256.000000 448.000000 704.000000 -768.000000 -576.000000 704.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -128.000000 16.000000 -320.000000 0.000000 16.000000 -320.000000 0.000000 16.000000 -336.000000 -128.000000 16.000000 -336.000000 -128.000000 0.000000 -320.000000 0.000000 0.000000 -320.000000 0.000000 0.000000 -336.000000 -128.000000 0.000000 -336.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 0.000000 16.000000 -192.000000 16.000000 16.000000 -192.000000 16.000000 16.000000 -320.000000 0.000000 16.000000 -320.000000 0.000000 0.000000 -192.000000 16.000000 0.000000 -192.000000 16.000000 0.000000 -320.000000 0.000000 0.000000 -320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -144.000000 16.000000 -192.000000 -128.000000 16.000000 -192.000000 -128.000000 16.000000 -320.000000 -144.000000 16.000000 -320.000000 -144.000000 0.000000 -192.000000 -128.000000 0.000000 -192.000000 -128.000000 0.000000 -320.000000 -144.000000 0.000000 -320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -128.000000 16.000000 -176.000000 0.000000 16.000000 -176.000000 0.000000 16.000000 -192.000000 -128.000000 16.000000 -192.000000 -128.000000 0.000000 -176.000000 0.000000 0.000000 -176.000000 0.000000 0.000000 -192.000000 -128.000000 0.000000 -192.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 0.000000 16.000000 -176.000000 0.000000 0.000000 -192.000000 16.000000 16.000000 -192.000000 0.000000 0.000000 -176.000000 16.000000 0.000000 -192.000000 0.000000 16.000000 -192.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 3 1 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 3 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 4 1 5 0x00000000 brush vertices -128.000000 0.000000 -176.000000 -128.000000 16.000000 -176.000000 -128.000000 16.000000 -192.000000 -144.000000 0.000000 -192.000000 -128.000000 0.000000 -192.000000 -144.000000 16.000000 -192.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 4 3 5 0x00000000 brush vertices -144.000000 16.000000 -320.000000 -128.000000 16.000000 -320.000000 -128.000000 16.000000 -336.000000 -144.000000 0.000000 -320.000000 -128.000000 0.000000 -336.000000 -128.000000 0.000000 -320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 2 1 5 0x00000000 brush vertices 0.000000 16.000000 -320.000000 16.000000 16.000000 -320.000000 0.000000 0.000000 -336.000000 0.000000 0.000000 -320.000000 16.000000 0.000000 -320.000000 0.000000 16.000000 -336.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 4 2 5 0x00000000 brush vertices 0.000000 704.000000 -192.000000 16.000000 704.000000 -192.000000 16.000000 704.000000 -320.000000 0.000000 704.000000 -320.000000 0.000000 16.000000 -192.000000 16.000000 16.000000 -192.000000 16.000000 16.000000 -320.000000 0.000000 16.000000 -320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip brush vertices -144.000000 704.000000 -192.000000 -128.000000 704.000000 -192.000000 -128.000000 704.000000 -320.000000 -144.000000 704.000000 -320.000000 -144.000000 16.000000 -192.000000 -128.000000 16.000000 -192.000000 -128.000000 16.000000 -320.000000 -144.000000 16.000000 -320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip brush vertices -128.000000 704.000000 -320.000000 0.000000 704.000000 -320.000000 0.000000 704.000000 -336.000000 -128.000000 704.000000 -336.000000 -128.000000 16.000000 -320.000000 0.000000 16.000000 -320.000000 0.000000 16.000000 -336.000000 -128.000000 16.000000 -336.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip brush vertices -128.000000 704.000000 -176.000000 0.000000 704.000000 -176.000000 0.000000 704.000000 -192.000000 -128.000000 704.000000 -192.000000 -128.000000 16.000000 -176.000000 0.000000 16.000000 -176.000000 0.000000 16.000000 -192.000000 -128.000000 16.000000 -192.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip brush vertices 0.000000 704.000000 -176.000000 0.000000 16.000000 -192.000000 16.000000 704.000000 -192.000000 0.000000 16.000000 -176.000000 16.000000 16.000000 -192.000000 0.000000 704.000000 -192.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 3 1 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 5 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 3 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 3 0 5 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 4 1 5 0xff8f7d6a internal/editor/textures/editor_clip brush vertices -128.000000 16.000000 -176.000000 -128.000000 704.000000 -176.000000 -128.000000 704.000000 -192.000000 -144.000000 16.000000 -192.000000 -128.000000 16.000000 -192.000000 -144.000000 704.000000 -192.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 5 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 1 5 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 4 3 5 0xff8f7d6a internal/editor/textures/editor_clip brush vertices -144.000000 704.000000 -320.000000 -128.000000 704.000000 -320.000000 -128.000000 704.000000 -336.000000 -144.000000 16.000000 -320.000000 -128.000000 16.000000 -336.000000 -128.000000 16.000000 -320.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 5 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 2 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 4 2 1 5 0xff8f7d6a internal/editor/textures/editor_clip brush vertices 0.000000 704.000000 -320.000000 16.000000 704.000000 -320.000000 0.000000 16.000000 -336.000000 0.000000 16.000000 -320.000000 16.000000 16.000000 -320.000000 0.000000 704.000000 -336.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 5 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 4 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 3 0 5 0xff8f7d6a internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 4 2 5 0xff8f7d6a internal/editor/textures/editor_clip brush vertices -144.000000 272.000000 256.000000 -136.000000 272.000000 256.000000 -136.000000 272.000000 -768.000000 -144.000000 272.000000 -768.000000 -144.000000 0.000000 256.000000 -136.000000 0.000000 256.000000 -136.000000 0.000000 -768.000000 -144.000000 0.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 404.000000 272.000000 256.000000 408.000000 272.000000 256.000000 408.000000 272.000000 -768.000000 404.000000 272.000000 -768.000000 404.000000 0.000000 256.000000 408.000000 0.000000 256.000000 408.000000 0.000000 -768.000000 404.000000 0.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices 408.000000 276.000000 256.000000 448.000000 276.000000 256.000000 448.000000 276.000000 -772.000000 408.000000 276.000000 -772.000000 408.000000 272.000000 256.000000 448.000000 272.000000 256.000000 448.000000 272.000000 -772.000000 408.000000 272.000000 -772.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices 404.000000 272.000000 -620.000000 408.000000 272.000000 -620.000000 408.000000 272.000000 -764.000000 404.000000 272.000000 -764.000000 404.000000 0.000000 -620.000000 408.000000 0.000000 -620.000000 408.000000 0.000000 -764.000000 404.000000 0.000000 -764.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_weaponclip brush vertices 404.000000 272.000000 -268.000000 408.000000 272.000000 -268.000000 408.000000 272.000000 -592.000000 404.000000 272.000000 -592.000000 404.000000 0.000000 -268.000000 408.000000 0.000000 -268.000000 408.000000 0.000000 -592.000000 404.000000 0.000000 -592.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_weaponclip brush vertices 404.000000 272.000000 80.000000 408.000000 272.000000 80.000000 408.000000 272.000000 -244.000000 404.000000 272.000000 -244.000000 404.000000 0.000000 80.000000 408.000000 0.000000 80.000000 408.000000 0.000000 -244.000000 404.000000 0.000000 -244.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_weaponclip brush vertices 404.000000 272.000000 256.000000 408.000000 272.000000 256.000000 408.000000 272.000000 112.000000 404.000000 272.000000 112.000000 404.000000 0.000000 256.000000 408.000000 0.000000 256.000000 408.000000 0.000000 112.000000 404.000000 0.000000 112.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_weaponclip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_weaponclip entity type CameraPath UInt32 entityIdAttachedTo 5 UInt8 posLerp 2 UInt8 angleLerp 2 entity type Effect Vector3 position 0.000000 256.000000 0.000000 String64 effectName internal/misc/reflectionprobe entity type Target Vector3 position 352.000000 256.000000 224.000000 Vector3 angles -135.000000 30.000000 0.000000 String32 name end entity type PlayerSpawn Vector3 position 432.000000 104.000000 -256.000000 Vector3 angles 270.000000 0.000000 0.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -64.000000 0.000000 -256.000000 Vector3 angles 90.000000 0.000000 0.000000 Bool8 teamB 0
f62329934f4d166be51ed67a361ce076bd0962b8
94620d60dd2edf8965f79561e420da9b42ad6728
/HW2.sce
a867385d5128fe0ce48d4cb2d05d72eedf19107e
[]
no_license
AIladin/ScilabKNU
287cb9543e2666f62bef7d6219a0f3419a1689f5
820ad3732c3e8f8ace08578a8eb77d3c30554943
refs/heads/master
2021-09-09T15:37:40.611899
2017-10-01T14:42:43
2017-10-01T14:42:43
103,492,884
2
0
null
2018-03-17T15:23:23
2017-09-14T06:09:53
Scilab
UTF-8
Scilab
false
false
1,272
sce
HW2.sce
// Copyright (C) 2017 - - Ailadin // // Date of creation: 19.09.2017 // clf();//очистка окна вывода от преведущих графиков x=[-2:0.05:2];//присваивание координат х для функции у=(1+х**2)/(1+2*x**2) y=0.5+(2+4*x^2)**(-1);//из за непонятных неполадок функцию пришлось преобразовать в у=0.5+1/(2+4*x^2) //вместо деления на х использованно возведение в -1 потому что при делении создается вертикальный вектор x1=[-2:0.05:0];//присваивание координат х для первого случая функции g(x) g1=3*sin(x1)-cos(x1)^2;//присваивание координат у x2=[0:0.05:2];//присваивание координат х для второго случая функции g(x) g2=3*sqrt(1+x2^2);//присваивание координат у plot(x2,g2,x,y);//на втором месте стоит y(x) для отображения другим цветом plot(x1,g1);//на первом месте стоит частные случаи g(x) для их отображения одним цветом
960e178b17a9f8470a477e664e1c280733e60e39
449d555969bfd7befe906877abab098c6e63a0e8
/1847/CH5/EX5.7/Ch05Ex7.sce
f522782f9e39f0ff44458c6cf6196a7820c7c9c2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
612
sce
Ch05Ex7.sce
// Scilab Code Ex5.7 :: Page-5.32 (2009) clc;clear; A = 235; // Atomic weight of uranium, gm/mol N_A = 6.023e+026; // No. of atoms present in 235 kg of uranium-235 N = N_A*5/A; // No. of nuceli of uranium in 5 kg of U-235 E = N*200; // Energy released in the fission of 5 kg of U-235, MeV t = 24*3600; // Time taken to consume 5 kg of U-235, sec P = E/t; // Total power output of the nuclear reactor, MeV per second printf("\nThe total power output of the nuclear reactor = %4.2e MeV per second", P); // Result // The total power output of the nuclear reactor = 2.97e+22 MeV per second
d8bc15432b14c3d0b4c35c92004b3d449fef74e0
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH17/EX17.8/Ex17_8.sce
df0be7751b0ab17ce676a6af15456a879b9fd864
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
142
sce
Ex17_8.sce
clear //Given ug=1.5 uw=1.33 //Calculation u1=ug/uw sinC=1/u1 C=asin(sinC)*180/3.14 //Result printf("\n Critical angle is %0.2f degree",C)
0cb799ab6fc0ecc5d47b58e8ae6c2ece899d292d
449d555969bfd7befe906877abab098c6e63a0e8
/3754/CH24/EX24.11/24_11.sce
dac9e9394b125048588d7d2b67df3e5cbdfcf301
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,907
sce
24_11.sce
clear// //Variables VCC = 10.0 //Source voltage (in volts) RC = 5.0 //Collector resistance (in kilo-ohm) rE = 500 * 10**-3 //Emitter resistance (in kilo-ohm) beta = 50.0 //Common emitter current gain VBE = 0.7 //Emitter-to-Base Voltage (in volts) R1 = 50.0 //Resistance (in kilo-ohm) R2 = 10.0 //Resistance (in kilo-ohm) Vs = 100.0 * 10**-3 //a.c voltage (in volts) RS = 600.0 * 10**-3 //Source resistance (in kilo-ohm) RL = 50.0 //Load resistance (in kilo-ohm) RE1 = 500.0 * 10**-3 //Resistance (in kilo-ohm) //Calculation Vth = VCC * R2 /(R1 + R2) //Thevenin's voltage (in volts) Rth = R1 * R2 / (R1 + R2) //Thevenin's equivalent resistance (in kilo-ohm) RE = RE1 + rE //Emitter total resistance (in kilo-ohm) IE = (Vth - VBE)/(RE + Rth/beta) //Emitter current (in milli-Ampere) r1e = 25.0 / IE * 10**-3 //a.c. resistance (in kilo-ohm) Ri = beta * (rE + r1e) //Input resistance directly into the base (in kilo-ohm) Ris = Rth * Ri/(Rth + Ri) //Input resistance of the stage (in kilo-ohm) rL = RC * RL / (RC + RL) //a.c. load resistance (in kilo-ohm) Av = rL/(rE + r1e) //Voltage gain Avs = Av * Ris / (RS + Ris) //Overall voltage gain Vo = Avs * Vs //Output voltage (in volts) //Result printf("\n Input resistance looking directly into the base is %0.1f kilo-ohm.\nInput resistance of the stage is %0.2f kilo-ohm.\nVoltage gain is %0.3f .\nOverall voltage gain is %0.2f .\nOutput voltage is %0.2f V.",Ri,Ris,Av,Avs,Vo)
df6b92d8335b0b41fb138ffb98a2aff407f0838b
6813325b126713766d9778d7665c10b5ba67227b
/Chapter7/Ch_7_Eg_7.6.sce
a37e175a215d339ba9567cd0020a8cd55970c121
[]
no_license
arvindrachna/Introduction_to_Scilab
955b2063b3faa33a855d18ac41ed7e0e3ab6bd1f
9ca5d6be99e0536ba1c08a7a1bf4ba64620ec140
refs/heads/master
2020-03-15T19:26:52.964755
2018-05-31T04:49:57
2018-05-31T04:49:57
132,308,878
1
0
null
null
null
null
UTF-8
Scilab
false
false
948
sce
Ch_7_Eg_7.6.sce
// A program for interpolation using the Lagrange’s method. // Input // x and y = A set of data points // xp= X value where interpolated value is required // Output // yp = The interpolated value at xp function [yp]=ak_Lagrange_Int(x, y, xp) n=length(x); yp=0; for k=1 : n pi=1; // Calculate Numerator of Lagrange terms for i=1 : n if i <> k then pi =pi*(xp-x(i)); end end pid=1; // Calculate denominator of Lagrange terms for j=1 : n if j <> k then pid=pid*(x(k)-x(j)); end end //Sum Langrange terms yp=yp+pi*y(k)/pid; end endfunction //Example x=[300 304 305 307]; y=[2.4771 2.4829 2.4843 2.4871]; xp=301; [yp] = ak_Lagrange_Int(x,y,xp); s=msprintf("The interpolated value at x= %f is %f",xp,yp); disp(s);
49f60c2e4515bc642cacca5a7f2c0168b6390ad5
449d555969bfd7befe906877abab098c6e63a0e8
/2375/CH7/EX7.2/ex7_2.sce
c60118e127bf2607dfba1f266e642f06f0eec97b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
644
sce
ex7_2.sce
// Exa 7.2 clc; clear; close; format('v',6) // Given data I_DSS = 10;// in mA I_DSS = I_DSS * 10^-3;// in A V_P = -4;// in V V_DD= 20;// in V R_S = 1;// in k ohm R_S = R_S * 10^3;// in ohm R_D = 2.7;// in k ohm R_D = R_D * 10^3;// in ohm I_DQ= poly(0,'I_DQ'); V_GS= -I_DQ*R_S;// in V I_DQ= I_DQ-I_DSS*(1-V_GS/V_P)^2;// in A I_DQ= roots(I_DQ);// in A I_DQ= I_DQ(2);// in A I_DQ= I_DQ*10^3;// in mA disp(I_DQ,"The value of I_DQ in mA is : ") I_DQ= I_DQ*10^-3;// in A V_GSQ= -I_DQ*R_S;// in V disp(V_GSQ,"The value of V_GSQ in volts is : ") V_DS= V_DD-I_DQ*(R_D+R_S);// in V disp(V_DS,"The value of V_DS in volts is : ")
94b8a9367bb07168fd9534ed37f7712ae45b7960
28a8d47c4d79b231f8bebc28925792a290f67e9f
/db/others/prototype/prototype.tst
a02188f45e86cf20af4809863ac457627d2751f6
[]
no_license
ZVlad1980/doo
a1fe7d18ccfd0acf6ced7dbb33927c86a925aae8
e81be8f524b78b9a6ec06b7f83a8c13354fc6412
refs/heads/master
2021-08-17T02:03:54.553822
2017-11-20T17:21:03
2017-11-20T17:21:03
111,440,129
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,023
tst
prototype.tst
PL/SQL Developer Test script 3.0 93 -- Created on 11.07.2014 by ZHURAVOV_VB declare -- Local variables here i integer; --t xxdoo.xxdoo_db_scheme_typ := xxdoo.xxdoo_db_scheme_typ(p_name => 'TEST', p_dev_code => 'test', p_owner => 'xxdoo'); s xxdoo.xxdoo_db_scheme_typ := xxdoo.xxdoo_db_scheme_typ(p_name => 'Contractors', p_dev_code => 'xxdoo_cntr', p_owner => 'xxdoo'); --f xxdoo.xxdoo_db_field_typ := xxdoo.xxdoo_db_field_typ(); -- function get_xml(s xxdoo.xxdoo_db_scheme_typ) return xmltype is l_result xmltype; begin select xmlroot(xmltype.createxml(s), version 1.0) into l_result from dual; -- return l_result; end; begin --dbms_session.reset_package; return; xxdoo.xxdoo_db_utils_pkg.init_exceptions; --xxdoo.xxdoo_db_engine_pkg.drop_objects(s); return; -- s.ctable('contractorTypes', 'Vendor Customer'); -- s.ctable('siteRoles', xxdoo.xxdoo_db_list_typ( 'Ship to', 'Bill to' ) ); -- s.ctable('countries/country', xxdoo.xxdoo_db_fields_typ( s.f('id', s.cvarchar(2).pk().notNull), s.f('name', s.cvarchar(255).notNull), s.f('localizedName', s.text), s.f('union_countries', s.cvarchar(15).indexed) ) ); -- s.ctable('addresses/address', xxdoo.xxdoo_db_fields_typ( s.f('id', s.cint().csequence().pk), s.f('country', s.tables('countries')), s.f('postal_code', s.cvarchar(30)), s.f('addr_line', s.cvarchar(150)) ) ); -- s.ctable('contractors', xxdoo.xxdoo_db_fields_typ( s.f('id', s.cint().csequence().pk), s.f('name', s.cvarchar(150).notNull), s.f('type', s.tables('contractorTypes').fk) ) ); -- s.ctable('sites', xxdoo.xxdoo_db_fields_typ( s.f('id', s.cint().csequence().pk), s.f('contractor_id', s.tables('contractors').referenced('sites').deleted('CASCADE')), s.f('role' , s.tables('siteRoles').fk), s.f('address_id' , s.tables('addresses')) ) ); -- s.ctable('bankAccounts', xxdoo.xxdoo_db_fields_typ( s.f('id', s.cint().csequence().pk), s.f('siteId', s.tables('sites').fk().deleted('CASCADE')), s.f('accountNum', s.cvarchar(40).notnull) ) ); -- s.ctable('siteAccounts', xxdoo.xxdoo_db_fields_typ( s.f('id', s.cint().csequence().pk), s.f('accountId', s.tables('bankAccounts')), s.f('siteId', s.tables('sites').referenced('accounts').deleted('CASCADE')) ) ); -- s.put; s.generate; xxdoo.xxdoo_db_utils_pkg.show_errors; --dbms_output.put_line(get_xml(s).getClobVal); -- exception when others then xxdoo.xxdoo_db_utils_pkg.fix_exception; xxdoo.xxdoo_db_utils_pkg.show_errors; end; 0 1 d
ac13d280fb59f6ec11a99e74c8f7248c25887938
f418106dce87524f4bfd1826116fbb0ca8cee0e6
/processamento_de_imagens/negacao.sce
c9a9249e96a3f6fbf609ae90e714d28fd97e9057
[]
no_license
lorrainepepe/projetos_bcc
f76b8c1a1fbb300ac0b64c7e677826dc2dc6d7c2
7c22bfa3b3eeea8aff540c2baeeffb1a36138488
refs/heads/master
2020-06-19T07:54:10.338122
2019-09-16T13:08:58
2019-09-16T13:08:58
196,626,001
1
0
null
null
null
null
UTF-8
Scilab
false
false
647
sce
negacao.sce
matriz_img=imread("C:\Users\ander\Dropbox\UNESP\Mestrado\Processamento Digital de Imagens\Listas\Lista4\IMG\lena.bmp"); linhas=size(matriz_img,'r'); //recebe o numero de linhas da imagem colunas=size(matriz_img,'c'); //recebe o numero de colunas da imagem printf("Numero de linhas: %d, numero de colunas: %d", linhas, colunas); // procedimento para descobrir o valor do maior nível de cinza W=255; printf("Nivel maximo de cinza: %d", W); // procedimento de negação nova_matriz=zeros(linhas,colunas); for i=1:linhas for j=1:colunas nova_matriz(i,j)=W-matriz_img(i,j); end end nova_img=uint8(nova_matriz); imshow(nova_img);
d1c024113a66d04a653df3645d9240195533704f
468a1ec1a04ab99eb46811103f55ed1a32266ff7
/G_Mean.sce
1521e778bd4c4d478db8c5d4d419f6cde18a23a8
[]
no_license
sricharraan/Image-Processing
e2c152b3127425c17ecd36548a457b81b4b74466
2ea4b68d172359ee2c58f4d2fc7a4f0cb99d4440
refs/heads/master
2022-04-16T04:11:31.984041
2020-04-22T05:18:47
2020-04-22T05:18:47
257,531,057
0
0
null
null
null
null
UTF-8
Scilab
false
false
438
sce
G_Mean.sce
clc clear close c1=imread('coins.png') a=imnoise(c1,'gaussian',0,0.1) a=double(a) [r c]=size(a) padded = zeros(r+2,c+2); b = zeros(r+2,c+2); padded(2:r+1,2:c+1) = a; a=padded for i=1:r-1 for j=1:c-1 x=a(i:i+2,j:j+2) b(i+1,j+1)=prod(x)^(1/9); end end subplot(1,3,1) title('Orginal Image'); imshow(c1); subplot(1,3,2) title('Noise Image'); imshow(uint8(a)); subplot(1,3,3) title('Output Image'); imshow(uint8(b));
7fd36ffb552f353da66351b87aed158715ce3b7e
449d555969bfd7befe906877abab098c6e63a0e8
/3269/CH3/EX3.9/Ex3_9.sce
f1b1038e9dc3d584c57f153e594f4ed897d5b342
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
550
sce
Ex3_9.sce
// Example 3.9 clear all; clc; // Given data E0 = 0.0253; // Thermal energy in eV // 1 barn = 10^(-24) cm^2 sigmay_E0 = 0.332*10^(-24); // Radiative capture cross section at 0.0253 eV in cm^2 E = 1; // Energy in eV at which radiative cross section is to be found // Calculation sigmay_E = sigmay_E0*sqrt(E0/E); // Result // Expressing the result in barn printf('\n Radiative capture cross section of hydrogen at 1 eV = %5.4f b\n',sigmay_E*10^(24));