blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 6 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 87 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 15 values | visit_date timestamp[us]date 2016-08-04 09:00:04 2023-09-05 17:18:33 | revision_date timestamp[us]date 1998-12-11 00:15:10 2023-09-02 05:42:40 | committer_date timestamp[us]date 2005-04-26 09:58:02 2023-09-02 05:42:40 | github_id int64 436k 586M ⌀ | star_events_count int64 0 12.3k | fork_events_count int64 0 6.3k | gha_license_id stringclasses 7 values | gha_event_created_at timestamp[us]date 2012-11-16 11:45:07 2023-09-14 20:45:37 ⌀ | gha_created_at timestamp[us]date 2010-03-22 23:34:58 2023-01-07 03:47:44 ⌀ | gha_language stringclasses 36 values | src_encoding stringclasses 17 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 15 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc9a62ec27f8123a09c05f01e4e7bb1d4b52099e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1226/CH17/EX17.12/EX17_12.sce | 7c1a49161a6a6a2cae9004d2b8d7d7197755eb66 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 958 | sce | EX17_12.sce | clc;funcprot(0);//EXAMPLE 7.12
// Initialisation of Variables
N=1800;...................//Engine rpm
l=0.11;...................//Engine stroke in m
d=0.085;..................//Engine bore in m
ma=0.56;..................//Air flow rate in kg/min
BP=6;.....................//Brake power developed in kW
afr=20;...................//Air fuel ratio
C=42550;..................//Calorific value of fuel in kJ/kg
rhof=1.18;................//Density of fuel in kg/m^3
//calculations
V=(%pi/4)*d*d*l*(N/2);.....................//Volume displacemt in m^3/min
Ma=V*rhof;.................................//Mass of air in kg/min
etaV=ma/Ma;................................//Volumetric efficiency
fc=ma/afr;.................................//Fuel concumption
bsfc=(fc*60)/BP;...........................//Brake specific fuel consumption in kg/kWh
disp(etaV*100,"The volumetric efficiency (in %):")
disp(bsfc,"Brake specific fuel consumption (in kg/kWh):")
|
449ac5671197171b2c57b52ffa2fbadecf4b9271 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2015/CH9/EX9.4/9_4.sce | 2e073139cc1429ff2df917c533afa7d65700068f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 629 | sce | 9_4.sce | clc
//initialisation of variables
p2=4.08 //pressure in bar
p1=1 //pressure in bar
n=1.22
r=0.287
p=1.01325 //pressure in bar
v=145 //volume
t=288 //temparature in k
p3=17.5 //pressure in bar
t1=307 //temp in k
t2=313 //temp in k
//CALCULATIONS
wlp=5.54*r*t1*(((p2/p1)^((n-1)/n))-1)
whp=5.54*r*t2*(((p2/p1)^((n-1)/n))-1)
w=wlp+whp
m=(p*v)/(r*t)
pr=(w*m)/60
p2=(p1*p3)^0.5
x=(p2)^0.5 //x=d1/d2
//RESULTS
printf('total work required is %2fknm/kg',w)
printf('\nmass of free air is %2fkg/min',m)
printf('\npower required to drive the compressor is %2fkw',pr)
printf('\nratio of cylinder diameters is %2f',x)
|
c3fae3c9e08ee5e89c5c9928c4832caf05466811 | 2e768d577a9279039672816cbc408828923ec86d | /macros/minEnclosingCircle.sci | 6e16e00885dc5c70b76827fb0817bc11ea141b26 | [] | no_license | rg77/FOSSEE-Image-Processing-Toolbox | 3eebdad59f6bef3ee1d01f42d19ccbe798a05f8e | 6e18569e0bdeba9e75387b404fd9aeb3caf1a30d | refs/heads/master | 2020-12-02T16:16:35.016043 | 2017-07-07T12:39:05 | 2017-07-07T12:45:50 | 96,527,784 | 0 | 0 | null | 2017-07-07T10:25:25 | 2017-07-07T10:25:24 | null | UTF-8 | Scilab | false | false | 1,716 | sci | minEnclosingCircle.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author: Priyanka Hiranandani, Rohan Gurve
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
//
function [out]= minEnclosingCircle(x,y)
// This function is used to find the circumcircle of an object constituted by the given set of input points.
//
// Calling Sequence
// x = [x1 x2 x3 ...............xn]
// y = [y1 y2 y3................yn]
// out = minEnclosingCirlce(x , y)
//
// Parameters
// x: 1xn matrix denoting the x coordinates of the points of the object
// y: 1xn matrix denoting the corresponding y coordinates of the points of the object
// out: Output structure with the following members- 1) center_x- x coordinate of the center of the circle, 2)center_y- x coordinate of the center of the circle, 3) radius- radius of the circle
//
// Examples
// x = [0 8 8 0 2]
// y = [0 0 5 5 9]
// out = minEnclosingCircle(x,y)
//
// Examples
//
// x = [0 8 8 0 8 8]
// y = [0 0 5 5 4 4]
// out = minEnclosingCircle(x,y)
//
// Authors
// Priyanka Hiranandani
// Rohan Gurve
[ lhs rhs ] = argn(0)
if lhs > 1 then
error(msprintf("Too many output argument"))
end
if rhs > 2 then
error(msprintf("Too many input arguments"))
elseif rhs < 2 then
error(msprintf("input arguments missing"))
end
[t1 t2 t3]= raw_minEnclosingCircle(x,y);
out=struct("center_x",t1,"center_y",t2,"radius",t3);
endfunction;
|
d8f5cc0a6a5f78d80e9c8d93761c978d2a5e7e1b | b67defe3c1cae63dd1a79578f840d069568034e6 | /scilab/chi2conj.sci | 2ba6232d38524368f910a72408bf79e778bbb86c | [] | no_license | wmacevoy/luck | bf5d93ce00e8136634d715057a97706d3aa804b3 | 47e5c8eb1782a1b4f3f5b9e7583290d9a842532e | refs/heads/master | 2023-05-03T14:46:51.353817 | 2023-04-25T03:13:44 | 2023-04-25T03:13:44 | 33,452,250 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 489 | sci | chi2conj.sci | exec("chi2probln.sci",-1);
exec("chi2cdf.sci",-1);
exec("nonzero.sci",-1);
function y=chi2conj(x,k)
[df,nsamps]=size(x);
lnp=chi2probln(x,k);
y0=exp((1/(k/2-1))*(lnp+(k/2)*log(2)+gammaln(k/2)));
y0=max(y0,max(0,2*sqrt(k-2)-sqrt(x)) .^ 2);
y=y0;
iterate=%T;
i=0;
cutoff=sqrt(%eps);
while (iterate)
z=y;
df=chi2probln(z,k)-lnp;
dln=2*z ./ nonzero(z-k+2,cutoff);
y = z + dln .* df;
i=i+1;
iterate = (i<1000) & or(abs(df)>cutoff);
end
endfunction
|
1967d70927281bef23f98eeb4237661a02c79477 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2120/CH11/EX11.1/ex11_1.sce | 499008f34477e5de92aed81cedc9235082586086 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 421 | sce | ex11_1.sce | // Exa 11.1
clc;
clear;
close;
// Given data
n = 3;
l = 80;// in mm
d = 76;// in mm
r = 8.5;
V_s = (%pi/4) * d * d * l;// in mm^3
V_s = V_s * 10^-3;// in cm^3
// r = 1+ (V_s/V_c)
V_c = (1/(r - 1)) * V_s;// in cm^3
disp(V_c*10^3,"Clearance volume of cylinder in mm^3 is : ");
C = V_s * n;// C stands for capacity of engine in cm^3
C = C * 10^-3;// in litre
disp(C,"Capacity of the engine in litre is :");
|
cff1755bb203ebdfc319b6366641c4c1f00aed58 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3890/CH1/EX1.2/Ex1_2.sce | afa775a214e36c27683413c70c8fea9f286e615a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,645 | sce | Ex1_2.sce | //Electric machines and power systems by Syed A Nasar
//Publisher:TataMcgraw Hill
//Year: 2002 ; Edition - 7
//Example 1.2
//Scilab Version : 6.0.0 ; OS : Windows
clc;
clear;
I1=60; //current during duration 0 to 10 sec in Ampere
t1max=10;t1min=0; //time taken by current I1 in sec
I2=25; //current during duration 10 to 30 sec in Ampere
t2max=30;t2min=10; //time taken by current I2 in sec
I3=50; //current during duration 30 to 40 sec in Ampere
t3max=40;t3min=30; //time taken by current I3 in sec
I4=-40; //current during duration 45 to 40 sec in Ampere
t4max=45;t4min=40; //time taken by current I4 in sec
I5=-20; //current during duration 60 to 45 sec in Ampere
t5max=60;t5min=45; //time taken by current I5 in sec
I6=0; //current during duration 100 to 60 sec in Ampere
t6max=100;t6min=60; //time taken by current I6 in sec
T=100; //total time period in sec
sa=(I1*(t1max-t1min))+(I2*(t2max-t2min))+(I3*(t3max-t3min))+(I4*(t4max-t4min))+(I5*(t5max-t5min))+(I6*(t6max-t6min)); //algebric sum of area under positive and negative currents in A s
avg=sa/T; //average value of current in ampere
rms=((1/T)*((I1^2)*(t1max-t1min)+(I2^2)*(t2max-t2min)+(I3^2)*(t3max-t3min)+(I4^2)*(t4max-t4min)+(I5^2)*(t5max-t5min)+(I6^2)*(t6max-t6min)))^(1/2);
printf('the average value of current waveform is %f in Ampere\n',avg)
printf('the rms value of current waveform is %f in ampere\n',rms)
|
037bf7cae90dc97ddedea6fe9690d49aaf354a5a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2318/CH2/EX2.30/ex_2_30.sce | 11c9c374f32861ea6944ef145e0485af0bccf0b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 470 | sce | ex_2_30.sce | //Example 2.30: % Error
clc;
clear;
close;
//given data :
Ra=2;// in ohm
Rsh=0.0004;// constant
alfa=0.004;
t1=288;// in K
t2=333;// in K
I=100;// in A
Rs=50;// in ohm
theta=t2-t1;
Ra1=Ra+(alfa*Ra*theta);
N1=1+(Ra/Rsh);
Ia=I/N1;
N2=1+(Ra1/Rsh);
Ia1=I/N2;
epsilon1=(Ia1-Ia)*100/Ia;
disp(epsilon1,"The percentage error,(%) = ")
N3=1+((Ra+Rs)/Rsh);
Ia2=I*10^3/N3;
N4=1+((Ra1+Rs)/Rsh);
Ia3=I*10^3/N4;
epsilon2=(Ia3-Ia2)*100/Ia2;
disp(epsilon2,"The percentage error,(%) = ")
|
1366405fd9602dcdde3f3b98864f32f1e0c7d35f | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/RV23.prev.tst | 083f20c0b2adcc490413e478637cdd09c2274ed1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,129 | tst | RV23.prev.tst | [0,0,0,0,0,0,8,13] | [0,1,1,2,3,5] =
divide: quot[2] = 13/5, remd = [0,0,0,-13/5,-13/5,-26/5,1/5]
divide: quot[1] = 1/25, remd = [0,0,-1/25,-66/25,-67/25,-133/25]
divide: quot[0] = -133/125, remd = [0,133/125,128/125,-64/125,64/125]
gcd: [0,0,0,0,0,0,8,13] / [0,1,1,2,3,5] -> [-133/125,1/25,13/5] rest [0,133/125,128/125,-64/125,64/125]
divide: quot[1] = 625/64, remd = [0,1,-601/64,-8,8]
divide: quot[0] = 125/8, remd = [0,-125/8,-1625/64]
gcd: [0,1,1,2,3,5] / [0,133/125,128/125,-64/125,64/125] -> [125/8,625/64] rest [0,-125/8,-1625/64]
divide: quot[2] = -4096/203125, remd = [0,133/125,128/125,-1344/1625]
divide: quot[1] = 86016/2640625, remd = [0,133/125,32384/21125]
divide: quot[0] = -2072576/34328125, remd = [0,33129/274625]
gcd: [0,133/125,128/125,-64/125,64/125] / [0,-125/8,-1625/64] -> [-2072576/34328125,86016/2640625,-4096/203125] rest [0,33129/274625]
divide: quot[1] = -446265625/2120256, remd = [0,-125/8]
divide: quot[0] = -34328125/265032, remd = [0]
gcd: [0,-125/8,-1625/64] / [0,33129/274625] -> [-34328125/265032,-446265625/2120256] rest [0]
result: [-34328125/265032,-446265625/2120256]
|
458b69112fc291639778e5a209d4b29128b80fb1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1076/CH9/EX9.5/9_5.sce | 33edf048a0075b87b2fe61048f384d88a992c29b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 544 | sce | 9_5.sce | clear
clc
Y=[
.7-%i*3 -.2+%i -.5+2*%i %inf
%inf %inf -.3+2*%i -.5+3*%i
%inf %inf %inf -1+4*%i
%inf %inf %inf %inf
]
disp("inf shows that this value is to be found ")
disp(Y,"given")
Y(1,4)=round(Y(1,1)+Y(1,3)+Y(1,2))
Y(4,4)=0-Y(1,4)-Y(2,4)-Y(3,4)
Y(4,1)=Y(1,4)
Y(2,1)=Y(1,2)
Y(3,2)=Y(2,3)
Y(3,1)=Y(1,3)
Y(4,2)=Y(2,4)
Y(4,3)=Y(3,4)
Y(2,2)=0-Y(2,1)-Y(2,4)-Y(2,3)
Y(3,3)=0-Y(3,1)-Y(3,4)-Y(3,2)
disp(Y,"completed")
|
cd0a80d4ed4cdd520bf4fbc7a3e2188285cbd360 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /xcos_blocks/div2_c.sci | 45750b9246a1c81ff0db53f7162f046fb15d40f9 | [] | no_license | jhasler/rasp30 | 9a7c2431d56c879a18b50c2d43e487d413ceccb0 | 3612de44eaa10babd7298d2e0a7cddf4a4b761f6 | refs/heads/master | 2023-05-25T08:21:31.003675 | 2023-05-11T16:19:59 | 2023-05-11T16:19:59 | 62,917,238 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 222 | sci | div2_c.sci | function block=div2_c(block,flag)
if flag==1 then
//for j=1:block.insz(1)
j=1
block.outptr(1)(j)=block.inptr(1)(j)/block.rpar(1);
//end
end
endfunction
|
955e071c8f9b1231a0184f7c32bec6965effdea4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH4/EX4.52/52.sce | 18da48a90f2f3e4a6a17489f8400eb58ea39a2df | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 321 | sce | 52.sce | clc
m=0.08; //kg
p=2*10^5; //Pa
V=0.10528; //m^3
h1=2706.3; //kJ/kg
h2=3071.8; //kJ/kg
v1=0.885; //m^3/kg
v2=V/m; //m^3/kg
disp("(i) Heat supplied")
Q=m*(h2-h1);
disp("Q=")
disp(Q)
disp("kJ")
disp("(ii) Work done")
W=p*(v2-v1);
W_total=m*W/10^3;
disp("Total work done = ")
disp(W_total)
disp("kJ") |
292d676cd2f8a38d4877013f978fbfb1635b2c02 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3830/CH1/EX1.31/Ex1_31.sce | d1af1d43c7b17bbcbd20d52404f209072474d073 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,462 | sce | Ex1_31.sce | // Exa 1.31
clc;
clear;
// Given
// Various Current Measurements
I1 = 41.7; // First reading in A
I2 = 42; // second reading in A
I3 = 41.8; // third reading in A
I4 = 42; // fourth reading in A
I5 = 42.1; // Fifth reading in A
I6 = 41.9; // sixth reading in A
I7 = 42; // seventh reading in A
I8 = 41.9; // eight reading in A
I9 = 42.5; // nineth reading in A
I10 = 41.8; // tenth reading in A
n=10; // Total no of observations
I = [41.7;42;41.8;42;42.1;41.9;42;41.9;42.5;41.8];
// Solution
AM = (I1+I2+I3+I4+I5+I6+I7+I8+I9+I10)/n;
printf('The arithmatic mean = %.4f A \n',AM);
// Deviation for each reading will be -
d1 = I1 - AM; // deviation for 1st reading
d2 = I2 - AM; // deviation for 2nd reading
d3 = I3 - AM; // deviation for 3rd reading
d4 = I4 - AM; // deviation for 4th reading
d5 = I5 - AM; // deviation for 5th reading
d6 = I6 - AM; // deviation for 6th reading
d7 = I7 - AM; // deviation for 7th reading
d8 = I8 - AM; // deviation for 8th reading
d9 = I9 - AM; // deviation for 9th reading
d10 = I10 - AM; // deviation for 10th reading
SD = sqrt((d1^2+d2^2+d3^2+d4^2+d5^2+d6^2+d7^2+d8^2+d9^2+d10^2)/(n-1));
printf(' The standard deviation = %.3f A \n',SD);
Y = 0.6745*SD;
printf(' Probable error of one reading = %.3f A \n',Y);
Vm = Y/sqrt(n-1);
printf(' Probable error of mean = %.3f A \n',Vm);
printf(' Range = %.1f A \n',max(I)-min(I));
// The answers vary due to round off error
|
7801ee1c8d29c2a34a4a27b31debcf8a4816bd69 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.3/macros/xdess/evans.sci | 7040c0cbd4e616d2ec5887aa3ee358fe261f086a | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | 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 | 4,401 | sci | evans.sci | function []=evans(n,d,kmax)
//seuil maxi et mini (relatifs) de discretisation
// en espace
smax=0.01;smin=smax/3;
nptmax=500 //nbre maxi de pt de discretisation en k
//
//analyse de la liste d'appel
[lhs,rhs]=argn(0)
if rhs<=0 then //demo
s_mat=['xbasc();n=real(poly([0.1-%i 0.1+%i,-10],''s''));';
' d=real(poly([-1 -2 -%i %i],''s''));';
'evans(n,d,80);'];
write(%io(2),s_mat);execstr(s_mat);
return;
end
select type(n)
case 1 then
if rhs==2 then kmax=0,end
case 2 then
if rhs==2 then kmax=0,end
//-compat next case retained for list/tlist compatibility
case 15 then
if rhs==2 then kmax=d,else kmax=0,end
n1=n(1);
select n1(1)
case 'r' then [n,d]=n(2:3)
case 'lss' then n=ss2tf(n);[n,d]=n(2:3);n=clean(n);d=clean(d);
else error('transfer or state-space only')
end
case 16 then
if rhs==2 then kmax=d,else kmax=0,end
n1=n(1);
select n1(1)
case 'r' then [n,d]=n(2:3)
case 'lss' then n=ss2tf(n);[n,d]=n(2:3);n=clean(n);d=clean(d);
else error('transfer or state-space only')
end
else error('transfer or state-space only')
end
if prod(size(n))<>1 then
error('SISO system only'),
end
if kmax<=0 then
nm=mini([degree(n),degree(d)])
fact=norm(coeff(d),2)/norm(coeff(n),2)
kmax=round(500*fact),
end
//
//calcul de la discretisation en k et racines associees
nroots=roots(n);racines=roots(d);
if nroots==[] then
nrm=maxi([norm(racines,1),norm(roots(d+kmax*n),1)])
else
nrm=maxi([norm(racines,1),norm(nroots,1),norm(roots(d+kmax*n),1)])
end
md=degree(d)
//
ord=1:md;kk=0;nr=1;k=0;pas=0.99;fin='no';
while fin=='no' then
k=k+pas
r=roots(d+k*n);r=r(ord)
dist=maxi(abs(racines(:,nr)-r))/nrm
//
point='nok'
if dist <smax then //pas correct
point='ok'
else //pas trop grand ou ordre incorrect
// on cherche l'ordre qui minimise la distance
ix=1:md
ord1=[]
for ky=1:md
yy=r(ky)
mn=10*dist*nrm
for kx=1:md
if ix(kx)>0 then
if abs(yy-racines(kx,nr)) < mn then
mn=abs(yy-racines(kx,nr))
kmn=kx
end
end
end
ix(kmn)=0
ord1=[ord1 kmn]
end
r(ord1)=r
dist=maxi(abs(racines(:,nr)-r))/nrm
if dist <smax then
point='ok',
ord(ord1)=ord
else
k=k-pas,pas=pas/2.5
end
end
if dist<smin then
//pas trop petit
pas=2*pas;
end
if point=='ok' then
racines=[racines,r];kk=[kk,k];nr=nr+1
if k>kmax then fin='kmax',end
if nr>nptmax then fin='nptmax',end
end
end
//taille du cadre graphique
x1 =[nroots;matrix(racines,md*nr,1)];
xmin=mini(real(x1));xmax=maxi(real(x1))
ymin=mini(imag(x1));ymax=maxi(imag(x1))
dx=abs(xmax-xmin)*0.05
dy=abs(ymax-ymin)*0.05
rect=[xmin-dx;ymin-dy;xmax+dx;ymax+dy];
dx=maxi(abs(xmax-xmin),abs(ymax-ymin));
//trace des lieux des zeros
xx=xget("mark")
xset("mark",xx(1),xx(1)+3);
if nroots<>[] then
plot2d(real(nroots),imag(nroots),[-5,4],"151",...
'open loop zeroes',rect);
strf="100"
else
strf="151"
end
//trace des lieu des poles en boucle ouverte
if racines<>[] then
plot2d(real(racines(:,1)),imag(racines(:,1)),[-2,5],strf,...
'open loop poles',rect);
strf='100';else strf='151';
end
// trace des branches asymptotiques
plot2d(0,0,[1,2],strf,'asymptotic directions');
xtitle('Evans root locus','Real axis','Imag. axis');
xset("clipgrf");
m=degree(n);q=md-m
if q>0 then
la=0:q-1;
so=(sum(racines(:,1))-sum(nroots))/q
i1=real(so);i2=imag(so);
if prod(size(la))<>1 then
ang1=%pi/q*(ones(la)+2*la)
x1=dx*cos(ang1),y1=dx*sin(ang1)
// ang2=%pi/q*2*la
// x2=dx*cos(ang2),y2=dx*sin(ang2)
else
x1=0,y1=0,//x2=0,y2=0,
end
if md=2,
if coeff(d,md)<0 then
x1=0*ones(2),y1=0*ones(2)
// x2=0*ones(2),y2=0*ones(2),
end,
end;
if maxi(k)>0 then
for i=1:q,xsegs([i1,x1(i)+i1],[i2,y1(i)+i2]),end,
end
// if mini(k)<0 then
// for i=1:q,xsegs([i1,x2(i)+i1],[i2,y2(i)+i2]),end,
// end
end;
xclip();
//lieu de evans
[n1,n2]=size(racines);
plot2d(real(racines)',imag(racines)',3*ones(1,n2),"100",...
'closed-loop poles loci');
if fin='nptmax' then
write(%io(2),'evans : too many points required')
end
xset("mark",xx(1),xx(2));
// gain corresponding to a selected point of the locus
//[l1,l2]=min(abs(racines(:)-selected));
//col=int(l2/n1)+1;//row=modulo(l2,n1); racines(row,col) <-> seleceted
//gain=kk(col);
|
74c9b7389e44913dc702e8aeb81e144263c907d2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2863/CH7/EX7.5/ex7_5.sce | 4faac0fb2cc0562db202b56bbae5f776085b26fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex7_5.sce | //chapter 7
printf("\n");
ht=150;
hr=2;
Is=9;
d=40*10^3;
f=1.2*10^6;
c=3*10^8;
lamda=c/f;
printf("the wavelength is %dm",lamda);
E=120*(%pi)*ht*hr*Is/(lamda*d);
printf("\nthe electric field is %gV/m",E);
|
c2cea12fd9f87598b0f393ca640b73f53e5f5eea | b0aff14da16e18ea29381d0bd02eede1aafc8df1 | /mtlbSci/macros/mtlbSci_getd.sci | 92bd2e57b70ae59ebd9bc64b8162494c307b3921 | [] | no_license | josuemoraisgh/mtlbSci | 5d762671876bced45960a774f7192b41124a13ed | 5c813ed940cccf774ccd52c9a69f88ba39f22deb | refs/heads/main | 2023-07-15T23:47:11.843101 | 2021-08-26T17:52:57 | 2021-08-26T17:52:57 | 385,216,432 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 349 | sci | mtlbSci_getd.sci | function mtlb_getd(path)
//files=listfiles([path+'*.m']);
//for i=1:size(files,1)
// fd = mopen(files(i),'rt');
// line = mgetl(fd,1)
// while strindex(line,'//')==1
// line=mgetl(fd,1);
// end;
// mclose(fd);
// if isempty(strindex(line,'function ')) then
// exec(files(i),-1);
// end;
//end;
endfunction
|
f5ac5be2ce442c623704b6048a92e27800ede515 | 7b040f1a7bbc570e36aab9b2ccf77a9e59d3e5c2 | /Scilab/virtual/2dof_controller/dc/place/scilab/ibm_pp_sat.sce | 70db9ca11b32351bcfe0eb71fe5ee490a742fd1b | [] | no_license | advait23/sbhs-manual | e2c380051117e3a36398bb5ad046781f7b379cb9 | d65043acd98334c44a0f0dbf480473c4c4451834 | refs/heads/master | 2021-01-16T19:50:40.218314 | 2012-11-16T04:11:12 | 2012-11-16T04:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,769 | sce | ibm_pp_sat.sce | // Updated(1-8-07)
// 9.18
// Transfer function
B = 0.47; A = [1 -0.43]; k = 1;
[zk,dzk] = zpowk(k);
// Transient specifications
rise = 10; epsilon = 0.01; Ts = 1;
phi = desired(Ts,rise,epsilon);
// Controller design
delta = [1 -1]; // internal model of step used
[Rc,Sc,Tc,gamm,F] = pp_im2(B,A,k,phi,delta);
// Study of Antiwindup Controller
key = x_choose(['Simulate without any saturation limits';
'Simulate saturation, but do not use AWC';
'Simulate saturation with AWC in place';
'Simulate with AWC, without saturation limits'],...
['Please choose one of the following']);
if key ==0
disp('Invalid choice');
return;
elseif key == 1
U = 2; L = -2; P = 1; F = Rc; E = 0; PSc = Sc; PTc = Tc;
elseif key == 2
U = 1; L = -1; P = 1; F = Rc; E = 0; PSc = Sc; PTc = Tc;
else
if key == 3 // Antiwindup controller and with saturation
U = 1; L = -1;
elseif key == 4 // Antiwindup controller, but no saturation
U = 2; L = -2;
end
P = A;
dF = length(F) - 1;
PRc = convol(P,Rc); dPRc = length(PRc) - 1;
[E,dE] = poladd(F,dF,-PRc,dPRc);
PSc = convol(P,Sc); PTc = convol(P,Tc);
end
// Setting up simulation parameters for stb_disc_sat
t_init = 0; // first step begins
st = 1; // height of first step
t_init2 = 500; // second step begins
st2 = -2; // height of second step
t_final = 1000; // simulation end time
st1 = 0; // no disturbance input
C = 0; D = 1; N_var = 0;
[PTcp1,PTcp2] = cosfil_ip(PTc,1); // PTc/1
[Fp1,Fp2] = cosfil_ip(1,F); // 1/F
[Ep,Fp] = cosfil_ip(E,F); // E/F
[PScp1,PScp2] = cosfil_ip(PSc,1); // PSc/1
[Bp,Ap] = cosfil_ip(B,A); // B/A
[zkp1,zkp2] = cosfil_ip(zk,1); // zk/1
[Cp,Dp] = cosfil_ip(C,D); // C/D
|
06bcf707a8a91b428971bf9067130e8cff60848e | f04d3d47f893de08cd99a31b4870112915b80d5b | /Datasets/diabetes/data8.tst | 1d7861541d05ff9199c8a2cc8737295269c77168 | [] | no_license | MesumRaza/MyWorkInPython | f5364b8514943e44c7200123653da9f4551251b1 | bd8c9b3ca2fb02ae6d2b626054fa3cd32c28b330 | refs/heads/master | 2021-08-19T21:46:41.412995 | 2017-11-27T13:37:52 | 2017-11-27T13:37:52 | 111,728,604 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,472 | tst | data8.tst | 0 0.522613 0.52459 0.373737 0.0756501 0.500745 0.184458 0.0166667 class1
0 0.603015 0.606557 0.181818 0.0744681 0.454545 0.088386 0.0833333 class0
0.0588235 0.41206 0.52459 0.131313 0.112293 0.315946 0.143894 0.0333333 class0
0.117647 0.673367 0.57377 0 0 0.4307 0.198121 0.0333333 class1
0 0.457286 0.557377 0.323232 0.248227 0.594635 0.129377 0.0666667 class0
0.117647 0.59799 0 0 0 0.292101 0.321947 0.85 class0
0.117647 0.502513 0.442623 0.282828 0.124113 0.563338 0.179334 0.05 class0
0.823529 0.879397 0.508197 0.30303 0 0.500745 0.0572161 0.283333 class1
0.0588235 0.678392 0.442623 0 0 0.397914 0.260034 0.683333 class0
0.294118 0.432161 0.557377 0.282828 0.0839243 0.450075 0.122118 0.05 class0
0.588235 0.743719 0.688525 0.484848 0.280142 0.560358 0.394108 0.5 class1
0.529412 0.673367 0.606557 0.333333 0.070922 0.385991 0.163108 1 class0
0.529412 0.603015 0.590164 0.222222 0.0661939 0.309985 0.279675 0.45 class0
0.0588235 0.356784 0.508197 0 0 0.324888 0.144321 0.0833333 class0
0.470588 0.371859 0.57377 0.40404 0.0579196 0.52608 0.26772 0.3 class0
0.294118 0.442211 0.639344 0.30303 0 0.411326 0.0768574 0.266667 class0
0.588235 0.577889 0.803279 0 0 0.357675 0.403074 0.216667 class0
0 0.623116 0.459016 0.131313 0.124113 0.324888 0.159693 0 class0
0 0.371859 0.42623 0.10101 0.0425532 0.414307 0.0815542 0.0166667 class0
0 0.487437 0.52459 0.363636 0.118203 0.548435 0.222886 0.0666667 class0
0.470588 0.603015 0 0 0 0.447094 0.0448335 0.283333 class1
0.352941 0.773869 0.639344 0.414141 0.165485 0.687034 0.210504 0.1 class0
0.0588235 0.723618 0.672131 0.40404 0 0.615499 0.225875 0.116667 class0
0 0.688442 0.57377 0.383838 0 0.494784 0.0392827 0.0166667 class0
0 0.59799 0.540984 0.272727 0 0.578241 0.0772844 0.0166667 class0
0.411765 0.683417 0.737705 0 0 0.445604 0.0563621 0.483333 class0
0.235294 0.572864 0.52459 0 0 0.4307 0.0204953 0.05 class0
0 0.688442 0.688525 0.272727 0 0.406855 0.0653288 0.633333 class0
0.117647 0.527638 0.655738 0.454545 0.225768 0.502235 0.270282 0.133333 class1
0.411765 0.572864 0.622951 0.171717 0.130024 0.354694 0.16567 0.166667 class0
0.470588 0.633166 0.606557 0.383838 0.0886525 0.385991 0.0358668 0.3 class0
0.235294 0.663317 0.704918 0.313131 0 0.417288 0.145602 0.7 class0
0.176471 0.79397 0.57377 0.30303 0.387707 0.529061 0.113578 0.233333 class1
0 0.61809 0.721311 0.373737 0 0.52459 0.0508113 0.133333 class0
0.235294 0.427136 0.47541 0.222222 0.0579196 0.414307 0.0973527 0.116667 class0
0 0.422111 0.672131 0.313131 0.147754 0.5693 0.0661827 0.0333333 class0
0 0.728643 0 0 0 0.658718 0.235696 0.166667 class1
0 0.678392 0.557377 0.424242 0.295508 0.630402 0.122545 0.05 class1
0.0588235 0.698492 0.508197 0.414141 0.567376 0.606557 0.195559 0 class0
0 0.869347 0.639344 0.323232 0.313239 0.692996 0.461571 0.616667 class0
0.235294 0.497487 0.590164 0.171717 0 0.38152 0.0922289 0.116667 class0
0.470588 0.974874 0.655738 0 0 0.388972 0.201964 0.766667 class0
0.117647 0.417085 0.532787 0.282828 0.0780142 0.548435 0.235269 0.05 class0
0.117647 0.447236 0.737705 0.30303 0 0.499255 0.0913749 0.35 class0
0.235294 0.497487 0.557377 0.383838 0 0.488823 0.028608 0.2 class0
0.235294 0.628141 0.57377 0.181818 0.144208 0.4307 0.455167 0.4 class1
0.176471 0.40201 0 0 0 0 0.0409906 0.0166667 class0
0.352941 0.834171 0.606557 0 0 0.396423 0.0964987 0.75 class0
0.294118 0.552764 0.557377 0 0 0.387481 0.0913749 0.15 class0
0.117647 0.407035 0.590164 0.151515 0.0898345 0.448584 0.200256 0.0666667 class0
0.411765 0.979899 0.57377 0.333333 0.171395 0.374069 0.0362938 0.566667 class1
0.352941 0.773869 0.606557 0.323232 0.228132 0.436662 0.324936 0.3 class0
0.117647 0.58794 0.737705 0.191919 0.0839243 0.375559 0.100342 0 class0
0.176471 0.422111 0.590164 0.323232 0 0.554396 0.0807003 0.116667 class0
0.352941 0 0.557377 0.414141 0 0.581222 0.277114 0.333333 class1
0.411765 0.472362 0.52459 0.252525 0.0933806 0.496274 0.28181 0.333333 class0
0.176471 0.482412 0.639344 0.393939 0 0.555887 0.0683177 0.316667 class0
0.588235 0.376884 0.672131 0 0 0.496274 0.0789923 0.283333 class0
0 0.904523 0.737705 0.262626 0.106383 0.543964 0.100769 0.233333 class1
0.0588235 0.653266 0.491803 0.232323 0.200946 0.42623 0.262169 0 class0
0.117647 0.422111 0.409836 0.232323 0.0898345 0.453055 0.380017 0 class0
0.470588 0.603015 0.639344 0 0 0.372578 0.141332 0.716667 class0
0.705882 0.422111 0.590164 0.313131 0 0.442623 0.0935098 0.416667 class1
0 0.698492 0.508197 0.171717 0.248227 0.329359 0.0550811 0 class0
|
427076c32bb947df3186f899648ee90c16d99291 | 33f77c32fb16283501d950b6fc6b43a07914f32e | /scilab_autopilot/tuning/nrd.sce | 0a57bd97a8db7683397c7f52a1dadd8c9747be76 | [] | no_license | CLUBMODELISMECEADSTOULOUSE/autopilot | 26b79d6a2a632f08989a5528e82f553616617646 | a6ffae2f8a86fbc79e636ddd5173af104e1af9cd | refs/heads/master | 2021-01-21T00:59:06.271128 | 2015-10-25T09:31:54 | 2015-10-25T09:31:54 | 34,409,237 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,397 | sce | nrd.sce |
cd ../database
exec fsw.sce
exec dynamics.sce
exec motors.sce
cd ../tuning
exec modulator.sce
exec attitude.sce
exec navigation.sce
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// Generate the NRD
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// Dynamics
nrd.dynamics.mass = dynamics.mass;
nrd.dynamics.inertia = dynamics.inertia;
////////////////////////////////////////////////////////////////////////////////
// Modulator
// Influence Matrix
nrd.modulator.inflMat = round(modulator.inflMat * (2^fsw.SCALE_INFLUENCE_MATRIX * 2^fsw.SCALE_TORSOR) / (fsw.PWM_MAX - fsw.PWM_MIN));
// CAPA
nrd.modulator.frcMaxPos_B = round(modulator.frcMaxPos_B * 2^fsw.SCALE_TORSOR) ;
nrd.modulator.frcMaxNeg_B = round(modulator.frcMaxNeg_B * 2^fsw.SCALE_TORSOR) ;
nrd.modulator.trqMaxPos_B = round(modulator.trqMaxPos_B * 2^fsw.SCALE_TORSOR) ;
nrd.modulator.trqMaxNeg_B = round(modulator.trqMaxNeg_B * 2^fsw.SCALE_TORSOR) ;
// LUT
nrd.modulator.lutTrq = round(modulator.lutTrq * (fsw.PWM_MAX - fsw.PWM_MIN)) ;
nrd.modulator.lutFrc = round(modulator.lutFrc * (fsw.PWM_MAX - fsw.PWM_MIN)) ;
////////////////////////////////////////////////////////////////////////////////
// Attitude Controller
nrd.attitude.Kp = attitude.Kp;
nrd.attitude.Kd = attitude.Kd;
nrd.attitude.Ki = attitude.Ki;
nrd.attitude.maxI = attitude.maxDistTrq;
nrd.attitude.maxCosAngOverTwoErr = cos(attitude.maxCtrlErr/2) ;
nrd.attitude.maxSinAngOverTwoErr = sin(attitude.maxCtrlErr/2) ;
F = ss2tf(attitude.filter.F(1,1));
nrd.attitude.filterX.num = coeff(numer(F));
nrd.attitude.filterX.den = coeff(denom(F));
F = ss2tf(attitude.filter.F(2,2));
nrd.attitude.filterY.num = coeff(numer(F));
nrd.attitude.filterY.den = coeff(denom(F));
F = ss2tf(attitude.filter.F(3,3));
nrd.attitude.filterZ.num = coeff(numer(F));
nrd.attitude.filterZ.den = coeff(denom(F));
////////////////////////////////////////////////////////////////////////////////
// Navigation Controller
nrd.navigation.Kp = navigation.Kp ;
nrd.navigation.Kd = navigation.Kd ;
nrd.navigation.Ki = navigation.Ki ;
nrd.navigation.maxI = navigation.maxDistFrc ;
|
3d3153ae1091358581fc761da413394690773270 | 449d555969bfd7befe906877abab098c6e63a0e8 | /69/CH10/EX10.17/10_17.sce | cec544e0ddf32477dc321f9bd7487db3b1efebac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 220 | sce | 10_17.sce | clear; clc; close;
Rf = 360*10^(3);
R1 = 12*10^(3);
ro = 75;
A = 200*10^(3);
Beta = 1/30;
Acl = -Rf/R1;
Zi = R1;
Zo = ro/(1+Beta*A)
disp(Acl,'Acl = ');
disp(Zi,'Zi(Ohms) = ');
disp(Zo,'Zo(Ohms) = ');
|
01d9d2344b458ed3a683368cacffd796217bf0bf | 449d555969bfd7befe906877abab098c6e63a0e8 | /2702/CH5/EX5.11/Ex_5_11.sce | ad653aa3256cfedb4a96f56f08b53d3c67d0850d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 485 | sce | Ex_5_11.sce | // Exa 5.11
clc;
clear;
close;
// Given data
gm=2;// in mA/V
gm=gm*10^-3;// in A/V
r_d= 40;// in kohm
r_d= r_d*10^3;// in ohm
Rs= 3;// in kohm
Rs= Rs*10^3;// in ohm
miu= gm*r_d;
Bita=1;
Av= miu*Rs/(r_d+Rs);
D= 1+Bita*Av;
Avf= Av/D;
// Ri=infinite, so R_if = Ri*D = infinite
Rof= r_d/D;// in ohm
disp(Av,"Value of Av is : ")
disp(D,"Value of D is ")
disp(Avf,"Value of Avf is : ")
disp("Value of R_if is ")
disp("infinite")
disp(Rof,"Value of Rof in ohm is : ")
|
8af87691fa36b210ebc8b255288af622f16b436e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1703/CH1/EX1.2/1_2.sce | 3c5cee58eb349054e8b9fbf9c4c481bb0fa412bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 355 | sce | 1_2.sce | clear
clc
//initialisation of variables
w= 62.4 //lb/ft^3
A= 18 //ft^2
x= 6 //ft
kg= 6
y= 2 //ft
y1= 5 //ft
//CALCULATIONS
F= w*A*x
F1= F/2
Ft= (F*y-F1*(y1/2))/y1
Fb= F1-Ft
//RESULTS
printf ('Force exerted on the bolt = %.f lb',F1)
printf ('\n Force exerted on the hinge = %.f lb',Ft)
printf ('\n Force exerted on the bolt = %.f lb',Fb)
|
4a35f1ec55311d1681bcc9824e6e90ba14c89e59 | d465fcea94a1198464d7f8a912244e8a6dcf41f9 | /kMatlab/loader.sce | 2eee7deffcfd104b79beebb889736658fe39ca81 | [] | no_license | manasdas17/kiks-scilab | 4f4064ed7619cad9e2117a6c0040a51056c938ee | 37dc68914547c9d0f423008d44e973ba296de67b | refs/heads/master | 2021-01-15T14:18:21.918789 | 2009-05-11T05:43:11 | 2009-05-11T05:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 59 | sce | loader.sce | path=get_absolute_file_path("loader.sce")
load(path+"lib")
|
5d198e9e99396f7deec572432673a9d4f52cf4d0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH22/EX22.12/22Ex12.sce | e79861ae687e68551d89fb5c802da1ea9b867b1d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 22Ex12.sce | //chapter 22 Ex 12
clc;
clear;
close;
amt1=7350; n1=2; amt2=8575; n2=3;
rate=((amt2-amt1)/(n2-n1)/amt1)*100;
//let sum be Rs.x
Sum=amt1/(1+(rate/100))^n1;
mprintf("The sum is Rs.%.0f",Sum);
|
4be4aadb14ed052dc40605e51029ce6698055f39 | bb44d6eb6adf8f21077f2a49f2eb44d2424b2a5b | /poly_val.sci | 10c17a4f96e978ddc8a2a17a57acbf1d9a51109b | [] | no_license | prasadovhal/Scilab-Codes | c8ccc49feba4243d092d8a1eba7a708eb95dc89e | 3af5566d62b1f1b6cf080ec20391c39b9d61897d | refs/heads/master | 2020-03-29T16:50:45.738023 | 2018-09-24T16:05:50 | 2018-09-24T16:05:50 | 150,130,310 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 193 | sci | poly_val.sci | function [p]=poly_val(c0,c,x) //c0 ,p ,x are scalars , c is vector
siz = size(c)
N = siz(2)
for (i = 1:N)
c0 = c0 + c(i) * x.^(i)
end
p = c0
endfunction
|
4c0591ec8c63ebc9e869099e71ec6410b1ab0662 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3812/CH3/EX3.11/3_11.sce | 9762935e9e5aaaec079a8660e047a334d413da49 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 456 | sce | 3_11.sce | //example 3_11
//exponential fourier Series coefficient and corresponding spectra
clc;
clear;
close;
//Assume period of the impulse train T=2
T=2;
t=-5*T:T:5*T;
for i=1:length(t)
x(i)=1;
end
//Using shifting property of the impulse signal//
k=-10:10
for i=1:length(k)
ak(i)=1/T;
end
subplot(2,1,1)
plot(t,x,'.')
xtitle("Impulse train","t","x(t)")
subplot(2,1,2)
plot(k,ak,'.')
xtitle("Fourier coefficients of impulse train","k","ak")
|
7004196722e3f323d09637588f368b049b301667 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH3/EX1.3.13/Ex1_3_13.sce | d480c0f935f9fa04621755650914f2c412b4239c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 425 | sce | Ex1_3_13.sce | //Section-1,Example-3,Page no.AC-250
//To calculate alkalinity in terms of CaCO3.
clc;
N=1/50 //Normality of H2SO4
V_1=29 //Volume of 1/50N H2SO4 using phenolphthalien as indicator
V_2=500 //Volume of sample of water.
V_3=58 //Volume of 1/50N H2SO4 using methyl orange as indicator
N_P=(V_1/V_2)*N
P=N_P*50*1000
N_M=(V_3/V_2)*N
M=N_M*50*1000
//P=(1/2)M
disp(M,'Alkalinity due to (CO3)2-(ppm)')
|
e25782ee56e6d44367f6c333e469b9550566e7bd | fdffabe522d631a0964c00b5566713df90e84b8d | /Electrical Machines 2 (EE258)/Lab 2/labtask2_1.sci | b875787d15e0911fd6a7a74fc30963aaf15d967b | [] | no_license | mnaveenkumar2009/Electrical-and-Electronics-Engineering | aacf3ee8468ea46627162f3f939f257ba55577e1 | 874bcefc328ebe0793bcb8a4792611b26a2539a6 | refs/heads/master | 2021-07-12T10:59:32.859028 | 2020-07-06T16:40:33 | 2020-07-06T16:40:33 | 129,063,058 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 82 | sci | labtask2_1.sci | E = 230+0*%i;
f=50;
r=1;
x=5;
Rl=50;
I=(E)/(r+x*%i+Rl);
disp("I is :");disp(I);
|
f645c5835727fcd4fd940df6e41b270a33f684f8 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/G02.prev.tst | 5b132feceed8467db6ab1571c4d640ccb36ccdd4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 21 | tst | G02.prev.tst | S(x^2 + 1, x) = x^3
|
15cb5cdb9863e29dd17bcc1932e1428cad7fc629 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1118/CH14/EX14.3/eg14_3.sce | 108f089d4a48ffb71e3b42646e4b4ca2f8b997a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 428 | sce | eg14_3.sce | clear;
clc;
y= [- 12*(%i) (%i)*5 0 (%i)*2 (%i)*5;5*(%i) -(%i)*9 (%i)*4 0 0;0 4*(%i) -(%i)*7.33 (%i)*3.33 0;(%i)*2 0 3.33*(%i) -(%i)*9.33 (%i)*4;5*(%i) 0 0 (%i)*4 -(%i)*9];
Y=y;
i=3;
j=5;
k=1;
l=3;
z35=(%i)*.05;
z13=(%i)*.01;
y(k,l)=1/z13;
y(i,j)=1/z35;
y(k,k)=Y(k,k)+y(k,i);
y(i,i)=Y(i,i)+y(i,j)+y(k,i);
y(j,j)=Y(j,j)+y(l,j);
y(i,j)=-y(i,j);
y(j,i)=y(i,j);
y(k,l)=-y(k,l);
y(l,k)=y(k,l);
disp(y)
|
743caf7028e2425a9bd86797d8281df44fee6c57 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH43/EX43.9/Example43_9.sce | fa0ce06e7d98a1e0b56ef954893cd5559c03c700 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,191 | sce | Example43_9.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART IV : UTILIZATION AND TRACTION
// CHAPTER 5: ELECTRIC TRACTION-SPEED TIME CURVES AND MECHANICS OF TRAIN MOVEMENT
// EXAMPLE : 5.9 :
// Page number 783
clear ; clc ; close ; // Clear the work space and console
// Given data
V_A = 48.0 // Speed(kmph)
t_1 = 24.0 // Time taken to accelerate from rest to speed(sec)
t_2 = 69.0 // Coasting time(sec)
r = 58.0 // Constant resistance(N/tonne)
beta = 3.3 // Retardation(km phps)
t_3 = 11.0 // Retardation time(sec)
t_iii_a = 20.0 // Station stop time(sec)
t_iii_b = 15.0 // Station stop time(sec)
I = 10.0 // Rotational inertia(%)
// Calculations
alpha = V_A/t_1 // Acceleration(km phps)
V_B = beta*t_3 // Speed at B(km phps)
beta_c = (V_A-V_B)/t_2 // Retardation during coasting(km phps)
distance_acc = 1.0/2*t_1*V_A/3600 // Distance covered during acceleration(km)
distance_coasting = (V_A**2-V_B**2)/(2*beta_c*3600) // Distance covered during coasting(km)
distance_braking = t_3*V_B/(3600*2) // Distance covered during braking(km)
distance_total = distance_acc+distance_coasting+distance_braking // Total distance(km)
speed_iii_a = distance_total*3600/(t_1+t_2+t_3+t_iii_a) // Scheduled speed with a stop of 20 sec(kmph)
speed_iii_b = distance_total*3600/(t_1+t_2+t_3+t_iii_b) // Scheduled speed with a stop of 15 sec(kmph)
// Results
disp("PART IV - EXAMPLE : 5.9 : SOLUTION :-")
printf("\nCase(i) : Acceleration, α = %.f km phps", alpha)
printf("\nCase(ii) : Coasting retardation, β_c = %.2f km phps", beta_c)
printf("\nCase(iii): Scheduled speed with a stop of 20 seconds = %.2f kmph", speed_iii_a)
printf("\n Scheduled speed with a stop of 15 seconds = %.2f kmph\n", speed_iii_b)
printf("\nNOTE: ERROR: Calculation mistakes in the textbook solution")
|
b601e5fe4aa3731aecdcb23e6a34a0a30789a381 | 449d555969bfd7befe906877abab098c6e63a0e8 | /68/CH5/EX5.17/ex17.sce | 603668a017ae10f675a498c842f57fd9d2a1a655 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 946 | sce | ex17.sce | // Example 5.17 : Amplifier parameters
// Transistor amplifier is having a open circuit voltage of v_sig of 10mV
v_sig=10*10^-3; // (V)
R_L=10*10^3; // (ohm)
R_sig=100*10^3; // (ohm)
disp("Calculation with R_L infinite")
v_i=9; // (V)
v_o=90; // (V)
A_vo=v_o/v_i;
disp(A_vo,"A_vo (V/V)")
G_vo=v_o/A_vo;
disp(G_vo,"G_vo (V/V)")
R_i=G_vo*R_sig/(A_vo-G_vo)
disp(R_i,"R_i (ohm)")
disp("Calculations with R_L = 10k ohm")
v_o=70*10^-3; // (V)
v_i=8*10^-3; // (V)
A_v=v_o/v_i;
disp(A_v,"Voltage gain A_v (V/V)")
G_v=v_o*10^3/10;
disp(G_v,"G_v (V/V)")
R_o=(A_vo-A_v)*R_L/A_v;
disp(R_o,"R_o (ohm)")
R_out=(G_vo-G_v)*R_L/G_v;
disp(R_out,"R_out (ohm)")
R_in=v_i*R_sig/(v_sig-v_i);
disp(R_in,"R_in (ohm)")
G_m=A_vo/R_o;
disp(G_m,"G_m (A/V)")
A_i=A_v*R_in/R_L;
disp(A_i,"A_i (A/A)")
R_ino=R_sig/((1+R_sig/R_i)*(R_out/R_o)-1); // R_ino is R_in at R_L=0
disp(R_ino,"R_in at R_L =0")
A_is=A_vo*R_ino/R_o;
disp(A_is,"A_is (A/A)") |
ced01453f326561482bd340a4ab8341ea2f28626 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2915/CH1/EX1.21/Ex1_21.sce | fa30b4911adb9e0c15205f5252c308840c644d48 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 765 | sce | Ex1_21.sce | clc,clear
//Example 1.21
//To find values of all trigonometric values of given angle of 225
theta=225 ;//given angle in degree
//Consider a point (-1,-1) in 3rd quadrant
//This point can be used on terminal side of 225
//Thus for a basic right angled triangle formed in 3rd quadrant
adjacent = 1 ;
opposite = 1 ;
//by pythagoras theorem
hypotenuse = sqrt(adjacent^2 + opposite^2) ;
//since its third quadrant
x=-adjacent ;
y=-opposite ;
r=hypotenuse ;
sin_225 =y/r ;
cos_225 =x/r ;
tan_225 =y/x ;
csc_225 =r/y ;
sec_225 =r/x ;
cot_225 =x/y ;
printf('\nsin(%d)= %f ; cos(%d)= %f ; tan(%d)= %f ;',theta,sin_225,theta,cos_225,theta,tan_225)
printf('\ncsc(%d)= %f ; sec(%d)= %f ; cot(%d)= %f ;',theta,csc_225,theta,sec_225,theta,cot_225)
|
af74fc81eb042ff09c45e9d602a6eeaa943f1f3e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2627/CH11/EX2.18/Ex_B_2_18.sce | 5a1eb167c0441bc1d57a55f754570d5b93f7dc60 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 236 | sce | Ex_B_2_18.sce | //Part B Ex 2.18
clc;clear;close;
format('v',7);
bin='111011011000100';//given binary value
dec=bin2dec(bin);//equivalent decimal value
hex=dec2hex(dec);//equivalent hexadecimal value
disp(hex,"Equivalent hexadecimal value is");
|
204c76e0dea4760e87aa404549d1b97dbb9deba9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /680/CH13/EX13.10/13_10.sce | 4e3835ed48110676b2f4571a5393f71d4bd8578d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 349 | sce | 13_10.sce | //Problem 13.10:
//initializing the variables:
Tk = 1394.3; // in K
//calculation:
//from problem 13.09
//lnK = (-33722/T) + 1.560*lnT - 0.00181*T + 2.42E-7*T^2 + 0.4509
K = %e^((-1*33722)/Tk + 1.560*log(Tk) - 0.00181*Tk + 2.42E-7*Tk^2 + 0.4509)
printf("\n\nResult\n\n")
printf("\n chemical reaction equilibrium constant K is %.2E",K) |
1d1d67b541c62f194437df6f94795e1a799700f2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1952/CH1/EX1.4/Ex1_4.sce | f04b8d50ca27d22d16e355b006888b676b096f54 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 367 | sce | Ex1_4.sce | // chapter 1 , Example1 4 , pg 22
lam=2*0.55*10^-3 //distance between 2 antinodes is lam/2 (in m)
n=1.45*10^6 //frequency of crystal(in Hz) (given) they have taken n=1.5 Hz in calculation
v=n*lam //velocity
printf("velocity of waves in sea water\n")
printf("v=%.1f m/s",v)
//sum is solved using n=1.5 Hz while the frequency given is n=1.45 Hz
|
f28838ca596fd30f5eea775df0ee4b0736e9e67f | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/ZA91RHW/ATWM1_Working_Memory_MEG_ZA91RHW_Session1/ATWM1_Working_Memory_MEG_Nonsalient_Uncued_Run1.sce | 912090c25c32f001ffc7bf8509de50e87a4e3441 | [] | no_license | atwm1/Presentation | 65c674180f731f050aad33beefffb9ba0caa6688 | 9732a004ca091b184b670c56c55f538ff6600c08 | refs/heads/master | 2020-04-15T14:04:41.900640 | 2020-02-14T16:10:11 | 2020-02-14T16:10:11 | 56,771,016 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 48,618 | sce | ATWM1_Working_Memory_MEG_Nonsalient_Uncued_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;
44 62 292 292 399 125 1992 2992 2392 fixation_cross gabor_148 gabor_126 gabor_098 gabor_065 gabor_148_alt gabor_126 gabor_098_alt gabor_065 "1_1_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2400_gabor_patch_orientation_148_126_098_065_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_065_framed blank blank blank blank fixation_cross_white "1_1_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2192 2992 1992 fixation_cross gabor_017 gabor_175 gabor_142 gabor_037 gabor_017_alt gabor_175_alt gabor_142 gabor_037 "1_2_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2000_gabor_patch_orientation_017_175_142_037_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_097_framed gabor_circ blank blank blank blank fixation_cross_white "1_2_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_097_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2242 2992 2442 fixation_cross gabor_023 gabor_006 gabor_084 gabor_064 gabor_023 gabor_006_alt gabor_084_alt gabor_064 "1_3_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2450_gabor_patch_orientation_023_006_084_064_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_112_framed blank blank blank blank fixation_cross_white "1_3_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1792 2992 2592 fixation_cross gabor_179 gabor_036 gabor_113 gabor_096 gabor_179 gabor_036_alt gabor_113 gabor_096_alt "1_4_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2600_gabor_patch_orientation_179_036_113_096_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_160_framed gabor_circ blank blank blank blank fixation_cross_white "1_4_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_160_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1992 2992 2292 fixation_cross gabor_134 gabor_002 gabor_021 gabor_155 gabor_134_alt gabor_002 gabor_021_alt gabor_155 "1_5_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2300_gabor_patch_orientation_134_002_021_155_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_155_framed blank blank blank blank fixation_cross_white "1_5_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_155_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2042 2992 2192 fixation_cross gabor_119 gabor_163 gabor_008 gabor_098 gabor_119 gabor_163 gabor_008_alt gabor_098_alt "1_6_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2200_gabor_patch_orientation_119_163_008_098_target_position_1_2_retrieval_position_1" gabor_073_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_6_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_073_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 63 292 292 399 125 2242 2992 2592 fixation_cross gabor_008 gabor_082 gabor_114 gabor_162 gabor_008_alt gabor_082_alt gabor_114 gabor_162 "1_7_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2250_3000_2600_gabor_patch_orientation_008_082_114_162_target_position_3_4_retrieval_position_2" gabor_circ gabor_131_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_7_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_131_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1742 2992 2092 fixation_cross gabor_023 gabor_089 gabor_177 gabor_154 gabor_023 gabor_089_alt gabor_177_alt gabor_154 "1_8_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2100_gabor_patch_orientation_023_089_177_154_target_position_1_4_retrieval_position_1" gabor_023_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_8_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_023_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 64 292 292 399 125 1892 2992 2242 fixation_cross gabor_131 gabor_048 gabor_176 gabor_109 gabor_131_alt gabor_048 gabor_176_alt gabor_109 "1_9_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1900_3000_2250_gabor_patch_orientation_131_048_176_109_target_position_2_4_retrieval_position_1" gabor_131_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_9_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_131_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1892 2992 1892 fixation_cross gabor_109 gabor_001 gabor_072 gabor_029 gabor_109 gabor_001 gabor_072_alt gabor_029_alt "1_10_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_1900_gabor_patch_orientation_109_001_072_029_target_position_1_2_retrieval_position_1" gabor_109_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_10_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_109_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2042 2992 1942 fixation_cross gabor_085 gabor_070 gabor_051 gabor_112 gabor_085_alt gabor_070_alt gabor_051 gabor_112 "1_11_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_1950_gabor_patch_orientation_085_070_051_112_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_002_framed gabor_circ blank blank blank blank fixation_cross_white "1_11_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_002_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1792 2992 2242 fixation_cross gabor_071 gabor_092 gabor_177 gabor_015 gabor_071_alt gabor_092 gabor_177 gabor_015_alt "1_12_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2250_gabor_patch_orientation_071_092_177_015_target_position_2_3_retrieval_position_2" gabor_circ gabor_092_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_12_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1742 2992 1992 fixation_cross gabor_094 gabor_060 gabor_076 gabor_004 gabor_094 gabor_060_alt gabor_076 gabor_004_alt "1_13_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2000_gabor_patch_orientation_094_060_076_004_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_076_framed gabor_circ blank blank blank blank fixation_cross_white "1_13_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_076_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2142 2992 2492 fixation_cross gabor_019 gabor_143 gabor_161 gabor_125 gabor_019_alt gabor_143 gabor_161_alt gabor_125 "1_14_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2500_gabor_patch_orientation_019_143_161_125_target_position_2_4_retrieval_position_2" gabor_circ gabor_093_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_14_Retrieval_Working_Memory_MEG_P8_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;
44 61 292 292 399 125 1942 2992 2492 fixation_cross gabor_060 gabor_112 gabor_138 gabor_087 gabor_060_alt gabor_112 gabor_138 gabor_087_alt "1_15_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2500_gabor_patch_orientation_060_112_138_087_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_003_framed gabor_circ blank blank blank blank fixation_cross_white "1_15_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_003_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1842 2992 2142 fixation_cross gabor_108 gabor_178 gabor_070 gabor_123 gabor_108 gabor_178_alt gabor_070_alt gabor_123 "1_16_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2150_gabor_patch_orientation_108_178_070_123_target_position_1_4_retrieval_position_1" gabor_108_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_16_Retrieval_Working_Memory_MEG_P8_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;
44 63 292 292 399 125 2092 2992 2142 fixation_cross gabor_052 gabor_003 gabor_170 gabor_081 gabor_052 gabor_003 gabor_170_alt gabor_081_alt "1_17_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2100_3000_2150_gabor_patch_orientation_052_003_170_081_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_033_framed gabor_circ blank blank blank blank fixation_cross_white "1_17_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_033_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2142 2992 1942 fixation_cross gabor_062 gabor_147 gabor_007 gabor_025 gabor_062_alt gabor_147 gabor_007 gabor_025_alt "1_18_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_1950_gabor_patch_orientation_062_147_007_025_target_position_2_3_retrieval_position_2" gabor_circ gabor_097_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_18_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_097_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2092 2992 2592 fixation_cross gabor_169 gabor_141 gabor_008 gabor_029 gabor_169 gabor_141 gabor_008_alt gabor_029_alt "1_19_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2600_gabor_patch_orientation_169_141_008_029_target_position_1_2_retrieval_position_1" gabor_119_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_19_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_119_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 63 292 292 399 125 2242 2992 2492 fixation_cross gabor_155 gabor_004 gabor_084 gabor_027 gabor_155_alt gabor_004_alt gabor_084 gabor_027 "1_20_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2250_3000_2500_gabor_patch_orientation_155_004_084_027_target_position_3_4_retrieval_position_2" gabor_circ gabor_139_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_20_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_139_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1892 2992 2292 fixation_cross gabor_027 gabor_142 gabor_057 gabor_074 gabor_027_alt gabor_142 gabor_057 gabor_074_alt "1_21_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2300_gabor_patch_orientation_027_142_057_074_target_position_2_3_retrieval_position_2" gabor_circ gabor_095_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_21_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 2142 2992 2542 fixation_cross gabor_166 gabor_148 gabor_092 gabor_030 gabor_166 gabor_148 gabor_092_alt gabor_030_alt "1_22_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2550_gabor_patch_orientation_166_148_092_030_target_position_1_2_retrieval_position_1" gabor_166_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_22_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_166_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 2192 2992 2392 fixation_cross gabor_147 gabor_010 gabor_125 gabor_173 gabor_147 gabor_010_alt gabor_125 gabor_173_alt "1_23_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2400_gabor_patch_orientation_147_010_125_173_target_position_1_3_retrieval_position_1" gabor_147_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_23_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_147_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 2042 2992 2142 fixation_cross gabor_081 gabor_021 gabor_164 gabor_056 gabor_081_alt gabor_021_alt gabor_164 gabor_056 "1_24_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2150_gabor_patch_orientation_081_021_164_056_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_056_framed blank blank blank blank fixation_cross_white "1_24_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_056_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 2042 2992 2342 fixation_cross gabor_065 gabor_020 gabor_127 gabor_173 gabor_065 gabor_020 gabor_127_alt gabor_173_alt "1_25_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2350_gabor_patch_orientation_065_020_127_173_target_position_1_2_retrieval_position_2" gabor_circ gabor_020_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_25_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_020_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 64 292 292 399 125 2092 2992 1992 fixation_cross gabor_050 gabor_116 gabor_026 gabor_180 gabor_050 gabor_116_alt gabor_026_alt gabor_180 "1_26_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2100_3000_2000_gabor_patch_orientation_050_116_026_180_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_026_framed gabor_circ blank blank blank blank fixation_cross_white "1_26_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_026_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1992 2992 1892 fixation_cross gabor_101 gabor_066 gabor_154 gabor_085 gabor_101_alt gabor_066_alt gabor_154 gabor_085 "1_27_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_101_066_154_085_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_039_framed blank blank blank blank fixation_cross_white "1_27_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_039_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1842 2992 2092 fixation_cross gabor_007 gabor_144 gabor_071 gabor_178 gabor_007_alt gabor_144 gabor_071_alt gabor_178 "1_28_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2100_gabor_patch_orientation_007_144_071_178_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_178_framed blank blank blank blank fixation_cross_white "1_28_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_178_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 63 292 292 399 125 1942 2992 1942 fixation_cross gabor_037 gabor_179 gabor_106 gabor_122 gabor_037 gabor_179_alt gabor_106 gabor_122_alt "1_29_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1950_3000_1950_gabor_patch_orientation_037_179_106_122_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_072_framed blank blank blank blank fixation_cross_white "1_29_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_072_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2192 2992 2442 fixation_cross gabor_082 gabor_124 gabor_147 gabor_104 gabor_082 gabor_124 gabor_147_alt gabor_104_alt "1_30_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2450_gabor_patch_orientation_082_124_147_104_target_position_1_2_retrieval_position_2" gabor_circ gabor_169_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_30_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_169_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2042 2992 2392 fixation_cross gabor_037 gabor_113 gabor_067 gabor_173 gabor_037 gabor_113_alt gabor_067_alt gabor_173 "1_31_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2050_3000_2400_gabor_patch_orientation_037_113_067_173_target_position_1_4_retrieval_position_1" gabor_086_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_31_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_086_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 2242 2992 2542 fixation_cross gabor_131 gabor_048 gabor_004 gabor_168 gabor_131_alt gabor_048 gabor_004 gabor_168_alt "1_32_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2550_gabor_patch_orientation_131_048_004_168_target_position_2_3_retrieval_position_2" gabor_circ gabor_048_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_32_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_048_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1792 2992 2092 fixation_cross gabor_013 gabor_033 gabor_155 gabor_139 gabor_013_alt gabor_033 gabor_155_alt gabor_139 "1_33_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2100_gabor_patch_orientation_013_033_155_139_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_139_framed blank blank blank blank fixation_cross_white "1_33_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_139_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 2142 2992 2092 fixation_cross gabor_166 gabor_137 gabor_010 gabor_119 gabor_166 gabor_137 gabor_010_alt gabor_119_alt "1_34_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2100_gabor_patch_orientation_166_137_010_119_target_position_1_2_retrieval_position_2" gabor_circ gabor_137_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_34_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_137_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 63 292 292 399 125 2142 2992 2192 fixation_cross gabor_144 gabor_116 gabor_078 gabor_165 gabor_144 gabor_116_alt gabor_078_alt gabor_165 "1_35_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2150_3000_2200_gabor_patch_orientation_144_116_078_165_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_033_framed gabor_circ blank blank blank blank fixation_cross_white "1_35_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_033_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2242 2992 1942 fixation_cross gabor_098 gabor_066 gabor_131 gabor_115 gabor_098 gabor_066_alt gabor_131_alt gabor_115 "1_36_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_1950_gabor_patch_orientation_098_066_131_115_target_position_1_4_retrieval_position_1" gabor_148_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_36_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_148_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1942 2992 2092 fixation_cross gabor_174 gabor_031 gabor_097 gabor_112 gabor_174_alt gabor_031 gabor_097_alt gabor_112 "1_37_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1950_3000_2100_gabor_patch_orientation_174_031_097_112_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_112_framed blank blank blank blank fixation_cross_white "1_37_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1892 2992 1992 fixation_cross gabor_037 gabor_143 gabor_015 gabor_059 gabor_037_alt gabor_143 gabor_015 gabor_059_alt "1_38_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2000_gabor_patch_orientation_037_143_015_059_target_position_2_3_retrieval_position_2" gabor_circ gabor_143_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_38_Retrieval_Working_Memory_MEG_P8_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;
44 61 292 292 399 125 2192 2992 2342 fixation_cross gabor_002 gabor_051 gabor_115 gabor_177 gabor_002 gabor_051_alt gabor_115 gabor_177_alt "1_39_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2350_gabor_patch_orientation_002_051_115_177_target_position_1_3_retrieval_position_1" gabor_137_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_39_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_137_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1792 2992 2042 fixation_cross gabor_107 gabor_174 gabor_022 gabor_042 gabor_107 gabor_174 gabor_022_alt gabor_042_alt "1_40_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2050_gabor_patch_orientation_107_174_022_042_target_position_1_2_retrieval_position_2" gabor_circ gabor_129_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_40_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_129_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 2092 2992 2442 fixation_cross gabor_042 gabor_069 gabor_152 gabor_087 gabor_042 gabor_069_alt gabor_152 gabor_087_alt "1_41_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2450_gabor_patch_orientation_042_069_152_087_target_position_1_3_retrieval_position_1" gabor_042_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_41_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_042_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 63 292 292 399 125 1942 2992 2592 fixation_cross gabor_127 gabor_146 gabor_174 gabor_019 gabor_127_alt gabor_146 gabor_174 gabor_019_alt "1_42_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1950_3000_2600_gabor_patch_orientation_127_146_174_019_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_066_framed blank blank blank blank fixation_cross_white "1_42_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_066_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1792 2992 2542 fixation_cross gabor_133 gabor_151 gabor_001 gabor_112 gabor_133 gabor_151_alt gabor_001_alt gabor_112 "1_43_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2550_gabor_patch_orientation_133_151_001_112_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_112_framed blank blank blank blank fixation_cross_white "1_43_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 64 292 292 399 125 1742 2992 2142 fixation_cross gabor_068 gabor_084 gabor_029 gabor_008 gabor_068 gabor_084 gabor_029_alt gabor_008_alt "1_44_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1750_3000_2150_gabor_patch_orientation_068_084_029_008_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_008_framed blank blank blank blank fixation_cross_white "1_44_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_008_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1842 2992 2342 fixation_cross gabor_050 gabor_026 gabor_172 gabor_089 gabor_050 gabor_026_alt gabor_172_alt gabor_089 "1_45_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_050_026_172_089_target_position_1_4_retrieval_position_1" gabor_001_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_45_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_001_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1742 2992 2392 fixation_cross gabor_022 gabor_093 gabor_004 gabor_135 gabor_022_alt gabor_093 gabor_004 gabor_135_alt "1_46_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2400_gabor_patch_orientation_022_093_004_135_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_053_framed gabor_circ blank blank blank blank fixation_cross_white "1_46_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_053_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1842 2992 2192 fixation_cross gabor_083 gabor_006 gabor_057 gabor_024 gabor_083 gabor_006_alt gabor_057_alt gabor_024 "1_47_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2200_gabor_patch_orientation_083_006_057_024_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_024_framed blank blank blank blank fixation_cross_white "1_47_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_024_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 2092 2992 2242 fixation_cross gabor_055 gabor_096 gabor_024 gabor_161 gabor_055 gabor_096_alt gabor_024 gabor_161_alt "1_48_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2250_gabor_patch_orientation_055_096_024_161_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_024_framed gabor_circ blank blank blank blank fixation_cross_white "1_48_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_024_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 64 292 292 399 125 1742 2992 2242 fixation_cross gabor_045 gabor_094 gabor_164 gabor_017 gabor_045_alt gabor_094 gabor_164_alt gabor_017 "1_49_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1750_3000_2250_gabor_patch_orientation_045_094_164_017_target_position_2_4_retrieval_position_1" gabor_045_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_49_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_045_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1742 2992 2492 fixation_cross gabor_130 gabor_092 gabor_160 gabor_052 gabor_130 gabor_092_alt gabor_160 gabor_052_alt "1_50_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2500_gabor_patch_orientation_130_092_160_052_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_160_framed gabor_circ blank blank blank blank fixation_cross_white "1_50_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_160_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1742 2992 1892 fixation_cross gabor_139 gabor_051 gabor_070 gabor_111 gabor_139_alt gabor_051 gabor_070_alt gabor_111 "1_51_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_1900_gabor_patch_orientation_139_051_070_111_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_111_framed blank blank blank blank fixation_cross_white "1_51_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_111_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1942 2992 2042 fixation_cross gabor_132 gabor_152 gabor_018 gabor_043 gabor_132_alt gabor_152 gabor_018_alt gabor_043 "1_52_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1950_3000_2050_gabor_patch_orientation_132_152_018_043_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_043_framed blank blank blank blank fixation_cross_white "1_52_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_043_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1892 2992 1992 fixation_cross gabor_084 gabor_038 gabor_056 gabor_118 gabor_084_alt gabor_038 gabor_056 gabor_118_alt "1_53_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2000_gabor_patch_orientation_084_038_056_118_target_position_2_3_retrieval_position_2" gabor_circ gabor_173_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_53_Retrieval_Working_Memory_MEG_P8_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;
44 63 292 292 399 125 1992 2992 2292 fixation_cross gabor_090 gabor_105 gabor_138 gabor_072 gabor_090_alt gabor_105_alt gabor_138 gabor_072 "1_54_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2000_3000_2300_gabor_patch_orientation_090_105_138_072_target_position_3_4_retrieval_position_2" gabor_circ gabor_056_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_54_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_056_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1992 2992 2542 fixation_cross gabor_094 gabor_044 gabor_067 gabor_150 gabor_094_alt gabor_044 gabor_067_alt gabor_150 "1_55_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2550_gabor_patch_orientation_094_044_067_150_target_position_2_4_retrieval_position_2" gabor_circ gabor_044_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_55_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_044_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1992 2992 2192 fixation_cross gabor_017 gabor_172 gabor_131 gabor_105 gabor_017 gabor_172_alt gabor_131 gabor_105_alt "1_56_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2000_3000_2200_gabor_patch_orientation_017_172_131_105_target_position_1_3_retrieval_position_1" gabor_152_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_56_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_152_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2192 2992 2242 fixation_cross gabor_005 gabor_027 gabor_132 gabor_074 gabor_005 gabor_027_alt gabor_132 gabor_074_alt "1_57_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2250_gabor_patch_orientation_005_027_132_074_target_position_1_3_retrieval_position_1" gabor_050_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_57_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_050_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1842 2992 2292 fixation_cross gabor_076 gabor_045 gabor_118 gabor_166 gabor_076 gabor_045 gabor_118_alt gabor_166_alt "1_58_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2300_gabor_patch_orientation_076_045_118_166_target_position_1_2_retrieval_position_2" gabor_circ gabor_092_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_58_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2092 2992 1942 fixation_cross gabor_171 gabor_104 gabor_089 gabor_119 gabor_171 gabor_104_alt gabor_089 gabor_119_alt "1_59_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_1950_gabor_patch_orientation_171_104_089_119_target_position_1_3_retrieval_position_1" gabor_035_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_59_Retrieval_Working_Memory_MEG_P8_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;
44 61 292 292 399 125 1892 2992 2192 fixation_cross gabor_020 gabor_134 gabor_094 gabor_167 gabor_020 gabor_134_alt gabor_094 gabor_167_alt "1_60_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2200_gabor_patch_orientation_020_134_094_167_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_049_framed gabor_circ blank blank blank blank fixation_cross_white "1_60_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_049_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1842 2992 2042 fixation_cross gabor_170 gabor_012 gabor_080 gabor_050 gabor_170_alt gabor_012 gabor_080 gabor_050_alt "1_61_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2050_gabor_patch_orientation_170_012_080_050_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_080_framed gabor_circ blank blank blank blank fixation_cross_white "1_61_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_080_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 64 292 292 399 125 2192 2992 2442 fixation_cross gabor_037 gabor_097 gabor_115 gabor_160 gabor_037 gabor_097_alt gabor_115_alt gabor_160 "1_62_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2200_3000_2450_gabor_patch_orientation_037_097_115_160_target_position_1_4_retrieval_position_2" gabor_circ gabor_097_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_62_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_097_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1842 2992 2142 fixation_cross gabor_084 gabor_038 gabor_126 gabor_104 gabor_084_alt gabor_038_alt gabor_126 gabor_104 "1_63_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2150_gabor_patch_orientation_084_038_126_104_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_056_framed blank blank blank blank fixation_cross_white "1_63_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_056_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1942 2992 2042 fixation_cross gabor_115 gabor_130 gabor_047 gabor_002 gabor_115 gabor_130_alt gabor_047 gabor_002_alt "1_64_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2050_gabor_patch_orientation_115_130_047_002_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_092_framed gabor_circ blank blank blank blank fixation_cross_white "1_64_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 1792 2992 2342 fixation_cross gabor_155 gabor_068 gabor_049 gabor_014 gabor_155_alt gabor_068 gabor_049 gabor_014_alt "1_65_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2350_gabor_patch_orientation_155_068_049_014_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_097_framed gabor_circ blank blank blank blank fixation_cross_white "1_65_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_097_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 1892 2992 1892 fixation_cross gabor_138 gabor_073 gabor_007 gabor_026 gabor_138_alt gabor_073_alt gabor_007 gabor_026 "1_66_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_1900_gabor_patch_orientation_138_073_007_026_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_007_framed gabor_circ blank blank blank blank fixation_cross_white "1_66_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_007_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 61 292 292 399 125 2142 2992 2292 fixation_cross gabor_080 gabor_006 gabor_159 gabor_036 gabor_080 gabor_006_alt gabor_159 gabor_036_alt "1_67_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2300_gabor_patch_orientation_080_006_159_036_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_112_framed gabor_circ blank blank blank blank fixation_cross_white "1_67_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 64 292 292 399 125 2242 2992 2342 fixation_cross gabor_159 gabor_054 gabor_031 gabor_075 gabor_159_alt gabor_054_alt gabor_031 gabor_075 "1_68_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2250_3000_2350_gabor_patch_orientation_159_054_031_075_target_position_3_4_retrieval_position_1" gabor_159_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_68_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_159_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 62 292 292 399 125 2042 2992 2042 fixation_cross gabor_042 gabor_005 gabor_154 gabor_128 gabor_042 gabor_005 gabor_154_alt gabor_128_alt "1_69_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_042_005_154_128_target_position_1_2_retrieval_position_1" gabor_042_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_69_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_042_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
44 64 292 292 399 125 1792 2992 1892 fixation_cross gabor_152 gabor_126 gabor_171 gabor_094 gabor_152_alt gabor_126 gabor_171_alt gabor_094 "1_70_Encoding_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1800_3000_1900_gabor_patch_orientation_152_126_171_094_target_position_2_4_retrieval_position_1" gabor_152_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_70_Retrieval_Working_Memory_MEG_P8_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_152_retrieval_position_1" 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;
}; |
d8472356a64e92fe5abd7bc362db80924b11fe13 | 449d555969bfd7befe906877abab098c6e63a0e8 | /104/CH2/EX2.14/2_14.sce | 0b7693255b90b4a1efc92b23b40979874882b8ad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 233 | sce | 2_14.sce | //equality of matrices
A=[1 2;3 4]
B=[1 2;3 4]
x=1;
for i=1:2
for j=1:2
if A(i,j)~=B(i,j) then
x=0
end
end
end
if x==1 then
disp("matrices are equal")
else
disp("matrices are not equal")
end
|
8795decf8d0d65468e5243194d0f5416ad2c039f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1892/CH1/EX1.58/Example1_58.sce | 5ecdd8af4672b3348ad873ac8feacd77aba6152f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 502 | sce | Example1_58.sce | // Example 1.58
clear; clc; close;
format('v',7);
// Given data
IscByIfl=3*180/100;//ratio
TstByTfl=0.35;//ratio
X=80/100;//tapping
//Calculations
//Formula : TstByTfl=1/3*(IscByIfl^2)*Sfl
Sfl=TstByTfl/IscByIfl^2*3;//slip at full load
IstByIsc=X^2;//ratio
IstByIfl=IstByIsc*IscByIfl;//ratio
disp("Starting current is "+string(IstByIfl)+" times of full load current.");
TstByTfl=X^2*IscByIfl^2*Sfl;//ratio
disp("Starting torque is "+string(TstByTfl*100)+"% of full load torque.");
|
699b3629dc3ab2939b7893a7abb104ede05c5181 | fa96b6f7b84fc275c3bc6a2ec1413711285aa54a | /Representation of image regions using Co-occurrence Matrix/Representation of image regions using Co-occurrence Matrix.sce | 14ee500072097e08c2d8d5c4c1686165e6cca32f | [] | no_license | Sid-149/Image-Processing-and-Machine-Vision | 9d4d4308b39d7bd3fb0ab8171531fbbfe4381de9 | 94bb83e4005b39c2f08d15e23c5be73cde01b364 | refs/heads/main | 2022-12-30T01:51:08.942675 | 2020-10-19T05:15:12 | 2020-10-19T05:15:12 | 302,541,282 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 838 | sce | Representation of image regions using Co-occurrence Matrix.sce | im=[0 0 1 1 2 1;1 2 1 1 2 0;1 1 0 0 2 2;1 0 2 0 2 2;2 1 1 1 2 0];
[r c]=size(im);
min_im=min(min(im));
max_im=max(max(im));
out=zeros(max_im-min_im+1);
P_x=0;
P_y=1;
dist=1;
P_x=P_x*dist;
P_y=P_y*dist;
Ci=0;
Cj=0;
for i=min_im:max_im
Ci=Ci+1;
Cj=0;
[x1 y1]=find(im==i);
x1=x1+P_x;
y1=y1+P_y;
for j=min_im:max_im
Cj=Cj+1;
[x2 y2]=find(im==j);
count=0;
for m=1:length(x1)
for n=1:length(x2)
if((x1(m)==x2(n))&&(y1(m)==y2(n)))
count=count+1;
end
end
end
out(Ci,Cj)=count;
end
end
disp(out)
out=out/sum(out(:));
disp(out)
subplot(1,2,1)
title('Orginal Image');
imshow(im);
subplot(1,2,2)
title('Co-occurence Matrix Image');
imshow(out);
|
196b8dbb3d31740310e7bacf7398bb0fb9eec182 | 61129043aed87983b640a33b1c260316043fa570 | /ui/loader.sce | 67213266a4cacc6a7d3abd5ce055e5f404afd623 | [] | no_license | dgerod/gfx4scilab | 7643dbb42fcbea772af12017dccf484544da6f79 | 4aafc59f241a9383de65e4fb25eefef80660bf64 | refs/heads/master | 2021-01-19T03:35:08.368764 | 2017-04-08T06:05:33 | 2017-04-08T06:05:33 | 61,438,380 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 354 | sce | loader.sce | // =============================================================================
// gfx4scilab - ui
// dgerod@xyz-lab.org.es
// =============================================================================
dir_path = get_absolute_file_path("loader.sce");
getd(dir_path);
// =============================================================================
|
4fa9dcde1ff3569e67d9a1551960bf7d40f239ce | abd7728083df51a785c94e61999237380b32c4f8 | /examples/Presentation Packs/Cognitive Psychology Experiments III (Version 3)/Berg's Card Sorting Task/Scenarios/Berg's Card Sorting Task.sce | c1a5d65671a763de164d105790df83fc257d7bb2 | [] | no_license | LCTO-TLCO/UAVpresentation | 93b0c0e0eb123b550218bbae4e0bb1db8c30cb5e | 83e0f22cfdc2b7172bf0b90a9a14ddf77e6ccf2a | refs/heads/master | 2023-07-25T14:03:39.874916 | 2021-09-07T07:19:38 | 2021-09-07T07:19:38 | 301,918,691 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 24,357 | sce | Berg's Card Sorting Task.sce | # -------------------------- Header Parameters --------------------------
scenario = "Berg's Card Sorting Task";
write_codes = EXPARAM( "Send ERP Codes" );
default_font_size = EXPARAM( "Default Font Size" );
default_background_color = EXPARAM( "Default Background Color" );
default_text_color = EXPARAM( "Default Font Color" );
default_font = EXPARAM( "Default Font" );
max_y = 100;
active_buttons = 1;
response_matching = simple_matching;
stimulus_properties =
event_cond, string,
block_name, string,
trial_num, number,
drawn_ct, number,
drawn_shape, string,
drawn_color, string,
sel_ct, number,
sel_shape, string,
sel_color, string,
curr_sort, string,
corr_inarow, number,
accuracy, string,
RT, number;
event_code_delimiter = ";";
# ------------------------------- SDL Part ------------------------------
begin;
ellipse_graphic {
ellipse_height = EXPARAM( "Cursor Size" );
ellipse_width = EXPARAM( "Cursor Size" );
color = EXPARAM( "Cursor Color" );
} cursor;
text {
caption = "Feedback";
preload = false;
} fb_text;
text {
caption = "Select";
preload = false;
} select_text;
trial {
trial_duration = forever;
trial_type = specific_response;
terminator_button = 1;
picture {
text {
caption = "Instructions";
preload = false;
} instruct_text;
x = 0;
y = 0;
};
} instruct_trial;
trial {
stimulus_event {
picture {} card_pic;
code = "Trial Onset";
} card_event;
} card_trial;
trial {
stimulus_event {
picture card_pic;
code = "Feedback";
} fb_event;
} fb_trial;
# ----------------------------- PCL Program -----------------------------
begin_pcl;
include_once "../../Library/lib_visual_utilities.pcl";
include_once "../../Library/lib_utilities.pcl";
# --- Constants --- #
string SPLIT_LABEL = "[SPLIT]";
string LINE_BREAK = "\n";
int BUTTON_FWD = 1;
int BUTTON_BWD = 0;
# Mouse sensitivity (increase to "slow down" the mouse). Cannot be negative!
double mse_scale = 5.0;
string EVENT_CODE_MARKER = "Info";
string PRACTICE_TYPE_PRACTICE = "Practice";
string PRACTICE_TYPE_MAIN = "Main";
int COND_COLOR_IDX = 1;
int COND_SHAPE_IDX = 2;
int COND_COUNT_IDX = 3;
int TRI_IDX = 1;
int SQ_IDX = 2;
int PLUS_IDX = 3;
int CIRCLE_IDX = 4;
string SHAPE_TRI = "Triangle";
string SHAPE_PLUS = "Plus";
string SHAPE_CIRCLE = "Circle";
string SHAPE_SQ = "Diamond";
int DECK_CT = 4;
string STOP_TRIALS = "Trials";
string STOP_SWITCHES = "Rule Switches";
string ACC_CORRECT = "Correct";
string ACC_INCORRECT = "Incorrect";
string COND_SHAPE = "Shape";
string COND_COUNT = "Count";
string COND_COLOR = "Color";
string CHARACTER_WRAP = "Character";
# --- fixed stimulus values --- #
string language = parameter_manager.get_string( "Language" );
language_file lang = load_language_file( scenario_directory + language + ".xml" );
bool char_wrap = ( get_lang_item( lang, "Word Wrap Mode" ).lower() == CHARACTER_WRAP.lower() );
adjust_used_screen_size( parameter_manager.get_bool( "Use Widescreen if Available" ) );
double font_size = parameter_manager.get_double( "Default Font Size" );
trial_refresh_fix( fb_trial, parameter_manager.get_int( "Feedback Duration" ) );
# Stim values #
double deck_height = 50.0;
double deck_width = 50.0;
double spacing = 10.0;
double outline_width = 1.0;
double obj_size = 15.0;
double obj_spacing = 5.0;
double plus_width = 4.0;
double deck_bottom = ( display_device.custom_height()/2.0 ) - deck_height - spacing - outline_width;
double drawn_top = deck_bottom - ( deck_height/1.5 ) - outline_width;
double fb_y = deck_bottom - ( abs( deck_bottom - drawn_top ) / 2.0 );
int cursor_y = int( ( drawn_top + spacing ) * mse_scale );
# --- Stimuli --- #
# Draw the deck outlines #
rgb_color selected_color = parameter_manager.get_color( "Deck Highlight Color" );
rgb_color deck_outline_color = parameter_manager.get_color( "Deck Outline Color" );
line_graphic deck = new line_graphic();
line_graphic selected_deck = new line_graphic();
begin
array<double> end_points[0][2];
array<double> temp[2];
temp[1] = -deck_width/2.0;
temp[2] = deck_height/2.0;
end_points.add( temp );
temp[1] = deck_width/2.0;
end_points.add( temp );
temp[2] = -deck_height/2.0;
end_points.add( temp );
temp[1] = -deck_width/2.0;
end_points.add( temp );
# Draw the deck
deck.set_line_width( outline_width );
deck.set_line_color( deck_outline_color );
deck.set_fill_color( parameter_manager.get_color( "Deck Fill Color" ) );
deck.add_polygon( end_points, true, 1.0, 0.0 );
deck.set_join_type( deck.JOIN_CIRCLE );
deck.redraw();
# Draw the "highlighted" deck #
selected_deck.set_line_width( outline_width );
selected_deck.set_line_color( deck_outline_color );
selected_deck.set_join_type( selected_deck.JOIN_CIRCLE );
selected_deck.add_polygon( end_points, false, 1.0, 0.0 );
selected_deck.redraw();
end;
# Draw the static and temporary circles
array<rgb_color> colors[0];
parameter_manager.get_colors( "Shape Colors", colors );
array<string> color_names[0];
parameter_manager.get_strings( "Shape Color Names", color_names );
if ( colors.count() != DECK_CT || color_names.count() != DECK_CT ) then
exit( "Error: 'Colors Tested' and 'Color Names' must each contain four values." );
end;
ellipse_graphic circle = new ellipse_graphic();
circle.set_dimensions( obj_size, obj_size );
circle.set_color( colors[CIRCLE_IDX] );
circle.redraw();
ellipse_graphic adj_circle = new ellipse_graphic();
adj_circle.set_dimensions( obj_size, obj_size );
adj_circle.set_color( colors[CIRCLE_IDX] );
adj_circle.redraw();
# Draw the static and temporary triangles
line_graphic triangle = new line_graphic();
line_graphic adj_triangle = new line_graphic();
begin
array<double> tri_points[0][2];
array<double> temp[2];
temp[1] = 0.0;
temp[2] = obj_size/2.0;
tri_points.add( temp );
temp[1] = -obj_size/2.0;
temp[2] = -obj_size/2.0;
tri_points.add( temp );
temp[1] = obj_size/2.0;
tri_points.add( temp );
triangle.add_polygon( tri_points, true, 1.0, 0.0 );
triangle.set_fill_color( colors[TRI_IDX] );
triangle.redraw();
adj_triangle.add_polygon( tri_points, true, 1.0, 0.0 );
adj_triangle.set_fill_color( colors[TRI_IDX] );
adj_triangle.redraw();
end;
# Draw the static and temporary plus
line_graphic plus = new line_graphic();
line_graphic adj_plus = new line_graphic();
begin
plus.set_line_color( colors[PLUS_IDX] );
plus.set_line_width( plus_width );
plus.add_line( 0.0, obj_size/2.0, 0.0, -obj_size/2.0 );
plus.add_line( obj_size/2.0, 0.0, -obj_size/2.0, 0.0 );
plus.redraw();
adj_plus.set_line_color( colors[PLUS_IDX] );
adj_plus.set_line_width( plus_width );
adj_plus.add_line( 0.0, obj_size/2.0, 0.0, -obj_size/2.0 );
adj_plus.add_line( obj_size/2.0, 0.0, -obj_size/2.0, 0.0 );
adj_plus.redraw();
end;
# Draw the static and temporary diamonds
line_graphic square = new line_graphic();
line_graphic adj_square = new line_graphic();
begin
array<double> sq_coords[0][2];
array<double> temp[2];
temp[1] = 0.0;
temp[2] = obj_size/2.0;
sq_coords.add( temp );
temp[1] = obj_size/3.0;
temp[2] = 0.0;
sq_coords.add( temp );
temp[1] = 0.0;
temp[2] = -obj_size/2.0;
sq_coords.add( temp );
temp[1] = -obj_size/3.0;
temp[2] = 0.0;
sq_coords.add( temp );
square.set_fill_color( colors[SQ_IDX] );
square.add_polygon( sq_coords, true, 1.0, 0.0 );
square.redraw();
adj_square.set_fill_color( colors[SQ_IDX] );
adj_square.add_polygon( sq_coords, true, 1.0, 0.0 );
adj_square.redraw();
end;
# Put the objects into graphic surface arrays #
array<graphic_surface> all_objs[4];
all_objs[CIRCLE_IDX] = circle;
all_objs[TRI_IDX] = triangle;
all_objs[PLUS_IDX] = plus;
all_objs[SQ_IDX] = square;
array<graphic_surface> adj_objs[4];
adj_objs[CIRCLE_IDX] = adj_circle;
adj_objs[TRI_IDX] = adj_triangle;
adj_objs[PLUS_IDX] = adj_plus;
adj_objs[SQ_IDX] = adj_square;
# --- Stim and Object Locations --- #
array<double> deck_locs[0][2];
begin
double total_width = ( deck_width * double( DECK_CT ) ) + ( spacing * double( DECK_CT - 1 ) );
double start_x = ( -total_width/2.0 ) + ( deck_width/2.0 );
loop
int i = 1
until
i > DECK_CT
begin
array<double> temp[2];
temp[1] = start_x;
temp[2] = deck_bottom + ( deck_height/2.0 );
deck_locs.add( temp );
start_x = start_x + spacing + deck_width;
i = i + 1;
end;
end;
# Build an arry to hold positions for each of the four possible object counts
array<double> obj_locs[DECK_CT][0][2];
begin
# One object locations
array<double> temp[2] = { 0.0, 0.0 };
obj_locs[1].add( temp );
# Two object locations
temp[1] = ( -deck_width/2.0 ) + obj_size/2.0 + obj_spacing;
temp[2] = ( deck_height/2.0 ) - obj_size/2.0 - obj_spacing;
obj_locs[2].add( temp );
temp[1] = -temp[1];
temp[2] = -temp[2];
obj_locs[2].add( temp );
# Three object locations
obj_locs[3].add( temp );
temp[1] = -temp[1];
obj_locs[3].add( temp );
temp[1] = 0.0;
temp[2] = ( deck_height/2.0 ) - obj_size/2.0 - obj_spacing;
obj_locs[3].add( temp );
# Four object locations
temp[1] = ( -deck_width/2.0 ) + obj_size/2.0 + obj_spacing;
obj_locs[4].add( temp );
temp[1] = -temp[1];
obj_locs[4].add( temp );
temp[2] = -temp[2];
obj_locs[4].add( temp );
temp[1] = -temp[1];
obj_locs[4].add( temp );
end;
# --- Now add the static decks to the picture --- #
# pile_info will hold the color, count, and shape info for the sorting decks
array<int> pile_info[4][3];
pile_info[CIRCLE_IDX][COND_SHAPE_IDX] = CIRCLE_IDX;
pile_info[TRI_IDX][COND_SHAPE_IDX] = TRI_IDX;
pile_info[PLUS_IDX][COND_SHAPE_IDX] = PLUS_IDX;
pile_info[SQ_IDX][COND_SHAPE_IDX] = SQ_IDX;
loop
int i = 1
until
i > deck_locs.count()
begin
card_pic.add_part( deck, deck_locs[i][1], deck_locs[i][2] );
loop
int j = 1
until
j > obj_locs[i].count()
begin
double curr_x = deck_locs[i][1];
double curr_y = deck_locs[i][2];
card_pic.add_part( all_objs[i], curr_x + obj_locs[i][j][1], curr_y + obj_locs[i][j][2] );
j = j + 1;
end;
pile_info[i][COND_COUNT_IDX] = obj_locs[i].count();
pile_info[i][COND_COLOR_IDX] = i;
i = i + 1;
end;
# Make the deck from which stim are drawn
array<int> deck_cards[0][0];
loop
bool modified_deck = parameter_manager.get_bool( "Use Modified Deck" );
int color_val = 1
until
color_val > DECK_CT
begin
loop
int shape_val = 1
until
shape_val > DECK_CT
begin
loop
int count_val = 1
until
count_val > DECK_CT
begin
array<int> temp[3];
temp[COND_COLOR_IDX] = color_val;
temp[COND_SHAPE_IDX] = shape_val;
temp[COND_COUNT_IDX] = count_val;
bool bad_card = ( temp[1] == temp[2] ) || ( temp[2] == temp[3] ) || ( temp[1] == temp[3] );
if ( !bad_card ) || ( !modified_deck ) then
deck_cards.add( temp );
end;
count_val = count_val + 1;
end;
shape_val = shape_val + 1;
end;
color_val = color_val + 1;
end;
deck_cards.shuffle();
# --- Subroutines --- #
# --- sub main_instructions --- #
string next_screen = get_lang_item( lang, "Next Screen Caption" );
string prev_screen = get_lang_item( lang, "Previous Screen Caption" );
string final_screen = get_lang_item( lang, "Start Experiment Caption" );
string split_final_screen = get_lang_item( lang, "Multi-Screen Start Experiment Caption" );
bool split_instrucs = parameter_manager.get_bool( "Multi-Screen Instructions" );
sub
main_instructions( string instruct_string )
begin
bool has_splits = instruct_string.find( SPLIT_LABEL ) > 0;
# Split screens only if requested and split labels are present
if ( has_splits ) then
if ( split_instrucs ) then
# Split at split points
array<string> split_instructions[0];
instruct_string.split( SPLIT_LABEL, split_instructions );
# Hold onto the old terminator buttons for later
array<int> old_term_buttons[0];
instruct_trial.get_terminator_buttons( old_term_buttons );
array<int> new_term_buttons[0];
new_term_buttons.add( BUTTON_FWD );
# Present each screen in sequence
loop
int i = 1
until
i > split_instructions.count()
begin
# Remove labels and add screen switching/start experiment instructions
# Remove leading whitespace
string this_screen = split_instructions[i];
this_screen = this_screen.trim();
this_screen = this_screen.replace( SPLIT_LABEL, "" );
this_screen.append( LINE_BREAK + LINE_BREAK );
# Add the correct button options
bool can_go_backward = ( i > 1 ) && ( BUTTON_BWD > 0 );
new_term_buttons.resize( 0 );
new_term_buttons.add( BUTTON_FWD );
if ( can_go_backward ) then
new_term_buttons.add( BUTTON_BWD );
this_screen.append( prev_screen + " " );
end;
if ( i < split_instructions.count() ) then
this_screen.append( next_screen );
else
this_screen.append( split_final_screen );
end;
instruct_trial.set_terminator_buttons( new_term_buttons );
# Word wrap & present the screen
full_size_word_wrap( this_screen, font_size, char_wrap, instruct_text );
instruct_trial.present();
if ( response_manager.last_response_data().button() == BUTTON_BWD ) then
if ( i > 1 ) then
i = i - 1;
end;
else
i = i + 1;
end;
end;
# Reset terminator buttons
instruct_trial.set_terminator_buttons( old_term_buttons );
else
# If the caption has splits but multi-screen isn't requested
# Remove split labels and present everything on one screen
string this_screen = instruct_string.replace( SPLIT_LABEL, "" );
this_screen = this_screen.trim();
this_screen.append( LINE_BREAK + LINE_BREAK + final_screen );
full_size_word_wrap( this_screen, font_size, char_wrap, instruct_text );
instruct_trial.present();
end;
else
# If no splits and no multi-screen, present the entire caption at once
full_size_word_wrap( instruct_string, font_size, char_wrap, instruct_text );
instruct_trial.present();
end;
default.present();
end;
# --- sub present_instructions ---
sub
present_instructions( string instruct_string )
begin
full_size_word_wrap( instruct_string, font_size, char_wrap, instruct_text );
instruct_trial.present();
default.present();
end;
# --- sub check_deck (returns deck # currently selected by mouse cursor position)
# Set up the mouse
mouse mse = response_manager.get_mouse( 1 );
begin
int half_height = int( ( display_device.custom_height()/2.0 ) * mse_scale );
int half_width = int( ( display_device.custom_width()/2.0 ) * mse_scale );
mse.set_min_max( 1, -half_width, half_width );
mse.set_min_max( 2, -half_height, half_height );
end;
sub
int check_deck
begin
# Get mouse position
mse.poll();
double x = double( mse.x() ) / mse_scale;
double y = double( mse.y() ) / mse_scale;
# Check against deck positions
loop
int i = 1
until
i > deck_locs.count()
begin
if ( x > deck_locs[i][1] - deck_width/2.0 ) &&
( x < deck_locs[i][1] + deck_width/2.0 ) &&
( y > deck_locs[i][2] - deck_height/2.0 ) &&
( y < deck_locs[i][2] + deck_height/2.0 ) then
return i
end;
i = i + 1;
end;
return 0
end;
# --- sub draw_new_card
# --- updates the card pic with new color/shape/number for the drawn card
bool show_cursor = parameter_manager.get_bool( "Show Cursor" );
card_pic.add_part( selected_deck, deck_locs[1][1], deck_locs[1][2] );
int highlight_part = card_pic.part_count();
if ( show_cursor ) then
card_pic.add_part( cursor, 0, 0 );
end;
int cursor_part = card_pic.part_count();
select_text.set_max_text_width( used_screen_width * 0.8 );
double select_text_top = drawn_top - deck_height - spacing/2.0;
select_text.set_max_text_height( abs( -used_screen_height/2.0 - select_text_top ) * 0.8 );
select_text.set_caption( get_lang_item( lang, "Select Caption" ), true );
sub
draw_new_card( array<int,1>& card_info )
begin
# Get the current part count
int start_ct = card_pic.part_count();
# Now add the deck outline and hang onto the x/y positions
double x_off = 0.0;
double y_off = drawn_top - ( deck_height/2.0 );
card_pic.add_part( deck, x_off, y_off );
# Get the shape, count, and color for the chosen card
int this_shape = card_info[COND_SHAPE_IDX];
int this_count = card_info[COND_COUNT_IDX];
int this_color = card_info[COND_COLOR_IDX];
# Draw the appropriate shape in the correct color
if ( this_shape == CIRCLE_IDX ) then
adj_circle.set_color( colors[this_color] );
adj_circle.redraw();
elseif ( this_shape == SQ_IDX ) then
adj_square.set_fill_color( colors[this_color] );
adj_square.redraw();
elseif ( this_shape == TRI_IDX ) then
adj_triangle.set_fill_color( colors[this_color] );
adj_triangle.redraw();
elseif ( this_shape == PLUS_IDX ) then
adj_plus.set_line_color( colors[this_color] );
adj_plus.redraw();
end;
# Now add the appropriate number of shapes to the card
loop
int j = 1
until
j > this_count
begin
card_pic.add_part( adj_objs[this_shape], x_off + obj_locs[this_count][j][1], y_off + obj_locs[this_count][j][2] );
j = j + 1;
end;
# Now add the reminder text beneath the card
card_pic.add_part( select_text, 0, 0 );
card_pic.set_part_y( card_pic.part_count(), select_text_top, card_pic.TOP_COORDINATE );
end;
# --- sub show_trials
# Initialize some values
string corr_fb = fix_empty_string( parameter_manager.get_string( "Correct Feedback Caption" ) );
string incorr_fb = fix_empty_string( parameter_manager.get_string( "Incorrect Feedback Caption" ) );
int switch_ct = parameter_manager.get_int( "Switch Count" );
bool use_first_sort = parameter_manager.get_bool( "Use First Sort" );
array<string> shape_names[DECK_CT];
shape_names[TRI_IDX] = SHAPE_TRI;
shape_names[SQ_IDX] = SHAPE_SQ;
shape_names[PLUS_IDX] = SHAPE_PLUS;
shape_names[CIRCLE_IDX] = SHAPE_CIRCLE;
array<string> sort_names[3];
sort_names[COND_SHAPE_IDX] = COND_SHAPE;
sort_names[COND_COUNT_IDX] = COND_COUNT;
sort_names[COND_COLOR_IDX] = COND_COLOR;
# --- sub get_selection
sub
int get_selection
begin
# Return value
int selected = 0;
# Reset the mouse and make sure the cursor draws on top
if ( show_cursor ) then
card_pic.set_part_on_top( cursor_part, true );
end;
mse.set_xy( 0, cursor_y );
# Loop until a legal response is made
loop
until
selected > 0
begin
card_pic.present();
loop
int resp_ct = response_manager.total_response_count( 1 );
until
response_manager.total_response_count( 1 ) > resp_ct
begin
# First update the mouse cursor
if ( show_cursor ) then
# Update the cursor
selected = check_deck();
card_pic.set_part_x( cursor_part, double( mse.x() )/ mse_scale );
card_pic.set_part_y( cursor_part, double( mse.y() )/ mse_scale );
# We highlight a deck if one is selected
if ( selected == 0 ) then
selected_deck.set_line_color( deck_outline_color );
else
card_pic.set_part_x( highlight_part, deck_locs[selected][1] );
selected_deck.set_line_color( selected_color );
end;
selected_deck.redraw();
# Show the main picture
card_pic.present();
end;
end;
selected = check_deck();
end;
return selected
end;
# -- Summary Stat Info -- #
int total_trials = 0;
int total_switches = 0;
int total_errors = 0;
int persev_errors = 0;
# -- End Summary Stat Info -- #
sub
show_trials( string prac_check, string stop_type, int trials_to_run, int switches_to_run )
begin
deck_cards.shuffle();
loop
bool escape = false;
int card_ctr = 1;
int switch_ctr = 0;
int trial_ctr = 1;
int corr_sort = random( 1, 3 );
int last_sort_cat = 0;
int corr_ctr = 0;
until
escape
begin
# Start by getting the current sorting attribute
if ( corr_ctr >= switch_ct ) then
last_sort_cat = corr_sort;
corr_sort = random_exclude( 1, 3, last_sort_cat );
switch_ctr = switch_ctr + 1;
end;
# Draw the next card
int temp_ct = card_pic.part_count();
array<int> drawn_card[3] = deck_cards[card_ctr];
draw_new_card( drawn_card );
int this_count = card_pic.part_count() - temp_ct;
# Loop until they pick a card
int RT = clock.time();
int selected = get_selection();
RT = clock.time() - RT;
# Remove the selected text
card_pic.remove_part( card_pic.part_count() );
# Get the info of the chosen card
array<int> selected_card[3] = pile_info[selected];
# Check the accuracy
bool corr = ( drawn_card[corr_sort] == selected_card[corr_sort] );
if ( card_ctr == 1 ) && ( use_first_sort ) && ( !corr ) then
loop
int a = 1
until
a > 3
begin
if ( drawn_card[a] == selected_card[a] ) then
corr_sort = a;
corr = true;
break;
end;
a = a + 1;
end;
end;
# Update the feedback text
string accuracy = ACC_CORRECT;
if ( corr ) then
fb_text.set_caption( corr_fb, true );
corr_ctr = corr_ctr + 1;
else
fb_text.set_caption( incorr_fb, true );
accuracy = ACC_INCORRECT;
corr_ctr = 0;
end;
# Set the event code
fb_event.set_event_code(
EVENT_CODE_MARKER + ";" +
prac_check + ";" +
string( trial_ctr ) + ";" +
string( drawn_card[COND_COUNT_IDX] ) + ";" +
shape_names[drawn_card[COND_SHAPE_IDX]] + ";" +
color_names[drawn_card[COND_COLOR_IDX]] + ";" +
string( selected_card[COND_COUNT_IDX] ) + ";" +
shape_names[selected_card[COND_SHAPE_IDX]] + ";" +
color_names[selected_card[COND_COLOR_IDX]] + ";" +
sort_names[corr_sort] + ";" +
string( corr_ctr ) + ";" +
accuracy + ";" +
string( RT )
);
# Show the feedback
card_pic.add_part( fb_text, 0.0, fb_y );
fb_trial.present();
# Get rid of the extraneous parts
loop
int i = 1
until
i > this_count
begin
card_pic.remove_part( card_pic.part_count() );
i = i + 1;
end;
# Increment the counters
trial_ctr = trial_ctr + 1;
card_ctr = card_ctr + 1;
if ( card_ctr > deck_cards.count() ) then
card_ctr = 1;
deck_cards.shuffle();
end;
# Update Summary Stats
if ( prac_check == PRACTICE_TYPE_MAIN ) then
total_trials = total_trials + 1;
total_switches = switch_ctr;
if ( accuracy == ACC_INCORRECT ) then
total_errors = total_errors + 1;
if ( last_sort_cat > 0 ) then
if ( selected_card[last_sort_cat] == drawn_card[last_sort_cat] ) then
persev_errors = persev_errors + 1;
end;
end;
end;
end;
# Check if we should exit
if ( ( stop_type == STOP_TRIALS ) && ( trial_ctr > trials_to_run ) ) ||
( ( stop_type == STOP_SWITCHES ) && ( switch_ctr > switches_to_run ) ) then
escape = true;
end;
end;
end;
# --- Main Sequence --- #
string instructions = get_lang_item( lang, "Instructions" );
int prac_trials = parameter_manager.get_int( "Practice Trials" );
string stop_cond = parameter_manager.get_string( "Stop Condition" );
int num_trials = parameter_manager.get_int( "Total Trials" );
int num_switches = parameter_manager.get_int( "Total Switches" );
if ( switch_ct >= num_trials ) then
exit( "Error: 'Switch Count' must be less than 'Total Trials'" );
end;
if ( prac_trials > 0 ) then
main_instructions( instructions + " " + get_lang_item( lang, "Practice Caption" ) );
show_trials( PRACTICE_TYPE_PRACTICE, STOP_TRIALS, prac_trials, 0 );
present_instructions( get_lang_item( lang, "Practice Complete Caption" ) );
else
main_instructions( instructions );
end;
show_trials( PRACTICE_TYPE_MAIN, stop_cond, num_trials, num_switches );
present_instructions( get_lang_item( lang, "Completion Screen Caption" ) );
# --- Print Summary Stats --- #
string sum_log = logfile.filename();
if ( sum_log.count() > 0 ) then
# Open & name the output file
string TAB = "\t";
int ext = sum_log.find( ".log" );
sum_log = sum_log.substring( 1, ext - 1 ) + "-Summary-" + date_time( "yyyymmdd-yyyymmdd-hhnnssss" ) + ".txt";
string subj = logfile.subject();
output_file out = new output_file;
out.open( sum_log );
# Print the headings for each columns
array<string> cond_headings[0];
cond_headings.add( "Subject ID" );
cond_headings.add( "Trials" );
cond_headings.add( "Rule Changes" );
cond_headings.add( "Correct Sorts" );
cond_headings.add( "Total Errors" );
cond_headings.add( "Persev. Errors" );
loop
int i = 1
until
i > cond_headings.count()
begin
out.print( cond_headings[i] + TAB );
i = i + 1;
end;
out.print( "\n" + subj + TAB );
out.print( string( total_trials ) + TAB );
out.print( string( total_switches ) + TAB );
out.print( string( total_trials - total_errors ) + TAB );
out.print( string( total_errors ) + TAB );
out.print( string( persev_errors ) + TAB );
out.print( date_time() );
# Close the file and exit
out.close();
end; |
16e56eb0bae892c8e87e403f248d1c43bdfb7af0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3647/CH11/EX11.3/ex11_3.sce | 38877aad0bb6fc08edd5ca9ffb3a697a459e4483 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 310 | sce | ex11_3.sce | //Solutions to Problems In applied mechanics
//A N Gobby
clear all;
clc
//initialisation of variables
t=62.5*4*1//lbf
a=2/3*2//ft
m=62.5*4*(4/3)//lbf
f=500*2//lbf ft
T=((62.5*2*2)/2)*1/3*2//lbf
H=(62.5*2*1)//ft
//CALCULATIONS
H1=f/[H+T]*2/2.9///ft
//RESULTS
printf('the trap door width=% f ft',H1)
|
b285bc3c2f0742c18e6b981997a35d359b50e7fe | 449d555969bfd7befe906877abab098c6e63a0e8 | /2708/CH8/EX8.3/ex_8_3.sce | 31db325d31c986e447125f0a29a24ed026bab310 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 174 | sce | ex_8_3.sce | //Example 8.3 // electric susceptibility
clc;
clear;
//given data :
k=1.000038;//dielectric constant
x=k-1;//electric susceptibility
disp(x,"electric susceptibility")
|
4fb8c131c9927e80369b1dc3429db32b3c8f47e9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3035/CH12/EX12.2/Ex12_2.sce | f99943b3000e6ccc79c193a5d7ee7dd2dfc8f553 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 830 | sce | Ex12_2.sce |
// Variable Declaration
V_i = 100.0 //Incident voltage(kV)
Z_1 = 400.0 //Surge impedance(ohm)
Z_21 = 350.0 //Surge impedance of line connected at T(ohm)
Z_22 = 50.0 //Surge impedance of cable connected at T(ohm)
// Calculation Section
Z_2 = Z_21*Z_22/(Z_21+Z_22) //Surge impedance(ohm)
V_t = 2*Z_2*V_i/(Z_1+Z_2) //Refracted voltage(kV)
V_r = (Z_2-Z_1)*V_i/(Z_1+Z_2) //Reflected voltage(kV)
I_t1 = V_t/Z_21*1000 //Refracted current in Z_21(A)
I_t2 = V_t/Z_22*1000 //Refracted current in Z_22(A)
I_r = -(V_r/Z_1)*1000 //Reflected current in Z_1(A)
// Result Section
printf('Refracted voltage , V_t = %.2f kV' ,V_t)
printf('Refracted current in overhead line , I_t1 = %.2f A',I_t1)
printf('Refracted current in underground cable , I_t2 = %.2f A' ,I_t2)
|
7b34625b7257ecf9c314fa4a2be208bef9e2cd8a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH4/EX4.13/Chapter4_Example13.sce | 0266e409441f39a67550d52ce9ca41c659c09333 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,093 | sce | Chapter4_Example13.sce | //Chapter-4, Illustration 13, Page 202
//Title: Steam Nozzles and Steam Turbines
//=============================================================================
clc
clear
//INPUT DATA
C1=1000;//Steam velocity in m/s
a1=20;//Nozzle angle in degrees
U=400;//Mean blade speed in m/s
m=0.75;//Mass flow rate of steam in kg/s
b1=33;//Blade angle at inlet from the velocity triangle in degrees
b2=b1;//Blade angle at exit from the velocity triangle in degrees
Cx=1120;//Change in whirl velocity from the velocity triangle in m/s
Ca=0;//Change in axial velocity from the velocity triangle in m/s
//CALCULATIONS
Fx=m*Cx;//Tangential force on blades in N
Fy=m*Ca;//Axial thrust in N
W=(m*Cx*U)/1000;//Diagram power in kW
ndia=((2*U*Cx)/(C1^2))*100;//Diagram efficiency
//OUTPUT
mprintf('Blade angles are %3.0f degrees,%3.0f degrees \n Tangential force on blades is %3.0f N \n Axial thrust is %3.0f \n Diagram power is %3.0f kW \n Diagram efficiency %3.1f percent',b1,b2,Fx,Fy,W,ndia)
//==============================END OF PROGRAM=================================
|
c6e2640171bc96be9da9f212bdf8e862d36652b3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1802/CH2/EX2.1/Exa2_1.sce | 1a38207cc837a94965589873d3ad944c772f426d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,155 | sce | Exa2_1.sce | //Exa 2.1
clc;
clear;
close;
//Given Data :
format('v',7);
//CableCost=20+400*a;//in Rs./meter (a=cross section in cm^2)
//Cable_cost=(20+400*a)*1000;//in Rs./meter
l=1;//in Km
P=1;//in MW
V=11;//in KV
cosfi=0.8;//powerfactor
h=3000;//hours
i=10;//in %
E_cost=15;//in paisa/kwh
rho=1.75*10^-6;//sp. resistance in ohm-cm
//C1=CableCost*1000;//in Rs./km
disp("Cost of 1km cable=Rs"+string(20*1000)+"+"+string(400*1000)+"a");
//R=rho*l*10^3/(a*10^-2);//in ohm
disp("Resistance of 1km cable(in ohm) = "+string(rho*l*10^3/(10^-2))+"/a");
Ifl=(P*10^6)/(V*10^3*cosfi);//in Ampere
disp(Ifl,"Full load current(in Ampere) :");
//Ploss=2*I^2*R;//in Watts
disp("Power loss in the cable(in watts) : "+string(2*Ifl^2*rho*l*10^3/(10^-2))+"/a");
//Annual_cost=Ploss*10^-3*h*E_cost/100;//in Rs.
disp("Annual cost of energy(in Rs.) : "+string(2*Ifl^2*rho*l*h*E_cost/(10^-2))+"/a");
//AnnualCost2=400*10^3*a*i/100;//in Rs.
disp("AnnualCost of interest and depriciation(in Rs.)="+string(400*10^3*i/100)+"a");
disp("Using Kelvin law for most ecpnomical cross sectional area :");
a=2032.5/40000;
disp(a,"Most economical cross section(in cm^2) :"); |
e088298f626ec875e728cd68aebf473c8ac017e9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1442/CH11/EX11.7/11_7.sce | 19d8027530db639716b33c6ee07ce07c9ba53d54 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 334 | sce | 11_7.sce | clc
//initialisation of variables
h1= 182.07 //kJ/kg
h4= 76.26 //kJ/kg
h2= 217.97 //kJ/kg
Q= 10^6 //kJ/h
Tc= -5 //C
Th= 32 //C
//CALCULATIONS
COP= (h1-h4)/(h2-h1)
W= Q/(COP*3600)
COPcarnot= (273.15+Tc)/(Th-Tc)
//RESULTS
printf (' COP= %.2f ',COP)
printf (' \n power= %.1f kW ',W)
printf (' \n COP= %.3f ',COPcarnot)
|
ab0b35f128a0a83bcfc7d1d81107d2602c7e32a0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /269/CH7/EX7.2/example2.sce | a2c05ba11238c18490b4e89044ac119a1c1046b1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 116 | sce | example2.sce | Syms t,s
disp('given')
disp(' f(t)= e^at ,a>0')
disp('laplace of f(t) is')
y=laplace('exp(a*t)', t,s)
disp(y)
|
86520aefbbd6775ad902db2ef3914842f02893c1 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.0/Unix/scilab-2.0/macros/tdcs/test_d.sci | 828bea655e72bcb3e2346b7bd7b97ce9287474ae | [
"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 | 599 | sci | test_d.sci | //[f1,f2]=test_d(ue)
//[f1,f2]=test_d(ue)
// f1 est la dynamique linearisee
//autour du point d'equilibre donne par equilcom(ue)
//du systeme precedent observateur-controleur (voir simulcomp)
// f2 est la valeur theorique de f1 (voir cours)
//!
deff('[yy,zdot]=fff(z,vv)',...
['u=1-k*z(3:4)';
'yy=0';
'xdot(1,1) = ppr*z(1)*(1-z(1)/ppk) - u*ppa*z(1)*z(2)';
'xdot(2,1) = pps*z(2)*(1-z(2)/ppl) - u*ppb*z(1)*z(2)';
'xdot1 = (f-l*h-g*k)*z(3:4) + l*(z(1)-xe(1))';
'zdot=[xdot;xdot1]']);
xe=equilcom(ue)
[f1,g1,h1,k1]=lin(fff,[xe;0;0],0),
f2=[ f, -g*k; l*h,f-l*h-g*k],
//end
|
2cc315f0975be76fd9205d4b29bd1966840b7c64 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH8/EX8.6/ex8_6.sce | d0db4a35d795b808d70077fae1f5993879577cc7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 518 | sce | ex8_6.sce | // Exa 8.6
clc;
clear;
close;
format('v',8)
// Given data
miu_r = 1400;
l = 70;// in cm
l = l * 10^-2;// in m
a = 5;// in cm^2
a = a * 10^-4;// in m^2
N = 1000;
miu_o = 4*%pi*10^-7;
S = l/(miu_o*miu_r*a);// in AT/Wb
disp(S,"The reluctance of the magnetic circuit in AT/Wb is");
format('v',7)
// Calculation of inductance of the coil
L = (N^2)/S;// in H
disp(L,"The inductance of the coil in H is");
// Note: In the book the calculated value of L is correct but at last they print its value wrong
|
1c3f2d72d43190f18a7ec59dd598692e9ae41df1 | 2ae858a680a4ccf8a2ec89a45a1e48a0292d8eab | /macros/dctmtx.sci | cc55a764ef5a65760dd6ef58be8b894b728dedd9 | [] | no_license | shreyneil/FOSSEE-Image-Processing-Toolbox | f315a82c325b2d6cbd0611689f3e30071a38490d | dd1cbd0dcbe0c3dd11d6ce1ab205b4b72011ae56 | refs/heads/master | 2020-12-02T16:26:13.755637 | 2017-07-07T19:22:33 | 2017-07-07T19:22:33 | 96,552,147 | 0 | 0 | null | 2017-07-07T15:32:15 | 2017-07-07T15:32:15 | null | UTF-8 | Scilab | false | false | 1,033 | sci | dctmtx.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author: Shreyash Sharma
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function [out]=dctmtx(n)
// This function is used to calculate Discrete cosine transform matrix.
//
// Calling Sequence
// D = dctmtx(n)
//
// Parameters
// A: The input scalar of double type.
// D : The n-by-n DCT (discrete cosine transform) matrix..
//
// Description
// D = dctmtx(n) returns the n-by-n DCT (discrete cosine transform) matrix. D*A is the DCT of the columns of A and D'*A is the inverse DCT of the columns of A (when A is n-by-n).
//
// Examples
// i = imread("rice.png",0);
// mm = dctmtx(size(i,1));
// ir = mm*i*mm';
// imshow(ir);
//
out=raw_dctmtx(n);
endfunction;
|
954919a2ee01bc4a26bd4ea5409843188b6717be | 87749481136b7b72a47930f587f27667e0c0f97d | /DFT/Task_4.sci | 76da8dec29fc2c71c5afa3fc05c15e2ca060c2dd | [
"MIT"
] | permissive | brooky56/Digital_Signal_Processing | cf15e5ac443a16edcb3efc8d7703cf4746dedcba | f28651e40b0a99b79e9ba27deabc4db8bfc7f08e | refs/heads/master | 2022-06-30T17:59:28.072522 | 2020-05-11T18:58:39 | 2020-05-11T18:58:39 | 242,598,653 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,082 | sci | Task_4.sci | clear all;
f1 = 190;
A1 = 0.5
f2 = 10;
A2 = 2;
fs = 200;
dt = 1/fs;
T = 0.5
t =0:dt:T-dt;
s1 = A1*cos(2*%pi*f1*t);
s2 = A2*cos(2*%pi*f2*t);
figure(0)
plot(t, s1, 'b');
plot(t, s2, 'r');
xlabel("Time, s", 'fontsize', 2)
ylabel("Amplitude", 'fontsize', 2)
title("Time domain", 'fontsize', 3)
figure(1)
subplot(3,1,1)
f1 = (0:length(s1)-1)/length(s1)*fs
plot(f1, abs(fft(s1)), 'b')
xlabel("Frequency, Hz", 'fontsize', 2)
ylabel("Freq amplitude", 'fontsize', 2)
title("Frequency response of first signal", 'fontsize', 3)
subplot(3,1,2)
f2 = (0:length(s2)-1)/length(s2)*fs
plot(f2, abs(fft(s2)), 'r')
xlabel("Frequency, Hz", 'fontsize', 2)
ylabel("Freq amplitude", 'fontsize', 2)
title("Frequency response of second signal", 'fontsize', 3)
subplot(3,1,3)
f2 = linspace(-fs/2, fs/2, length(s2))
plot(f2, abs(fftshift(fft(s2))), 'r')
f1 = (0:length(s1)-1)/length(s1)*fs
plot(f2, abs(fftshift(fft(s1))), 'b')
xlabel("Frequency, Hz", 'fontsize', 2)
ylabel("Freq amplitude", 'fontsize', 2)
title("Frequency response of final signals", 'fontsize', 3)
legend(["freq = 10";"freq = 190"])
|
919ce5fa661516244f42bcc0d270aa8174ede8d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /503/CH3/EX3.6/ch3_6.sci | 9523688a20ea4a09c353a2d559e600ce3a1e4f76 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 780 | sci | ch3_6.sci | // To find the voltage at the load end of the transformer when load is drawing transformer current
clc;
I=20/2; //rated load current(hv side)
Z1=[.25,1.4]; //impedence of feeder (REAL,IMAGINERY)
Z2=[.82,1.02]; //impedence of transformer (REAL,IMAGINERY)
Z=Z1+Z2;
disp(Z,'Z(ohm)');
pf=.8;
phi=acosd(pf);
//from phasor diagram
R=Z(1);
X=Z(2);
AF=I*X*cosd(phi);
FE=I*R*sind(phi);
AE=AF-FE;
OA=2000;
OE=sqrt(OA^2-AE^2);
BD=I*R*cosd(phi);
DE=I*X*sind(phi);
BE=BD+DE;
V1=OE; disp(V1,'V1(V)');
V2=V1-BE; disp(V2,'V2(V)');
loadvol=V2/10; //referred to LV side
disp(loadvol,'load voltage(V)');
|
d0c5d1fac24a8721c38c4bfdd6c41ea9334eade3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH8/EX8.21/Ch08Ex21.sce | 28b4d9872a422f878c15c9df6442d0efbd4b787e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 919 | sce | Ch08Ex21.sce | // Scilab code Ex8.21 : Pg:347(2008)
clc;clear;
bin = ['10001100', '00101110', '01011111', '01111011', '00111010', '10010101', '10110110', '01011011'];
printf("\n___________________________________");
printf("\nBinary Octal Hexadecimal");
printf("\n___________________________________");
for i=1:1:8
printf("\n%8s %4s %4s", bin(i), dec2oct(bin2dec(bin(i))), dec2hex(bin2dec(bin(i))));
end
printf("\n___________________________________");
// Result
// ___________________________________
// Binary Octal Hexadecimal
// ___________________________________
// 10001100 214 8C
// 00101110 56 2E
// 01011111 137 5F
// 01111011 173 7B
// 00111010 72 3A
// 10010101 225 95
// 10110110 266 B6
// 01011011 133 5B
// ___________________________________
|
473d42044d50acdd28f7453c7eaee451d1da44a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1682/CH3/EX3.1/Exa3_1.sce | a13a43f7e9776242375bd0de313fc2972837c3e7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 234 | sce | Exa3_1.sce | //Exa3_1
clc;
clear;
close;
//given data is :
P=20000;//in rupees
n=10;//in years
i=18;//% per annum
F=P*(1+i/100)^n;
disp("Maturity value after 18 years is : "+string(F)+" Rupees.");
//Note : Ans in the book is not correct. |
91c592eeef09599f540f9e2a6b41b881fd1011d7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /83/CH9/EX9.5/example_9_5.sce | 4eebfe8dcac3dce8f68264a3cbfce6e17813e925 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 994 | sce | example_9_5.sce | //Chapter 9
//Example 9.5
//page 347
//To calculate short circuit solution
clear;clc;
//referring to figures 9.19 in the text book,we get directly the fault current
V4o=1.0;
Zf=%i*0.13560;
If=V4o/Zf;
printf('\nIf= -j%0.5f pu\n\n',abs(If));
//From Fig9.19d
I1=If*((%i*0.19583)/(%i*0.37638));
I2=If*((%i*0.18055)/(%i*0.37638));
printf('I1 = -j%0.5f pu \n\nI2 = -j%0.5f pu\n\n',abs(I1),abs(I2));
//voltage changes for bus 1,2 and 3
deltaV1=0-(%i*0.15)*I1;
deltaV2=0-(%i*0.15)*I2;
printf('DeltaV1=%0.5f pu\n\nDeltaV2=%0.5f pu\n\n',deltaV1,deltaV2);
//reffering to book
V1f=1+deltaV1;
V2f=1+deltaV2;
printf('V1f= %0.5f pu\n\nV2f=%0.5f pu\n\n',V1f,V2f);
I13=(V1f-V2f)/(%i*0.15+%i*0.1);
printf('I13=j%0.5f pu\n\n',abs(I13));
deltaV3=0-((%i*0.15)*(I1)+(%i*0.15)*(I13));
Vf3=1+deltaV3;
printf('DeltaV3=%0.5f pu\n\n',deltaV3);
printf('Vf3=%0.5f pu\n\n',Vf3);
Vf4=0;
printf('Vf4=%d\n\n',Vf4);
//short circuit MVA at bus 4
SC_MVA_4=abs(If)*100;
printf('Short circuit MVA at bus4 =%0.3f MVA',SC_MVA_4);
|
2c8d0e16d703843eaa5c0a0ae064780b851a219b | 449d555969bfd7befe906877abab098c6e63a0e8 | /122/CH7/EX7.a.10/exaA_7_10.sce | f7466708b343b71da9a3a2f27489a3aa066dbd8d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 293 | sce | exaA_7_10.sce | // Example A-7-10
// Nyquist Plot with transport lag
clear; clc;
xdel(winsid()); //close all windows
omega = logspace(-2,2,100);
f = omega ./ (2*%pi);
repf = 2.65 * exp(%i*omega*-0.8) ./ (ones(1,length(omega)) + %i*omega);
nyquist(f,repf);
plot(-1,0,'.');
xstring(-0.9,0,'passes -1',0,1); |
0d43d01c5ae76cceac36d9259a72afb7dd7d04f2 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electrical_Measurements_Measuring_Instruments_K._Shinghal_2318.zip/Electrical_Measurements_Measuring_Instruments_K._Shinghal_2318/CH3/EX3.8/ex_3_8.sce | 712c0ab1bcc7482a2d3642be7bdfed3bd36b5640 | [] | 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 | 190 | sce | ex_3_8.sce | errcatch(-1,"stop");mode(2);//Example 3.8: Unknown resistance
;
;
//given data :
P=100;// in ohm
Q=10;// in ohm
S=46;// in ohm
R=((P/Q)*S);
disp(R," Unknown resistance,R(ohm) = ")
exit();
|
0a776afd9e2623cd646bf6223448917da8c21a54 | cd3baacb9aa523e8ac4f10406c5fb62c9c60998a | /gate/MyOr16.tst | 8189d222a995768285798808b8adcb29c20201d7 | [] | no_license | wangkekekexili/cuddly-octo-pancake | f8bbebc043417af9662712de610b390f062545f8 | 67b3d4c3d15c5877644221b6d987dd911101d013 | refs/heads/master | 2023-03-06T12:49:54.668374 | 2021-02-14T14:53:07 | 2021-02-14T14:53:07 | 338,038,595 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | tst | MyOr16.tst | load MyOr16.hdl,
output-file MyOr16.out,
output-list a%B1.16.1 b%B1.16.1 out%B1.16.1;
set a %X3c38, set b %Xc335, eval, output;
set a %Xa9f7, set b %X1d71, eval, output;
set a %X3124, set b %X1dfc, eval, output;
set a %Xe66d, set b %Xe87c, eval, output;
|
3a8c108842e1ac3d82aae86579fc0b3b6d47739b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3651/CH2/EX2.12/Ex2_12.sce | 4a050e2815c7ca77d87c3044c550278aa27d4ff0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 347 | sce | Ex2_12.sce | clc
//Variable declaration
a=3.16
lamda=1.54
n=1
theta=20.3*%pi/180
//Calculations
d=(n*lamda)/(2*sin(theta))
x=a/d //let sqrt(h**2+k**2+l**2)=x
//Result
printf('d =%0.3f Angstorms\n',(d))
printf('sqrt(h**2+k**2+l**2) =%0.3f \n',(x))
printf('Therefore, h**2+k**2+l**2 =sqrt(2)\n')
printf('h =1, k=1')
|
ac1e01faf57daac7c586588eb45d4be45e7b3d88 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set12/s_Heat_And_Thermodynamics_A._Manna_1571.zip/Heat_And_Thermodynamics_A._Manna_1571/CH10/EX10.11/Chapter10_Example11.sce | bffd9737d25797e5644718f401966c13b541b520 | [] | 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 | 459 | sce | Chapter10_Example11.sce | errcatch(-1,"stop");mode(2);
//INPUT
l=79.6*4.18*10^7;//latent heat of water in ergs/gm
t=273.16;//temperature of water in K
v1=1.0001;//specific volume of water at 0deg.C in cc
v2=1.0908;//specific volume of ice at 0deg.C in cc
p=1.013*10^6;//pressure of atmosphere in dyne/sq.cm
//CALCULATIONS
dt=t*(v1-v2)*p/l;//change in freezing point of water in deg.C
//OUTPUT
mprintf('change inn freezing point of water is %3.4f deg.C',dt)
exit();
|
7fc885db108afdbed369ba27a78853c0fe85a593 | 20253970b7dd99e615215029609de822e2bf855d | /judge/tests/51300/12.tst | 1e204ec318d3fe18682e3a3645222609dffa0d78 | [] | no_license | B-Rich/CATS | d26d6c85cfc1dbdc78fa16f691adbfccc615df03 | d299e328f9e7498ecd9f58f64069fcd57536db00 | refs/heads/master | 2021-01-01T06:10:11.322262 | 2011-06-21T15:06:06 | 2011-06-21T15:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 23 | tst | 12.tst | 10 9
2
3 3 2
7 6 2
|
b2bc9f979173766fc926aeae227831883b148d21 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH14/EX14.10/example14_10.sce | f5d461cae79bc5ba68e89b1f48686c88830f5dd8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 669 | sce | example14_10.sce |
//example 14.10
//design irrigation channel according to Laecy silt theory
clc;funcprot(0);
//given
Q=15; //discharge
f=1; //laecy silt factor
s=1/2; //channel side slope
V=(Q*f^2/140);
A=Q/V;
R=5*V^2/(2*f);
//using the value of A in equations we get,
//equation in D as
y=poly([-21.765,18.336,-1.73],'x','c');
D=roots(y);
//we get D=9.2368003 and 1.3620436.
//taking
D=1.3620436;
B=18.336-D*2.23;
P=4.75*Q^0.5;
S=1/(3340*Q^(1/6));
B=round(B*10)/10;
D=round(D*100)/100;
mprintf("Width of channel section=%f m.",B);
mprintf("\nDepth of channel section=%f m.",D);
mprintf("\nBed slope=%f.",S);
|
060fc5b8e34297c4e199fef1ed52a0d9ac4e724f | 676ffceabdfe022b6381807def2ea401302430ac | /utilities/FieldConvert/Tests/naca0012_3D_bnd.tst | 6c3cf1efc19e6bcabc493d51f86240eb4b56e4f4 | [
"MIT"
] | permissive | mathLab/ITHACA-SEM | 3adf7a49567040398d758f4ee258276fee80065e | 065a269e3f18f2fc9d9f4abd9d47abba14d0933b | refs/heads/master | 2022-07-06T23:42:51.869689 | 2022-06-21T13:27:18 | 2022-06-21T13:27:18 | 136,485,665 | 10 | 5 | MIT | 2019-05-15T08:31:40 | 2018-06-07T14:01:54 | Makefile | UTF-8 | Scilab | false | false | 452 | tst | naca0012_3D_bnd.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description> Process fld directory without P0000000.fld </description>
<executable>FieldConvert</executable>
<parameters> naca0012_3D_bnd.xml naca0012_3D_bnd.fld naca0012_3D_bnd.plt </parameters>
<files>
<file description="Session File">naca0012_3D_bnd.xml</file>
<file description="Field File">naca0012_3D_bnd.fld</file>
</files>
<metrics>
</metrics>
</test>
|
efe6317a6a672545ed76760b8842ec09cb2cbd93 | fcd4bce0080771389b4a69338ed6443153942183 | /cores/n64/mupen64plus-rsp-paraLLEl/lightning/check/qalu_div.tst | 198dfbbfe0cee627bc4db832e5484f8d19a5179e | [
"LGPL-3.0-only",
"GPL-3.0-only",
"GFDL-1.1-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"GFDL-1.1-only",
"MIT",
"LGPL-2.1-only",
"MPL-1.1",
"LicenseRef-scancode-mame",
"Zlib",
"GPL-2.0-only",
"LGPL-2.1-or-later",
"MPL-2.0",
"CC-PDDC",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-brian-gladman-3-clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | wulfebw/retro | d4fcf9229b257b3c495f54b1aeb3ea36004ae4aa | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | refs/heads/master | 2022-10-23T07:17:55.320585 | 2020-06-12T01:38:06 | 2020-06-12T01:38:06 | 260,832,205 | 8 | 1 | MIT | 2020-06-12T01:38:08 | 2020-05-03T05:06:17 | C | UTF-8 | Scilab | false | false | 384 | tst | qalu_div.tst | #include "qalu.inc"
.code
prolog
#define QDIV(N, I0, I1, LO, HI) QALU(N, , qdiv, I0, I1, LO, HI)
#define UQDIV(N, I0, I1, LO, HI) QALU(N, _u, qdiv, I0, I1, LO, HI)
QDIV(0, 10, 3, 3, 1)
QDIV(1, -33, 9, -3, -6)
QDIV(2, -41, -7, 5, -6)
QDIV(3, 65536, 4096, 16, 0)
UQDIV(4, -1, -2, 1, 1)
UQDIV(5, -2, -5, 1, 3)
prepare
pushargi ok
ellipsis
finishi @printf
ret
epilog
|
1357a8f4f320d9db6191e1265223d3009fc8924e | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH11/EX11.7/11_7.sce | 99f9f027d3aee4337216db2f53f629b5865799be | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 144 | sce | 11_7.sce | f=50
ns=100
P=110000
pf=0.8
p=120*f/ns
disp(p)
kVA=P/pf/1000
disp(kVA)
kW=P/0.971/1000
disp(kW)
Tpm=kW*1000*60/2/%pi/ns
disp(Tpm)
|
d5e96fd4034c81cd9fea9cfbb4371e0265ad961f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1976/CH4/EX4.11/Ex4_11.sce | 41f57cd37933bb213ec82b2ba5094e2ef76880c8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 753 | sce | Ex4_11.sce |
//To Determine the 30 mins rating of motor
//Page 229
clc;
clear;
Pr=100; //Power Rating in horse power
Tc=90*3600; //Time Constant
Tr=30*3600; //Time to determine the rating
theta=50; //Temperature Rise
theta1=50; //Temperature rise for the new case
P=poly(0,'P'); //Power rating for 30min variable value
//Loss Corresponding to 30 mins
P30=(P/Pr)^2; // Times the Power loss corresponding to the 100 hp motor
theta2=theta*P30; //Final Temperature rise if run continuously
X=theta1-(theta2*(1-exp(-1*Tr/Tc))); //Polynominal to find the 30min rating
P=roots(X); //Numerical Value
//We Consider the Positive Real Value of the root
P=P(1); //Power Rating of the 1/2 Hr
printf('The 1/2 Hr Power Rating is %g hp\n',P)
|
e36e2a31a53144b17c175780f17805ac67ea6614 | 717ddeb7e700373742c617a95e25a2376565112c | /3044/CH2/EX2.5/Ex2_5.sce | 6905936ca011f47fb7be1a20a4ae1d3f679b4e97 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 643 | sce | Ex2_5.sce | //Variable declaration
l = [2808, 4201, 3848, 9112, 2082, 5913, 1620, 6719, 21657,3072, 2949, 11768, 4731, 14211, 1583, 9853, 78811, 6655,1803, 7012, 1892, 4227, 6583, 15147, 4740, 8528, 10563,43003, 16723, 2613, 26463, 34867, 4191, 4030, 2472, 28840,24487, 14001, 15241, 1643, 5732, 5419, 28608, 2487, 995,3116, 29508, 11440, 28336, 3440]
height = [0,0,0,0,0,0,0,0,0,0,0]
X = [0,10000,20000,30000,40000,50000,60000,70000,80000,90000,100000]
//Calculation
for i = 1:length(l)
height(int(l(i)/10000) + 1) = height(int(l(i)/10000) + 1) + 1
end
//Results
bar(X,height)
xlabel("$Time(microseconds)$")
ylabel("$ClassFrequency$")
|
d88acdb5d42eeb599b1c7c516be4965ec316bc19 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3835/CH6/EX6.4/Ex6_4.sce | 3c4fdf27fa7c2a5c4fe768481ab2e97ba1fb33c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 135 | sce | Ex6_4.sce | clear
//
//given
rl=32
//let ratio of sides be a
rs=2
a=(2/(32))
p=a**0.5
printf("\n turns ratio for impedance machting is %0.1f ",p)
|
06a9e69210895ddebd55caf3e588acb724540ee6 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/czt.man.tst | bbf227f2f71aea09d2f0745ab24a554e7caf6c71 | [
"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 | 672 | tst | czt.man.tst | clear;lines(0);
a=.7*exp(%i*%pi/6);
[ffr,bds]=xgetech(); //preserve current context
rect=[-1.2,-1.2*sqrt(2),1.2,1.2*sqrt(2)];
t=2*%pi*(0:179)/179;xsetech([0,0,0.5,1]);
plot2d(sin(t)',cos(t)',[2],"012",' ',rect)
plot2d([0 real(a)]',[0 imag(a)]',[3],"000")
xsegs([-1.0,0;1.0,0],[0,-1.0;0,1.0])
w0=.93*exp(-%i*%pi/15);w=exp(-(0:9)*log(w0));z=a*w;
zr=real(z);zi=imag(z);
plot2d(zr',zi',[5],"000")
xsetech([0.5,0,0.5,1]);
plot2d(sin(t)',cos(t)',[2],"012",' ',rect)
plot2d([0 real(a)]',[0 imag(a)]',[-1],"000")
xsegs([-1.0,0;1.0,0],[0,-1.0;0,1.0])
w0=w0/(.93*.93);w=exp(-(0:9)*log(w0));z=a*w;
zr=real(z);zi=imag(z);
plot2d(zr',zi',[5],"000")
xsetech(ffr,bds); //restore context
|
60a06e24cb07cd3f66936dd0bec2755df56756fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /40/CH5/EX5.9a/Exa_5_9a.sce | 46f3540d15ea9de03ecec7ef1c96ff737c56e3a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 408 | sce | Exa_5_9a.sce | //DTFT and steady state response
a=0.5,b=1;F=0.25;
n=0:(5/1000):5;
h=(a^n);
x=10*cos(0.5*%pi*n'+%pi/3);
H=h*exp(-%i*n'*F);
Yss=H*x;
[phase_Yss,m]=phasemag(Yss);
Yss=real(Yss);
subplot(2,1,1)
plot2d(n,Yss);
xlabel('Frequency in radians')
ylabel('abs(Yss)')
title('magnitude Response')
subplot(2,1,2)
plot2d(n,phase_Yss)
xlabel('Frequency in Radians');
ylabel('<(y)')
title('Phase Response') |
58f091c08758ab04bc1c3f7f4b98b90aa9b112a4 | 67ba0a56bc27380e6e12782a5fb279adfc456bad | /STAMPER_PROG_7.4/TESTS/test_build_offset.sce | 3307b1885c3ce14f49034d106fffefe908d19c34 | [] | no_license | 2-BiAs/STAMPER_PROG | 8c1e773700375cfab0933fc4c2b0f5be0ab8e8f0 | 4fdc0bcdaef7d6d11a0dcd97bd25a9463b9550d0 | refs/heads/master | 2021-01-18T19:30:06.506977 | 2016-11-10T23:32:40 | 2016-11-10T23:32:40 | 71,999,971 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 171 | sce | test_build_offset.sce | vA = [0 -1];
vA_N = ([0 -1; 1 0] * vA')' / norm(vA);
vA_N_N = -vA;
fTheta = modulo(atan(vA(2) , vA(1)) + %pi, %pi)
disp(fTheta)
|
6a0ac14d3bb8ae47baa00e27fc33798e4425dcb2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3733/CH24/EX24.34/Ex24_34.sce | 0bcc404389975cf20d1f2cac260ed03ef5fe7830 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,103 | sce | Ex24_34.sce | // Example 24_34
clc;funcprot(0);
//Given data
p_1=1;// bar
p_2=8;// bar
T_1=300;// K
T_3=1000;// K
CV=40;// MJ/kg
W_2=500;// kW
C_pa=1;// kJ/kg.°C
C_pg=1;// kJ/kg.°C
r=1.4;// Specific heat ratio for air and gases
//Calculation
p_r=(p_2/p_1);// Pressure ratio
T_2=T_1*(p_r)^((r-1)/r);// K
T_4=T_3/(p_r)^((r-1)/r);// K
// Assume m_a=y(1);m_f=y(2);// m_g1=y(3);m_g2=y(4)
function[X]=mass(y)
X(1)=(y(1)+y(2))-(y(3)+y(4));
X(2)=(y(4)*C_pg*(T_3-T_4))-(W_2);
X(3)=(y(1)*C_pa*(T_2-T_1))-(y(3)*C_pg*(T_3-T_4));
X(4)=(y(2)*CV*10^3)-((y(1)+y(2))*C_pg*(T_3-T_2));
endfunction
y=[1 0.1 1 1];
z=fsolve(y,mass);
m_a=z(1)*60;// kg/min
m_f=z(2)*3600;// kg/hr
m_g1=z(3);// kg/sec
m_g2=z(4);// kg/sec
Sfc=(m_f/W_2);// kg/kWh
AF=(m_a/60)/(m_f/3600);// Air fuel ratio
n_th=(W_2/((m_f/3600)*CV*10^3))*100;// Thermal efficiency in %
printf('\nThe mass of air consumed by the plant=%0.1f kg/min \nA:F ratio used=%0.0f \nSpecific fuel consumption=%0.2f kg/kWh \nThermal efficiency of the plant=%0.1f percentage',m_a,AF,Sfc,n_th);
// The answer vary due to round off error
|
131f6e0ae9bd7abe71d2ee8b940e06fd8736a100 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH17/EX17.4/Ex17_4.sce | 3b0888f943c2aeef51617a082e518e24b5820f22 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 804 | sce | Ex17_4.sce | //Example 17.4
f_s=150;//Frequency of horn (Hz)
v_s=35;//Speed of train (m/s)
v_w=340;//Speed of sound (m/s)
f_obs1=f_s*(v_w/(v_w-v_s));//Frequency as the train approaches (Hz)
printf('a.Frequency observed as the train approaches = %0.1f Hz',f_obs1)
f_obs2=f_s*(v_w/(v_w+v_s));//Frequency after the train passes (Hz)
printf('\n Frequency observed after the train passes = %0.1f Hz',f_obs2)
v_obs=v_s;//Speed of observer (train's engineer) (m/s)
//v_s and v_obs are both positive for this case, see point (3) under Solution for(b)
f_obs=[f_s*((v_w+v_obs)/v_w)]*(v_w/(v_w+v_s));
printf('\nb.Frequency observed by the train''s engineer = %0.1f Hz',f_obs)
//The answer varies due to round off error
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|
5f4957c10492fbea8f068631440082879856f1df | 202a74e36c37e7dea5df33e79d3a302bcc54c5df | /teste.tst | 727d861bf4eae8bab8c836980c99653dfabcdd27 | [] | no_license | backtrunck/learning_python2 | d71f6fb595bb7b728c62a039eb6f2e236d2f627d | f4a20e492c4a98d9f286699fe3e6b92e04a6fede | refs/heads/master | 2021-07-05T23:17:31.840432 | 2017-09-30T14:44:22 | 2017-09-30T14:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 305 | tst | teste.tst | isto é apenas um teste com o vi
ok criei linhs em cima
#vamos comentar esta linha #
ok linhas criada em debaixo, vamos fazer uma emcima
vamos testar também como incluir linhas
estou escrevendo escrevendo
e agora estou subindo as linhas
para tentar criar um linha
antes da segunda linhas deste texto
|
a10272924db29fec13006813910757ab3c1124be | 449d555969bfd7befe906877abab098c6e63a0e8 | /692/CH9/EX9.12/P9_12.sce | 7b027a2cfe072687f720bffd7ac003a124c6acfe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 519 | sce | P9_12.sce | //EXAMPLE 9.12
//Minimum order of type-2 Chebyshev highpass digital filter
clc;
clear;
ap = 1 //dB
as = 40 //dB
Fp = 1000 //Hz
Fs = 600 //Hz
Wp = Fp*2*%pi;
Ws = Fs*2*%pi;
F = 4000//Hz
T=1/F;
Ap=(2/T)*(tan(Wp*T/2))
As=(2/T)*(tan(Ws*T/2))
k = Ap/As;
disp(1/k,'1/k = ');
k1 = 1/(sqrt(((10^(0.1* as))-1)/((10^(0.1*ap))-1)));
disp(1/k1,'1/k1 = ');
N = acosh(1/k1)/acosh(k);//order of the filter
disp(N,'N = ');
disp('Since order of the filter is always an integer, ');
disp(ceil(N),'Order of the filter is, N = ');
|
8feb2d2d973f993c9ea0ece4950146bbba1a9c76 | e0124ace5e8cdd9581e74c4e29f58b56f7f97611 | /3913/CH4/EX4.2/Ex4_2.sce | 030cb064839fbdec32dc29e64bec36fcb81d7b87 | [] | 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 | 543 | sce | Ex4_2.sce | //Chapter 4 : Invertible Matrices
//Example 4.3
//Scilab 6.0.1
//Windows 10
clear;
clc;
X=[1 2 3;
1 3 4;
1 4 4];
disp(X,'X=')
B=eye(3,3)
disp(B,'B=')
X=[X B];
disp(X,'X=')
X(3,:)=X(3,:)-X(1,:)
X(2,:)=X(2,:)-X(1,:)
disp(X,'X=')
X(3,:)=X(3,:)-2*X(2,:)
disp(X,'X=')
X(2,:)=X(2,:)+X(3,:)
disp(X,'X=')
X(1,:)=X(1,:)+3*X(3,:)
disp(X,'X=')
X(1,:)=X(1,:)-2*X(2,:)
X(3,:)=X(3,:)/(-1)
disp(X,'X=')
mprintf('A has an inverse, namely:')
Ainv=[]
Ainv(1,:)=X(1,4:6)
Ainv(2,:)=X(2,4:6)
Ainv(3,:)=X(3,4:6)
disp(Ainv)
|
4685d529456a1166eaf92449a2f86e28e0ee9364 | 61a3a47880cc389dd77901a8efc34d5b68d9f29d | /UI/src/app/model.tst | 1e66001f2d74040b05b87f12f0b852d38b88d35d | [
"MIT"
] | permissive | rlucas6130/triton | 87f11548decfadfd69a0ee983e14153f0b4a3d9b | 4c684dc77cb2c888b4f11f283e4cd468ed91353e | refs/heads/master | 2021-01-01T06:06:22.539757 | 2017-09-20T23:41:48 | 2017-09-20T23:41:48 | 97,355,654 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,542 | tst | model.tst | ${
// Enable extension methods by adding using Typewriter.Extensions.*
using Typewriter.Extensions.Types;
using System.Text;
// Uncomment the constructor to change template settings.
Template(Settings settings)
{
settings.IncludeProject("UI");
settings.OutputFilenameFactory = (file) => file.Classes.First().name + ".ts";
}
string Imports(Class @class) {
var imports = new StringBuilder();
if(@class.BaseClass != null) {
imports.Append("import { "+@class.BaseClass+" } from \"./" + @class.BaseClass.name + "\";\n");
}
foreach(var property in @class.Properties) {
if(!property.Type.IsPrimitive) {
imports.Append("import { "+@property.Type.ClassName()+" } from \"./" + property.Type.ClassName() + "\"; \n");
}
if(property.Type.IsEnum) {
imports.Append("import { "+@property.Type.ClassName()+" } from \"./" + property.Type.ClassName() + "\"; \n");
}
}
return imports.ToString();
}
string Extends(Class @class) {
if(@class.BaseClass != null) {
return "extends " + @class.BaseClass;
}
return null;
}
string Nullable(Property property) {
if(property.Type.IsNullable) {
return "?";
}
return null;
}
}
$Classes(UI.ViewModels.Dtos*)[$Imports
export interface $Name$TypeParameters $Extends
{ $Properties[
$name$Nullable: $Type;]
}] |
4d2d95ee60725d5c32e11326ae17098acafd4d5f | 449d555969bfd7befe906877abab098c6e63a0e8 | /154/DEPENDENCIES/ch7_22.sce | b9cc022aea30d15fc8acf884f66ba5bdbed787ec | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 379 | sce | ch7_22.sce | clc
disp("Example 7.22")
printf("\n")
//The general equation of exponential decay function is given by
disp("v(t)=A*e(-t/T)+B")
//We need to solve A and B
//At t=0 we get v(0)=A+B (1)
//at t=inf we get B=1 (2)
//Solving (1) and (2)
A=4;B=1;
T=3;
t=0:0.05:10
v=4*exp(-t/T)+1;
figure
a= gca ();
plot(t,v)
xtitle ('v vs t','t','v');
a. thickness = 2;
|
af8e3cfd354872123d6757c73f527e4f3d09fa08 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH2/EX2.2/example2_2.sce | 1f046003c5abf35ab9449d02aaf1b71e143db956 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 298 | sce | example2_2.sce |
//example 2.2
//calculate maximum area that can be irrigated
clc;
//Given
Q=0.0108, //discharge through well
y=0.075, //average depth of flow
I=0.05, //average infiltration rate
A=0.1, //area to cover
Amax=Q/I;
mprintf("Maximum area that can be irrigated =%f hectare.",Amax);
|
01a942d511b1523dec09044858f30f055db4ef54 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3574/CH4/EX4.1/EX4_1.sce | a2629f77a8f459d096ece709e2874c1a3c1994c8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 445 | sce | EX4_1.sce | // Example 4.1
// Computation of synchronous speed of a six pole induction motor
// Page No. 140
clc;
clear;
close;
// Given data
f=60; // Frequency
p=6; // Number of poles
fs=f*0.85; // Frequency is 85% of its rated value
ns=120*fs/p; // Synchronous speed
// Display result on command window
printf("\n Synchronous speed of a six pole induction motor = %0.0f r/min ",ns);
|
5b025dd9f0ccd80cd968533e719697b34c27ecc6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2990/CH4/EX4.40/Ex4_40.sce | 73609a3130c9318ceafbaef229286da03a0d2083 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex4_40.sce |
funcprot(0);
// Initialization of Variable
function[dms]=degtodms(deg)
d = int(deg)
md = abs(deg - d) * 60
m = int(md)
sd = (md - m) * 60
sd=round(sd*100)/100
dms=[d m sd]
endfunction
theta=53+20.0/60;//theta in degrees
delta=53+20.0/60;//delta in degrees
//calculation
alpha=theta+delta-90;
alpha=degtodms(alpha);
disp(alpha,"altitude in deg min sec");
clear()
|
6f0d6d8d7a77674cd8b766c7021ea78299b61d0c | 5bd81bf02557a266648c04d0926bfd5f97f6f77f | /main.sce | 43fc470874f771550a439f8f9e5ad5dd5448e59f | [] | no_license | bernardorusso/IC-proj | a025644007bb47c5fcc5e9925f0ac67d6cb7d9c1 | c53856216e1e1951eb78c921db5bb78ece7d52b3 | refs/heads/master | 2021-01-01T17:37:10.068765 | 2015-09-17T13:13:23 | 2015-09-17T13:13:23 | 35,575,367 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 105 | sce | main.sce | cdir = pwd();
exec(cdir+'/utils.sce',-1);
exec(cdir+'/dist_mat.sce',-1);
exec(cdir+'/examples.sce',-1);
|
46d28588f5bd2e02f0d8c5aa7cdae0769c9392f3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3129/CH16/EX16.8/Ex16_8.sce | 695babec57e5f66a7467d2db4d2f1d96651cbd54 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,034 | sce | Ex16_8.sce | //Finding the Performance Parameters of a Cylindrical rotor Synchronous motor
//Example 16.8(Page No- 741)
clc
clear
//given data
PF = 1;
theta_m = 0;// since cos(theta)=1
Vl = 460;//V
Va = Vl/sqrt(3);
Vb = Va;
Vs = Va;
p = 6;
f = 60;//Hz
w = 2*%pi*f;//rad/s
w_s = 2*(w/p);
w_b = w_s;
w_m = w_s;
d = Vb/w_b;
Ra = 0;
Xs = 2.5;
//At 720rpm
T_L = 398;//given
T_L = T_L*(720/1200)^2;
w_s = 720*(%pi/30);
w_m = w_s;
Po = T_L*w_s;
//part(a)
Va = d*w_s;
printf('(a)\t The input voltage Va is %.2f V',Va);
//part(b)
Ia = Po/(3*Va);
printf('\n (b)\t The armature current is %.1f A',Ia);
//part(c)
V_f = Va-Ia*(cos(theta_m)-%i*(sin(theta_m)))*(Ra+%i*Xs);
V_f_abs = abs(V_f);
tangle = atand(imag(V_f)/real(V_f));
printf('\n (c)\t The excitation voltage is %.2f V %.2f degrees',V_f_abs,tangle);
//part(d)
delta = tangle;//torque angle
printf('\n (d)\t The torque angle is %.2f degrees',delta);
//part(e)
Tp = (3*Va*V_f_abs)/(Xs*w_s);
printf('\n (e)\t The pull-out torque is %.2f N.m',Tp);
|
29dda3f2a0713d3610ff592bce34dd1ecf5c1525 | be2d2a8f4f52eaee8321843e3982b31822f8eb00 | /lotka_kolterra.sce | badc8d798867c3156aad6751120559e5a27d9039 | [] | no_license | betacord/SK | dbe99f8e767a225fffac30935084d001a12facbb | 8ac1f424f85f595285db0f2f47f8a0fb3afa4033 | refs/heads/master | 2020-03-31T21:35:18.805098 | 2018-12-13T13:16:13 | 2018-12-13T13:16:13 | 152,585,930 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 695 | sce | lotka_kolterra.sce | //Lotka-Kolterra
//N1 - ofiary
//N2 - drapieznik
A = 2; //dzietnosc ofiar
B = 0.2; //skutecznosc polowania
C = 3; //smiertelnosc drapieznikow\
D = 0.05; //wspolczynnik konwersyji
N0 = [100;50]; //stan poczatkowy
t = [0:0.1:20]; //os czasu
function Ndot = lotka(t, N)
Ndot = [(A * N(1) - B*N(1) * N(2));
-C * N(2) + D * N(1) * N(2)];
endfunction
//rozwiazanie ODE
N = ode(N0, t(1), t, lotka);
subplot(221);
plot(t, N(1, :));
xtitle("Ofiary", "t", "N1");
subplot(222);
plot(t, N(2, :));
xtitle("Drapiezniki", "t", "N2");
subplot(223);
plot(N(1, :), N(2, :));
xtitle("Wykres fazowy", "N1", "N2");
subplot(224);
param3d(N(1, :), N(2, :), t);
xtitle("Wykres 3D", "N1", "N2", "t");
|
f137400a410652e4f03b6604a1315f5bc4adbded | f891f5aed2e66371488173c2b9c4e8f977a9f64a | /Sandia Inverter Test Protocol/Tests/FRT_Rule_21.tst | 6542a45ca25f25e40ddf2151b1e4c2d149d81a3e | [] | no_license | jakedm/svp_directories | d9b85c41b45a3ded7572f9f730e8d1efc8515099 | 19272f8784baabf83e197778768933aef015432c | refs/heads/master | 2021-01-18T18:08:29.224016 | 2017-01-16T20:09:35 | 2017-01-16T20:09:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,784 | tst | FRT_Rule_21.tst | <scriptConfig name="FRT_Rule_21" script="FRT">
<params>
<param name="frt.settings.time_window" type="int">0</param>
<param name="frt.settings.timeout_period" type="int">0</param>
<param name="frt.settings.ramp_time" type="int">0</param>
<param name="invt.time_msa" type="float">0.1</param>
<param name="frt.settings.lc_curve_num" type="int">1</param>
<param name="frt.settings.hc_curve_num" type="int">1</param>
<param name="frt.settings.l_curve_num" type="int">1</param>
<param name="frt.settings.h_curve_num" type="int">1</param>
<param name="invt.test_point_offset" type="float">1.0</param>
<param name="comm.slave_id" type="int">1</param>
<param name="frt.settings.hc_n_points" type="int">4</param>
<param name="frt.settings.lc_n_points" type="int">4</param>
<param name="frt.settings.l_n_points" type="int">4</param>
<param name="frt.settings.h_n_points" type="int">4</param>
<param name="invt.frt_period" type="int">5</param>
<param name="invt.verification_delay" type="int">5</param>
<param name="invt.posttest_delay" type="int">10</param>
<param name="invt.pretest_delay" type="int">10</param>
<param name="invt.failure_count" type="int">60</param>
<param name="comm.baudrate" type="int">9600</param>
<param index_count="4" index_start="1" name="frt.hc_curve.hc_time" type="float">0.0 0.0 0.0 0.0 </param>
<param index_count="4" index_start="1" name="frt.h_curve.h_time" type="float">0.0 0.0 0.0 0.0 </param>
<param index_count="4" index_start="1" name="frt.lc_curve.lc_time" type="float">0.0 0.0 0.0 0.0 </param>
<param index_count="4" index_start="1" name="frt.l_curve.l_time" type="float">0.0 0.0 0.0 0.0 </param>
<param index_count="4" index_start="1" name="frt.hc_curve.hc_freq" type="float">100.0 100.0 100.0 100.0 </param>
<param index_count="4" index_start="1" name="frt.lc_curve.lc_freq" type="float">100.0 100.0 100.0 100.0 </param>
<param index_count="4" index_start="1" name="frt.h_curve.h_freq" type="float">100.0 100.0 100.0 100.0 </param>
<param index_count="4" index_start="1" name="frt.l_curve.l_freq" type="float">100.0 100.0 100.0 100.0 </param>
<param name="comm.ifc_name" type="string">COM3</param>
<param name="gridsim.auto_config" type="string">Disabled</param>
<param name="datatrig.dsm_method" type="string">Disabled - Data from EUT</param>
<param name="pvsim.mode" type="string">Manual</param>
<param name="gridsim.mode" type="string">Manual</param>
<param name="comm.parity" type="string">N</param>
<param name="invt.disable" type="string">No</param>
<param name="comm.ifc_type" type="string">RTU</param>
<param name="frt.settings.ride_through" type="string">Yes</param>
</params>
</scriptConfig>
|
1631599c4635a5faed66b8e52eab5c77af8e23b7 | fa428f297a915e9a041597642bfe29627ab69c42 | /app/views/partials/navbar.sce | 313823afb256d8666ba5b0f00fb9aca51517c5ce | [] | no_license | TheBrenny/Web-Dev-and-Security | dff903be92838b14f7126dd1f7092922b86bf2cc | e4abb96dc24e606704b09f5acdd2684d6d5d577d | refs/heads/main | 2023-06-17T08:33:35.176024 | 2021-06-15T05:07:20 | 2021-06-15T05:07:20 | 343,603,444 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 358 | sce | navbar.sce | <div class="navbar">
<img src="/assets/img/logo_small.png" alt="z5217759 // QM" class="logo">
<nav>
[[e= navItem in navList ]]
<a href="[[navItem.slug]]" class="navItem
[[?= navItem.active ]]
navActive
[[?==]]
">[[navItem.title]]</a>
[[?==]]
</nav>
</div> |
9551cd44a5cfe923e5e0c8c334e1e3d1cc25f3d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH5/EX5.12/Ex5_12.sce | aab456dac5576003b7cb6aa2e8687bf8f4356b23 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 401 | sce | Ex5_12.sce | //Initilization of variables
L=3.8 //m
w=10 //kg/m
P=1000 //N
t=0.8 //m
g=9.81 //m/s^2
//Calculations
Gf=L*w*g //N
A=(P*L+Gf*L*0.5)/t //N Taking moment about point B
B=(P*(L-t)+Gf*(0.5*L-t))/t //N Taking moment about point A
//Result
clc
printf('The reaction at point A and B are %f N and %f N respectively',A,B)
//Decimal accuracy causes discrepancy in answers compared to the textbook
|
07c8584d405f45c0f2de4ced8db7d87da81aeefd | fd6e45f66c41ad779a3d47c3bf8ebfa140d3d657 | /P7 - Interpolation and function approximation/newton.sce | 532dad54588f16efed0367baba784d13d31d2b78 | [] | 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 | 515 | sce | newton.sce | //METODO DE NEWTON
//X vector fila con los puntos a interpolar
//Y vector fila con f(X)=Y
function N = newton(X, Y)
n = length(X);
d = zeros(n, n);
d(:, 1) = Y';
for j=2:n
for k=j:n
d(k, j) = (d(k, j-1) - d(k-1, j-1))/(X(k) - X(k-j+1));
end
end
N = d(1, 1);
for i=2:n
N = N + d(i, i) * poly(X(1:i-1), "x");
end
endfunction
//function y = f(x)
// y = horner(N, x);
//endfunction
//x = min(X):(max(X)-min(X))/100:max(X);
//plot(X, Y, '*r');
//fplot2d(x, f); //o plot(x, f(x))
|
7d824b2548a069c37bcd674462a5a54584518ed5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3480/CH3/EX3.1/Ex3_1.sce | 8b44b9727df87577090f8e7a3aec9b12e0a120ca | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 136 | sce | Ex3_1.sce | //Example 3.1, page 69
clc;
n1=1.5
r=1//in cm
n=1//in cm
a=4//in cm, air
s=.5-(1/a)
s1=n1/s
printf("\n The image is formed at %d cm",s1) |
bd545b29cf91aa1f3e3bab2bd2dc7f754ab2ec4f | 127061b879bebda7ce03f6910c80d0702ad1a713 | /PiLib_loader.sce | 71e067db78b48423c08b8a91abedc009ac1ad024 | [] | no_license | pipidog/PiLib-Scilab | 961df791bb59b9a16b3a32288f54316c6954f128 | 125ffa71b0752bfdcef922a0b898263e726db533 | refs/heads/master | 2021-01-18T20:30:43.364412 | 2017-08-17T00:58:50 | 2017-08-17T00:58:50 | 100,546,695 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 31 | sce | PiLib_loader.sce | clear;
getd(PiLib_path+'bin');
|
ba03045ee319c2e86e3c2a615b51383a03e33880 | 72bdc6d649588b61192529e7d1420ddc18d1a67a | /tema4/3_ec_diferenciales.sce | 5c0c1a2bd8fe6d21b028358a5251d0f4452bab17 | [] | no_license | jgpATs2w/scilab-examples | c3fcff648f720a8e909b2af0ec9ab70fb90dfcd2 | 59522a5ae1abbadf6f62bff16095f4b74c707918 | refs/heads/master | 2020-09-27T23:41:06.927931 | 2020-02-11T08:54:24 | 2020-02-11T08:54:24 | 226,637,785 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 117 | sce | 3_ec_diferenciales.sce | function ydot=f(t, y)
ydot=y^2-y*sin(t)+cos(t)
endfunction
y0=0;
t0=0;
t=0:0.1:%pi;
y = ode(y0,t0,t,f);
plot(t,y) |
028debc532a9762e806b9be1962de2603234cdaa | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH3/EX3.5w/3_5w.sce | 991050732ad72b7978780d544ceb0ae90e784813 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 493 | sce | 3_5w.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 3.5w
//calculation of acceleration and distance travelled
//given data
v1=100//speed1(in m/s)
v2=150//speed2(in m/s)
t=1//change in time (in s)
//calculation
a=(v2-v1)/t;//formula of acceleration
x=((v2*v2)-(v1*v1))/(2*a);//distance travelled in (t+1)th second
printf('acceleration of the particle is %3.2f m/s^2',a)
printf('\ndistance travelled in (t+1)th second is %3.2f m',x)
|
68c0e422098f199d6b1b4fe2da04f746258aeda3 | d56141249002a5da7c4a2641dbdfc609809046a8 | /octopus/MD_coordinate_plot.sce | 6d1e13f3e7eaf4798234e13e805c9b1ad0d9155c | [] | no_license | kcbhamu/DFTutilities | 14a77226c1229ec61563cc08316d6c32814ddb57 | d6c859407a6b13c8bc5340c08db7a0125d6ed4e6 | refs/heads/master | 2021-06-24T15:23:58.675113 | 2017-08-23T20:56:44 | 2017-08-23T20:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,632 | sce | MD_coordinate_plot.sce | // This code plot the coordinate/ velocity/ force output by octopus MD
// calculation.
clear; xdel(winsid()); stacksize('max')
// Parameters =========================================================
work_dir='D:\Work\CO_junction\md_cw2'
tot_atom=10 // total atoms
sel_atom=10 // select the atom to plot
plot_shift='off' // whether shift all values to 0 at t=0
// Main ===============================================================
fid=mopen(work_dir+'/td.general/coordinates','r')
mgetl(fid,5);
A=mfscanf(-1,fid,strcat(repmat('%f ',1,3*3*tot_atom+2)));
mclose(fid);
t=A(:,2);
select plot_shift
case 'on'
A=A-repmat(A(1,:),length(A(:,1)),1);
X=A(:,2+(1-1)*3*tot_atom+1:2+(2-1)*3*tot_atom);
V=A(:,2+(2-1)*3*tot_atom+1:2+(3-1)*3*tot_atom);
F=A(:,2+(3-1)*3*tot_atom+1:2+(4-1)*3*tot_atom);
case 'off'
X=A(:,2+(1-1)*3*tot_atom+1:2+(2-1)*3*tot_atom);
V=A(:,2+(2-1)*3*tot_atom+1:2+(3-1)*3*tot_atom);
F=A(:,2+(3-1)*3*tot_atom+1:2+(4-1)*3*tot_atom);
end
// coordinate
for m=1:3
figure(m)
for n=1:3
subplot(3,1,n)
select m
case 1 // X
plot(t*0.658,X(:,3*(sel_atom-1)+n));
ylabel('X'+string(n),'fontsize',4)
case 2 // V
plot(t*0.658,V(:,3*(sel_atom-1)+n));
ylabel('V'+string(n),'fontsize',4)
case 3 // F
plot(t*0.658,F(:,3*(sel_atom-1)+n));
ylabel('F'+string(n),'fontsize',4)
end
a=gce(); a.children.thickness=2;
xlabel('time (fs)','fontsize',4);
set(gcf(),'background',8)
//set(gca(),'thickness',4,'font_size',4);
end
end
|
46c7cfb4765bd63e32a17f615371556921fab1da | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/final/wave_intro/run_wave_intro.sce | f3234a7a57ae1bb1d98044c6fdce0abbfa6d16ed | [] | no_license | mikeg2105/matlab-old | fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e | eac168097f9060b4787ee17e3a97f2099f8182c1 | refs/heads/master | 2021-05-01T07:58:19.274277 | 2018-02-11T22:09:18 | 2018-02-11T22:09:18 | 121,167,118 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 446 | sce | run_wave_intro.sce | wavetype=0; //stationary
nsteps=20;
maxamplitude=15;
wavenumber=1*2*%pi;
wavefreq=12;
delta=0.01;
nmax=100;
//Wave packet
npackets=5;
pwavfreq=2;
pwavnum=7;
clf;
for i=1:nsteps
x=1:1:nmax;
clf;
realtime(i);
plot2d(x, wave1d(i, wavetype, maxamplitude, wavenumber, wavefreq, delta,nmax));
//plot2d(x, wavepacket1d(i, wavetype, maxamplitude, wavenumber, wavefreq,pwavnum, pwavfreq, npackets, delta,nmax));
xpause(1000000);
end
|
24bb329443258f35a2b6945921ec93c1fb5d0d0d | 0320d75d635104b38bca383bde2d5a012d0ccd4f | /Comp Org/assign4/a4/test3.tst | 9dae672bb806efa2bc7ee9feed83732abe27b3ca | [] | no_license | sbkohel/Class_files | 97d4392d977d1de715eadba674ccb042195fd383 | 4a4cced4c23fab038b45ac54649e9831c45ea9b7 | refs/heads/master | 2018-12-29T21:11:59.492247 | 2014-12-17T02:02:20 | 2014-12-17T02:02:20 | 15,176,186 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 456 | tst | test3.tst | load Larc.hdl,
set RAM4K[0] %X8101, // 1. li R1 1
set RAM4K[1] %XA070, // 2. beq R0 7 (jump to address 9)
set RAM4K[2] %XF000, //
set RAM4K[3] %XF000, //
set RAM4K[4] %XF000, //
set RAM4K[5] %XF000, //
set RAM4K[6] %XF000, //
set RAM4K[7] %XF000, //
set RAM4K[8] %XF000, //
set RAM4K[9] %XBF71, // 3. bne R1 -9 (jump back to address 1)
set RAM4K[10] %XF000 // 4. halt
;
repeat 100 { tick, tock; }
|
8a8e6970d46fb462e790ac36aa8a6d532e32b901 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH27/EX27.2/Ex27_2.sce | 4b16902e6f613f583c16e6b6c46f85f3922323b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 73 | sce | Ex27_2.sce | clc;
//e.g 27.2
AV=1000;
AV1=10;
beta=((AV/AV1)-1)/AV;
disp(beta);
|
d18371850983468aa9ddf666f59091c480c95e04 | 717ddeb7e700373742c617a95e25a2376565112c | /3428/CH23/EX14.23.11/Ex14_23_11.sce | 8d68f07919b8b4c5e162fbf17d2a21d9956462f3 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 253 | sce | Ex14_23_11.sce | //Section-14,Example-6,Page no.-PC.84
//To find the concentration of Ag2+ for the given conditions.
clc;
K_spAgI=1.5*10^-16
K_spAgCl=1.56*10^-10 //C=[I-]/[Cl-]
C=(K_spAgI)/(K_spAgCl)
disp(C,'Required concentration of AgCl')
|
8db509e40449200dc45a2355bb154cf3bf57993f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH1/EX1.12/Exa_1_12.sce | caa1a154a5eefb656696b3c9264b71778ff212e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 371 | sce | Exa_1_12.sce | //Exa 1.12
clc;
clear;
close;
format('v',7);
//Given Data :
t_ice=0;//degree centigrade
p_ice=1.5;
t_steam=100;//degree centigrade
p_steam=7.5;
//t=a*log(p)+b
//solving for a and b by matrix
A=[log(p_ice) 1;log(p_steam) 1];
B=[t_ice;t_steam];
X=A^-1*B;
a=X(1);
b=X(2);
p=3.5;//bar
t=a*log(p)+b;//degree C
disp(t,"Temperature scale in degree C : ");
|
7d1ef6701abe0a48299f5b013a731f62c8ef96d6 | 717ddeb7e700373742c617a95e25a2376565112c | /1766/CH9/EX9.8/EX9_8.sce | 2874fc213a3cda69e3a11807aa960b6c3df6ee75 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 542 | sce | EX9_8.sce | clc;funcprot(0);//Example 9.8
//Initilisation of Variables
T=3000;....//Temparature of filament in a bulb in K
E=100;...//Tungsten filament of light bulb
e=0.3;....//Emissivity of filament in a bulb in
R=5.67*10^-8;.....//Stefens boltsman constant
//calculations
A=E/(e*R*T^4);.....//Minimum surface area of tungsten filament if the bulb is completely evacated and is at a steady state condition in m^2
disp(A,"Minimum surface area of tungsten filament if the bulb is completely evacated and is at a steady state condition in m^2:")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.