blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
214
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
6
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
21 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
141k
586M
star_events_count
int64
0
30.4k
fork_events_count
int64
0
9.67k
gha_license_id
stringclasses
8 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
50 values
src_encoding
stringclasses
23 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
5
10.4M
extension
stringclasses
29 values
filename
stringlengths
2
96
content
stringlengths
5
10.4M
98d3ce847022fecb480101fece4c8fcfbc57b2d5
449d555969bfd7befe906877abab098c6e63a0e8
/1670/CH6/EX6.12/6_12.sce
bc040078d3c86886bdc2f2fede0efda1e2361533
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
709
sce
6_12.sce
//Example 6.12 //Least Square Fit //Page no. 224 clc;close;clear; x=[10,20,30,40,50] y=[8,10,15,21,30] n=1; printf('\t\t 2\t 4\t\t\t 2\n n\tx\tx\tx\t\ty\tx y\n----------------------------------------------------------------\n') x1=0;x2=0;x3=0;x4=0;x5=0;x6=0;x7=0;x8=0; for i=1:5 printf(' %g\t%g\t%g\t%.9g\t\t%g\t%g\n',n,x(i),x(i)^2,x(i)^4,y(i),x(i)^2*y(i)) x1=x1+n; x2=x2+x(i); x3=x3+x(i)^2; x4=x4+x(i)^4; x5=x5+y(i); x6=x6+x(i)^2*y(i) end printf('----------------------------------------------------------------\n %g\t%g\t%g\t%.9g\t\t%g\t%g\n',x1,x2,x3,x4,x5,x6) A=[x1,x3;x3,x4;] B=[x5;x6] C=inv(A)*B; disp(C) x=poly(0,'x') y=C(1)+C(2)*x^2 disp(y,'y =')
7cebd6e88496e2c4eaafd5d9848181389d6b02da
449d555969bfd7befe906877abab098c6e63a0e8
/70/CH5/EX5.2.3/5_2_3.sci
86315146b65ce25d7b5bdc376028fbf3d2d85d34
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
371
sci
5_2_3.sci
//page 249 clear; close; clc; disp('K is rotation through 90 degree,then K^2 is rotation through 180 degree and inv(k is rotation through -90 degree)') K=[0 -1;1 0]; disp(K,'K=') disp(K*K,'K^2=') disp(K*K*K,'K^3=') disp(K^4,'K^4=') [V,D]=spec(K); disp('K^4 is a complete rotation through 360 degree.') disp(D,'Eigen value matrix,D of K:'); disp(D^4,'and also D^4=') //end
09cec089bf854c4e63e9e58a656841b994bd39fe
449d555969bfd7befe906877abab098c6e63a0e8
/3731/CH6/EX6.10/Ex6_10.sce
5c228cb9fc69114f8dad6b1533dd86bc9f766ff0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,672
sce
Ex6_10.sce
//Chapter 6:Induction Motor Drives //Example 10 clc; clf(); //Variable Initialization //ratings of the star connected squirrel Induction motor is same as that of Ex-6.9 f=50 // frequency in HZ Vl=400 // line voltage in V P=4 // number of poles N=1370 // rated speed //the frequency variation is from 5 Hz to 50 Hz fmin=5 fmax=50 //parameters referred to the stator Xr_=3.5 // rotor winding reactance in ohm Xs=Xr_ // stator winding reactance in ohm Rr_=3 // resistance of the rotor windings in ohm Rs=2 // resistance of the stator windings in ohm //calculation Ns=120*f/P //synchronous speed N1=Ns-N //increase in speed from no load to full torque rpm Wms=2*%pi*Ns/60 s=(Ns-N)/Ns //full load slip Tmax=54.88 //maximum torque as obtain from Ex-6.9 //to obtain the plot between the voltage and the frequency K=0 k=[] frequency=[] line_voltage=[] for i=0:9 K=K+0.1 f1=K*f x=2*K*Wms*Tmax/3 y=Rs+sqrt((Rs)**2+(K*(Xs+Xr_))**2) Vl_square=3*x*y Vl=sqrt(Vl_square) k($+1)=K frequency($+1)=f1 line_voltage($+1)=Vl end disp(k,"K:") disp(frequency,"f:in Hz") disp(line_voltage,"Vl:in V") //Plotting the values of line voltage Vl vs f plot(frequency,line_voltage,'b') xlabel('f,Hz') ylabel('Line voltage,volts') xgrid(2) title('Line voltage vs Frequency characteristic') //for constant V/f ratio x=[0,10,20,30,40,50] y=[0,80,160,240,320,400] plot(x,y,'--') str=["$\underleftarrow{\huge{Constant V/f ratio}}$"] xstring(21,160,str) mprintf("\nHence for a constant breakdown torque at all frequencies,") mprintf("\nV/f ratio has to be progressively increased with increase in frequency")
09554823053f6dfa477c4ec0bd5191008011f68e
449d555969bfd7befe906877abab098c6e63a0e8
/1061/CH5/EX5.33/Ex5_33.sce
14dc88ae7f3ea1764f1e4f8183918f292ed45a85
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
393
sce
Ex5_33.sce
//Exa:5.33 clc; clear; close; n1=1.48;// core refractive index dl=0.01;// refractive index difference c=3*10^8;// the speed of light in m/s y=1.55;// wavelength in um DM=7;// in ps/nm-km DW=(-1)*DM;// in ps/nm-km X=-10^12*(n1*dl)/(c*y);// in ps/nm/km Z=(DW/X)-0.08;// V=2.834-sqrt(Z/0.549); a=(V*y)/(2*%pi*n1*sqrt(2*dl));// core radius in um printf("The core radius =%f um", a);
4076265bb05f616b893bab6577bc85e8a0c92124
4649da03878fae55d14dca483bb2bfa2213004e5
/ais/trunk/testaisclient/testsuite.tst
52bf75b4bb6e473df3ebb1370750982176c75e24
[]
no_license
rms1000watt/aiserver
2fba20a1199e1ae366176bbd9db0ffc12ab671c3
dbc81369dfc68732aff858a585656f0c7a85b453
refs/heads/master
2023-01-01T18:58:15.139028
2020-10-30T18:21:13
2020-10-30T18:21:13
308,709,836
0
0
null
null
null
null
UTF-8
Scilab
false
false
10,985
tst
testsuite.tst
# ais/testaisclient/testsuite.tst # TestSuite - Runs all of the tests in the test suite # CHANGE HISTORY # Version Date Who Change # 1.0104 9/8/2006 tlw Note on tab to separate body from request for POST. # 1.0065 6/25/2005 tlw Change _eval to _ais|eval|exp # 1.0057 3/11/2005 tlw Add in App client tests # 1.0056 3/ 2/2005 tlw Change request format to H0: or X1:, etc. # 1.0053 12/18/2004 tlw Add multiple responses, timeout, variables, documentation. # 1.0039 7/12/2004 tlw Add all directives to testxmlamp.txt. # CONNECTIONS # The test system can simulate requests to AIS from one or more simultaneous web clients using any one # of the 3 supported protocols, APP, HTTP, or XML. Currently, the tester allows one client using the APP # protocol, and up to two clients using either the HTTP and/or XML protocols. Thus, the test suite can # initialize five clients. The clients remain dormant until a request is submitted by a client to the # server. Requests in the test suite specify which client they wish to simulate by the second character # in the request. For example, a request to be submitted by the second HTTP client begins with H1:. Each # client can talk to the same server or to different servers. The server is specified by the "URL" # included in each test in the test suite (the actual form of the request submitted to the server is not # quite the same as the test format as noted below). # COOKIES # The test suite supports cookies for HTTP clients. The cookie returned from AIS is saved and included in # all subsequent request headers. All HTTP clients connected to the same server share the same cookie, much # like multiple browsers open on the same client machine do in real life. Note that multiple connections # to the same client share the same session for each context. HTTP shares a set of conflicting and # contradictory specifications that box us into this unwieldy situation. # CONTEXTS # A single server may support more than one context (an instance of one application running on the server). # A request may specify the context to be used. If no context is specified, the request is submitted to # the default context for this protocol. A single connection (or a set of HTTP connections sharing the same # cookie) may submit requests to two or more contexts. Thus, one connection can support multiple simultaneous # sessions to different contexts. Further, each separate XML or AIS connection establishes a separate # session to the same or different contexts. But, multiple HTTP connections sharing the same cookie all # share a single session. Thus, it is not possible for an HTTP client to open two browsers each conducting # a separate session to the same context (but they could open separate sessions to different clients). # TESTS # Tests specify a protocol, a connection (i.e., a client) followed by a request to be submitted to the # server. Since the tester supports up to two clients per protocol, the connection is either 0 or 1. # The protocol is A for the APP (AIS proprietary) protocol, H for the HTTP GET protocol, P for the HTTP # POST protocol, and X for the XML protocol. Use a TAB to separate the body of the POST from the request # line. The format for each (followed by an example) is shown below: # 1. An://host/req # A0://localhost/_ais|logon|user|tmay|passwd|tim # 2. Hn://host/!contextname/path # H0://localhost/default.html # 3. Pn://host/!contextname/amp.dll body # P1://localhost/amp.dll xml=<amp target="_ais" act="noop" /> # 4. X0://host/ampmsg # X0://localhost/_ais|logon|user|tmay|passwd|tim # Where: # 1. An for a request submitted by the APP client, n = connection number (must be 0) # 2. Hn for an Http GET request, n = connection number (0 or 1) # 3. Pn for an HTTP POST request, n = connection number (0 or 1), body is body of request. # 4. Note that a tab separates the body from the request line. # 5. X0 for an XML request # 6. Host is the DNS name or IP address of AIS host. # 7. path is path relative to wwwroot of context. # 8. body is the body of the post request. # 9. ampmsg is name-value pairs separated by vertical bars. Ampmsg is converted into XML doc. # NOTES # 1. The vertical bar (|) matches a DEL (rubout) character # 2. An entry of the form |{nnn}... will repeat field nnn times. # For example, to expand the value of param1 to AbcAbcAbcAbc # testLambda|ampAct|param1|{4}Abc # 3. One or more expected responses must follow the request with no intervening blank lines # or comments in between. See requests listed below for examples. # DEFINITIONS # To define a variable that applies to all tests use: # #&var=value # then "value" will be substituted for $var$ appearing any request or expected response. # For example: # #&host=localhost # HO://$host$/default.html becomes HO://localhost/default.html # DIRECTIVES # 1. Include. To include another test file named testXXX.txt, add entry of the form: # #include testXXX.txt # 2. Stop. To terminate tests at the current line in the current file, add the entry: # #stop # BUILT-IN COMMANDS # 1. Pause. To pause a sequence of tests, add the following "test". Press NextTest to # resume testing. # pause # Paused. # 2. Timeout. A default timeout of 1000 msec. occurs if the server does not return a # response in the time alloted. The timeout can be reset at any point in the test # sequence by entering a "test" of the form: # timeout=msec # timeout reset # where msec is the number of msec. to wait. If msec is 0, the timer is disabled. # VARIABLES # A variable definition may precede any expected response. It is of the form # &varname=RegExp # where RegExp is a regular expression such as: # connectid\|(+d) # RegExp is applied to the response from the current test to extract a value to be # assigned to the varname. RegExp must include one set of parentheses to identify # the value to be assigned. In the above example the number following connectid| # is captured. Note that the vertical bar must be escaped; otherwise, it is treated as an # OR operator in a regular expression. # After a var is defined, an expected response or a request may include a variable # reference of the form $varname$. Every instance of $varname$ in the request or # the expected response is expanded to the value assigned to this variable. See the requests # below for examples. # RESPONSES # Here are all the possible responses to a test: # 1. ABORT: Cancel current test # If NextTest button is pressed while test is pending, a dialog asks the user if user # wishes to continue waiting. If no, this message appears and a new test is launched. # 2. FAIL: Press NextTest to continue # One or more of the responses to a test did not match the expected response. See # the section of Scenarios below for suggestions on handling this case. # 3. Pass # All the expected responses to a test matched the returned responses. If RunAll is set, # the next test is automatically launched; else, press NextTest to continue testing. # 4. Paused: Press NextTest to continue - Encountered a pause request in test sequence. Press # NextTest button to continue. # 5. Timeout: Press NextTest to continue # The timer fired before a expected response was returned. You may need to fix the server, # modify the test, or extend the timeout period to avoid a timeout. # 6. Timeout period updated # Encountered a timeout request in test sequence. Press NextTest to continue. # 7. Unexpected Response # A response returned when no response was expected. This can happen if the test suite # is missing an expected response or if a previous test was aborted and the delayed # response finally shows up. If the tester has moved on to a new test before the # extra respose is returned, this response can cause the new test to fail. Either # increase the timeout setting or modify the test suite to avoid this problem. # SCENARIOS # Start AIS in the server. Start testaisclient. Open the test files in a text editor. # Run all the tests by checking the RunAll check-box and press NextTest. If a test fails, # the tester will stop. Here are some things that you can do at this point. # 1. Set Breakpoint. Add a pause directive just before the test that fails. Restart # the tests. When the tester pauses, set a breakpoint in the server code and trace # the operation. # 2. Rerun Test. Edit the request shown in the "Manual Test:" edit box and/or set # breakpoints in the code and press Submit to rerun the test. Or, just press LastTest # to rerun the test. # 3. Modify timeout. Modify the timeout period by entering a timeout request in the # ManualTest edit box. Enter "timeout=0" to disable the timer. # 4. Modify AIS code. Stop the debugger, edit the code and recompile. Restart AIS. # In the tester, press Restart and then Clear to reconnect to AIS. # 5. Modify Test Suite. Edit request/expected responses in the text editor. Press Restart # and then Clear to restart with modified code. # 6. Check Discrepencies. Check the showResults check-box. Run the tests. Review each # response to make sure that a error did not sneak by. Modify test to catch error in # the future. Modify source code to fix error. # ------------------------------------------------------------------------------------------------- # Definitions #&host=192.168.0.12 #&httpport=8084 #&appport=8081 #&xmlport=8080 #&logsysmsg=69 #&warnlvl=5 # Get a cookie # &title matches 'Default Page' H0://$host$:$httpport$/default.htm &title=<TITLE>([^<]+)</ <HTML><HEAD><TITLE>$title$</TITLE></HEAD><BODY><H3>InvestByLambda.com - Default Page</H3> # Open a second connection H1://$host$:$httpport$/index.htm <HTML><HEAD><TITLE>Index Page</TITLE></HEAD><BODY><H3>InvestByLambda.com - Index Page</H3> P1://$host$:$httpport$/amp.dll _ais result| # Decrease timeout from 1000 msec. timeout=250 Decrease timeout for local server. # --------------------------------------------- APP ----------------------------------------------- #include testappamp.tst # -------------------------------------------- HTTP ----------------------------------------------- #include testhttpamp.tst #include testhttpLambda.tst ###include testhttpxmlamp.tst # -------------------------------------------- XML ------------------------------------------------ #include testxmlamp.tst #include testxmlLambda.tst # ---------------------------------------- DIRECTIVES --------------------------------------------- #stop - All lines below the stop directive are ignored include - See above for include directive # ------------------------------------ BUILT-IN COMMANDS ------------------------------------------ pause Paused. Press NextTest to continue timeout=0 Disable timer # end
85b6404e7553ed72e3e01284c5b0b22b3231cafd
449d555969bfd7befe906877abab098c6e63a0e8
/3308/CH13/EX13.1/Ex13_1.sce
e4b2905c9559a02ca23671b606b544d1dbb7feff
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
889
sce
Ex13_1.sce
clc // Given that w=9 //in inch width of thee strip ho=1 //in inch initial thickness of the strip hf=0.80 //in inch thickness of the strip after one pass r=12 //in inch roll radius N=100 //in rpm // Sample Problem on page no. 323 printf("\n #Calculation of roll force and torque# \n") L=(r*(ho-hf))^(1/2) E=log(1/hf)//absolute value of true strain Y=26000 //in psi average stress from the data in the book F=L*w*Y // roll force F1=F*4.448/(10^6)//in mega newton printf("\n\nRoll force = %f MN ",F1) //answer in the book is round off and given 363000lb P=(2*3.14*F*L*N)/(33000*12) P1=P*7.457*(10^2)/(10^3)//in KW printf("\n\npower per roll = %f KW ",P1) //answer in the book is 670 KW due to round off of the roll force Tp=2*P1//total power printf("\n\nTotal power = %f KW ",Tp) //answer in the book is 1340KW due to round off of the roll force
8df9ea94d65e54b941c7c203325b7c871c9ae0bd
449d555969bfd7befe906877abab098c6e63a0e8
/3753/CH6/EX6.9/Ex6_9.sce
fe957d3f55f1f2a92f1f4cbdab5de929b404ce11
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,029
sce
Ex6_9.sce
//Example number 6.9, Page number 6.49 clc;clear;close // variable declaration r1=1.258 // Atomic radius of BCC r2=1.292 // Atomic radius of FCC // calculations a1=(4*r1)/sqrt(3) // in BCC b1=((a1)^3)*10^-30 // Unit cell volume v1=(b1)/2 // Volume occupied by one atom a2=2*sqrt(2)*r2 // in FCC b2=(a2)^3*10^-30 // Unit cell volume v2=(b2)/4 // Volume occupied by one atom v_c=((v1)-(v2))*100/(v1) // Volume Change in % d_c=((v1)-(v2))*100/(v2) // Density Change in % // Results printf("a1=%.3f Angstrom" ,(a1)) printf("\nUnit cell volume = a1^3 = %.3e m^3",b1) printf("\nVolume occupied by one atom = %.2e m^3",v1) printf("\na2 = %.3f Angstrom",a2) printf("\nUnit cell volume =a2^3 = %.3e m^3",b2) printf("\nVolume occupied by one atom = %.2e m^3",v2) printf("\nVolume Change in %% = %.3f",v_c) printf("\nDensity Change in %% = %.2f",d_c) printf("\nThus the increase of density or the decrease of volume is about 0.5%%")
b37490a2c3aa958925b8f91264eb74bdc1900319
65ef1d117ebd0057d00bfbf94632bbb39d99fd16
/Desktop/DS/lab1/Send it.sce
72ace526ff47d0fb6c219eb0bb4b2e7f66457c01
[]
permissive
Sasha-OS/LifeGame
a12ee0759b523484c9f25277ce6b9583f1ae06f3
b41d9919e6f870a2304817cbfcfa566b9890ca6b
refs/heads/master
2023-04-28T21:59:27.715985
2020-10-19T13:56:06
2020-10-19T13:56:06
267,084,515
1
1
MIT
2021-05-23T18:07:02
2020-05-26T15:43:17
JavaScript
UTF-8
Scilab
false
false
2,968
sce
Send it.sce
rand("seed", 9504); T = rand(10,10) + rand(10,10); A = floor((1.0-0.02-4*0.005-0.25)*T); disp(A); for i=1:10 for j=1:10 if(A(i,j)==1 && A(j,i)~=1) then A(j,i)=1; end end end disp(A); clf; plot2d([0,100], [0,100],0); function circle(x, y, r) xarc(x-r, y+r, 2*r, 2*r, 0, 64*360); endfunction; function coord = vertex(x, y, n) global Vmatrix; circle(x,y,4); xnumb(x-1,y-1,n); coord = [x; y]; Vmatrix(:, n) = coord; endfunction; // Задання цетрів кіл та номерів vertex(10,10, 1); vertex(30,10, 2); vertex(50,10, 3); vertex(70,10, 4); vertex(90,10, 5); vertex(25,30, 10); vertex(35,45, 9); vertex(50,65, 8); vertex(75,30, 6); vertex(65,45, 7); function connect(x1,y1,x2,y2,direct) if (direct == 0) then xr = x2 - x1 yr = y2 - y1 k = yr / xr xx = sqrt((4^2)/(1+k^2)); yy = xx * k; x1 = x1+xx; y1=yy+y1; if ((y2 == y1) && (x2 < x1)) then xsegs([x1-2*xx;x2+xx],[y2;y1]); elseif ((x2 < x1) && (y2 < y1)) xsegs([x1-xx;x2+xx],[y1-2*yy;y2+yy]); elseif ((x2 < x1) && (y2 > y1)) xsegs([x1-2*xx;x2+xx],[y1-2*yy;y2+yy]); elseif (x1 ~= x2) xsegs([x1;x2-xx],[y1;y2-yy]); else xsegs([x1;x2],[y1-4;y2+4]); end end if (direct == 1)then xr = x2 - x1 yr = y2 - y1 k = yr / xr xx = sqrt((4^2)/(1+k^2)); yy = xx * k; x1 = x1+xx; y1=yy+y1; if ((y2 == y1) && (x2 < x1)) then xarrows([x1-2*xx;x2+xx],[y2;y1],50,0); elseif ((x2 < x1) && (y2 < y1)) xarrows([x1-xx;x2+xx],[y1-2*yy;y2+yy],50,0); elseif ((x2 < x1) && (y2 > y1)) xarrows([x1-2*xx;x2+xx],[y1-2*yy;y2+yy],50,0); elseif (x1 ~= x2) xarrows([x1;x2-xx],[y1;y2-yy],50,0); else xarrows([x1;x2],[y1-4;y2+4],50,0); end end endfunction; function back(x,y,r) if (x<50) then circle(x-6,y,r-2); elseif (x>50) circle(x+6,y,r-2); end endfunction function connection(x1,y1,x2,y2) xsegs([x1;x2+15],[y1-4;y2]); xarrows([x2+15;x2+4],[y2;y2], 50, 0); endfunction function backward(x1,y1,x2,y2) xr = x2 - x1 yr = y2 - y1 k = yr / xr xx = sqrt((4^2)/(1+k^2)); yy = xx * k; x1 = x1+xx; y1 = yy+y1; xz = (x1+x2)/2; yz = (y1+y2)/2; xsegs([x1-2*xx;45],[y1-2*yy;yz]); xarrows([45;x2+xx],[yz;y2+yy],50,0); endfunction; connect(10,10,65,45,1); connect(30,10,50,10,1); connect(50,10,35,45,1); connect(35,45,90,10,1); connect(35,45,70,10,1); connect(70,10,75,30,1); connect(25,30,90,10,1); connect(65,45,35,45,1); connect(65,45,50,65,1); connect(70,10,90,10,1); connect(75,30,65,45,1); connect(50,65,50,10,1); connect(10,10,25,30,1); connection(50,65, 25, 30); backward(70,10,35,45); back(35,45,4); back(65,45,4); back(90,10,4);
4bf8c7f1e86a2152962cc2ff0b1ba77a3bf0323d
449d555969bfd7befe906877abab098c6e63a0e8
/1652/CH13/EX13.5/13_5.sce
e36ef4fc0811ddca24525e5441f496136a7674d0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
333
sce
13_5.sce
clc //Initialization of variables S1=57.47 S2=50.34 S3=49 H1=8.09 H2=21.06 H3=0 F1=12.39 F2=20.72 F3=0 //calculations dS=S1-S2-0.5*S3 dH=H1-H2-0.5*H3 dF=F1-F2-0.5*F3 //results printf("Change in entropy = %.2f eu",dS) printf("\n Change in enthalpy = %.2f kcal",dH) printf("\n Change in free energy = %.2f kcal",dF)
9ac42f4e36b5819128ba0f39c424726fdd285950
b4bbf9b2a475b5cf299b30bf5e0c621e32f6c832
/test/solver/win3.tst
2aad5d49fb969c13ce5a3ae045f480c9f42652d4
[]
no_license
apetresc/castro
1ec1ac1307542487aa1be14c335170f7a1347bf2
843165af7c946188a2dd772384cd2d579723c99d
refs/heads/master
2022-02-20T14:28:41.962893
2019-10-07T08:41:59
2019-10-07T08:41:59
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
73
tst
win3.tst
hguicoords boardsize 4 playgame g5 d1 g4 g7 e3 c2 a1 a4 f5 f3 d7 d6 c3
92ea81bf9c6e28f28bd355673b2ae0a0ffa107dd
e9d5f5cf984c905c31f197577d633705e835780a
/GED/linear/scilab/functions/pmgei_method/method/pls/digse_eval.sci
078b85ff1a3b503e2ee0f73e0c948101f8a31442
[]
no_license
faiz-hub/dr-ged-benchmarks
1ad57a69ed90fe7595c006efdc262d703e22d6c0
98b250db9e9f09d42b3413551ce7a346dd99400c
refs/heads/master
2021-05-18T23:12:18.631904
2020-03-30T21:12:16
2020-03-30T21:12:16
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
134
sci
digse_eval.sci
function [digse] = digse_eval(xk0, xk) digse=-(0.3+log10((1e-12)+abs(xk-xk0)/abs(xk))); if digse<0 digse=0; end endfunction
5fb6cc29847be453e983c09414e2b05016114fee
449d555969bfd7befe906877abab098c6e63a0e8
/98/CH7/EX7.4/example7_4.sce
98c2ea2c0bafa33dd6f4ac2e6aff25c31400a0e4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
405
sce
example7_4.sce
//Chapter 7 //Example 7_4 //Page 149 clear;clc; p1=200; //The inference from the derivation is that power supplied by 3-phase , 3-wire a.c. system is twice the power supplied by single phase 2 wire system p2=2*p1; printf("Power supplied by 3-phase, 3-wire a.c. system is = %d kW \n\n", p2); per=(p2-p1)/p1*100; printf("Thus three phase three wire system can supply %d %% additional load \n\n", per);
8938a2285f9ef68a34b3f8166e54beceaf3ce7c7
449d555969bfd7befe906877abab098c6e63a0e8
/2825/CH3/EX3.9/Ex3_9.sce
23c7b0c38640a20ab68bd8da0d2743b7be0f7edc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
327
sce
Ex3_9.sce
//Ex3_9 Pg-185 clc n=1 //constant T=27+273 //temperature in K Vt=T/11600 V=0.2 //voltage I0=10^(-6) //saturation current I=I0*(exp(V/Vt)-1) stat_res=V/I //static resistance printf("Static resistance = %.2f ohm \n",stat_res) dyn_res=Vt/(I+I0) //dynamic resistance printf("Dynamic resistance = %.2f ohm",dyn_res)
9bfdd66ed248bfdf50f9e65aa8fa6d98cc9ccf3b
449d555969bfd7befe906877abab098c6e63a0e8
/3041/CH6/EX6.13/Ex6_13.sce
86fe8e37fb68bb7f92fd49700398ccc3a67240e0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
503
sce
Ex6_13.sce
//Variable declaration C=200*10**-9 //capacitance(F) Lrcf=0.5*10**-3 //shunt across L2 L1=800*10**-6 //inductance(H) L2=800*10**-6 //inductance(H) M=200*10**-6 //Calculations L21=(L2*Lrcf)/(L2+Lrcf) //effective value of L2(uH) Leq=L1+L21+2*M //equivalent inductance(H) fo=1/(2*%pi*sqrt(Leq*C)) //output frequency(Hz) //Results printf ("the oscillation frequency is %.2f KHz",fo/1E+3)
0878f16a412953686cd2331abe6307afc4280770
449d555969bfd7befe906877abab098c6e63a0e8
/3856/CH9/EX9.1/Ex9_1.sce
8bb599e3541a5172c43b52bcd114357187c0a731
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
691
sce
Ex9_1.sce
//Calculate the Equilibrium constant for the reaction N2(g)+3H2(g)=2NH3(g) //Example 9.1 clc; clear; delfG1=-16.6; //Standard Gibbs Energy for NH3 in kJ mol^-1 delfG2=0; //Standard Gibbs Energy for N2 in kJ mol^-1 delfG3=0; //Standard Gibbs Energy for NH3 in kJ mol^-1 delrGo=2*delfG1-(delfG2+3*delfG3); //Standard Gibbs Energy change for reaction in kJ mol^-1 R=8.314; //Gas constant in J K^-1 mol^-1 T=298; //Temperature in K Kp=exp(-delrGo*1000/(R*T)); //Equilibrium constant for the reaction (Equilibrium constant for the reaction is given by Kp=(PNH3/Pdeg)^2/((PN2/Pdeg)*(PH2/Pdeg)^2 ) printf("Equilibrium constant = %.1f*10^5",Kp*10^-5);
7804608adb2673a69175a33e2326d9f4e43d4667
449d555969bfd7befe906877abab098c6e63a0e8
/3793/CH4/EX4.7/exp_4_7.sce
edc1eae0df4b102f25f4b59367c9294319e8748d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
202
sce
exp_4_7.sce
clear; clc; l=250; z=complex(.032,.30); y=complex(0,3.5*10^(-6)); Z=z*l; Y=y*l; A=1+((Y*Z)/2); B=Z; C=Y*(1+(Y*Z)/4); D=A; mprintf("A,B,C and D parameters are respectively"); disp(A,B,C,D);
5c467bbbc67cae59e7af3ce39ecde3448b0a8a38
449d555969bfd7befe906877abab098c6e63a0e8
/2420/CH1/EX1.4/1_4.sce
1f55da65b857bca369707fd8912e88715afbc468
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
237
sce
1_4.sce
clc clear //Initialization of variables g1=32.174 //ft/s^2 gc=g1 g2=30 //ft/s^2 m=100 //lbm //calculations w1=g1/gc *m w2=g2/gc *m //results printf("Weight in case 1 = %d lbf",w1) printf("\n Weight in case 2 = %.1f lbf",w2)
f4545369b92a6b42c980c6b1578cf838191426c9
449d555969bfd7befe906877abab098c6e63a0e8
/3776/CH1/EX1.7/Ex1_7.sce
b4256e15bf29d10d6ce9e8b0f282d8cd41723d64
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,064
sce
Ex1_7.sce
clear //Given D_n = 5.0 //kips, dead load L_n_1 = 1.0 //kips ,live load 1 L_n_2 = 15 //kips ,live load 2 stress_allow = 22 //ksi phi = 0.9 //probalistic coefficients y_stress = 36 //ksi,Yeild strength //According to AISR //a p_1 = D_n + L_n_1 //kips since the total load is sum of dead load and live load p_2 = D_n + L_n_2 //kips, For second live load Area_1 = p_1/stress_allow //sq.in ,the allowable area for the allowed stress Area_2 = p_2/stress_allow //sq.in printf("\n the allowable area for live load %0.3f is %0.3f sq.in",L_n_1,Area_1) printf("\n the allowable area for live load %0.3f is %0.3f sq.in",L_n_2,Area_2) //b //area_crossection= (1.2*D_n +1.6L_n)/(phi*y_stress) area_crossection_1= (1.2*D_n +1.6*L_n_1)/(phi*y_stress) //sq.in,crossection area for first live load area_crossection_2= (1.2*D_n +1.6*L_n_2)/(phi*y_stress) //sq.in,crossection area for second live load printf("\n the crossection area for live load %0.3f is %0.3f sq.in",L_n_1,area_crossection_1) printf("\n the crossection area for live load %0.3f is %0.3f sq.in",L_n_2,area_crossection_2) //c //calculating safety indices for a) mu_r1=1.05*Area_1*y_stress//kips del_R=0.11 mu_q1 = 6//kips del_q1 = 0.093 mu_r2=1.05*Area_2 *y_stress//kips mu_q2 = 20//kips del_q2 = 0.189 beta_1 = log(mu_r1/mu_q1)/(del_R**2+del_q1**2)**0.5 beta_2 = log(mu_r2/mu_q2)/(del_R**2+del_q2**2)**0.5 printf("\n Safety index for a) beta1 is %0.3f ",beta_1) printf("\n Safety index for a) beta2 is %0.3f ",beta_2) //calculating safety indices for b) mu_r1=1.05*area_crossection_1*y_stress//kips del_R=0.11 mu_q1 = 6//kips del_q1 = 0.093 mu_r2=1.05*area_crossection_2*y_stress//kips mu_q2 = 20//kips del_q2 = 0.189 beta_1 = log(mu_r1/mu_q1)/(del_R**2+del_q1**2)**0.5 beta_2 = log(mu_r2/mu_q2)/(del_R**2+del_q2**2)**0.5 beta_1 = log(mu_r1/mu_q1)/(del_R**2+del_q1**2)**0.5 beta_2 = log(mu_r2/mu_q2)/(del_R**2+del_q2**2)**0.5 printf("\n Safety index for b) beta1 is %0.3f ",beta_1) printf("\n Safety index for b) beta2 is %0.3f ",beta_2)
0345ca47b1323fa06cc53056878a984bfaad9cb8
449d555969bfd7befe906877abab098c6e63a0e8
/1523/CH7/EX7.11/ex7_11.sce
b7d0be835e80096c7829e6df141e97494399059e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
680
sce
ex7_11.sce
// Graph Theory : example 7.11 :(pg 7.21 & 7.22) printf("\nAa="); disp(Aa=[0 -1 1 0 0;0 0 -1 -1 -1;-1 0 0 0 1;1 1 0 1 0]);//Complete incidence matrix A=[0 -1 1 0 0;0 0 -1 -1 -1;-1 0 0 0 1];//Reduced incidence matrix printf("\nNumber of possible trees = |A*A^T|");//A^T=A'=transpose of A x=(A*A'); disp(x); det(x); printf("\n|A*A^T|=%.f",det(x));//No. of possible trees //Tieset Matrix B printf("\ntwigs={3,4,5} \nlinks={1,2} \ntieset 1={1,4,5} \ntieset 2={2,3,4}"); printf("\nB="); disp(B=[1 0 0 -1 1;0 1 1 -1 0]); //f-cutset Matrix Q printf("\nf-cutset 3={3,2} \nf-cutset 4={4,2,1} \nf-cutset 5={5,1}"); printf("\nQ="); disp(Q=[0 -1 1 0 0;1 1 0 1 0;-1 0 0 0 1]);
682c0b32a863944fb4b5d3f057916ffa80bb85aa
449d555969bfd7befe906877abab098c6e63a0e8
/2702/CH2/EX2.12/Ex_2_12.sce
b161ef0d7a7f9afa7a57ddd40013e550d1d81f2c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
505
sce
Ex_2_12.sce
// Exa 2.12 clc; clear; close; // Given data I_D= 0.5;// in mA I_D= I_D*10^-3;// in mA V_D= 3;// in V Vt= -1;// in V KpWbyL= 1;// in mA/V^2 KpWbyL=KpWbyL*10^-3;// in A/V^2 // Formul I_D= 1/2*KpWbyL*(V_OV)^2 V_OV= sqrt(2*I_D/KpWbyL);// in V // For PMOS V_OV= -V_OV;// in V V_GS= V_OV+Vt;// in V R_D= V_D/I_D;// in Ω V_Dmax= V_D+abs(Vt);// in V R_D= V_Dmax/I_D;// in Ω disp(R_D*10^-3,"The largest value that R_D can have while maintaining saturation-region operation in kΩ is : ")
8bfe6e7186453bda26237c927fbb765f329d319d
449d555969bfd7befe906877abab098c6e63a0e8
/2339/CH6/EX6.5.1/Ex6_5.sce
0f03d89408840bed9165e175a33bb951d57f237a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex6_5.sce
clc clear V2=0.2; //in cm^3 V3=V2; Vc=V2; Vs=1.2; //in cm^3 V1=V2+Vs; G=1.4; r=(V1/V2); Eff=100*(1-(1/(r^(G-1)))); printf('Efficiency of Engine is %2.0f Percent',Eff); printf('\n');
896897e8447a306b1430eb89e4a7cb2d347e6a3a
449d555969bfd7befe906877abab098c6e63a0e8
/746/DEPENDENCIES/4_08.sci
bcbb1f39be85d8ad440ede15ba1713a2746a42d4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
145
sci
4_08.sci
//Velocity of conveyor belt(in ft/sec): Vbelt=3; //Velocity of sand alling onto belt(in ft/sec): Vsand=5; //Flow rate(in lbm/sec): m=500;
fba248f959a1830f8e3615d3f77bd03e52f7a16e
449d555969bfd7befe906877abab098c6e63a0e8
/293/CH3/EX3.4/eg3_4.sce
38faacad191d42a389d8bc28197b09023688e8c7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
554
sce
eg3_4.sce
// resistances in ohms R1 = 25; R2 = 300; R3 = 80; R4 = 30; R5 = 60; P5 = 15; //power dissipated in R5 (in watt) I5 = sqrt(P5/R5); //current flowing through R5 V5 = R5*I5 ; //voltage across R5 Vcd = V5; //voltage across cd I4 = Vcd/R4; //current flowing through R4 Icd = I5 + I4; //current flowing through cd Vbd = (Icd*R3)+Vcd ; //voltage across bd Ibd = (Vbd/R2)+Icd; //current through bd V1 = R1*Ibd; //voltage across R1 E = V1 + Vbd; disp(E,"E = ") //Result : Value of E for which power dissipation in R is 15W = 200V
af6e5771e7ff9a86b12262a5395da5eefa797145
449d555969bfd7befe906877abab098c6e63a0e8
/2223/CH18/EX18.16/Ex18_16.sce
fa8bc7045a44c3766b69f0303d802ff0028c400e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
942
sce
Ex18_16.sce
// scilab Code Exa 18.16 large Centrifugal pump 1000rpm N=1e3; // rotor Speed in RPM H=45; // height in m ro=1e3; g=9.81; // Gravitational acceleration in m/s^2 n_o=0.75; // overall Efficiency of the drive dr=2; // diameter ratio(d2/d1) phi=0.35; // flow coefficient(cr2/u2) Q=2.5; // discharge in m3/s //part(a)Power required to drive the pump P=(ro*Q*g*H)/(n_o); disp("kW",P*1e-3,"(a)Power required to drive the pump is") // part(b) impeller diameters at entry and exit u2=sqrt(g*H); w_p=u2^2; d2=u2*60/(%pi*N); disp("cm",d2*1e2,"(b)the impeller diameter at exit is") d1=d2/2; disp("cm",d1*1e2,"and the impeller diameter at entry is") //part(c) impeller width c_r2=phi*u2; b=Q/(c_r2*%pi*d2); disp("cm",b*1e2,"(c)the impeller width is") // part(d)impeller blade angle at the entry c_r1=Q/(b*%pi*d1); u1=u2/dr; beta1=atand(c_r1/u1); disp("degree",beta1,"(d)the impeller blade angle at the entry beta1=")
a56144ea9232733769108ef02359a638fb4e2a17
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.2/Unix/scilab-2.2/macros/auto/minreal.sci
c51c569d8ca4b18726a1c84ead0f98548808304f
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
1,419
sci
minreal.sci
function [a,b,c]=minreal(a,b,c,domaine,tol) // [lhs,rhs]=argn(0) select type(a) //-compat next case retained for list/tlist compatibility case 15 if a(1)<>'lss' then error(91,1),end if lhs<>1 then error('output: sle'),end; select rhs case 1 then istol=0 case 2 then istol=1,tol=b, else error('2 inputs to minreal: sl [,tol]'), end; [a,b,c,d,x0,dom]=a(2:7); if dom=[] then error(96,1),end domaine='c';if dom<>'c' then domaine='d',end case 16 if a(1)<>'lss' then error(91,1),end if lhs<>1 then error('output: sle'),end; select rhs case 1 then istol=0 case 2 then istol=1,tol=b, else error('2 inputs to minreal: sl [,tol]'), end; [a,b,c,d,x0,dom]=a(2:7); if dom=[] then error(96,1),end domaine='c';if dom<>'c' then domaine='d',end case 1 if lhs<>3 then error('3 outputs to minreal: ae,be,ce'), end; select rhs case 4 then istol=0 case 5 then istol=1, else error('4 or 5 outputs :a,b,c,domaine [,tol]'), end; else error(91,1) end; // wc=lyap(a',-b*b',domaine) wo=lyap(a,-c'*c,domaine) if istol=0 then [r,n]=equil1(wc,wo); else [r,n]=equil1(wc,wo,tol); end; n1=n(1); ri=inv(r);r=r(1:n1,:);ri=ri(:,1:n1) a=r*a*ri;b=r*b;c=c*ri if lhs=1 then a=tlist('lss',a,b,c,d,r*x0,dom),end
319f76aca4f4afed83ee03d2357a5a65f769a209
449d555969bfd7befe906877abab098c6e63a0e8
/147/CH13/EX13.17/Example13_17.sce
a35d8c5acca497695bea477467fab69be58c35eb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
600
sce
Example13_17.sce
close(); clear; clc; //rated power 'P' P = 10000; //VA V1 = 2400; V2 = 240; //from open circuit test Vo = 240; //V Io = 0.8; //A Po = 80; //W //from short circuit test Vs = 80; //V Is = 5.1; //A Ps = 220; //W //converting all data into per unit values I1 = P/V1; I2 = P/V2; //in per unit , open circuit data are Vo = Vo/V2; //pu Io = Io/I2; //pu Po = Po/P; //pu //in per unit, short circuit data are Vs = Vs/V1; //pu Is = Is/I1; //pu Ps = Ps/P; //pu //equivalent resistance 'Rs' Rs = Ps/(Is^2); //pu mprintf("Series equivalent resistance in per unit, Rs = %0.4f pu",Rs);
577a320f21916491a5a1dbf06337d9dc186a24d4
449d555969bfd7befe906877abab098c6e63a0e8
/830/CH1/EX1.2.1/Discrete_Time_Signal.sce
22a705ea0fb5d2c7f0f6c4c122c6dcd4ef72ce3b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
318
sce
Discrete_Time_Signal.sce
//Graphical// //Implementation of Equation 1.2.1 in Chapter 1 //Digital Signal Processing by Proakis, Third Edition, PHI //Page 9 clear; clc; close; n = 0:10; x = (0.8)^n; //plot2d4(n,x) a=gca(); a.thickness = 2; plot2d3('gnn',n,x) xtitle('Graphical Representation of Discrete Time Signal','n','x[n]');
057cc0f0181fe9e5ebb8e3ade9f1fe5a70c195e2
449d555969bfd7befe906877abab098c6e63a0e8
/2672/CH5/EX5.4/Ex5_4.sce
33f86216ebcdb895262b09a97a8746c886912716
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
418
sce
Ex5_4.sce
//Example 5_4 clc; clear; close; format('v',5); //given data : t1=25;//degree C t2=70;//degree C VB1=0.7;//V delV=-0.002*(t2-t1);//V VB2=VB1+delV;//V//barrier potential disp(VB2,"(a) Barrier potential at 70 degree C is (V)"); //Part (b) t1=25;//degree C t2=0;//degree C VB1=0.7;//V delV=-0.002*(t2-t1);//V VB2=VB1+delV;//V//barrier potential disp(VB2,"(b) Barrier potential at 0 degree C is (V)");
5819db8b44107d8cc4190893b6145bac6a610d73
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set6/s_Electrical_Measurements_Measuring_Instruments_K._Shinghal_2318.zip/Electrical_Measurements_Measuring_Instruments_K._Shinghal_2318/CH5/EX5.13/ex_5_13.sce
8d0e461a67c032b535818ee7b5058c2539f06463
[]
no_license
hohiroki/Scilab_TBC
cb11e171e47a6cf15dad6594726c14443b23d512
98e421ab71b2e8be0c70d67cca3ecb53eeef1df6
refs/heads/master
2021-01-18T02:07:29.200029
2016-04-29T07:01:39
2016-04-29T07:01:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
245
sce
ex_5_13.sce
errcatch(-1,"stop");mode(2);//Example 5.13 //hysteresis loss ; ; Hx=125;//AT/m ah=200;//cm^2 ba=0.15;//Wb/m^2 le=ah*Hx*ba;//J/m^3 lo=50;//loos po=lo*le;//W/m^3 kg=8.5*10^3;//kg/m^3 lkg=po/kg;//watt disp(lkg,"hysteresis loss is ,(W)=") exit();
348cf331a6c66bd1deeebf3cf7047d2ed4c97bde
f542bc49c4d04b47d19c88e7c89d5db60922e34e
/PresentationFiles_Subjects/SCHI/YE70NQR/ATWM1_Working_Memory_MEG_YE70NQR_Session1/ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run1.sce
86342082671b1ccbdbc9d9dae1c2c755d9ba11fb
[]
no_license
atwm1/Presentation
65c674180f731f050aad33beefffb9ba0caa6688
9732a004ca091b184b670c56c55f538ff6600c08
refs/heads/master
2020-04-15T14:04:41.900640
2020-02-14T16:10:11
2020-02-14T16:10:11
56,771,016
0
1
null
null
null
null
UTF-8
Scilab
false
false
49,600
sce
ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run1.sce
# ATWM1 MEG Experiment scenario = "ATWM1_Working_Memory_MEG_salient_cued_run1"; #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 = 28; default_font = "Arial"; default_background_color = 0 ,0 ,0 ; write_codes=true; # for MEG only begin; #Picture definitions box { height = 300; width = 300; color = 0, 0, 0;} frame1; box { height = 290; width = 290; color = 255, 255, 255;} frame2; box { height = 30; width = 4; color = 0, 0, 0;} fix1; box { height = 4; width = 30; color = 0, 0, 0;} fix2; box { height = 30; width = 4; color = 255, 0, 0;} fix3; box { height = 4; width = 30; color = 255, 0, 0;} fix4; box { height = 290; width = 290; color = 128, 128, 128;} background; TEMPLATE "StimuliDeclaration.tem" {}; trial { sound sound_incorrect; time = 0; duration = 1; } wrong; trial { sound sound_correct; time = 0; duration = 1; } right; trial { sound sound_no_response; time = 0; duration = 1; } miss; # Start of experiment (MEG only) - sync with CTF software trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; } expStart; time = 0; duration = 1000; code = "ExpStart"; port_code = 80; }; # baselinePre (at the beginning of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }default; time = 0; duration = 10000; #mri_pulse = 1; code = "BaselinePre"; port_code = 91; }; TEMPLATE "ATWM1_Working_Memory_MEG.tem" { trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4; 43 61 292 292 399 125 2242 2992 2342 fixation_cross gabor_094 gabor_160 gabor_030 gabor_177 gabor_094_alt gabor_160 gabor_030 gabor_177_alt "1_1_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2350_gabor_patch_orientation_094_160_030_177_target_position_2_3_retrieval_position_2" gabor_circ gabor_113_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_1_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_113_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1892 2992 2492 fixation_cross gabor_027 gabor_088 gabor_141 gabor_104 gabor_027 gabor_088 gabor_141_alt gabor_104_alt "1_2_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2500_gabor_patch_orientation_027_088_141_104_target_position_1_2_retrieval_position_1" gabor_164_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_2_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_164_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1842 2992 2392 fixation_cross gabor_011 gabor_122 gabor_081 gabor_034 gabor_011 gabor_122 gabor_081_alt gabor_034_alt "1_3_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2400_gabor_patch_orientation_011_122_081_034_target_position_1_2_retrieval_position_1" gabor_011_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_3_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1992 2992 2492 fixation_cross gabor_058 gabor_081 gabor_124 gabor_102 gabor_058_alt gabor_081 gabor_124_alt gabor_102 "1_4_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2500_gabor_patch_orientation_058_081_124_102_target_position_2_4_retrieval_position_2" gabor_circ gabor_081_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_4_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_081_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2242 2992 1892 fixation_cross gabor_056 gabor_139 gabor_092 gabor_122 gabor_056 gabor_139_alt gabor_092 gabor_122_alt "1_5_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_1900_gabor_patch_orientation_056_139_092_122_target_position_1_3_retrieval_position_1" gabor_011_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_5_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 64 292 292 399 125 1892 2992 2142 fixation_cross gabor_038 gabor_145 gabor_127 gabor_093 gabor_038_alt gabor_145 gabor_127 gabor_093_alt "1_6_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1900_3000_2150_gabor_patch_orientation_038_145_127_093_target_position_2_3_retrieval_position_1" gabor_038_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_6_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_038_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1792 2992 2092 fixation_cross gabor_157 gabor_032 gabor_047 gabor_095 gabor_157_alt gabor_032 gabor_047 gabor_095_alt "1_7_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2100_gabor_patch_orientation_157_032_047_095_target_position_2_3_retrieval_position_2" gabor_circ gabor_032_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_7_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_032_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2242 2992 2192 fixation_cross gabor_080 gabor_148 gabor_095 gabor_125 gabor_080 gabor_148_alt gabor_095_alt gabor_125 "1_8_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2200_gabor_patch_orientation_080_148_095_125_target_position_1_4_retrieval_position_1" gabor_035_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_8_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_035_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1992 2992 2292 fixation_cross gabor_100 gabor_154 gabor_049 gabor_078 gabor_100_alt gabor_154 gabor_049_alt gabor_078 "1_9_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2300_gabor_patch_orientation_100_154_049_078_target_position_2_4_retrieval_position_2" gabor_circ gabor_154_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_9_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_154_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1742 2992 2542 fixation_cross gabor_082 gabor_043 gabor_158 gabor_098 gabor_082 gabor_043_alt gabor_158_alt gabor_098 "1_10_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2550_gabor_patch_orientation_082_043_158_098_target_position_1_4_retrieval_position_1" gabor_132_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_10_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_132_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2042 2992 1942 fixation_cross gabor_062 gabor_030 gabor_092 gabor_149 gabor_062 gabor_030_alt gabor_092_alt gabor_149 "1_11_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_1950_gabor_patch_orientation_062_030_092_149_target_position_1_4_retrieval_position_1" gabor_111_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_11_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_111_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2142 2992 2442 fixation_cross gabor_051 gabor_121 gabor_014 gabor_139 gabor_051 gabor_121 gabor_014_alt gabor_139_alt "1_12_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_051_121_014_139_target_position_1_2_retrieval_position_1" gabor_051_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_12_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_051_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 63 292 292 399 125 1842 2992 2242 fixation_cross gabor_106 gabor_129 gabor_149 gabor_167 gabor_106 gabor_129_alt gabor_149 gabor_167_alt "1_13_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1850_3000_2250_gabor_patch_orientation_106_129_149_167_target_position_1_3_retrieval_position_2" gabor_circ gabor_079_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_13_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_079_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2142 2992 2442 fixation_cross gabor_029 gabor_176 gabor_150 gabor_095 gabor_029_alt gabor_176_alt gabor_150 gabor_095 "1_14_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_029_176_150_095_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_012_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_14_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_012_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 63 292 292 399 125 1892 2992 1892 fixation_cross gabor_093 gabor_171 gabor_016 gabor_037 gabor_093_alt gabor_171 gabor_016_alt gabor_037 "1_15_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1900_3000_1900_gabor_patch_orientation_093_171_016_037_target_position_2_4_retrieval_position_1" gabor_143_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_15_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_143_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1842 2992 2592 fixation_cross gabor_068 gabor_148 gabor_103 gabor_126 gabor_068 gabor_148_alt gabor_103_alt gabor_126 "1_16_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2600_gabor_patch_orientation_068_148_103_126_target_position_1_4_retrieval_position_1" gabor_019_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_16_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_019_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1842 2992 2592 fixation_cross gabor_147 gabor_131 gabor_092 gabor_003 gabor_147_alt gabor_131 gabor_092_alt gabor_003 "1_17_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2600_gabor_patch_orientation_147_131_092_003_target_position_2_4_retrieval_position_2" gabor_circ gabor_131_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_17_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_131_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1742 2992 2542 fixation_cross gabor_169 gabor_049 gabor_119 gabor_013 gabor_169_alt gabor_049 gabor_119_alt gabor_013 "1_18_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2550_gabor_patch_orientation_169_049_119_013_target_position_2_4_retrieval_position_2" gabor_circ gabor_094_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_18_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_094_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2242 2992 2442 fixation_cross gabor_124 gabor_016 gabor_106 gabor_087 gabor_124 gabor_016_alt gabor_106_alt gabor_087 "1_19_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2450_gabor_patch_orientation_124_016_106_087_target_position_1_4_retrieval_position_1" gabor_170_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_19_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_170_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2192 2992 1892 fixation_cross gabor_065 gabor_143 gabor_170 gabor_004 gabor_065 gabor_143 gabor_170_alt gabor_004_alt "1_20_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_1900_gabor_patch_orientation_065_143_170_004_target_position_1_2_retrieval_position_2" gabor_circ gabor_093_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_20_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_093_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1842 2992 2392 fixation_cross gabor_081 gabor_148 gabor_033 gabor_116 gabor_081_alt gabor_148_alt gabor_033 gabor_116 "1_21_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2400_gabor_patch_orientation_081_148_033_116_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_116_framed blank blank blank blank fixation_cross_target_position_3_4 "1_21_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_116_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1942 2992 2192 fixation_cross gabor_040 gabor_001 gabor_067 gabor_178 gabor_040_alt gabor_001_alt gabor_067 gabor_178 "1_22_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2200_gabor_patch_orientation_040_001_067_178_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_021_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_22_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_021_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 64 292 292 399 125 1842 2992 1992 fixation_cross gabor_102 gabor_057 gabor_018 gabor_129 gabor_102_alt gabor_057 gabor_018_alt gabor_129 "1_23_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1850_3000_2000_gabor_patch_orientation_102_057_018_129_target_position_2_4_retrieval_position_1" gabor_102_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_23_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_102_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2242 2992 2592 fixation_cross gabor_074 gabor_014 gabor_119 gabor_037 gabor_074 gabor_014_alt gabor_119 gabor_037_alt "1_24_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2600_gabor_patch_orientation_074_014_119_037_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_119_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_24_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_119_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2142 2992 2092 fixation_cross gabor_016 gabor_149 gabor_081 gabor_103 gabor_016_alt gabor_149_alt gabor_081 gabor_103 "1_25_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2100_gabor_patch_orientation_016_149_081_103_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_081_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_25_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_081_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 64 292 292 399 125 1992 2992 1942 fixation_cross gabor_156 gabor_022 gabor_080 gabor_046 gabor_156 gabor_022 gabor_080_alt gabor_046_alt "1_26_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2000_3000_1950_gabor_patch_orientation_156_022_080_046_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_046_framed blank blank blank blank fixation_cross_target_position_1_2 "1_26_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_046_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1792 2992 2492 fixation_cross gabor_083 gabor_098 gabor_124 gabor_157 gabor_083 gabor_098_alt gabor_124 gabor_157_alt "1_27_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2500_gabor_patch_orientation_083_098_124_157_target_position_1_3_retrieval_position_1" gabor_083_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_27_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_083_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2042 2992 2092 fixation_cross gabor_120 gabor_137 gabor_162 gabor_051 gabor_120_alt gabor_137 gabor_162_alt gabor_051 "1_28_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2100_gabor_patch_orientation_120_137_162_051_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_051_framed blank blank blank blank fixation_cross_target_position_2_4 "1_28_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_051_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2192 2992 2142 fixation_cross gabor_099 gabor_176 gabor_070 gabor_009 gabor_099_alt gabor_176 gabor_070_alt gabor_009 "1_29_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2150_gabor_patch_orientation_099_176_070_009_target_position_2_4_retrieval_position_2" gabor_circ gabor_039_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_29_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_039_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 63 292 292 399 125 1842 2992 2292 fixation_cross gabor_040 gabor_163 gabor_005 gabor_090 gabor_040_alt gabor_163_alt gabor_005 gabor_090 "1_30_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1850_3000_2300_gabor_patch_orientation_040_163_005_090_target_position_3_4_retrieval_position_2" gabor_circ gabor_117_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_30_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_117_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1742 2992 1892 fixation_cross gabor_069 gabor_024 gabor_051 gabor_129 gabor_069_alt gabor_024 gabor_051_alt gabor_129 "1_31_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_1900_gabor_patch_orientation_069_024_051_129_target_position_2_4_retrieval_position_2" gabor_circ gabor_024_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_31_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_024_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1742 2992 1942 fixation_cross gabor_177 gabor_059 gabor_098 gabor_125 gabor_177 gabor_059_alt gabor_098 gabor_125_alt "1_32_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_1950_gabor_patch_orientation_177_059_098_125_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_148_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_32_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_148_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2142 2992 2192 fixation_cross gabor_059 gabor_165 gabor_041 gabor_026 gabor_059_alt gabor_165 gabor_041_alt gabor_026 "1_33_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2200_gabor_patch_orientation_059_165_041_026_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_076_framed blank blank blank blank fixation_cross_target_position_2_4 "1_33_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_076_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 64 292 292 399 125 2192 2992 2042 fixation_cross gabor_176 gabor_041 gabor_005 gabor_124 gabor_176_alt gabor_041_alt gabor_005 gabor_124 "1_34_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2200_3000_2050_gabor_patch_orientation_176_041_005_124_target_position_3_4_retrieval_position_2" gabor_circ gabor_041_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_34_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_041_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2092 2992 2292 fixation_cross gabor_051 gabor_180 gabor_074 gabor_126 gabor_051 gabor_180_alt gabor_074 gabor_126_alt "1_35_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2300_gabor_patch_orientation_051_180_074_126_target_position_1_3_retrieval_position_1" gabor_051_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_35_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_051_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2092 2992 2542 fixation_cross gabor_094 gabor_054 gabor_035 gabor_116 gabor_094 gabor_054_alt gabor_035 gabor_116_alt "1_36_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2550_gabor_patch_orientation_094_054_035_116_target_position_1_3_retrieval_position_1" gabor_094_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_36_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_094_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1792 2992 2192 fixation_cross gabor_083 gabor_017 gabor_166 gabor_054 gabor_083_alt gabor_017 gabor_166_alt gabor_054 "1_37_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2200_gabor_patch_orientation_083_017_166_054_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_054_framed blank blank blank blank fixation_cross_target_position_2_4 "1_37_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_054_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1742 2992 2492 fixation_cross gabor_034 gabor_169 gabor_063 gabor_144 gabor_034_alt gabor_169_alt gabor_063 gabor_144 "1_38_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2500_gabor_patch_orientation_034_169_063_144_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_063_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_38_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_063_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1892 2992 2042 fixation_cross gabor_070 gabor_128 gabor_022 gabor_039 gabor_070 gabor_128_alt gabor_022 gabor_039_alt "1_39_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2050_gabor_patch_orientation_070_128_022_039_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_159_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_39_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_159_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1942 2992 1992 fixation_cross gabor_018 gabor_095 gabor_055 gabor_080 gabor_018 gabor_095 gabor_055_alt gabor_080_alt "1_40_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1950_3000_2000_gabor_patch_orientation_018_095_055_080_target_position_1_2_retrieval_position_2" gabor_circ gabor_095_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_40_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 63 292 292 399 125 2192 2992 1942 fixation_cross gabor_121 gabor_094 gabor_138 gabor_032 gabor_121_alt gabor_094_alt gabor_138 gabor_032 "1_41_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2200_3000_1950_gabor_patch_orientation_121_094_138_032_target_position_3_4_retrieval_position_1" gabor_166_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_41_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_166_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2092 2992 2242 fixation_cross gabor_143 gabor_168 gabor_097 gabor_059 gabor_143_alt gabor_168 gabor_097_alt gabor_059 "1_42_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2250_gabor_patch_orientation_143_168_097_059_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_011_framed blank blank blank blank fixation_cross_target_position_2_4 "1_42_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2242 2992 2442 fixation_cross gabor_094 gabor_078 gabor_008 gabor_142 gabor_094_alt gabor_078_alt gabor_008 gabor_142 "1_43_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2450_gabor_patch_orientation_094_078_008_142_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_008_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_43_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_008_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2192 2992 2342 fixation_cross gabor_007 gabor_096 gabor_158 gabor_072 gabor_007 gabor_096_alt gabor_158_alt gabor_072 "1_44_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2350_gabor_patch_orientation_007_096_158_072_target_position_1_4_retrieval_position_1" gabor_007_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_44_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_007_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1792 2992 2142 fixation_cross gabor_009 gabor_174 gabor_093 gabor_060 gabor_009_alt gabor_174_alt gabor_093 gabor_060 "1_45_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2150_gabor_patch_orientation_009_174_093_060_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_142_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_45_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_142_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1942 2992 2392 fixation_cross gabor_018 gabor_087 gabor_123 gabor_176 gabor_018_alt gabor_087_alt gabor_123 gabor_176 "1_46_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2400_gabor_patch_orientation_018_087_123_176_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_037_framed blank blank blank blank fixation_cross_target_position_3_4 "1_46_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_037_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1792 2992 2292 fixation_cross gabor_110 gabor_020 gabor_176 gabor_130 gabor_110 gabor_020_alt gabor_176_alt gabor_130 "1_47_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2300_gabor_patch_orientation_110_020_176_130_target_position_1_4_retrieval_position_1" gabor_110_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_47_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_110_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 63 292 292 399 125 1892 2992 2242 fixation_cross gabor_115 gabor_135 gabor_049 gabor_167 gabor_115_alt gabor_135 gabor_049_alt gabor_167 "1_48_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1900_3000_2250_gabor_patch_orientation_115_135_049_167_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_095_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_48_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_095_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1992 2992 2242 fixation_cross gabor_138 gabor_109 gabor_023 gabor_157 gabor_138 gabor_109_alt gabor_023 gabor_157_alt "1_49_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2250_gabor_patch_orientation_138_109_023_157_target_position_1_3_retrieval_position_1" gabor_138_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_49_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_138_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1892 2992 2342 fixation_cross gabor_178 gabor_089 gabor_052 gabor_140 gabor_178_alt gabor_089_alt gabor_052 gabor_140 "1_50_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2350_gabor_patch_orientation_178_089_052_140_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_140_framed blank blank blank blank fixation_cross_target_position_3_4 "1_50_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_140_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1742 2992 2142 fixation_cross gabor_039 gabor_111 gabor_054 gabor_160 gabor_039 gabor_111_alt gabor_054_alt gabor_160 "1_51_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2150_gabor_patch_orientation_039_111_054_160_target_position_1_4_retrieval_position_1" gabor_085_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_51_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_085_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 63 292 292 399 125 2092 2992 2042 fixation_cross gabor_023 gabor_134 gabor_109 gabor_050 gabor_023_alt gabor_134_alt gabor_109 gabor_050 "1_52_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2100_3000_2050_gabor_patch_orientation_023_134_109_050_target_position_3_4_retrieval_position_1" gabor_161_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_52_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_161_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2042 2992 1992 fixation_cross gabor_170 gabor_132 gabor_013 gabor_153 gabor_170_alt gabor_132 gabor_013 gabor_153_alt "1_53_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2000_gabor_patch_orientation_170_132_013_153_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_013_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_53_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_013_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1892 2992 1942 fixation_cross gabor_040 gabor_090 gabor_066 gabor_009 gabor_040 gabor_090_alt gabor_066_alt gabor_009 "1_54_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_1950_gabor_patch_orientation_040_090_066_009_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_149_framed blank blank blank blank fixation_cross_target_position_1_4 "1_54_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_149_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1992 2992 2592 fixation_cross gabor_135 gabor_046 gabor_179 gabor_028 gabor_135 gabor_046_alt gabor_179 gabor_028_alt "1_55_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2000_3000_2600_gabor_patch_orientation_135_046_179_028_target_position_1_3_retrieval_position_1" gabor_090_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_55_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2192 2992 2292 fixation_cross gabor_108 gabor_143 gabor_080 gabor_022 gabor_108 gabor_143_alt gabor_080 gabor_022_alt "1_56_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2300_gabor_patch_orientation_108_143_080_022_target_position_1_3_retrieval_position_1" gabor_108_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_56_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_108_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 63 292 292 399 125 1942 2992 2542 fixation_cross gabor_019 gabor_100 gabor_079 gabor_159 gabor_019_alt gabor_100_alt gabor_079 gabor_159 "1_57_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1950_3000_2550_gabor_patch_orientation_019_100_079_159_target_position_3_4_retrieval_position_2" gabor_circ gabor_050_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_57_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_050_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2142 2992 1892 fixation_cross gabor_051 gabor_019 gabor_078 gabor_130 gabor_051_alt gabor_019 gabor_078 gabor_130_alt "1_58_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_1900_gabor_patch_orientation_051_019_078_130_target_position_2_3_retrieval_position_2" gabor_circ gabor_019_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_58_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_019_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1792 2992 2242 fixation_cross gabor_063 gabor_043 gabor_016 gabor_180 gabor_063_alt gabor_043 gabor_016_alt gabor_180 "1_59_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2250_gabor_patch_orientation_063_043_016_180_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_133_framed blank blank blank blank fixation_cross_target_position_2_4 "1_59_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_133_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 64 292 292 399 125 1942 2992 2092 fixation_cross gabor_013 gabor_094 gabor_073 gabor_032 gabor_013 gabor_094 gabor_073_alt gabor_032_alt "1_60_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1950_3000_2100_gabor_patch_orientation_013_094_073_032_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_073_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_60_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_073_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2042 2992 2042 fixation_cross gabor_084 gabor_036 gabor_015 gabor_157 gabor_084_alt gabor_036 gabor_015_alt gabor_157 "1_61_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_084_036_015_157_target_position_2_4_retrieval_position_2" gabor_circ gabor_173_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_61_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_173_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1992 2992 1992 fixation_cross gabor_040 gabor_128 gabor_006 gabor_090 gabor_040 gabor_128_alt gabor_006 gabor_090_alt "1_62_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2000_3000_2000_gabor_patch_orientation_040_128_006_090_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_056_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_62_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_056_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 2092 2992 2092 fixation_cross gabor_132 gabor_176 gabor_022 gabor_003 gabor_132_alt gabor_176 gabor_022_alt gabor_003 "1_63_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2100_gabor_patch_orientation_132_176_022_003_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_048_framed blank blank blank blank fixation_cross_target_position_2_4 "1_63_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_048_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 1792 2992 2192 fixation_cross gabor_108 gabor_002 gabor_019 gabor_088 gabor_108_alt gabor_002 gabor_019_alt gabor_088 "1_64_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2200_gabor_patch_orientation_108_002_019_088_target_position_2_4_retrieval_position_2" gabor_circ gabor_002_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_64_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_002_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1742 2992 2342 fixation_cross gabor_042 gabor_010 gabor_121 gabor_066 gabor_042 gabor_010_alt gabor_121_alt gabor_066 "1_65_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2350_gabor_patch_orientation_042_010_121_066_target_position_1_4_retrieval_position_1" gabor_092_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_65_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 61 292 292 399 125 1942 2992 2342 fixation_cross gabor_073 gabor_055 gabor_029 gabor_144 gabor_073_alt gabor_055 gabor_029_alt gabor_144 "1_66_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2350_gabor_patch_orientation_073_055_029_144_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_008_framed blank blank blank blank fixation_cross_target_position_2_4 "1_66_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_008_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2042 2992 2392 fixation_cross gabor_072 gabor_138 gabor_008 gabor_114 gabor_072_alt gabor_138 gabor_008 gabor_114_alt "1_67_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2400_gabor_patch_orientation_072_138_008_114_target_position_2_3_retrieval_position_2" gabor_circ gabor_138_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_67_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_138_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 64 292 292 399 125 2142 2992 2142 fixation_cross gabor_022 gabor_007 gabor_127 gabor_166 gabor_022 gabor_007_alt gabor_127_alt gabor_166 "1_68_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2150_3000_2150_gabor_patch_orientation_022_007_127_166_target_position_1_4_retrieval_position_2" gabor_circ gabor_007_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_68_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_007_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 62 292 292 399 125 2042 2992 1992 fixation_cross gabor_087 gabor_143 gabor_021 gabor_111 gabor_087_alt gabor_143 gabor_021 gabor_111_alt "1_69_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2000_gabor_patch_orientation_087_143_021_111_target_position_2_3_retrieval_position_2" gabor_circ gabor_143_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_69_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; 43 64 292 292 399 125 2092 2992 2042 fixation_cross gabor_122 gabor_066 gabor_032 gabor_008 gabor_122_alt gabor_066 gabor_032_alt gabor_008 "1_70_Encoding_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2100_3000_2050_gabor_patch_orientation_122_066_032_008_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_032_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_70_Retrieval_Working_Memory_MEG_P5_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_032_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96; }; # baselinePost (at the end of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }; time = 0; duration = 5000; code = "BaselinePost"; port_code = 92; };
f574182bf9c1104d3700ee31c9f06a9b94565d70
449d555969bfd7befe906877abab098c6e63a0e8
/380/CH8/EX8.7/Ex8_7.sce
0e0f2376cd4b79a05881f032738211a0a311c5c4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
715
sce
Ex8_7.sce
//Caption:Find the overall power factor and power factor of motor to improve overall power factor //Exa:8.7 clc; clear; close; //for load: theta_L=acosd(0.6);//lag (in degree) S_L=100*(cosd(53.13)+%i*sind(53.13));//in KVA //for synchronous motor: theta_m=acosd(0.5);//lead (in degree) S_m=(10/0.5)*conj(cosd(theta_m)+%i*sind(theta_m));//in Watts S_t=S_L+S_m;//overall power (in Watts) pf=cosd(atand(imag(S_t)/real(S_t))); disp(pf,'overall power factor='); //for power factor=0.9 theta_t=25.84; S_tn=(real(S_t)/0.9)*(cosd(theta_t)+%i*sind(theta_t));//in KVA S_mn=S_tn-S_L;//in KVA pf_n=cosd(atand(imag(S_mn)/real(S_mn))); disp(pf_n,'power factor of motor to improve overall power factor to 0.9=');
9b75998d5fa28e8b13776d779556118f254d886f
449d555969bfd7befe906877abab098c6e63a0e8
/2438/CH8/EX8.8/Ex8_8.sce
6eb1c6b97d8949c60a4c0da42c9463f06c3ef3f5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
681
sce
Ex8_8.sce
//============================================================================== // Chapter 8 example 8 clc; clear; // Variable declaration ni = 2.5*10^19; // carrier density in per m^3 q = 1.6*10^-19; // charge of electron in coulombs un = 0.35; //mobility of electrons in m^2/V-s up = 0.15; //mobility of electrons in m^2/V-s // Calculations sigma = ni*q*(un + up); //conductivity in per ohm-m p = 1/sigma; //resistivity in ohm-m // Result mprintf('Resistivity = %3.1f ohm-m',p); //==================================================================================
0d449ca683557a8962d6a6183305415ff21ca3a9
8ea401b354e99fe129b2961e8ee6f780dedb12bd
/macros/join.sci
d3821df8dc5a02ff71630912ccd2b488bfe8ebb8
[ "BSD-2-Clause" ]
permissive
adityadhinavahi/SciPandas
91340ca30e7b4a0d76102a6622c97733a28923eb
b78b7571652acf527f877d9f1ce18115f327fa18
refs/heads/master
2022-12-20T04:04:35.984747
2020-08-19T16:10:51
2020-08-19T16:10:51
288,765,541
0
1
null
2020-08-19T15:35:04
2020-08-19T15:14:46
Python
UTF-8
Scilab
false
false
870
sci
join.sci
function join() //Join columns of another DataFrame. // Syntax //df.set_index(' ').join(other.set_index(' ')) // // Parameters // other: DataFrame, Series, or list of DataFrame //lsuffix: str, default ‘’ //rsuffix: str, default ‘’ //sort: bool, default False //method:{‘pearson’, ‘kendall’, ‘spearman’} or callable //dropbool: default False // For additional information on parameters, See https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.join.html // Returns : series // // Examples // If we want to join using the key columns, we need to set key to be the index in both df and other. The joined DataFrame will have key as its index. // df.join(other, lsuffix='_caller', rsuffix='_other') // Authors // Aditya Dhinavahi // Sundeep Akella endfunction
7d05bb11d738b65e6bc1c7ed36dca6c9452b2d97
449d555969bfd7befe906877abab098c6e63a0e8
/812/CH11/EX11.01/11_01.sce
073540f566c4336a061747e705b3770aaeef2280
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
627
sce
11_01.sce
//Change// pathname=get_absolute_file_path('11.01.sce') filename=pathname+filesep()+'11.01-data.sci' exec(filename) //Density of air at entry: d1=p1*10^3/R/T1 //Area(in m^2): A=m/d1/V1 //Change in enthalpy of air(in kJ/kg): dh=cp*(T2-T1) //Change in internal energy of air(in kJ/kg): du=cv*(T2-T1) //Change in entropy(in kJ/(kg-K)): ds=cp*log(T2/T1)-R/1000*log(p2/p1) printf("\n\nRESULTS\n\n") printf("\n\nDuct Area: %.3f m^2\n\n",A) printf("\n\nChange in enthalpy of air: %.3f kJ/kg\n\n",dh) printf("\n\nChange in internal energy of air:%.3f kJ/kg\n\n",du) printf("\n\nChange in entropy: %.3f kg-K\n\n",ds)
55bfadc57018e56f4babffdd0e049558975b7bb2
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH6/EX6.07/6_07.sce
b09fe3e9798c8b7d144c15e45a704ce8eb25f70b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
275
sce
6_07.sce
//pathname=get_absolute_file_path('6.07.sce') //filename=pathname+filesep()+'6.07-data.sci' //exec(filename) //Pressure(in MPa): p=2 //Temperature(in K): T=500+273.15 //Slope of isobar:(dh/ds)at constant pressure=T: s=T printf("\nRESULT\n") printf("\nSlope = %f",s)
97bdc1c58851bf49438d90027b8a2fcdacf1e78b
b9f1970647ac855ae5864d8b9b5594e03aba67a7
/vhdl/cpu8bit/tests/swap.tst
b09c8579d960a6b11b31e29ef454b07dc1f121fa
[]
no_license
jrguttenfelder/pub
e806eea19582ff8925db512f026fd8e3d8d2c9ab
2bc3d13893bf93d6c78b8015435b5ad7e594311f
refs/heads/master
2020-12-20T13:11:23.723619
2020-05-29T20:55:00
2020-05-29T20:55:00
236,087,241
0
0
null
null
null
null
UTF-8
Scilab
false
false
497
tst
swap.tst
1000100000000001 LIC 1 1000110000000000 STC 0 1000100000000010 LIC 2 1000110000000001 STC 1 1000100000000000 LIC 0 1000110000001111 STC 0x0F 1110000000000000 RDM 0 1110000000000001 RDM 1 1000000000000000 LDA 0 1000010000001111 LDB 0x0F 0010010000000000 OR 1000110000000011 STC 3 1000000000000001 LDA 1 0010010000000000 OR 1000110000000000 STC 0 1000000000000011 LDA 3 0010010000000000 OR 1000110000000001 STC 1 1110000000000000 RDM 0 1110000000000001 RDM 1 1010010000000000 HLT
5824aa0a85e89acc44085017d2733e3e9cb57ffc
449d555969bfd7befe906877abab098c6e63a0e8
/3293/CH1/EX1.13/Ex1_13.sce
49d5376b3ce31427ab9f0f0097873e7fd5208adf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
471
sce
Ex1_13.sce
//page 20 //Example 1.13 clear; close; clc; disp('A 2*2 elementary matrix is one of the following:'); A = [0 1;1 0]; disp(A); disp('---------------------'); disp('1 c'); disp('0 1'); disp('---------------------'); disp('1 0'); disp('c 1'); disp('---------------------'); disp('c 0'); disp('0 1'); disp('where, c is not equal to 0'); disp('---------------------'); disp('1 0'); disp('0 c'); disp('where, c is not equal to 0'); //end
84a6ad65a83aec553029f0f21292078b4b542486
449d555969bfd7befe906877abab098c6e63a0e8
/2672/CH3/EX3.42/Ex3_42.sce
c3589be8d72fe1bbf9de845dc79924e8a6c4d60b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex3_42.sce
//Example 3_42 clc; clear; close; format('v',7); //given data : R=4;//ohm L=20;//mH V=230;//V f=50;//Hz omega=2*%pi*f;//rad/s ZL=R+%i*omega*L/1000;//ohm IL=V/ZL;//A fi_L=atand(imag(IL)/real(IL));//degree IC=abs(IL)*sind(fi_L);//A XC=-V/IC;//ohm C=1/2/%pi/f/XC*10^6;//micro F disp(C,"Value of capacitor(micro F)"); I0=abs(IL)*cosd(fi_L);//A format('v',5); disp(I0,"Magnitude of in-phase current(A)"); //Answer is not accurate in the book.
960db3a39be1364c4817961e377b3ddc262c0094
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.1/macros/sci2for/f_cos.sci
1dd6d69b0d85450b824835053b697f4c1c1a8b7c
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
336
sci
f_cos.sci
//[stk,nwrk,txt,top]=f_cos(nwrk) //! nam='cos' txt=[] s2=stk(top) if s2(4)<>s2(5)|(s2(4)=='1'&s2(5)=='1') then v=s2(1) it2=prod(size(v))-1 if it2==0 then [stk,nwrk,txt,top]=f_gener(nam,nwrk) else error(nam+' of complex argument : not implemented') end else error(nam+' of non square not implemented ') end //end
99681083136c9bfdc07c5c71702a23c393a20db5
e4657d526ddb006886c9fca8229ddb7dc9b6c6cf
/two/RAM32.tst
bc39a1823ff370bbb6cfc2ebb5b2567ad9210d1c
[]
no_license
marcusshepp/computer_arch
14cfcf65c13a5db1c2255a011a743601a55ac4cb
564dd2bcf32e7791b33e5ff41a3ec63e08b2b69e
refs/heads/master
2021-01-10T07:54:53.011805
2016-04-16T22:37:38
2016-04-16T22:37:38
43,556,935
1
0
null
null
null
null
UTF-8
Scilab
false
false
4,447
tst
RAM32.tst
load RAM32.hdl, output-file RAM32.out, compare-to RAM32.cmp, output-list time%S1.4.1 in%D1.6.1 load%B2.1.2 address%D2.3.2 out%D1.6.1; set in 0, set load 0, set address 0, tick, output; tock, output; set load 1, tick, output; tock, output; set in 1313, set load 0, tick, output; tock, output; set load 1, set address 13, tick, output; tock, output; set load 0, set address 0, tick, output; tock, output; set load 1, tick, output; tock, output; set load 0, tick, output; tock, output; set address 13, eval, output; set in 6363, tick, output; tock, output; set load 0, tick, output; tock, output; set load 1, set in %B0101010101010101, set address %B10100, tick, output; tock, output; set address %B10100, tick, output, tock, output; set address %B10101, tick, output, tock, output; set address %B10101, tick, output, tock, output; set address %B10110, tick, output, tock, output; set address %B10110, tick, output, tock, output; set address %B10111, tick, output, tock, output; set address %B10111, tick, output, tock, output; set load 0, set address %B10100, tick, output; tock, output; set address %B10100, eval, output; set address %B10101, eval, output; set address %B10101, eval, output; set address %B10110, eval, output; set address %B10110, eval, output; set address %B10111, eval, output; set address %B10111, eval, output; set load 1, set address %B10100, set in %B1010101010101010, tick, output; tock, output; set load 0, set address %B10100, tick, output; tock, output; set address %B10100, eval, output; set address %B10101, eval, output; set address %B10101, eval, output; set address %B10110, eval, output; set address %B10110, eval, output; set address %B10111, eval, output; set address %B10111, eval, output; set load 1, set address %B10100, set in %B0101010101010101, tick, output, tock, output; set address %B10100, set in %B1010101010101010, tick, output; tock, output; set load 0, set address %B10100, tick, output; tock, output; set address %B10100, eval, output; set address %B10101, eval, output; set address %B10101, eval, output; set address %B10110, eval, output; set address %B10110, eval, output; set address %B10111, eval, output; set address %B10111, eval, output; set load 1, set address %B10100, set in %B0101010101010101, tick, output, tock, output; set address %B10101, set in %B1010101010101010, tick, output; tock, output; set load 0, set address %B10100, tick, output; tock, output; set address %B10100, eval, output; set address %B10101, eval, output; set address %B10101, eval, output; set address %B10110, eval, output; set address %B10110, eval, output; set address %B10111, eval, output; set address %B10111, eval, output; set load 1, set address %B10101, set in %B0101010101010101, tick, output, tock, output; set address %B10101, set in %B1010101010101010, tick, output; tock, output; set load 0, set address %B10100, tick, output; tock, output; set address %B10100, eval, output; set address %B10101, eval, output; set address %B10101, eval, output; set address %B10110, eval, output; set address %B10110, eval, output; set address %B10111, eval, output; set address %B10111, eval, output; set load 1, set address %B10101, set in %B0101010101010101, tick, output, tock, output; set address %B10110, set in %B1010101010101010, tick, output; tock, output; set load 0, set address %B10100, tick, output; tock, output; set address %B10100, eval, output; set address %B10101, eval, output; set address %B10101, eval, output; set address %B10110, eval, output; set address %B10110, eval, output; set address %B10111, eval, output; set address %B10111, eval, output; set load 1, set address %B10110, set in %B0101010101010101, tick, output, tock, output; set address %B10110, set in %B1010101010101010, tick, output; tock, output; set load 0, set address %B10100, tick, output; tock, output; set address %B10100, eval, output; set address %B10101, eval, output; set address %B10101, eval, output; set address %B10110, eval, output; set address %B10110, eval, output; set address %B10111, eval, output;
f622651c1ee2411559fb5897b66933c17ae309a1
449d555969bfd7befe906877abab098c6e63a0e8
/680/CH3/EX3.08/3_08.sce
3f17ef383df37369b4056dec8b2f3cef7d630bfc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
248
sce
3_08.sce
//Problem 3.08: //initializing the variables: pco = 0.15; // in mm of Hg P = 760; // in mm of Hg //calculation: yco = pco/P ppm = yco*1E6 printf("\n\nResult\n\n") printf("\n the parts per million of CO in the exhaust is %.0f ppm",ppm)
ef569445568c7bfe1aa8842ae7dee141318b69b2
449d555969bfd7befe906877abab098c6e63a0e8
/1202/CH22/EX22.3/22_3.sce
d93f2d307b9ae6af85c9149596017dbc4b71dffa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
871
sce
22_3.sce
clear clc //Example 22.3 disp('Example 22.3') //Parameters p1=0.028735;p2=0.028344;p3=5.035E-5;V1=12;n=0.0926; Ib=15;//basal Gb=81; //Diet function function D=D(t) D=9*exp(-0.05*t); endfunction //ODE model function ydot=model(t,y,U) G=y(1);X=y(2);I=y(3); Gdot=-p1*G-X*(G+Gb)+D(t); Xdot=-p2*X+p3*I; Idot=-n*(I+Ib)+U/V1; ydot=[Gdot Xdot Idot]'; endfunction t=0:0.1:400;t0=0; y0=[0 0 0]';//G,X,I are deviation variables U=0; y = Gb+ode(y0, t0, t, list(model,U)) subplot(3,1,1); plot(t,y(1,:)); xtitle("","Time(min)","Glucose (mg/L)") legend("$U=0\ mU/min$") U=15; y =Gb+ ode(y0, t0, t, list(model,U)) subplot(3,1,2); plot(t,y(1,:)); xtitle("","Time(min)","Glucose (mg/L)") legend("$U=15\ mU/min$") U=25; y = Gb+ode(y0, t0, t, list(model,U)) subplot(3,1,3); plot(t,y(1,:)); xtitle("","Time(min)","Glucose (mg/L)") legend("$U=25\ mU/min$")
f9081780bd2c9bdcd3ee57c037036abf191d4b97
449d555969bfd7befe906877abab098c6e63a0e8
/1787/CH3/EX3.4/Exa3_4.sce
fd846d7c0b67ed51d8b9c6ce68ceae04ab77f934
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
537
sce
Exa3_4.sce
//Exa 3.4 clc; clear; close; //given data t=0.46*10^-6;//in meters hf=2;//in ev Pin=10;//in mW alpha=50000;// in per cm e=1.6*10^-19;//constant Io=10^-2;//in mW It=Io*e^(-alpha*t);//in mW //Part (i) disp("Thus power absorbed = 10-1 = 9 mW or 0.009 J/s"); disp((2-1.43)/2,"The fraction of each photon energy unit which is converted into heat"); //Part (ii) disp(((2-1.43)/2)*0.009,"Energy converted into heat in J/s:"); //Part (iii) disp(0.009/(e*2),"Number of photons per second given off from recombination events :");
70287eafb50136188968c85f01411046f8d3773e
449d555969bfd7befe906877abab098c6e63a0e8
/2006/CH12/EX12.2/ex12_2.sce
1daa02c57e1f55c00510e4be6dbff899c9dad408
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,069
sce
ex12_2.sce
clc; M1=44; // Molecular mass of CO2 M2=32; // Molecular mass of O2 M3=28; // Molecular mass of CO M4=28; // Molecular mass of N2 y1=0.1; // Part by volume of CO2 in exhaust gas y2=0.06; // Part by volume of O2 in exhaust gas y3=0.03; // Part by volume of CO in exhaust gas y4=0.81; // Part by volume of N2 in exhaust gas R_1=8.3143; // Universal gas constant in kJ/kmol K // (a).Average molecular mass and apperent gas constant of exhaust gas M=(y1*M1)+(y2*M2)+(y3*M3)+(y4*M4); // Average molecular mass R=R_1/M; //Apperent gas constant of dry atmospheric air disp ("kJ/kg K",R,"Apperent gas constant of dry atmospheric air =","kmol",M,"Average molecular mass = ","(a).Average molecular mass and apperent gas constant of exhaust gas"); // (b).The fraction of each component m1=(M1*y1)/M;//The fraction of CO2 component m2=(M2*y2)/M;//The fraction of O2 component m3=(M3*y3)/M;//The fraction of CO component m4=(M4*y4)/M;//The fraction of N2 component disp (m4,m3,m2,m1,"(b).The fraction of CO2,O2,CO,N2 components are given below respectively ");
f12a7329cae425ee21a5cba4011e5c0a4bddff50
63c8bbe209f7a437f8bcc25dc1b7b1e9a100defa
/test/0088.tst
1c1f7ffe21123152e57c51f03f169e35ac4e4976
[]
no_license
fmeci/nfql-testing
e9e7edb03a7222cd4c5f17b9b4d2a8dd58ea547c
6b7d465b32fa50468e3694f63c803e3630c5187d
refs/heads/master
2021-01-11T04:09:48.579127
2013-05-02T13:30:17
2013-05-02T13:30:17
71,239,280
0
0
null
2016-10-18T11:01:57
2016-10-18T11:01:55
Python
UTF-8
Scilab
false
false
652
tst
0088.tst
spLITTer p {} FiLter X { bitAnd ( m, ) OR hM ( ) Not Wmtg << ef } FiLTeR u {nOt Hf Lp } W -> r groUPer a {aGgReGATE KO.W } UNgrOuPEr Im { } gRoUPFiLtEr Q {not bitAND ( 51.122.4.2/25, ) or not bitand ( ) nOT BItor (zC, C, ) bITANd ( 7.2.177.6, ) oR Not 46.183.248.252 Not In lW ( BitANd ( ), ) oR BitOr () or Not D8:EB:fE:Ab:fA:ef >> l } meRgeR dc { moduLE sYk { brAnCHes CO } MODUle yixoMbU { BRaNchEs o, bM, O 4793 > } ModUle Ck { braNcHES P -915.80532 << ::B:a:c:5d:b3:90.147.54.125 } MOdULE ho { BrancHES C } moDULe H { bRANCHEs Y, v } MODuLE YV { BRANcHES s } moDule IgcE { BrAnChES Oig, eFD, Zi } ExpORt NBXvxMu }
51e71b48e2b584e153f02fa3326d5c9b7f80eeca
8ad9380384d2751d79937ba5d6d581565596b891
/macros/vtk2pcd.sci
b379b7458ad67e4b224e841143a99f9a5109eaa4
[ "BSD-3-Clause" ]
permissive
iamAkshayrao/scilab_point_cloud_toolbox
1d8845f0830ddb623383c8dbfeadc8a3a35e8801
5d592a695b7976f4e63f0ae24d0a14937e474642
refs/heads/master
2022-12-17T23:14:11.513116
2020-09-25T18:57:02
2020-09-25T18:57:02
290,829,006
0
0
null
null
null
null
UTF-8
Scilab
false
false
805
sci
vtk2pcd.sci
function vtk2pcd() // Converts a VTK(The Visualization Toolkit) file to PCD(Point Cloud Data) format // // Syntax // PointCloud(InputVTKFilename,OutputPCDFilename,options,"vtk2pcd") // // Parameters // InputVTKFilename : Input VTK file to be converted // OutputPCDFilename : Converted output VTK file // where options are: // -copy_normals 0/1 : set to true (1) or false (0) if the output PointCloud should contain normals or not. // // Description // the input VTK file is converted to a PCD file and stored // // Examples // PointCloud("tum_rabbit.vtk","output_vtk2pcd1.pcd","-copy_normals","1","vtk2pcd") // // Examples // PointCloud("tum_rabbit.vtk","output_vtk2pcd2.pcd","vtk2pcd") // //Authors //Ankit Kumar //Akshay S Rao //Mohammed Rehab Sait //Aliasgar AV endfunction
04b2cc1ea0a36f0fe8e8281349b836315dfcd56c
449d555969bfd7befe906877abab098c6e63a0e8
/69/CH4/EX4.17/4_17.sce
e35122b4bfa8c4fb6a5d948f72ecc5827b17a4ef
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
249
sce
4_17.sce
clear; clc; close; Re = 1.2*10^(3); Rc = 2.4*10^(3); Rb = 240*10^(3); Vee = 4; Vcc = 10; Vbe = 0.7; Beta = 60; Ie = (Vee-Vbe)/Re; Ic = Ie; Vcb = Vcc-Ic*Rc; Ib = Ic/Beta; disp(Vcb,'Vcb(Volts) is : '); disp(Ib,'Ib(amperes) is :');
b7b151aa677014f0f9b3dbffb41221cbe429985b
09c4a8bcbc605cc3a5a45779e9218e6f309b0132
/MC2/question-1-1.sci
823b2b7475c427e426d98a23ef93cfdfd2be51e9
[]
no_license
emilemathieu/ImportanceSampling
8224833f7255160230532329aeb220723338eea2
2afeb94bc6b1063d0a1f24fc41b79c434b34a5ca
refs/heads/master
2021-05-28T20:54:32.251555
2015-06-01T17:57:00
2015-06-01T17:57:00
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
397
sci
question-1-1.sci
d=10; rho=0.5; // 1 sur la diagonale // rho en dehors de la diagonale Rho = (1 - rho) *eye(d,d) + rho * ones(d,d); // spec calcule les valeurs propre de Gamma (son spectre) spec(Rho) // verifier que toutes les valeurs propres sont positives // ... // fabrique la matrice sigma_i * Rho_ij * sigma_j (et oui!) sigma = 0.3 * ones(1,d); Gamma = diag(sigma) * Rho * diag(sigma); spec(Gamma)
8442d52e9fc09ad6f591b31ca3d3ec9351d25fc6
449d555969bfd7befe906877abab098c6e63a0e8
/3811/CH5/EX5.3/Ex5_3.sce
3e5a9128a1fe31f740295e909cc8faeed95bc5ff
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,128
sce
Ex5_3.sce
//Book name: Fundamentals of electrical drives by Mohamad A. El- Sharkawi //chapter 5 //example 5.3 //edition 1 //publisher and place:Nelson Engineering clc; clear; l=50;//load in hp f=60;//frequency in hertz V=440;//voltage of the motor in volts p=4;//Number of poles of the motor Tmax=2.5;//maximum torque of the motor T=1;//motor torque smax=0.1;//maximum slip ns=(120*f)/p;//synchronous speed in rpm disp('a). Motor speed :') s=(T/Tmax)*(smax/2);//the equation is obtained from the equation T=3V^2s/wsR2 n=ns*(1-s);//speed of the motor in rpm disp(n,'The speed of the motor at full load in rpm is') disp('b).Copper loss of the rotor') Pd=l/1.34;//power developed or Pout in kilowatt Pcu2=Pd*(s/(1-s));//copper loss in kilowatt which is obtained from two equationsPcu2=Pg*s,Pd=Pg*(1-s) Pcu=Pcu2*10^3;//copper loss in watt disp(Pcu,'The copper loss of the rotor in watt is') disp('c).Starting torque') //At starting slip s=1 omega=(2*%pi*n)/f; Pout=Pd*10^3;//Pout value in watts Tst=(smax^(2)*Pout)/(s*omega); disp(Tst,'The starting torque in Nm is') //The answers vary due to round off error
a4d236d03aed323f328e02624f04ccc71b81f7c0
449d555969bfd7befe906877abab098c6e63a0e8
/1271/CH8/EX8.1/example8_1.sce
f530dc27a2141bd1df660b786a19c0a948f8e585
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
435
sce
example8_1.sce
clc // Given that v = 34500 // speed of sound in cm/sec f = 20 // lower limit of frequency for human hearing ear in Hz f_ = 20000 // upper limit of frequency for human hearing ear in Hz // Sample Problem 1 on page no. 8.17 printf("\n # PROBLEM 1 # \n") printf(" Standard formula used \n") printf(" V = f*lambda \n \n" ) lambda = v / f lambda_ = v / f_ printf("\n Wavelength range of the sound wave is %f cm to %f cm.",lambda_,lambda)
2d9219c8f920e0effb81c47131aa992b71525bc0
449d555969bfd7befe906877abab098c6e63a0e8
/1055/CH12/EX12.1/ch12_1.sce
7eacca877f9a2e72df67892adc882744806a7c72
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,326
sce
ch12_1.sce
// To determine the (i)the neutral impedence of line (ii)line current (iii)rate of energy absorption , rate of reflection and state form of reflection (iv) terminating resistance (v)amount of reflected and transmitted power clear clc; L=2*(10^-7)*log(100/.75);//inductance per unit length C=2*%pi*(10^-9)/(36*%pi*log(100/.75));//Capacitance per phase per unit length (F/m) Z1=sqrt(L/C); E=11000; mprintf("(i)the natural impedence of line=%.0f ohms\n",Z1); Il=E/(sqrt(3)*Z1);//line current(amps) mprintf("(ii)line current =%.1f amps\n",Il); R=1000; Z2=R; E1=2*Z2*E/((Z1+Z2)*sqrt(3)); Pr=3*E1*E1/(R*1000);//Rate of power consumption Vr=(Z2-Z1)*E/(sqrt(3)*(Z2+Z1)*1000);//Reflected voltage Er=3*Vr*Vr*1000/Z1//rate of reflected voltage mprintf("(iii)rate of energy absorption =%.1f kW\n",Pr); mprintf("rate of reflected energy =%.1f kW\n",Er); mprintf("(iv)Terminating resistance should be equal to surge impedence of line =%.0f ohms\n",Z1); L=.5*(10^-8); C=10^-12; Z=sqrt(L/C);// surge impedence VR=2*Z*11/((Z1+Z)*sqrt(3)); Vrl=(Z-Z1)*11/((Z1+Z)*sqrt(3)); PR1=3*VR*VR*1000/(Z); d=abs(Vrl); Prl=3*d*d*1000/Z1; mprintf("(v)Refracted power =%.1f kW\n",PR1); mprintf("Reflected power =%.1f kW\n",Prl); ////Answer don't match exactly due to difference in rounding off of digits i between calculations
3678e04a044a0b3e3c0a7763da93ef775bc48ea7
190d7a52f0fed9737c92e627958e4c1b6c7ddb55
/Robotics/Scilab Code/TestMovement.sce
361b636a17821d752822d19701c97753faf74d13
[]
no_license
Jsw-4111/SchoolWork
3389c9179d088b26c98a3410180dc3f2569bfdf3
a9a6e345fc30bfa79a7e2bb4848655cb301facee
refs/heads/master
2023-04-12T01:11:02.216417
2021-04-25T21:21:06
2021-04-25T21:21:06
300,689,960
0
0
null
null
null
null
UTF-8
Scilab
false
false
408
sce
TestMovement.sce
function [ obstacleHit ] = TestMovement( x_move, y_move, RobotLocation, OccupancyMap ) // TestMovement tests a movement before it is actually made. No movement of // the robot is accomplished in this function newRobotLocation = RobotLocation + [x_move, y_move]'; if(OccupancyMap(newRobotLocation(2), newRobotLocation(1)) == 1) obstacleHit = 1; else obstacleHit = 0; end end
ca7adaf738fbe452d6a3b33247c6c95b086f3ecd
449d555969bfd7befe906877abab098c6e63a0e8
/74/CH12/EX12.3/example3_sce.sce
da3d02cdc69602059daa9aff7837b6451e83a1ae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
237
sce
example3_sce.sce
// chapter 12 // example 12.3 // page 414 n=8;// 8 bit DAC R=20*10^-3;//resolution V/LSB inpt=10000000; Vofs=R*(2^n-1); disp(Vofs) D=1*2^7+0*2^6+0*2^5+0*2^4+0*2^3+0*2^2+0*2^1+0*2^0; disp(D) Vout=R*D;//output voltage disp(Vout)
d796038e89c1d27bae24f7e539027d36cfcb459d
449d555969bfd7befe906877abab098c6e63a0e8
/2084/CH3/EX3.5/3_5.sce
07ba0f246985378ae1d4647886618d354e028159
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
921
sce
3_5.sce
//developed in windows XP operating system 32bit //platform Scilab 5.4.1 clc;clear; //example 3.5 //calculation of distance travelled in given time, time taken to reach a particular velocity and distance covered to reach particular velocity //given data u=2.5; //initial velocity(in m/s) of the particle t=2; //time(in s) for which the particle has travelled v=7.5; //final velocity(in m/s) of the particle a=.5; //acceleration(in m/s^2) of the particle //calculation x=(u*t)+((1/2)*a*t*t); //Equation of motion with constant acceleration t1=(v-u)/a; //Equation of motion with constant acceleration x1=((v*v)-(u*u))/(2*a); //Equation of motion with constant acceleration disp(x,'distance(in m) travelled by the particle in the first two seconds is'); disp(t1,'time(in s) taken by particle to reach 7.5 m/s velocity is'); disp(x1,'distance(in m) covered by particle to reach 7.5 m/s velocity is');
758c1c2b413528f7043640edcc36972a10d72e2f
449d555969bfd7befe906877abab098c6e63a0e8
/317/CH18/EX18.6/example6.sce
c85dd0415e26b20ae54bcda66a4ff309ee5b2497
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
899
sce
example6.sce
// find power band width // Electronic Principles // By Albert Malvino , David Bates // Seventh Edition // The McGraw-Hill Companies // Example 18-6, page 673 clear; clc; close; // Given data Vp=8;// peak voltage in volts Sr1=0.5*10^6;// slew rate in volts/second Sr2=5*10^6;// slew rate in volts/second Sr3=50*10^6;// slew rate in volts/second // Calculations fmax1=Sr1/(2*%pi*Vp);// power band width in hertz fmax2=Sr2/(2*%pi*Vp);// power band width in hertz fmax3=Sr3/(2*%pi*Vp);// power band width in hertz disp("Hertz ",fmax1,"power band width 1=") disp("Hertz ",fmax2,"power band width 2=") disp("Hertz ",fmax3,"power band width 3=") // Result // Power bandwidth when slew rate is 0.5 Volts/micro seconds is 10 kHertz // Power bandwidth when slew rate is 5 Volts/micro seconds is 100 kHertz // Power bandwidth when slew rate is 50 Volts/micro seconds is 1 MHertz
3e8e6ecd84f3ff306f032aa4926444ad2f2c3a87
449d555969bfd7befe906877abab098c6e63a0e8
/1892/CH1/EX1.40/Example1_40.sce
cb1b1d6db45b0b8eb54ebdf0c2eb0fa8ea0037ec
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
690
sce
Example1_40.sce
// Example 1.40 clear; clc; close; format('v',8); // Given data P=4;//no. of poles VL=200;//in volt f=50;//in Hz R2=0.1;//in ohm/phase X2=0.9;//in ohm/phase S=4;//in % K=0.67;//rotor to stator turns //Calculations S=S/100;//slip E1ph=VL/sqrt(3);//in volt E2ph=K*E1ph;//in volt Ns=120*f/P;//in rpm ns=Ns/60;//in rps T=3/2/%pi/ns*S*E2ph^2*R2/(R2^2+(S*X2)^2);//in N-m disp(T,"Total torque at 4% slip in N-m :"); Tm=3/2/%pi/ns*E2ph^2/2/X2;//in N-m disp(Tm,"Maximum torque developed in N-m :"); Sm=R2/X2;//Max Slip Nm=Ns*(1-Sm);//in rpm disp(Nm,"Speed at max Torque in rpm : "); Pmax=Tm*2*%pi*Nm/60;//in watts disp(Pmax,"Maximum mechanical power in watts : ");
7f0f02444ccf8501a2c647b59ec0d19527f47890
449d555969bfd7befe906877abab098c6e63a0e8
/3886/CH6/EX6.6/6_6.sce
5abfc27d7f3fcb50e978c97d5794fcd3e74f2b30
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
389
sce
6_6.sce
//Finding the additional pulleys required //if n is number of movable pulleys then n=3 VR=2^n eta=0.8 MA=eta*VR P=6000/6.4 //N //In second case Effort=520 //N //efficiency eta=0.80-n1*0.05 //n1=number of additional pulleys required=(n-3) //thus //W=P[0.8-(n-3)*0.05]*2^n //by using trial and erroe method nfinal=4 printf("Number of movable pulleys required=%.0f",nfinal)
bbcfab03c6b76feb6a03944b46e1c7b98b02b324
69d47013b4427741d37de7faeb3e94fc141393b4
/Lab_3-Sistemas_Lineares/linearSystemMethods.sce
626c32c6cf52a398ac84c850b209dbff35eb14c8
[]
no_license
samuel-cavalcanti/Computacao-Numerica
30f5042076b5db29482798ca7a6c63590a00a697
029c49f5d303f8f978c1f7b12b91778f06fb0665
refs/heads/master
2020-03-29T14:14:51.735781
2019-02-05T18:14:12
2019-02-05T18:14:12
150,007,038
1
0
null
null
null
null
UTF-8
Scilab
false
false
2,692
sce
linearSystemMethods.sce
function [x,iter] = jacobi(A,b,X0,t,N) [L,c] = size(A); iter =0 infNorm = 1 while iter < N && infNorm > t for i = 1: L soma = 0 for j = 1:L if j~=i soma = soma + A(i,j)*X0(j) end end x(i) =(b(i) - soma)/A(i,i); end iter = iter+1; infNorm = max(abs(x -X0)) X0 =x end endfunction function [iter,x] = gaussSeidel(A,B,x0,t,N) [rows, columns] = size(A); iter = 0; infNorm = 1; while iter <N && infNorm >t iter = iter +1 for i =1:rows soma = 0; for j =1: i -1 soma = soma + A(i,j) * x(j) end for j2 = i+1:rows soma = soma + A(i,j2) * x0(j2) end x(i) = (B(i) - soma)/A(i,i) end infNorm = max(abs(x - x0)); x0 = x; end endfunction function x = retroInf(A, b) [L,c] = size(A) for i=L:-1:1 soma = 0; for j=i+1:c soma = soma + x(j)*A(i,j) end x(i) = (b(i)-soma)/A(i,i); end endfunction function x1 = retroSup(A,b) [L,c] = size(A) for i=1:L soma = 0; for j=1:i-1 soma = soma + x1(j)*A(i,j) end x1(i) = (b(i)-soma)/A(i,i); end endfunction function [A1,B1] = verifyMatrix(Aa, B) [l,c] = size(Aa); i = 2; while Aa(1,1) == 0 && i <= l tempA = Aa(1,:); tempB = B(1); Aa(1,:) = Aa(i,:) B(1) =B(i); Aa(i,:) = tempA; B(i) = tempB; i = i + 1 end if Aa(1,1) == 0 Aa(:,1) =[ ] end A1 = Aa B1 = B endfunction function [L,U] = decompLU(A) [line,cols] = size(A) L = eye(A); for i =1:line-1 pivo= A(i,i); for j = i+1:cols m = A(j,i)/pivo L(j,i) = m A(j,:) = A(j,:) -m*A(i,:) end end U = A endfunction function solver = luSolver (A,B) [L,U]= decompLU(A) // permutação linha 1 com 2 y = retroSup(L,B); solver = retroInf(U,y) endfunction function x = Gauss(A,b) [L,c] = size(A); Aa = [A,b]; for i=1:L-1 pivo=Aa(i,i) for j = i+1:c m = Aa(j,i)/pivo; Aa(j,:) = Aa(j,:) - m*Aa(i,:); end end x = retroInf(Aa(1:L,1:c), Aa(:,c+1)); endfunction
85ebba12df08b38ab8df799f4315672be1023982
1d7cb1dbfad2558a4145c06cbe3f5fa3fc6d2c08
/Scilab/SparamUtilities/SxP_InteViewer/bak/unwrap.sci
8a8303a5f596b22b50da24a0486cf8a42a12dbd2
[]
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
1,515
sci
unwrap.sci
//////////////////////////////////////Unwrap Matlab Emulation function/////////////////////////////// function unwrp = unwrap(wrapped) // // Emulation of Matlab unwrap function which adjust largest deviation // between adjacent phase entries to maximum of +pi or -pi // // Inputs: // wrapped - wrapped phase vector. Must be 1-D vector with at least 2 entries // // Outputs: // unrwp - unwrapped phase vector // // // TODO: Implement a multi-dimensional vector unwrapping // vect_size = size(wrapped); if vect_size(2) == 1 then //Transpose row vector into column vector, if necessary wrapped = wrapped'; else wrapped = wrapped; end lngth = size(wrapped,2); //Set the phase at first entry unwrp(1) = wrapped(1); //Main loop for i = 2:lngth, k = 0; //Reset multiplier ph_delta = wrapped(i) - unwrp(i-1); if abs(ph_delta) > %pi then //If phase jump is greater than Pi if ph_delta < 0 then //If negative phase jump k = round(abs(ph_delta)/(2*%pi)); else //If positive phase jump k = -round(abs(ph_delta)/(2*%pi)); end end unwrp(i) = wrapped(i) + 2*k*%pi; //Adjust phase by factor of k*2pi end unwrp=unwrp'; endfunction
9cb4064a3a32c8b0a21215e0526b814f3b8dc250
449d555969bfd7befe906877abab098c6e63a0e8
/491/CH2/EX2.6/2_6.sce
238b132ce232d48595c62ae43f6794b69c6c5329
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
553
sce
2_6.sce
//Numerical calculation of allowable load d1 = 4; //mm d2 = 3; //mm A1 = (%pi*(d1^2))/4 ; //area A2 = (%pi*(d2^2))/4 ; //area L1 = 0.4; //meter L2 = 0.3; //meter E1 = 72e9 ; //Gpa E2 = 45e9 ; //Gpa f1 = L1/(E1*A1) * 1e6 ; // To cpmpensate for the mm^2 f2 = L2/(E2*A2) * 1e6 ; s1 = 200e6; //stress s2 = 175e6; //stress P1 = ( (s1*A1*(4*f1 + f2))/(3*f2) ) * 1e-6 // To cpmpensate for the mm^2 P2 = ( (s2*A2*(4*f1 + f2))/(6*f1) ) * 1e-6 disp( "Newton",P2,"Minimum allowable stress aomong the two P1 and P2 is smaller one, therefore MAS = ")
765b509741b1c871074f34b0c112e61292d0d3a2
449d555969bfd7befe906877abab098c6e63a0e8
/2582/CH3/EX3.21/Ex3_21.sce
76f51ad08da20c6f59a37a623288b7e6b624a4b2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
564
sce
Ex3_21.sce
//Ex 3.21 clc;clear;close; format('v',6); omega1=0.1;//rad/s omega2=1;//rad/s omega3=10;//rad/s T1=1/sqrt(1+omega1^6);//Transfer function T2=1/sqrt(1+omega2^6);//Transfer function T3=1/sqrt(1+omega3^6);//Transfer function fi1=-atand((2*omega1-omega1^3)/real(1-2*omega1^2));//degree fi2=-atand((2*omega2-omega2^3)/real(1-2*omega2^2));//degree fi3=-atand((2*omega3-omega3^3)/real(1-2*omega3^2));//degree disp(fi1,T1,"Value of T & fi for 0.1 rad/s: "); disp(fi2-180,T2,"Value of T & fi for 1 rad/s: "); disp(fi3,T3,"Value of T & fi for 10 rad/s: ");
23fe045aaac4ea926af4d03c1cfc4fcc769f3551
4bbc2bd7e905b75d38d36d8eefdf3e34ba805727
/ee_scicoslab/scicos_flex/dspic/NativeInteger/NAT_PRODUCT.sci
9ceac1d8754bcf75028c52a868b5d5ed2766faf9
[]
no_license
mannychang/erika2_Scicos-FLEX
397be88001bdef59c0515652a365dbd645d60240
12bb5aa162fa6b6fd6601e0dacc972d7b5f508ba
refs/heads/master
2021-02-08T17:01:20.857172
2012-07-10T12:18:28
2012-07-10T12:18:28
244,174,890
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,607
sci
NAT_PRODUCT.sci
function [x,y,typ]=NAT_PRODUCT(job,arg1,arg2) // Copyright INRIA //** 16 JAN 2008 : Native integer Summation block . //** This block uses native integer operations //** x=[]; y=[]; typ=[]; select job case 'plot' then sgn=arg1.model.ipar standard_draw(arg1) case 'getinputs' then [x,y,typ]=standard_inputs(arg1) case 'getoutputs' then [x,y,typ]=standard_outputs(arg1) case 'getorigin' then [x,y]=standard_origin(arg1) case 'set' then x=arg1; graphics=arg1.graphics model=arg1.model exprs=graphics.exprs while %t do [ok, sgn, exprs] = getvalue('Native Integer (int32) Multiplication / Division Block ',.. 'Number of inputs or sign vector (multiplication: + 1, division: -1)', .. list('vec',-1), exprs); if ~ok then break, end //** EXIT if the user click on "cancel" sgn = sgn(:); //** if size(sgn,1)==1 then if sgn<1 then message('Number of inputs must be > 0') ok = %f elseif sgn==1 then in = -1 sgn = [] nout = 1 else in = -ones(sgn,1) sgn = ones(sgn,1) nout=-1 end else if ~and(abs(sgn)==1) then message('Signs can only be +1 or -1') ok=%f else in=-ones(size(sgn,1),1) nout=-1 end end if ok then [model,graphics,ok] = check_io(model,graphics,in,nout,[],[]); end if ok then model.ipar = sgn ; graphics.exprs = exprs ; x.graphics = graphics ; x.model = model ; break ; end end //** end of the while loop case 'define' then sgn=[1;1] ; //** plain multiplication model = scicos_model() ; model.sim = list('nat_product_i32n',4) ; //** just for testing model.in = [-1;-1] ; model.out = -1 ; model.ipar = sgn ; model.blocktype = 'c' ; model.dep_ut = [%t %f] ; exprs=sci2exp(sgn) gr_i=['[x,y,typ]=standard_inputs(o) '; 'dd=sz(1)/8,de=0,' 'if ~arg1.graphics.flip then dd=6*sz(1)/8,de=-sz(1)/8,end' 'for k=1:size(x,''*'')'; 'if size(sgn,1)>1 then' ' if sgn(k)>0 then'; ' xstring(orig(1)+dd,y(k)-4,''*'')'; ' else'; ' xstring(orig(1)+dd,y(k)-4,''/'')'; ' end'; 'end'; 'end'; 'xx=sz(1)*[.8 .8 .4 .4]+orig(1)+de'; 'yy=sz(2)*[.2 .8 .8 .2]+orig(2)'; 'xpoly(xx,yy,''lines'')'] x = standard_define([2 3],model, exprs,gr_i) ; x.graphics.id = "Native Integer" ; end endfunction
98634b7823f6de2e9c847adeca40dd3220db82ca
449d555969bfd7befe906877abab098c6e63a0e8
/374/CH3/EX3.7/37.sci
11d8f12e1a1ad853e26d09ec93c5a57b6ab66ef5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
516
sci
37.sci
//chapter 3 example 7// clc clear //operating wavelength=l,total material dispersion=dtm,total waveguide dispersion=dtw,received pulse duration=Tr,transmitted pulse duration=T,approximate bit rate=Bmax,total dispersion=dtt,total intermodal dispersion=dtimd// dtm=2.81;//in nanoseconds// dtw=0.495;//in nanoseconds// T=0.5;//in nanoseconds// dtimd=0; dtt=sqrt((dtimd^2)+(dtm^2)+(dtw^2));//in nanoseconds// Tr=T+dtt;//in nanoseconds// Bmax=(1/(5*Tr))*1000; printf("\n approximate bit rate=%fMHz \n",Bmax);
e380ec23eb5008ee5418600c30c3aa1051ccb1e8
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.1/Unix/scilab-2.1/demos/bike/macros/macros.sci
e5d634868401a688e44bf9b74273795dc233ecd2
[ "MIT", "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
771
sci
macros.sci
//[f,g,ind]=norm_cstrs(x,ind) q=x(indq);qd=x(indqd); ctr=constr(q,qd,param); g=ctr'*gjx(q,qd,param)*diag(flags); f=0.5*ctr'*ctr; //end //[xdot]=simul(t,x) q=x(indq); qd=x(indqd); u=control(t,x); qdd_lam=iihs(II,h,q,qd,u,param,alfa,beta,gamma); xdot=[qd;qdd_lam(1:n)]; //end //[u]=control(t,x) // Controls //v=0; //if t>.1 then v=1; end; //if t>.3 then v=0; end; //if t>.5 then v=0; end; //if t>.7 then u=0; end; //u=[v;0*v]; u=[0;0]; //end //[delta]=steerangle(x) delta=asin(sin(x(5,:)).*sin(x(18,:)-x(4,:))./sin(x(14,:))); //end //[qdd,lambda]=qddlam(instants,x) qdd=[];lambda=[]; k=0; for t=instants,k=k+1; u=control(t,x(:,k)); qdd_lam=iihs(II,h,x(indq,k),x(indqd,k),u,param,alfa,beta,gamma); qdd=[qdd,qdd_lam(1:n)];lambda=[lambda,qdd_lam(n+1:nnn)]; end; //end
38ae0aa218cd92790ab089d50dfdcfa219e2ebc3
e0124ace5e8cdd9581e74c4e29f58b56f7f97611
/3913/CH3/EX3.6/Ex3_6.sce
a5306ec446a69d34498d416648fb07cc0a9f17ee
[]
no_license
psinalkar1988/Scilab-TBC-Uploads-1
159b750ddf97aad1119598b124c8ea6508966e40
ae4c2ff8cbc3acc5033a9904425bc362472e09a3
refs/heads/master
2021-09-25T22:44:08.781062
2018-10-26T06:57:45
2018-10-26T06:57:45
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
414
sce
Ex3_6.sce
//Chapter 3 : Systems of Linear Equations //Example 3.6 //Scilab 6.0.1 //Windows 10 clear; clc; lambda=3 //assume lambda to be 3 P=[1 lambda 0;0 1 0;0 0 1]; A=[1 3;5 7;9 11]; //let A be any 4*2 matrix disp(P,'P:') disp(A,'A:') disp(lambda,'lambda:') PA=P*A; disp(PA,'PA') mprintf('the effect of multiplying A on the left by P is to add \n lambda times the second row of A to the first row')
db23354002d4eb4f359321c9065795fa5235fd04
449d555969bfd7befe906877abab098c6e63a0e8
/1445/CH1/EX1.27/Ex1_27.sce
847f14639d54e99faa887a6ff77903a148970212
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
679
sce
Ex1_27.sce
//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS //Example 27 clc; disp("CHAPTER 1"); disp("EXAMPLE 27"); //VARIABLE INITIALIZATION I1=5; //current source in Amperes vb=100; //voltage source in Volts r1=20; //in Ohms r2=10; //in Ohms r3=20; //in Ohms //SOLUTION va=I1*r1; //by applying node analysis at point 'a' vth=va-vb; //Thevenin voltage vth=vab rth=r1+((r3*0)/(r3+0)); //Thevenin resistance I=vth/(rth+r2); disp(sprintf("By Thevenin Theorem, the value of I is %d A",I)); //END
e132e737e1c87100ea748512a36fa8c9fffefc00
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH4/EX4.2/Ex4_2.sce
eb62c86fb581d7969a66069b39a6ca253df623f1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
227
sce
Ex4_2.sce
clear //Given m=9*10**9 c=50*10**-12 V=10**4 //Calculation r=(m*c)*10**2 q=(c*V) //Result printf("\n (i) Radius of a isolated sphere is %0.3f cm",r) printf("\n (ii) Charge of a isolated sphere is %0.3f micro C", q*10**6)
27257534f8c29ae942a2b1fa7602a34250e7d1f6
efc2fec9dd841d0ca834702c904e00c52762a9f9
/IDCT/IDCT1.sce
175acb73dd39f7e7daa68334a960b2176e459c6b
[]
no_license
surajch77/Scilab-Computer-Vision-Toolbox-TestCases
64c8e0382e8b9d416c4c27c1ed4272f49bf45b51
969f9bcddefea05b42c623aeebe2e0cdcffd6eeb
refs/heads/master
2021-01-20T20:24:14.345296
2016-06-29T15:16:52
2016-06-29T15:16:52
61,932,313
0
0
null
null
null
null
UTF-8
Scilab
false
false
209
sce
IDCT1.sce
// read the image cameraman.tif I = imread("cameraman.tif"); // convert the image to double I = double(I); // find the IDCT of the image J = IDCT(I); // output: // new_image with inverse cosine transform
b016c193352e56769418c38bbfe2d90677879322
449d555969bfd7befe906877abab098c6e63a0e8
/2258/CH7/EX7.26/7_26.sce
286d0102573fe661c62d9492d887d0773c9ef5b5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
270
sce
7_26.sce
clc(); clear; // To calculate the conductivity of material n=5*10^17; //concentration in m^3 vd=350; //drift velocity in m/s E=1000; //electric field in V/m e=1.6*10^-19; mew=vd/E; sigma=n*e*mew; printf("the conductivity of material is %f ohm m",sigma);
79d99c4dcb0751b035e3baba00e8547d0bb458c8
449d555969bfd7befe906877abab098c6e63a0e8
/162/CH6/EX6.14.c/example614c.sce
10ebb757f77c904c9495860f6ce52a2ec3db5a0c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
152
sce
example614c.sce
//Example 6.14c clc; syms z n; x1=(1/4)^n; x2=(1/5)^n; X1=symsum(x1*(z^-n),n,0,%inf); X2=symsum(x2*(z^-n),n,-%inf,-1); X=X1+X2; disp(X,'X(z)=');
c518b8f34e6280ff10ddf54856dc81227398b2c9
449d555969bfd7befe906877abab098c6e63a0e8
/1358/CH2/EX2.8/Example28.sce
5e0e23e5a5ef4678d3de3a2d4c86ede87efcab91
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
696
sce
Example28.sce
// Display mode mode(0); // Display warning for floating point exception ieee(1); clear; clc; disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 2, Example 8") //D2 is siameter in meter, N is rpm, Cr2 in m/s and Cw2=U2 in m/s , V velocity of flow in m/s D2 = 0.6; N = 550; Cr2 = 3.5; U2 = %pi*D2*N/60 Cw2 = U2 g = 9.81; V=2.5; disp("Head in meters from where water is being lifted is :") H = Cw2 * U2/ g - (V^2)/(2*g) //b2 is width //Qis discharge Q=piD2b2Cr2 in m3/s b2 = 0.082; disp("Discharge Q is in m3/s:") Q = %pi * D2 * b2 * Cr2 disp("Power P in Kilowatts is given as :") rho = 1000; //density of water 1000kg/m3 P = rho*g*Q*H/1000
ced1f181b54389485bf3903b90226148f9e1a3bb
449d555969bfd7befe906877abab098c6e63a0e8
/2102/CH4/EX4.15/exa_4_15.sce
7627cbdafbbc8921eb9790637692a8617da56408
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
376
sce
exa_4_15.sce
// Exa 4.15 clc; clear; close; // Given data toh_r= 35;// in ns toh_nr= 110;// in ns toh= toh_r*toh_nr/(toh_r+toh_nr);// in ns nita_int= toh/toh_r; disp(nita_int,"The internal quantum efficiency is : ") // Note : There is a calculation error (or miss printed ) in evaluating the value of nita_int (internal quantum efficiency ) so the answer in the book is wrong
a8a7db8d93c3ca9e4f174cca60414c9477a43bfd
d963a50c09b7380dd7b1b97cd9997e9bd17ea8f3
/r38/packages/odesolve/misc.tst
2b38ff25162690fb6dbe24bd642860845d9b89d9
[ "BSD-3-Clause" ]
permissive
reduce-algebra/reduce-historical
8220e211b116e0e01ff1a38f51917cac9db6069f
e014152729c4d62bb1ce4f5c311a027042a5495a
refs/heads/master
2023-04-10T22:54:00.796596
2021-04-16T08:52:19
2021-04-16T08:52:19
343,245,204
7
1
NOASSERTION
2021-04-16T08:53:31
2021-03-01T00:15:22
TeX
UTF-8
Scilab
false
false
3,325
tst
misc.tst
% Miscellaneous ODESolve 1+ tests % Check for a problem in 1.03, spotted by David Hartley % <DHartley@physics.adelaide.edu.au>, caused by the reval in % `get_k_list' with caching enabled. The following should all give % the same result: odesolve(df(u,x,x)=df(u,x)); odesolve(df(u,x,2)=df(u,x)); odesolve(df(u,x,x)=df(u,x), u, x); % Linear first-order ODE: odesolve(df(y,t) = -w*y*tan(w*t - d)); % The solution, by inspection, is y = A cos(w t - d) % Variation of parameters: depend y, x; ode := df(y,x,2) + y - csc(x)$ odesolve(ode, y, x); sub(ws, ode); trigsimp ws; ode := 2*df(y,x,2) + y - csc(x)$ odesolve(ode, y, x); sub(ws, ode); trigsimp ws; % Bernoulli: ode := df(y,x)*y*x^2 - y^2*x - x^3 + 1; odesolve(ode, y, x, explicit); sub(ws, ode); % Implicit dependence: % (NB: Wierd constants need to be mopped up by the arbconst % simplification code!) % These should all behave equivalently: operator f, g; depend {y, ff}, x, {gg}, y; odesolve(df(y,x) = f(x), y, x); odesolve(df(y,x) = ff, y, x); odesolve(df(y,x) = g(y), y, x); odesolve(df(y,x) = gg, y, x); odesolve(df(y,x) = f(x)*g(y), y, x); odesolve(df(y,x) = ff*gg, y, x); odesolve(df(y,x) = 1/f(x)*g(y), y, x); odesolve(df(y,x) = 1/ff*gg, y, x); odesolve(df(y,x) = f(x)/g(y), y, x); odesolve(df(y,x) = ff/gg, y, x); % These should all fail (they are too implicit): depend {ff}, y, {gg}, x; odesolve(df(y,x) = ff, y, x); odesolve(df(y,x) = gg, y, x); odesolve(df(y,x) = ff*gg, y, x); odesolve(df(y,x) = 1/ff*gg, y, x); odesolve(df(y,x) = ff/gg, y, x); % NONlinear ODEs: odesolve(df(y,x) + y**(5/3)*arbconst(-1)=0); % Do not re-evaluate the solution without turning the algint switch on! odesolve(df(y,x,2) + c/(y^2 + k^2)^(3/2) = 0, y, x, algint); % Good test of ODESolve!-Alg!-Solve. Takes forever with fullroots on, % but with fullroots off ODESolve solves it. (Slightly tidier with % algint, but not necessary. However, the explicit option misses the % non-trivial solution that can fairly easily be found by hand!) odesolve(df(y,x,3) = 6*df(y,x)*df(y,x,2)/y - 6*df(y,x)^3/(y^2), y, x, algint); % Hangs with algint option! % off odesolve_plus_or_minus; odesolve(a*tan(asin((df(y,x) - y)/(2*y))/2)^2 + a - 2*sqrt(3)*tan(asin((df(y,x) - y)/(2*y))/2)*y + 4*sqrt(3)*y + tan(asin((df(y,x) - y)/(2*y))/2)^2*y - 4*tan(asin((df(y,x) - y)/(2*y))/2)*y + 7*y, y, x); % on odesolve_plus_or_minus; % From: K Sudhakar <ks@maths.qmw.ac.uk> odesolve(2*df(f,x,3)*df(f,x)*f^2*x^2 - 3*df(f,x,2)^2*x^2*f^2 + df(f,x)^4*x^2 - df(f,x)^2*f^2, f, x); % Related intermediate problem: odesolve(2*df(y,x)*x*y + x^2 - 2*x*y - y^2, y, x, explicit); % Anharmonic oscillator problem (which apparently Maple V R5.1 solves % in terms of a root of an expression involving unevaluated integrals % but Maple 6 cannot!). % General solution: odesolve(M*L*df(phi(tt),tt,2) = -M*g*sin(phi(tt))); % Use of `t' as independent variable: odesolve(M*L*df(phi(t),t,2) = -M*g*sin(phi(t))); % Conditional (eigenvalue) solution: %% odesolve(M*L*df(phi(t),t,2) = -M*g*sin(phi(t)), %% {t=0, phi(t)=0, df(phi(t),t)=Pi}); %% %% Conditional solutions need more work! This fails with %% ***** 0 invalid as kernel % Try setting %% L:=1; g:=10; ws; end;
2208d5cdc0c2658484d013e4d50d3681d61a59fd
449d555969bfd7befe906877abab098c6e63a0e8
/45/CH2/EX2.15/example_2_15.sce
2fd06a11cd16cca81b4b9335d6b8f556ccf7093e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
example_2_15.sce
//example 2.15 clc clear s=0; // s from the register s(1)=input('Enter the value at S0 :') s(2)=input('Enter the value at S1 :') s(3)=input('Enter the value at S2 :') s(4)=input('Enter the value at S3 :') s(5)=input('Enter the value at S4 :') s(6)=input('Enter the value at S5 :') s(7)=input('Enter the value at S6 :') s(8)=input('Enter the value at S7 :') count =0; for i =1 :8 //loop to detect a '1' if s(i)==1 then disp('ZERO is LOW'); break; end count =count+1; end if count==8 then disp('ZERO is HIGH'); end;
ef63733b336e47dc985d1c58ed5f17a96f207b31
449d555969bfd7befe906877abab098c6e63a0e8
/2084/CH3/EX3.1w/3_1w.sce
053ec04ad99d1fc83c72f2d4cf7c9984a2b3322b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
510
sce
3_1w.sce
//developed in windows XP operating system 32bit //platform Scilab 5.4.1 clc;clear; //example 3.1w //calculation of average speed of the walk //given data v1=6//speed(in km/h) of the man v2=8//speed(in km/h) of the man d1=1//distance(in km) travelled at v1 speed d2=1//distance(in km) travelled at v2 speed d=2//given distance(in km) //calculation t=(v1/d1)+(v2/d2);//total time(in s) taken vavg=d/t;//formula for average velocity disp(vavg,'the average velocity(in km/h) of the man is');
9a9123ecd8911cfd11f8ee8b94a9686147aa0fe9
449d555969bfd7befe906877abab098c6e63a0e8
/2276/CH3/EX3.14/chapter3_ex14.sce
70e3d92582e600df6a0f0372fdc75b15382685da
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
774
sce
chapter3_ex14.sce
clc clear //input v=240;//voltage of a d.c. shunt motor in volts ra=0.4;//armature resistance of d.c. shunt motor in ohms rf=120;//armature resistance of d.c. shunt motor in ohms is=22;//supply current in amperes w=600;//angular velocity of motor in rev/min il=30;//load current in amperes //calculations //armature reaction is neglected W=(w*(2*%pi))/60;//angular velocity in rad/s fi=v/rf;//feild current in amperes ai=is-fi;//armature current in amperes e=v-(ai*ra);//e.m.f. in volts t1=(e*ai)/W;//torque when current is 20A in newton meter aI=il-fi;//changed armature current in amperes t2=t1*(aI/is);//torque when current is 30A in newton meter //output mprintf('with a supply current of 30A the motor produces a total torque of %3.1f Nm',t2)
8232adb2d27d96f87fdf5f0889788523984e181c
449d555969bfd7befe906877abab098c6e63a0e8
/3782/CH3/EX3.2/Ex3_2.sce
cd9c5a72dcfbc008b72339db3f7a59b8b51ceaa1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
553
sce
Ex3_2.sce
// // //(a) QB_AB=36+(30/60) WCB_AB=180+QB_AB mins=(WCB_AB-int(WCB_AB))*60 deg=int(WCB_AB) printf("\n %0.3f degrees %0.3f minutes W",deg,mins) //(b) QB_BC=43+(30/60) WCB_BC=180-QB_BC mins=(WCB_BC-int(WCB_BC))*60 deg=int(WCB_BC) printf("\n %0.3f degrees %0.3f minutes W",deg,mins) //(c) QB_CD=26+(45/60) WCB_CD=QB_CD mins=(WCB_CD-int(WCB_CD))*60 deg=int(WCB_CD) printf("\n %0.3f degrees %0.3f minutes W",deg,mins) //(d) QB_DE=40+(15/60) WCB_DE=360-QB_DE mins=(WCB_DE-int(WCB_DE))*60 deg=int(WCB_DE) printf("\n %0.3f degrees %0.3f minutes W",deg,mins)
62f951995c4e8f3c5d117f62aecd500324c8027b
67310b5d7500649b9d53cf62226ec2d23468413c
/tags/archive/TestCaseGenerator-Plugin-OpeningSequenceCoverage/trunk/tests/large-system-tests/inputs/jEdit/ground_truth/OpeningSequenceCoverage/length-1/max-150/t31.tst
9fe7a5543ee5d9e19df9fd05579eef12846410df
[]
no_license
csnowleopard/guitar
e09cb77b2fe8b7e38d471be99b79eb7a66a5eb02
1fa5243fcf4de80286d26057db142b5b2357f614
refs/heads/master
2021-01-19T07:53:57.863136
2013-06-06T15:26:25
2013-06-06T15:26:25
10,353,457
1
0
null
null
null
null
UTF-8
Scilab
false
false
661
tst
t31.tst
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <TestCase> <Step> <EventId>e23</EventId> <ReachingStep>false</ReachingStep> </Step> <Step> <EventId>e39</EventId> <ReachingStep>false</ReachingStep> </Step> <Step> <EventId>e73</EventId> <ReachingStep>false</ReachingStep> </Step> <Step> <EventId>e41</EventId> <ReachingStep>false</ReachingStep> </Step> <Step> <EventId>e36</EventId> <ReachingStep>false</ReachingStep> </Step> <Step> <EventId>e65</EventId> <ReachingStep>false</ReachingStep> </Step> </TestCase>
b4e4f1dda178ef9f696b6a16a8fc8b494718b545
449d555969bfd7befe906877abab098c6e63a0e8
/1358/CH3/EX3.9/Example39.sce
910e3ec7c95bf95371d093f51b8b04aa7c9bc178
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
582
sce
Example39.sce
// Display mode mode(0); // Display warning for floating point exception ieee(1); clear; clc; disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 3, Example 9") disp("Refering Figure") disp("From inlet velocity triangle") Cr1 = 3.8;//m/s alpha1 = 16;//degree Cw1 = Cr1/tan(alpha1*%pi/180) disp("Absolute velocity of water at inlet, C1, is") C1 = Cr1/sin(alpha1*%pi/180) D1 = 1;//m N = 240;//rpm U1 = %pi*D1*N/60 x = Cr1/(Cw1-U1) beta1 = atan(x) * 180/%pi disp("Relative velocity of water at entrance") V1 = Cr1/sin(beta1*%pi/180)
36d2683e9db4da029acbc93bdd8263aa240afb88
449d555969bfd7befe906877abab098c6e63a0e8
/3647/CH9/EX9.1/ex9_1.sce
7b196d7205bf64dae12e5e605a789482208c7070
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
302
sce
ex9_1.sce
//Solutions to Problems In applied mechanics //A N Gobby clear all; clc //initialisation of variables q=8000//lbf/in^2 r=9.25//in G=12*10^6//lbf/in^2 t=1*%pi/180//rad h=180//lbf ft //CALCULATIONS S=((G*%pi*r)/(q*h*2))//in //RESULTS printf('the shaft size and maximum shear stress=% f in',S)
3fe8e4d6b4f5773150a684233f202db6eafcb4b0
449d555969bfd7befe906877abab098c6e63a0e8
/3816/CH8/EX8.7/8_7.sce
e3d5f74a7172437d22a5858ea6ab2a38000171e6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
691
sce
8_7.sce
clc; clear; W=375; V=3; f=50; P=10; r2=0.39;//Rotor resistance X1=5.75;//Leakage reactance Rsr=4.65//Stator to rotor turns ratio Sfl=0.022;//Full load slip Ws=62.8;//Synchronous speed Wfl=125;//Full load output Tfl=Wfl/(Ws*0.978);//Full load torque Tpo=(1730^2)/(2*X1*Ws);//Pull out torque disp('Constant torque') q=Tfl/Tpo; R2=0.5*(X1/q)*(1+(1-(q^2))); R=R2-r2; Sp2=0.5*(Wfl/0.978); pf=0.5; Rrt=R/(Rsr^2); disp(Rrt,'Actual resistance in rotor turn:') disp('Torque proportional to speed squared') Sp3=2.04*((0.5/0.978)^2); q1=Sp3/Tpo; R2o=0.5*(X1/q1)*(1+(1-(q1^2))); R1=R2o-r2; Sp4=16.6; pf1=0.5; Rrt2=R1/(Rsr^2); disp(Rrt2,'Actual resistance in rotor turn:')
408d3acb2d33c7f67bc9b689061d66531b5f3b09
e3557bbbbf218e0d2517df8bf409b646733b3bbc
/prossyn_evtrel_fMRI4_JALEFT.sce
b7aee314482c3f68dbbdff2f334af59d1ef8b254
[]
no_license
CLvanderBurght/prossyn
d8e9c433b19560a8ebe2900a48d9ec04aa71cfca
e05de7d0ebbf317da13789e33aee3aba6b34ad9c
refs/heads/master
2020-04-12T22:48:46.238793
2019-02-13T19:43:09
2019-02-13T19:43:09
162,799,521
1
0
null
null
null
null
UTF-8
Scilab
false
false
6,584
sce
prossyn_evtrel_fMRI4_JALEFT.sce
# ProsSyn # van der Burght # 27.04.2016 # IMPORTANT: # In this version of experiment: "yes" answer option = Left response button # to be counter balanced between-subjects with "right" version scenario # Header scenario = "audio"; #scenario_type = fMRI_emulation; # for emulation only scenario_type = fMRI; scan_period = 2000; pulses_per_scan = 1; screen_width = 1024; screen_height = 768; screen_bit_depth = 32; response_matching = simple_matching; # matches response to stimulus active_buttons = 2; button_codes = 1, 2; pulse_code = 33; # identifies pulses in the logfile response_logging = log_active; no_logfile = false; default_trial_duration = stimuli_length; default_trial_type = fixed; default_font = "Arial"; default_font_size = 55; default_text_color = 192, 192, 192; default_background_color = 50, 50, 50; # grey default_monitor_sounds = true; # ensures trial only ends when stimulus has finished playing. # Begin begin; picture {} default; # define the different trials used in the experiment trial { trial_type = fixed; trial_duration = 5000; picture { text {caption = "Sie werden mehrere Sätze anhören.\n\n\nNach jedem Satz wird eine Frage\nüber den Inhalt des Satzes gestellt\n\n\nDie Frage kann mit 'ja' oder 'nein' beantwortet werden.\nDrücken Sie bitte die richtige Taste."; font_size = 20; font_color = 255,255,255;}; x = 0; y = 80; text {caption = "Das Experiment fängt bald an."; font_size = 20; font_color = 255,255,0;}; x = 0; y = -220; }picture_welcome1; code = "intro1"; }trial_intro1; trial { trial_type = fixed; trial_duration = 1000; picture { text {caption = "Sie werden mehrere Sätze anhören.\n\n\nNach jedem Satz wird eine Frage\nüber den Inhalt des Satzes gestellt\n\n\nDie Frage kann mit 'ja' oder 'nein' beantwortet werden.\nDrücken Sie bitte die richtige Taste."; font_size = 20; font_color = 255,255,255;}; x = 0; y = 80; text {caption = "Das Experiment fängt bald an."; font_size = 20; font_color = 255,255,0;}; x = 0; y = -220; }picture_welcome2; code = "intro2"; }trial_intro2; trial { trial_type = fixed; trial_duration = 195; stimulus_event { picture { text { caption = "+"; font_color = 255, 0, 0; font_size = 60;}alert_text; x = 0; y = 0; }alert_picture; code = "alert"; }alert_event; }alert_trial; trial { trial_type = fixed; trial_duration = 9000; stimulus_event { picture { text { caption = "+"; font_color = 255, 255, 255; font_size = 60;}null_text; x = 0; y = 0; }null_picture; code = "null"; }null_event; }null_trial; trial { #trial_type = fixed; trial_duration = stimuli_length; stimulus_event { picture { text { caption = "+"; font_color = 255, 255, 255; font_size = 60;}jitter_text; x = 0; y = 0; }jitter_picture; }jitter_event; }jitter_trial; trial { trial_duration = stimuli_length; stimulus_event { sound { wavefile { filename = ""; preload = false; #### }sound_file; }sound_sound; }sound_event; stimulus_event { picture { text { caption = "+"; font_color = 255, 0, 0; font_size = 60;}clear_text; x = 0; y = 0; }clear_picture; }clear_event; }sound_trial; trial { trial_duration = 1500; stimulus_event { picture { text { caption = " "; font_color = 255, 255, 255; font_size = 30;}question_text; x = 0; y = 0; text { caption = "ja nein"; font_color = 255, 255, 255; font_size = 30;}janein_text; x = 0; y = -200; }question_picture; }question_event; }question_trial; trial { trial_type = fixed; trial_duration = 1450; stimulus_event { picture { text { caption = "+"; font_color = 255, 255, 255; font_size = 60;}posttrial_text; x = 0; y = 0; }posttrial_picture; code = "post"; }posttrial_event; }posttrial_trial; trial { trial_type = fixed; trial_duration = 6000; start_delay = 3000; picture { text {caption = "Das war der letzte Satz.\n\n\.Vielen Dank für Ihre Teilnahme."; font_size = 30; font_color = 255,255,255;}; x = 0; y = 0; }picture_danke; code = "Danke"; }trial_danke; ### ### ### # PCL part of experiment begin_pcl; int button_count; int button_count_start; # STIMULUS array_definition # input = participant array input_file stimuli_file = new input_file; stimuli_file.open("fMRI_vp1_qnum_con_awk_jit_0_que_arr.txt"); array <string> arr_lista[300][20]; stimuli_file.set_delimiter(';'); loop int a = 1 until a > 300 begin loop int b = 1 until b > 20 begin stimuli_file.set_delimiter(';'); arr_lista[a][b] = stimuli_file.get_line(); stimuli_file.set_delimiter(';'); b = b + 1; end; a = a + 1; end; stimuli_file.close(); trial_intro1.present (); # waiting for pulse 5 (experiment begins after the first 5 volumes are collected) int trigger = 5; loop until (pulse_manager.main_pulse_count() >= trigger) begin trial_intro2.present (); end; loop int line = 1; until line > 300 begin # parameters to define: question code, question_caption, sound_filename, jitter loop int column = 1; until column > 20 begin sound_event.set_event_code(arr_lista[line][15]); question_event.set_event_code(arr_lista[line][17]); # writes the comprehension question of current trial question_text.set_caption(arr_lista[line][20]); question_text.redraw(); # sets the auditory stimulus of current trial sound_file.unload(); sound_file.set_filename(arr_lista[line][14]); sound_file.load(); # sets the jitter duration of the current trial int jitter = int(arr_lista[line][18]); string jitterstr = (arr_lista[line][18]); jitter_event.set_duration(jitter); jitter_event.set_event_code("jitter" + jitterstr); int null = int(arr_lista[line][19]); column = column + 1; end; # null trials in stimulus arrays are marked with 0000 or 9999 # any trial marked with 9999 will be preceded by a null trial int null = int(arr_lista[line][19]); if (null > 0) then null_trial.present (); jitter_trial.present (); alert_trial.present (); sound_trial.present (); question_trial.present (); posttrial_trial.present (); line = line + 1; else jitter_trial.present (); alert_trial.present (); sound_trial.present (); question_trial.present (); posttrial_trial.present (); line = line + 1; end end; trial_danke.present ();
5f891106cae985642fd6d7e7c37441f40aa6ce01
449d555969bfd7befe906877abab098c6e63a0e8
/1442/CH11/EX11.4/11_4.sce
8712d372881b3401656b1834a2351502d2ab49d7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
474
sce
11_4.sce
clc //initialisation of variables T= 300 //K P= 100 //kPa r= 4 T1= 1200 //K m= 5 //kg/s k= 1.4 R= 8.314 //jmol K M= 29 //gms //CALCULATIONS T2= T*r^((k-1)/k) T4= T1/r^((k-1)/k) n= 1-(T/T2) wnet= (k*R/((k-1)*M))*(T1-T4+T-T2) P= m*wnet e= sqrt((T2-T)/(T1-T4)) T5= T+((T2-T)/e) T6= T1+e*(T4-T1) //RESULTS printf (' efficiency= %.4f ',n) printf (' \n power= %.f kW',P) printf (' \n efficiency= %.4f ',e) printf (' \n temperature at the exit= %.1f K',T6)
cb5e312dc56f84b2cb5f61b54cc3304451f978f5
0ae5ae9c08787d2f7c6b2c038618e152e157f553
/Scripts/Test/MAIN_CALC.tst
cce950638c14523d0aaadd84f375308c49da0747
[]
no_license
piltatnik/CustomReports
ba8507d929adb23d8f3820d70f095f15802401fc
2019cdc49bdf56b7beb46df9db3d76df142a1827
refs/heads/master
2021-09-13T14:48:10.824111
2018-05-01T11:45:23
2018-05-01T11:45:23
107,878,933
0
0
null
null
null
null
WINDOWS-1251
Scilab
false
false
10,652
tst
MAIN_CALC.tst
PL/SQL Developer Test script 3.0 234 BEGIN FOR rec IN (WITH head AS (SELECT 'A' AS transport, 'SCHOOL' AS payment_type, 'BASE' AS category, 6 AS row_num FROM dual UNION ALL SELECT 'A' AS transport, 'SCHOOL' AS payment_type, 'HALF_COST' AS category, 7 AS row_num FROM dual UNION ALL SELECT 'A' AS transport, 'STUDENT' AS payment_type, 'BASE' AS category, 14 AS row_num FROM dual UNION ALL SELECT 'A' AS transport, 'STUDENT' AS payment_type, 'HALF_COST' AS category, 15 AS row_num FROM dual UNION ALL SELECT 'A' AS transport, 'CITY_MIFARE' AS payment_type, 'BASE' AS category, 27 AS row_num FROM dual UNION ALL SELECT 'A' AS transport, 'CITY_MIFARE' AS payment_type, 'HALF_MONTH' AS category, 28 AS row_num FROM dual UNION ALL SELECT 'A' AS transport, 'CITY_MIFARE' AS payment_type, 'ORGANISATION' AS category, 29 AS row_num FROM dual UNION ALL SELECT 'A' AS transport, 'CASH' AS payment_type, 'NONE' AS category, 35 AS row_num FROM dual UNION ALL SELECT 'A' AS transport, 'VISA' AS payment_type, 'NONE' AS category, 36 AS row_num FROM dual UNION ALL SELECT 'T' AS transport, 'SCHOOL' AS payment_type, 'BASE' AS category, 6 AS row_num FROM dual UNION ALL SELECT 'T' AS transport, 'SCHOOL' AS payment_type, 'HALF_COST' AS category, 7 AS row_num FROM dual UNION ALL SELECT 'T' AS transport, 'STUDENT' AS payment_type, 'BASE' AS category, 14 AS row_num FROM dual UNION ALL SELECT 'T' AS transport, 'STUDENT' AS payment_type, 'HALF_COST' AS category, 15 AS row_num FROM dual UNION ALL SELECT 'T' AS transport, 'CITY_MIFARE' AS payment_type, 'BASE' AS category, 27 AS row_num FROM dual UNION ALL SELECT 'T' AS transport, 'CITY_MIFARE' AS payment_type, 'HALF_MONTH' AS category, 28 AS row_num FROM dual UNION ALL SELECT 'T' AS transport, 'CITY_MIFARE' AS payment_type, 'ORGANISATION' AS category, 29 AS row_num FROM dual UNION ALL SELECT 'T' AS transport, 'CASH' AS payment_type, 'NONE' AS category, 35 AS row_num FROM dual UNION ALL SELECT 'T' AS transport, 'VISA' AS payment_type, 'NONE' AS category, 36 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'SCHOOL' AS payment_type, 'BASE' AS category, 9 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'SCHOOL' AS payment_type, 'HALF_COST' AS category, 10 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'SCHOOL' AS payment_type, 'FREE' AS category, 11 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'STUDENT' AS payment_type, 'BASE' AS category, 17 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'STUDENT' AS payment_type, 'HALF_COST' AS category, 18 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'STUDENT' AS payment_type, 'FREE' AS category, 19 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'PRIVILEGE' AS payment_type, 'CITY_PRIVILEGE' AS category, 21 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'PRIVILEGE' AS payment_type, 'FEDERAL_PRIVILEGE' AS category, 22 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'PRIVILEGE' AS payment_type, 'REGIONAL_PRIVILEGE' AS category, 23 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'CITY_MIFARE' AS payment_type, 'BASE' AS category, 31 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'CITY_MIFARE' AS payment_type, 'HALF_MONTH' AS category, 32 AS row_num FROM dual UNION ALL SELECT 'AT' AS transport, 'CITY_MIFARE' AS payment_type, 'ORGANISATION' AS category, 33 AS row_num FROM dual), car AS (SELECT 'AT' AS transport, 'A' AS carrier FROM dual UNION ALL SELECT 'AT' AS transport, 'T' AS carrier FROM dual), calc AS (SELECT /*tr.name_long AS name_transport, pt.name_long AS name_payment, cat.name_long AS name_category,*/ nvl(car.carrier, head.transport) AS carrier_short_name, cptt.pkg$trep_utility.getCardActiveCount(pBeginDate => :pActivationBeginDate, pEndDate => :pActivationEndDate, pTransportShortName => head.transport, pPaymentShortName => head.payment_type, pCategoryShortName => head.category) AS active_count, cptt.pkg$trep_utility.getPassCount(pBeginDate => :pPassBeginDate, pEndDate => :pPassEndDate, pTransportShortName => head.transport, pPaymentShortName => head.payment_type, pCategoryShortName => head.category, pTransportCarrierShortName => nvl(car.carrier, head.transport)) AS pass_count, head.* /*, tr.id AS id_transport, pt.id AS id_payment, cat.id AS id_category*/ FROM head, car /*, cptt.ref$trep_card_transport tr, cptt.ref$trep_payment_type pt, cptt.ref$trep_card_category cat*/ WHERE head.transport = car.transport(+) /* AND head.transport = tr.short_name(+) AND head.payment_type = pt.short_name(+) AND head.category = cat.short_name(+)*/ ORDER BY head.row_num) SELECT * FROM calc) LOOP dbms_output.put_line(/*lpad('Пригоден в транспорте: ' || rec.name_transport, 45) || lpad('Проехал в : ' || rec.carrier_short_name, 15) || lpad(' ' || rec.name_payment, 30) || lpad(' ' || rec.name_category, 30) || */lpad(' ' || rec.active_count, 10) || lpad(' ' || rec.pass_count, 10)); END LOOP; --to_date('01.12.2016 03:00:00', 'dd.mm.yyyy HH24:MI:SS') END; 4 pActivationBeginDate 1 13.11.2016 12 pActivationEndDate 1 12.12.2016 12 pPassBeginDate 1 01.12.2016 3:00:00 12 pPassEndDate 1 01.01.2017 3:00:00 12 0
6109031c4f620b5f8db52d893f1d4fbfbe48d696
449d555969bfd7befe906877abab098c6e63a0e8
/2510/CH6/EX6.3/Ex6_3.sce
04ee86ff6ab87595342ee23b564750d225cb3982
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
480
sce
Ex6_3.sce
//Variable declaration: ID = 0.957 //Inside diameter of pipe (in) OD = 1.315 //Outside diameter of pipe (in) WT = 0.179 //Wall thickness of pipe (in) PW = 2.17 //Weight of pipe (lb/ft) //Calculation: //From Table 6.2, it indicates that the steel pipe is 1 inch schedule 80. NSP = 1 SN = 80 //Result: printf("The nominal size of the pipe is : %f in.",NSP) printf("The schedule number of the pipe is: %f .",SN)
730caea0aa0d84b83ea561e8b51b123349aa84d0
aeaf7f37fcb0a9af1a236399e0771bde28863d82
/Place_Order_001.tst
c35eddb5669473ce8cce35c44da11f66335d401b
[]
no_license
Yukio-Kita/manager
c7b772034d87195a838a69bc62fae6ffff352a74
d570594662aac497e1579e68635aab72d2ee0760
refs/heads/main
2023-07-31T22:35:35.444174
2021-09-14T04:35:21
2021-09-14T04:35:21
406,196,563
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,043
tst
Place_Order_001.tst
-- VectorCAST 21.sp3 (08/04/21) -- Test Case Script -- -- Environment : MANAGER4 -- Unit(s) Under Test: manager -- -- Script Features TEST.SCRIPT_FEATURE:C_DIRECT_ARRAY_INDEXING TEST.SCRIPT_FEATURE:CPP_CLASS_OBJECT_REVISION TEST.SCRIPT_FEATURE:MULTIPLE_UUT_SUPPORT TEST.SCRIPT_FEATURE:REMOVED_CL_PREFIX TEST.SCRIPT_FEATURE:MIXED_CASE_NAMES TEST.SCRIPT_FEATURE:STATIC_HEADER_FUNCS_IN_UUTS TEST.SCRIPT_FEATURE:VCAST_MAIN_NOT_RENAMED -- -- Unit: manager -- Subprogram: Place_Order -- Test Case: Place_Order.001 TEST.UNIT:manager TEST.SUBPROGRAM:Place_Order TEST.NEW TEST.NAME:Place_Order.001 TEST.VALUE:manager.Place_Order.Table:2 TEST.VALUE:manager.Place_Order.Seat:0 TEST.VALUE:manager.Place_Order.Order.Soup:ONION TEST.VALUE:manager.Place_Order.Order.Salad:CAESAR TEST.VALUE:manager.Place_Order.Order.Entree:STEAK TEST.VALUE:manager.Place_Order.Order.Beverage:MIXED_DRINK TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Order[0].Dessert:PIE TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:14.0 TEST.END
3d1ce4a59d985963a0aa0dfea1137dc07cf84736
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH29/EX29.05/29_05.sce
d6ac22778fd3bde8a947fbd58cd52006245f6b11
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
579
sce
29_05.sce
//Problem 29.05: Determine for the parallel network shown in Figure 29.9 the values of inductance L for which the network is resonant at a frequency of 1 kHz. //initializing the variables: RL = 3; // in ohms fr = 1000; // in Hz Xc = 10; // IN ohms Rc = 4; // in ohms //calculation: XL1 = (((Rc^2 + Xc^2)/Xc) + ((((Rc^2 + Xc^2)/Xc)^2) - 4*(RL^2))^0.5)/2 XL2 = (((Rc^2 + Xc^2)/Xc) - ((((Rc^2 + Xc^2)/Xc)^2) - 4*(RL^2))^0.5)/2 wr = 2*%pi*fr //inductance L1 = XL1/wr L2 = XL2/wr printf("\n\n Result \n\n") printf("\n inductance is either %.2E H or %.2E H",L1, L2)
e2486c2658ab5a9cf6340d922e77b8e30e38492e
68e53df229b123d7681a4f7fa4db43b4982d5362
/impulse.sci
6372b71fba8edc3fac1928e060264f6f323fe905
[]
no_license
yeoleparesh/Control-system
06c30e594d51fec7a8ffabc452a7866b38604a23
dee7fbfd3c2c46cc1d4d0a3cb8af45d918da972b
refs/heads/master
2021-01-17T12:38:05.661769
2019-01-03T12:03:53
2019-01-03T12:03:53
59,283,431
0
3
null
null
null
null
UTF-8
Scilab
false
false
16,552
sci
impulse.sci
function[varargout]=impulse(varargin) // /// //calling Sequence:- //impulse(sys) //impulse(poly1,poly2) //impulse(sys,Tfinal) //impulse(sys,Tvector) //impulse(SISOarray,%T) //impulse(sys1,sys2,...,T) //impulse(sys1,'r',sys2,'y--',sys3,'gx',..) //[Y,t]=impulse(sys) //For state-space models, //[Y,T,X] = impulse(SYS, ...) //Response uncertainty computation: //[Y,T,X,YSD] = impulse(SYS) // //Parameters //sys:- sys can be SISO array,MIMO system or SISO either discrete or continuous //poly1:-numerator of the system //poly2:-denominator of the system //Tfinal:-time upto which the response is to be calculated/plotted. //Tvector:-time vector through which the response is to be plotted.For Discrete time, the sampling time must match the spacing of the given time vector. //Y:-vector of the impulse response. //T:-time vector through which response is calculate. //X:-state-Trajectory response vector. //YSD:- standard deviation YSD of the response Y of an identified system SYS. YSD is empty if SYS does not contain parameter covariance information. // //Description //Gives the impulse response of continuos and discrete SISO as well as MIMO systems //Note: In discrete time, IMPULSE computes the response to a unit-area // pulse of length Ts and height 1/Ts where Ts is the sample time. This // pulse approaches the continuous-time Dirac impulse delta(t) as Ts goes // to zero. //Examples //s=poly(0,'s'); //sys=syslin('c',(s+3)/(s^3+4*s+2)); //impulse(sys) plots the impulse response of sys //[y t]=impulse(sys) gives y as a impulse response matrix and t as time vector through which the response is calculated //sys1=ssrand(2,3,4); //impulse(sys1) //[y t x ysd]=impulse(sys1); //impulse(sys,sys1) //impulse(sys,'--r',sys1,'gx') //aa=pid(rand(2,3,4),2,3,4); //impulse(aa,%T) //Authors // Paresh Yeole // emailid:-yeoleparesh@students.vnit.ac.in [lhs,rhs]=argn(0); nd=length(varargout); ni=length(varargin); flag=0; if(nd>1) if(ni>=2) then if(ni==2) then if or(typeof(varargin(2)) == ['rational', 'state-space','string']) then error(msprintf("The impulse command operates on a single model when used with output arguments.")); end else error(msprintf("The impulse command operates on a single model when used with output arguments.")); end end end if rhs == 0 | (rhs == 1 & typeof(varargin($)) <> ['state-space', 'rational'] | (rhs == 1 & size(varargin($)) == [0 0])) then error(msprintf(gettext("%s: Wrong type for input argument \n#%d: State-space or transfer function of linear system expected or two polynomials expected.\n"),"impulse",1)) end if typeof(varargin(1)) <> ['state-space','rational','polynomial'] then error(msprintf(gettext("%s: Wrong type for first input argument\n#%d: State-space or transfer function expected.\n"),"impulse",1)) end t=0:0.1:100; if rhs > 1 then if typeof(varargin($)) == 'constant' then if size(varargin($)) == [1 1] then if varargin($) <= 0 then error(msprintf(gettext("%s: The final time value must be a positive real number.\n"),"impulse")) end tFinal = varargin($) t =0:0.01:tFinal; flag=1; elseif isequal(size(varargin($)),[1 1]) == %f then // finding that the time vector has positive time value if(and(diff(varargin($)<0))) then //if time vector is not monotonically increasing error(msprintf("impulse: the time vector must be real, finite, and must contain monotonically increasing and evenly spaced time samples.")); end flag=1; tempTimeIndex = find(varargin($) >= 0) //finding the positive no.'s index in the vector if isequal(size(varargin($)),size(tempTimeIndex)) == %t then temp=varargin($); t = varargin($) else tempTime=varargin($); tempTime = tempTime(tempTimeIndex(1):tempTimeIndex($)) t = tempTime end end end end /////////////////////////////////////////////////// //getting the sublot credentials for i=1:rhs ttf=varargin(i); if typeof(ttf)=='state-space' then ttf=ss2tf(ttf); end if typeof(ttf)=='rational' then xx1(i)=size(ttf,'r'); yy1(i)=size(ttf,'c'); end end /////////////////////////////////printf("\n%d,%d",max(xx1),max(yy1)); CIindex=1; if lhs==1 then for i=1:rhs CIindex=CIindex+1; I=1; if(or(typeof(varargin(i))==['rational','state-space']) & ((varargin(i).dt)<>'c')) then if((typeof(varargin($))=='constant') & (size(varargin($)) <> [1 1]) & ((varargin(i).dt)<>(t(2)-t(1)))) then error(msprintf("sampling time of the given system must match the step of the vector")); elseif((typeof(varargin($))=='constant') & (size(varargin($)) == [1 1])) then temptime=t; if(varargin(i).dt=='d') then dt=1 else dt=varargin(i).dt end t=0:varargin(i).dt:varargin($); else //temptime=t; if(varargin(i).dt=='d') then dt=1; else dt=varargin(i).dt; end t=0:varargin(i).dt:t($); end end if typeof(varargin(i))=='state-space' then varargin(i)=ss2tf(varargin(i)); end /////////////////////////SISO system////////////////////////////// if((typeof(varargin(i))=='rational') & (size((varargin(i)),'*')==1)) then //sysI=sysI+1; if flag<>1 then pp=pole(varargin(i)) pp=cell2mat(pp); ppr=real(pp) if(varargin(i).dt=='c') then y=csim('impuls',t,varargin(i)); else y=flts(eye(1,length(t)),varargin(i)); end if or(ppr > 0) then //ch=find(y>=10^12 | y<=-10^12); //disp(ch); dompol=max(ppr); tfinal=25/(dompol*log10(%e)); if((varargin(i).dt)<>'c') then // t=0:varargin(i).dt:t(ch(1)); t=0:varargin(i).dt:tfinal; else //t=0:0.1:t(ch(1)) t=0:0.1:tfinal; end elseif and(ppr<=0) then //y=csim('impuls',t,varargin(i)); for iii=length(t):-1:1 if(y(iii)<-0.002 | y(iii)>0.002) then break; end; end if((varargin(i).dt)<>'c') then t=0:varargin(i).dt:(iii-1)*0.1; else t=0:0.1:(iii-1)*0.1; end end end varargout(1)="IMPULSE_PLOT"; if i<>rhs & typeof(varargin(i+1))=='string' then if (varargin(i).dt=='c') then G=csim('impuls',t,varargin(i)); else G=flts(eye(1,length(t)),varargin(i)); end subplot(max(xx1),max(yy1),I); plot(t,G,varargin(i+1)); if (varargin(i).dt<>'c') then hh=gce(); hh.children.polyline_style=2; end else if (varargin(i).dt=='c') then G=csim('impuls',t,varargin(i)); else G=flts(eye(1,length(t)),varargin(i)); end subplot(max(xx1),max(yy1),I); plot(t,G); hh=gce(); hh.children.foreground=CIindex; if (varargin(i).dt<>'c') then hh.children.polyline_style=2; end end ////////////////SISO array/////////////////////////// elseif typeof(varargin(i))=='rational' & size(varargin(i),'*')<>1 & i<>rhs & rhs<>1 & typeof(varargin(i+1))=='boolean' then if(varargin(i+1)<>%T ) then error(msprintf("impulse:wrong input arguments")); end xx=size(varargin(i),'r'); yy=size(varargin(i),'c'); zz=size(varargin(i),3); tt=varargin(i); I=1; if flag<>1 then for ii=1:xx for jj=1:yy for kk=1:zz pp=pole(tt(ii,jj)) pp=cell2mat(pp); ppr=real(pp) if(varargin(i).dt=='c') then y=csim('impuls',t,tt(ii,jj,kk)); else y=flts(eye(1,length(t)),tt(ii,jj,kk)); end if or(ppr > 0) then dompol=max(ppr); tfinal=25/(dompol*log10(%e)); temp(ii,jj)=tfinal; // ch=find(y>10^8 | y<-10^8); // //temp=100; // temp=t(ch(1)); elseif and(ppr<=0) then for iii=length(t):-1:1 if(y(iii)<-0.002 | y(iii)>0.002) then break; end; end temp(ii,jj)=(iii-1)*0.1; end end end end if((varargin(i).dt)<>'c') then t=0:varargin(i).dt:max(temp); else t=0:0.1:max(temp); end //t=0:0.1:max(temp); end if i<rhs-1 & typeof(varargin(i+2))=='string' then for ii=1:xx for jj=1:yy for kk=1:zz if(varargin(i).dt=='c') then G=csim('impuls',t,tt(ii,jj,kk)); else G=flts(eye(1,length(t)),tt(ii,jj,kk)); end title(msprintf(gettext("input(1)-output(1)"))); plot(t,G,varargin(i+2)); hh=gce(); if(varargin(i).dt<>'c') then hh.children.polyline_style=2; end //I=I+1; end end end else for ii=1:xx for jj=1:yy for kk=1:zz if(varargin(i).dt=='c') then G=csim('impuls',t,tt(ii,jj,kk)); else G=flts(eye(1,length(t)),tt(ii,jj,kk)) end title(msprintf(gettext("input(1)-output(1)"))); // ylabel("output(%d)",jj); plot(t,G); hh=gce(); hh.children.foreground=CIindex; if(varargin(i).dt<>'c') then hh.children.polyline_style=2; end //I=I+1; end end end end varargout(1)="IMPULSE_PLOT"; /////////////////////////////MIMO-system//////////////////////// elseif ((typeof(varargin(i))=='rational') & (size(varargin(i),'*')<>1)) then xx=size(varargin(i),'r'); yy=size(varargin(i),'c'); tt=varargin(i); I=1; if flag<>1 then for ii=1:xx for jj=1:yy pp=pole(tt(ii,jj)) pp=cell2mat(pp); ppr=real(pp) if(varargin(i).dt=='c') then y=csim('impuls',t,tt(ii,jj)); else y=flts(eye(1,length(t)),tt(ii,jj)); end if or(ppr > 0) then //ch=find(y>=10^12 | y<=-10^12); //temp=t(ch(1)); //disp(temp); dompol=max(ppr); tfinal=25/(dompol*log10(%e)); temp(ii,jj)=tfinal; elseif and(ppr<=0) then for iii=length(t):-1:1 if(y(iii)<-0.002 | y(iii)>0.002) then break; end; // end temp(ii,jj)=(iii-1)*0.1; end end end if((varargin(i).dt)<>'c') then t=0:varargin(i).dt:max(temp); else t=0:0.1:max(temp); end end if i<>rhs & typeof(varargin(i+1))=='string' then for ii=1:xx for jj=1:yy if(varargin(i).dt=='c') then G=csim('impuls',t,tt(ii,jj)); else G=flts(eye(1,length(t)),tt(ii,jj)); end subplot(max(xx1),max(yy1),I) title(msprintf(gettext("input(%d)-output(%d)"),ii,jj)); plot(t,G,varargin(i+1)); if(varargin(i).dt<>'c') then hh=gce(); hh.children.polyline_style=2; end I=I+1; end end else for ii=1:xx for jj=1:yy if(varargin(i).dt=='c') then G=csim('impuls',t,tt(ii,jj)); else G=flts(eye(1,length(t)),tt(ii,jj)) end subplot(max(xx1),max(yy1),I) title(msprintf(gettext("input(%d)-output(%d)"),ii,jj)); plot(t,G); hh=gce(); hh.children.foreground=CIindex; if(varargin(i).dt<>'c') then hh.children.polyline_style=2; end I=I+1; end end end end varargout(1)="IMPULSE_PLOT"; end h=gcf(); h.figure_name= "IMPULSE-PLOT"; xtitle("Impulse-Response","Time(seconds)","Amplitude"); ///////////////////more than 1 o/p arguments///////////////////////////////////////////////////////// elseif lhs>1 then //varargout(1)=(csim('impuls',t,varargin(1)))'; xx=size(varargin(1),'r'); yy=size(varargin(1),'c'); op1=cell(xx,yy); op2=cell(xx,yy); tt=varargin(1); for ii=1:xx for jj=1:yy if(varargin(1).dt=='c') then [G x1]=csim('impuls',t,tt(ii,jj)); else if(typeof(varargin(1))=='state-space') then [G x1]=flts(eye(1,length(t)),tt(ii,jj)); else [G]=flts(eye(1,length(t)),tt(ii,jj)); end end op1(ii,jj).entries=G'; if(typeof(varargin(1))=='state-space') then op2(ii,jj).entries=x1'; end end end varargout(1)=cell2mat(op1); varargout(2)=t'; if(typeof(varargin(1))=='state-space') then varargout(3)=cell2mat(op2); varargout(4)=stdev(varargout(1)); else varargout(3)=[]; varargout(4)=[]; end end //////////////////////////if both initial arguments are polynomials//////////////// if(typeof(varargin(1))=='polynomial') then if(typeof(varargin(2))=='polynomial') then if flag<>1 then pp=pole(varargin(1)/varargin(2)) pp=cell2mat(pp); ppr=real(pp) if or(ppr >= 0) then dompol=max(ppr); tfinal=25/(dompol*log10(%e)); t=0:0.1:tfinal; elseif and(ppr<0) then y=csim('impuls',t,varargin(1)/varargin(2)); for iii=length(t):-1:1 if(y(iii)<-0.002 | y(iii)>0.002) then break; end; end t=0:0.1:(iii-1)*0.1; end end G=csim('impuls',t,varargin(1)/varargin(2)); varargout(1)=(G)'; if(typeof(varargin(3))=='string') then plot(t,G,varargin(3)); else plot(t,G); end else error('not enough arguments'); end end endfunction
90b4864cfc7240aaabec71634e1ea073dac34d88
449d555969bfd7befe906877abab098c6e63a0e8
/38/CH7/EX7.2/2.sce
dc533ef22c8a7b8a2c603be11624cd2f1aeb1a10
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
465
sce
2.sce
// Caption:Finding internal torque clear; close; clc; V_a=122.3; I_two= V_a/sqrt(5.07^2+0.699^2);//load component of stator current T=3*23.9^2*4.8/125.6;//internal torque P=3*23^2*4.8*.97;//internal power // at maximum torque point s_max=0.144/0.75; speed=(1-s_max)*1200;//speed in r/min T_max=(0.5*3*122.3^2)/(125.6*(0.273+0.750));//maximum internal torque T_start=3*150.5^2*0.144/125.6;//starting torque in N-mFinding stator current and efficiency
20326d73ba403873775587427da0f16d4501501a
449d555969bfd7befe906877abab098c6e63a0e8
/1938/CH1/EX1.4/1_4.sce
7503e16c1887ed3be0dd1bef448b9d63501eb7bf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,417
sce
1_4.sce
clc,clear printf('Example 1.4\n\n') Pole=4 Z=18 //no of armature conductors Y_A=(Z+2)/Pole //For progressive type wave winding,positive sign is used Y_C=Y_A //For wave winding //Since Y_A=(y_b+y_f)/2, we let y_b=Y_f y_b=Y_A/2 //say y_f=y_b coils=Z/2 slots=coils commutator_segments=coils printf('WINDING TABLE:\n 1<- 6-> 11<- 16-> 3<- 8\n->13<- 18-> 5<- 10-> 15<- 2\n-> 7<- 12-> 17<- 4-> 9<- 14\n->1\n ') printf('\nAnother form of winding table:') printf('\n BACK CONNECTIONS FRONT CONNECTIONS') printf('\n\n 1 to (1+5) = 6 -> 6 to (6+5) = 11') printf('\n 11 to (11+5) =16 -> 16 to (16+5)= 21 -18=3') printf('\n 3 to (3+5) = 8 -> 8 to (8+5)= 13') printf('\n 13 to (13+5) =18 -> 18 to (18+5)= 23 -18=5') printf('\n 5 to (5+5) =10 -> 10 to (10+5)= 15') printf('\n 15 to (15+5) =20 -18=2 -> 2 to (2+5)= 7') printf('\n 7 to (7+5) =12 -> 12 to (12+5)= 17') printf('\n 17 to (17+5) =22 -18=4 -> 4 to (4+5)= 9') printf('\n 9 to (9+5) =14 -> 14 to (14+5)= 19 -18=1')
d16d7f8b149588ebc5c09314770367da5d7c8918
fd6e45f66c41ad779a3d47c3bf8ebfa140d3d657
/P3 - Non-linear equations /Métodos/LINDOS/practica3 (1).sci
f88aa1ac2515591fcf2cee05b741079f606a5819
[]
no_license
jere1882/Numerical-Analysis-Assignments
7f474e2020d010f9f9c3dceff5e48c03b0d38652
1074f92ca93d0a402259f92a0f61f105f25e5230
refs/heads/master
2021-09-06T20:00:36.411386
2018-02-10T18:04:38
2018-02-10T18:04:38
121,039,769
0
0
null
null
null
null
UTF-8
Scilab
false
false
5,332
sci
practica3 (1).sci
// Ejercicio 2 // a) sin(x) = x^2/2 <=> 2*sin(x)-x^2=0 // x = linspace(-10,10,10000); // deff('r=f(x)','r=2*sin(x)-x^2'); // plot(x,f(x),x,x.*0); // f(-1)>0 f(1)<0 f(2)>0 // biseccion(f,-1,1,1e-2) -> - 0.0078125 // biseccion(f,1,2,1e-2) -> 1.4043579 // b) ver [-10 , -6] y [-2,2] // f(-10)<0 f(-6)>0 f(0)<0 f(2)>0 // biseccion(f,-10,-6,1e-2) -> - 8.6171875 // biseccion(f,-6,0,1e-2) -> - 1.4238281 // biseccion(f,0,2,1e-2) -> 0.8203125 // c) ver (0,1.2] // f(0.1)>0 f(0.5)<0 f(1.2)>0 // biseccion(f,0.1,0.5,1e-2) -> 0.13125 // biseccion(f,0.5,1.2,1e-2) -> 0.9921875 function r = biseccion(f,a,b,err) if f(a)*f(b)>0 then printf("Bad preconditions"); return; end while %T do c = (a+b)/2; if f(a)*f(c)<=0 then b=c; else a=c; end if (b-a)/2<=err then break; end end r = (a+b)/2; endfunction // Ejercicio 3 // f(1)<0 f(4)>0 // biseccion -> 1.9337537628270207168413 // secante -> 1.933753762827021160930 function xn=secante(f,x0,x1,its) xn_1 = x0; fxn_1 = f(xn_1); xn = x1; fxn = f(xn); for i=1:its if (fxn==fxn_1) then break end xnext = xn - fxn * (xn-xn_1)/(fxn-fxn_1); xn_1 = xn; fxn_1 = f(xn_1); xn = xnext; fxn = f(xn); end endfunction // Ejercicio 4 // ptoFijo(f,0,100000) // 0.7390851332151606722931 function xi=ptoFijo(f,x0,it) xi = x0 for i=1:it xi = f(xi); end endfunction // Ejercicio 5 // Ver entre [0.7, 2.20] // Los puntos fijos son 1 y 2 // Es visible que x0 en (-inf,1) -> converge a 1 (1,2) -> converge a 1 (2,inf) -> diverge // Ejercicio 6 // Si c = 1/10 para x en (-10,0) converge a -sqrt(5) // Ejercicio 7 // l = 9.8*25/(2*%pi)*tanh(8*%pi/l) // deff('r=g(x)','r=9.8*25/2/%pi*tanh(8*%pi/x)'); // deff('r=f(x)','r=g(x)-x'); // deff('r=df(x)','r=numderivative(f,x,0.0001)'); // sol1=ptoFijoerr(g,1,e-1); // sol = newton(f,df,sol1,1e-4) // 27.928551258524098699354 function xi=ptoFijoerr(f,x0,err) xi = x0 while abs(f(xi)-xi)>err do xi = f(xi); end endfunction function xi=newtonErr(f,df,x0,its) xi = x0; for i=1:its xi = xi - inv(df(xi))*f(xi); end endfunction // Ejercicio 8 // Ver en [0, 2] tiene dos raices r1<r2 f(0.4)<0 f(1)>0 f(2)<0 // deff('r=f(x)','r=3*x-%e^x'); // deff('r=g1(x)','r=%e^x/3'); // deff('r=g2(x)','r=(%e^x-x)/2'); // deff('r=g3(x)','r=log(3*x)'); // deff('r=g4(x)','r=%e^x-2*x'); // r1 = 0.6190613 // r2 = 1.5121346 // g1,g2 y g4 convergen a r1 (o divergen si x0>r2) // g3 converge a r2 (o diverge si x0<r1) // Ejercicio 9 // deff('r=f(x)','r=[1+x(1)^2-x(2)^2+%e^x(1)*cos(x(2));2*x(1)*x(2)+%e^x(1)*sin(x(2))]'); // deff('r=jf(x)','r=numderivative(f,x,0.0001)'); // x0 = [-1;4]; // newton(f,jf,x0,5) // - 0.2931627 // 1.1726598 function xi=newton(f,df,x0,its) xi = x0; for i=1:its xi = xi - inv(df(xi))*f(xi); end endfunction // Ejercicio 10 // deff('r=f(x)','r=[x(1)^2+x(1)*x(2)^3-9;3*x(1)^2*x(2)-4-x(2)^3]'); // deff('r=jf(x)','r=numderivative(f,x,0.0001)'); // x0a = [1.2, 2.5] // x0b = [-2 ; 2.5] // x0c = [-1.2 ; -2.5] // x0d = [2 ; -2.5] //-->sol_a = newton(f,jf,x0a,10000) // sol_a = // // 1.3363553772171670175339 // 1.7542351976516987743793 // //-->sol_b = newton(f,jf,x0b,10000) // sol_b = // // - 0.9012661907830336049940 // - 2.0865875946569794052721 // //-->sol_c = newton(f,jf,x0c,10000) // sol_c = // // - 0.9012661907830334939717 // - 2.0865875946569794052721 // //-->sol_d = newton(f,jf,x0d,10000) // sol_d = // // - 3.0016248866767227809760 // 0.14810799495836599049 // Ejercicio 11 // deff('r=f(x)', 'r=2*x(1)+3*x(2)^2+%e^(2*x(1)^2+x(2)^2)'); // deff('r=g(x)', 'r=[2+%e^(2*x(1)^2+x(2)^2)*4*x(1) ; 6*x(2)+%e^(2*x(1)^2+x(2)^2)*2*x(2)]'); // deff('r=Jg(x)', 'r=[4*%e^(2*x(1)^2+x(2)^2)*(1+4*x(1)^2) , %e^(2*x(1)^2+x(2)^2)*8*x(1)*x(2) ; %e^(2*x(1)^2+x(2)^2)*8*x(1)*x(2) , 6+2*%e^(2*x(1)^2+x(2)^2)*(2*x(2)^2+1) ]'); // deff('r=Jf(x)','r=(numderivative(f,x,0.00001))'''); // deff('r=Hf(x)','[J,r]=numderivative(f,x,0.0001,1,''blockmat'') '); // x0 = [1;1]; // sol_exac = newtonerr(g,Jg,x0,1e-4); // det(Jg(sol_exac)) function r=f(x) r = 2*x(1)+3*x(2)^2+%e^(2*x(1)^2+x(2)^2); endfunction function r=g(x) r=[2+%e^(2*x(1)^2+x(2)^2)*4*x(1) ; 6*x(2)+%e^(2*x(1)^2+x(2)^2)*2*x(2)]; endfunction function r=Jg(x) r=[4*%e^(2*x(1)^2+x(2)^2)*(1+4*x(1)^2) , %e^(2*x(1)^2+x(2)^2)*8*x(1)*x(2) ; %e^(2*x(1)^2+x(2)^2)*8*x(1)*x(2) , 6+2*%e^(2*x(1)^2+x(2)^2)*(2*x(2)^2+1) ]; endfunction function r=Jf(x) r=numderivative(f,x,0.0001)'; endfunction function r=Hf(x) [J,H] = numderivative(f,x,0.0001,1,'blockmat'); r = H; endfunction function xi=newtonerr(f,df,x0,err) xi = x0; while %T x0 = xi; xi = xi - inv(df(xi))*f(xi); if abs(x0-xi)<err then break; end end endfunction // Ejercicio 12 // deff('r=f(k)', 'r= [ k(1)*%e^(k(2))+k(3)-10 ;k(1)*%e^(2*k(2))+2*k(3)-12 ; k(1)*%e^(3*k(2))+3*k(3)-15 ]'); // deff('r=jf(x)','r=numderivative(f,x,0.0001)'); // x0 = [2;2;2] // k = newton(f,jf,x0,10000) // deff('result=g(r)', 'result=k(1)*%e^(k(2)*r)+k(3)*r-500/(%pi*r^2)'); // deff('r=dg(x)','r=numderivative(g,x,0.0001)'); // r0 = 1; // rsol = newton(g,dg,r0,10000);
ededd32cdd5f10ca7d4f2b2a133f9cd0967d1956
449d555969bfd7befe906877abab098c6e63a0e8
/2417/CH9/EX9.12/Ex9_12.sce
7633c1daf4341da4036e1d735cd20eed210db4cc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
897
sce
Ex9_12.sce
//scilab 5.4.1 clear; clc; printf("\t\t\tProblem Number 9.12\n\n\n"); // Chapter 9 : Gas Power Cycles // Problem 9.12 (page no. 478) // Solution //An air-standard Diesel engine rc=16; //Compression Ratio Rc=v2/v3 v4byv3=2; //Cutoff ratio=v4/v3 k=1.4; //with the cycle starting at 14 psia and 100 F //It is apparent incerease in compression ratio yields an increased cycle efficiency T2=100+460; //temperatures converted to absolute temperatures; ndiesel=1-((inv(rc))^(k-1)*(((v4byv3)^k-1)/(k*(v4byv3-1)))); //The efficiency of the diesel engine printf("The efficiency of the diesel engine is %f percentage\n",ndiesel*100); // T3/T2=rc^k-1 and T5/T4=(1/re^k-1) //re=expansion ratio=v5/v4 //But T4/T3=v4/v3=rc/re //So, T5=T2*(v4byv3)^k; //The temperature of the exhaust of the cycle //Unit:R printf("The temperature of the exhaust of the cycle is %f R i.e. %f F",T5,T5-460);
f48909f6636b74841108bab412e7eb3e2aa1f3eb
449d555969bfd7befe906877abab098c6e63a0e8
/2660/CH14/EX14.15/Ex14_15.sce
f219cdcca698376a4b351fe1afc123542e873731
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
145
sce
Ex14_15.sce
clc C = 400 n=0.5 a=2 // (T1/T2)^n b=2^(1/n) // T2 i = (b-1)*100 // percentage increase printf("\n Percentage increase = %d percent" , i)
9b8aac47395182c22fff54f6320f907be17a1d3e
449d555969bfd7befe906877abab098c6e63a0e8
/3866/CH5/EX5.5/Ex5_5.sce
2af8bcea9907d55eeff9c68165b179649f491ef5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
140
sce
Ex5_5.sce
clc; clear; close; cc=8;//number of clock cycles to=4;//number of toggles at output a=to*100/(2*cc); disp(a, 'activity factor(%)=');
88133b1c9d3082e92e3633603d74be88e2f95222
449d555969bfd7befe906877abab098c6e63a0e8
/1919/CH1/EX1.7/Ex1_7.sce
527f0044c09a62fd5572b126bd269e54afa09ea7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
715
sce
Ex1_7.sce
// Theory and Problems of Thermodynamics // Chapter 1 // Basic Concepts // Example 7 clear ;clc; //Given data t = 10 //t = time period for a liquid is heated in minutes I = 3 // I = current in amperes V = 200 // V = electric potential in volts P = 200 // P = opearted power of rating motor in watts //Calculate mass of 1 kmol air t = t * 60; //units conversion minutes to seconds E_res = V * I * t; //Energy transfered by resistor in J E_pad = P * t; //Energy transfered by paddle wheel in J E_tot = E_res + E_pad; //Total energy transfered E_tot = E_tot/1000; //units conversion J to kJ // Results mprintf('Total enegy transfered = %3.0f kJ', E_tot)
b22a0f5f4610c9fbf2fdc39c4ed536253181046c
449d555969bfd7befe906877abab098c6e63a0e8
/1226/CH17/EX17.19/EX17_19.sce
8bda7c01ab639e2a72f9d6cd8915a032cd582519
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,259
sce
EX17_19.sce
clc;funcprot(0);//EXAMPLE 17.19 // Initialisation of Variables n=6;......................//No of cylinders pdpc=700*10^(-6);.................//Piston displacement per cylinder in m^3 P=78;............................//Power developed in kW N=3200;.............................//Engine rpm mf=27;.............................//Fuel consumption in kg/h C=44000;...........................//Calorific value of fuel in kJ/kg afr=12;..............................//Air fuel ratio p1=0.9;..........................//Intake air pressure pa=p1; t1=305;...............................//Intake air temperature ta=t1; R=0.287;.....................//Gas constant in kJ/kgK //Calculations ma=afr*mf;............................//maaa of air in kg/h Va=(ma*R*t1)/(p1*100);.............//Volume of air intake in m^3/h Vs=pdpc*n*(N/2)*60;.....................//Swept volume in m^3/h etaV=Va/Vs;.............................//Volumetric efficiency disp(etaV*100,"The volumetric efficiency of the engine (in %):") etabt=P/(mf*(C/3600));...................//Brake thermal efficiency disp(etabt*100,"The brake thermal efficiency of the engine (in %):") Tb=(P*60)/(2*%pi*N);..........................//Brake torque in kNm disp(Tb,"Brake torque (in kNm):")
e42d45911b9eb84ee4079648dc366e6a078d13f3
449d555969bfd7befe906877abab098c6e63a0e8
/2093/CH3/EX3.28/exa_3_28.sce
6cab912b7b18be439c682e3cea6952be08d199ae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
916
sce
exa_3_28.sce
// Exa 3.28 clc; clear; close; // Given data V_B= 0;// in V R_E=1*10^3;//in Ω R_C=1*10^3;//in Ω V_CC=5;// in V V_BE= 0.7;// in V V_E= V_B-V_BE;// in V I_E= (1+V_E)/R_E;// in A I_C= I_E;// (approx) in A V_C= V_CC-I_C*R_C;//in V disp("Part (i)") disp(V_E,"The value of V_E in volt is : "); disp(V_C,"The value of V_C in volt is : "); // For saturation V_CE=0.2 ;// V V_CB= -0.5;// in V // I_C= 5-V_C/R_C and V_C= V_E-VCE, So // I_C= (5.2-V_E)/R_C // I_E= (V_E+1)/R_E and at the edge of saturation I_C=I_E, V_E= 4.2/2;/// in V V_B= V_E+0.7;// in V V_C= V_E+0.2;// in V disp("Part (ii) ") disp(V_E,"The value of V_E in volts is : "); disp(V_B,"The value of V_B in volts is : "); disp(V_C,"The value of V_C in volts is : "); // Note: In the book , there is a miss print in the last line of this question because V_E+0.2= 2.1+0.2 = 2.3 (not 2.8) , so answer in the book is wrong
f21ba7c562f920fcb530da2468ff0144fa989484
449d555969bfd7befe906877abab098c6e63a0e8
/764/CH12/EX12.13.b/solution12_13.sce
57eb6595dec878b9f341771894c8913816ce9a9a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
681
sce
solution12_13.sce
//Obtain path of solution file path = get_absolute_file_path('solution12_13.sce') //Obtain path of data file datapath = path + filesep() + 'data12_13.sci' //Clear all clc //Execute the data file exec(datapath) //Calculate the torque capacity of one pad mt (N-m) mt = Mt/(nb * np) //Read the csv file containing table 12.1 numeric = read_csv(path + filesep() + 'table12_13.csv') //Obtain the value of delta for row = 3:1:%inf if (evstr(numeric(row,1)) == r) delta = evstr(numeric(row,2)) break end end //Calculate the radius of the pad R (mm) R = (mt * 1000/(mu * pavg * %pi * (delta/r)))^(1/3) //Print results printf("\nRadius of the pad(R) = %f mm\n",R)
1805fed4d6173ee685cec7c80244112d92e54a5d
449d555969bfd7befe906877abab098c6e63a0e8
/2090/CH13/EX13.1/Chapter13_example1.sce
898b4d2a847ad69cd84dba4f2197dccd6ef1286b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
905
sce
Chapter13_example1.sce
clc clear //Input data d=0.08;//The diameter of bore in m L=0.075;//The length of the stroke in m l=0.152;//The connecting rod length in m h=0.062;//Skirt length of the piston in m Fr=8000;//Compressive force in the connecting rod in N p=3000;//The pressure in the cylinder kPa y=0.004*10^-3;//The clearence between piston and cylinder wall in m U=0.006;//The dynamic viscosity of the lubricating oil in pa.s u=8.2;//The piston speed in m/s pi=3.141;//Mathematical constant of pi //Calculations ts=(U*u)/y;//The shear stress in N/m^2 A=pi*d*h;//Contact area between the piston and the cylinder in m^2 Ff=ts*A;//Friction force on the piston inN r=L/2;//Crank length in m A=atan(r/l);//The angle made by the crank in radians Ft=Fr*sin(A);//The side thrust in N //Output printf(' The friction force on the piston = %3.0f N \n The thrust force on the cylinder wall = %3.0f N',Ff,Ft)
3838d4e2ad610cab6c4a6c7efd268e2b31aa1ef5
449d555969bfd7befe906877abab098c6e63a0e8
/1364/CH12/EX12.3.1/12_3_1.sce
800f19ff9196c6f82b070fdf9ca08a56931833e2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
175
sce
12_3_1.sce
clc //initialisation of variables p= 10.1 //lbf/in^2 abs T= 268.3 //K R= 96 //ft lbf/lb K //CALCULATIONS d= p*144/(R*T) //RESULTS printf ('density = %.4f lb/ft^3',d)