blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
6
214
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
6
87
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
15 values
visit_date
timestamp[us]date
2016-08-04 09:00:04
2023-09-05 17:18:33
revision_date
timestamp[us]date
1998-12-11 00:15:10
2023-09-02 05:42:40
committer_date
timestamp[us]date
2005-04-26 09:58:02
2023-09-02 05:42:40
github_id
int64
436k
586M
star_events_count
int64
0
12.3k
fork_events_count
int64
0
6.3k
gha_license_id
stringclasses
7 values
gha_event_created_at
timestamp[us]date
2012-11-16 11:45:07
2023-09-14 20:45:37
gha_created_at
timestamp[us]date
2010-03-22 23:34:58
2023-01-07 03:47:44
gha_language
stringclasses
36 values
src_encoding
stringclasses
17 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
5
10.4M
extension
stringclasses
15 values
filename
stringlengths
2
96
content
stringlengths
5
10.4M
ee49a62b5c490f06f33ba2003ca6a94abfb2e36a
449d555969bfd7befe906877abab098c6e63a0e8
/2153/CH16/EX16.7/ex_16_7.sce
084394214ecf911f8df5a6d9e230e4d1ec73b4db
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
241
sce
ex_16_7.sce
//Example 16.7 : conductivity clc; clear; close; //given data : e=1.602*10^-19; n_i=5.021*10^15; // in m^-3 mu_n=0.48;// in m^2/V-sec mu_p=0.013;// in m^2/V-sec sigma=n_i*(e*(mu_n+mu_p)); disp(sigma,"the conductivity,sigma(ohm^-1 m^-1) = ")
2d60d2c07f166598ea889814e528def996d818ae
449d555969bfd7befe906877abab098c6e63a0e8
/1580/CH3/EX3.2/Ch03Ex2.sce
d237f0ef213eddf2e9a7ef41a3ff9a69aa8050b3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
404
sce
Ch03Ex2.sce
// Scilab Code Ex3.2 : Page-3.5(2004) clc;clear; r = 1; // For simplicity assume radius of atom to be unity, unit a = 4*r/sqrt(3); // Lattice constant, unit R = (a/2)-r; // R be the radius of interstitial sphere that can fit into void, unit printf ("\nMaximum Radius of sphere that can fit into BCC = %5.3fr", R); // Result // Maximum Radius of sphere that can fit into BCC = 0.155r
d0852387bdcd155cdbd692456c456cda21255211
449d555969bfd7befe906877abab098c6e63a0e8
/671/CH10/EX10.8/10_8.sce
e4760a2d21fd8ab3192b6bf5f2216a42ba458e03
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
256
sce
10_8.sce
V=115 Ia1=25 Ra=0.3 n1=1450 Ea1=V-Ia1*Ra Ke=Ea1/n1 n2=1200 Ea2=Ke*n2 Ia2=3/4*Ia1 Raext=(V-Ea2)/Ia2-Ra disp(Raext) effia=Ea2/V*100 ///calculation mistake in the book at this point disp(effia) V=Ea2+Ia2*Ra effia=Ea2/V*100 disp(effia)
4d20425e176f6de88666f4468e78bf3a41a99245
066fb3f5bd7112d8afa0d735e4fa42aa22e0ba2e
/Chapter-2/Ex2_3.sce
2df73e721bbb71f93c714970d4f1322665817701
[]
no_license
muthmano-dev/Digital-Image-Processing-By-Sridhar
65aad9933f7f389094bde15cd69f8f352de8f295
5cb1f8baebe57848955110027ad90ae8fdc5a326
refs/heads/master
2021-05-28T08:11:14.560393
2014-07-01T19:23:04
2014-07-01T19:23:04
21,346,647
3
0
null
null
null
null
UTF-8
Scilab
false
false
603
sce
Ex2_3.sce
//Example 2.3 //About : Program to calculate the Physical size of an Image //Input : None //Data Provided :Image width and height in pixels and the resolution of the Image //Output : Physical size of the Image in square inches clc; close; Num_of_pixels_in_width = 2400; // Given width of the image in pixels Num_of_pixels_in_height = 2400;//Given height of the image in pixels Resolution = 300 // Scanning resoltuion in DPI //The Physical size of the Image disp(string(Num_of_pixels_in_width/Resolution)+" inches x "+ string(Num_of_pixels_in_width/Resolution)+" inches","The physical size is = ")
5900a1f0809cbf8bd7b6946f63d6e309b1e751d9
449d555969bfd7befe906877abab098c6e63a0e8
/1319/CH1/EX1.17/1_17.sce
7ce177a6f9265f018f1974a114fac5ec6dd8f76f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
722
sce
1_17.sce
//Expression for the sum of energy stored by inductor and capacitor connected in series at resonance clc; clear; printf(' i= Im*cos(w0)*t\n') printf(' The energy stored is L*(i^2)/2 = L*(Im^2)*(cos(w0*t)^2) \n\n') printf(' The energy stored in the capacitor (q^2)/2C = 1/2C * (Im^2)*[integration of i wrt dt from 0 to t]^2 \n') printf(' = 1/2C * (Im^2) *[integration of cos(w0*t) wrt dt from 0 to t]^2\n') printf(' = 1/2C * (Im^2) *[(sin(w0*t)/w0) limits 0 to t]^2\n') printf(' = (Im^2)/2 * L * (sin(w0*t)^2)\n\n') printf('Therefore total energy = L*(Im^2)/2 * [(cos(w0*t)^2)+(sin(w0*t)^2)]\n') printf(' = (Im^2)*L/2\n') printf(' = L*(I^2)\n')
feebececa7f5fa113df72d8e302ed69a86d09209
1b969fbb81566edd3ef2887c98b61d98b380afd4
/Rez/bivariate-lcmsr-post_mi/bfas_ci_bfa_mt/~BivLCM-SR-bfas_ci_bfa_mt-PLin-VLin.tst
56fbe73c115ca96c3dd583b52079d593d8570c3a
[]
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_ci_bfa_mt-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.341620D+00 2 -0.406007D-02 0.274560D-02 3 -0.236279D-01 -0.123096D-02 0.403042D+00 4 -0.110877D-02 -0.334596D-03 -0.534458D-02 0.340085D-02 5 -0.260883D-03 -0.887343D-04 -0.194770D-02 0.585795D-04 0.245152D-02 6 -0.337295D-03 -0.171410D-05 0.105249D-02 -0.169569D-03 0.287114D-03 7 0.695837D-04 -0.589079D-04 0.186171D-02 -0.222206D-03 -0.560226D-04 8 0.174183D-02 -0.575575D-05 0.125036D-03 0.115616D-03 -0.326236D-04 9 -0.574586D+00 0.249885D-01 -0.443781D+00 0.331908D-01 0.177464D+00 10 -0.117859D+00 -0.137757D-01 0.108215D+00 0.526637D-02 0.138084D+00 11 -0.870615D-01 0.202708D-01 -0.165764D+00 -0.161450D-01 -0.353639D-01 12 -0.261434D+00 -0.206942D-02 0.417572D+00 0.995528D-02 -0.102644D-01 13 -0.365330D-01 -0.689978D-02 0.163943D+00 -0.150233D-01 0.100960D-03 14 0.239568D+00 -0.207479D-01 0.164798D+00 0.430170D-02 -0.541278D-03 15 -0.176851D+01 -0.755158D-01 -0.502742D-01 -0.472031D-01 -0.138200D+00 16 -0.407581D-01 -0.273556D-02 -0.105877D-01 -0.115373D-02 0.259419D-02 17 0.945797D-02 0.458773D-03 0.227594D-02 0.375740D-03 -0.597483D-03 18 -0.183298D+00 -0.198567D-01 0.114451D+00 -0.669816D-01 0.786960D-02 19 0.166273D-01 0.736332D-02 0.708266D-01 0.527476D-02 -0.829429D-02 20 0.542659D+00 -0.202928D-01 0.122964D+01 -0.197357D-01 -0.423425D-01 21 -0.302687D-01 -0.839092D-02 -0.851002D-01 -0.109500D-03 0.404639D-02 22 0.209546D-02 0.259095D-03 0.459414D-02 0.850701D-03 0.160642D-03 23 0.198683D-01 0.160098D-02 -0.744975D-02 0.990879D-02 -0.128173D-02 24 -0.104394D-02 0.499873D-03 0.487208D-02 0.246631D-03 0.232747D-03 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 6 7 8 9 10 ________ ________ ________ ________ ________ 6 0.101969D-02 7 0.774045D-03 0.260549D-02 8 -0.657774D-04 0.571547D-03 0.350307D-02 9 -0.117898D-01 -0.118474D-01 0.757762D-02 0.113690D+03 10 0.381514D-01 0.122386D-01 0.829862D-02 0.118725D+02 0.220633D+02 11 0.324606D-01 0.240380D-01 0.241963D-01 -0.658417D+01 -0.151675D+01 12 -0.401896D-02 0.744139D-02 0.791658D-01 0.264143D+01 0.234315D+01 13 0.633946D-01 0.108051D+00 0.679055D-02 -0.257537D+01 0.265190D+01 14 0.565315D-02 0.866433D-01 0.358065D+00 0.124407D+00 0.543797D+01 15 -0.444970D-01 0.445118D-02 0.197274D-01 -0.177403D+02 -0.154208D+02 16 -0.778309D-03 -0.228333D-02 -0.135314D-02 0.171605D+01 0.785003D-01 17 0.146342D-03 0.280099D-03 0.956823D-04 -0.329012D+00 -0.306473D-01 18 -0.517284D-01 -0.107904D+00 -0.558836D-01 0.229203D+01 -0.283347D+01 19 -0.121660D-01 0.565111D-03 -0.110939D-01 0.844985D+00 -0.124129D+01 20 -0.107444D-01 -0.628548D-01 -0.295848D+00 -0.119452D+02 -0.514425D+01 21 0.123956D-01 -0.202130D-02 0.110922D-01 -0.135326D+01 0.120062D+01 22 -0.167789D-03 -0.784053D-04 0.428257D-03 0.255162D-01 0.131872D-01 23 0.252715D-03 0.120111D-02 -0.717505D-03 -0.395574D+00 -0.109479D+00 24 -0.571839D-04 -0.231034D-03 -0.100904D-03 0.952120D-01 0.209154D-01 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 11 12 13 14 15 ________ ________ ________ ________ ________ 11 0.414870D+02 12 -0.665501D+01 0.105545D+03 13 -0.191129D+01 -0.157632D+01 0.152320D+02 14 0.118480D+01 0.671572D+01 0.285104D+01 0.677516D+02 15 0.997249D+01 0.411556D+01 -0.283665D+01 0.200292D+01 0.305234D+03 16 -0.156509D+00 -0.406275D+00 -0.108518D+00 -0.120137D+00 0.236709D+01 17 -0.462544D-01 -0.127327D-01 0.422917D-01 0.244750D-01 -0.147013D+01 18 -0.554261D+01 -0.419356D+01 -0.550288D+01 -0.136126D+01 -0.215684D+02 19 -0.295007D+00 -0.484454D+00 -0.481574D+00 -0.263100D+01 0.378973D+01 20 -0.904709D+01 -0.203590D+02 0.255767D+01 -0.484050D+02 0.247659D+02 21 0.764720D+00 -0.878178D-01 0.248653D+00 0.263222D+01 -0.390373D+01 22 -0.451636D-01 0.190607D-01 -0.158411D-01 0.171705D-01 -0.675957D-01 23 -0.363928D+00 0.600209D+00 0.771056D-01 -0.311523D+00 -0.700776D+00 24 0.250479D-01 -0.706651D-01 -0.279988D-01 -0.136842D-01 -0.101743D+00 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 16 17 18 19 20 ________ ________ ________ ________ ________ 16 0.569291D+00 17 -0.516326D-01 0.189281D-01 18 -0.452456D-01 -0.619707D-01 0.224884D+03 19 0.471799D-01 -0.315150D-01 0.398098D+01 0.529753D+01 20 0.757252D-01 -0.134226D+00 -0.222340D+02 0.148352D+01 0.443605D+03 21 -0.118286D+00 0.259589D-01 -0.160278D+01 -0.501457D+01 -0.273594D+01 22 -0.220624D-02 0.128384D-02 -0.100483D+01 -0.152820D-01 0.554239D-02 23 -0.230362D-01 0.430406D-02 -0.424239D+00 0.118616D+00 0.464076D+01 24 0.866375D-03 0.370998D-03 -0.365591D-01 0.894926D-02 -0.185058D+01 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 21 22 23 24 ________ ________ ________ ________ 21 0.608977D+01 22 -0.422184D-01 0.106908D-01 23 -0.210618D+00 0.272467D-02 0.717883D+00 24 -0.494390D-02 0.106508D-02 -0.625753D-01 0.191860D-01 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 1 2 3 4 5 ________ ________ ________ ________ ________ 1 1.000 2 -0.133 1.000 3 -0.064 -0.037 1.000 4 -0.033 -0.109 -0.144 1.000 5 -0.009 -0.034 -0.062 0.020 1.000 6 -0.018 -0.001 0.052 -0.091 0.182 7 0.002 -0.022 0.057 -0.075 -0.022 8 0.050 -0.002 0.003 0.033 -0.011 9 -0.092 0.045 -0.066 0.053 0.336 10 -0.043 -0.056 0.036 0.019 0.594 11 -0.023 0.060 -0.041 -0.043 -0.111 12 -0.044 -0.004 0.064 0.017 -0.020 13 -0.016 -0.034 0.066 -0.066 0.001 14 0.050 -0.048 0.032 0.009 -0.001 15 -0.173 -0.082 -0.005 -0.046 -0.160 16 -0.092 -0.069 -0.022 -0.026 0.069 17 0.118 0.064 0.026 0.047 -0.088 18 -0.021 -0.025 0.012 -0.077 0.011 19 0.012 0.061 0.048 0.039 -0.073 20 0.044 -0.018 0.092 -0.016 -0.041 21 -0.021 -0.065 -0.054 -0.001 0.033 22 0.035 0.048 0.070 0.141 0.031 23 0.040 0.036 -0.014 0.201 -0.031 24 -0.013 0.069 0.055 0.031 0.034 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 6 7 8 9 10 ________ ________ ________ ________ ________ 6 1.000 7 0.475 1.000 8 -0.035 0.189 1.000 9 -0.035 -0.022 0.012 1.000 10 0.254 0.051 0.030 0.237 1.000 11 0.158 0.073 0.063 -0.096 -0.050 12 -0.012 0.014 0.130 0.024 0.049 13 0.509 0.542 0.029 -0.062 0.145 14 0.022 0.206 0.735 0.001 0.141 15 -0.080 0.005 0.019 -0.095 -0.188 16 -0.032 -0.059 -0.030 0.213 0.022 17 0.033 0.040 0.012 -0.224 -0.047 18 -0.108 -0.141 -0.063 0.014 -0.040 19 -0.166 0.005 -0.081 0.034 -0.115 20 -0.016 -0.058 -0.237 -0.053 -0.052 21 0.157 -0.016 0.076 -0.051 0.104 22 -0.051 -0.015 0.070 0.023 0.027 23 0.009 0.028 -0.014 -0.044 -0.028 24 -0.013 -0.033 -0.012 0.064 0.032 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 11 12 13 14 15 ________ ________ ________ ________ ________ 11 1.000 12 -0.101 1.000 13 -0.076 -0.039 1.000 14 0.022 0.079 0.089 1.000 15 0.089 0.023 -0.042 0.014 1.000 16 -0.032 -0.052 -0.037 -0.019 0.180 17 -0.052 -0.009 0.079 0.022 -0.612 18 -0.057 -0.027 -0.094 -0.011 -0.082 19 -0.020 -0.020 -0.054 -0.139 0.094 20 -0.067 -0.094 0.031 -0.279 0.067 21 0.048 -0.003 0.026 0.130 -0.091 22 -0.068 0.018 -0.039 0.020 -0.037 23 -0.067 0.069 0.023 -0.045 -0.047 24 0.028 -0.050 -0.052 -0.012 -0.042 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 16 17 18 19 20 ________ ________ ________ ________ ________ 16 1.000 17 -0.497 1.000 18 -0.004 -0.030 1.000 19 0.027 -0.100 0.115 1.000 20 0.005 -0.046 -0.070 0.031 1.000 21 -0.064 0.076 -0.043 -0.883 -0.053 22 -0.028 0.090 -0.648 -0.064 0.003 23 -0.036 0.037 -0.033 0.061 0.260 24 0.008 0.019 -0.018 0.028 -0.634 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 21 22 23 24 ________ ________ ________ ________ 21 1.000 22 -0.165 1.000 23 -0.101 0.031 1.000 24 -0.014 0.074 -0.533 1.000
adbaf1e02508db25c8fe93f130d8b7c840e76a07
449d555969bfd7befe906877abab098c6e63a0e8
/1592/CH2/EX2.21/Example_2_21.sce
2c3dcc584bf7ae56b29d2dc95a0cbed1a8933baa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
348
sce
Example_2_21.sce
//Scilab Code for Example 2.21 of Signals and systems by //P.Ramakrishna Rao //Z- transform of a^n u(n) clear; clc ; close ; syms a n z; x1 =1/2; x2=1/3; X1= symsum (x1*(z^(-n)),n ,0, %inf ); X2= symsum (x2*(z^(-n)),n ,0, %inf ); X=X1+X2; //Display the result disp (X,"Z-transform of u(n) is:"); disp('ROC is the Region |z|> 1/2');
559e6a34042726ad9f43e8fac00ae5a425458e74
449d555969bfd7befe906877abab098c6e63a0e8
/10/CH10/EX4/cha10_4.sce
610a802fc181253a402a4cb3a17be72913846abf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
153
sce
cha10_4.sce
OutP=100*0.746;Eff=0.8; Pf=0.85;V=460; S=OutP/(Eff*Pf) Il=S/(sqrt(3)*V) Ip=Il/sqrt(3) Is=Ip/sqrt(2) Vs=sqrt(2)*V Angle=acosd(Pf)
71fcea123d9165a0e14a4facd996f14e2bf1bb71
527c41bcbfe7e4743e0e8897b058eaaf206558c7
/final tst file - user manual/MatrixOperations.tst
9ec94902bab30cf2172b87a889b8d90a8e6b84b9
[]
no_license
kamleshm/intern_fuzzy
c2dd079bf08bede6bca79af898036d7a538ab4e2
aaef3c9dc9edf3759ef0b981597746d411d05d34
refs/heads/master
2021-01-23T06:25:46.162332
2017-07-12T07:12:25
2017-07-12T07:12:25
93,021,923
0
0
null
null
null
null
UTF-8
Scilab
false
false
9,855
tst
MatrixOperations.tst
--INFO: Reading startup configuration from file PulsarLogOn.act_ssl_config -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Teradata Aster -- -- Copyright (c): 2016 Fuzzy Logix, LLC -- -- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC. -- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC. -- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade -- secret or copyright law. Dissemination of this information or reproduction of this material is -- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC. -- Functional Test Specifications: -- -- Test Category: Matrix Operations -- -- Last Updated: 05-30-2017 -- -- Author: <kamlesh.meena@fuzzyl.com> -- -- BEGIN: TEST SCRIPT -----**************************************************************** ---FLMatrixDet -----**************************************************************** SELECT p.Matrix_ID,p.Determinant FROM ( SELECT a.Matrix_ID AS Matrix_ID, FLMatrixDet(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS Determinant FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ) AS p WHERE p.Determinant IS NOT NULL; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMatrixInv -----**************************************************************** SELECT a.Row_ID, a.Col_ID, FLMatrixInv(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS Inverse FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ORDER BY 1, 2; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMatrixRREF -----**************************************************************** SELECT a.Row_ID, a.Col_ID, FLMatrixRREF(a.Row_ID, a.Col_ID, a.Cell_Val, 2) OVER (PARTITION BY Matrix_ID) AS RREF FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ORDER BY 1, 2; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMtxInvUdt -----**************************************************************** SELECT f.* FROM ( SELECT a.Row_ID, a.Col_ID, a.Cell_Val, NVL(LAG(0) OVER (PARTITION BY 1 ORDER BY a.Row_ID, a.Col_ID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY 1 ORDER BY a.Row_ID, a.Col_ID), 1) AS end_flag FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ) AS t, TABLE ( FLMtxInvUdt(t.Row_ID, t.Col_ID, t.Cell_Val, t.begin_flag, t.end_flag) ) AS f; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLMatrixInvStr -----**************************************************************** SELECT FLMatrixInvStr(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) FROM tblMatrixMulti a WHERE a.Matrix_ID = 5; ------------------------------------------------------------------------------------- SELECT FLMatrixRow(p.Inverse) AS Row, FLMatrixCol(p.Inverse) AS Col, FLMatrixVal(p.Inverse) AS Inverse FROM( SELECT FLMatrixInvStr(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS Inverse FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ) AS p; ------------------------------------------------------------------------------------- -----**************************************************************** ---Transpose of a Matrix -----**************************************************************** SELECT a.Col_ID AS Row, a.Row_ID As Col, a.Cell_Val AS Transpose FROM tblMatrixMulti a WHERE a.Matrix_ID=5 ORDER BY 1, 2; ------------------------------------------------------------------------------------- -----**************************************************************** ---Product of Two Matrices -----**************************************************************** TRUNCATE TABLE tblMatrixResult; INSERT INTO tblMatrixResult SELECT a.Row_ID, a.Col_ID, FLMatrixInv(a.Row_ID, a.Col_ID, a.CELL_VAL) OVER (PARTITION BY 1) AS Inverse FROM tblMatrixMulti a WHERE a.Matrix_ID=5 ORDER BY 1, 2; SELECT a.Row_ID, b.Col_ID, FLSumProd(a.CELL_VAL, b.CELL_VAL) AS Product FROM tblMatrixResult a, tblMatrixMulti b WHERE a.Col_ID = b.Row_ID AND b.Matrix_ID=5 GROUP BY a.Row_ID, b.Col_ID ORDER BY 1, 2; ------------------------------------------------------------------------------------- SELECT a.Row_ID, b.Col_ID, CASE WHEN ABS(FLSumProd(a.Cell_Val, b.Cell_Val)) < 1e-15 THEN 0 ELSE FLSumProd(a.Cell_Val, b.Cell_Val) END FROM tblMatrixResult a, tblMatrixMulti b WHERE a.Col_ID = b.Row_ID AND b.Matrix_ID=5 GROUP BY a.Row_ID, b.Col_ID ORDER BY 1, 2; -----**************************************************************** ---FLEigenValue -----**************************************************************** SELECT a.Row_ID, a.Col_ID, FLEigenValue(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS EigenValue FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ORDER BY 1, 2; ------------------------------------------------------------------------------------- -- If we are interested in only the non-zero values in the Eigen Value matrix SELECT p.* FROM ( SELECT a.Row_ID, a.Col_ID, FLEigenValue(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS EigenValue FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ) as p WHERE p.Row_ID = p.Col_ID ORDER BY 1, 2; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLEigenValueStr -----**************************************************************** SELECT FLMatrixRow(p.EigenValue) AS Row, FLMatrixCol(p.EigenValue) AS Col, FLMatrixVal(p.EigenValue) AS EigenValue FROM ( SELECT FLEigenValueStr(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS EigenValue FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ) AS p ORDER BY 1, 2; ------------------------------------------------------------------------------------- SELECT FLEigenValueStr(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) FROM tblMatrixMulti a WHERE a.Matrix_ID = 5; ------------------------------------------------------------------------------------- SELECT FLMatrixRow(p.EigenValue) AS Row, FLMatrixCol(p.EigenValue) AS Col, FLMatrixVal(p.EigenValue) AS EigenValue FROM ( SELECT FLEigenValueStr(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS EigenValue FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ) AS p; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLEigenVector -----**************************************************************** SELECT a.Row_ID, a.Col_ID, FLEigenVector(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS EigenVector FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ORDER BY 1, 2; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLEigenVectorStr -----**************************************************************** SELECT FLEigenVectorStr(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) FROM tblMatrixMulti a WHERE a.Matrix_ID = 5; ------------------------------------------------------------------------------------- SELECT FLMatrixRow(p.EigenVector) AS Row, FLMatrixCol(p.EigenVector) AS Col, FLMatrixVal(p.EigenVector) AS EigenVector FROM( SELECT FLEigenVectorStr(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS EigenVector FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ) AS p ORDER BY 1, 2; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLEigenSystemUDT -----**************************************************************** SELECT a.* FROM ( SELECT a.Row_ID, a.Col_ID, a.Cell_Val, NVL(LAG(0) OVER(PARTITION BY a.Matrix_ID ORDER BY a.Row_ID, a.Col_ID),1) AS Begin_flag, NVL(LEAD(0) OVER(PARTITION BY a.Matrix_ID ORDER BY a.Row_ID, a.Col_ID),1) AS End_flag FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ) AS z, TABLE (FLEigenSystemUDT(z.Row_ID, z.Col_ID, z.Cell_Val, z.Begin_Flag, z.End_Flag) ) AS a ORDER BY 1,2,3; ------------------------------------------------------------------------------------- -----**************************************************************** ---FLEigenSystemStr -----**************************************************************** SELECT FLEigenSystemStr(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) FROM tblMatrixMulti a WHERE a.Matrix_ID = 5; ------------------------------------------------------------------------------------- SELECT FLMatrixRow(p.EigenSystem) AS Row, FLMatrixCol(p.EigenSystem) AS Col, FLEigenValue(Row,Col,FLMatrixVal(p.EigenSystem)) OVER (PARTITION BY 1) AS EigenValue, FLEigenVector(Row,Col,FLMatrixVal(p.EigenSystem)) OVER (PARTITION BY 1) AS EigenVector FROM ( SELECT FLEigenSystemStr(a.Row_ID, a.Col_ID, a.Cell_Val) OVER (PARTITION BY 1) AS EigenSystem FROM tblMatrixMulti a WHERE a.Matrix_ID = 5 ) AS p ORDER BY 1,2;
a0669e7169b42aa1454bf75f869817f248f5da9e
ad617742f184bf6d4cceb3e9c99232d8bd52b862
/tests/bfp-002-loadr.tst
c791fe8b5c60f4125151b39a50d43f9c78086f96
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "BSD-2-Clause" ]
permissive
9track/hyperion
d621343e7eea27c45db49c7c284dd1680491c82c
9ceed2cc7261820eef01c55dac9b9a6ae47636b2
refs/heads/master
2022-09-15T12:19:09.059528
2020-05-28T03:05:29
2020-05-28T03:05:29
268,044,749
3
1
NOASSERTION
2020-05-30T09:03:56
2020-05-30T09:03:55
null
UTF-8
Scilab
false
false
49,042
tst
bfp-002-loadr.tst
*Testcase bfp-002-loadr.tst: LEDBR, LEDB, LEXBR, LEXB, LDXBR, LDXB #Testcase bfp-002-loadr.tst: IEEE Load Rounded #..Includes LOAD ROOUNDED (6). Tests traps, exceptions, results #..from all rounding modes, and NaN propagation. sysclear archmode esame # # Following suppresses logging of program checks. This test program, as part # of its normal operation, generates 51 program check messages that have no # value in the validation process. (The messages, not the program checks.) # ostailor quiet loadcore "$(testpath)/bfp-002-loadr.core" runtest 1.0 ostailor default # restore messages for subsequent tests # Long BFP Inputs converted to short BFP *Compare r 1000.10 *Want "LEDBR result pairs 1-2" 00000000 00000000 3FC00000 3FC00000 r 1010.10 *Want "LEDBR result pairs 3-4" BFC00000 BFC00000 7FC08000 00000000 r 1020.10 *Want "LEDBR result pairs 5-6" 7FC08800 7FC08800 7F800000 27F00000 r 1030.10 *Want "LEDBR result pairs 7-8" FF800000 A7F00000 7F800000 27FFFFFF r 1040.10 *Want "LEDBR result pairs 9-10" FF800000 A7FFFFFF 00000000 56900000 r 1050.10 *Want "LEDBR result pairs 11-12" 80000000 D6900000 7F800000 27F00000 r 1060.08 *Want "LEDBR result pair 13" FF800000 A7F00000 # Long BFP inputs converted to short BFP - FPC *Compare r 1080.10 *Want "LEDBR FPCR pairs 1-2" 00000000 F8000000 00000000 F8000000 r 1090.10 *Want "LEDBR FPCR pairs 3-4" 00000000 F8000000 00800000 F8008000 r 10A0.10 *Want "LEDBR FPCR pairs 5-6" 00000000 F8000000 00280000 F8002C00 r 10B0.10 *Want "LEDBR FPCR pairs 7-8" 00280000 F8002C00 00280000 F8002800 r 10C0.10 *Want "LEDBR FPCR pairs 9-10" 00280000 F8002800 00180000 F8001000 r 10D0.10 *Want "LEXBR FPCR pairs 11-12" 00180000 F8001000 00280000 F8002000 r 10E0.08 *Want "LEXBR FPCR pair 13" 00280000 F8002000 # Long BFP inputs, trappable overflow/underflow tests r 3000.10 *Want "LEDBR trap results 1-2" 27F00000 00000000 A7F00000 00000000 r 3010.10 *Want "LEDBR trap results 3-4" 27FFFFFF E0000000 A7FFFFFF E0000000 r 3020.10 *Want "LEDBR trap results 5-6" 56900000 00000000 D6900000 00000000 r 3030.10 *Want "LEDBR trap results 7-8" 27F00000 00000000 A7F00000 00000000 # Long BFP inputs, trappable overflow/underflow tests - FPC r 3080.10 *Want "LEDBR trap FPCR 1-4" F8002C00 F8002C00 F8002800 F8002800 r 3090.10 *Want "LEDBR trap FPCR 5-8" F8001000 F8001000 F8002000 F8002000 # Long BFP Inputs converted to short BFP - rounding mode test results *Compare r 1100.10 # RZ, RP, RM, RFS *Want "LEDBRA +exact FPCR modes 1-3, 7" 3FFFFFFF 3FFFFFFF 3FFFFFFF 3FFFFFFF r 1110.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +exact M3 modes 1, 3-5" 3FFFFFFF 3FFFFFFF 3FFFFFFF 3FFFFFFF r 1120.08 # RP, RM *Want "LEDBRA +exact M3 modes 6, 7" 3FFFFFFF 3FFFFFFF *Compare r 1130.10 # RZ, RP, RM, RFS *Want "LEDBRA -exact FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF BFFFFFFF BFFFFFFF r 1140.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -exact M3 modes 1, 3-5" BFFFFFFF BFFFFFFF BFFFFFFF BFFFFFFF r 1150.08 # RP, RM *Want "LEDBRA -exact M3 modes 6, 7" BFFFFFFF BFFFFFFF *Compare r 1160.10 # RZ, RP, RM, RFS *Want "LEDBRA +tie odd FPCR modes 1-3, 7" 3FFFFFFF 40000000 3FFFFFFF 3FFFFFFF r 1170.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +tie odd M3 modes 1, 3-5" 40000000 3FFFFFFF 40000000 3FFFFFFF r 1180.08 # RP, RM *Want "LEDBRA +tie odd M3 modes 6, 7" 40000000 3FFFFFFF *Compare r 1190.10 # RZ, RP, RM, RFS *Want "LEDBRA -tie odd FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF C0000000 BFFFFFFF r 11A0.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -tie odd M3 modes 1, 3-5" C0000000 BFFFFFFF C0000000 BFFFFFFF r 11B0.08 # RP, RM *Want "LEDBRA -tie odd M3 modes 6, 7" BFFFFFFF C0000000 *Compare r 11C0.10 # RZ, RP, RM, RFS *Want "LEDBRA +tie even FPCR modes 1-3, 7" 3FFFFFFE 3FFFFFFF 3FFFFFFE 3FFFFFFF r 11D0.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +tie even M3 modes 1, 3-5" 3FFFFFFF 3FFFFFFF 3FFFFFFE 3FFFFFFE r 11E0.08 # RP, RM *Want "LEDBRA +tie even M3 modes 6, 7" 3FFFFFFF 3FFFFFFE *Compare r 11F0.10 # RZ, RP, RM, RFS *Want "LEDBRA -tie even FPCR modes 1-3, 7" BFFFFFFE BFFFFFFE BFFFFFFF BFFFFFFF r 1200.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -tie even M3 modes 1, 3-5" BFFFFFFF BFFFFFFF BFFFFFFE BFFFFFFE r 1210.08 # RP, RM *Want "LEDBRA -tie even M3 modes 6, 7" BFFFFFFE BFFFFFFF *Compare r 1220.10 # RZ, RP, RM, RFS *Want "LEDBRA +false exact FPCR modes 1-3, 7" 3FFFFFFF 40000000 3FFFFFFF 3FFFFFFF r 1230.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +false exact M3 modes 1, 3-5" 3FFFFFFF 3FFFFFFF 3FFFFFFF 3FFFFFFF r 1240.08 # RP, RM *Want "LEDBRA +false exact M3 modes 6, 7" 40000000 3FFFFFFF *Compare r 1250.10 # RZ, RP, RM, RFS *Want "LEDBRA -false exact FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF C0000000 BFFFFFFF r 1260.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -false exact M3 modes 1, 3-5" BFFFFFFF BFFFFFFF BFFFFFFF BFFFFFFF r 1270.08 # RP, RM *Want "LEDBRA -false exact M3 modes 6, 7" BFFFFFFF C0000000 *Compare r 1280.10 # RZ, RP, RM, RFS *Want "LEDBRA +near zero FPCR modes 1-3, 7" 3FFFFFFF 40000000 3FFFFFFF 3FFFFFFF r 1290.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +near zero M3 modes 1, 3-5" 3FFFFFFF 3FFFFFFF 3FFFFFFF 3FFFFFFF r 12A0.08 # RP, RM *Want "LEDBRA +near zero M3 modes 6, 7" 40000000 3FFFFFFF *Compare r 12B0.10 # RZ, RP, RM, RFS *Want "LEDBRA -near zero FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF C0000000 BFFFFFFF r 12C0.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -near zero M3 modes 1, 3-5" BFFFFFFF BFFFFFFF BFFFFFFF BFFFFFFF r 12D0.08 # RP, RM *Want "LEDBRA -near zero M3 modes 6, 7" BFFFFFFF C0000000 *Compare r 12E0.10 # RZ, RP, RM, RFS *Want "LEDBRA +near +inf FPCR modes 1-3, 7" 3FFFFFFF 40000000 3FFFFFFF 3FFFFFFF r 12F0.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +near +inf M3 modes 1, 3-5" 40000000 3FFFFFFF 40000000 3FFFFFFF r 1300.08 # RP, RM *Want "LEDBRA +near +inf M3 modes 6, 7" 40000000 3FFFFFFF *Compare r 1310.10 # RZ, RP, RM, RFS *Want "LEDBRA -near -inf FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF C0000000 BFFFFFFF r 1320.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -near -inf M3 modes 1, 3-5" C0000000 BFFFFFFF C0000000 BFFFFFFF r 1330.08 # RP, RM *Want "LEDBRA -near -inf M3 modes 6, 7" BFFFFFFF C0000000 *Compare r 1340.10 # RZ, RP, RM, RFS *Want "LEDBRA +overflow FPCR modes 1-3, 7" 7F7FFFFF 7F800000 7F7FFFFF 7F7FFFFF r 1350.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +overflow M3 modes 1, 3-5" 7F800000 7F7FFFFF 7F800000 7F7FFFFF r 1360.08 # RP, RM *Want "LEDBRA +overflow M3 modes 6, 7" 7F800000 7F7FFFFF *Compare r 1370.10 # RZ, RP, RM, RFS *Want "LEDBRA -overflow FPCR modes 1-3, 7" FF7FFFFF FF7FFFFF FF800000 FF7FFFFF r 1380.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -overflow M3 modes 1, 3-5" FF800000 FF7FFFFF FF800000 FF7FFFFF r 1390.08 # RP, RM *Want "LEDBRA -overflow M3 modes 6, 7" FF7FFFFF FF800000 *Compare r 13A0.10 # RZ, RP, RM, RFS *Want "LEDBRA +tiny tie odd FPCR modes 1-3, 7" 00000000 00000001 00000000 00000001 r 13B0.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +tiny tie odd M3 modes 1, 3-5" 00000001 00000001 00000000 00000000 r 13C0.08 # RP, RM *Want "LEDBRA +tiny tie odd M3 modes 6, 7" 00000001 00000000 *Compare r 13D0.10 # RZ, RP, RM, RFS *Want "LEDBRA -tiny tie odd FPCR modes 1-3, 7" 80000000 80000000 80000001 80000001 r 13E0.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -tiny tie odd M3 modes 1, 3-5" 80000001 80000001 80000000 80000000 r 13F0.08 # RP, RM *Want "LEDBRA -tiny tie odd M3 modes 6, 7" 80000000 80000001 # Long BFP Inputs converted to short BFP - rounding mode tests - FPCR contents *Compare r 1500.10 *Want "LEDBRA +exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1510.10 *Want "LEDBRA +exact M3 modes 1, 3-5 FPCR" 00000000 00000000 00000000 00000000 r 1520.08 *Want "LEDBRA +exact M3 modes 6, 7 FCPR" 00000000 00000000 r 1530.10 *Want "LEDBRA -exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1540.10 *Want "LEDBRA -exact M3 modes 1, 3-5 FPCR" 00000000 00000000 00000000 00000000 r 1550.08 *Want "LEDBRA -exact M3 modes 6, 7 FCPR" 00000000 00000000 r 1560.10 *Want "LEDBRA +tie odd FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1570.10 *Want "LEDBRA +tie odd M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1580.08 *Want "LEDBRA +tie odd M3 modes 6, 7 FCPR" 00080000 00080000 r 1590.10 *Want "LEDBRA -tie odd FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 15A0.10 *Want "LEDBRA -tie odd M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 15B0.08 *Want "LEDBRA -tie odd M3 modes 6, 7 FCPR" 00080000 00080000 r 15C0.10 *Want "LEDBRA +tie even FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 15D0.10 *Want "LEDBRA +tie even M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 15E0.08 *Want "LEDBRA +tie even M3 modes 6, 7 FCPR" 00080000 00080000 r 15F0.10 *Want "LEDBRA -tie even FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1600.10 *Want "LEDBRA -tie even M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1610.08 *Want "LEDBRA -tie even M3 modes 6, 7 FCPR" 00080000 00080000 r 1620.10 *Want "LEDBRA +false exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1630.10 *Want "LEDBRA +false exact M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1640.08 *Want "LEDBRA +false exact M3 modes 6, 7 FCPR" 00080000 00080000 r 1650.10 *Want "LEDBRA -false exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1660.10 *Want "LEDBRA -false exact M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1670.08 *Want "LEDBRA -false exact M3 modes 6, 7 FCPR" 00080000 00080000 r 1680.10 *Want "LEDBRA +near zero FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1690.10 *Want "LEDBRA +near zero M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 16A0.08 *Want "LEDBRA +near zero M3 modes 6, 7 FCPR" 00080000 00080000 r 16B0.10 *Want "LEDBRA -near zero FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 16C0.10 *Want "LEDBRA -near zero M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 16D0.08 *Want "LEDBRA -near zero M3 modes 6, 7 FCPR" 00080000 00080000 r 16E0.10 *Want "LEDBRA +near +inf FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 16F0.10 *Want "LEDBRA +near +inf M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1700.08 *Want "LEDBRA +near +inf M3 modes 6, 7 FCPR" 00080000 00080000 r 1710.10 *Want "LEDBRA -near -inf FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1720.10 *Want "LEDBRA -near -inf M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1730.08 *Want "LEDBRA -near -inf M3 modes 6, 7 FCPR" 00080000 00080000 *Compare r 1740.10 # RZ, RP, RM, RFS *Want "LEDBRA +overflow FPCR modes 1-3, 7 FPCR" 00000001 00200002 00000003 00000007 r 1750.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +overflow M3 modes 1, 3-5 FPCR" 00280000 00080000 00280000 00080000 r 1760.08 # RP, RM *Want "LEDBRA +overflow M3 modes 6, 7 FPCR" 00280000 00080000 *Compare r 1770.10 # RZ, RP, RM, RFS *Want "LEDBRA -overflow FPCR modes 1-3, 7 FPCR" 00000001 00000002 00200003 00000007 r 1780.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -overflow M3 modes 1, 3-5 FPCR" 00280000 00080000 00280000 00080000 r 1790.08 # RP, RM *Want "LEDBRA -overflow M3 modes 6, 7 FPCR" 00080000 00280000 *Compare r 17A0.10 # RZ, RP, RM, RFS *Want "LEDBRA +tiny tie odd FPCR modes 1-3, 7 FPCR" 00100001 00100002 00100003 00100007 r 17B0.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA +tiny tie odd M3 modes 1, 3-5 FPCR" 00180000 00180000 00180000 00180000 r 17C0.08 # RP, RM *Want "LEDBRA +tiny tie odd M3 modes 6, 7 FPCR" 00180000 00180000 *Compare r 17D0.10 # RZ, RP, RM, RFS *Want "LEDBRA -tiny tie odd FPCR modes 1-3, 7 FPCR" 00100001 00100002 00100003 00100007 r 17E0.10 # RNTA, RFS, RNTE, RZ *Want "LEDBRA -tiny tie odd M3 modes 1, 3-5 FPCR" 00180000 00180000 00180000 00180000 r 17F0.08 # RP, RM *Want "LEDBRA -tiny tie odd M3 modes 6, 7 FPCR" 00180000 00180000 # Extended BFP inputs rounded to short BFP *Compare r 1900.10 *Want "LEXBR result pairs 1-2" 00000000 00000000 3FC00000 3FC00000 r 1910.10 *Want "LEXBR result pairs 3-4" BFC00000 BFC00000 7FC08000 00000000 r 1920.10 *Want "LEXBR result pairs 5-6" 7FC08800 7FC08800 7F800000 207F0000 r 1930.10 *Want "LEXBR result pairs 7-8" FF800000 A07F0000 7F800000 207FFFFF r 1940.10 *Want "LEXBR result pairs 9-10" FF800000 A07FFFFF 00000000 5F690000 r 1950.10 *Want "LEXBR result pair 11-12" 80000000 DF690000 7F800000 207F0000 r 1960.08 *Want "LEXBR result pair 13" FF800000 A07F0000 # Extended BFP inputs rounded to short BFP - FPCR contents *Compare r 1980.10 *Want "LEXBR FPCR pairs 1-2" 00000000 F8000000 00000000 F8000000 r 1990.10 *Want "LEXBR FPCR pairs 3-4" 00000000 F8000000 00800000 F8008000 r 19A0.10 *Want "LEXBR FPCR pairs 5-6" 00000000 F8000000 00280000 F8002C00 r 19B0.10 *Want "LEXBR FPCR pairs 7-8" 00280000 F8002C00 00280000 F8002800 r 19C0.10 *Want "LEXBR FPCR pairs 9-10" 00280000 F8002800 00180000 F8001000 r 19D0.10 *Want "LEXBR FPCR pairs 11-12" 00180000 F8001000 00280000 F8002000 r 19E0.08 *Want "LEXBR FPCR pair 13" 00280000 F8002000 # Extended BFP inputs, short results, trappable overflow/underflow tests r 3100.10 *Want "LEXBR trap results 1" 207F0000 00000000 00000000 00000000 r 3110.10 *Want "LEXBR trap results 2" A07F0000 00000000 00000000 00000000 r 3120.10 *Want "LEXBR trap results 3" 207FFFFF FE000000 00000000 00000000 r 3130.10 *Want "LEXBR trap results 4" A07FFFFF FE000000 00000000 00000000 r 3140.10 *Want "LEXBR trap results 5" 5F690000 00000000 00000000 00000000 r 3150.10 *Want "LEXBR trap results 6" DF690000 00000000 00000000 00000000 r 3160.10 *Want "LEXBR trap results 7" 207F0000 00000000 00000000 00000000 r 3170.10 *Want "LEXBR trap results 8" A07F0000 00000000 00000000 00000000 # Extended BFP inputs, trappable overflow/underflow tests - FPC r 3180.10 *Want "LEXBR trap FPCR 1-4" F8002C00 F8002C00 F8002800 F8002800 r 3190.10 *Want "LEXBR trap FPCR 5-8" F8001000 F8001000 F8002000 F8002000 # Extended BFP inputs rounded to short BFP - rounding mode test results *Compare r 1A00.10 # RZ, RP, RM, RFS *Want "LEXBRA +exact FPCR modes 1-3, 7" 3FFFFFFF 3FFFFFFF 3FFFFFFF 3FFFFFFF r 1A10.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +exact M3 modes 1, 3-5" 3FFFFFFF 3FFFFFFF 3FFFFFFF 3FFFFFFF r 1A20.08 # RP, RM *Want "LEXBRA +exact M3 modes 6, 7" 3FFFFFFF 3FFFFFFF *Compare r 1A30.10 # RZ, RP, RM, RFS *Want "LEXBRA -exact FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF BFFFFFFF BFFFFFFF r 1A40.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -exact M3 modes 1, 3-5" BFFFFFFF BFFFFFFF BFFFFFFF BFFFFFFF r 1A50.08 # RP, RM *Want "LEXBRA -exact M3 modes 6, 7" BFFFFFFF BFFFFFFF *Compare r 1A60.10 # RZ, RP, RM, RFS *Want "LEXBRA +tie odd FPCR modes 1-3, 7" 3FFFFFFF 40000000 3FFFFFFF 3FFFFFFF r 1A70.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +tie odd M3 modes 1, 3-5" 40000000 3FFFFFFF 40000000 3FFFFFFF r 1A80.08 # RP, RM *Want "LEXBRA +tie odd M3 modes 6, 7" 40000000 3FFFFFFF *Compare r 1A90.10 # RZ, RP, RM, RFS *Want "LEXBRA -tie odd FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF C0000000 BFFFFFFF r 1AA0.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -tie odd M3 modes 1, 3-5" C0000000 BFFFFFFF C0000000 BFFFFFFF r 1AB0.08 # RP, RM *Want "LEXBRA -tie odd M3 modes 6, 7" BFFFFFFF C0000000 *Compare r 1AC0.10 # RZ, RP, RM, RFS *Want "LEXBRA +tie even FPCR modes 1-3, 7" 3FFFFFFE 3FFFFFFF 3FFFFFFE 3FFFFFFF r 1AD0.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +tie even M3 modes 1, 3-5" 3FFFFFFF 3FFFFFFF 3FFFFFFE 3FFFFFFE r 1AE0.08 # RP, RM *Want "LEXBRA +tie even M3 modes 6, 7" 3FFFFFFF 3FFFFFFE *Compare r 1AF0.10 # RZ, RP, RM, RFS *Want "LEXBRA -tie even FPCR modes 1-3, 7" BFFFFFFE BFFFFFFE BFFFFFFF BFFFFFFF r 1B00.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -tie even M3 modes 1, 3-5" BFFFFFFF BFFFFFFF BFFFFFFE BFFFFFFE r 1B10.08 # RP, RM *Want "LEXBRA -tie even M3 modes 6, 7" BFFFFFFE BFFFFFFF *Compare r 1B20.10 # RZ, RP, RM, RFS *Want "LEXBRA +false exact FPCR modes 1-3, 7" 3FFFFFFF 40000000 3FFFFFFF 3FFFFFFF r 1B30.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +false exact M3 modes 1, 3-5" 3FFFFFFF 3FFFFFFF 3FFFFFFF 3FFFFFFF r 1B40.08 # RP, RM *Want "LEXBRA +false exact M3 modes 6, 7" 40000000 3FFFFFFF *Compare r 1B50.10 # RZ, RP, RM, RFS *Want "LEXBRA -false exact FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF C0000000 BFFFFFFF r 1B60.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -false exact M3 modes 1, 3-5" BFFFFFFF BFFFFFFF BFFFFFFF BFFFFFFF r 1B70.08 # RP, RM *Want "LEXBRA -false exact M3 modes 6, 7" BFFFFFFF C0000000 *Compare r 1B80.10 # RZ, RP, RM, RFS *Want "LEXBRA +near zero FPCR modes 1-3, 7" 3FFFFFFF 40000000 3FFFFFFF 3FFFFFFF r 1B90.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +near zero M3 modes 1, 3-5" 3FFFFFFF 3FFFFFFF 3FFFFFFF 3FFFFFFF r 1BA0.08 # RP, RM *Want "LEXBRA +near zero M3 modes 6, 7" 40000000 3FFFFFFF *Compare r 1BB0.10 # RZ, RP, RM, RFS *Want "LEXBRA -near zero FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF C0000000 BFFFFFFF r 1BC0.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -near zero M3 modes 1, 3-5" BFFFFFFF BFFFFFFF BFFFFFFF BFFFFFFF r 1BD0.08 # RP, RM *Want "LEXBRA -near zero M3 modes 6, 7" BFFFFFFF C0000000 *Compare r 1BE0.10 # RZ, RP, RM, RFS *Want "LEXBRA +near +inf FPCR modes 1-3, 7" 3FFFFFFF 40000000 3FFFFFFF 3FFFFFFF r 1BF0.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +near +inf M3 modes 1, 3-5" 40000000 3FFFFFFF 40000000 3FFFFFFF r 1C00.08 # RP, RM *Want "LEXBRA +near +inf M3 modes 6, 7" 40000000 3FFFFFFF *Compare r 1C10.10 # RZ, RP, RM, RFS *Want "LEXBRA -near -inf FPCR modes 1-3, 7" BFFFFFFF BFFFFFFF C0000000 BFFFFFFF r 1C20.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -near -inf M3 modes 1, 3-5" C0000000 BFFFFFFF C0000000 BFFFFFFF r 1C30.08 # RP, RM *Want "LEXBRA -near -inf M3 modes 6, 7" BFFFFFFF C0000000 *Compare r 1C40.10 # RZ, RP, RM, RFS *Want "LEXBRA +overflow FPCR modes 1-3, 7" 7F7FFFFF 7F800000 7F7FFFFF 7F7FFFFF r 1C50.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +overflow M3 modes 1, 3-5" 7F800000 7F7FFFFF 7F800000 7F7FFFFF r 1C60.08 # RP, RM *Want "LEXBRA +overflow M3 modes 6, 7" 7F800000 7F7FFFFF *Compare r 1C70.10 # RZ, RP, RM, RFS *Want "LEXBRA -overflow FPCR modes 1-3, 7" FF7FFFFF FF7FFFFF FF800000 FF7FFFFF r 1C80.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -overflow M3 modes 1, 3-5" FF800000 FF7FFFFF FF800000 FF7FFFFF r 1C90.08 # RP, RM *Want "LEXBRA -overflow M3 modes 6, 7" FF7FFFFF FF800000 *Compare r 1CA0.10 # RZ, RP, RM, RFS *Want "LEXBRA +tiny tie odd FPCR modes 1-3, 7" 00000000 00000001 00000000 00000001 r 1CB0.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +tiny tie odd M3 modes 1, 3-5" 00000001 00000001 00000000 00000000 r 1CC0.08 # RP, RM *Want "LEXBRA +tiny tie odd M3 modes 6, 7" 00000001 00000000 *Compare r 1CD0.10 # RZ, RP, RM, RFS *Want "LEXBRA -tiny tie odd FPCR modes 1-3, 7" 80000000 80000000 80000001 80000001 r 1CE0.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -tiny tie odd M3 modes 1, 3-5" 80000001 80000001 80000000 80000000 r 1CF0.08 # RP, RM *Want "LEXBRA -tiny tie odd M3 modes 6, 7" 80000000 80000001 # Extended BFP inputs converted to short BFP - rounding mode tests - FPCR contents *Compare r 1E00.10 *Want "LEXBRA +exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1E10.10 *Want "LEXBRA +exact M3 modes 1, 3-5 FPCR" 00000000 00000000 00000000 00000000 r 1E20.08 *Want "LEXBRA +exact M3 modes 6, 7 FCPR" 00000000 00000000 r 1E30.10 *Want "LEXBRA -exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1E40.10 *Want "LEXBRA -exact M3 modes 1, 3-5 FPCR" 00000000 00000000 00000000 00000000 r 1E50.08 *Want "LEXBRA -exact M3 modes 6, 7 FCPR" 00000000 00000000 r 1E60.10 *Want "LEXBRA +tie odd FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1E70.10 *Want "LEXBRA +tie odd M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1E80.08 *Want "LEXBRA +tie odd M3 modes 6, 7 FCPR" 00080000 00080000 r 1E90.10 *Want "LEXBRA -tie odd FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1EA0.10 *Want "LEXBRA -tie odd M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1EB0.08 *Want "LEXBRA -tie odd M3 modes 6, 7 FCPR" 00080000 00080000 r 1EC0.10 *Want "LEXBRA +tie even FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1ED0.10 *Want "LEXBRA +tie even M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1EE0.08 *Want "LEXBRA +tie even M3 modes 6, 7 FCPR" 00080000 00080000 r 1EF0.10 *Want "LEXBRA -tie even FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1F00.10 *Want "LEXBRA -tie even M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1F10.08 *Want "LEXBRA -tie even M3 modes 6, 7 FCPR" 00080000 00080000 r 1F20.10 *Want "LEXBRA +false exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1F30.10 *Want "LEXBRA +false exact M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1F40.08 *Want "LEXBRA +false exact M3 modes 6, 7 FCPR" 00080000 00080000 r 1F50.10 *Want "LEXBRA -false exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1F60.10 *Want "LEXBRA -false exact M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1F70.08 *Want "LEXBRA -false exact M3 modes 6, 7 FCPR" 00080000 00080000 r 1F80.10 *Want "LEXBRA +near zero FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1F90.10 *Want "LEXBRA +near zero M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1FA0.08 *Want "LEXBRA +near zero M3 modes 6, 7 FCPR" 00080000 00080000 r 1FB0.10 *Want "LEXBRA -near zero FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1FC0.10 *Want "LEXBRA -near zero M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 1FD0.08 *Want "LEXBRA -near zero M3 modes 6, 7 FCPR" 00080000 00080000 r 1FE0.10 *Want "LEXBRA +near +inf FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 1FF0.10 *Want "LEXBRA +near +inf M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2000.08 *Want "LEXBRA +near +inf M3 modes 6, 7 FCPR" 00080000 00080000 r 2010.10 *Want "LEXBRA -near -inf FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2020.10 *Want "LEXBRA -near -inf M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2030.08 *Want "LEXBRA -near -inf M3 modes 6, 7 FCPR" 00080000 00080000 *Compare r 2040.10 # RZ, RP, RM, RFS *Want "LEXBRA +overflow FPCR modes 1-3, 7 FPCR" 00000001 00200002 00000003 00000007 r 2050.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +overflow M3 modes 1, 3-5 FPCR" 00280000 00080000 00280000 00080000 r 2060.08 # RP, RM *Want "LEXBRA +overflow M3 modes 6, 7 FPCR" 00280000 00080000 *Compare r 2070.10 # RZ, RP, RM, RFS *Want "LEXBRA -overflow FPCR modes 1-3, 7 FPCR" 00000001 00000002 00200003 00000007 r 2080.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -overflow M3 modes 1, 3-5 FPCR" 00280000 00080000 00280000 00080000 r 2090.08 # RP, RM *Want "LEXBRA -overflow M3 modes 6, 7 FPCR" 00080000 00280000 *Compare r 20A0.10 # RZ, RP, RM, RFS *Want "LEXBRA +tiny tie odd FPCR modes 1-3, 7 FPCR" 00100001 00100002 00100003 00100007 r 20B0.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA +tiny tie odd M3 modes 1, 3-5 FPCR" 00180000 00180000 00180000 00180000 r 20C0.08 # RP, RM *Want "LEXBRA +tiny tie odd M3 modes 6, 7 FPCR" 00180000 00180000 *Compare r 20D0.10 # RZ, RP, RM, RFS *Want "LEXBRA -tiny tie odd FPCR modes 1-3, 7 FPCR" 00100001 00100002 00100003 00100007 r 20E0.10 # RNTA, RFS, RNTE, RZ *Want "LEXBRA -tiny tie odd M3 modes 1, 3-5 FPCR" 00180000 00180000 00180000 00180000 r 20F0.08 # RP, RM *Want "LEXBRA -tiny tie odd M3 modes 6, 7 FPCR" 00180000 00180000 # Extended BFP inputs converted to long BFP - results *Compare r 2200.10 *Want "LDXBR result pair 1" 00000000 00000000 00000000 00000000 r 2210.10 *Want "LDXBR result pair 2" 3FF80000 00000000 3FF80000 00000000 r 2220.10 *Want "LDXBR result pair 3" BFF80000 00000000 BFF80000 00000000 r 2230.10 *Want "LDXBR result pair 4" 7FF81000 00000000 00000000 00000000 r 2240.10 *Want "LDXBR result pair 5" 7FF81100 00000000 7FF81100 00000000 r 2250.10 *Want "LDXBR result pair 6" 7FF00000 00000000 23FF0000 00000000 r 2260.10 *Want "LDXBR result pair 7" FFF00000 00000000 A3FF0000 00000000 r 2270.10 *Want "LDXBR result pair 8" 7FF00000 00000000 23FFFFFF FFFFFFFF r 2280.10 *Want "LDXBR result pair 9" FFF00000 00000000 A3FFFFFF FFFFFFFF r 2290.10 *Want "LDXBR result pair 10" 00000000 00000000 5BCC0000 00000000 r 22A0.10 *Want "LDXBR result pair 11" 80000000 00000000 DBCC0000 00000000 r 22B0.10 *Want "LDXBR result pair 12" 7FF00000 00000000 23FF0000 00000000 r 22C0.10 *Want "LDXBR result pair 13" FFF00000 00000000 A3FF0000 00000000 # Extended BFP inputs converted to long BFP - FPCR contents *Compare r 2300.10 *Want "LDXBR FPCR pairs 1-2" 00000000 F8000000 00000000 F8000000 r 2310.10 *Want "LDXBR FPCR pairs 3-4" 00000000 F8000000 00800000 F8008000 r 2320.10 *Want "LDXBR FPCR pairs 5-6" 00000000 F8000000 00280000 F8002C00 r 2330.10 *Want "LDXBR FPCR pairs 7-8" 00280000 F8002C00 00280000 F8002800 r 2340.10 *Want "LDXBR FPCR pairs 9-10" 00280000 F8002800 00180000 F8001000 r 2350.10 *Want "LDXBR FPCR pairs 11-12" 00180000 F8001000 00280000 F8002000 r 2360.08 *Want "LDXBR FPCR pair 13" 00280000 F8002000 # Extended BFP inputs, short results, trappable overflow/underflow tests r 3200.10 *Want "LDXBR trap result 1" 23FF0000 00000000 00000000 00000000 r 3210.10 *Want "LDXBR trap result 2" A3FF0000 00000000 00000000 00000000 r 3220.10 *Want "LDXBR trap result 3" 23FFFFFF FFFFFFFF F0000000 00000000 r 3230.10 *Want "LDXBR trap result 4" A3FFFFFF FFFFFFFF F0000000 00000000 r 3240.10 *Want "LDXBR trap result 5" 5BCC0000 00000000 00000000 00000000 r 3250.10 *Want "LDXBR trap result 6" DBCC0000 00000000 00000000 00000000 r 3260.10 *Want "LDXBR trap result 7" 23FF0000 00000000 00000000 00000000 r 3270.10 *Want "LDXBR trap result 8" A3FF0000 00000000 00000000 00000000 # Extended BFP inputs, trappable overflow/underflow tests - FPC r 3280.10 *Want "LDXBR trap FPCR 1-4" F8002C00 F8002C00 F8002800 F8002800 r 3290.10 *Want "LDXBR trap FPCR 5-8" F8001000 F8001000 F8002000 F8002000 # Extended BFP inputs rounded to long BFP - rounding mode test results *Compare r 2400.10 # RZ, RP *Want "LDXBRA +exact FPC modes 1, 2" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2410.10 # RM, RFS *Want "LDXBRA +exact FPC modes 3, 7" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2420.10 # RNTA, RFS *Want "LDXBRA +exact M3 modes 1, 3" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2430.10 # RNTE, RZ *Want "LDXBRA +exact M3 modes 4, 5" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2440.10 # RP, RM *Want "LDXBRA +exact M3 modes 6, 7" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2450.10 # RZ, RP *Want "LDXBRA -exact FPC modes 1, 2" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2460.10 # RM, RFS *Want "LDXBRA -exact FPC modes 3, 7" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2470.10 # RNTA, RFS *Want "LDXBRA -exact M3 modes 1, 3" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2480.10 # RNTE, RZ *Want "LDXBRA -exact M3 modes 4, 5" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2490.10 # RP, RM *Want "LDXBRA -exact M3 modes 6, 7" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 24A0.10 # RZ, RP *Want "LDXBRA +tie odd FPC modes 1, 2" 3FFFFFFF FFFFFFFF 40000000 00000000 r 24B0.10 # RM, RFS *Want "LDXBRA +tie odd FPC modes 3, 7" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 24C0.10 # RNTA, RFS *Want "LDXBRA +tie odd M3 modes 1, 3" 40000000 00000000 3FFFFFFF FFFFFFFF r 24D0.10 # RNTE, RZ *Want "LDXBRA +tie odd M3 modes 4, 5" 40000000 00000000 3FFFFFFF FFFFFFFF r 24E0.10 # RP, RM *Want "LDXBRA +tie odd M3 modes 6, 7" 40000000 00000000 3FFFFFFF FFFFFFFF r 24F0.10 # RZ, RP *Want "LDXBRA -tie odd FPC modes 1, 2" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2500.10 # RM, RFS *Want "LDXBRA -tie odd FPC modes 3, 7" C0000000 00000000 BFFFFFFF FFFFFFFF r 2510.10 # RNTA, RFS *Want "LDXBRA -tie odd M3 modes 1, 3" C0000000 00000000 BFFFFFFF FFFFFFFF r 2520.10 # RNTE, RZ *Want "LDXBRA -tie odd M3 modes 4, 5" C0000000 00000000 BFFFFFFF FFFFFFFF r 2530.10 # RP, RM *Want "LDXBRA -tie odd M3 modes 6, 7" BFFFFFFF FFFFFFFF C0000000 00000000 r 2540.10 # RZ, RP *Want "LDXBRA +tie even FPC modes 1, 2" 3FFFFFFF FFFFFFFE 3FFFFFFF FFFFFFFF r 2550.10 # RM, RFS *Want "LDXBRA +tie even FPC modes 3, 7" 3FFFFFFF FFFFFFFE 3FFFFFFF FFFFFFFF r 2560.10 # RNTA, RFS *Want "LDXBRA +tie even M3 modes 1, 3" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2570.10 # RNTE, RZ *Want "LDXBRA +tie even M3 modes 4, 5" 3FFFFFFF FFFFFFFE 3FFFFFFF FFFFFFFE r 2580.10 # RP, RM *Want "LDXBRA +tie even M3 modes 6, 7" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFE r 2590.10 # RZ, RP *Want "LDXBRA -tie even FPC modes 1, 2" BFFFFFFF FFFFFFFE BFFFFFFF FFFFFFFE r 25A0.10 # RM, RFS *Want "LDXBRA -tie even FPC modes 3, 7" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 25B0.10 # RNTA, RFS *Want "LDXBRA -tie even M3 modes 1, 3" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 25C0.10 # RNTE, RZ *Want "LDXBRA -tie even M3 modes 4, 5" BFFFFFFF FFFFFFFE BFFFFFFF FFFFFFFE r 25D0.10 # RP, RM *Want "LDXBRA -tie even M3 modes 6, 7" BFFFFFFF FFFFFFFE BFFFFFFF FFFFFFFF r 25E0.10 # RZ, RP *Want "LDXBRA +false exact FPC modes 1, 2" 3FFFFFFF FFFFFFFF 40000000 00000000 r 25F0.10 # RM, RFS *Want "LDXBRA +false exact FPC modes 3, 7" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2600.10 # RNTA, RFS *Want "LDXBRA +false exact M3 modes 1, 3" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2610.10 # RNTE, RZ *Want "LDXBRA +false exact M3 modes 4, 5" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2620.10 # RP, RM *Want "LDXBRA +false exact M3 modes 6, 7" 40000000 00000000 3FFFFFFF FFFFFFFF r 2630.10 # RZ, RP *Want "LDXBRA -false exact FPC modes 1, 2" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2640.10 # RM, RFS *Want "LDXBRA -false exact FPC modes 3, 7" C0000000 00000000 BFFFFFFF FFFFFFFF r 2650.10 # RNTA, RFS *Want "LDXBRA -false exact M3 modes 1, 3" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2660.10 # RNTE, RZ *Want "LDXBRA -false exact M3 modes 4, 5" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2670.10 # RP, RM *Want "LDXBRA -false exact M3 modes 6, 7" BFFFFFFF FFFFFFFF C0000000 00000000 r 2680.10 # RZ, RP *Want "LDXBRA +near zero FPC modes 1, 2" 3FFFFFFF FFFFFFFF 40000000 00000000 r 2690.10 # RM, RFS *Want "LDXBRA +near zero FPC modes 3, 7" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 26A0.10 # RNTA, RFS *Want "LDXBRA +near zero M3 modes 1, 3" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 26B0.10 # RNTE, RZ *Want "LDXBRA +near zero M3 modes 4, 5" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 26C0.10 # RP, RM *Want "LDXBRA +near zero M3 modes 6, 7" 40000000 00000000 3FFFFFFF FFFFFFFF r 26D0.10 # RZ, RP *Want "LDXBRA -near zero FPC modes 1, 2" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 26E0.10 # RM, RFS *Want "LDXBRA -near zero FPC modes 3, 7" C0000000 00000000 BFFFFFFF FFFFFFFF r 26F0.10 # RNTA, RFS *Want "LDXBRA -near zero M3 modes 1, 3" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2700.10 # RNTE, RZ *Want "LDXBRA -near zero M3 modes 4, 5" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2710.10 # RP, RM *Want "LDXBRA -near zero M3 modes 6, 7" BFFFFFFF FFFFFFFF C0000000 00000000 r 2720.10 # RZ, RP *Want "LDXBRA +near +inf FPC modes 1, 2" 3FFFFFFF FFFFFFFF 40000000 00000000 r 2730.10 # RM, RFS *Want "LDXBRA +near +inf FPC modes 3, 7" 3FFFFFFF FFFFFFFF 3FFFFFFF FFFFFFFF r 2740.10 # RNTA, RFS *Want "LDXBRA +near +inf M3 modes 1, 3" 40000000 00000000 3FFFFFFF FFFFFFFF r 2750.10 # RNTE, RZ *Want "LDXBRA +near +inf M3 modes 4, 5" 40000000 00000000 3FFFFFFF FFFFFFFF r 2760.10 # RP, RM *Want "LDXBRA +near +inf M3 modes 6, 7" 40000000 00000000 3FFFFFFF FFFFFFFF r 2770.10 # RZ, RP *Want "LDXBRA -near -inf FPC modes 1, 2" BFFFFFFF FFFFFFFF BFFFFFFF FFFFFFFF r 2780.10 # RM, RFS *Want "LDXBRA -near -inf FPC modes 3, 7" C0000000 00000000 BFFFFFFF FFFFFFFF r 2790.10 # RNTA, RFS *Want "LDXBRA -near -inf M3 modes 1, 3" C0000000 00000000 BFFFFFFF FFFFFFFF r 27A0.10 # RNTE, RZ *Want "LDXBRA -near -inf M3 modes 4, 5" C0000000 00000000 BFFFFFFF FFFFFFFF r 27B0.10 # RP, RM *Want "LDXBRA -near -inf M3 modes 6, 7" BFFFFFFF FFFFFFFF C0000000 00000000 r 27C0.10 # RZ, RP *Want "LDXBRA +overflow FPC modes 1, 2" 7FEFFFFF FFFFFFFF 7FF00000 00000000 r 27D0.10 # RM, RFS *Want "LDXBRA +overflow FPC modes 3, 7" 7FEFFFFF FFFFFFFF 7FEFFFFF FFFFFFFF r 27E0.10 # RNTA, RFS *Want "LDXBRA +overflow M3 modes 1, 3" 7FF00000 00000000 7FEFFFFF FFFFFFFF r 27F0.10 # RNTE, RZ *Want "LDXBRA +overflow M3 modes 4, 5" 7FF00000 00000000 7FEFFFFF FFFFFFFF r 2800.10 # RP, RM *Want "LDXBRA +overflow M3 modes 6, 7" 7FF00000 00000000 7FEFFFFF FFFFFFFF r 2810.10 # RZ, RP *Want "LDXBRA -overflow FPC modes 1, 2" FFEFFFFF FFFFFFFF FFEFFFFF FFFFFFFF r 2820.10 # RM, RFS *Want "LDXBRA -overflow FPC modes 3, 7" FFF00000 00000000 FFEFFFFF FFFFFFFF r 2830.10 # RNTA, RFS *Want "LDXBRA -overflow M3 modes 1, 3" FFF00000 00000000 FFEFFFFF FFFFFFFF r 2840.10 # RNTE, RZ *Want "LDXBRA -overflow M3 modes 4, 5" FFF00000 00000000 FFEFFFFF FFFFFFFF r 2850.10 # RP, RM *Want "LDXBRA -overflow M3 modes 6, 7" FFEFFFFF FFFFFFFF FFF00000 00000000 r 2860.10 # RZ, RP *Want "LDXBRA +tiny tie odd FPC modes 1, 2" 00000000 00000000 00000000 00000001 r 2870.10 # RM, RFS *Want "LDXBRA +tiny tie odd FPC modes 3, 7" 00000000 00000000 00000000 00000001 r 2880.10 # RNTA, RFS *Want "LDXBRA +tiny tie odd M3 modes 1, 3" 00000000 00000001 00000000 00000001 r 2890.10 # RNTE, RZ *Want "LDXBRA +tiny tie odd M3 modes 4, 5" 00000000 00000000 00000000 00000000 r 28A0.10 # RP, RM *Want "LDXBRA +tiny tie odd M3 modes 6, 7" 00000000 00000001 00000000 00000000 r 28B0.10 # RZ, RP *Want "LDXBRA -tiny tie odd FPC modes 1, 2" 80000000 00000000 80000000 00000000 r 28C0.10 # RM, RFS *Want "LDXBRA -tiny tie odd FPC modes 3, 7" 80000000 00000001 80000000 00000001 r 28D0.10 # RNTA, RFS *Want "LDXBRA -tiny tie odd M3 modes 1, 3" 80000000 00000001 80000000 00000001 r 28E0.10 # RNTE, RZ *Want "LDXBRA -tiny tie odd M3 modes 4, 5" 80000000 00000000 80000000 00000000 r 28F0.10 # RP, RM *Want "LDXBRA -tiny tie odd M3 modes 6, 7" 80000000 00000000 80000000 00000001 # Extended BFP inputs rounded to long BFP - rounding mode test FPCR contents *Compare r 2B00.10 *Want "LDXBRA +exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2B10.10 *Want "LDXBRA +exact M3 modes 1, 3-5 FPCR" 00000000 00000000 00000000 00000000 r 2B20.08 *Want "LDXBRA +exact M3 modes 6, 7 FCPR" 00000000 00000000 r 2B30.10 *Want "LDXBRA -exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2B40.10 *Want "LDXBRA -exact M3 modes 1, 3-5 FPCR" 00000000 00000000 00000000 00000000 r 2B50.08 *Want "LDXBRA -exact M3 modes 6, 7 FCPR" 00000000 00000000 r 2B60.10 *Want "LDXBRA +tie odd FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2B70.10 *Want "LDXBRA +tie odd M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2B80.08 *Want "LDXBRA +tie odd M3 modes 6, 7 FCPR" 00080000 00080000 r 2B90.10 *Want "LDXBRA -tie odd FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2BA0.10 *Want "LDXBRA -tie odd M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2BB0.08 *Want "LDXBRA -tie odd M3 modes 6, 7 FCPR" 00080000 00080000 r 2BC0.10 *Want "LDXBRA +tie even FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2BD0.10 *Want "LDXBRA +tie even M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2BE0.08 *Want "LDXBRA +tie even M3 modes 6, 7 FCPR" 00080000 00080000 r 2BF0.10 *Want "LDXBRA -tie even FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2C00.10 *Want "LDXBRA -tie even M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2C10.08 *Want "LDXBRA -tie even M3 modes 6, 7 FCPR" 00080000 00080000 r 2C20.10 *Want "LDXBRA +false exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2C30.10 *Want "LDXBRA +false exact M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2C40.08 *Want "LDXBRA +false exact M3 modes 6, 7 FCPR" 00080000 00080000 r 2C50.10 *Want "LDXBRA -false exact FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2C60.10 *Want "LDXBRA -false exact M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2C70.08 *Want "LDXBRA -false exact M3 modes 6, 7 FCPR" 00080000 00080000 r 2C80.10 *Want "LDXBRA +near zero FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2C90.10 *Want "LDXBRA +near zero M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2CA0.08 *Want "LDXBRA +near zero M3 modes 6, 7 FCPR" 00080000 00080000 r 2CB0.10 *Want "LDXBRA -near zero FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2CC0.10 *Want "LDXBRA -near zero M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2CD0.08 *Want "LDXBRA -near zero M3 modes 6, 7 FCPR" 00080000 00080000 r 2CE0.10 *Want "LDXBRA +near +inf FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2CF0.10 *Want "LDXBRA +near +inf M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2D00.08 *Want "LDXBRA +near +inf M3 modes 6, 7 FCPR" 00080000 00080000 r 2D10.10 *Want "LDXBRA -near -inf FPC modes 1-3, 7 FCPR" 00000001 00000002 00000003 00000007 r 2D20.10 *Want "LDXBRA -near -inf M3 modes 1, 3-5 FPCR" 00080000 00080000 00080000 00080000 r 2D30.08 *Want "LDXBRA -near -inf M3 modes 6, 7 FCPR" 00080000 00080000 *Compare r 2D40.10 # RZ, RP, RM, RFS *Want "LDXBRA +overflow FPCR modes 1-3, 7 FPCR" 00000001 00200002 00000003 00000007 r 2D50.10 # RNTA, RFS, RNTE, RZ *Want "LDXBRA +overflow M3 modes 1, 3-5 FPCR" 00280000 00080000 00280000 00080000 r 2D60.08 # RP, RM *Want "LDXBRA +overflow M3 modes 6, 7 FPCR" 00280000 00080000 *Compare r 2D70.10 # RZ, RP, RM, RFS *Want "LDXBRA -overflow FPCR modes 1-3, 7 FPCR" 00000001 00000002 00200003 00000007 r 2D80.10 # RNTA, RFS, RNTE, RZ *Want "LDXBRA -overflow M3 modes 1, 3-5 FPCR" 00280000 00080000 00280000 00080000 r 2D90.08 # RP, RM *Want "LDXBRA -overflow M3 modes 6, 7 FPCR" 00080000 00280000 *Compare r 2DA0.10 # RZ, RP, RM, RFS *Want "LDXBRA +tiny tie odd FPCR modes 1-3, 7 FPCR" 00100001 00100002 00100003 00100007 r 2DB0.10 # RNTA, RFS, RNTE, RZ *Want "LDXBRA +tiny tie odd M3 modes 1, 3-5 FPCR" 00180000 00180000 00180000 00180000 r 2DC0.08 # RP, RM *Want "LDXBRA +tiny tie odd M3 modes 6, 7 FPCR" 00180000 00180000 *Compare r 2DD0.10 # RZ, RP, RM, RFS *Want "LDXBRA -tiny tie odd FPCR modes 1-3, 7 FPCR" 00100001 00100002 00100003 00100007 r 2DE0.10 # RNTA, RFS, RNTE, RZ *Want "LDXBRA -tiny tie odd M3 modes 1, 3-5 FPCR" 00180000 00180000 00180000 00180000 r 2DF0.08 # RP, RM *Want "LDXBRA -tiny tie odd M3 modes 6, 7 FPCR" 00180000 00180000 *Done
67e13a74c44d54b5dffa9dc2110c50eee2161fc9
449d555969bfd7befe906877abab098c6e63a0e8
/83/CH12/EX12.4/example_12_4.sce
bcd57a005aed7fd997098791807f5ce9cb8955e2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
708
sce
example_12_4.sce
//Chapter 12 //Example 12.4 //page 453 //To calculate acceleration and rotor angle clear;clc; delta0=33.9; //initial rotor angle H=4; //inertia constant f=50; //frequency Pm=1; //mechanical power input t=0.05; //time interval angular_acceleration=(Pm-0.694*sind(delta0))*180*f/H; delta_change=0.5*angular_acceleration*t^2; delta_new=delta0+delta_change; new_angular_acceleration=(Pm-0.694*sind(delta_new))*180*f/H; printf('\n\nInitial rotor angular acceleration = %d elect deg/s^2',angular_acceleration); printf('\nDelta_change=%0.1f deg',delta_change); printf('\nNew delta =delta1=%0.1f deg',delta_new); printf('\nAngular acceleration at the end of 0.05s =%d elect deg/s^2\n\n',new_angular_acceleration);
2a09a769d5012dd25a8f30c2d2a398693428160a
449d555969bfd7befe906877abab098c6e63a0e8
/3821/CH13/EX13.11/Example13_11.sce
c899ec049561f7ee0873d32e7933479e8f3c2110
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
866
sce
Example13_11.sce
////Chapter 13 Steam Engines ////Example 13.11 Page No 290 ///Find Actual mean effective pressure //Input data clc; clear; D=240*10^-3; //Steam engine bor L=300*10^-3; //Stroke of engine N=220; //Speed of engine 220 in rpm IP=36; //Indicated power in Kw Pb=1.3; //Exhaust pressure in bar re=2.5; //Expansion ratio K=0.8; //Diagram factor pi=3.142 A=((pi/4)*(D^2)); //Calculation Pma=((IP*60000)/(2*10^5*L*A*N)); //Indicated power of steam engine in bar Pm=Pma/K; //Actual mean effective pressure in bar P1=((Pm+Pb)*re)/(1+log(re)); //Theoretical mean effective pressure in bar //Output printf('Indicated power of steam engine= %f bar \n',Pma); printf('Actual mean effective pressure= %f bar \n',Pm); printf('theoretical mean effective pressure= %f bar \n',P1);
48849dd3b3e9d57a436c6a5cf5c8f5920a8eb411
449d555969bfd7befe906877abab098c6e63a0e8
/29/CH9/EX9.10.11/exa9_10_11.sce
c99f11012c89c119d64dbb4ab00d410bd5a8df7c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
556
sce
exa9_10_11.sce
//caption:obtain_time_response //example 9.10.11 //page 394 s=%s; syms t A=[0 1;-2 0] B=[1 -1] x0=[1 1]' [r c]=size(A);//size of matrix A p=s*eye(r,c)-A;//s*I-A where I is identity matrix q=det(p)//determinant of sI-A r=inv(p)//inverse of sI-A //for calculating state transistion matrix ip=[0 0;0 0] i=1;j=1; for i=1:2 for j=1:2 ip(i,j)=ilaplace(r(i,j),s,t); j=j+1; end i=i+1; end disp(ip,"state transistion matrix,ip(t)="); x=ip*x0 y=x(1,1)-x(2,1) y=simple(y) //output disp(y,"time response of the system,y(t)=");
9c0e37406830ac60f6ce9dd31eeec2b57711de4e
b0aff14da16e18ea29381d0bd02eede1aafc8df1
/mtlbSci/macros/mtlbSci_translate.sci
7b579259e2a6338f196ba6607d095efae8e4c340
[]
no_license
josuemoraisgh/mtlbSci
5d762671876bced45960a774f7192b41124a13ed
5c813ed940cccf774ccd52c9a69f88ba39f22deb
refs/heads/main
2023-07-15T23:47:11.843101
2021-08-26T17:52:57
2021-08-26T17:52:57
385,216,432
0
0
null
null
null
null
UTF-8
Scilab
false
false
965
sci
mtlbSci_translate.sci
function res = mtlbSci_translate(nomearq) [path,fname,extension]=fileparts(nomearq); chdir(path);//Fazer outro chdir: Sempre que mudar de diretorio, apagar os arquivos "*.m~" do diretorio anterior if extension =='.m' then if 'sci'==mtlbSci_mode() then disp("Mudando para o modo MTLB!!") mtlbSci_mode("mtlb"); end //mtlb_getd(path); //Como superar o programa que chama o clear antes ?? res = path+fname+".m~"; if isfile(res) then infoMainFile = fileinfo(nomearq); infoNewFile = fileinfo(res); if(infoMainFile(6) <= infoNewFile(6)) then return; end end fd = mopen(nomearq,'rt'); str=mgetl(fd); mclose(fd); str = strsubst(str,'/%%|%/','//','r'); fd = mopen(res,'wt'); mputl(str,fd); mclose(fd); else res = nomearq; if 'mtlb'==mtlbSci_mode() then disp("Mudando para o modo SCI!!") mtlbSci_mode("sci"); end end endfunction
cabe9484063e0fbe61340027a27d50ee9ecfe452
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.5/tests/examples/xarcs.man.tst
710f8986ff3c9807906aa0ed6d640e262db26f33
[ "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
275
tst
xarcs.man.tst
clear;lines(0); plot2d(0,0,-1,"031"," ",[-1,-1,1,1]) arcs=[-1.0 0.0 0.5; // upper left x 1.0 0.0 0.5; // upper left y 0.5 1.0 0.5; // width 0.5 0.5 1.0; // height 0.0 0.0 0.0; // angle 1 180*64 360*64 90*64]; // angle 2 xarcs(arcs,[1,2,3])
9eb40ef9590621e570f1818482d20894b3429c78
449d555969bfd7befe906877abab098c6e63a0e8
/1955/CH8/EX8.12/example12.sce
8c63c195c9ec460d5880ce8c8127d2389fa27f8a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
2,123
sce
example12.sce
clc clear //input data Q=0.04//Discharge of the pump design in m^3/s Ns=0.075//Specific speed in rev b22=(180-120)//Outlet angle with the normal in degree H=35//Distance to which pumping of water is done in m Dp=0.15//Diameter of suction and delivery pipes in m L=40//Combined length of suction and delivery pipes in m WD=1/10//Width to diameter ratio at outlet of impeller f=0.005//Friction factor g=9.81//Acceleration due to gravity in m/s^2 nh=0.76//Hydraulic effficiency neglecting the slip n=0.06//Percentage occupied by blades on circumference area //calculations A=(3.1415/4)*(Dp^2)//Area of flow in pipe in m^2 V=Q/A//Velocity in the pipes in m/s OL=3*V^2/(2*g)//Other loses in the pipes in m TL=(4*f*L*V^2/(2*g*Dp))+(OL)//Total loses in a pipe in m TH=TL+H//Total required head in m N=(Ns*((g*H)^(3/4)))/((Q)^(1/2))//The speed of the pump in rev/s Ao=3.1415*WD*(1-n)//Flow area perpendicular to impeller outlet periphery in terms of D^2 in m^2 In this the area is calculated using only the circumferential area without blades Cr2=Q/Ao//Flow velocity through impeller at outlet in m/s U2=3.1415*N//Outlet tangential impeller velocity in m/s in terms of D Cx2=(g*H)/(U2*nh)//Absolute whirl velocity in m/s //The following steps are for calculating the cubic root equation in D //This is obtained by solving tand(b22)=(Cr2/(Cx2-U2)) all values are substituted in terms of D //The final equation which is obtained is D^3-0.0495D+0.0008=0 //The above equation is solved using the following formulae a=0//Coefficient of D^2 in the above equation b=-0.0511//Coefficient of D in the above equation c=0.00083//Constant term in above equation q=c+((2*(a^3))/27)-(a*b/3)//Constant in solving the cubic equation p=((3*b)-(a^2))/3//Constant in solving the cubic equation d=(p/2)^2+(q/3)^3//Constant in solving the cubic equation u=((-q/2)+(d^(1/2)))^(1/3)//Constant in solving the cubic equation v=((-q/2)-(d^(1/2)))^(1/3)//Constant in solving the cubic equation D=(u+v)/2//Impeller diameter in m //output printf('The pump impeller diameter is %3.3f m',D)
572ae573dc5ac79693d6ffd5009810dcfae7a11a
438ae9a1bd74ad2b3b043cce005780e92c17d113
/NvM_Scribus_Bibliothek/Titelbalken.sce
e4bd71fda2673e6ffd854d6107e595d557190ebf
[]
no_license
ngiger/NvM
00bb9e6e80e77c4fba8e4feab6aef61184e98be4
c9164494fd18472004741ecfce73c34124f7d1ea
refs/heads/master
2021-01-19T08:43:18.510498
2014-03-07T15:32:12
2014-03-07T15:32:12
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,070
sce
Titelbalken.sce
<SCRIBUSELEMUTF8 W="358" H="30" previewData="iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAA51AAAOdQG5Y1EyAAABXklEQVRoge3SQWsUQRAF4PequhMCEQ8BEVGCIHgQRPAn6P/wH4vgyYN4MRcv4mow0el6HpxsdjdjMAdPvg+Gnumuqp7pKQb5uPf2AowAoPmq7VGXz7oao8uYi/XCbwVA2q2jrVxs76fNGhu56/V1voACsSfpR+u9v8wMtZbPf07jDcFDAGeSzjLjgUqngr6BcatqfGiZTwr6AukUQoHcL2kFSEHertLnjLhfVScAmoCvAiLIw2lMb5cPamu82Zogkg8byR7BOxLPM+MYYgI6L3FFsGXLZ2NMrwXtBXlU0Coi7gVwMEofVfWpRTwSNSgQxPeIOGLwgOD+NMa7jDgu6QT/Dtl7e9Uyuy6+WEunobl9UJttgetba6E9FltrJ/6PrTX/kZ3WAlLQXQIIBp+SyHmTJdqY3o3QDe+v1P7LHK2H+S3niQnC+2vqm5mZmZmZmZmZmZmZmZmZmZn9n34BOo8D9RRBGLIAAAAASUVORK5CYII=" YP="20" XP="28" COUNT="1" Version="1.3.5.rc2" > <FONT NAME="Andale Mono Regular" /> <FONT NAME="FreeMono Bold" /> <FONT NAME="FreeSans Medium" /> <FONT NAME="Frutiger LT 55 Roman Regular" /> <FONT NAME="Frutiger LT 55 Roman Bold" /> <FONT NAME="Frutiger LT 55 Roman Bold Italic" /> <FONT NAME="Frutiger LT 55 Roman Italic" /> <FONT NAME="Frutiger LT 55 Roman Regular" /> <COLOR Spot="0" Register="0" NAME="Black" CMYK="#000000ff" /> <COLOR Spot="0" RGB="#ffffff" Register="0" NAME="FromEPS#ffffff" /> <COLOR Spot="0" Register="0" NAME="Rich Black" CMYK="#996666ff" /> <COLOR Spot="0" Register="0" NAME="White" CMYK="#00000000" /> <COLOR Spot="0" RGB="#966432" Register="0" NAME="undef" /> <STYLE SCALEV="100" SCOLOR="Black" ALIGN="0" TXTSTP="100" TXTSHX="5" TXTSHY="-5" FSHADE="100" INDENT="0" TXTSTW="100" EFFECT="0" VOR="5" NACH="5" LINESPMode="1" FCOLOR="Black" DROP="0" TXTULP="100" SCALEH="100" TXTULW="100" KERN="0" DROPLIN="2" NAME="Seitenueberschrift" FONT="FreeSans Medium" LINESP="10.0000000000000" SSHADE="100" FIRST="0" BASE="0" FONTSIZE="18" DROPDIST="0" TXTOUT="1" BASEO="0" > <Tabs Fill="" Type="1" Pos="74" /> <Tabs Fill="" Type="1" Pos="101" /> <Tabs Fill="" Type="1" Pos="167" /> </STYLE> <ITEM TXTULW="100" POCOOR="10 0 10 0 348 0 348 0 348 0 353.523 0 358 10 358 5.52285 358 10 358 10 358 20 358 20 358 20 358 25.5228 348 30 353.523 30 348 30 348 30 10 30 10 30 10 30 5.52285 30 0 20 0 25.5228 0 20 0 20 0 10 0 10 0 10 0 5.52285 10 0 5.52285 0 " ANNAME="Titel" RADRECT="10" TXTSTP="100" GRTYP="1" PCOLOR="None" TXTSTW="100" ALIGN="0" BACKITEM="-1" WIDTH="358" XPOS="28" EXTRA="10" relativePaths="1" TopLine="0" NEXTITEM="-1" PRINTABLE="1" HEIGHT="30" BASEOF="0" isTableItem="0" LANGUAGE="" BACKPAGE="-1" TEXTFLOWMODE="0" TransBlendS="0" IFONT="FreeSans Medium" TXTSCALEV="100" textPathFlipped="0" BottomLine="0" PLINEEND="0" BEXTRA="0" GROUPS="" TransBlend="0" NAMEDLST="" TXTOUT="1" AUTOTEXT="0" startArrowIndex="0" PICART="1" YPOS="20" NEXTPAGE="-1" isGroupControl="0" NUMCO="32" ISIZE="18" LOCALSCX="1" TXTSCALE="100" LOCK="0" LOCALSCY="1" PRFILE="" TransValueS="0" doOverprint="0" TXTBASE="0" IRENDER="1" fillRule="1" TEXTRA="6" FLOP="0" LINESPMode="1" ROT="0" textPathType="0" GRENDX="358" GRENDY="15" RATIO="1" PLINEART="1" TXTSTYLE="0" PCOLOR2="Rich Black" COLUMNS="1" TXTSHX="5" TXTKERN="0" TXTSHY="-5" PTYPE="4" LINESP="10" TXTSTROKE="Black" ANNOTATION="0" PLTSHOW="0" DASHS="" BOOKMARK="0" REXTRA="0" LOCKR="0" DASHOFF="0" LOCALX="0" CLIPEDIT="0" ImageClip="" LOCALY="0" EPROF="" FLIPPEDH="0" SHADE2="100" LeftLine="0" PLINEJOIN="0" NUMDASH="0" PFILE2="" PFILE3="" TXTFILLSH="100" TXTFILL="Black" TXTSTRSH="100" PWIDTH="1" COCOOR="10 0 10 0 348 0 348 0 348 0 353.523 0 358 10 358 5.52285 358 10 358 10 358 20 358 20 358 20 358 25.5228 348 30 353.523 30 348 30 348 30 10 30 10 30 10 30 5.52285 30 0 20 0 25.5228 0 20 0 20 0 10 0 10 0 10 0 5.52285 10 0 5.52285 0 " FLIPPEDV="0" RightLine="0" TEXTFLOW="0" SHADE="100" NUMGROUP="0" endArrowIndex="0" COLGAP="12" SCALETYPE="1" EMBEDDED="1" TEXTFLOW2="0" TEXTFLOW3="0" TransValue="0" TXTULP="100" REVERS="0" GRSTARTX="0" FRTYPE="2" GRSTARTY="15" NUMPO="32" > <Tabs Fill="" Type="0" Pos="72" /> <CSTOP RAMP="0" TRANS="0.4" SHADE="100" NAME="Black" /> <CSTOP RAMP="1" TRANS="0.1" SHADE="100" NAME="Black" /> <ITEXT PSTYLE="Seitenueberschrift" CH="Aus dem Gemeinderat" CSTYLE="0" /> <PARA PARENT="Seitenueberschrift" /> </ITEM> </SCRIBUSELEMUTF8>
493778f4af5a7f560a55892a1cf0c4727161d95b
449d555969bfd7befe906877abab098c6e63a0e8
/1322/CH5/EX5.5.b/47ex4_b.sce
bbc5f5445b622e907937ff988f6c9a6687373705
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
130
sce
47ex4_b.sce
// 4(n+5)+3 clear; clc; close; mprintf("the first five terms of the sequence are: \n"); for n=1:5 disp(4*(n+5)+3) end
b17b1e74c939819962a0885571e998cd39654de8
935d5880888b1ef01c8dddaf85af2be07d7940e2
/AdaptiveSwarmRobotsSimulation-ASRS/stages/Stage3.sce
53f7595b846a18eab57d7f4545b21224c296df74
[]
no_license
google-code/asrs
c3b35545bce8ae38c8184de002e93e18a67461ee
c9a828a4eb2fbf076116f3c51c44da45a60f9feb
refs/heads/master
2016-08-05T13:33:11.103066
2015-03-15T15:18:57
2015-03-15T15:18:57
32,267,209
0
0
null
null
null
null
UTF-8
Scilab
false
false
179
sce
Stage3.sce
___________ | | | | | |____ | | | | | | ____ | | | | | | __ | | | | | |___________|
9adc737bed082d2399846c06243e561ce41c3772
449d555969bfd7befe906877abab098c6e63a0e8
/2141/CH13/EX13.4/Ex13_4.sce
d62f262e50bdd6370509f4f1bde9c3a9f3196b31
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
235
sce
Ex13_4.sce
clc //initialisation of variables T=537//K R=1.986//K DelG=-98345//Btu/lbm T2=3600//K DelG1=-58324//Btu/lbm //CALCULATIONS K=(DelG)/(R*T)//Btu K1=(DelG1)/(R*T2)//Btu //RESULTS printf('The euilibrium constant=% f Btu',K1)
3564f0339ad4a3cd9e65fa238ebc1ebfee6aca42
449d555969bfd7befe906877abab098c6e63a0e8
/2699/CH2/EX2.2/Ex2_2.sce
5ba524c47bd00e05e45efec25b4ef9e219915f78
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
460
sce
Ex2_2.sce
//Chapter-2 Ex-2.2 Pg-2.18 clc clear; disp("refer to the Figure-2.19 given ") disp("from the characteristics at point P, Vf=0.7V,If=60mA") Vf=0.7; If=0.06; Rf=Vf/If;//DC forward resistance printf("\n DC forward resistance Rf : %.2f ohm\n",Rf) disp("as the forward voltage changes from P to Q") delta_Vf=0.77-.7; delta_If=(120-60)*10^(-3); rf=delta_Vf/delta_If;//dynamic forward resistance printf("\n Dynamic forward resistance rf : %.3f ohm",rf)
67421ee4a70d7f400e36fa0452b88aa04fa81f27
449d555969bfd7befe906877abab098c6e63a0e8
/317/CH13/EX13.14/example14.sce
f48541196fb25a554d63a6b3eacbc8bcfefd5141
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
556
sce
example14.sce
// calculate output voltage // Electronic Principles // By Albert Malvino , David Bates // Seventh Edition // The McGraw-Hill Companies // Example 13-14, page 450 clear; clc; close; // Given data Rs=10^3;// in ohms Rl=10^3;// in ohms gm=2500*10^-6;// transconductance in Seimen Vin=10^-3;// input voltage in Vpp // Calculations rs=Rs*Rl/(Rs+Rl);// ac drain resistance in ohms Av=gm*rs/(1+(gm*rs));// voltage gain Vout=Vin*Av;// output voltage in volts disp("Volts",Vout,"Output voltage=") // Result // Output voltage is 0.556 mVpp
3baf61639821fe402bcdec5a2786df52d6ec6cd8
449d555969bfd7befe906877abab098c6e63a0e8
/2078/CH3/EX3.1/Example3_1.sce
b9f44882a2131840b105373b1946db076d8c6ee0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
613
sce
Example3_1.sce
//Exa 3.1 clc; clear; close; //Given data : P=30*10^6;//W pf=0.8;//lagging power factor VL=132*1000;//V l=120*1000;//m Eta=90/100;//Efficiency rho_Cu=1.78*10^-8;//ohm-m D_Cu=8.9*10^3;//kg/m^3 rho_Al=2.6*10^-8;//ohm-m D_Al=2*10^3;//kg/m^3 IL=P/(sqrt(3)*VL*pf);//A //W=3*IL^2*rho*l/a=(1-Eta)*P a_Cu=(3*IL^2*rho_Cu*l)/(1-Eta)/P;//m^2 V_Cu=3*a_Cu*l;//m^3 Wt_Cu=V_Cu*D_Cu;//kg disp(Wt_Cu,"Weight of copper required(kg)"); a_Al=(3*IL^2*rho_Al*l)/(1-Eta)/P;//m^2 V_Al=3*a_Al*l;//m^3 Wt_Al=V_Al*D_Al;//kg disp(Wt_Al,"Weight of Alluminium required(kg)"); //Answer in the textbook is not accurate.
031b645aec053234519013cd4b6cdc75001dd29a
449d555969bfd7befe906877abab098c6e63a0e8
/2243/CH3/EX3.16/Ex3_16.sce
06a11cce4d8e8a6720ebb7bd91654b89125f7321
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
257
sce
Ex3_16.sce
clc(); clear; //Given : d = 0.065; //distance in mm p = 200 ;// 200 fringes cross the field of view //Michelson's interferometer arrangement : 2*d = p*lambda lambda = 2*d/p;// wavelength in mm printf(" Wavelength : %.1f x 10^-4 mm ",lambda*10^4);
a62f578621e4583317fb3f95fe366133796f2bb6
449d555969bfd7befe906877abab098c6e63a0e8
/343/CH2/EX2.2/ex2_2.sce
56a140bb7b7d06c6fedfa305fac87a359becf7d0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
201
sce
ex2_2.sce
f=60; //Assigning values to parameters Im=12; i=Im*sin(377/360) disp("Amperes",i,"Current at t=1/360 sec") i1=9.6; t=asin(i1/Im)/377; disp("Seconds",t,"Time taken to reach i1=9.6");
b44549d7ec26b0ac7d587e8196c53b0b2e89fe01
b0aff14da16e18ea29381d0bd02eede1aafc8df1
/mtlbSci/macros/moc_unique.sci
1942efb8ba3eec71eee7e65fd403db44237e22bf
[]
no_license
josuemoraisgh/mtlbSci
5d762671876bced45960a774f7192b41124a13ed
5c813ed940cccf774ccd52c9a69f88ba39f22deb
refs/heads/main
2023-07-15T23:47:11.843101
2021-08-26T17:52:57
2021-08-26T17:52:57
385,216,432
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,600
sci
moc_unique.sci
function [y, i, j] = moc_unique (x,param) // Return the unique elements of x, sorted in ascending order. // Calling Sequence // moc_unique (x) // moc_unique (x, "rows") // moc_unique (..., "first") // umoc_nique (..., "last") // [y, i, j] = moc_unique (...) // Description // If x is a row vector, return a row vector, but if x // is a column vector or a matrix return a column vector. // // If the optional argument "rows" is supplied, return the unique // rows of x, sorted in ascending order. // // If requested, return index vectors i and j such that // x(i)==y and y(j)==x. // // Additionally, one of "first" or "last" may be given as // an argument. If "last" is specified, return the highest // possible indices in i, otherwise, if "first" is // specified, return the lowest. The default is "last". // See also // moc_ismember // Authors // Copyright (C) 2008, 2009 Jaroslav Hajek // Copyright (C) 2000, 2001, 2005, 2006, 2007 Paul Kienzle // H. Nahrstaedt 2010,2011 // // This file is part of Octave. // // Octave is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or (at // your option) any later version. // // Octave is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Octave; see the file COPYING. If not, see // <http://www.gnu.org/licenses/>. [nargout,nargin]=argn(0); if (nargin < 1) error ("One Argument is needed!"); end if nargin==1 optfirst = 0; optrows = 0; else optfirst = (param=="first"); optlast = param=="last" optrows = param=="rows" & size (x, 2) > 1; end if (optrows) n = size (x, 1); dim = 1; else n = size (x,'*'); dim = (size (x, 1) == 1) + 1; end y = x; if (n < 1) i = []; j = []; return; elseif (n < 2) i = 1; j = 1; return; end if (optrows) [y, i] = gsort(y,'r','i'); match = and (y(1:n-1,:) == y(2:n,:), 2); idx = find (match); y(idx,:) = []; else if (size (y, 1) ~= 1) y = y(:); end //[y, i] = mtlb_sort (y); [y, i] = gsort (y,'g','i') match = (y(1:n-1) == y(2:n)); idx = find (match); y(idx) = []; end if (nargout >= 3) j = i; if (dim == 1) j(i) = cumsum ([1; ~match]); else j(i) = cumsum ([1, ~match]); end end if (optfirst) i(idx+1) = []; else i(idx) = []; end endfunction //assert(unique([1 1 2; 1 2 1; 1 1 2]),[1;2]) //assert(unique([1 1 2; 1 0 1; 1 1 2],'rows'),[1 0 1; 1 1 2]) //assert(unique([]),[]) //assert(unique([1]),[1]) //assert(unique([1 2]),[1 2]) //assert(unique([1;2]),[1;2]) //assert(unique([1,NaN,Inf,NaN,Inf]),[1,Inf,NaN,NaN]) //assert(unique({'Foo','Bar','Foo'}),{'Bar','Foo'}) //assert(unique({'Foo','Bar','FooBar'}'),{'Bar','Foo','FooBar'}') //test // [a,i,j] = unique([1,1,2,3,3,3,4]); // assert(a,[1,2,3,4]) // assert(i,[2,3,6,7]) // assert(j,[1,1,2,3,3,3,4]) // //test // [a,i,j] = unique([1,1,2,3,3,3,4]','first'); // assert(a,[1,2,3,4]') // assert(i,[1,3,4,7]') // assert(j,[1,1,2,3,3,3,4]') // //test // [a,i,j] = unique({'z'; 'z'; 'z'}); // assert(a,{'z'}) // assert(i,[3]') // assert(j,[1,1,1]') // //test // A=[1,2,3;1,2,3]; // [a,i,j] = unique(A,'rows'); // assert(a,[1,2,3]) // assert(A(i,:),a) // assert(a(j,:),A)
eef5b297cedc629ac0ee3401d93d79fca95266b3
449d555969bfd7befe906877abab098c6e63a0e8
/1151/CH2/EX2.24/example24.sce
f7e2557388e0756be88b553bbcf9818abaca3d51
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
552
sce
example24.sce
printf("given G(s)=K/(s*(1+s*T)) \n Mp=20 percent \n resonant frequency=6 rad/sec\n we have to determine the value of K,T,resonant peak") printf(" H(s)=1 \n C(s)/R(s)=G(s)/(1+G(s)*H(s)) \n =(K/T)/(s^2+s/T+(K/T)"); printf("compare with w^2/(s^2+2*d*w*s+w^2)"); d1=log(0.2); d=sqrt(d1^2/(d1^2+%pi^2)); wr=6; w=wr/sqrt(1-(2*(d^2))); K=sqrt(4*d*w^2); T=sqrt(4*d/w^2); mr=1/(2*d*sqrt(1-d^2)); disp(w,"undamped natural frequency (in rad/sec)=") disp(d,"damping ratio=") disp(K,"value of K=") disp(T,"value of T=") disp(mr,"resonance peak=")
c9be51417abb1e502a37c4876e29462658d10d57
449d555969bfd7befe906877abab098c6e63a0e8
/3681/CH4/EX4.15/Ex4_15.sce
eec08cfebc8e3cb0f79432fa9efbbad548e7327b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,297
sce
Ex4_15.sce
// Calculating the temperature rise and thermal time constant and rating of the machine clc; disp('Example 4.15, Page No. = 4.23') // Given Data D = 0.6;// Diameter of induction motor (in meter) L = 0.9;// Length of induction motor (in meter) out = 7500;// Output of induction motor (in W) e = 0.9;// Efficiency G = 375;// Weight of material (in kg) h = 725;// Specific heat (in J/kg degree celsius) Lem = 12;// Specific heat dissipation (in Watt per meter square degree celsius) // Calculation of the temperature rise and thermal time constant of the machine S = (%pi*D*L)+(2*%pi/4*D^(2));// Total heat dissipating surface (in meter square) Q = (out/e)-out;// Losses (in Watts) Tm = Q/(S*Lem);// Final temperature rise (in degree celsius) Th = G*h/(S*Lem);// Time constant (in seconds) disp(Tm,'(a) Final temperature rise (degree celsius) ='); disp(Th,' Time constant (seconds) ='); // Calculation of the rating of the machine Lem_new = 25;// Specific heat dissipation (in Watt per meter square degree celsius) Q = Tm*S*Lem_new;// Losses (in Watts) out = (e*Q)/(1-e);// Output of induction motor (in W) disp(out,'(b) Rating of the machine (Watt) ='); //in book answers are 30.85 degree celsius, 10025 seconds and 15687 watts. The answers vary due to round off error
705fc22fc7ae13183e1d236031946e2af3300480
e734667f002748da0620f4a9322ec98768ef1332
/TPCN1/testexo6.sce
8c05f8af699c734d5b9af4ef93fb13e3d2688a2f
[]
no_license
massiva/Exercice-5_TP3
33f27dc72278b08e4e73a111d962e4f15d6b08cb
87cb94e34aaad3c9cc03075b835a6b0aeccc0a64
refs/heads/master
2023-01-23T09:37:54.716155
2020-12-01T17:57:10
2020-12-01T17:57:10
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
142
sce
testexo6.sce
n=2; A=rand(n,n); [L,U] =mylu3b(A) erreur=A-L*U [L,U,P] = mylu(A) disp("la foction lu en scilab") [L, U] = lu (A)
eb0e9af0fd4d44d6b27ba703bd1c299c2e7c0aa2
449d555969bfd7befe906877abab098c6e63a0e8
/991/CH1/EX1.1/Example1_1.sce
bb4abe94e4255bc01aa8784afc019c0704c6391d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
558
sce
Example1_1.sce
//Example 1.1. format(6) epsilon=8.854*10^-12 h=6.62*10^-34 //planck's constant m=9.1*10^-31 //mass of electron q=1.6*10^-19 //charge of electron for n=1 r1=(epsilon*(h^2)*(n^2))/(%pi*m*(q^2)) //radius of 1st orbit for hydrogen x1=r1*10^10 // in A.U disp(x1,"r1(A.U)=") end for n=2 r2=(epsilon*(h^2)*(n^2))/(%pi*m*(q^2)) //radius of 2st orbit for hydrogen x2=r2*10^10 // in A.U disp(x2,"r2(meters)=") end for n=3 r3=(epsilon*(h^2)*(n^2))/(%pi*m*(q^2)) //radius of 3st orbit for hydrogen x3=r3*10^10 // in A.U disp(x3,"r3(meters)=") end
ec94fc1e3445b6e3998425187da6b84a95dd1fea
449d555969bfd7befe906877abab098c6e63a0e8
/1271/CH9/EX9.1/example9_1.sce
4e9340107917ae02572b942d832cb887bd688483
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
463
sce
example9_1.sce
clc // Given that E = 10^6 // electric field inside the plates in V/m d = 0.02 // distance between the plates in meter k = 3 // dielectric constant of slab e_ = 8.85e-12 // electric permittivity of air in C^2/Nm^2 // Sample Problem 1 on page no. 9.11 printf("\n # PROBLEM 1 # \n") printf(" Standard formula used \n") printf(" D = e_*E+p. \n D=e_*k*E.\n\n ") D = e_*k*E P = D-e_*E printf("Polarization vector is %e C/m^2. \n Displacement vector is %e C/m^2",P,D)
a9fe6c5a3b8144184f72f39c9e049e518a700630
adad792a303b401b6e5f683f5ffed0dce8bb89cb
/Trapezoidal.sce
6912bea56a84ec61df990393e962ea4c556f081f
[ "MIT" ]
permissive
RDxR10/Numerical-Analysis
db114772f1a915e96d364a2cdb5c92e868da2640
10325dd514aa6ae9180dca7ae3a04f7deda5ca56
refs/heads/master
2020-09-11T18:51:42.948671
2019-11-24T16:01:44
2019-11-24T16:01:44
222,158,105
0
0
null
2019-11-19T17:10:11
2019-11-16T20:53:58
Scilab
UTF-8
Scilab
false
false
469
sce
Trapezoidal.sce
clc;clear;close; deff('y=f(x)', 'y=log(sin(x))') a = input("Enter lower limit: ") b = input("Enter upper limit: ") n = input("Enter number of sub intervals: ") h = (b-a)/n add1=0 add2=0 for i=0:n x=a+i*h y=f(x) disp([x,y]) if (i==0)|(i==n) add1=add1+y else add2=add2+y end end I=(h/2)*(add1+(2*add2)) disp(I,"Integration by Trapezoidal Rule is:") I=integrate('log(sin(x))','x',0.1,0.85) disp(I,"Direct integration value:")
6ab482fb6a70c31f0296351aaee4da6a3bf2d7fe
449d555969bfd7befe906877abab098c6e63a0e8
/2504/CH6/EX6.4/6_4.sce
fae8559446f5450c2f059e540fb94a90d3ac5cb9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
576
sce
6_4.sce
clc //initialisation of variables clear r= 1.4 g= 32.2 //ft/sec^2 R= 53.3 //lbf ft/lbm T= 32 //C T1= 2000 //R r1= 1.32 p= 1440 //lbf/in^2 v1= 1.2306 //ft^3/lbm v2= 1.2546 //ft^3/lbm bm= 3.13*10^5 //lbf/in^2 w= 62.4 //lbf/ft^3 //CALCULATIONS a1= sqrt(r*R*(460+T)*g) a2= sqrt(r1*R*T1*g) r2= p/(v1-v2) a3= sqrt(-g*(v1+v2)^2*0.5^2*r2) a4= sqrt(bm*144*g/w) //RESULTS printf ('Acoustic veloctiy = %.f ft/sec',a1) printf ('\n Acoustic veloctiy = %.f ft/sec',a2) printf ('\n Acoustic veloctiy = %.f ft/sec',a3) printf ('\n Acoustic veloctiy = %.f ft/sec',a4)
57df35fd9fe66601db540b4b1b6613d4f42c8125
449d555969bfd7befe906877abab098c6e63a0e8
/281/CH7/EX7.8/example7_8.sce
a77ae865850de34ad3dcdfec757f1bf85df6c7e7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
710
sce
example7_8.sce
disp('chapter 7 ex7.8') disp('given') disp('design a peak detector circuit') disp('pulse-type signal voltage Vp=2.5volt with a rise time tr=5*10^(-6)s') Vp=2.5 tr=5*10^(-6) disp('output voltage is 2.5v for time th=100*10^(-6)s') th=100*10^(-6) disp('maximum output error is to be 1%') disp('use BIFET op-amp for minimum capacitor leakage current') disp('let R1=R2=1Mohm') disp('C1 discharge current,Id=IrD2=1*10^(-6)A') Id=1*10^(-6) disp('v=1% of Vp') v=.01*Vp disp('volts',v) disp('C1=Id*th/v') C1=Id*th/v disp('farads',C1) //standard value disp('for op-amp A1,Iomax=C1*Vp/tr') Iomax=C1*Vp/tr disp('amperes',Iomax) disp('slewrate=3*Vp/tr') slewrate=3*Vp/tr disp('volts/us',slewrate)
83faba254e716441280211fd7f0603b318385d1f
449d555969bfd7befe906877abab098c6e63a0e8
/3480/CH5/EX5.1/Ex5_1.sce
50119c7c703b083966eeb77bd20b380f44506dda
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
321
sce
Ex5_1.sce
//Example 5.1, page no 101 clc n_air=1//refractive index of air n_glass=1.5//refractive index of glass n_water=1.33//refractive index of water s1=n_glass/(((n_glass-n_air)/2)-(n_air/5)) s2=n_water/(((n_water-n_glass)/-2)-(n_glass/-28)) printf("\n The value of s1 is +%f cm",s1) printf("\n The value of s2 is +%f cm",s2)
dbac8daaa5f9423ee2d1f1059803e2fad3964da9
449d555969bfd7befe906877abab098c6e63a0e8
/3012/CH11/EX11.6/Ex11_6.sce
acc0b5c1fc651e770fa3c2a0434dbd5e1d27b093
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,173
sce
Ex11_6.sce
// Given:- // Part(a) v = 1.00/998.21 // specific volume of water in m^3/kg T = 293.00 // given temperature in kelvin beta = 206.6e-6 // volume expansivity in /K k = 45.90e-6 // isothermal compressibility in /bar // Interpolating in Table A-19 cp = 4.188 // in kj/kg.k // Calculations cpv = (v*T*beta**2.00/k)*10**2 // in kj/kg.k cv = cp-cpv // in kj/kg.k errorPercentage = 100*(cp-cv)/cv // Result printf( ' The percentage error is: %.2f',errorPercentage) // Part(b) // Calculations K = cp/cv // specific heat ratio c = ((K*v/k)*10**5)**0.5 // velocity of sound in m/s // Result printf( ' The velocity of sound is: %.2f m/s',c)
4951f0e71f3a1c887dfe5962aa6a69a74136498d
449d555969bfd7befe906877abab098c6e63a0e8
/830/CH8/EX8.3.7/IIR_Chebychev_Filter_analog.sce
ecd409cb4e0d52d2b8af02a2742ea66310da8bc0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,363
sce
IIR_Chebychev_Filter_analog.sce
//Graphical// //Example 8.3.7 //To Design an Analog Chebyshev Filter //For the given cutoff frequency = 500 Hz clear; clc; close; omegap = 1000*%pi; //Analog Passband Edge frequency in radians/sec omegas = 2000*%pi; //Analog Stop band edge frequency in radians/sec delta1_in_dB = -1; delta2_in_dB = -40; delta1 = 10^(delta1_in_dB/20); delta2 = 10^(delta2_in_dB/20); delta = sqrt(((1/delta2)^2)-1) epsilon = sqrt(((1/delta1)^2)-1) //Calculation of Filter order num = ((sqrt(1-delta2^2))+(sqrt(1-((delta2^2)*(1+epsilon^2)))))/(epsilon*delta2) den = (omegas/omegap)+sqrt((omegas/omegap)^2-1) N = log10(num)/log10(den) //N = (acosh(delta/epsilon))/(acosh(omegas/omegap)) N = floor(N) //Cutoff frequency omegac = omegap //Calculation of poles and zeros [pols,Gn] = zpch1(N,epsilon,omegap) disp(N,'Filter order N ='); disp(pols,'Poles of a type I lowpass Chebyshev filter are Sk =') //Analog Filter Transfer Function h = poly(Gn,'s','coeff')/real(poly(pols,'s')) //Magnitude Response of Chebyshev filter [h2]=cheb1mag(N,omegac,epsilon,1:1000) //Magnitude in dB mag=20*log10(h2); plot2d((1:1000),mag,[0,-180,1000,20]); a=gca(); a.thickness = 3; a.foreground = 1; a.font_style = 9; xgrid(5) xtitle('Magnitude Response of Chebyshev Type 1 LPF Filter Cutoff frequency = 500 Hz','Analog frequency in Hz--->','Magnitude in dB -->');
d4a80be8f09bdbb0ca2de91757d6a630b2d8d4bd
ba5209500f59413d51c12adaef6ce4c8edb1280b
/Demo-RRA-PENCOLE/demo_fds2014.sce
831e70d46c085f12bb88fb73a916691438d7db0f
[ "BSD-3-Clause" ]
permissive
jeanibarz/stage_master
ec9a3ac41802e558f519f029a4e6ffc03913ad1e
0ee691441d7460c79c8cef92bb71f267976e7cfc
refs/heads/master
2021-01-19T00:19:01.339401
2017-05-30T15:45:43
2017-05-30T15:45:43
87,152,230
0
0
null
null
null
null
UTF-8
Scilab
false
false
12,124
sce
demo_fds2014.sce
tank_fig_id = 1; sim_fig_id = 2; control_fig_id = 3; // Tank 1 meter diameter diameter = 1; // Tank is a cylinder 1 meter high height = 1; // Some dimensions of the tank A_r = %pi * (diameter/2)^2; MaxVolume = A_r * height; // We do the hypothesis that it takes one // minute to fill the tank if output flow with // a maximal input flow max_input_flow = MaxVolume/60; // ? c ? no output flow c=0.01; // a leak is an output flow (m^3.s^{-1}) global LEAK; LEAK = -0.005; // injection time global TINJECT; TINJECT= 180; // let us simulate the system h0=0.3; t0=0; t=0:0.1:360; global input_scenario; input_scenario = 1; function hdot=tank(t,h) hdot = input_flow(t)/A_r - c/A_r * h endfunction function de=input_flow(t) if input_scenario==1 then if t < 50 then de = max_input_flow elseif t < 60 then de = 0 elseif t < 110 then de = max_input_flow elseif t < 180 then de = 0 elseif t < 210 then de = max_input_flow elseif t < 240 then de = 0 elseif t < 320 then de = max_input_flow else de = 0 end elseif input_scenario==2 then de = max_input_flow / 4; end endfunction function l=leak(t) if t < TINJECT then l = 0 else l = LEAK; end endfunction function hdot=leak_tank(t,h) hdot = input_flow(t)/A_r - c/A_r * h + leak(t)/A_r endfunction function hok=simulate_system_ok() hok = ode(h0,t0,t,tank); endfunction function hleak=simulate_system_leak() hleak = ode(h0,t0,t,leak_tank); endfunction // the simulated output function f=output_flow(i,h) f = c * h(i) endfunction function create_control_panel() control_fig = figure(control_fig_id,"Figure_name","Contrôle","infobar_visible", "off",... "toolbar_visible", "off",... "dockable", "off",... "menubar", "none",... "default_axes", "off", ... "Position",[150 150 300 800],... "resize", "off",... "BackgroundColor", [0.9 0.9 0.9],... "Tag", "control_fig_tag") // A popup menu scenario_menu = uicontrol(control_fig, "Position", [15 735 240 20],... "Style", "popupmenu",... "String", gettext("ouverture/fermeture | constant"),... "Callback", "scenario_menu_callback();",... "Tag", "scenario_menu_tag"); scenario_menu_title = uicontrol(control_fig, "Position", [16 755 80 15],... "Style", "text",... "FontSize", 11,... "String", gettext("Scénario"),... "BackgroundColor", [0.9 0.9 0.9]); leak_slider_frame = uicontrol(control_fig, "Position", [15 600 240 105], ... "Style", "frame", ... "Relief", "groove",... "BackgroundColor", [0.8 0.8 0.8]); leak_slider_frame_title = uicontrol(control_fig, "Position", [16 710 200 15],... "Style", "text",... "FontSize", 11,... "String", gettext("Taille de la fuite"),... "BackgroundColor", [0.9 0.9 0.9]); leak_slider_text = uicontrol(control_fig, "Position", [20 611 230 20],... "Style", "text",... "FontSize", 11,... "FontWeight", "bold",... "BackgroundColor",[1 1 1],... "HorizontalAlignment", "center",... "Tag", "leak_slider_text_tag"); leak_slider = uicontrol(control_fig, "Position", [20 630 230 55],... "Style", "slider",... "Min", 0,... "Max", 0.01,... "Value", 0.005,... "SliderStep", [2 10],... "Tag", "leak_slider_tag",... "Callback", "leak_slider_update();"); // Update the text displayed leak_slider_update(); time_slider_frame = uicontrol(control_fig, "Position", [15 470 240 105], ... "Style", "frame", ... "Relief", "groove",... "BackgroundColor", [0.8 0.8 0.8]); time_slider_frame_title = uicontrol(control_fig, "Position", [16 580 200 15],... "Style", "text",... "FontSize", 11,... "String", gettext("Date d''injection de la fuite"),... "BackgroundColor", [0.9 0.9 0.9]); time_slider_text = uicontrol(control_fig, "Position", [20 481 230 20],... "Style", "text",... "FontSize", 11,... "FontWeight", "bold",... "BackgroundColor",[1 1 1],... "HorizontalAlignment", "center",... "Tag", "time_slider_text_tag"); time_slider = uicontrol(control_fig, "Position", [20 500 230 55],... "Style", "slider",... "Min", 0,... "Max", 360,... "Value", 180,... "SliderStep", [2 10],... "Tag", "time_slider_tag",... "Callback", "time_slider_update();"); // Update the text displayed time_slider_update(); run_button = uicontrol(control_fig, "Position", [14 15 165 25],... "Style", "pushbutton",... "String", gettext("Lancer la simulation"),... "FontSize", 11,... "Callback", "runSimulation();"); endfunction function time_slider_update() sl = get("time_slider_tag"); txt = get("time_slider_text_tag"); global TINJECT; TINJECT = get(sl, "Value"); set(txt, "String", string(TINJECT) + gettext(" secondes") ); endfunction function leak_slider_update() sl = get("leak_slider_tag"); txt = get("leak_slider_text_tag"); global LEAK; LEAK = -get(sl, "Value"); set(txt, "String", string(-LEAK) + gettext("m^3.s^{-1}") ); endfunction function scenario_menu_callback() pop = get("scenario_menu_tag"); items = get(pop, "String"); global input_scenario; input_scenario = get(pop, "Value"); endfunction function demo_fds2014() //tank_fig = figure(tank_fig_id,"Figure_name","Récipient","BackgroundColor",[1,1,1],"layout", "border"); //sim_fig = figure(sim_fig_id,"Figure_name","Simulation","BackgroundColor",[1,1,1],"layout", "border"); create_control_panel(); endfunction function create_simulation_plots() scf(sim_fig_id); subplot(3,1,1); set(gca(),"data_bounds",[0,360,0,1]); xtitle("Hauteur réelle de liquide dans le récipient (non observable)","", "hauteur (m)"); a=get("current_axes"); title= a.title; title.font_size=4; title.font_style=5; x_label=a.x_label; x_label.font_size= 3; y_label=a.y_label; y_label.font_size= 3; subplot(3,1,2); set(gca(),"data_bounds",[0,360,-0.002,0.007]); xtitle("Valeur du résidu observée","","débit (m^3.s-1))"); a=get("current_axes"); title= a.title; title.font_size=4; title.font_style=5; x_label=a.x_label; x_label.font_size= 3; y_label=a.y_label; y_label.font_size= 3; alarm = [0.002,0.002]; plot([0,360],alarm,'g'); subplot(3,1,3); set(gca(),"data_bounds",[0,360,-0.1,1.1]); xtitle("Signal alarme (détection de fuite)","temps (s)","oui/non"); a=get("current_axes"); title= a.title; title.font_size=4; title.font_style=5; x_label=a.x_label; x_label.font_size= 3; y_label=a.y_label; y_label.font_size= 3; endfunction function draw_fullTank(h,open) scf(tank_fig_id); clf(tank_fig_id); plot2d(0,0,0,rect=[0,0,3,3],frameflag=3) a = gca(); a.tag = "plot"; a.title.text = "Récipient"; a.title.font_size = 5; a.axes_visible = "off"; draw_tank(); draw_water(h); draw_water_pipe1(); draw_water_pipe3(); if open==1 then draw_water_pipe2(h); draw_water_pipe4(); end endfunction function draw_simulation(hoki,hi,residual,alarm_signal,index) drawlater(); scf(sim_fig_id); create_simulation_plots(); a = gca(); subplot(3,1,1); if i>180 then plot(t,hoki,'g'); end plot(t,hi); subplot(3,1,2); resi=residual(index:index+50); alarm_signali=alarm_signal(index:index+50); plot(t,resi); subplot(3,1,3); plot(t,alarm_signali,'r'); drawnow(); endfunction function draw_tank() xset("color",color("black")); x1 = [1,1,1.45]'; y1 = [1.5,0.5,0.5]'; xpoly(x1,y1); x2 = [1.55,2,2]'; y2 = [0.5,0.5,1.5]'; xpoly(x2,y2); x3 = [0.5,1]'; y3 = [2,2]'; xpoly(x3,y3); x3 = [0.5,1]'; y3 = [2.1,2.1]'; xpoly(x3,y3); x4 = [1.2,1.5,1.5]'; y4 = [2.1,2.1,1.6]'; xpoly(x4,y4); x5 = [1.2,1.4,1.4]'; y5 = [2,2,1.6]'; xpoly(x5,y5); xarc(1,2.15,0.2,0.2,0,360*64); x6 = [1.45,1.45,1.8]'; y6 = [0.5,0.2,0.2]'; xpoly(x6,y6); x7 = [1.55,1.55,1.8]'; y7 = [0.5,0.3,0.3]'; xpoly(x7,y7); x8 = [2,2.3]'; y8 = [0.3,0.3]'; xpoly(x8,y8); x9 = [2,2.3]'; y9 = [0.2,0.2]'; xpoly(x9,y9); xarc(1.8,0.35,0.2,0.2,0,360*64); endfunction function draw_water(h) xset("color",color("lightskyblue")); xfrect(1.01,0.51+h,0.99,h); endfunction function draw_water_pipe1() xset("color",color("lightskyblue")); xfrect(0.5,2.09,0.50,0.09); endfunction function draw_water_pipe2(h) xset("color",color("lightskyblue")); xfrect(1.2,2.09,0.295,0.09); xfrect(1.405,2,0.09,2-(0.5+h)); endfunction function draw_water_pipe3() xset("color",color("lightskyblue")); xfrect(1.455,0.52,0.09,0.31); xfrect(1.455,0.29,0.345,0.09); endfunction function draw_water_pipe4() xset("color",color("lightskyblue")); xfrect(2,0.29,0.3,0.09); endfunction function runSimulation() tank_fig = figure(tank_fig_id,"Figure_name","Récipient","BackgroundColor",[1,1,1],"layout", "border"); sim_fig = figure(sim_fig_id,"Figure_name","Simulation","BackgroundColor",[1,1,1],"layout", "border"); hok = simulate_system_ok(); h = simulate_system_leak(); clock=0:0.1:360; // observation of the input flow sensor_noise = 0.0005; noisegen(0.1, 360, sensor_noise); input_noise = feval(t,Noise); inflow_observation = 0:0.1:360; for i = 1:3601 inflow_observation(i) = input_flow(clock(i)) + input_noise(i) end // observation of the output flow sensor_noise = 0.0006; noisegen(0.1, 360, sensor_noise); output_noise = feval(t,Noise); outflow_observation = 0:0.1:360; for i = 1:3601 outflow_observation(i) = output_flow(i,h) + output_noise(i) end //********************************************************************** // let us design the observer //********************************************************************** h_hat=0:0.1:360; h_dot_hat=0:0.1:360; h_hat(1)=0.3; h_dot_hat(1)=0; inflow_hat=0:0.1:360; outFlow_hat=0:0.1:360; residual=0:0.1:360; for i = 1:3600 outFlow_hat(i) = c * h_hat(i); h_dot_hat(i+1) =inflow_observation(i)/A_r - c*h_hat(i)/A_r ... + 0.01 * (outflow_observation(i) - outFlow_hat(i)); h_hat(i+1)= h_hat(i) + 0.1 * h_dot_hat(i+1); residual(i) = outFlow_hat(i) - outflow_observation(i); end outFlow_hat(3601) = c * h_hat(3601); residual(3601) = outFlow_hat(3601) - outflow_observation(3601); inflow_hat(3601) = inflow_observation(3601)/A_r; alarm_signal = 0:0.1:360; for i = 1:3601 if residual(i) < 0.002 then alarm_signal(i) = 0 else alarm_signal(i) = 1 end end k=5; index = 1; for i = 0:k:340 j=i+k; t=i:0.1:j; hi= h(index:index+50); hoki = hok(index:index+50); draw_simulation(hoki,hi,residual,alarm_signal,index); drawlater(); draw_fullTank(h(index),1); index = index + 51; drawnow(); sleep(500); end endfunction function main() demo_fds2014(); endfunction main();
2b181e4417d6b94ec7c88a2fb65b6c9f6fcb0527
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
/sci2blif/sci2blif_added_blocks/mismatch_meas.sce
f59920d82dca7aa23fc65cc125d609544f352c30
[]
no_license
jhasler/rasp30
9a7c2431d56c879a18b50c2d43e487d413ceccb0
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
refs/heads/master
2023-05-25T08:21:31.003675
2023-05-11T16:19:59
2023-05-11T16:19:59
62,917,238
3
3
null
null
null
null
UTF-8
Scilab
false
false
855
sce
mismatch_meas.sce
//****************************** Mismatch measure block ********************************** if (blk_name.entries(bl) =='mismatch_meas') then addvmm = %t; mputl("#MISMATCH_MEAS "+string(bl),fd_w); for ss=1:scs_m.objs(bl).model.ipar(1) mputl(".subckt mismatch_meas in[0]=net"+string(blk(blk_objs(bl),2))+'_'+ string(ss)+ " in[1]=net" + string(blk(blk_objs(bl),3)) +'_'+ string(ss)+ " in[2]=net" + string(blk(blk_objs(bl),4)) +'_'+ string(ss)+" out[0]=net"+ string(blk(blk_objs(bl),2+numofip))+'_'+ string(ss)+" #mismatch_meas_fg =0&mismatch_meas_pfetg_fgotabias =2e-06&mismatch_meas_pfetg_fgotapbias =3e-06&mismatch_meas_pfetg_fgotanbias =6.92e-08&mismatch_meas_out_fgotabias =2e-06&mismatch_meas_out_fgotapbias =4.12e-07&mismatch_meas_out_fgotanbias =4.43e-08&mismatch_meas_cal_bias =50e-09",fd_w); mputl(" ",fd_w); end end
531f507efa04a736a8d77af0e5841ad378625de0
584105ff5b87869494a42f632079668e4c3f82de
/TestCases/calib3d/projectPoints/test2.sce
107a08b373be3249ea99bff03d5e43878e305ede
[]
no_license
kevgeo/FOSSEE-Computer-Vision
0ceb1aafb800580498ea7d79982003714d88fb48
9ca5ceae56d11d81a178a9dafddc809238e412ba
refs/heads/master
2021-01-17T21:11:31.309967
2016-08-01T14:45:40
2016-08-01T14:45:40
63,127,286
6
0
null
null
null
null
UTF-8
Scilab
false
false
566
sce
test2.sce
//Checking if function works when camera matrix values has been changed obpts = [ .5 .5 -.5; .5 .5 .5; -.5 .5 .5; -.5 .5 -.5; .5 -.5 -.5; -.5 -.5 -.5; -.5 -.5 .5]; impts = [282 274; 397 227; 577 271; 462 318; 270 479; 450 523; 566 475]; camera = [ 0 0 0; 0 2 0; 1 0 0] dist = [0 0 0 0]; iterations = 5; reprojectionError = 2; minInliersCount = 3; [rvec tvec] = solvePnPRansac(obpts,impts,camera,dist,1,"CV_ITERATIVE",iterations,reprojectionError,minInliersCount); projPts = projectPoints(obpts,rvec,tvec, camera, dist, 2); //output is correct
49c466c38d5fccc8a824254f73ad0e44528c9503
449d555969bfd7befe906877abab098c6e63a0e8
/1760/CH2/EX2.64/EX2_64.sce
3745b5d4c9119c88c62457536553ae63a01877dd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
247
sce
EX2_64.sce
ZA=15+%i*15.708; ZB=20+%i*0; V=200+%i*0; IA=V/ZA; disp('i) CURRENT (IA) is = '+string (IA) +' A '); IB=V/ZB; disp('ii) CURRENT (IB) is = '+string (IB) +' A '); I=IA+IB; disp('vi) TOTAL CURRENT (I) is = '+string (I) +' A ');
166b77731a2c031dc446d28c97577a21c78aeb94
449d555969bfd7befe906877abab098c6e63a0e8
/2732/CH9/EX9.5/Ex9_5.sce
aa039843546eac571c46e00f0477b973ec7f0e4d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
529
sce
Ex9_5.sce
clc //initialization of the variables clear s=1.6 //m s1=4 //m pi=28 //degrees w=16 //kg/m^2 p=100 //kg/m^2 pl=20 //cm pb=10 //cm r=500 //kg/m^3 // calculations pi=pi*%pi/180 //radians W=w*s+(r*pl*pb/(100*100)) P=p*s L=P+W*cos(pi) Mx=L*s1^2*100/8 sigma_1=Mx*6/(pb*pl^2) My=W*sin(pi)*s1^2*100/8 sigma_2=My*6/(pl*pb^2) sigma=sigma_1+sigma_2 // results printf('Due to bending in the noth the planes, D experiences maximum \n compression of %.2f kg/cm^2 and B has maximum tension of %.2f kg/cm^2',sigma,sigma)
73101575f41f4f6f7fdf7b7d1b4442bd9c5d71b1
0e1b45c07f0938ba9c8a003d6ae1cf2d8315efdb
/acmp.ru/186, Субботник/test0.tst
7494f7f7fbe88b28897300c7b2a6b9be5c469fdd
[]
no_license
Kot-Angens/acm
c85d8582c3e84f218415321743864b9680e01f2e
05472eaa0fff7abb6679826085da5e0c990df4cb
refs/heads/master
2021-01-24T22:36:05.159612
2012-10-02T13:51:56
2012-10-02T13:51:56
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
55
tst
test0.tst
2 1 1000000000 ~~~~~~~~~~~~~~~~~~~~~ 999999999
a6bd3d218bd438c2a97a761d6ea39f4f666e50f1
4483ff664b4d01c53114a7fc535625c197c8f989
/model for routing/mukhil3.sce
9bf973c900876b36c61a062737320636b8cc62a8
[]
no_license
winash1618/myproject
be9b77d4a405edce7e625a999803016b50ab99d0
2132e76e6a996bee19f356a2b68af827fa6c621b
refs/heads/master
2022-12-06T06:09:06.487979
2020-08-20T02:00:54
2020-08-20T02:00:54
288,880,158
0
0
null
null
null
null
UTF-8
Scilab
false
false
574
sce
mukhil3.sce
clc clear function [phi,gama,delta,xij,w]=getter() phi=10 gama=45 delta=100 xij=1 w=100 endfunction function c=z1(x) alpha=30 betaa=100 theta=1 omega=-5 l=250 p=1 [phi,gama,delta,xij,w]=getter() c=(alpha+(betaa/(((phi*sin(gama*x)+delta)^theta)+omega)))*(alpha*sin(gama*x)+delta)*(1+p*(w/l))*xij endfunction function d=dij() phi=10 gama=45 delta=100 function f=jk(x) f=phi*sin(gama*x)+delta endfunction d=intg(0,10,jk) endfunction a=0 b=6.28 iam=intg(a,b,z1) iam2=dij() disp(iam) disp(iam2)
f1ad8285685259bedead39202edc30de5d5d7608
39c201c777151f939341e8f8150242bcde5a111b
/CH4/EX4.1/example1.sce
6e82792c546e19edf8ebbfd05c3077d779cf8d14
[]
no_license
nidhimj22/Scilab_Project-
925a5883384736e79f1e600535461c6c9f06de40
4a9d1db96787ba0ea4e996349523a0b84bdacae3
refs/heads/master
2021-01-20T05:49:48.811688
2014-02-06T10:03:52
2014-02-06T10:03:52
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
944
sce
example1.sce
// calculating of peak load voltage and dc load voltage // Electronic Principles // By Albert Malvino , David Bates // Seventh Edition // The McGraw-Hill Companies // Example 4-1, page 92 clear;clc; close; // Given data Vrms=10;// voltage of source in volts Vd=0.7;// diode drop in volts // Calculations Vp(1)=Vrms/0.707;// peak source voltage in volts // with an ideal diode peak load voltage = peak source voltage Vp(2)=Vp(1);// Vp(2) is peak load voltage in volts Vdc=Vp(2)/%pi;// dc voltage in volts disp("Volts",Vp(2),"Peak voltage =") disp("Volts",Vdc,"dc load voltage=") // with second approximation Vp(2)=Vp(1)-Vd;// peak load voltage in volts Vdc=Vp(2)/%pi; disp("Volts",Vp(2),"Peak voltage =") disp("Volts",Vdc,"dc load voltage=") // Result // for an ideal diode // peak load voltage is 14.1 volts // dc load voltage is 4.49 volts // with second approximation // peak load voltage is 13.4 volts // dc load voltage is 4.27 volts
970a50d7212b6c8384f2686b68c2d126a8527d17
449d555969bfd7befe906877abab098c6e63a0e8
/2840/CH10/EX10.1/Ex10_1.sce
76014e9398a7f8aa51afb64872c656e3aa9e2f1e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
295
sce
Ex10_1.sce
clc; //E=Ef+1% of Ef k=1.38*1e-23;//boltzman constant e=1.6*1e-19;//charge of electron E=0.0555; //0.1=1/[(exp((E*e)/(k*T)))+1] T=E*e/(k*log(9));//Temprature disp(+'kelvin',T,'Temprature = '); //there is slight variation than book's answer.. checked in calculator also.(book's mistake)
a4ebedf2b98c8dbffdcd8f219fa4fef3ae8c97fb
9715cbe7e8e57bb70f628b3bd021842f99fbad75
/taller/soluciones/newraphraiz.sce
162f5e771590cfd8e17f2e6af63797f260e1a5a0
[]
no_license
UNIVALLE-EISC/numerical-methods
a3e3f432a6dc54a5ba845789ace2bf39db7ac6fe
3ea9401e281523e15be0525bfe36e48560caf646
refs/heads/master
2021-01-10T15:22:36.080955
2018-10-02T21:37:42
2018-10-02T21:37:42
51,824,833
2
2
null
null
null
null
UTF-8
Scilab
false
false
383
sce
newraphraiz.sce
function [xrold, xr, ea, niter] = newraphraiz(funcion, dfuncion, xr, eads, maxit) niter = 1; while(1) xrold = xr fxr = funcion(xr) dfxr = dfuncion(xr) xr = xr - fxr/dfxr; ea = abs((xr - xrold)/xr)*100; if (ea < eads | niter >= maxit) then break; end niter = niter + 1; end endfunction
3859fc359a9e524ae2757a2ccb97db8bc86e0932
449d555969bfd7befe906877abab098c6e63a0e8
/1628/CH13/EX13.11/Ex13_11.sce
6d3adcaf0e3619d64fe98be0b5fa90755bd938ff
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,282
sce
Ex13_11.sce
// Example 13.11 R1=10; // Resistance of 10 Ohms R2=0.02; // Resistance of 0.02 Ohms Xe=35 // Reactance of primary coil n1=250; // No.Of turns in Primary coil n2=6600; // No.Of turns in 2ry coil k=n1/n2; // Turns ratio P=40000; // Single-Phase power I2=P/n1; // Full-load current Re2=k^2*R1+R2; // Resistance Re2 Xe2=k^2*Xe; // Reactance Xe2 SinQ=0; // SinQ=0 CosQ=1; // Power factor Reg={(I2*Re2*CosQ)+(I2*Xe2*SinQ)}/n1; // % Regulation. disp(' % Regulation (pf=1) = '+string(Reg*100)+' %'); CosQ1=0.8; // Leading Power factor SinQ1=sqrt(1-CosQ1^2); // SinQ=0.6 +ve Reg1={(I2*Re2*CosQ1)+(I2*Xe2*SinQ1)}/n1; // % Regulation. disp(' % Regulation (pf=0.8) = '+string(Reg1*100)+' %'); SinQ2=-sqrt(1-CosQ1^2); // SinQ=0.6 -ve Reg2={(I2*0.0343*CosQ1)+(I2*Xe2*SinQ2)}/n1; // % Regulation. disp(' % Regulation for (pf=0.8) = '+string(Reg2*100)+' %'); // p 506 13.11
fbf49808d4fa505c250da27182442cef85b47abd
5b1b8ba4fce3c327c9a47e993571389554f9599b
/método runge-kutta.sce
90fe011a0f4545120e145b3624e1465b24181481
[]
no_license
DarciGJunior/Projetos
5084c2ca0e3868922c3949fedcbcc328106e2012
27e4fa82f64ce4c68a4dbd4124fb7675933233c9
refs/heads/master
2020-05-29T19:31:55.791646
2019-05-30T02:46:21
2019-05-30T02:46:21
189,333,424
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,283
sce
método runge-kutta.sce
//--------------------------------------------------------------------// //Método de Runge-Kutta 4a ordem // //Objetivo: // //Autor: Darci Junior // //data: 18/03/16 // //--------------------------------------------------------------------// clear //limpa a memoria close //fecha janelas clc //limpa a janela do prompt t0 = input('qual o valor inicial do intervalo? to=?'); y0 = input('qual o valor inicial do intervalo? y0=?'); delta = input('qual o valor inicial do intervalo? delta=?'); tf = input('qual o valor final do intervalo? tf=?'); function dydt = funcf(t,y) dydt = t+y; endfunction i=1 t(i)= t0 y(i)=y0 while (t(i)<tf) k1 = funcf(t(i),y(i)) o = t(i)+delta/2 p=y(i)+((delta*k1)/2) k2=funcf(o,p) p=y(i)+((k2*delta)/2) k3=funcf(o,p) p=y(i)+(k3*delta) t(i+1)=t(i) + delta k4=funcf(t(i+1),p) y(i+1)=y(i)+((delta/6)*(k1+(2*k2)+(2*k3)+k4)) i = i + 1 end disp(y(i)) tg= linspace(t0,tf,0.1) function yg= fplot(t) yg= (2*exp(t))-t-1 endfunction plot (t,y,'+') plot (tg,fplot,'r')
0820be2a44c40b63b870163ecc88b079941a68dc
449d555969bfd7befe906877abab098c6e63a0e8
/680/CH4/EX4.03/4_03.sce
4ad40d0894161c81d995ec032a1b4a2d6bdbd772
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
280
sce
4_03.sce
//Problem 4.03: //initializing the variables: rb = 10000; // in lb/h rair = 20000; // in lb/h rm = 2000; // in lb/h //calculation: mdtin = rb + rair + rm mdtout = mdtin printf("\n\nResult\n\n") printf("\n the product gases exit the incinerator at %.0f lb/h",mdtout)
e58e2becd93f82fb2932250a72e9d4a465befdd5
449d555969bfd7befe906877abab098c6e63a0e8
/60/CH6/EX6.12/ex_12.sce
5020647cb675cca5c19bbfb73f5f8064fe586e55
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
791
sce
ex_12.sce
//Example 6.12 //Least squares approximation deff('[y]=f(x)','y=10-2*x+((x^2)/10)') //we seek the polynomial of degree &lt;= 2 which minimizes //sum(n=1 to 9)[fn-p(xn)]^2 //we are dealing with scalar product with w(x)=1 P0x=1 //hence s0=0; B=0; A1=0; s1=0; for n=1:1:6 s0=s0+1 B=[10+(n-1)/5]+B A1=[10+[n-1]/5]*{[((n-1)/5)-0.5]^2}+A1 s1={[((n-1)/5)-0.5]^2}+s1 end B0=B/s0 B1=A1/s1 C1=s1/s0 x=poly(0,"x") y1=x-B0 x=poly(0,"x") y2=((x-B0)^2)-0.1166667 //similarly calculate s2 s2=0.05973332 //p*(x)=(d0*)*P0x+(d1*)*P1(x)+(d2*)*P2(x) //d0*=d0,d1*=d1,d2*=d2 are least squares approximation //d0*=d0=sigma(n=1 to 6)[fn/6] where fn=f(xn) d0=0.03666667 d1=0.1 d2=0.0999999 x=poly(0,"x") p=d0+d1*(x-B0)+d2*{[(x-B0)^2]-C1} //c1=c1* ,c2=c2*,c3=c3* c1=9.99998 c2=-1.9999998 c3=0.0999999
59ec91a1538342dacea55167b7cfa0c25050b474
717ddeb7e700373742c617a95e25a2376565112c
/3137/CH8/EX8.5/Ex8_5.sce
426ae14a96ca89912f384abda2cef9cf0b91d0e3
[]
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
827
sce
Ex8_5.sce
//Initlization of variables F1=2000 //lb w=100 //lb/ft //Calculations R_r=(-F1*5+w*14*13)/20 //lb R_l=(F1*25+w*14*7)/20 //lb //Shear Force matrix V=[-2000,-2000,990,990,-410,0] //lb //Bending Moment matrix B=[0,-10000,-4060,840,0] //Length matrix for shear force X_v=[0,5,5.0001,11,20.89999,20.9] //Length matrix for bendimg moment X_b=[0,5,11,19.9,20.9] //Plotting subplot(221) plot(X_v,V,X_v,0) xlabel("Shear Force Diagram","Span","Shear Force") subplot(222) plot(X_b,B,X_b,0) xlabel("Bending Moment Diagram","Span","Bending Moment") //Result clc printf('The bending Moment and Shear Force diagrams have been plotted\n') //Note //The textbook does not specify the span and hence there seems to be a disagreement between the textbook and scilab solution.here the values have just been plotted
aa6416dd9902a13bdcc47447e5261757fc80c5fb
449d555969bfd7befe906877abab098c6e63a0e8
/1427/CH25/EX25.24/25_24.sce
a9ddc1c0672e4c4a861f16db5294c15f843f17f8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
289
sce
25_24.sce
//ques-25.24 //Calculating mean free path for hydrogen gas clc visc=8.41*10^-6;//coefficient of viscosity (in Pas) den=9*10^-2;//density (in kg/kL) Cavg=1.69*10^3;//average velocity (in m/s) mfp=(2*visc)/(den*Cavg); printf("The mean free path required is %.2f*10^-7 m.",mfp*10^7);
92447648fd3048821f7e4082eb879f8a57646ecc
717ddeb7e700373742c617a95e25a2376565112c
/479/CH14/EX14.12/Example_14_12.sce
da72bbb337203f4aef925623d864838727e4d240
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
1,248
sce
Example_14_12.sce
//Chemical Engineering Thermodynamics //Chapter 14 //Thermodynamics of Chemical Reactions //Example 14.12 clear; clc; //Given //C + 2H2 - CH4 //Basis: 1 Kgmole of C fed T = 1000;//Temperature in K P1 = 2;//Pressure in atm del_F = 4580;//Standard free energy in Kcal/Kgmole //To Calculate the maximum CH4 concentration under the condition of 2 atm and the quantity of methane obtained if pressure is 1 atm Ka = %e^(-del_F/(R*T));//Equilibrium constant //In relation (d) (page no 339) p_H2 = p (say) p = poly(0,'p'); q = Ka*(p^2)+p-P1; r = roots(q); p_H2 = r(2);//partial pressure of H2 p_CH4 = P1-p_H2;//partial pressure of CH4 X_H2 = p_H2*100/P1;//mole percent of H2 X_CH4 = p_CH4*100/P1;//mole percent of CH4 mprintf('Under the conditions of 2 atm and 1000 K,the maximum CH4 concentration is %f percent and further increase is not pssible',X_CH4); //Now.pressure has become P2 = 1;//in atm q = Ka*(p^2)+p-P2; r = roots(q); p_H2 = r(2);//partial pressure of H2 p_CH4 = P2-p_H2;//partial pressure of CH4 X_H2 = p_H2*100/P2;//mole percent of H2 X_CH4 = p_CH4*100/P2;//mole percent of CH4 mprintf('\n\n Under the conditions of 1 atm and 1000 K,Methane = %f percent and Hydrogen = %f percent',X_CH4,X_H2); //end
86a6a304813c20fc9c57c82c1d8f79ffeb7a24a0
449d555969bfd7befe906877abab098c6e63a0e8
/1652/CH14/EX14.1/14_1.sce
8cfdfdff6bd3b56b03852814cb088204fea1658b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
187
sce
14_1.sce
clc //Initialization of variables x1=0.0200 Kx=812 //calculations disp("Neglecting 2x in comparision with x1,") x=x1/Kx //results printf("Moles of Iodine present = %.2e mole",x)
406f958f61a75d95505c348ee52daffec7ebaecc
449d555969bfd7befe906877abab098c6e63a0e8
/3843/CH1/EX1.10/Ex1_10.sce
762c1b3cb83738241ddda7f608b7855e4acb0d1d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
425
sce
Ex1_10.sce
// Example 1_10 clc;funcprot(0); // Given data m_a=2200;// kg V_a1=90*(1000/3600);// m/s V_a2=50*(1000/3600);// m/s m_b=1000;// kg V_b2=88*(1000/3600);// m/s // Calculation KE_1=(1/2)*m_a*V_a1^2;// J KE_2=((1/2)*m_a*V_a2^2)+((1/2)*m_b*V_b2^2);// J // dU=U_2-U_1 dU=KE_1-KE_2;// J printf("\nThe increase in internal energy,U_2-U_1=%6.0f J or %3.1f kJ",dU,dU/1000); // The answer vary due to round off error
dd82bb417a55913807f432162dd0bcfaea0c89f3
449d555969bfd7befe906877abab098c6e63a0e8
/1826/CH7/EX7.4/ex7_4.sce
974f814fbdc448b2633b4d149b92093eb0753082
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
325
sce
ex7_4.sce
// Example 7.4, page no-162 clear clc r=1.85*10^-10//m t=3.4*10^-14//s m=9.11*10^-31//Kg e=1.6*10^-19//C n=5.8*10^28//per m^3 rho=m/(n*t*e^2) printf("\nThe electric resistivity of material is %.3f*10^-8 Ohm-m",rho*10^8) mu=e*t/m printf("\nThe mobility of the electron in a metal is %.2f*10^-3 m^2/v-s",mu*10^3)
b5cc93573a41500b2be0a324273743f0d1125709
449d555969bfd7befe906877abab098c6e63a0e8
/1640/CH1/EX1.2/1_2.sce
15899f6d34c8b4169404b5e4916206f026f9cd45
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
272
sce
1_2.sce
clc //initialisation of variables a= 6 //ft h= 2 //ft sm= 13.6 sw= 1 sl=0.8 //CALCULATIONS dh= h*(sm-sw)+a h1= (dh-a)/(sl-1) //RESULTS printf ('pressure difference in ft of water= %.1f ft of water ',dh) printf ('\n reading of mercury= %.f ft of liquid ',h1)
7bfac3494b93a8d45e872e01657135f6a09c65e5
1d7cb1dbfad2558a4145c06cbe3f5fa3fc6d2c08
/Scilab/SparamUtilities/LossCurve_to_S4P_converter/LossCurve_to_S4P_Converter_v2.sce
0ea50a89c3eec1c7754e4f800cefc1a60179342e
[]
no_license
lrayzman/SI-Scripts
5b5f6a8e4ae19ccff53b8dab7b5773e0acde710d
9ab161c6deff2a27c9da906e37aa68964fabb036
refs/heads/master
2020-09-25T16:23:23.389526
2020-02-09T02:13:46
2020-02-09T02:13:46
66,975,754
0
0
null
null
null
null
UTF-8
Scilab
false
false
14,379
sce
LossCurve_to_S4P_Converter_v2.sce
// ====================== Loss Curve to S-param ==================== // // Creates an s2p or s4p file based on canonnical loss equation fit // of loss data // // // loss(dB)=length in inch (DC loss + alpha*f^0.5 + beta*f + gamma * f^2) // // where // alpha, beta, gamma - loss coefficients per inch // // (c)2014 L. Rayzman // // Created : 03/26/2014 // Last Modified: 03/26/2014 - Initial // 07/15/2014 - Added parameter extraction from data // Added DC loss calculation // // // // // // INPUT DATA INSTRUCTIONS: // 1. Prepare a CSV file containing loss data in the format // freq pt 1(GHz), loss pt 1(dB/PER INCH) // freq pt 2(GHz), loss pt 2(dB/PER INCH) // freq pt 3(GHz), loss pt 3(dB/PER INCH) // . // . // . // FOR EXCEL: // Usually this data will come from PCB Material IL Data spreadsheet // // Notes: - In Excel you can use Transpose Paste to convert horizontal to vertical data // - Save Excel data to .CSV file not .xls/.xlsx // - Frequency data does not have to be in sequential order // // FOR S-PARAM FILES: // It is possible to use SPEX to generate the CSV file // To do this // - view the curve you want to output // - in the plot, set the File->Delimiter to Comma(,) // - File->Export XY Data to .csv // - Open in Excel // Remove header line // Rescale to loss per inch, as necessary // // // // 2. Run this script and follow all commands // // // // // ==================================================================== // ==================================================================== //clear; stacksize(128*1024*1024); /////////////////////////////////////////////////////////////////////////////// fin_csv=emptystr(); // Filename of input CSV data spin_raw=[]; // Raw input CSV data spinfreqs=[]; // Input frequency data spinlossdata=[]; // Input loss data foutsparam = emptystr(); // Filename of S2p Output file spoutfreqs=[]; // Output frequency points vector spoutdata=[]; // Output S-param matrix data numofports=0; // Number of ports numofreqs=0; // Number of frequencies entries_choice=emptystr(); // Text matrix that describes available entries to view entry_idx=0; // freqMax=20.0e9; // Minimum and maximum frequencies freqMin=0; freqNum=400; // Number of frequency points alphaf=0; // Line loss parameters betaf=0; gammaf=0; DCloss=0; // DC loss in dB trc_wd=6; // Trace width for DC calculations trc_hght=0.65; // Trace height for DC calculations len_scalar=1; // Length normalization scaling factor splossdata_fit=[]; // Loss data fit c_coeff=[]; // Coefficients of fit curve c_coeff0=[alphaf;betaf;gammaf]; // Initial coefficient values // PLOTTING STUFF plot_fig_idx=0; // Plot index gui_plot_w = 600; // Plot width gui_plot_h = 400; // Plot height sHzPrefix=emptystr(); // Frequency scaling text prefix freqscalar=1; // Frequency scalar /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // // Curve fitting function for leastsq // // // // Inputs: // f: frequency point // x: coefficients // Outputs: // y: ditto // function y=xfit(f, x) y=x(1)*f.^(0.5)+x(2)*f+x(3)*f.^2 endfunction // // Error function for leastsq // // // // Inputs: // // f: frequency points vector // x_hat: esimated data value // x: actual data value // Outputs: // e: ditto // function e=errfunc(x_hat, f, x) e= x - xfit(f, x_hat) endfunction /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// /////////////////// // Get Scilab Version /////////////////// version_str=getversion(); version_str=tokens(version_str,'-'); version_str=tokens(version_str(2),'.'); version(1)=msscanf(version_str(1), '%d'); version(2)=msscanf(version_str(2), '%d'); if (version(1)<5) then error("Invalid Scilab version. Version 5.5 or greater is required"); elseif (version(2) < 5) then error("Invalid Scilab version. Version 5.5 or greater is required"); end /////////////////// // Informational /////////////////// messagebox("See notes in sce file for instructions on input data format", "modal", "info", "OK"); /////////////////// // Select input data file /////////////////// fin_csv=uigetfile("*.csv", "", "Please choose phase noise data file"); if fin_csv==emptystr() then messagebox("Invalid source file selection. Script aborted", "","error","Abort"); abort; end disp(strcat(["Info: Begin loading input data file " fin_csv])); spin_raw=csvRead(fin_csv); // Read raw data if size(spin_raw,2)<>2 then messagebox("Invalid dimensions of input data. Expecting data in (freq, data) format. Script aborted", "","error","Abort"); abort; end //... and sort in the process spinfreqs=spin_raw(:,1)*1e9; // In Hz [spinfreqs,spinorder]=gsort(spinfreqs,'g','i'); spinlossdata=spin_raw(spinorder,2); // In dB // check loss data, if attenuation make it loss spinlossdata=spinlossdata.*((spinlossdata<=0)*2-1); clear spin_raw; disp("Info: Finished loading data file"); /////////////////// // Get and compute DC loss /////////////////// labels=["Trace Width(mil)";"Trace Height(mil)"]; [ok,trc_wd,trc_hght]=getvalue("Trace geometry for DC loss",labels,... list("vec",1,"vec",1),[string(trc_wd);string(trc_hght)]) if ok == 0 then messagebox("Why did you press cancel. Don''t you like my script?") abort; end //calculate loss DCloss=20*log10(2/(2+ (0.0254)/(5.8e7*trc_wd*2.54e-5*trc_hght*2.54e-5)/50)); /////////////////// // Get number of ports /////////////////// sportcnt=x_choices('',list(list('Select number of ports for output:',3,['No output', '2-port','4-port']))); if sportcnt==1 then //No output numofports=0; elseif sportcnt==2 then //2-port numofports=2; elseif sportcnt==3 then //4-port numofports=4; else messagebox("Invalid number of ports selected. Script aborted", "","error","Abort"); abort; end /////////////////// // Get frequeny range /////////////////// if numofports>0 then labels=["Fmin";"Fmax";"Num of pts"]; [ok,freqMin,freqMax,freqNum]=getvalue("Output data frequency range (GHz)",labels,... list("vec",1,"vec",1,"vec",1),[string(freqMin/1e9);string(freqMax/1e9);string(freqNum)]) else labels=["Fmin";"Fmax"]; [ok,freqMin,freqMax]=getvalue("Output data frequency range (GHz)",labels,... list("vec",1,"vec",1),[string(freqMin/1e9);string(freqMax/1e9)]) end if ok == 0 then messagebox("Why did you press cancel. Don''t you like my script?") abort; end freqMin=evstr(freqMin)*1e9; freqMax=evstr(freqMax)*1e9; freqNum=evstr(freqNum); //Generate frequency vector spoutfreqs=freqMin:(freqMax-freqMin)/(freqNum-1):freqMax; //Generate frequency points /////////////////// // Get scaling factor /////////////////// if numofports>0 then [ok,len_scalar]=getvalue(["Length scaling factor"; ""; "Example: 1 meter : 1 inch = 39.37"],"", list("vec",1),"39.37"); if ok == 0 then messagebox("Why did you press cancel. Don''t you like my script?") abort; end end /////////////////// // Setup files/directories for output /////////////////// if numofports>0 then if numofports==2 then foutsparam=uigetfile("*.s2p", "", "Please choose destination S-parameters file"); if fileext(foutsparam)==emptystr() then foutsparam=strcat([foutsparam ".s2p"]); end else foutsparam=uigetfile("*.s4p", "", "Please choose destination S-parameters file"); if fileext(foutsparam)==emptystr() then foutsparam=strcat([foutsparam ".s4p"]); end end if foutsparam==emptystr() then messagebox("Invalid destination file selection. Script aborted", "","error","Abort"); abort; end end /////////////////// // Curve fit equation coefficients /////////////////// [splossdata_fit, c_coeff]=leastsq(list(errfunc, spinfreqs/1e9, spinlossdata-DCloss), c_coeff0); alphaf=c_coeff(1)*(1e-9)^0.5; // This is workaround(?) for leastsq betaf=c_coeff(2)*(1e-9); // because it doesn't seem to find small gammaf=c_coeff(3)*(1e-9)^2; // coefficient values when using the native // frequency range clear c_coeff; clear c_coeff0; /////////////////// // Create S-param /////////////////// if numofports>0 then disp(strcat(["Info: Begin writing output data file " foutsparam])); numofreqs=length(spoutfreqs); // Initialize spoutdata=ones(numofports,numofports,numofreqs)*(10^(-100/20)+1e-9*%i); if numofports==2 then //2-ports version for i=1:numofreqs, spoutdata(2,1,i)=10^((DCloss+alphaf*(spoutfreqs(i)^0.5)+betaf*(spoutfreqs(i))+gammaf*(spoutfreqs(i)^2))*len_scalar/20)+1e-9*%i; spoutdata(1,2,i)=10^((DCloss+alphaf*(spoutfreqs(i)^0.5)+betaf*(spoutfreqs(i))+gammaf*(spoutfreqs(i)^2))*len_scalar/20)+1e-9*%i; end else // 4-port version for i=1:numofreqs, spoutdata(2,1,i)=10^((DCloss+alphaf*(spoutfreqs(i)^0.5)+betaf*(spoutfreqs(i))+gammaf*(spoutfreqs(i)^2))*len_scalar/20)+1e-9*%i; // IL spoutdata(1,2,i)=10^((DCloss+alphaf*(spoutfreqs(i)^0.5)+betaf*(spoutfreqs(i))+gammaf*(spoutfreqs(i)^2))*len_scalar/20)+1e-9*%i; spoutdata(4,3,i)=10^((DCloss+alphaf*(spoutfreqs(i)^0.5)+betaf*(spoutfreqs(i))+gammaf*(spoutfreqs(i)^2))*len_scalar/20)+1e-9*%i; spoutdata(3,4,i)=10^((DCloss+alphaf*(spoutfreqs(i)^0.5)+betaf*(spoutfreqs(i))+gammaf*(spoutfreqs(i)^2))*len_scalar/20)+1e-9*%i; end end // Compute data for each freq sptlbx_writetchstn(foutsparam, spoutfreqs, spoutdata); disp("Info: Finished writing file"); end /////////////////// // Plot the fit /////////////////// // Determaxe frequency scalar for the plot select find([spoutfreqs($)/1e12 spoutfreqs($)/1e9 spoutfreqs($)/1e6 spoutfreqs($)/1e3 spoutfreqs($)] >= 1, 1) case 1 then //THz :) sHzPrefix= "T"; freqscalar=1e12; case 2 then //GHz sHzPrefix= "G"; freqscalar=1e9; case 3 then //MHz sHzPrefix= "M"; freqscalar=1e6; case 4 then // KHz sHzPrefix= "K"; freqscalar=1e3; case 5 then // Hz freqscalar=1; else freqscalar=1; end // Create Plot window global plot_fig_idx; plot_fig = scf(plot_fig_idx); plot_fig.figure_name = gettext(strcat("Insertion Loss Fit Plot")); plot_fig.axes_size = [gui_plot_w gui_plot_h]; drawlater(); //Plot the fit over the frequency range plot(spinfreqs/freqscalar, spinlossdata, "kx", spoutfreqs/freqscalar, DCloss+xfit(spoutfreqs, [alphaf;betaf;gammaf]), "b-"); // Lables and things xtitle("Insertion Loss Fit"); xlabel(strcat(["Freq (" sHzPrefix "Hz)"])); ylabel("IL (dB/in)"); format('v',6); // All this funkiness to get correct float format in text :) infotext=strcat(["DC Loss:" string(DCloss) "dB | "]); format('e',9); infotext=strcat([infotext "alpha:" string(alphaf) " | beta:" string(betaf) " | gamma:" string(gammaf)]) xinfo(infotext); format('v',10); clear infotext; xgrid(12); // Set plot axis x_min=plot_fig.children.data_bounds(1,1); y_min=floor(DCloss+xfit(spoutfreqs($), [alphaf;betaf;gammaf])); x_max=plot_fig.children.data_bounds(2,1); y_max=0; plot_fig.children.data_bounds=[x_min, y_min; x_max,y_max]; // Pretty-fi labels=plot_fig.children.x_ticks.labels; // Funky labels workaround plot_fig.children.x_ticks.labels=labels; clear labels; plot_fig.children.x_label.font_size=2; plot_fig.children.y_label.font_size=2; plot_fig.children.title.font_size=3; drawnow(); disp("Done!");
b053434ce59d9c1f858ae0ba6debbb7496f4d55c
449d555969bfd7befe906877abab098c6e63a0e8
/830/CH8/EX8.2.3/FIR_LPF.sce
e4df90e79784ce914a9c76eb90eb7aac522db9ba
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
803
sce
FIR_LPF.sce
//Graphical// //Example 8.2.3 //Low Pass FIlter of length M = 61 //Pass band Edge frequency fp = 0.1 and a Stop edge frequency fs = 0.15 // Choose the number of cosine functions and create a dense grid // in [0,0.1) and [0.15,0.5) //magnitude for pass band = 1 & stop band = 0 (i.e) [1 0] //Weighting function =[1 1] clear; clc; close; hn=eqfir(61,[0 .1;.15 .5],[1 0],[1 1]); [hm,fr]=frmag(hn,256); disp('The Filter Coefficients are:') hn figure plot(fr,hm) xlabel('Normalized Digital Frequency fr'); ylabel('Magnitude'); title('Frequency Response of FIR LPF using REMEZ algorithm M=61') figure plot(.5*(0:255)/256,20*log10(frmag(hn,256))); xlabel('Normalized Digital Frequency fr'); ylabel('Magnitude in dB'); title('Frequency Response of FIR LPF using REMEZ algorithm M=61')
0eb12ea2013c0f09bfdff70f4e186be93be3c3c0
449d555969bfd7befe906877abab098c6e63a0e8
/551/CH11/EX11.26/26.sce
5433e3d820a7dde509cf1b05a8c3b765e1371282
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
785
sce
26.sce
clc disp("(i) Stoichiometric air fuel ratio ") // C_aH_bO_cN_d a=84/12; b=10; c=3.5/16; d=1.5/14; // C7 H10 O0.218 N0.107 + x O2 + x*(79/21)N2 → p CO2 + q H2O + r N2 p=7; q=10/2; x=(2*p+q-c)/2; r=(d+2*x*(79/21))/2; AF=(x*32+x*79/21*28)/100; disp("Stoichiometric A/F ratio =") disp(AF) disp("(ii) Percentage composition of dry flue gases by volume with 20 per cent excess air :") // C7H10O0.218N0.107 + (1.2)(9.39) O2 + (1.2)(9.39)*(79/21)N2 → 7CO2 + 5H2O + (0.2)(9.39) O2 + (1.2)(35.4) N2 n=7+0.2*9.39+1.2*35.4; disp("Percentage composition of dry flue gases by volume is as follows :") disp("CO2 =") CO2=7/n*100; disp(CO2) disp("%") disp("O2 =") O2=1.878/n*100; disp(O2) disp("%") disp("N2 =") N2=42.48/n*100; disp(N2) disp("%")
5b2fe6142cfdc653665cb9a87a17af04d7be53b1
9cb37875b74a713c93c09fa50ccc70ac0f71ecdb
/Bauzil/Dynamic.sce
6ebd498b82ce8a78415d484d6d89ffabc00fd0de
[]
no_license
jmainpri/move3d-assets
a5b621daaedaaf8784fed0da1e80d029c83f3983
939db49d17a14e052bb58324b70e6112803d3105
refs/heads/master
2021-01-16T17:48:56.669119
2016-02-16T14:04:09
2016-02-16T14:04:09
20,237,987
1
0
null
null
null
null
UTF-8
Scilab
false
false
8,763
sce
Dynamic.sce
#************************************************************ # Scenario of grandesalle # # date : Wed Nov 25 14:26:29 2009 #************************************************************ p3d_sel_desc_name P3D_ENV grandesalle p3d_sel_desc_name P3D_ROBOT COFFEETABLE p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 7.758203 -0.291413 0.036382 0.000000 0.000000 90.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT sofa1 p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.205015 -0.022124 0.000000 0.000000 0.000000 -44.247791 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT sofa2 p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 5.753688 -0.056539 0.006883 0.000000 0.000000 -136.283188 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT CUPBOARDTABLE p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.983776 -1.536381 0.000000 0.000000 0.000000 28.318592 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT hrp2_table p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.868731 -4.633727 0.000000 0.000000 0.000000 0.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT TRASHBIN p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.812685 -3.291544 0.000000 0.000000 0.000000 0.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT gripper_robot p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -1.550000 0.000000 2.900000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_constraint p3d_lin_rel_dofs 1 3 1 2 2 1.000000 0.000000 0 p3d_sel_desc_name P3D_ROBOT BOTTLE p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.572763 0.000000 0.000000 0.000000 0.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT human p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.205015 0.012291 0.485251 0.000000 0.000000 -42.477875 0.000000 0.000000 1.760082 0.000000 0.000000 -3.520153 24.641102 -31.681419 -33.441490 -24.641102 17.600796 -33.441490 -70.403145 -49.282204 5.280245 66.882980 24.641102 0.000000 -3.520153 0.000000 36.960000 0.000000 0.000000 36.960000 0.000000 -38.720000 0.000000 0.000000 -35.201572 -1.760082 0.000000 1.760082 80.963615 0.000000 0.000000 80.963615 0.000000 0.000000 -75.683380 0.000000 0.000000 -79.203545 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.840000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -65.120000 -42.240000 0.000000 65.120000 42.240000 1.760000 -1.760000 0.000000 36.960000 0.000000 0.000000 36.960000 0.000000 -38.720000 0.000000 0.000000 -38.720000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT humanStand p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 2.435103 -0.779253 0.840000 0.000000 0.000000 67.256630 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -65.120000 -42.240000 0.000000 65.120000 42.240000 1.760000 -1.760000 0.000000 36.960000 0.000000 0.000000 36.960000 0.000000 -38.720000 0.000000 0.000000 -38.720000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.910029 -0.848083 0.840000 0.000000 0.000000 67.256630 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -65.120000 -42.240000 0.000000 65.120000 42.240000 1.760000 -1.760000 0.000000 36.960000 0.000000 0.000000 36.960000 0.000000 -38.720000 0.000000 0.000000 -38.720000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 p3d_set_robot_config config_1 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.910029 -0.848083 0.840000 0.000000 0.000000 67.256630 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -65.120000 -42.240000 0.000000 65.120000 42.240000 1.760000 -1.760000 0.000000 36.960000 0.000000 0.000000 36.960000 0.000000 -38.720000 0.000000 0.000000 -38.720000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 0.400000 0.000000 1.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT ROBOT p3d_set_robot_steering_method Multi-Localpath p3d_set_robot_radius 1.000000 p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.940729 -1.126227 179.421533 2.587016 0.775150 -89.489290 87.245924 89.771462 0.511672 -86.439039 -68.754331 0.031105 0.031105 0.044177 0.110834 3.947886 -1.460177 0.851229 0.098329 0.000000 -180.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.940729 -1.126227 179.421533 2.587016 0.775150 -94.762756 2.933228 106.416891 -2.726724 -76.758066 -64.045862 0.031105 0.031105 0.044177 0.110834 4.110128 -0.432645 0.807965 0.098329 0.000000 122.123894 p3d_set_robot_config config_3 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.940729 -1.126227 179.421533 2.587016 0.775150 -94.762756 2.933228 106.416891 -2.726724 -76.758066 -64.045862 0.031105 0.031105 0.044177 0.110834 4.110128 -0.432645 0.807965 0.098329 0.000000 122.123894 p3d_set_robot_config config_2 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.940729 -1.126227 179.421533 2.587016 0.775150 -97.462684 85.657380 94.585625 -7.450137 -68.423550 -68.663317 0.031105 0.031105 0.044177 0.110834 4.001966 -1.568338 0.788986 180.000000 180.000000 21.238934 p3d_set_robot_config config_1 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 5.029498 -1.027532 180.000000 0.000000 0.000000 -95.306574 99.534499 61.090038 -6.933273 -42.412398 -66.021989 0.031270 0.031270 0.000000 0.000000 4.001966 -1.568338 0.851229 180.000000 180.000000 -28.318581 p3d_constraint p3d_lin_rel_dofs 1 13 1 12 2 1.000000 0.000000 0 p3d_constraint p3d_pa10_6_arm_ik 6 5 6 7 8 9 10 1 17 0 1 7 p3d_set_cntrt_Tatt 1 0.000000 0.000000 1.000000 -0.330000 0.360000 0.920000 0.000000 0.000000 -0.920000 0.360000 0.000000 0.060000 p3d_set_object_base_and_arm_constraints 17 1 0 1 1
60001944f86c8c388e95e6538221b710b18cfa4e
449d555969bfd7befe906877abab098c6e63a0e8
/3845/CH30/EX30.3/Ex30_3.sce
742216caf786c3293bde7fb9f3200fa7730de96b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
607
sce
Ex30_3.sce
//Example 30.3 l=1;//Angular momentum quantum number h=6.63*10^-34;//Planck's constant (kg.m^2/s) L=sqrt(l*(l+1))*h/(2*%pi);//Angular momentum vector (kg.m^2/s) printf('Angles that L can make with the z-axis:\n') for ml=1:-1:-1//ml is the angular momentum projection quantum number (for l=1, ml can be +1,0 or -1) L_Z=ml*h/(2*%pi);//Component of angular momentum vector along z-axis (kg.m^2/s) theta=acosd(L_Z/L);//Angles that L can make with the z-axis (deg) printf('%0.1f deg\n',theta) end //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest
4817fa964817e168e9de3166fb6b0833b98d3948
449d555969bfd7befe906877abab098c6e63a0e8
/1628/CH12/EX12.3/Ex12_3.sce
7bdd169cf4cb864151afb455c9ec60844d4f0ee9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,508
sce
Ex12_3.sce
// Example 12.3 Z1=100; // Impedence Z1 in Delta-connection load R2=20; // Resistance R2 in Delta-connection load f=50; // Frequency L2=0.191; // Inductance X2=2*%pi*f*L2; // Reactance X2 in Delta-connection load Z2=sqrt(R2^2+X2^2); // Impedence Z2 in Delta-connection load Q2=atand(60/20); // Phase angle C3=30*10^-6; // Capacitor Z3=1/(2*%pi*f*C3); // Impedence Z3 in Delta-connection load Q3=90; // Leading phase angle I1=415/Z1; // Phase current I1 in loads RY disp(' Phase current I1 in loads RY = '+string(I1)+' Amp'); I2=415/Z2; // Phase current I2 in loads YB disp(' Phase current I2 in loads YB = '+string(I2)+' Amp'); I3=415/Z3; // Phase current I3 in loads BR disp(' Phase current I3 in loads BR = '+string(I3)+' Amp'); IR=sqrt(I1^2+I3^2+(2*I1*I3*cosd(30))); // Current in the liner conductor R disp(' Current in the liner conductor R = '+string(IR)+' Amp'); QY=Q2-60; // Phase diffrence between I2-I1 IY=sqrt(I1^2+I2^2+(2*I1*I2*cosd(QY))); // Current in the liner conductor Y disp(' Current in the liner conductor Y = '+string(IY)+' Amp'); QB=180-QY-30; // Phase diffrence between I2-I3 IB=sqrt(I2^2+I3^2+(2*I2*I3*cosd(QB))); // Current in the liner conductor B disp(' Current in the liner conductor B = '+string(IB)+' Amp'); // p 411 12.3
55e262c90701ce15fa42f5d37511fec67891164b
5f48beee3dc825617c83ba20a7c82c544061af65
/tests/s/35.tst
c621e0efd2dd486f7eb9fc1072fd9b9c7e05aa6f
[]
no_license
grenkin/compiler
bed06cd6dac49c1ca89d2723174210cd3dc8efea
30634ec46fba10333cf284399f577be7fb8e5b61
refs/heads/master
2020-06-20T12:44:17.903582
2016-11-27T03:08:20
2016-11-27T03:08:20
74,863,612
3
0
null
null
null
null
WINDOWS-1251
Scilab
false
false
128
tst
35.tst
int main(void) { struct a; struct a c; /* ошибка */ { struct a { int x; }; struct a b; } }
e1e3d44ff048f0567ae14263cb5fd04fdb3e3962
ebd6f68d47e192da7f81c528312358cfe8052c8d
/swig/Examples/test-suite/scilab/funcptr_cpp_runme.sci
2065fb1df448fab86ddfac166133ca173c30ca46
[ "LicenseRef-scancode-swig", "GPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "Apache-2.0" ]
permissive
inishchith/DeepSpeech
965ad34d69eb4d150ddf996d30d02a1b29c97d25
dcb7c716bc794d7690d96ed40179ed1996968a41
refs/heads/master
2021-01-16T16:16:05.282278
2020-05-19T08:00:33
2020-05-19T08:00:33
243,180,319
1
0
Apache-2.0
2020-02-26T05:54:51
2020-02-26T05:54:50
null
UTF-8
Scilab
false
false
338
sci
funcptr_cpp_runme.sci
exec("swigtest.start", -1); checkequal(call1(ADD_BY_VALUE_get(), 10, 11), 21, "ADD_BY_VALUE"); checkequal(call2(ADD_BY_POINTER_get(), 12, 13), 25, "ADD_BY_POINTER"); checkequal(call3(ADD_BY_REFERENCE_get(), 14, 15), 29, "ADD_BY_REFERENCE"); checkequal(call1(ADD_BY_VALUE_C_get(), 2, 3), 5, "ADD_BY_VALUE_C"); exec("swigtest.quit", -1);
594e8ac72a6e62f8ea336ea11554d7a62a8bd235
449d555969bfd7befe906877abab098c6e63a0e8
/632/CH3/EX3.11/example3_11.sce
d6bad8e8c739ed5bc0b5e76f1e41f8f60440a688
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
417
sce
example3_11.sce
//clc() API1 = 30;//API sp.g1 = 141.5/(131.5 + API1);// (since, API = 141.5/sp.g -131.5) Dwater = 999;//kg/m^3; Doil1 = sp.g1 * Dwater; V1 = 250;//m^3 m1 = V1 * Doil1; API2 = 15;//API sp.g2 = 141.5/(131.5 + API2);// (since, API = 141.5/sp.g -131.5) Dwater = 999;//kg/m^3; Doil2 = sp.g2 * Dwater; V2 = 1000;//m^3 m2 = V2 * Doil2; Dmix = (m1 + m2)/(V1 + V2); disp("kg/m^3",Dmix,"density of the mixture =")
03a8c34263c3e2c255c52226b5a61546dc39892a
0764595c2d11c42afddd3351da341f9e9c4db651
/codigos_aula/dec2float.sci
77eef3a32348ac5f667c6f227b68560204ad8975
[]
no_license
ThiagosLima/metodos-numericos
e3933c43362c6f047714980841f7c64f1a345bb0
df21508b72b94e64a424e6b50564e948019a9eab
refs/heads/main
2022-12-30T10:06:57.560852
2020-10-05T00:41:52
2020-10-05T00:41:52
301,257,290
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,288
sci
dec2float.sci
function [e,a2]=dec2float(a,n,m) sinal = 0 if (a<0) then sinal = 1 end Emin = -2^(n-1) Emax = +2^(n-1) E = floor(log2(abs(a))) if (E<Emin) then e= [sinal zeros(2:n+m)] a2=sign(a)*0 printf("underflow\n") elseif (E>=Emax) then e= [sinal ones(1:n+m) ] a2 = float2dec(e,n,m) // a2 = maior decimal! printf("overflow\n") else expoente = dec2binario(E-Emin,n) m_d= floor((abs(a)*2^(m-E-1))) //mantissa decimal mantissa = dec2binario(m_d,m); mantissa = mantissa(2:m) // descarta o bit mais significativo e = [sinal expoente mantissa] // e = float binário a2 = float2dec(e,n,m) // a2 = decimal reconstituido end endfunction function [e,a2]=dec2float1(a,n,m) sinal = 0 if (a<0) then sinal = 1 end Emin = -2^(n-1) Emax = +2^(n-1) E = floor(log2(abs(a))) if (E<Emin) then e= [sinal zeros(2:n+m)] a2=sign(a)*0 printf("underflow\n") elseif (E>=Emax) then e= [sinal ones(1:n+m) ] a2 = float2dec(e,n,m) // a2 = maior decimal! printf("overflow\n") else expoente = dec2binario(E-Emin,n) m_d= floor((abs(a)*2^(m-E-1))) //mantissa decimal mantissa = dec2binario(m_d,m); mantissa = mantissa(2:m) // descarta o bit mais significativo e = [sinal expoente mantissa] // e = float binário printf("decimal original = %f\n",a) a2 = float2dec(e,n,m) // a2 = decimal reconstituido end printfloat(e,n,m) printf("float (%d,%d) = %f\n",n,m,a2) endfunction function a2=decimal2float2(a,m,n) function a=float2dec(e,m,n) // Conversão de float para decimal sinal = e(1) mantissa = e(2:m) expoente = e(m+1:n) Emin = -2^(n-1)+1 a_m = binario2dec([1 e(2:m)],m) // reconstitui o bit mais significativo a_e = binario2dec(e(m+1:m+n),n) + Emin a = (-1)^sinal * (a_m) * 2^(a_e-m) endfunction function a=binario2dec(b,n) p= 2^(n-1:-1:0); a= b*p'; // conversão do binário 'b' para decimal 'a' endfunction function b=dec2binario(a,n) p= 2^(n-1:-1:0); r=int(a./p) b = rem(r,2) //conversão do decimal 'a' para o binário 'b' endfunction Emin = -2^(n-1) Emax = 2^(n-1) // 0000 0001 a 1111 1110 if (a>1) then E = int(log2(abs(a))) else E = floor(log2(abs(a))) end E = floor(log2(abs(a))) if (E<Emin) then e=zeros(1:n+m) a2=sign(a)*0 printf("underflow\n") elseif (E>=Emax) then e=ones(1:n+m) a2=sign(a)*2^(n+1) printf("overflow\n") else sinal = 0 if (a<0) then sinal = 1 end expoente = dec2binario(E-Emin,n) m_d= floor((abs(a)*2^(m-E-1))) //mantissa decimal mantissa = dec2binario(m_d,m); mantissa = mantissa(2:m) // descarta o bit mais significativo e = [sinal mantissa expoente] printf("decimal original = %f\n",a) printf("float binário = [%1d] [",sinal) for (i=1:m-1) printf("%1d",mantissa(i)) end printf("] [") for (i=1:n) printf("%1d",expoente(i)) end printf("]\n") a2 = float2dec(e,m,n) // conversão do float e para decimal a2 end printf("decimal reconstituído = %f\n",a2) endfunction function a=float2dec(e,n,m) sinal = e(1) expoente = e(2:n+1) mantissa = e(n+2:n+m) Emin = -2^(n-1) a_e = binario2dec(expoente,n) + Emin +1 a_m = binario2dec([1 mantissa],m) // + 1 bit a = (-1)^sinal * (a_m) * 2^(a_e-m) endfunction function a=float2dec1(e,n,m) sinal = e(1) expoente = e(2:n+1) mantissa = e(n+2:n+m) Emin = -2^(n-1) a_e = binario2dec(expoente,n) + Emin +1 a_m = binario2dec([1 mantissa],m) // + 1 bit a = (-1)^sinal * (a_m) * 2^(a_e-m) printfloat(e,n,m) printf("float (%d,%d) = %10f\n",n,m,a) endfunction
615e0cb31ff8d3efa5b18d25fe0d296cdc08a809
717ddeb7e700373742c617a95e25a2376565112c
/668/CH9/EX9.4/eg9_4.sce
25d82ff98258f23c81358181b30ab915a698d70c
[]
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
471
sce
eg9_4.sce
Na = 5*10^16; phiMS = -0.5; un = 600; up = 200; T = 300; kT = 26*10^-3; //in eV q = 1.6*10^-19; ni = 1.5*10^10; eps0 = 8.85*10^-14; //in F/m eps = 11.9*eps0; eps1 = 3.9*eps0; psiS = 2*phiF; w = 200*10^-8; sigma_fb= Na*q*up; disp(sigma_fb,"σ(fb) (in per ohm-cm) = ") sigma_inv = Na*q*un; disp(sigma_inv,"σ(inv) (in per ohm-cm) = ") phiF = kT*log(Na/ni); disp(phiF,"φF (in V) = ") Vt = phiMS + psiS + 1.637; disp(Vt,"the threshold voltage (in V) = ")
9b1bed4e938ea82f769138b68b36f8c0de9a1cfa
bc4afd13b6991b1fc667832b7e1bf237ad99428a
/exercicio29-04/ex10.sce
1ee83496e74e134fe1d41d7bd2f12ba2293234ee
[]
no_license
furiossam/Scilab
9cadd58c451431c44294d79d4d74f03e0601e56d
c4837aa23cfae7d791b3e8bc947b2df007355df2
refs/heads/master
2021-01-20T08:29:26.345689
2017-05-03T13:52:01
2017-05-03T13:52:01
90,151,705
0
0
null
null
null
null
UTF-8
Scilab
false
false
400
sce
ex10.sce
matriz1=zeros(5,5) disp("Digite a primeira matriz:") for i=1 :1:5 for j=1:1:5 matriz1(i,j)=input("Digite o elemento ") disp("Lido com sucesso") end end matriz2=zeros(5,5) disp("Digite a segunda matriz") for i=1 :1:5 for j=1:1:5 matriz2(i,j)=input("Digite o elemento ") disp("Lido com sucesso") end end diferenca=matriz1-matriz2 disp(soma)
689261c8080fdb38ad8be91a322147a9da8adab6
449d555969bfd7befe906877abab098c6e63a0e8
/1571/CH8/EX8.16/Chapter8_Example16.sce
fa5916b997574adcc8477d114bcf08debb681093
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
314
sce
Chapter8_Example16.sce
clc clear //INPUT dv=4;//final volume of neon in lit t=273;//temperature of the gas in K n=2.6/22.4;//the no.of moles of neon r=1.98;//universal gas constant in cal/K.mol //CALCULATIONS w=n*t*r*log(dv);//work done by gas in ergs //OUTPUT mprintf('the work done by 2.6lit of neon is %3.2f ergs',w)
8a49ee58e10a621e7e96ddacaf9b38c5f4f776e0
449d555969bfd7befe906877abab098c6e63a0e8
/3257/CH6/EX6.7/Ex6_7.sce
e2584e30da94e3e5765cae870f51edc169b60ea4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
618
sce
Ex6_7.sce
// Power required for rolling clc t1 = 6 // initial thickness in mm t2 = 3 // final thickness in mm v = 0.6 // velocity in m/s x = 0.35 // fractional difference between values K = 895 // in MPa n = 0.49 // from table printf("\n Example 6.7") epsilon = log(t1/t2) Y_bar = K*epsilon^n/(1+n) Af = %pi/4*(t2*1e-3)^2 F = Y_bar*Af*epsilon power = F*v // power printf("\n Part A:") printf("\n Power required for operation is %d W.",power*1e6) p_act = (1+x)*power Yf = K*epsilon^n sigma_d = F*(1+x)/Af p = Yf - sigma_d printf("\n\n Part B:") printf("\n Die pressure at exit of die is %d MPa.",p)
c8717bc1473f149f7a910dd3139e09a364b2faaa
c645f66bc165dc95ee9fad51cb807fb3f87274bb
/test_solve.sci
b53a1934ee8fe7e1c982e5fde2e4f75605d443fe
[]
no_license
Younes-97/TP-Calcul-Num-rique
43faa872415b280b41b4a8e4f10887ce47de2616
098a68cb8e92586a75bf4dd20189c5a7efca6e59
refs/heads/main
2023-02-02T11:54:40.506903
2020-12-17T12:07:22
2020-12-17T12:07:22
318,046,472
0
0
null
null
null
null
UTF-8
Scilab
false
false
624
sci
test_solve.sci
s = 100 rand("seed") n=3 U=rand(n,n);//Ici on génère une matrice carée avec des nombre aléatoires //UL=tril(U);//On prend la partie triangulaire inferieur de la matrice A //On aura une matrice triangulaire inferieur UU=triu(U);//On va prend la partie triangulaire superieur de la matrice A //On aura une matrice triangulaire superieur xex=rand(n,1);//Vecteur solution b = UU*xex;//Creation du second membre //xl = lsolve(U,b) xu = usolve(U,b) //Calcul de l'erreur en avant fErrorB = norm(xex-xu,2)/norm(xex,2) //Calcul de l'erreur arrière bErrorB = norm(b-U*xu,2)/norm(b,2)
6ff07b7d14cccc6f39c05e63d9b0e2b080babda7
389bd4af3bf5a0f54f51e8aafea5035f568ba445
/6 Kasım TamBol hocanın yaptıgı.sce
de86d5d8dbd4316d6b3c10c86de56a3d00b31bbc
[]
no_license
esraatlici/Bilgisayar-Destekli-Matematik
d47f057d9cb7ee987e367c67f8923cfcf02342d8
dae1079f60fc7e0d3b54802b4cbed9182b52fcd7
refs/heads/main
2022-12-25T11:14:25.575530
2020-10-05T15:09:58
2020-10-05T15:09:58
301,447,895
0
0
null
null
null
null
UTF-8
Scilab
false
false
198
sce
6 Kasım TamBol hocanın yaptıgı.sce
function out=tamBol(x,y) a=length(x); n=0; for k=1:1:a if modulo(x(k),y)==0 then n=n+1; f(n)=x(k); end end out=f; endfunction
54ceacaf1805034b9d63c9af71bea9ee83538e16
449d555969bfd7befe906877abab098c6e63a0e8
/692/CH9/EX9.2/P9_2.sce
cb1fc12e7b317a60aef620c9c7ef439dae16ff41
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
217
sce
P9_2.sce
//EXAMPLE 9.2 //analog passband & stopband frequencies(in KHz) : clc; clear; ap=7; as=3; //Sampling frequency (in KHz): FT=25; //digital frequencies: wp=2*%pi*ap/FT; disp(wp,'wp = '); ws=2*%pi*as/FT; disp(ws,'ws = ');
7659b2eaa81c625fbab5adfdb8b3e1dba745f4c0
ebfed86dee276110294a4e93fa80377908bbd317
/macros/bbox2points.sci
71b1db60cdcb742f12f50f0018398c3601f7b4b3
[]
no_license
gursimarsingh/FOSSEE-Image-Processing-Toolbox
a9d46b698c98566fec867eb2ce3cfeb427058d5c
165f6d7d1f20262a1637a923c6aad6e663ad1538
refs/heads/master
2021-08-16T19:18:59.591175
2017-11-08T17:55:04
2017-11-08T17:55:04
96,531,802
0
0
null
2017-07-07T11:21:10
2017-07-07T11:21:10
null
UTF-8
Scilab
false
false
1,009
sci
bbox2points.sci
// Copyright (C) 2015 - IIT Bombay - FOSSEE // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt // Author:Tanmay Chaudhari // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in function [ out ] = bbox2points(rectangle) // Returns list of corner points of a rectangle. // // Calling Sequence // bbox = bbox2points(rectangle); // // Parameters // rectangle: A Nx4 matrix where each row is a rectangle of the form [x, y, width, height]; // points: Returns 4x2xN size matrix which contains all the 4 co-ordinates of each of the N bounding boxes. // // Description // List of corner points of a rectangle. // // Examples // bbox = [1 2 3 4; 5 6 7 8]; // results = bbox2points(bbox); // // Authors // Tanmay Chaudhari out=raw_bbox2points(rectangle); endfunction
efe9f1ae14012aed1ef403a332f3b9c72a60622d
ee62952b744fedbf77ab86c758215cfff1112529
/projects/02/Inc.tst
ff02576bfc68902b8581b6c22b5908c950eb2b80
[]
no_license
Asergey91/nand2tetris
af3b4d321a44c40966bf4487693995d7fd974b08
f47d9a168726e729b7fa833748f87959c310449c
refs/heads/master
2020-05-01T16:37:45.743457
2019-03-25T11:56:05
2019-03-25T11:56:05
177,577,066
0
0
null
null
null
null
UTF-8
Scilab
false
false
343
tst
Inc.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/02/HalfAdder.tst load Inc.hdl, output-file inc.out, compare-to inc.cmp, output-list in%B3.1.3 sum%B3.1.3 carry%B3.1.3; set in 0, eval, output; set in 1, eval, output;
791683e8a71da551ef27ee8ad3cce11144ca82d4
449d555969bfd7befe906877abab098c6e63a0e8
/1967/CH9/EX9.3/9_3.sce
257594edc7412eccca6abd24e0f47296b5a3a7ea
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
259
sce
9_3.sce
clc //initialisation of variables clear T= 25 //C I= 4.33*10^-40 // gcm^2 I1= 2.78*10^-40 //g cm^2 s= 3 //CALCULATIONS S= 4.576*(0.5*log10(I1^2*I)+1.5*log10(273.2+T)-log10(s)+58.51) //RESULTS printf ('Standard entropy = %.1f cal deg^-1 mole^-1',S)
b020194406bf0e57ed53fa4f6fcb08d9d6842e02
449d555969bfd7befe906877abab098c6e63a0e8
/1016/CH9/EX9.8/ex9_8.sce
cc6b7f768209aaab40c9c19815e0d06355703567
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
322
sce
ex9_8.sce
clc;clear; //Example 9.8 //given data h=6.625*10^-34;//Plank's constant m=9.12*10^-31;//mass of electron in kg L=2.5*10^-10; e=1.6*10^-19;//the charge on electron in C //calcualtions n=1; E1=n^2*h^2/(8*m*L^2*e); disp(E1,'E1 in eV'); n=2; E2=4*E1; disp(E2,'E2 in eV'); n=3; E3=9*E1; disp(E3,'E3 in eV');
b1d7e61ae37e10fd672a9498ce2edf0df69c4442
449d555969bfd7befe906877abab098c6e63a0e8
/964/CH10/EX10.3/10_3.sce
496772087b78f3f4f6b8ddc303a5e8c5de1dd153
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
402
sce
10_3.sce
//clc() A = [3,-0.1,-0.2;0.1,7,-0.3;0.3,-0.2,10]; //B = inv(A) L = [1,0,0;0.033333,1,0;0.1,-0.02713,1]; U = [3,-0.1,-0.2;0,7.0033,-0.293333;0,0,10.012]; for i =1:3 if i==1 then m = [1;0;0]; else if i==2 then m = [0;1;0]; else m = [0;0;1]; end end d = inv(L) * m; x = inv(U) * d; B(:,i) = x end disp(B)
fa6166eeef81517691af7b96bb412405ae48ece1
786995be3311f963d1005b87d1f1f84548cce97e
/Raiz.sce
9dffbcd4c693d055bb406c34f859ca8a62d40c86
[]
no_license
paez74/NumericMethods
914473a1aac1fee26c11f45b222c6250c15d90ad
d051a926931996d338d3df7b035e494a45c1d3e0
refs/heads/master
2020-05-18T18:34:08.886882
2019-05-06T14:07:56
2019-05-06T14:07:56
184,589,853
0
0
null
null
null
null
UTF-8
Scilab
false
false
11,727
sce
Raiz.sce
// This GUI file is generated by guibuilder version 4.2.1 // // Este programa aproxima el valor de una raiz de la funcion dada por el usuario // El programa debe pedir "xL" , "xU" ,"Maximo Error Acumulado" y " "Numero de Iteraciones Maximo" , "Funcion " // Gustavo Paez Villalobos A01039751 // Gabriel Santisteban A01194472 // Miguel Gonzalez A01566455 // 18/01/2018 version 1.0 ////////////////////////////////////////////////////// f=figure('figure_position',[390,24],'figure_size',[640,480],'auto_resize','on','background',[33],'figure_name','Graphic window number %d','dockable','off','infobar_visible','off','toolbar_visible','off','menubar_visible','off','default_axes','on','visible','off'); ////////// handles.dummy = 0; handles.Encabezado=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1987179,0.9,0.5032051,0.0954545],'Relief','default','SliderStep',[0.01,0.1],'String','METODO RAICES','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Encabezado','Callback','') handles.XL=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1009615,0.7045455,0.0630128,0.0977273],'Relief','default','SliderStep',[0.01,0.1],'String','XL','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','XL','Callback','') handles.XU=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.099359,0.5681818,0.0630128,0.0977273],'Relief','default','SliderStep',[0.01,0.1],'String','XU','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','XU','Callback','') handles.QXl=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.2676282,0.7045455,0.1682692,0.0977273],'Relief','default','SliderStep',[0.01,0.1],'String','.','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','QXl','Callback','QXl_callback(handles)') handles.QXU=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.2676282,0.5681818,0.1682692,0.0977273],'Relief','default','SliderStep',[0.01,0.1],'String','.','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','QXU','Callback','QXU_callback(handles)') handles.#deTerminos=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.5,0.7045455,0.1346154,0.0977273],'Relief','default','SliderStep',[0.01,0.1],'String','# de terminos','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','#deTerminos','Callback','') handles.Error=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.5,0.5681818,0.1346154,0.0977273],'Relief','default','SliderStep',[0.01,0.1],'String','Error','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Error','Callback','Error_callback(handles)') handles.Q#deTerminos=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.6955128,0.7045455,0.1682692,0.0977273],'Relief','default','SliderStep',[0.01,0.1],'String','.','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Q#deTerminos','Callback','Q#deTerminos_callback(handles)') handles.QError=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.6987179,0.5681818,0.1682692,0.0977273],'Relief','default','SliderStep',[0.01,0.1],'String','.','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','QError','Callback','') handles.Y =uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1009615,0.4477273,0.2980769,0.1],'Relief','default','SliderStep',[0.01,0.1],'String','Y =(utiliza x) ','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Y','Callback','') handles.QRespuesta=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.2676282,0.4477273,0.2980769,0.1],'Relief','default','SliderStep',[0.01,0.1],'String','x','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','QRespuesta','Callback','QRespuesta_callback(handles)') handles.CalcularR=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.3028846,0.3077273,0.2980769,0.1],'Relief','default','SliderStep',[0.01,0.1],'String','Calcular','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','CalcularR','Callback','CalcularR_callback(handles)') handles.Answer =uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0209615,0.1077273,0.9280769,0.16],'Relief','default','SliderStep',[0.01,0.1],'String','Ans:','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','','Callback','') f.visible = "on"; ////////// // Callbacks are defined as below. Please do not delete the comments as it will be used in coming version ////////// function QXl_callback(handles) //Write your callback for QXl here endfunction function QXU_callback(handles) //Write your callback for QXU here endfunction function Error_callback(handles) //Write your callback for Error here endfunction function Q#deTerminos_callback(handles) //Write your callback for Q#deTerminos here endfunction function QRespuesta_callback(handles) //Write your callback for Q#deTerminos here endfunction function dY = F(dX) dY = 1 - exp( -dX) endfunction // Esta funcion sirve para calcular leer las variables y desplegar la respuesta // // Parametros: //....handles tiene toda la informacion del gui // Regresa: // handles.Answer.string despliega la respuesta ///////////////////////////////////////////////////// function CalcularR_callback(handles) xL = strtod(handles.QXl.string ) xU = strtod(handles.QXU.string) Term = strtod(handles.Q#deTerminos.string) Error = strtod(handles.QError.string) if(xL > xU) handles.Answer.string = "Xl debe ser menor a Xu" else if(Term < 0 || Error < 0) handles.Answer.string ="Tiene que ser un numero positivo de iteraciones y de error absoluto" else sfunction = string(handles.QRespuesta.string) deff('dY = F(x)','dY='+ string(sfunction)) sAns = CalculaRaiz(xL,xU,Error,Term) handles.Answer.string = sAns // escribo la respuesta en el gui end end endfunction // Esta funcion sirve para calcular el booleano que dira en que columna estan los numeros negativos // dF simboliza cuantas iteraciones se deben de correr // // Parametros: // dXL el limite inferior // dXH el limite superior // Regresa: // dBool si es TRUE los negativos van del lado de dXL , si es falso los negativos van del lado de dXH ///////////////////////////////////////////////////// function dBool = evaluarfunc(dXl,dXu) dBool = %F fxlEva= F(dXl) fxuEva= F(dXu) if(fxlEva<0) then dBool = %T end endfunction // Esta funcion sirve para aproximar la raiz de una formula // // // // Funcion que calcula el factorial // // Parametros: // dXL el limite inferior // dXH el limite superior // dEa el maximo Error Acumulado // iIterator el maximo numero de iteraciones // Regresa: // dXr la aproximacion a la respuesta function dXr = CalculaRaiz(dXL,dXU,dEa,iIterator) dBool = evaluarfunc(dXL,dXU); dEALocal = 100; // inicializo el error en 100 para que pase el primer while iIteratorLocal = 0; // comienza en 0 dXrEvaluado = 100; // la funcion lo mas alejada del 0 posible para pasar el primer while dXl = dXL dXu = dXU dXr = dXU; dXrViejo = dXr; while(dEALocal>dEa && iIteratorLocal < iIterator && dXrViejo ~= 0) // mientras no se cumpla ninguno de los requerimientos seguira corriendo dXrEvaluado = F(dXr) // evaluo con dXr if(dXrEvaluado < 0) then // en caso de que sea negativo if(dBool == %T) then // si el booleano es true XL es la columna negativa dXl = dXr; else dXu = dXr; end else // en caso de que sea positivo if(dBool == %T) then dXu = dXr // si el booleano es true Xh es la columna positiva else dXl = dXr end end dXr = (dXl + dXu)/2; // calculo dXr if(iIteratorLocal > 0) then dEALocal = (abs(dXr-dXrViejo) / dXr)*100 end // si ya paso la primera iteracion comienzo a calcular el Error Acumulado iIteratorLocal = iIteratorLocal+1 dXrViejo = dXr end if(dXrEvaluado == 0) then dXr = ("La raiz encontrada es exacta"+ " : " + string(dXr)) +ascii(10) // en caso que la raiz evaluada fuera 0 elseif(iIteratorLocal == iIterator) then dXr = ("La raiz encontrada fue aproximada con el numero de iteraciones dado" +" : " +string(dXr)) +ascii(10) // iteracion fuera mayor elseif(dEALocal < dEa) then dXr = ("La Raiz encontrada fue aproximada con el error absoluto porcentual" + " : " + string(dXr)) +ascii(10) end // caso que el Error Acumulado fuera menor al Error deseado dXr = dXr + ascii(10) + ( " Error Acumulado : " + string(dEALocal) + "%") endfunction
1f13cfb489fdddb7cf1680633f094dbefdc22229
449d555969bfd7befe906877abab098c6e63a0e8
/1106/CH6/EX6.8/ex6_8.sce
fc181e72341ebc97c1e90a203d868432d1f46cba
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
236
sce
ex6_8.sce
// Example 6.8, Page No-282 clear clc R2=16*10^3 R3=16*10^3 Rf=15.8*10^3 Ri=27*10^3 C2=0.01*10^-6 C3=0.01*10^-6 fL=1/(2*%pi*sqrt(R2*R3*C2*C3)) fL=fL/1000 printf('\nfL= %.1f kHz', fL) A=1+Rf/Ri printf('\nA= %.3f', A)
09f19bb1a55bb5ec2374d64ed287f17d604b1ad2
449d555969bfd7befe906877abab098c6e63a0e8
/40/CH8/EX8.18/Exa_8_18.sce
c0578520401e36934d39a7024ce06b4664d47892
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
159
sce
Exa_8_18.sce
//The DFT from the matrix formulation xn=[1;2;1;0]; w=exp(-%i*%pi/2); for i=1:4 for j=1:4 WN(i,j)=w^((i-1)*(j-1)); end end XDFT=WN*xn
fc85b7e8ec65c387fdcbfc669c8e700ecbb8cefd
449d555969bfd7befe906877abab098c6e63a0e8
/68/CH8/EX8.1/ex1.sce
adc66e5341d1c56c28f13e0792c5723c1a12807e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
907
sce
ex1.sce
// Example 8.1: Analysis of op amp connected in an inverting configuration // By inspection we can write down the expressions for A, B , closed loop gain , the input resistance and the output resistance u=10^4; // (ohm) R_id=100*10^3; // (ohm) r_o=1000; // (ohm) R_L=2000; // (ohm) R_1=1000; // (ohm) R_2=10^6; // (ohm) R_S=10000; // (ohm) A=u*(R_L*(R_1+R_2)/(R_L+R_1+R_2))*R_id/(((R_L*(R_1+R_2))/(R_L+R_1+R_2)+r_o)*(R_id+R_S+(R_1*R_2)/(R_1+R_2))) disp(A,"Voltage gain without feedback (V/V)") B=R_1/(R_1+R_2); // Beta value disp(B, "Beta value ") A_f=A/(1+A*B); disp(A_f,"Voltage gain with feedback (V/V)") R_i=R_S+R_id+(R_1*R_2/(R_1+R_2))// Input resistance of the A circuit in fig 8.12a of textbook R_if=R_i*7; R_in=R_if-R_S; disp(R_in,"Input resistance (ohm)") R_o=1/(1/r_o+1/R_L+1/(R_1+R_2)); R_of=R_o/(1+A*B); R_out=R_of*R_L/(R_L-R_of); disp(R_out,"the output resistance (ohm)")
6fb5b47ee3133c6ff0d184d664e5e09016c2d147
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH5/EX5.15/5_15.sce
bdb8930556043f754a801f7bebfa879c828b33b0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
613
sce
5_15.sce
//pathname=get_absolute_file_path('5.15.sce') //filename=pathname+filesep()+'5.15-data.sci' //exec(filename) //Pressure at point 1(in MPa): p1=0.5 //Temperature at point 1(in K): T1=400 //Pressure at point 2(in MPa): p2=0.3 //Temperature at point 2(in K): T2=350 //Gas constant(in kJ/kg.K): R=0.287 //Value of Cp(in kJ/kg.K): Cp=1.004 //Entropy change(in kJ/kg.K): ds=Cp*log(T1/T2)-R*log(p1/p2) printf("\nRESULT\n") printf("\nChange in entropy = %f kJ/kg.K",ds) //As the calculated change is positive, s2>s1 printf("\nHence flow occurs from 1 to 2 i.e. from 0.5 MPa, 400 K to 0.3 MPa & 350 K")
277e7c7331162b6bce59cddbb417aa2ccf0a3e04
449d555969bfd7befe906877abab098c6e63a0e8
/3869/CH1/EX1.41/Ex1_41.sce
2617bd703b80a80aacf653ced7f99f8a2d43d608
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
301
sce
Ex1_41.sce
clear // // // //Variable declaration D=80 //separation between screen and slit(cm) d=0.1 //separation between slits(cm) beta1=0.04 //fringe width(cm) //Calculation lamda=beta1*d/D //wavelength(cm) //Result printf("\n wavelength is %0.0f angstrom",lamda*10**8)
189252f6d8e12e49800a10d09c57d782cb3e4c4a
449d555969bfd7befe906877abab098c6e63a0e8
/3289/CH2/EX2.1/Ex2_1.sce
1c53af2b545e730949fbdfb49f51a7d6733eae48
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
935
sce
Ex2_1.sce
clc; radius=((sqrt(195^2+130^2))*10^(-6)); disp(radius,"radius of the circle in degree = ") theta1=(atand(130/195)) disp(theta1,"pricipal stresses in degree");// displaying result epsilonx=510*10^(-6) epsilony=120*10^(-6) epsilon=(epsilonx+epsilony)/2 disp(epsilon,"distance between O and c=") //solution a angle=60- theta1 disp(angle,"angle of ACA1 in degree = ")// displaying result epsilonx1=epsilon+radius*cosd(26.3) disp(epsilonx1,"strains in x axis= ")// displaying result epsilony1=epsilon-radius*cosd(26.3) disp(epsilony1,"strains in y axis= ")// displaying result gammaxy=-2*(radius*sind(26.3)) disp(gammaxy,"shear strain")// displaying result //solution b epsilon1=epsilon+radius disp(epsilon1,"strains in x axis= ")// displaying result epsilon2=epsilon-radius disp(epsilon2,"strains in x axis= ")// displaying result //solution c gammamax=-+468*10^(-6) disp(gammamax,"maxi shear stress= ")
f628eb4adc906099a66d91e1cbda8dc869e02203
449d555969bfd7befe906877abab098c6e63a0e8
/1172/CH1/EX1.6/Example1_6.sce
d6011238b4de4121aeb2df69199cd8bd91180359
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
548
sce
Example1_6.sce
clc //Given that mu = 1.5 // refractive index of plane glass prism theta = %pi / 180 // angle of prism y1 = 10 // separation between slit and biprism in cm y2 = 100 //separation sbetween biprism and screen in cm lambda = 0.00005893// wavelength of incident light in cm //Sample Problem 6 Page No. 48 printf("\n # Problem 6 # \n") printf("\n Standard formula used \n Beta = (D * lambda) / d") d = 2 * ( mu -1) * theta * y1 D = y1 + y2 Beta = (D * lambda) / d printf("\n Fringe width observed at distance 1 meter is %f m", Beta)
2bb3e647f33efb5006b5c11daf5269e9c43d070e
449d555969bfd7befe906877abab098c6e63a0e8
/260/CH13/EX13.1/13_1.sce
848a82c150648bfbd1a939d2fc4ce5e4e51a788c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
495
sce
13_1.sce
//Eg-13.1 //pg-522 clear clc //Given equation dy/dx = x. Hence F'(x) = 1 and F''(x) = 0 //In the taylor series expnsion, if we write y0 in place of y(x0), we have // y(1) = y1 = y(x0+h) = y0 + hx0 + h^2/2 x0 = 0; y0 = 0; //Initial condition h = 1; //taking the value ourself y1 = y0 + h*x0 + h^2/2; printf('The value of y at x = 1 is %f\n',y1) printf(' This is the exact solution since the higher derivatives starting from second order derivative of F vanish\n')
10732a04e9a865a54673eccf3719ac88adbdeec0
f542bc49c4d04b47d19c88e7c89d5db60922e34e
/PresentationFiles_Subjects/CONT/NU13TYH/ATWM1_Working_Memory_MEG_NU13TYH_Session2/ATWM1_Working_Memory_MEG_Salient_Uncued_Run2.sce
4d78acd28bf12d94a485157c2406a7bad04ef115
[]
no_license
atwm1/Presentation
65c674180f731f050aad33beefffb9ba0caa6688
9732a004ca091b184b670c56c55f538ff6600c08
refs/heads/master
2020-04-15T14:04:41.900640
2020-02-14T16:10:11
2020-02-14T16:10:11
56,771,016
0
1
null
null
null
null
UTF-8
Scilab
false
false
48,405
sce
ATWM1_Working_Memory_MEG_Salient_Uncued_Run2.sce
# ATWM1 MEG Experiment scenario = "ATWM1_Working_Memory_MEG_salient_uncued_run2"; #scenario_type = fMRI; # Fuer Scanner #scenario_type = fMRI_emulation; # Zum Testen scenario_type = trials; # for MEG #scan_period = 2000; # TR #pulses_per_scan = 1; #pulse_code = 1; pulse_width=6; default_monitor_sounds = false; active_buttons = 2; response_matching = simple_matching; button_codes = 10, 20; default_font_size = 36; default_font = "Arial"; default_background_color = 0 ,0 ,0 ; write_codes=true; # for MEG only begin; #Picture definitions box { height = 382; width = 382; color = 0, 0, 0;} frame1; box { height = 369; width = 369; color = 255, 255, 255;} frame2; box { height = 30; width = 4; color = 0, 0, 0;} fix1; box { height = 4; width = 30; color = 0, 0, 0;} fix2; box { height = 30; width = 4; color = 255, 0, 0;} fix3; box { height = 4; width = 30; color = 255, 0, 0;} fix4; box { height = 369; width = 369; color = 42, 42, 42;} background; TEMPLATE "StimuliDeclaration.tem" {}; trial { sound sound_incorrect; time = 0; duration = 1; } wrong; trial { sound sound_correct; time = 0; duration = 1; } right; trial { sound sound_no_response; time = 0; duration = 1; } miss; # Start of experiment (MEG only) - sync with CTF software trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; } expStart; time = 0; duration = 1000; code = "ExpStart"; port_code = 80; }; # baselinePre (at the beginning of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }default; time = 0; duration = 10000; #mri_pulse = 1; code = "BaselinePre"; port_code = 91; }; TEMPLATE "ATWM1_Working_Memory_MEG.tem" { trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4; 42 62 292 292 399 125 1742 2992 1892 fixation_cross gabor_179 gabor_015 gabor_123 gabor_161 gabor_179_alt gabor_015 gabor_123_alt gabor_161 "2_1_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_1900_gabor_patch_orientation_179_015_123_161_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_123_framed gabor_circ blank blank blank blank fixation_cross_white "2_1_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_123_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 2292 fixation_cross gabor_042 gabor_108 gabor_086 gabor_059 gabor_042 gabor_108 gabor_086_alt gabor_059_alt "2_2_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2300_gabor_patch_orientation_042_108_086_059_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_132_framed gabor_circ blank blank blank blank fixation_cross_white "2_2_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_132_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 2192 fixation_cross gabor_104 gabor_155 gabor_049 gabor_132 gabor_104_alt gabor_155_alt gabor_049 gabor_132 "2_3_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2200_gabor_patch_orientation_104_155_049_132_target_position_1_2_retrieval_position_2" gabor_circ gabor_155_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_3_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_155_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1742 2992 2592 fixation_cross gabor_032 gabor_093 gabor_166 gabor_149 gabor_032 gabor_093 gabor_166_alt gabor_149_alt "2_4_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2600_gabor_patch_orientation_032_093_166_149_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_012_framed blank blank blank blank fixation_cross_white "2_4_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_012_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2192 2992 2492 fixation_cross gabor_110 gabor_140 gabor_092 gabor_027 gabor_110 gabor_140_alt gabor_092_alt gabor_027 "2_5_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2500_gabor_patch_orientation_110_140_092_027_target_position_2_3_retrieval_position_1" gabor_110_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_5_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_110_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1792 2992 2142 fixation_cross gabor_106 gabor_161 gabor_125 gabor_051 gabor_106 gabor_161 gabor_125_alt gabor_051_alt "2_6_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2150_gabor_patch_orientation_106_161_125_051_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_077_framed gabor_circ blank blank blank blank fixation_cross_white "2_6_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_077_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1792 2992 2142 fixation_cross gabor_080 gabor_109 gabor_064 gabor_047 gabor_080_alt gabor_109_alt gabor_064 gabor_047 "2_7_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2150_gabor_patch_orientation_080_109_064_047_target_position_1_2_retrieval_position_2" gabor_circ gabor_109_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_7_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_109_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2092 2992 2342 fixation_cross gabor_065 gabor_144 gabor_086 gabor_003 gabor_065_alt gabor_144_alt gabor_086 gabor_003 "2_8_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2350_gabor_patch_orientation_065_144_086_003_target_position_1_2_retrieval_position_1" gabor_112_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_8_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2192 2992 2292 fixation_cross gabor_042 gabor_011 gabor_101 gabor_070 gabor_042 gabor_011_alt gabor_101 gabor_070_alt "2_9_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2300_gabor_patch_orientation_042_011_101_070_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_070_framed blank blank blank blank fixation_cross_white "2_9_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_070_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1842 2992 2042 fixation_cross gabor_092 gabor_145 gabor_063 gabor_127 gabor_092_alt gabor_145 gabor_063 gabor_127_alt "2_10_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2050_gabor_patch_orientation_092_145_063_127_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_176_framed blank blank blank blank fixation_cross_white "2_10_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_176_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 1892 fixation_cross gabor_117 gabor_059 gabor_032 gabor_141 gabor_117 gabor_059 gabor_032_alt gabor_141_alt "2_11_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_1900_gabor_patch_orientation_117_059_032_141_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_005_framed blank blank blank blank fixation_cross_white "2_11_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2192 2992 1892 fixation_cross gabor_002 gabor_081 gabor_164 gabor_122 gabor_002_alt gabor_081 gabor_164 gabor_122_alt "2_12_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_1900_gabor_patch_orientation_002_081_164_122_target_position_1_4_retrieval_position_2" gabor_circ gabor_081_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_12_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_081_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 1942 fixation_cross gabor_135 gabor_094 gabor_049 gabor_173 gabor_135_alt gabor_094 gabor_049_alt gabor_173 "2_13_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_1950_gabor_patch_orientation_135_094_049_173_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_004_framed gabor_circ blank blank blank blank fixation_cross_white "2_13_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_004_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2042 2992 2342 fixation_cross gabor_150 gabor_167 gabor_110 gabor_087 gabor_150 gabor_167_alt gabor_110_alt gabor_087 "2_14_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2350_gabor_patch_orientation_150_167_110_087_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_110_framed gabor_circ blank blank blank blank fixation_cross_white "2_14_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_110_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1992 2992 2442 fixation_cross gabor_159 gabor_008 gabor_053 gabor_093 gabor_159 gabor_008_alt gabor_053 gabor_093_alt "2_15_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2450_gabor_patch_orientation_159_008_053_093_target_position_2_4_retrieval_position_2" gabor_circ gabor_008_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_15_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_008_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1792 2992 2042 fixation_cross gabor_007 gabor_170 gabor_026 gabor_138 gabor_007_alt gabor_170 gabor_026 gabor_138_alt "2_16_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2050_gabor_patch_orientation_007_170_026_138_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_093_framed blank blank blank blank fixation_cross_white "2_16_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_093_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2142 2992 1992 fixation_cross gabor_162 gabor_099 gabor_031 gabor_011 gabor_162 gabor_099 gabor_031_alt gabor_011_alt "2_17_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2000_gabor_patch_orientation_162_099_031_011_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_011_framed blank blank blank blank fixation_cross_white "2_17_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1892 2992 2392 fixation_cross gabor_002 gabor_144 gabor_079 gabor_118 gabor_002 gabor_144_alt gabor_079_alt gabor_118 "2_18_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_300_300_399_1900_3000_2400_gabor_patch_orientation_002_144_079_118_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_118_framed blank blank blank blank fixation_cross_white "2_18_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_118_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2242 2992 1892 fixation_cross gabor_127 gabor_013 gabor_100 gabor_174 gabor_127_alt gabor_013 gabor_100_alt gabor_174 "2_19_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_1900_gabor_patch_orientation_127_013_100_174_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_100_framed gabor_circ blank blank blank blank fixation_cross_white "2_19_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_100_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2042 2992 1992 fixation_cross gabor_158 gabor_089 gabor_119 gabor_052 gabor_158 gabor_089 gabor_119_alt gabor_052_alt "2_20_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2000_gabor_patch_orientation_158_089_119_052_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_119_framed gabor_circ blank blank blank blank fixation_cross_white "2_20_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_119_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1842 2992 2142 fixation_cross gabor_167 gabor_121 gabor_103 gabor_137 gabor_167 gabor_121 gabor_103_alt gabor_137_alt "2_21_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_300_300_399_1850_3000_2150_gabor_patch_orientation_167_121_103_137_target_position_3_4_retrieval_position_1" gabor_031_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_21_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_031_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2192 2992 1942 fixation_cross gabor_171 gabor_035 gabor_066 gabor_146 gabor_171_alt gabor_035 gabor_066 gabor_146_alt "2_22_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_1950_gabor_patch_orientation_171_035_066_146_target_position_1_4_retrieval_position_1" gabor_123_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_22_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_123_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2442 fixation_cross gabor_015 gabor_098 gabor_176 gabor_066 gabor_015_alt gabor_098 gabor_176_alt gabor_066 "2_23_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2450_gabor_patch_orientation_015_098_176_066_target_position_1_3_retrieval_position_1" gabor_015_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_23_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 2242 2992 2442 fixation_cross gabor_100 gabor_116 gabor_171 gabor_142 gabor_100 gabor_116_alt gabor_171 gabor_142_alt "2_24_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_300_300_399_2250_3000_2450_gabor_patch_orientation_100_116_171_142_target_position_2_4_retrieval_position_1" gabor_055_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_24_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_055_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1792 2992 2542 fixation_cross gabor_168 gabor_038 gabor_095 gabor_079 gabor_168_alt gabor_038 gabor_095 gabor_079_alt "2_25_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2550_gabor_patch_orientation_168_038_095_079_target_position_1_4_retrieval_position_1" gabor_120_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_25_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_120_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1942 2992 2542 fixation_cross gabor_180 gabor_090 gabor_026 gabor_142 gabor_180 gabor_090 gabor_026_alt gabor_142_alt "2_26_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2550_gabor_patch_orientation_180_090_026_142_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_162_framed gabor_circ blank blank blank blank fixation_cross_white "2_26_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_162_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1942 2992 2542 fixation_cross gabor_003 gabor_164 gabor_074 gabor_142 gabor_003 gabor_164_alt gabor_074 gabor_142_alt "2_27_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2550_gabor_patch_orientation_003_164_074_142_target_position_2_4_retrieval_position_2" gabor_circ gabor_164_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_27_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_164_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2142 2992 1992 fixation_cross gabor_061 gabor_078 gabor_167 gabor_116 gabor_061_alt gabor_078_alt gabor_167 gabor_116 "2_28_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2000_gabor_patch_orientation_061_078_167_116_target_position_1_2_retrieval_position_2" gabor_circ gabor_078_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_28_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_078_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 2242 2992 2042 fixation_cross gabor_167 gabor_061 gabor_139 gabor_032 gabor_167 gabor_061_alt gabor_139 gabor_032_alt "2_29_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_300_300_399_2250_3000_2050_gabor_patch_orientation_167_061_139_032_target_position_2_4_retrieval_position_1" gabor_118_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_29_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_118_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2092 2992 1992 fixation_cross gabor_036 gabor_100 gabor_143 gabor_084 gabor_036_alt gabor_100 gabor_143_alt gabor_084 "2_30_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2000_gabor_patch_orientation_036_100_143_084_target_position_1_3_retrieval_position_1" gabor_172_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_30_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_172_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2142 2992 1942 fixation_cross gabor_161 gabor_134 gabor_050 gabor_104 gabor_161_alt gabor_134 gabor_050 gabor_104_alt "2_31_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_1950_gabor_patch_orientation_161_134_050_104_target_position_1_4_retrieval_position_1" gabor_161_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_31_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_161_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2042 2992 2592 fixation_cross gabor_117 gabor_102 gabor_027 gabor_152 gabor_117_alt gabor_102 gabor_027_alt gabor_152 "2_32_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2600_gabor_patch_orientation_117_102_027_152_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_073_framed gabor_circ blank blank blank blank fixation_cross_white "2_32_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_073_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2042 2992 2192 fixation_cross gabor_056 gabor_026 gabor_113 gabor_132 gabor_056_alt gabor_026_alt gabor_113 gabor_132 "2_33_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2200_gabor_patch_orientation_056_026_113_132_target_position_1_2_retrieval_position_2" gabor_circ gabor_072_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_33_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_072_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1842 2992 2392 fixation_cross gabor_136 gabor_054 gabor_011 gabor_170 gabor_136_alt gabor_054 gabor_011_alt gabor_170 "2_34_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_300_300_399_1850_3000_2400_gabor_patch_orientation_136_054_011_170_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_170_framed blank blank blank blank fixation_cross_white "2_34_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_170_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2142 2992 2192 fixation_cross gabor_168 gabor_097 gabor_059 gabor_030 gabor_168 gabor_097_alt gabor_059_alt gabor_030 "2_35_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2200_gabor_patch_orientation_168_097_059_030_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_011_framed gabor_circ blank blank blank blank fixation_cross_white "2_35_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 1942 fixation_cross gabor_094 gabor_079 gabor_121 gabor_063 gabor_094 gabor_079_alt gabor_121 gabor_063_alt "2_36_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_1950_gabor_patch_orientation_094_079_121_063_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_063_framed blank blank blank blank fixation_cross_white "2_36_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_063_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1792 2992 2392 fixation_cross gabor_001 gabor_072 gabor_140 gabor_023 gabor_001 gabor_072 gabor_140_alt gabor_023_alt "2_37_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2400_gabor_patch_orientation_001_072_140_023_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_023_framed blank blank blank blank fixation_cross_white "2_37_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_023_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1792 2992 2042 fixation_cross gabor_134 gabor_106 gabor_085 gabor_026 gabor_134 gabor_106_alt gabor_085_alt gabor_026 "2_38_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2050_gabor_patch_orientation_134_106_085_026_target_position_2_3_retrieval_position_2" gabor_circ gabor_152_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_38_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_152_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2242 2992 2492 fixation_cross gabor_139 gabor_100 gabor_076 gabor_049 gabor_139 gabor_100 gabor_076_alt gabor_049_alt "2_39_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2500_gabor_patch_orientation_139_100_076_049_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_076_framed gabor_circ blank blank blank blank fixation_cross_white "2_39_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_076_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1742 2992 2092 fixation_cross gabor_180 gabor_065 gabor_012 gabor_124 gabor_180 gabor_065_alt gabor_012_alt gabor_124 "2_40_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2100_gabor_patch_orientation_180_065_012_124_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_012_framed gabor_circ blank blank blank blank fixation_cross_white "2_40_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_012_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1942 2992 2092 fixation_cross gabor_166 gabor_076 gabor_118 gabor_057 gabor_166 gabor_076_alt gabor_118 gabor_057_alt "2_41_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2100_gabor_patch_orientation_166_076_118_057_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_010_framed blank blank blank blank fixation_cross_white "2_41_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_010_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1992 2992 2092 fixation_cross gabor_165 gabor_128 gabor_106 gabor_001 gabor_165 gabor_128_alt gabor_106_alt gabor_001 "2_42_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2100_gabor_patch_orientation_165_128_106_001_target_position_2_3_retrieval_position_2" gabor_circ gabor_128_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_42_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_128_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1892 2992 1942 fixation_cross gabor_077 gabor_047 gabor_006 gabor_130 gabor_077_alt gabor_047 gabor_006_alt gabor_130 "2_43_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_300_300_399_1900_3000_1950_gabor_patch_orientation_077_047_006_130_target_position_1_3_retrieval_position_2" gabor_circ gabor_094_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_43_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_094_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1742 2992 1892 fixation_cross gabor_068 gabor_154 gabor_046 gabor_129 gabor_068 gabor_154_alt gabor_046 gabor_129_alt "2_44_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_1900_gabor_patch_orientation_068_154_046_129_target_position_2_4_retrieval_position_2" gabor_circ gabor_015_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_44_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1842 2992 2242 fixation_cross gabor_007 gabor_062 gabor_121 gabor_095 gabor_007_alt gabor_062 gabor_121 gabor_095_alt "2_45_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_300_300_399_1850_3000_2250_gabor_patch_orientation_007_062_121_095_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_168_framed gabor_circ blank blank blank blank fixation_cross_white "2_45_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_168_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2142 2992 1992 fixation_cross gabor_013 gabor_062 gabor_123 gabor_169 gabor_013_alt gabor_062_alt gabor_123 gabor_169 "2_46_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2000_gabor_patch_orientation_013_062_123_169_target_position_1_2_retrieval_position_1" gabor_152_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_46_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_152_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2192 2992 2092 fixation_cross gabor_077 gabor_098 gabor_128 gabor_150 gabor_077 gabor_098_alt gabor_128 gabor_150_alt "2_47_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2100_gabor_patch_orientation_077_098_128_150_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_010_framed blank blank blank blank fixation_cross_white "2_47_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_010_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2492 fixation_cross gabor_143 gabor_035 gabor_016 gabor_180 gabor_143_alt gabor_035_alt gabor_016 gabor_180 "2_48_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2500_gabor_patch_orientation_143_035_016_180_target_position_1_2_retrieval_position_1" gabor_143_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_48_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1942 2992 2192 fixation_cross gabor_152 gabor_018 gabor_127 gabor_099 gabor_152 gabor_018 gabor_127_alt gabor_099_alt "2_49_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2200_gabor_patch_orientation_152_018_127_099_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_082_framed gabor_circ blank blank blank blank fixation_cross_white "2_49_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_082_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 2142 2992 2542 fixation_cross gabor_050 gabor_160 gabor_121 gabor_139 gabor_050 gabor_160 gabor_121_alt gabor_139_alt "2_50_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_300_300_399_2150_3000_2550_gabor_patch_orientation_050_160_121_139_target_position_3_4_retrieval_position_1" gabor_099_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_50_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_099_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 2592 fixation_cross gabor_137 gabor_004 gabor_117 gabor_157 gabor_137_alt gabor_004 gabor_117_alt gabor_157 "2_51_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2600_gabor_patch_orientation_137_004_117_157_target_position_1_3_retrieval_position_1" gabor_091_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_51_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_091_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1742 2992 2292 fixation_cross gabor_055 gabor_092 gabor_111 gabor_034 gabor_055_alt gabor_092 gabor_111_alt gabor_034 "2_52_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2300_gabor_patch_orientation_055_092_111_034_target_position_1_3_retrieval_position_1" gabor_005_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_52_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 2242 fixation_cross gabor_028 gabor_012 gabor_084 gabor_118 gabor_028 gabor_012 gabor_084_alt gabor_118_alt "2_53_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2250_gabor_patch_orientation_028_012_084_118_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_134_framed gabor_circ blank blank blank blank fixation_cross_white "2_53_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_134_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1892 2992 2192 fixation_cross gabor_169 gabor_008 gabor_128 gabor_143 gabor_169 gabor_008 gabor_128_alt gabor_143_alt "2_54_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2200_gabor_patch_orientation_169_008_128_143_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_128_framed gabor_circ blank blank blank blank fixation_cross_white "2_54_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_128_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2192 2992 2492 fixation_cross gabor_012 gabor_117 gabor_056 gabor_141 gabor_012_alt gabor_117 gabor_056 gabor_141_alt "2_55_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2500_gabor_patch_orientation_012_117_056_141_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_056_framed gabor_circ blank blank blank blank fixation_cross_white "2_55_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_056_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2242 2992 2242 fixation_cross gabor_168 gabor_085 gabor_028 gabor_100 gabor_168_alt gabor_085 gabor_028 gabor_100_alt "2_56_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2250_gabor_patch_orientation_168_085_028_100_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_054_framed blank blank blank blank fixation_cross_white "2_56_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_054_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2042 2992 2292 fixation_cross gabor_071 gabor_012 gabor_044 gabor_129 gabor_071 gabor_012 gabor_044_alt gabor_129_alt "2_57_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2300_gabor_patch_orientation_071_012_044_129_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_177_framed blank blank blank blank fixation_cross_white "2_57_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_177_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2092 fixation_cross gabor_091 gabor_157 gabor_009 gabor_119 gabor_091_alt gabor_157 gabor_009_alt gabor_119 "2_58_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2100_gabor_patch_orientation_091_157_009_119_target_position_1_3_retrieval_position_1" gabor_091_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_58_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_091_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2242 2992 2592 fixation_cross gabor_078 gabor_144 gabor_114 gabor_004 gabor_078 gabor_144_alt gabor_114 gabor_004_alt "2_59_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2600_gabor_patch_orientation_078_144_114_004_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_004_framed blank blank blank blank fixation_cross_white "2_59_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_004_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1992 2992 2392 fixation_cross gabor_166 gabor_123 gabor_098 gabor_035 gabor_166_alt gabor_123 gabor_098_alt gabor_035 "2_60_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2400_gabor_patch_orientation_166_123_098_035_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_098_framed gabor_circ blank blank blank blank fixation_cross_white "2_60_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_098_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 2342 fixation_cross gabor_001 gabor_070 gabor_141 gabor_090 gabor_001_alt gabor_070_alt gabor_141 gabor_090 "2_61_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_001_070_141_090_target_position_1_2_retrieval_position_2" gabor_circ gabor_070_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_61_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_070_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1892 2992 2292 fixation_cross gabor_020 gabor_089 gabor_153 gabor_065 gabor_020_alt gabor_089 gabor_153 gabor_065_alt "2_62_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_300_300_399_1900_3000_2300_gabor_patch_orientation_020_089_153_065_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_153_framed gabor_circ blank blank blank blank fixation_cross_white "2_62_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_153_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1742 2992 2142 fixation_cross gabor_066 gabor_152 gabor_036 gabor_104 gabor_066 gabor_152_alt gabor_036_alt gabor_104 "2_63_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2150_gabor_patch_orientation_066_152_036_104_target_position_2_3_retrieval_position_2" gabor_circ gabor_152_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_63_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_152_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1942 2992 2242 fixation_cross gabor_097 gabor_065 gabor_122 gabor_174 gabor_097 gabor_065_alt gabor_122 gabor_174_alt "2_64_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2250_gabor_patch_orientation_097_065_122_174_target_position_2_4_retrieval_position_2" gabor_circ gabor_065_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_64_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2342 fixation_cross gabor_071 gabor_006 gabor_045 gabor_116 gabor_071_alt gabor_006 gabor_045_alt gabor_116 "2_65_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2350_gabor_patch_orientation_071_006_045_116_target_position_1_3_retrieval_position_1" gabor_071_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_65_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_071_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1992 2992 2042 fixation_cross gabor_006 gabor_087 gabor_149 gabor_172 gabor_006_alt gabor_087_alt gabor_149 gabor_172 "2_66_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_300_300_399_2000_3000_2050_gabor_patch_orientation_006_087_149_172_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_034_framed blank blank blank blank fixation_cross_white "2_66_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_034_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1942 2992 2342 fixation_cross gabor_078 gabor_037 gabor_093 gabor_126 gabor_078 gabor_037_alt gabor_093_alt gabor_126 "2_67_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2350_gabor_patch_orientation_078_037_093_126_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_143_framed gabor_circ blank blank blank blank fixation_cross_white "2_67_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1742 2992 2442 fixation_cross gabor_111 gabor_177 gabor_150 gabor_039 gabor_111 gabor_177_alt gabor_150 gabor_039_alt "2_68_Encoding_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2450_gabor_patch_orientation_111_177_150_039_target_position_2_4_retrieval_position_2" gabor_circ gabor_129_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_68_Retrieval_Working_Memory_MEG_P5_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_129_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2042 2992 2242 fixation_cross gabor_072 gabor_098 gabor_149 gabor_044 gabor_072 gabor_098 gabor_149_alt gabor_044_alt "2_69_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2250_gabor_patch_orientation_072_098_149_044_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_044_framed blank blank blank blank fixation_cross_white "2_69_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_044_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1792 2992 2142 fixation_cross gabor_111 gabor_052 gabor_133 gabor_078 gabor_111_alt gabor_052 gabor_133 gabor_078_alt "2_70_Encoding_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_300_300_399_1800_3000_2150_gabor_patch_orientation_111_052_133_078_target_position_1_4_retrieval_position_2" gabor_circ gabor_052_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "2_70_Retrieval_Working_Memory_MEG_P5_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_052_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; }; # baselinePost (at the end of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }; time = 0; duration = 5000; code = "BaselinePost"; port_code = 92; };
c76b982a2edee282732bdfe0c479ede6fb74f393
449d555969bfd7befe906877abab098c6e63a0e8
/2375/CH11/EX11.1/ex11_1.sce
3bcad39e8927b683b6440daec5a32ac2dabf98ef
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
290
sce
ex11_1.sce
// Exa 11.1 clc; clear; close; format('v',6) // Given data w=poly(0,'w'); // For sustained oscillation, w= 4*w*10^6-w^3; w= roots(w); w= w(1);// in rad/sec f= round(w/(2*%pi));// in Hz disp(f,"The frequency of oscillation in Hz is : ") disp("Hence the system will oscillate")
1871fa68393b57db96a4a0f9404203b76cc5548c
449d555969bfd7befe906877abab098c6e63a0e8
/275/CH5/EX5.5.3/Ch5_5_3.sce
41783e61a884cf75ab6263f6c8ebf75224f355b8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
331
sce
Ch5_5_3.sce
clc disp("Example 5.3") printf("\n") disp("Calculate output power change in decibel of amplifier") printf("Given\n") //output power when frequency is 5khz P1=50*10^-3 //output power when frequency is 20khz P2=25*10^-3 //output power change in decibel delPo=10*log10(P2/P1) printf("output power change \n%f dB\n",delPo)
83b747e0e5b6799ef7405270947409cb66f9f567
449d555969bfd7befe906877abab098c6e63a0e8
/1826/CH12/EX12.7/ex12_7.sce
a48c611cc2aff59c93615b7748ca2350de18a704
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
216
sce
ex12_7.sce
// Example 12.7, page no-353 clear clc lo=11.6 //m delx=5.4*10^-3//m alfL=12*10^-6//per K delT=delx/(lo*alfL) printf("The maximum temperature cange can withstand without any thermal stress is %.2f K",delT)
7c8c6e4261ca32d12977f1743070d05dfab6c893
449d555969bfd7befe906877abab098c6e63a0e8
/2528/CH7/EX7.1/Ex7_1.sce
4ebb4ac74fdfa907ec70b8fa5674e73633974877
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
339
sce
Ex7_1.sce
// Chapter7 //Example-7.1 //Figure 7.11 //page 216 clear; clc; R=10*10^6; //in Ohm C=10*10^-9; //in Farad T=R*C; //discharge Time printf("\n T %.1f S\n",T); Vled=2.5; //in V Vsat=13; //in V Rl=500; //in Ohm Iled=(Vsat-Vled)/Rl; printf("\n Iled %.3f A\n",Iled); //result//
d8ade26063ebbb4cd56696bc048565cd9848ffdd
449d555969bfd7befe906877abab098c6e63a0e8
/2045/CH2/EX2.4/Ex2_4.sce
06767601a7acfbfabfe4e56d669096203c1237f8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
637
sce
Ex2_4.sce
//pagenumber 101 example 4 clear w=0.9; voltaf=0.05;//volt revcur=10*10^-6;//ampere //(1) voltage volrev=0.026*(log((-w+1)));//voltage at which the reverse saturation current at saturate resacu=((exp(voltaf/0.026)-1)/((exp(-voltaf/0.026)-1)));//reverse saturation current disp("voltage at which the reverse saturation current at saturate = "+string((volrev))+"volt"); disp("reverse saturation current = "+string((resacu))+"ampere"); u=0.1; for q=1:3 reverc=revcur*(exp((u/0.026))-1) disp("reverse saturation current "+string((u))+" = "+string((reverc))+"ampere"); u=u+0.1; end
db0cd7d98980c647365ba034445789f53e2d0cea
449d555969bfd7befe906877abab098c6e63a0e8
/761/CH14/EX14.6/14_6.sce
410c4dbc5a7b1f0e51771d5a81fbfe62e83b4241
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
187
sce
14_6.sce
clc; //page no 476 //prob no. 14.6 //A 50ohm line terminated in 25ohm resistance Zo=50;Zl=25; //Determination of SWR SWR=Zo/Zl;//In this case Zo>Zl disp(SWR,'The value of SWR is');
9557d585da3cc2499984b9ff55a6e2dff75b5a54
449d555969bfd7befe906877abab098c6e63a0e8
/2150/CH6/EX6.16/ex6_16.sce
dad550f965d5bcc89a586979a4f88134da386249
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
398
sce
ex6_16.sce
// Exa 6.16 clc; clear; close; // Given data I_D = 1.5;// in mA I_DSS = 5;// in mA V_P = -2;// in V V_GS = V_P*(1-sqrt(I_D/I_DSS));// in V V_G = 0;// in V V_S = V_G-V_GS;// in V R_S = V_S/I_D;// in kohm disp(R_S*10^3,"The source resistance in ohm is"); V_DD = 20;// in V V_DS= 10;// in V R_D = (V_DD-(V_DS+(I_D*R_S)))/(I_D);// in kohm disp(R_D,"The diode resistance in K ohm is");
5af395093c6821df5c544eaee20fb43227e5634f
449d555969bfd7befe906877abab098c6e63a0e8
/1958/CH10/EX10.2/Chapter10_example2.sce
45ac6fdfd2b1880bf5d0c0e0a8a9f733208418f1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
315
sce
Chapter10_example2.sce
clc clear //Input data d1=6000//Diffraction grating have number of lines per cm q=50//Diffracted second order spectral line observed in degrees n=2//Second order //Calculations w=(sind(q)/(d1*n))*10^8//Wavelength of radiation in Angstrom //Output printf('Wavelength of radiation is %3.1f Angstrom',w)
c0761237ce5b65f668c99ff4965a9c30704f42bc
449d555969bfd7befe906877abab098c6e63a0e8
/1544/CH2/EX2.15/Ch02Ex15.sce
ffef3b98acb012ce8af349c385084d58a2414c4f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
591
sce
Ch02Ex15.sce
// Scilab code Ex2.15: Pg 67 (2008) clc; clear; l1 = 600e-03; // Scale reading, metre l2 = 745e-03; // Scale reading, metre l_s = 509.3e-03; // Total scale length, metre E_s = 1.0186; // Source voltage, V E1 = ( l1/l_s )*E_s; // Voltage drop across length l1, V E2 = ( l2/l_s)*E_s; // Voltage drop across length l2, V printf("\nThe emf of the first cell = %3.1f V ", E1) printf("\nThe emf of the second cell = %3.2f V ", E2) // Result // The emf of the first cell = 1.2 V // The emf of the first cell = 1.49 V
383f86e71587cb959da3a5b59ba3a66707ade357
449d555969bfd7befe906877abab098c6e63a0e8
/409/CH24/EX24.6/Example24_6.sce
4bb77a7965d7ccf1952f4c7bbcaae4214b930bd0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,530
sce
Example24_6.sce
clear ; clc; // Example 24.6 printf('Example 24.6\n\n'); //page no. 736 // Solution Fig. E24.6 // Pick the system as shown in above figure of book // Given h1 = -15 ;// Initial level of water from ground level -[ft] h2 = 165 ;//Final level of water from ground level -[ft] V_rate = 200 ;// Volume flow rate of water - [gal/hr] Q1 = 30000 ;// Heat input by heater - [Btu/hr] Q2 = 25000 ;// Heat lost by system -[Btu/hr] T1 = 35 ;// Initial temperature of water - [degree F] g = 32.2 ;// Acceleration due to gravity - [ft/ square second] p_pump = 2 ;// Power of pump -[hp] f_w = 55/100 ;// Fraction of rated horsepower that i used in pumping water Cp = 1 ;// Specific heat capacity of water - [Btu/lb*F] // Use following conditions to simplify the energy balance // 1. Proces is in steady state , so change in energy = 0 // 2. m1 = m2 = m // 3. change in KE = 0 , because we will assume that v1 = v2 = 0 // The energy balance reduce to Q + W = del_(H*m + PE*m) m = V_rate * 8.33 ;// Total mass of water pumped -[lb] del_PE = (m* g *(h2 - h1))/(32.2*778) ;// Change in PE - [Btu/hr] Q = Q1 - Q2 ;// Net heat exchange -[Btu/hr] W = 2* f_w * 60 * 33000/778 ;// Work on system - [Btu/hr] del_H = Q + W - del_PE ;// By using reduced energy balance - [Btu/hr] // Also del_H = m* Cp * (T2 - T1), all is known except T2 , solve for T2 deff('[y] = f(T2)','y = m*Cp*(T2-T1) - del_H'); T2 = fsolve(40,f) ;// Boiling point temperature funcprot(0); printf(' Final temperature of water that enters storage tank is %.1f degree F .\n',T2);