blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50
values | src_encoding stringclasses 23
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 5 10.4M | extension stringclasses 29
values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82cfd24018cf56651d69aa03df78bb298c9a2210 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2093/CH1/EX1.3/exa_1_3.sce | 91fab23b29dfd61a95d55f7e13254777545016bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 253 | sce | exa_1_3.sce | // Exa 1.3
clc;
clear;
close;
// Given data
G=-10;
Ri= 100;// in kohm
R1= Ri;// in kohm
R1=R1*10^3;// in ohm
// Formula G=-R2/R1
R2= R1*abs(G);// ohm
disp(R1*10^-3,"Value of R1 in kohm is : ")
disp(R2*10^-6,"and value of R2 in Mohm is : ")
|
788713e5acdc3fa56e7b9803502c2ca95464dd76 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3523/CH12/EX12.17.8/Ex12_8.sce | c0b40cb69435eaa4561e39d85e750ec34da6c924 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 699 | sce | Ex12_8.sce | //Example 8// Ch 12
clc;
clear;
close;
// given data
a=2;
b=5.3;
alpha=(b/a)^0.33;
r1=1.385;//radii of intersheaths in cm
r2=1.92;//radii of intersheaths in cm
r=1;//conductor radius in cm
ri=2.65;//sheath of inside radius in cm
V=66;//voltage in kv
Vpeak=66*sqrt(2)/sqrt(3);//peak voltage
V2=Vpeak/(1+1/alpha+(1/alpha)^2);//in kV
V1=(1+1/r1)*V2;//in kV
printf("%f kV",V2)
printf("%f kV",V1)
Emax0=Vpeak/(r*log(ri/r));
printf("max stress without sheaths %f kV/cm",Emax0)
Emin0=Vpeak/(ri*log(ri/r));
printf("min stress without sheaths %f kV/cm",Emin0)
Emax=3*Emax0/(1+alpha+alpha^2);
printf("max stress %f kV/cm",Emax)
Emin=Emax/alpha;
printf("min stress %f kV/cm",Emin)
|
76088b512e2e4f90117b5cc8ef9805a0cda22309 | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH11/EX11.11/example_11_11.sce | cb661deb994e911b48a3eb9d1fbe602015fac069 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,235 | sce | example_11_11.sce | s=poly(0,'s');
F=syslin('c',[1/((1+s)*s*(0.1*s+1))]) //without k
fmin=0.1; //Min freq in Hz
fmax=20; //Max freq in Hz
scf(1);clf;
bode(F,fmin,fmax); //Plots frequency response of open-loop system in Bode diagram
show_margins(F) //display gain and phase margin and associated crossover frequencies
// TO FIND VALUE OF K
// for GM=30 dB, the point on the plot without k is 10dB away from 0dB line.
k1=10^(-10/20) // 20*log(k1)=-10
disp(k1,"k for GM=30 is ")
F1=syslin('c',[(k1)/((1+s)*s*(0.1*s+1))])
[PhaseMargin,freqPM]=p_margin(F1)
disp(freqPM*2*3.14,"corresponding omegaGC")
disp(PhaseMargin,"PM=")
// for PM=30degrees, the point on the magnitude plot without k is 6dB away from 0dB line.
k2=10^(6/20) // 20*log(k1)= 6 dB
disp(k2,"for PM=30degrees k is ")
F2=syslin('c',[(k2)/((1+s)*s*(0.1*s+1))])
[PhaseMargin,freqPM]=p_margin(F2)
disp(freqPM*2*3.14,"corresponding omegaGC")
[GainMargin,freqGM]=g_margin(F)
disp(GainMargin,"GM=") |
8222dbee5980153dab2244c7d4df4962dffff1b3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1358/CH3/EX3.21/Example321.sce | 89dfe9d5af635cab578d7d9066484934b17c0f14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 971 | sce | Example321.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 3, Example 21")
disp("Hydraulic efficiency, etah, is given by")
disp("etah = Power given to runner/Water Power available")
disp(" = m (U1Cw1 - U2Cw2)/rho*gQH")
disp("Since flow is radial at exit, Cw2 = 0 and m = rho*Q. Therefore")
Cw2 = 0;
etah = 0.82;
U1 = 10.6;
g = 9.81;
H = 6;
Cw1 = etah*g*H/U1
Cr1 = 4;
alpha1 = atan(Cr1/Cw1)*180/%pi
disp("From Figures")
disp("Blade angle, beta1, is given by")
beta1 = 180 - atan(Cr1/(U1-Cw1)) * 180/%pi
disp("Runner speed at inlet")
N = 235;
D1 = U1*60/(%pi*N)
disp("Overall efficiency")
disp("etao = Power output/Power available")
etao = 0.75
rho = 1000;
P = 128000
disp("From which flow rate")
Q = P/(0.75*rho*g*H)
disp("Also, Q = rho*D1hCr1")
disp("where h1 is the height of runner. Therefore,")
h1 = Q/(%pi*D1*Cr1)
|
0361670bda8869251ee4f7f41186db00cb4581e4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1472/CH22/EX22.7/22_7.sce | 258d71a1ed50633a3432d816af5340f83a6063ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 221 | sce | 22_7.sce | clc
//initialization of varaibles
HV=4344 //B/lb
xC=56 //lb
R=1.986
T=530 //R
MC=56 //g/mol
//calculations
HR=xC*HV
Eb=-HR -R*T*(2-3)
HV=-Eb/MC
//results
printf("COnstant volume heating value = %d B/lb ",HV)
|
72c71dd42f0640e32bea2703a29774544581a0b2 | 0812f3bb6f3cc038b570df68ccee4275da04b11f | /models/complexity_1000/Applied_Thermodynamics_and_Engineering/CH7/EX7.7/7_7.sce | 735781bee9fee1226f78371ac34bc44721bb897c | [] | no_license | apelttom/20-semester_PhD_thesis | edc0b55580bae9d364599932cd73cf32509f4b7a | ff28b115fcf5e121525e08021fa0c02b54a8e143 | refs/heads/master | 2018-12-26T22:03:38.510422 | 2018-12-14T20:04:11 | 2018-12-14T20:04:11 | 106,552,276 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 136 | sce | 7_7.sce | clc;
a=1;
c={6.31-2-(2*1.95)}/2
d=0.03+(0.79*30)
tds=a+c+d;
C=a/tds*100
O=c/tds*100
N=d/tds*100
disp(N,O,C,"analysis by volume is:");
|
e1e73b89df0ae6a4af00cf6d2be151a9da4c2248 | 67310b5d7500649b9d53cf62226ec2d23468413c | /tags/archive/TestCaseGenerator-Plugin-OpeningSequenceCoverage/trunk/tests/large-system-tests/inputs/jEdit/ground_truth/OpeningSequenceCoverage/length-1/max-150/t87.tst | 6f3ea140696206f3e145fa51a858ee6d3e83d4c0 | [] | no_license | csnowleopard/guitar | e09cb77b2fe8b7e38d471be99b79eb7a66a5eb02 | 1fa5243fcf4de80286d26057db142b5b2357f614 | refs/heads/master | 2021-01-19T07:53:57.863136 | 2013-06-06T15:26:25 | 2013-06-06T15:26:25 | 10,353,457 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 661 | tst | t87.tst | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TestCase>
<Step>
<EventId>e50</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e68</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e75</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e51</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e69</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e34</EventId>
<ReachingStep>false</ReachingStep>
</Step>
</TestCase>
|
184a941ef4eb12e23cc716ba638792f3cd3d95d3 | d6fbbd7ed46c204dc3d43ecf06c59bd29ae570e4 | /tests/ilc.tst | 1b0fe7cc860312c8bd0594af5d9cd063384682cf | [
"Zlib",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mstramb/hyperion | 24b368ca3d0c4c7a92cbcb2ac5d9d9dd712352d1 | 7890543f7982b2fa4c426469857c28230288adab | refs/heads/master | 2021-01-15T14:41:32.405500 | 2015-11-10T20:50:34 | 2015-11-10T20:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 623 | tst | ilc.tst | *Testcase ilc
sysclear
archmode z
r 60=00020000000000000000000000000000
r 70=0002000000000000000000000000DEAD
r 1A0=00000001800000000000000000000200
r 1D0=00000001800000000000000000000220
r 200=41F00C0041200021EB110240002FEB9B
r 210=0248002FAD440000A72C0002B2B20060
r 220=D213F000008C41F0F020D5010260008E
r 230=47700238B2B20150
r 238=B2B20070000000000000000000000020
r 248=00000000400000000000000000000218
r 258=000000000000021B0080
restart
pause .1
*Compare
gpr
*Gpr 2 0042
r 8c.14 # last program check for info
r c00.14
r c00.c
*Want "MHI ilc" 00040080 00000000 000040F0
r c20.14
*Done
|
05721d7b0d41a10d8e0f9be1982b672e7da9c860 | 449d555969bfd7befe906877abab098c6e63a0e8 | /132/CH5/EX5.2/Example5_2.sce | 6b49079dafd4f8472b8a9689d341a234ed1d21c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 412 | sce | Example5_2.sce | //Example 5.2
//Program to Determine Dynamic Input Resistance of the Transistor at //the point: Ie=0.5 mA and Vcb= -10 V.
clear;
clc ;
close ;
//From the Input Characteristics
dIe=(0.7-0.3)*10^(-3); //A
dVeb=(0.7-0.62); //V
//Calculation
ri=dVeb/dIe; //Dynamic Input Resistance at Vcb= -10 V
//Displaying The Results in Command Window
printf("\n\t The Dynamic Input Resistance is ri= %f Ohms .",ri); |
26ea6b115b7697806877d8f553d1deb2a429bdf0 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /sci2blif/sci2blif_added_blocks/vdd_i.sce | d1ccfce334e58461654b14f80d37b5b6f96c16f5 | [] | 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 | 221 | sce | vdd_i.sce | //************************** VDD IN Analog *****************************
if(blk_name.entries(bl)=='vdd_i') then
chgnet_dict=[chgnet_dict;'net'+ string(blk(blk_objs(bl),2+numofip))+"_..",'vcc ']
chgnet_tf=%t;
end
|
7f82397e23693f28c9cc36b9abb169c9fa811c26 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.1.1/macros/util/xdialog.sci | b85d0480a73160ca61ffefe8c7a7fad2138c0dcb | [
"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 | 473 | sci | xdialog.sci | function [rep]=xdialog(labels,vali)
//
if typeof(labels)<>'character'; write(%io(2),'First arg must be a string vector');
return;end
if typeof(vali)<>'character'; write(%io(2),'Second arg. must be a string vector');return;end
[m,n]=size(labels);
[m1,n1]=size(vali);
if n<>1, write(%io(2),'First arg. must be a column vector');return;end
if n<>1, write(%io(2),'Second arg. must be a column vector');return;end
rep=sconvert(idialog(sconvert(labels),sconvert(vali)));
return
|
0a4e5e1f5744f6e9d88f0409f7f1b9a7e2b40d8e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH5/EX1.5.2/Ex1_5_2.sce | 460fbe1bd05d70456bd1ff45688be45582fb234b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 775 | sce | Ex1_5_2.sce | //Section-1,Example-2,Page no.-AC.437
clc;
E_m=3.4
V_m=0.7
E_f=69
V_f=0.3
A_c=250*10^-6
E_c=((E_m*V_m)+(E_f*V_f))
disp (E_c,'longitudinal modulus of elasticity(GPa)')
Q_c=60*10^6
A_c=250*10^-6
P_c=Q_c*A_c //P_c=P_f+P_m
disp(P_c,'Load carried by composite phases(P_c)')
P=((E_f*V_f)/(E_m*V_m))
//disp P,where P=P_f/P_m
P_m=15000/9.7
disp(P_m,'Load carried by matrix phases(P_m)')
P_f=8.7*(P_m)
disp (P_f,'Load carried by fibres phases(P_f)')
//V_m=A_m/A_c
A_m=V_m*A_c
A_f=V_f*A_c
Q_m=(P_m/A_m)*10^-6
Q_f=(P_f/A_f)*10^-6
e_m=(Q_m/(E_m*10^3))
disp(e_m,'The strain sustained by phase when the stress of 60 MPa is applied')
e_f=(Q_f/(E_f*10^3))
disp(e_f,'The strain sustained by phase when the stress of 60 MPa is applied')
|
f44f4a9681a0cc295293b51f4aeabeb6617b1d14 | 9ba84a7f7b27fc82fdfcfb8dd03498c4cc91f124 | /Parcial 2/DiazAgustin6.sce | 86757978e8bab8f103bdc9d5161008b23379b1c2 | [] | no_license | ignaciolitma/LCC-Metodos-Numericos | 8120eba09ea160e3252542373afc5ddad49a04c9 | e63728e5f15bb469dff205a74901a5b930e1271d | refs/heads/main | 2023-03-12T11:34:36.940908 | 2021-03-01T20:56:12 | 2021-03-01T20:56:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,912 | sce | DiazAgustin6.sce | // Resuelve el sistema lineal Ax=b con el método de gauss_seidel
// comenzando desde x con una tolerancia de eps
// con un máximo de iteraciones maxIter
// Además muestra la cantidad de iteraciones realizadas si se llegó a la condición de parada
function x = gauss_seidel(A, b, x, eps, maxIter)
n = size(A, 1)
xNuevo = x
for iter = 1:maxIter // Iteramos
// Aplicamos el algoritmo por filas
xNuevo(1) = 1/A(1, 1) * (b(1) - A(1, 2:n) * x(2:n)) // Primera fila
for i = 2:n-1 // Filas 2 a n
xNuevo(i) = 1/A(i, i) * (b(i) - A(i, 1:i-1) * xNuevo(1:i-1) - A(i, i+1:n) * x(i+1:n))
end
xNuevo(n) = 1/A(n, n) * (b(n) - A(n, 1:n-1) * xNuevo(1:n-1)) // Última fila
if norm(xNuevo - x) < eps // Criterio de corte
x = xNuevo
disp (iter) // mostramos las iteraciones
return
end
x = xNuevo // Reasignamos
end
x = %nan
endfunction
// Resuelve el sistema lineal Ax=b con el método de sobrerrelajación (SOR)
// comenzando desde x con una tolerancia de eps
// con un máximo de iteraciones maxIter
// con w coeficiente de relajación
function x = SOR(A, b, w, x, eps, maxIter)
n = size(A, 1)
xNuevo = x
for contador = 1:maxIter
xNuevo(1) = w/A(1, 1) * (b(1) - A(1, 2:n) * x(2:n)) + (1 - w) * x(1)
for i = 2:n-1
xNuevo(i) = w/A(i, i) * (b(i) - A(i, 1:i-1) * xNuevo(1 : i-1) - A(i, i+1:n) * x(i+1:n)) + (1 - w) * x(i)
end
xNuevo(n) = w/A(n, n) * (b(n) - A(n, 1:n-1) * xNuevo(1:n-1)) + (1 - w) * x(n)
if norm(xNuevo - x) < eps
x = xNuevo
// mostramos las iteraciones
disp (contador)
break
end
x = xNuevo
end
endfunction
// La función mixto resuelve el sistema Ax=b
// partiendo de un x0 inicial aplicando el método SOR con parámetro w
// hasta alcanzar una tolerancia de 10^(-beta/2).
// Luego aplica el método de Gauss-Seidel hasta alcanzar
// una tolerancia de 10^(-beta)
function x = mixto(A, b, x0, beta, w)
x = SOR(A, b, w, x0, 10^(-beta/2), 1000)
x = gauss_seidel(A, b, x, 10^(-beta), 1000)
endfunction
n = 9
A = diag(ones(1, n) * 2) + diag(ones(1, n-1), -1) + diag(ones(1, n-1), 1)
b = [1 2 3 4 5 4 3 2 1]'
m = mixto(A, b, zeros(9, 1), 8, 1.5)
disp(m)
g = gauss_seidel(A, b, zeros(9, 1), 1e-8, 1000)
disp(g)
// Respuesta de Scilab:
// 24.
// 73.
// 0.5
// 2.867D-08
// 1.5
// 4.195D-08
// 2.5
// 3.795D-08
// 1.5
// 2.121D-08
// 0.5
// 170.
// 0.5
// 2.858D-08
// 1.5
// 4.183D-08
// 2.5
// 3.784D-08
// 1.5
// 2.115D-08
// 0.5
// Vemos que las soluciones son idénticas
// pero que el método mixto realizó 97 iteraciones:
// 24 iteraciones con SOR
// 73 iteraciones con Gauss Seidel
// mientras que el método de Gauss Seidel
// realizó 170 iteraciones |
4bfa41580ee28af8493e7addbada79a3d3a07bcb | 449d555969bfd7befe906877abab098c6e63a0e8 | /3754/CH10/EX10.1/10_1.sce | 80efb21efa8f8fc4cd01766effc4316ffd0ad35f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 549 | sce | 10_1.sce | clear//
//Variables
R = 1000.0 //Resistance (in ohm)
sig = 5.8 * 10**7 //Conductivity in (Siemen per meter)
d = 10**-3 //diameter (in meter)
E = 10 * 10**-3 //Eletric field (in Volt per meter)
//Calculation
l = R *sig * %pi * d**2 /4 //length (in meter)
J = sig * E //Current density (in Ampere per metersquare)
//Result
printf("\n Length of wire is %0.2f km.\nCurrent desity is %0.3f A/(m*m).",l/1000,J)
|
c3d3848adf9ce3b73752f7e878c514ded89aa792 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3775/CH2/EX2.3/Ex2_3.sce | c0ac9e02ff52cc452f42469cf643706cf58e40b6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 304 | sce | Ex2_3.sce | //Ex 2.3 page 68
clc;
clear;
close;
m=16;// V/A (gradient)
t_on=4;// us
IG=500;// mA
VS=15;// V
VG=m*IG/1000;// V
//Load line equation
//VG=VS-IG*RS
RS=(VS-VG)/(IG/1000) ;// ohm
Pg=VS*(IG/1000)**2 ; // W
printf('Gate power dissipation = %.f W',Pg)
printf('\n Resistance to be connected = %.f ohm',RS)
|
eed2b8be61761d2b144492e2f7be497d97238370 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1655/CH6/EX6.22.3/Example_6_22_3.sce | 4faec4440c6db704c94550cd19eb0109cd3edf35 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 479 | sce | Example_6_22_3.sce | // Example 6.22.3 page 6.73
clc;
clear;
beta0=1.85d7;
T=293; //temperature
k=1.38d-23; //Boltzman constant
Ea=0.9*1.6d-19;
theta=0.65; //thershold
betar=beta0*%e^(-Ea/(k*T));
t=-log(theta)/betar;
printf("\nDegradation rate is %.2e per hour.\nOperating lifetime is %.1e hour.",betar,t);
//answer in the book for Degradation rate is 6.4e-09 per hour, deviation of 0.08e-9
//answer in the book for Operating lifetime is 6.7e+07 hour, deviaiton of 0.1e1
|
f2dcb6cc15a977bf642b3bf5902281779a981a3d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH8/EX8.6/Ex8_6.sce | 6130d98da909cf34e275b19a9badbcb5a7a848a9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 538 | sce | Ex8_6.sce |
// Ex8_6
clc;
// Given:
ma1=3321;// counts in 3 min
mb1=2862;// counts in 2 min
mab1=4798;// counts in 2 min
m=1080;// counts in 30 min
muk1=5126;// counts in 2 min
// Solution:
ma=ma1/3;
mb=mb1/2;
mab=mab1/2;
mbc=m/30;
muk=muk1/2;
t1=(ma+mb-mab-mbc)/(mab^2-ma^2-mb^2);// in min
t2=t1*60;// in seconds
t=t2*1000000;// in microseconds
printf("The resolving time of the given system in microseconds is = %f",t)
n=muk/(1-muk*t1);// true count rate
printf("\n The true count rate of unknown sample is = %f cpm",n)
|
ea4654de1ba4e5d386a3dfb5a495f44cd3ee2212 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2915/CH1/EX1.7/Ex1_7.sce | b2a959dfc969d052938323cb80b8634bd4591c39 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,349 | sce | Ex1_7.sce | clc,clear
//example 1.7
//To find values of all trigonometric functions for 60 degree
//take an equilateral triangle of side 2 and divide it by half
//all 3 angles of equilateral triangle are same as 60 degree
//the bisector of angle is also the perepndicual bisector of oppsoite side
// Thus, A=60 B=30 C=90 in new triangle as shown in figure
AB = 2; c=AB;
AC = AB/2; b=AC;
a=sqrt(c^2-b^2)//pythagoras theorem
//For angle A=60 degree
opposite = a;
adjacent = b;
hypotenuse = c;
sin_60 = opposite / hypotenuse;
cos_60 = adjacent / hypotenuse;
tan_60 = opposite / adjacent;
csc_60 = hypotenuse/opposite;
sec_60 = hypotenuse/adjacent;
cot_60 = adjacent / opposite;
printf('ANGLE = 60 degree')
printf('\nsin(60)= %.4f ; cos(60)= %.4f; tan(60)= %.4f;\n',sin_60,cos_60,tan_60)
printf('csc(60)= %.4f ; sec(60)= %.4f; cot(60)= %.4f;',csc_60,sec_60,cot_60)
//For angle ABC=30 degree
opposite = b;
adjacent = a;
hypotenuse = c;
sin_30 = opposite / hypotenuse;
cos_30 = adjacent / hypotenuse;
tan_30 = opposite / adjacent;
csc_30 = hypotenuse/opposite;
sec_30 = hypotenuse/adjacent;
cot_30 = adjacent / opposite;
printf('\n\nANGLE = 30 degree')
printf('\nsin(30)= %.4f ; cos(30)= %.4f; tan(30)= %.4f;\n',sin_30,cos_30,tan_30)
printf('csc(30)= %.4f ; sec(30)= %.4f; cot(30)= %.4f;',csc_30,sec_30,cot_30)
|
74c1c14d6837730f32f479c1f51b9651642d173c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1868/CH6/EX6.8/Ch06Ex8.sce | 87f5842b0c5635636cc30a4d1546397a14bb97d4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 987 | sce | Ch06Ex8.sce |
// Scilab code Ex6.8: Pg 211 (2005)
clc; clear;
c = 1; // Assume speed of light to be unity, m/s
L = 0.200; // Width of the potential well, nm
h_cross = 197.3; // Reduced Planck's constant, eV.nm/c^2
m = 511e+03; // Mass of an electron, eV/c^2
U = 100; // Height of potential well, eV
delta = h_cross/sqrt(2*m*U); // Decay length of electron, nm
L = L + 2*delta; // Effective length of the infinite potential well, nm
E = %pi^2*(h_cross/c)^2/(2*m*L^2); // Ground state energy of the electron with effective length, eV
U = U - E; // New potential energy, eV
delta = h_cross/sqrt(2*m*U); // New decay length of electron, nm
printf("\nThe ground state energy of an electron confined to the potential well = %4.2f eV", E);
printf("\nThe new decay length of the electron = %6.4f nm", delta);
// Result
// The ground state energy of an electron confined to the potential well = 6.58 eV
// The new decay length of the electron = 0.0202 nm
|
dc4eb7980f9f3fcb4586ab39ec7fd73e06d54331 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3440/CH15/EX15.5/Ex15_5.sce | e1f2068be7bb223a4d5ac052d7b0f1634e5a7b29 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 119 | sce | Ex15_5.sce | clc
epsilonox=3.9
epsilonnitride=7
dnitride=1.5*(epsilonnitride/epsilonox)
disp(dnitride,"dnitride in nm is= ")
|
ed0b07a7786835fee5c9699980f981e5ff1a62be | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/X11S.prev.tst | fe0f8d4435d25baaa8f62cf7d7aa3bf06358af73 | [
"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 | 2,037 | tst | X11S.prev.tst | # flat Dutch.X11 - 4*m + 2*m^2 + 42
# flat Dutch.X11 16*m - m^2 + 21
# flat Dutch.X11 16*m + m^2 - 21
# flat Dutch.X11 4*m + 2*m^2 + 42
# merg Dutch.X11 - 4*x_y_z + 2*x_y_z^2 + 42
# merg Dutch.X11 16*x_y_z - x_y_z^2 + 21
# merg Dutch.X11 16*x_y_z + x_y_z^2 - 21
# merg Dutch.X11 4*x_y_z + 2*x_y_z^2 + 42
# orig Dutch.X11 -(2*m^2+4*m+42)^3
# orig Dutch.X11 (1*m^2+16*m-21)^3
# orig Dutch.X11 +(-1*m^2+16*m+21)^3
# orig Dutch.X11 +(2*m^2-4*m+42)^3
# poly Dutch.X11 0
000018 [3,4,5,6] Dutch.X11 factor=12 parm= [-3]
000018 [3,4,5,6] Dutch.X11 factor=12 parm= [3]
000018 [3,4,5,6] Dutch.X11 factor=28 parm= [-7]
000018 [3,4,5,6] Dutch.X11 factor=28 parm= [7]
000032 [1,9,10,12] Dutch.X11 factor=4 parm= [-1]
000032 [1,9,10,12] Dutch.X11 factor=4 parm= [1]
000058 [7,14,17,20] Dutch.X11 factor=12 parm= [-9]
000058 [7,14,17,20] Dutch.X11 factor=12 parm= [9]
000086 [18,19,21,28] Dutch.X11 factor=4 parm= [-5]
000086 [18,19,21,28] Dutch.X11 factor=4 parm= [5]
000122 [3,36,37,46] Dutch.X11 factor=12 parm= [-15]
000122 [3,36,37,46] Dutch.X11 factor=12 parm= [15]
000140 [27,30,37,46] Dutch.X11 factor=3 parm= [-6]
000140 [27,30,37,46] Dutch.X11 factor=3 parm= [6]
000164 [15,42,49,58] Dutch.X11 factor=1 parm= [-2]
000164 [15,42,49,58] Dutch.X11 factor=1 parm= [2]
000188 [7,54,57,70] Dutch.X11 factor=7 parm= [-14]
000188 [7,54,57,70] Dutch.X11 factor=7 parm= [14]
000230 [19,60,69,82] Dutch.X11 factor=4 parm= [-11]
000230 [19,60,69,82] Dutch.X11 factor=4 parm= [11]
000276 [58,59,69,90] Dutch.X11 factor=1 parm= [-4]
000276 [58,59,69,90] Dutch.X11 factor=1 parm= [4]
000294 [15,82,89,108] Dutch.X11 factor=4 parm= [-13]
000294 [15,82,89,108] Dutch.X11 factor=4 parm= [13]
000348 [23,94,105,126] Dutch.X11 factor=3 parm= [-12]
000348 [23,94,105,126] Dutch.X11 factor=3 parm= [12]
000596 [85,138,171,202] Dutch.X11 factor=1 parm= [-8]
000596 [85,138,171,202] Dutch.X11 factor=1 parm= [8]
000804 [81,202,239,282] Dutch.X11 factor=1 parm= [-10]
000804 [81,202,239,282] Dutch.X11 factor=1 parm= [10]
|
aafb85ce607234d2957f7a2960528d240c7b168e | 449d555969bfd7befe906877abab098c6e63a0e8 | /569/CH6/EX6.3/6_3.sci | f231b0bb086a91ef91bea875dd68d688af51e2d0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 133 | sci | 6_3.sci | // calculating the maximum output voltage
clc;
Sa=10;
disp(Sa, 'saturation voltage=')
Vom=Sa;
disp(Vom,'maximum output voltage') |
6a66655058d07853d3c701b5d10344beea35494c | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/CH26/EX26.3/26_3.sce | 7d8f7d3736bf02e7793ab3907b414b2d94adc23f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 534 | sce | 26_3.sce | pathname=get_absolute_file_path('26_3.sce')
filename=pathname+filesep()+'26_3data.sci'
exec(filename)
clear
Tr=T*L1/2;
mu=(8*G*t/(A*E*(b+a)))^0.5;
L=L1/2;
k1=((T*(b-a)*10^3)/(8*a*b*G*t));
k2=1/(mu*cosh(mu*L));
k3=((4*(b-a))/(a*b*(b+a)));
k4=(2*T*(10^3)/(a*b*G*t*(b+a)));
function[th]=f(z)
w=(k1*((k2*sinh(mu*z))-z));
F=((k1*k3 +k4)*L*L*0.5 -(k1*k2*k3/mu)*cosh(mu*L));
th=(k1*k2*k3/mu)*cosh(mu*z) -(k1*k3 +k4)*z*z*0.5 + F;
endfunction
funcprot();
printf("\nangle of twist at mid-span θ: %f rad",f(0));
|
1f8049e77b8ab281b3bae84c5f08b653fad4d71a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1046/CH8/EX8.2/8_2.sce | 38bcd698bd5c147ffe2cb9e7acb81897252101ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 5,960 | sce | 8_2.sce | //Example 8.2
//Page no. 309
//Given
Cp=50 //tpd, plant capacity
T1=135 //C, Temp.
T2=40 //C temp.
T3=30 //C temp.
dt1=(T1-T2) //C hot end temp.
dt2=(T2-T3) //C cold end temp.
//Properties of ethylbenzene
rho1=840 //kg/m^3, density
cp1=2.093 //kj/kg K , specific heat
T=87.5 //C
mu1=exp(-6.106+1353/(T+273)+5.112*10^-3*(T+273)-4.552*10^-6*((T+273)^2))
k1=0.2142-(3.44*10^-4)*(T+273)+(1.947*10^-7)*(T+273)^2
k1_=k1*0.86 //kcal/h m K
//properties of water
rho2=993 //kg/m^3, density
mu2=8*10^-4 //kg/m s , viscosity
cp2=4.175 //kj/kg K , specific heat
k2=0.623 //W/m K, thermal conductivity
k2_=k2*0.8603 //kcal/h m^2 K
//Calculation
//(i) Energy balance
Cp=Cp*1000/24 //kg/h, plant capacity
Cp=2083 //approx.
HD=Cp*cp1*dt1 //kj/h, Heat duty
HD_=HD*0.238837 //kcal/h
wfr=HD/(cp2*dt2)
//(ii)
mu1=mu1 //cP, viscosity of ethylbenzene
k1=k1 //W/m K, thermal conductivity of ethylbenzene
//(iii)
//LMTD calculation
LMTD=(dt1-dt2)/log(dt1/dt2)
//assume
Udo=350 //kcal/h m^2 C, overall coefficient
A=HD_/(Udo*LMTD) //m^2, area required
//(iv)
id=15.7 //mm, internal diameter of tube
od=19 //mm, outer diameter of tube
l=3000 //mm, length
OSA=%pi*(od*10^-3)*(l*10^-3) //m^2. outer surface area
n=A/OSA //no. of tubes required
fa=n*(%pi/4)*(id*10^-3)^2 //m^2, flow arae
lv=(wfr/1000)/(3600*fa) //m/s, linear velocity
//(v)
n1=44 //total no. of tubes that can be accomodated in a 10 inch shell
np=11 //no. of tubes in each pass
//(vi)
bf=0.15 //m, baffel spacing
//(vii)
//estimation of heat transfer coefficient
//Tube side (water)
fa1=(%pi/4)*(id*10^-3)^2*np //m^2, flow area
v1=(wfr/1000)/(3600*fa1) //m/s, velocity
Re=(id*10^-3)*v1*rho2/mu2 //Reynold no.
//from fig . 8.11(a)
jh=85 //colburn factor
//jh=(hi*di)/k*(cp*mu/k)^-1/3
//assume, (cp*mu/k)=x
hi=jh*(k2_/(id*10^-3))*(cp2*1000*mu2/k2)^(1/3) //kcal/h m^2 C
//shell side(organic)
c=(25.4-od)*10^-3 //m, clearance b/w 2 adjacent tubes
B=bf //m, baffel spacing
p=0.0254 //m,radius of 1 tube
Ds=0.254 //m, inside diameter of shell
//from eq. 8.32
As=c*B*Ds/p //m^2, flow area
Gs=Cp/As //kg/m^2 h, mass flow rate of shell fluid
do=od/10 //cm, outside diameter of shell
//from eq. 8.31
Dh=4*((0.5*p*100)*(0.86*p*100)-((%pi*(do)^2)/8))/((%pi*do)/2)
Dh_=Dh*10^-2 //m, hydrolic diameter
Re1=(Dh_*Gs)/(3600*(mu1*10^-3)) //Reynold no.
//from fig 8.11(b)
jh1=32 //colburn factor
ho=jh1*(k1_/Dh_)*((6)^(1/3))
//from eq. 8.28
ratio=od/id //ratio=Ao/Ai
Rdo=0.21*10^-3 //outside dirt factor
Rdi=0.35*10^-3 //inside dirt factor
Udo=1/((1/ho)+Rdo+(ratio)*Rdi+(ratio)*(1/hi))
//SECOND TRIAL
//estimation of heat transfer coefficient
//Tube side (water)
np1=12 //
fa2=(%pi/4)*(id*10^-3)^2*np1 //m^2, flow area
v2=(wfr/1000)/(3600*fa2) //m/s, velocity
Re2=(id*10^-3)*v2*rho2/mu2 //Reynold no.
//from fig . 8.11(a)
jht=83 //colburn factor
//jh=(hi*di)/k*(cp*mu/k)^-1/3
//assume, (cp*mu/k)=x
hit=jht*(k2_/(id*10^-3))*(cp2*1000*mu2/k2)^(1/3) //kcal/h m^2 C
//shell side
c2=(25.4-od)*10^-3 //m, clearance b/w 2 adjacent tubes
B2=0.1 //m, baffel spacing
p2=0.0254 //m,radius of 1 tube
Ds2=0.254 //m, inside diameter of shell
//from eq. 8.32
As2=c2*B2*Ds2/p2 //m^2, flow area
Gs2=Cp/As2 //kg/m^2 h, mass flow rate of shell fluid
do2=od/10 //cm, outside diameter of shell
//from eq. 8.30
Dh2=4*((p2*100)^2-((%pi*(do2)^2)/4))/((%pi*do2))
Dh2_=Dh2*10^-2 //m, hydrolic diameter
Re2=(Dh2_*Gs2)/(3600*(mu1*10^-3))
//from fig 8.11(b)
jh2=48 //colburn factor
ho2=jh2*(k1_/Dh2_)*((6)^(1/3))
//from eq. 8.28
ratio=od/id //ratio=Ao/Ai
Rdo2=0.21*10^-3 //outside dirt factor
Rdi2=0.35*10^-3 //inside dirt factor
Udo2=1/((1/ho2)+Rdo+(ratio)*Rdi+(ratio)*(1/hit))
//from eq. 8.10(a)
tauc=(T2-T3)/(T1-T3) //Temprature ratio
R=(T1-T2)/(T2-T3) //Temprature ratio
Ft=0.8 //LMTD correction ftor
Areq=HD_/(Udo2*Ft*LMTD) //area required
tubes=48 //no. of tubes
lnt=4.5 //length of 1 tube
Aavl=(%pi*od*10^-3)*tubes*lnt //available area
excA=((Aavl-Areq)/Areq)*100 //% excess area
//Pressure drop calculation
//Tube side
//from eq. 8.33
Gt=wfr/(3600*fa2) //kg/m^2 s, mass flow rate of tube fluid
n2=4 //tube passes
fit=1 //dimensionless viscosity ratio
g=9.8 //gravitational constant
f=0.0037 //friction factor
dpt=f*Gt^2*lnt*n2/(2*g*rho2*id*10^-3*fit) //kg/m^2, tube side pressure drop
//eq.8.35
dpr=4*n2*v2^2*rho2/(2*g) //kg/m^2, return tube pressure loss
dpr_=dpr*9.801 //N/m^2
tpr=dpt+dpr //kg/m^2, total pressure drop
//shell side
fs=0.052 //friction factor for shell
bf1=0.1 //m, baffel spacing
Nb=lnt/bf1-1 //no. of baffles
dps=fs*(Gs2/3600)^2*Ds*(Nb+1)/(2*g*rho1*Dh2_*fit) //kg/m^2, shell side pressure drop
dps_=dps*9.81 //N/m^2, shell side pressure drop
printf("Tube side Pressure drop is %f N/m^2 \n",dpr_)
printf("Shell side Pressure drop is %f N/m^2 ",dps_)
|
4019e4c7fb02570a647af454ba18b583cedf9227 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH8/EX8.12.1/Ex8_12.sce | 8c7252acdcdec6bef8e9cd3995418c26c1607a45 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,145 | sce | Ex8_12.sce | clc
clear
D=0.2;
L=0.3;
Vs=(22/7)*(1/4)*D*D*L;
Vc=0.04*Vs;
V3=Vc;
P2=9;
P1=1;
n=1.3;
V4=V3*[(P2/P1)^(1/n)];
V1=Vs+Vc;
W=[n/(n-1)]*[P1*100]*[V1-V4]*[((P2/P1)^((n-1)/n))-1];
R=0.287;
T1=15+273;
Md=[P1*(V1-V4)*100]/[R*T1];
Wpkg=W/Md;
printf('Word done per kg: %3.2f kJ/kg of air',Wpkg);
printf('\n');
T2=T1*[(P2/P1)^((n-1)/n)];
G=1.4;
Q=[(G-n)/(G-1)]*[(R*(T1-T2))/(n-1)];
printf('Heat Transfereed: %3.2f kJ/kg',Q);
printf('\n');
Pm=W/Vs;
printf('Mean Effective Pressure: %3.2f kPa',Pm);
printf('\n');
Mac=V1/(V1-V4);
printf('Mass of air compressed to delivered: %3.2f ',Mac);
printf('\n');
Tf=T1;
Pf=101.325;
Vf=[P1*100*(V1-V4)*Tf]/[Pf*T1];
RPM=500;
Vf=Vf*RPM;
printf('FAD at standard condition: %3.2f m^3/min',Vf);
printf('\n');
IP=[W*RPM]/60;
Etrans=0.92;
Emech=0.85;
Emotor=0.75;
MP=IP/[Etrans*Emech*Emotor];
printf('Motor Power: %3.2f kW',MP);
printf('\n');
MAC=Md*RPM;
printf('Mass of air compressed: %3.2f kg/min',MAC);
printf('\n');
ACC=MAC*Mac;
printf('Air compressed in cylinder: %3.2f kg/min',ACC);
printf('\n');
printf('End Temperature: %3.2f K',T2);
printf('\n');
|
4eadf583c83e63f9fa5c77b149d8c3738b26693a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1226/CH7/EX7.1/EX7_1.sce | 7feefbd03c7a829ead4cd3c7210264cf2193691b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 550 | sce | EX7_1.sce | clc;funcprot(0);//EXAMPLE 7.1
// Initialisation of Variables
D=20.3;................//Diameter in cm
L=30.5;.................//Length in cm
N=300;................//Engine rpm
eta=78;.................//Efficiency in percentage
afr=4/1;.................//Air Fuel Ratio
//Calculations
StV = ((%pi)/4)*((D/100)^2)*(L/100);.......//Calculating the stroke volume
Vinh= (eta/100)*StV;...................//Volume Inhaled
Gainh= (Vinh/(4+1));..............//Gas Inhaled
Gainhpm = Gainh*(N/2);
disp (Gainhpm,"Gas Inhaled per minute:(m^3/min)")
|
724289891c09777dc0e4e1ee629d30ff8af8e0c0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3411/CH15/EX7.4.u2/Ex7_4_u2.sce | 388285311d4f682537cd42f442bf3b99275ff38e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 511 | sce | Ex7_4_u2.sce | //Example 7_4_u2
clc();
clear;
//To find the charge in the minority carrier concentration
ni=9.65*10^9 //units in cm^-3
nno=10^14 //units in cm^-3
//Before illumination
pno=ni^2/nno //units in cm^-3
//After illumination
tp=2 //units in us
tp=tp*10^-6 //units in sec
gl=(10^13/10^-6) //units in No of electron hole pair for cm^-3
pn=pno+(tp*gl) //units in cm^-3
printf("Change in the minority carrier concentration is Pn=")
disp(pn)
printf("cm^-3")
|
cf34bac7005f8914084aae784a1937b7c3ddcb74 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3772/CH10/EX10.1/Ex10_1.sce | 1cc6b94168808b2d201322f6af9467e52c3d3d24 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,154 | sce | Ex10_1.sce | // Problem no 10.1,Page No.249
clc;clear;
close;
//Consider Equilibrium of joint A
//As there are no Load applied at A members AC and AB have nothing to Balance
//So they are null members
F_AB=0
F_AC=0
//Consider Equilibrium of joint B
//Applying the summation of horizontal forces we get
F_DB=4*(cos(45*%pi*180**-1))**-1
//Applying the summation of vertical forces we get
F_BC=F_DB*sin(45*%pi*180**-1)
//Consider Equilibrium of joint B
//Applying the summation of vertical forces we get
F_CE=4*(sin(45*%pi*180**-1))**-1
//Applying the summation of horizontal forces we get
F_DC=F_CE*cos(45*%pi*180**-1)
//Result
printf("The Forces in Each members are as follows:F_AB = %.f kN",F_AB)
printf("\n :F_AC = %.f kN",F_AC)
printf("\n :F_DB %.2f",F_DB);printf(" KN(compression)")
printf("\n :F_BC %.2f",F_BC);printf(" KN(Tension)")
printf("\n :F_CE %.2f",F_CE);printf(" KN(Tension)")
printf("\n :F_DC %.2f",F_DC);printf(" KN (compression)" )
|
f9c0474e3b297d5bbb586d26833382b05d14533b | 449d555969bfd7befe906877abab098c6e63a0e8 | /182/CH8/EX8.6/example8_6.sce | 750d58a8f899e4dcac601d09b2533b25b442076b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 317 | sce | example8_6.sce | // To find the resistance R1 and R3 in fig 8-8
// example 8-6 in page 207
clc;
// Given data
R4=5e+3; L1=100e-3; Ls=500e-3; Rs=270; R3=1e+3; // resistances in ohm and inductances in henry
//calculation
printf("R3=%d K-ohm\n",R4*L1/(Ls*1000));
printf("R1=%d ohm",Rs*R3/R4);
//result
//R3=1 K-ohm
//R1=54 ohm |
e68a941d8fa07d86d4b0c6dd8a6db84318bb81fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2912/CH4/EX4.9/Ex4_9.sce | 30dfb596c4310c8c5dd8d1e4d7bed5b16a65fbed | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,322 | sce | Ex4_9.sce | //chapter 4
//example 4.9
//Show that given angles are successive order of difraction and find spacing constant
//page 79
clear;
clc;
//given
lambda=0.586; // in Angstrom (wavelength of X-rays)
n1=1, n2=2, n3=3; // orders of diffraction
theta1=5+(58/60); // in degree (Glancing angle for first order of diffraction)
theta2=12+(01/60); //in degree (Glancing angle for second order of diffraction)
theta3=18+(12/60); //in degree (Glancing angle for third order of diffraction)
//calculate
K1=sind(theta1);
K2=sind(theta2);
K3=sind(theta3);
printf('The value of sine of different angle of diffraction is\nK1=%.4f\nK2=%.4f\nK3=%.4f',K1,K2,K3);
// Taking the ratios of K1:K2:K3
// We get K1:K2:K3=1:2:3
//Therefore we have
printf('\n\nOr we have \tK1:K2:K3=1:2:3');
printf('\nHence these angles of incidence are for Ist, 2nd and 3rd order reflections respectively');
// Since 2dsin(theta)=n(lambda)
// therefore we have
d1=n1*lambda/(2*K1);
d2=n2*lambda/(2*K2);
d3=n3*lambda/(2*K3);
d1=d1*1E-10; //changing unit from Angstrom to m
d2=d2*1E-10; //changing unit from Angstrom to m
d3=d3*1E-10; //changing unit from Angstrom to m
printf('\n\nThe spacing constants are \nd1=%1.3E m\nd2=%1.3E m\nd3=%1.3E m',d1,d2,d3);
d=(d1+d2+d3)/3;
printf('\n\nThe mean value of crystal spacing is d=%1.3E m',d);
|
3b7cb89cebed81c5cdf5569615504acefd46e1b0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3784/CH1/EX1.21/Ex1_21.sce | 19f561f419625b6a77ff762059b805553a1a4e76 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 928 | sce | Ex1_21.sce | clc
// Variable Initialization
Vm=230//Supply Voltage in Volts
Ra=0.75//Combined Field and Armature circuit resistance in Ohm
N=1300 //Motor speed in Rpm
V=210//Rated voltage of motor in Volts
a=45//firing angle in Degree
Kaf=0.03 //Constant in N-m/A^2
Kres=0.075 //Constant in V-s/Rad
//Solution
//For semi-converter controlled Dc Drive
W=(2*%pi*N)/60 //angular speed in Rad/sec
Ia=(((Vm*1.414)/%pi)*(1+cosd(a))-(Kres*W))*(1/(Ra+Kaf*W))//Armature current in Amp
T=Kaf*(Ia)^2//Torque in N-m
I=(T/Kaf)^(1/2)//motor current in Amp
Va=(Vm*1.414)*(1+cosd(a))*(1/%pi)//Average voltage in Volts
//Input Power if losses are neglected
Ps=Va*I //Power loss in Watt
Pi=Vm*I*(5/6)^0.5 //power input in watt
Pf=(Ps/Pi)//Power Factor in Lag
//Results
printf('\n\n The motor Torque =%0.1f N-m \n\n',T)
printf('\n\n The motor Current =%0.1f Amp \n\n',I)
printf('\n\n The Supply Power Factor =%0.1f Lag \n\n',Pf)
|
5a55435811a22ced83aad20ed0e04d8664a6c2e4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH16/EX16.13/16_13.sce | c6a6665003cf5e0090a9fbaab795d6431d2b1e81 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,053 | sce | 16_13.sce | //pathname=get_absolute_file_path('16.13.sce')
//filename=pathname+filesep()+'16.13-data.sci'
//exec(filename)
//Pressures(in bar):
p1=1
p10=20
//Temperatures(in K):
T1=300
T5=T1
T9=T1
//Clearance:
C=0.04
//Bore(in m):
D=0.30
//Stroke(in m):
L=0.20
//Index of compression:
n=1.25
//Gas constant(in kJ/kg.K):
R=0.287
//Pressure at stage 2(in bar):
p2=p1*(20)^(1/3)
p6=p10/(20^(1/3))
//Volumetric efficiency of LP stage:
nvlp=1+C-C*(p2/p1)^(1/n)
//LP swept volume(in m^3):
Vs=%pi*D^2/4*L
//Effective swept volume(in m^3):
Vsa=nvlp*Vs
//Temperature of air delivered(in K):
T10=T9*(p10/p6)^((n-1)/n)
//Volume of air delivered(in m^3):
Vd=p1/p10*Vsa*T10/T1
//Total work done(in kJ/kg of air):
W=3*(n/(n-1))*R*T1*((p2/p1)^((n-1)/n)-1)
printf("\n RESULT \n")
printf("\nIntermediate pressure = %f bar, %f bar",p2,p6)
printf("\nEffective swept volume of LP cylinder = %f m^3",Vsa)
printf("\nTemperature of air delivered = %f K",T10)
printf("\nVolume of air delivered = %f m^3",Vd)
printf("\nWork done = %f kJ/kg of air",W) |
5c62d3805bc0515b3f11a6996c848c7df30348e6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /405/CH10/EX10.8/10_8.sce | db0510ccade4be53237386ac1d35d30e76d4ccb1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,553 | sce | 10_8.sce | clear;
clc;
printf("\t\t\tExample Number 10.8\n\n\n");
// effects of off-design flow rates for exchanger in example 10-7
// Example 10.8 (page no.-537-538)
// solution
// we did not calculate the oil flow in example 10-7 but can do so now from
q = 193;// [kW]
c_oil = 1.9;// [J/kg degree celsius] heat capacity of oil
t1 = 15;// [degree celsius] temperature of entering oil
t2 = 85;// [degree celsius] temperature of leaving oil
m_dot_o = q/(c_oil*(t2-t1));// [kg/s]
// the new flow rate will be half this value
m_dot_o = m_dot_o/2;// [kg/s]
// we are assuming the inlet temperatures remain the same at 130 degree celsius for the steam and 15 degree celsius for the oil.
// the new relation for the heat transfer is q = m_dot_o*c_oil*(Teo-15) = m_dot_s*cp*(130-Tes) (a)
// but the exit temperatures, Teo and Tes are unknown. furthermore, dT_m is unknown without these temperatures, as are the values of R and P from figure 10-11(page no.-535). this means we must use an iterative procedure to solve for the exit temperatures using equation (a) and q = U*A*F*dT_m (b)
// the general procedure is to assume values of the exit temperatures until the q's agree between equations(a) and (b).
printf("the objective of this example is to show that an iterative procedure is required when the inlet and outlet temperatures are not known or easily calculated");
printf("\n\n there is no need to go through this iteration because it can be avoided by using the techniques described in section 10-6");
|
b9458e292f6885e6657d2f389ecb6917f478a829 | 449d555969bfd7befe906877abab098c6e63a0e8 | /149/CH4/EX4.11/ques11.sce | 31a496d87b68a04e01563cd6db287198b25a97d4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ques11.sce | clc
disp('for roles theorem F9x) should be differentiable in (a,b) and f(a)=f(b)');
disp(' Here f(x)=sin(x)/e^x');
disp('');
syms x
y=sin(x)/%e^x;
y1=diff(y,x);
disp(y1);
disp('putting this to zero we get tan(x)=1 ie x=pi/4');
disp('value pi/2 lies b/w 0 and pi. Hence roles theorem is verified');
|
9382f9d380c9e698c0c16f5fe9fd55249cb64f78 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3866/CH5/EX5.2/Ex5_2.sce | e43dc52bace94f88725f489a98865ec9530e71bc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 434 | sce | Ex5_2.sce | clc; clear; close;
Wn1=400;//in nm
Wp1=400;//in nm
Wn2=200;//in nm
Wp2=800;//in nm
Vdd=1.8;//in volts
Vtp=0.5;//in volts
Vtn=0.5;//in volts
Ep=24;//in volts
En=6;//in volts
X1=sqrt((Wn1*Ep)/(Wp1*En));
Vs1=(Vdd+(X1*Vtn)-Vtp)/(1+X1);
X2=sqrt((Wn2*Ep)/(Wp2*En));
Vs2=(Vdd+(X2*Vtn)-Vtp)/(1+X2);
disp(Vs1,'Vs when one input is high and other is varied(in volts)=');
disp(Vs2,'Vs when both inputs are varied(in volts)=');
|
2e86c64993e3d5e6c68b7fb67de10829e63277b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1436/CH7/EX7.8/ex7_8.sce | 38350bca21cb94a8aa2d20553fb73f832e778ec0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 631 | sce | ex7_8.sce | //Example 7.8, page no-441
clear
clc
D=80
W=66.5
//(a)
printf("(a)\nThe intersection point of DB temperature 80°F and WB temperature 66.5°F \nlines on the relative humidity curve for 50%%.\n RH = 50%% ")
//(b)
printf("\n(b)\nFrom the point of intersection of the dry and wet bulb curves, move left \nhorizontally to the dew point temperature curve where it meets at 60°F\nDew Point = 60°F")
//(c)
printf("\n(c)\nFrom the point of intersection of the dry and wet bulb curves,\nhorizontally to the right to the moisture content plot where it meets at 76.\nMoisture Content : 76 grains of water per pound of dry air.")
|
ccee6dba1e3f12a372466db440db7f723c04355a | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH13/EX13.44/44.sce | 89a9f4fe8dea09f56a8173879514704bbd16c3fd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 44.sce | clc
m_a=20; //kg/s
T1=300; //K
T3=1000; //K
rp=4; //rp=p2/p1
cp=1; //kJ/kg K
y=1.4;
T2=T1*(rp)^((y-1)/y);
T4=T3-T2+T1;
//p5/p4=(p5/p3)*(p3/p4)
//let p3/p4=r1
r1=(T3/T4)^(y/(y-1));
//r2=p5/p4;
r2=1/4*r1;
P_ratio=1/r2; //Pressure ratio of low pressure turbine
disp("Pressure ratio of low pressure turbine =")
disp(P_ratio)
T5=T4/(P_ratio)^((y-1)/y);
disp("Temperature of the exhaust from the unit =")
disp(T5)
disp("K") |
5f9c6af23f2b619b6ecd4c380e4239f8403b4a9e | 717ddeb7e700373742c617a95e25a2376565112c | /278/CH9/EX9.2/ex_9_2.sce | 8416bfd1c6d52efa049cc1d238899b85feec9ec8 | [] | 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 | 700 | sce | ex_9_2.sce | //find the efficiency of following rivet joints
clc
//solution
//given
t=6//mm
d=20//mm
ft=120//N/mm^2
T=90//N/mm^2
fc=180//N/mm^2
p=50//mm
pi=3.14
Pt=(p-d)*t*ft//N//tearing resistance of plate
Ps=(pi/4)*d^2*T//N//shearing resistance of rivet
Pc=d*t*fc//N//crushing resistance of rivet
P=p*t*ft//N//strength of the unriveted
//eff=(least of Pt,Ps,Pc)/P
eff=Pt/P//least is Pt
p1=65//mm
Pt1=(p1-d)*t*ft//N
Ps1=(2*pi/4)*d^2*T//N
Pc1=2*d*t*fc//N
P2=p1*t*ft//N
printf("the value of forces are,%f N\n,%f N\n,%f N\n",Pt1,Ps1,Pc1)
//eff1=least of Pt1,Ps1,Pc1/P2
eff1=Pt1/P2//least is Pt1
printf("the efficiency is first case is,%f\n",eff)
printf("the eff is second case is,%f",eff1) |
34506f7862e64fb1c7adbbc6f57617c163dc512c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1962/CH9/EX9.7/example9_7.sce | 7072f5d914d7e8626467c35a4923b2621bdc8735 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 314 | sce | example9_7.sce |
//example 9.7
//page 320
clc; funcprot(0);
//initialisation of variable
epsilon=0.025;//roughness
L=500;
pi=3.14;
g=9.81;
Q=0.1;
S=5.43/100;
K=Q/sqroot(S);
//solving for D
deff('y=f(D)','y=3.14/4*sqroot(2*9.81)*(2*log10(D/0.025)+1.14)*D^2.5-.3');
[x]=fsolve(0.1,f);
disp(x,"diameter(m):");
clear
|
27b9caa70485330a6777ef5313dd412e5e3f441b | 449d555969bfd7befe906877abab098c6e63a0e8 | /68/CH5/EX5.19/ex19.sce | 14feeed58653d63de1c01056fcee4f016699803e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 742 | sce | ex19.sce | // Example 5.19 : To select values of capacitance required
R_B=100000; // (ohm)
r_pi=2500; // (ohm)
R_C=8000; // (ohm)
R_L=5000; // (ohm)
R_sig=5000; // (ohm)
B=100; // beta value
g_m=0.04; // (A/V)
r_pi=2500; //(ohm)
f_L=100; // (Hz)
r_e=25; // (ohm)
R_C1=R_B*r_pi/(R_B+r_pi)+R_sig; // Resistance seen by C_C1
R_E=r_e+R_B*R_sig/((R_B+R_sig)*(B+1)); // Resistance seen by C_E
R_C2=R_C+R_L;// Resistance seen by C_C2
w_L=2*%pi*f_L;
C_E=1/(R_E*0.8*w_L); //C_E is to contribute only 80% of the value of w_L
disp(C_E,"C_E (F)")
C_C1=1/(R_C1*0.1*w_L); //C_C1 is to contribute only 10% of the value of f_L
disp(C_C1,"C_C1 (F)")
C_C2=1/(R_C2*0.1*w_L); //C_C2 should contribute only 10% of the value of f_L
disp(C_C2,"C_C2 (F)") |
421db7589c768e3b55b2d24f15afd4d3830e8395 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH8/EX8.3/8_03.sce | 3d6a2f7051ba069b3ac8d0cbf81c6f936ec087e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 560 | sce | 8_03.sce | //Chapter 8, Problem 3
clc;
F=1.92;
l=400*10^-3;
B=1.2;
I=F/(B*l);
printf("Current = %f A\n\n\n",I);
printf("If the current flows downwards, the direction of its");
printf(" magnetic field due to the current alone will be clockwise when viewed from above.\n");
printf("The lines of flux will reinforce (i.e. strengthen) the main magnetic field at");
printf("the back of the conductor and will be in opposition in the front (i.e. weaken the field).\n");
disp("Hence the force on the conductor will be from back to front (i.e. toward the viewer).");
|
fe24b64b2d6532503afb50857dc5e88458fc6111 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1544/CH8/EX8.3/Ch08Ex3.sce | aaf8e482d9798d8d20eb9ef6e8a51a858198c9fb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 911 | sce | Ch08Ex3.sce | // Scilab code Ex8.3: Pg 258 (2008)
clc; clear;
E = 110; // Value of d.c. voltage supply, volt
L = 1.5; // Inductor value, henry
R = 220; // Value of series resistor, ohm
// Part (a)
di_dt = E/L; // The initial rate of change of current through inductor, H
printf("\nThe initial rate of change of current through inductor = %5.2f A/s", di_dt);
// Part (b)
I = E/R; // The final steady current, A
printf("\nThe final steady current through inductor = %3.1f A", I);
// Part (c)
tau = L/R; // The time taken for the current to reach its fi nal steady value, s
printf("\nThe time taken for the current to reach its final steady value = %4.1f ms", 5*tau/1e-03);
// Result
// The initial rate of change of current through inductor = 73.33 A/s
// The final steady current through inductor = 0.5 A
// The time taken for the current to reach its final steady value = 34.1 ms
|
29912fb765de4bce0b2938939eb159239cc3f1b6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1898/CH3/EX3.5/Ex3_5.sce | 72a67ec2f41f96deafbb873270f4823341a32593 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,077 | sce | Ex3_5.sce | clear all; clc;
disp("Scilab Code Ex 3.5 : ")
//Given:
//Refer to the graph of shear stress-strain of titanium alloy.
x_A = 0.008; //rad - x co-ordinate of A
y_A = 360; //MPa - y co-ordinate of A
height = 50;//mm
l = 75; //mm
b = 100; //mm
//Calculations:
//Shear Modulus:
G = y_A/x_A;
//Proportional Limit:
tou_pl = 360; //Mpa Point A
//Ultimate Stresss:
tou_u = 504; //MPa - Max shear stress at B
//Maximum Elastic Displacement:
tanA= x_A;// tan theta is approximated as theta.
d = tanA*height;
//Shear Force:
A = l*b;
V = tou_pl*A;
//Display:
printf("\n\nThe Shear Modulus = %10.2f MPa",G);
printf("\nThe Proportional Limit = %10.2f Mpa",tou_pl);
printf("\nThe Ultimate Shear Stress = %10.2f MPa ",tou_u);
printf("\nThe Maximum Elastic Displacement = %10.2f mm",d);
printf("\nThe Shear Force = %10.2f kN ",(V/1000));
//------------------------------------------------------------------END---------------------------------------------------------------------------
|
d667e3435af0cdce08ab611cb85ab62434f6e8ee | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/mtlb/mtlb_all.sci | a6690e5f505cd07f4a5cf67b55016ce4fb5dd555 | [
"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 | 144 | sci | mtlb_all.sci | function r=mtlb_all(a)
// Copyright INRIA
if type(a)==4 then a=bool2s(a);end
if size(a,1)==1|size(a,2)==1 then
r=and(a)
else
r=and(a,1)
end
|
08051a628cedd77a9b45af084893b8f35f82a3da | 27fecbbeb6c49dcf03b9bddf1b867c31e13a3825 | /Simulações/Relatório 03/tarefa 3.sci | 25737193862a5edd556bc3970cb85d4a178e7ecc | [] | no_license | LucasHattoriCosta/Poli | 42c9fc2d34c31e01336265fbdac3e4921d56e096 | b1ac609c3675539b4e921909c35ea196ffc44df3 | refs/heads/master | 2023-03-15T12:22:03.745943 | 2020-06-29T17:32:48 | 2020-06-29T17:32:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,584 | sci | tarefa 3.sci | clear
clc
//Lista de exercício 3 - 3º Tarefa
//Dados
pi = %pi
r = 0.001; // raio da esfera em metros
rho = 7850; //densidade do aço em kg/m^3
g = 9.8; //m/s^2
m = (4/3)*pi*(r^3)*7850 // massa em kg
R=1;//Raio da circunferencia geradora
//Condições iniciais
s0 = -1/10;
v0 = 0;
S0 = [s0;v0];
//Espaço de estados
function dS = f(t,s)
//s = [s, ds/dt]
dS1 = s(2);
dS2 = -g*s(1)/(4*R);
dS = [dS1; dS2];
endfunction
t = linspace(0,0.5,10)
S = ode(S0,0,t,f);
//obtenção do cosseno de teta para cálculo de potencial
cosseno2=1-S(1,:)/(4*R)
cosseno1=2*cosseno2**2-1;
//Energia Cinética
function cinética = T(S)
cinética = (1/2)*m*(S(2,:))**2
endfunction
//Energia Potencial
function potencial = V(S)
potencial=m*g*(R-R*cosseno1)
endfunction
//Energia Mecânica
function mecanica=E(S)
mecanica=V(S)+T(S)
endfunction
//Aceleração
a = diff(S(2,:))/0.5;
a($+1) = a($)
//Plotar gráficos
clf()
scf(0)
subplot(2,2,1)
xtitle('Posição por tempo');
plot(t, S(1,:), 'k');
subplot(2,2,2)
xtitle('Velocidade por tempo');
plot(t, S(2,:), 'k')
subplot(2,2,3)
xtitle('Velocidade por posição')
plot(S(1,:), S(2,:), 'k')
subplot(2,2,4)
xtitle('Aceleração em função do tempo')
plot(t, a, 'k')
scf(1)
xtitle('Energias')
subplot(2,2,1)
xtitle('Energia Cinética em função do tempo')
plot(t, T(S), 'b')
subplot(2,2,2)
xtitle('Energia Potencial em função do tempo')
plot(t, V(S), 'r')
subplot(2,2,3)
xtitle('Energia Mecânica em função do tempo')
plot(t, E(S), 'k')
subplot(2,2,4)
xtitle('Soma das energias')
plot(t, T(S))
plot(t, V(S), 'r')
plot(t, E(S), 'k')
|
2f3f528d59662aa6edb64f0f0dcf5730858dceba | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH6/EX6.2/example6_2_TACC.sce | d549c654c2d648b92d7b2b851e1ed3746360d17c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 444 | sce | example6_2_TACC.sce | //example 6.2
clear;
clc;
//Given:
T=500;//Temperature[K]
P=100;//Pressure[atm]
a=3.61;//van der waals constant for CO2[atm.L^2.mol^-2]
b=0.0429;//van der waals constant for CO2[L.mol^-1]
R=0.082;//Universal gas constant[atm.K-1.mol^-1]
//To find the molar volume of CO2
x=b+(R*T/P);
y=a/P;
z=a*b/P;
p2 = poly([-z y -x 1], 'Vm', 'c');
t=roots(p2);
printf("The value of molar volume of CO2 is %f L.mol^-1",t(3));
|
6ba651b95e0c3c41d9f234a26be2b8ec78198c2e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1652/CH12/EX12.6/12_6.sce | b239969edf2392253f402d2d9b75c46fb2f29408 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 183 | sce | 12_6.sce | clc
//Initialization of variables
Hv=539.6 //cal/g
T=273.2+100 //K
//calculations
Kb=1.987*T^2 /(1000*Hv)
//results
printf("Molal elevation constant = %.3f deg /mole /kg",Kb)
|
b64000941bdf04d4fb1517a422d779a3583f23ac | 449d555969bfd7befe906877abab098c6e63a0e8 | /3136/CH2/EX2.8/Ex2_8.sce | 40e54094b0d184136abc82c3de4ed8ee01afa9ac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 993 | sce | Ex2_8.sce | clear all; clc;
//This numerical is Ex 2_2S,page 30.
//The value given in the book for N_m is 1315,but on calculating the true value is found out to be 1304.35
P_ho=22.4//hydraulic output power
Q=0.14//flow rate at best efficiency point
g=9.8
rho=998
H_p=97.5
N=600
delta_pm=P_ho/Q
printf("Value of discharge head P_m %g kPa",delta_pm)
H_m=delta_pm*10^3/(rho*g)
printf("\n Value of H_m=%g m",H_m)
disp("From the similarity law, H_p/H_m=((N_p/N_m)^2)*((D_p/D_m)^2)")
//let x=Hp/Hm
H_mr=16.3//rounded off value
x=H_p/H_mr
printf(" H_p/H_m =%0.2f",x)
disp("Thus (N_p/N_m)*(D_p/D_m) is equal to 2.45")
disp("Also the flow rate Q_p/Q_m=(N_p/N_m)*(D_p/D_m)^3")
z=9.9/0.14//value of Qp/Qm
printf(" Thus the value of Q_p/Q_m is %0.1f",z)
disp("Thus D_p/D_m=5.4 ,N_p/N_m=0.46")
//Let y=Np/Nm=0.461
y=0.46
N_m=N/y//where N=600 and y=0.46
printf(" Hence N_m = %g rpm",N_m)//value given in the book is 1315,but on calculating the true value is found out to be 1304.35
|
4b304f53665b71b7c0a69097d5ab196774490e9b | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH9/EX9.13/example9_13.sce | 0e054cf37521c086da2b63ff28284efef6c9b64f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 881 | sce | example9_13.sce | //clc()
//Ss = solid flow rate,
Pwaterin = 25;//%
Pwaterout = 5;//%
X1 = Pwaterin/(100 - Pwaterin);//kg water/kg dry air
X2 = Pwaterout/(100 - Pwaterout);//kg water/kg dry air
//form humidity chart,
Y2 = 0.015;//kg water/kg dry air
Y1 = 0.035;//kg water/kg dry air
m = 1;//kg of dry air
//Ss * X1 + Y2 = Ss * X2 + Y1
Ss = (Y1 - Y2) / ( X1 - X2 );
T = 87.5 + 273.15;//K
P = 101.3;//kPa
Tstp = 273.15;//K
Pstp = 101.3;//kPa
Vstp = 22.4143;//m^3/mol
V = 100;//m^3
N = V * P * Tstp / ( Vstp * Pstp * T);
Nr2 = Y2 * 29 / 18;//kmol of water / kmol of dry air
Ndryair = N * 1 / (1 + Nr2);
mdryair = Ndryair * 29;
mevaporated = mdryair * ( Y1 - Y2 );
disp("kg",mevaporated,"(a)total moisture evaporated per 100m^3 of air entering = ")
Ss1 = mdryair * Ss;
mproduct = Ss1 * ( 1 + X2 );
disp("kg",mproduct,"(b)mass of finished product per 100m^3 of air entering = ") |
b3e1e2462d8d11c10975f6afcf13fba935745122 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1286/CH1/EX1.9/1_9.sce | 9c203b5d9bd3603d9746d6878fe5958499e3f568 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 169 | sce | 1_9.sce | clc
//initialisations
ht=65//cm
h0=-5//cm
t=273//c
//CALCULATIONAS
h100=h0+(100*(ht-h0)/t)
l=(1+(t/273))
H=(ht-(h0*l))/(l-1)
printf(' temperature= % 1f cm',H)
|
955bb7d18ff6ba58ba50e053f12db8ea2e020488 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH6/EX6.a.1/Example_a_6_1.sce | cdbcc450b2b3d681427fbda5d423b4d5fd398549 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 532 | sce | Example_a_6_1.sce | //Example_a_6_1 page no:233
clc;
Vmag=250;
Vang=100;
Imag=15;
Iang=30;
theta=100-30;
pf=cosd(theta);
active_power=(Vmag/sqrt(2))*(Imag/sqrt(2))*pf;
reactive_power=(Vmag/sqrt(2))*(Imag/sqrt(2))*sind(theta);
apparent_power=(Vmag/sqrt(2))*(Imag/sqrt(2));
disp(pf,"the power factor is ");
disp(active_power,"the active power is (in W)");
disp(reactive_power,"the reactive power is (in VAR)");
disp(apparent_power,"the apparent power is (in VA)");
//in text book reactive power calculation is wrong i.e 1761.9 is correct
|
0333d0194579a3557f6ded12478b26a28e925299 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH1/EX1.9/Ch01Ex9.sce | a486fb6a6d3738e63d996c36b0660be249092938 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 736 | sce | Ch01Ex9.sce | // Scilab code Ex1.9: Pg:21 (2008)
clc;clear;
h = 6.62e-034; // Planck's constant, joule-sec
c = 3e+008; // Velocity of light, m/s
m_0 = 9.1e-031; // Rest mass of an electron, kg
m = 1836*m_0; // Mass of a proton, kg
E = m_0*c^2; // Energy of an electron, joule
// Since (1/2)*m*v^2 = 81.9e-015, solving for v
v = (2*E/m)^(1/2); // Velocity of the electron, m/s
Lambda = h/(m*v); // The de-Broglie wavelength of a proton, m
printf("\nThe de-Broglie wavelength of proton whose kinetic energy is equal to the rest energy of an electron = %1.0e angstrom", Lambda/1e-010);
// Result
// The de-Broglie wavelength of proton whose kinetic energy is equal to the rest energy of an electron = 4e-004 angstrom |
8112c3e49279307d04f03ceedcd9fb88903b663f | 449d555969bfd7befe906877abab098c6e63a0e8 | /767/CH4/EX4.7.4/Ch04Exa4_7_4.sci | b4801fd6dddfe5d21eeb59d4f9bd500d87bbb7e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 614 | sci | Ch04Exa4_7_4.sci | // Scilab code Exa4.7.4: To determine the power produced by 100 milligram of Cf-252 : Page 191 (2011)
N = 6.023e+023/252*0.1; // Number of nuclei in 100mg of Cf-252
t_h = 2.62*365*24*3600; // Half life of Cf-252, s
D_c = log(2)/t_h; // Decay constant, s^-1
F_r = N*D_c; // Fission rate, fissions/s
E = 210*1.6e-013; // Energy released during fission of one nucleus, J
P = E*F_r; // Power released in fission of 100 milligram of Cf-252, W
printf("\n Power released in fission of 100 milligram of Cf-252: %4.1f W", P)
// Result
// Power released in fission of 100 milligram of Cf-252: 67.4 W
|
7877f37b91496cc536c9a03ada2f3a48147ab89d | 592b1b7dfaefd62d755737ac7b6e81f44f7786ba | /1a Program for iterative calculation..sce | fedf38576ec3c7f6a7722273f06925e7ef9f1f08 | [] | no_license | muitnet/Numerical-and-Statistical-Methods-sem2-fybscit-mumbai-university | 841143b72d52229c68bcd0666ed10c844c02f507 | 2d1c638b881f3e418a982baa02632effd03ae5fe | refs/heads/master | 2021-01-19T07:23:05.463429 | 2017-04-07T11:54:24 | 2017-04-07T11:54:24 | 87,540,712 | 6 | 5 | null | null | null | null | UTF-8 | Scilab | false | false | 487 | sce | 1a Program for iterative calculation..sce | clear;
n=3;
es=0.5*(10^(2-n));
x=0.5;
f(1)=1; //first estimate f=e^x=1
ft=1.648721; //true value of e^0.5=f
et(1)=(ft-f(1))*100/ft;
ea(1)=100;
i=2;
while ea(i-1)>=es
f(i)=f(i-1)+(x^(i-1)) //(factorial(i-1));
et(i)=(ft-f(i))*100/ft;
ea(i)=(f(i)-f(i-1))*100/f(i);
i=i+1;
end
for j=1:i-1
disp(ea(j),"approximate estimate of error(%)="et(j),"true % frelative error=",f(j),"result=",j,term number=)
disp(".....................................")
end
|
18053dfdf2648959d0c098f72015b4e61bc5b19e | 87749481136b7b72a47930f587f27667e0c0f97d | /ADC/HW_2.sce | f4f09274479f2258cc0c3f01c7a1738696af419d | [
"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 | 516 | sce | HW_2.sce | b = chdir('C:\Users\work\OneDrive\Documents\SciLab\lab_v2')
exec('ADC.sce')
n = 1
fs = 22050
quant_levels = linspace(-1, 1, 10)
//Task 1
recorded_data = ADC(n, quant_levels, fs)
f = figure(1) // set figure's number
clf // clear figure
plot(recorded_data)
gca.data_bounds = [0,-2; fs,2]
xlabel('Samples')
ylabel('Amplitude')
//Task 2
recorded_data = recorded_data - mean(recorded_data)
f = figure(2) // set figure's number
plot(recorded_data)
gca.data_bounds = [0,-2; fs,2]
xlabel('Samples')
ylabel('Amplitude')
|
9b20984ea764476943f7dcaae56222faf8431c4e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH2/EX2.17/ex2_17.sce | 8f9f884a3ca95dac3e4d73cd2e7497a9a431d2e9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 311 | sce | ex2_17.sce | clc;
h=0.78; //height in m
g=9.8; //gravitational constant in m/sec square
v=0.5; //velocity in m/sec
t=sqrt((2*h)/g); //calculating t
disp(t,"Time required in sec = "); //displaying result
s=v*t; //calculating distance
disp(s,"Horizontal distance in m = "); //displaying result |
bbbf831db16629c0e6601ff8f75b19288112cb32 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3768/CH5/EX5.10/Ex5_10.sce | 33648079250a97af1ae1be3272e693c53b97499e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 330 | sce | Ex5_10.sce | //Example number 5.10, Page number 88
clc;clear;
close;
//Variable declaration
delta_x=10**-8; //length of box(m)
m=9.1*10**-31; //mass(kg)
h=6.626*10**-34; //plank constant
//Calculation
delta_v=h/(m*delta_x)/10**3; //uncertainity in velocity(km/s)
//Result
printf("uncertainity in velocity is %.1f km/s",delta_v)
|
74edb1d0fa4c60745228fc1f613689c0cf27952c | 4b3c8d2302d37ad5981adb6f68fae3db1d9820c8 | /getPhoto.sci | bf506fced5b7fbcb06c9568c89924bf010b6414f | [] | no_license | mayank1513/littleBird_RD_ResourceManagementSystem | 002d19579b3b55a314450ec75d2874131741564b | 090d016248164580defc9b4629ba54c9dc362949 | refs/heads/master | 2020-03-15T04:48:31.637752 | 2018-05-03T09:46:53 | 2018-05-03T09:46:53 | 131,970,842 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sci | getPhoto.sci | function [img, lowResPath, highResPath] = getPhoto(path)
img = imread(path);
f = createWindow();
imdisplay(img,f);
// set(f,'layout','border');
i = uicontrol(f,'style','image','string',path,'position',[20,20,200,200],'scrollable','on');
disp(size(img));
endfunction
|
18959ca20f8619779135c9967d9ba9b7e1414caf | 252afc91ba28b756933a991d31ef55637fe22e1c | /sciptr-draft.sce | 0ce48929ab5524a778e12d360ec8be441a03914a | [] | no_license | vlad-tymoshchyk/scilab-labs | 3006b74ed31bf208b5879c28dfa6d9d95e265924 | b4ad3550c84f84ef6567f54c6c613bb0aad99551 | refs/heads/master | 2020-04-29T15:03:25.425334 | 2019-06-03T04:47:57 | 2019-06-03T04:47:57 | 176,215,564 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,374 | sce | sciptr-draft.sce | function ask(node)
disp(node);
if (node(2) == 'ENDPOINT')
disp('Result: ' + node(1));
else
disp(node(1));
res = input('','string');
if (part(res,1) == 'y')
ask(node(2))
else
ask(node(3))
end
end
endfunction
a = "Does the conflict involve a Warwaw Pact or other Soviet allied border state?";
b = "Does the conflict pose a grave threat to the political existance of the Soviet ally?";
c = "Is a high risk of military confrontation with the U.S. present in the conflict?";
d = "Is one of the protagonists a Soviet ally or client?";
e = "Does the conflict entail repeated armed clashes or worse?";
f = "Is the antagonist a sub-national group or Soviet enemy state?";
g = "Does the conflict pose a grave threat to the political existance of the Soviet ally?";
h = "Is one of the protagonists a potential client?";
k = "Does the conflict entail repeated clashes or worse?";
l = "Is the antagonist a sub-national group or Soviet enemy state?";
m = "Is a high risk of military confrontation with the U.S. present in the conflict";
res1 = ['more than 15,000 troops', 'ENDPOINT'];
res2 = ['less than 15,000 troops', 'ENDPOINT'];
res3 = ['arms delivery', 'ENDPOINT'];
res4 = ['verbal/diplomatic support', 'ENDPOINT'];
// A =
// B =
// C =
// D =
// E =
// F =
// G =
// H =
// K =
M = [m, res4, res3];
L = [l, M, res4];
ask(M);
|
e8144d71fcee11136ac69c03ea6374ad6c88e2b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3689/CH8/EX8.4/8_4.sce | 3e9482445c97c25e8bd0e3de7dad7301985766d0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 547 | sce | 8_4.sce | ////
//Varialble Declaration
gama = 71.99e-3 //Surface tension of water, N/m
r = 2e-5 //Radius of xylem, m
theta = 0.0 //Contact angle, rad
rho = 997.0 //Density of water, kg/m3
g = 9.81 //gravitational acceleration, m/s2
H = 100 //Height at top of redwood tree, m
//Calculations
h = 2*gama/(rho*g*r*cos(theta))
//Results
printf("\n Height to which water can rise by capillary action is %3.2f m",h)
printf("\n This is very less than %4.1f n, hence water can not reach top of tree",H)
|
30bf79ba4f9a36fbed074179ce1507d9f941ffc0 | eb7eeb04a23a477e06f3c0e3d099889caee468b4 | /src/examples/scilab/test1.sce | 991888fac8077647030ed8fa341462644c661059 | [] | no_license | mikeg64/iome | 55699b7d7b3d5c1b006d9c82efe5136b8c909dfd | cc1c94433133e32776dcf16704ec4ec337b1b4a0 | refs/heads/master | 2020-03-30T15:57:33.056341 | 2016-04-13T09:24:27 | 2016-04-13T09:24:27 | 151,387,236 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 605 | sce | test1.sce | //used under linux
//tdp=getenv('SCILAB_HOME')+'/share/scilab/contrib/iome_toolbox/loader.sce';
tdp='/usr/share/scilab/contrib/iome_toolbox/loader.sce';
//following used under windows
//tdp=getenv('SCILAB_HOME')+'/contrib/iome_toolbox/loader.sce';
exec(tdp);
elist=iome('localhost',8080,0);
addparamdouble('f1',27,elist);
f1=getparamdouble('f1',elist);
addparamint('i1',54,elist);
i1=getparamdouble('i1',elist);
v1=rand(3,1);
addparamvec('v1',v1,elist);
//vectors always returned as row vector
v2=getparamvec('v1',3,elist);
m1=rand(5,3);
addparammat('m1',m1,elist);
m2=getparammat('m1',5,3,elist);
|
95bd3396b320070f7a7239a0e779d865020114d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1979/CH10/EX10.12/Ex10_12.sce | cf2eb48a8761da0b0df18bcaef0d38a2589be914 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 695 | sce | Ex10_12.sce | //chapter-10 page 490 example 10.12
//==============================================================================
clc;
clear;
D=3;//dimension of a paraboloid in m
f=3*10^9;//frequency (S band) in Hz
c=3*10^8;//Velocity of light in m/sec
//CALCULATION
w=c/f;//wave length in m
BWFN=140*(w/D);//BeamWidth between First Nulls in deg
BWHP=70*(w/D);//BeamWidth between HalfPower points in deg
G=6*(D/w)^2;//Gain of the antenna
//OUTPUT
mprintf('\nBeamWidth between First Nulls is BWFN=%1.2f deg \nBeamWidth between HalfPower points is BWHP=%1.2f deg \nGain of the Antenna is G=%4.0f ',BWFN,BWHP,G);
//=========================END OF PROGRAM===============================
|
ad52e44fe23d4273e3fcd4ed936b8ad80cf223fb | 118697027baebb7cec4f981d884eb60ce55b3ebc | /galtonGUI.sce | fb31f6d23a02360ef8837fe88ea3ea75ed250ba5 | [] | no_license | ambirpatel/Simulation-of-Galton-Board-on-Scilab | edf79654f34484578d34be9d64cf710be559c59f | 1ac501f94f06cc0fe62642a19cb48f0df6599226 | refs/heads/master | 2020-09-07T12:52:29.333567 | 2019-11-10T17:11:05 | 2019-11-10T17:11:05 | 220,787,415 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,839 | sce | galtonGUI.sce | // This GUI file is generated by guibuilder version 4.2.1
//////////
f=figure('figure_position',[400,50],'figure_size',[640,480],'auto_resize','on','background',[33],'figure_name','Graphic window number %d','dockable','off','infobar_visible','off','toolbar_visible','off','menubar_visible','off','default_axes','on','visible','off');
//////////
handles.dummy = 0;
handles.nsorts=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.3894231,0.8322727,0.2836538,0.1090909],'Relief','default','SliderStep',[0.01,0.1],'String','Enter the number of balls','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','nsorts','Callback','')
handles.nshorts=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.3894231,0.6977273,0.2836538,0.1090909],'Relief','default','SliderStep',[0.01,0.1],'String','','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','nshorts','Callback','')
handles.stages=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.3894231,0.5631818,0.2836538,0.1090909],'Relief','default','SliderStep',[0.01,0.1],'String','Enter number of stages','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','stages','Callback','')
handles.n=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.3894231,0.4286364,0.2836538,0.1090909],'Relief','default','SliderStep',[0.01,0.1],'String','','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','n','Callback','')
handles.abc=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.3894231,0.2940909,0.2836538,0.1090909],'Relief','default','SliderStep',[0.01,0.1],'String','Enter probability','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','abc','Callback','')
handles.R=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.3894231,0.1595455,0.2836538,0.1090909],'Relief','default','SliderStep',[0.01,0.1],'String','','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','R','Callback','')
handles.run=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.3894231,0.025,0.2836538,0.1090909],'Relief','default','SliderStep',[0.01,0.1],'String','Run Simulation','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','run','Callback','run_callback(handles)')
f.visible = "on";
//////////
// Callbacks are defined as below. Please do not delete the comments as it will be used in coming version
//////////
function run_callback(handles)
//Write your callback for run here
R=strtod(handles.R.string)
n =strtod(handles.n.string)
nshots = strtod(handles.nshorts.string)
function j = simulgalton ( n )
jmin = 1
for k = 1 : n
r = rand()
if r>R then
jmin = jmin + 1
end
end
j = jmin
endfunction
clf()
cups = zeros(1,n+1)
drawlater();
bar(1:n+1, cups)
hh = gcf();
cmaxdefault = 30;
hh.children.data_bounds = [
0 0
n+2 cmaxdefault
];
drawnow();
for k = 1:nshots
j = simulgalton ( n );
cups(j) = cups(j) + 1;
hh.children.children.children.data(:,2) = cups';
cmax = 1.1 * max(max(cups),cmaxdefault);
hh.children.data_bounds = [
0 0
n+2 cmax
];
xtitle ( msprintf ("Run : %d, Bins = [ %s ]", k , strcat ( string ( cups ) , " " ) ) );
end
endfunction
|
1a4a419813645f785692067a4feb12ce39cb87c1 | 17dd6e9c9459b72f85b0a71f73e670abf1ca9f4e | /Wiskunde1/cursus/oud/figuren/telproblemen/dollars.sce | e3e8dc3ec1cbcc80bedf872b2b0fcb0092e157c8 | [] | no_license | Woumpousse/KHL | e80c9a00bf71321539b218d8ec047883a9c2fc91 | 066a06c131c617e8be9ec6ac2f4c76b637aba34e | refs/heads/master | 2020-12-24T13:18:20.656259 | 2014-09-29T16:14:00 | 2014-09-29T16:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 139 | sce | dollars.sce | e=input("Bedrag in euros: ");
t=input("Wisselkoers: ");
d=e*t;
disp("Het bedrag in dollar: "+string(d))
printf("Het bedrag is %f dollar",d) |
fee8d4ea8f88555267634b6c058d13ae3226659b | 449d555969bfd7befe906877abab098c6e63a0e8 | /995/CH2/EX2.14/Ex2_14.sce | 37cd4e88d6a89cf323d253716df12d8832857e4f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex2_14.sce | //Ex:2.14
clc;
clear;
close;
printf("Two 100 ohm resistor of 1 W");
|
77d108ef13eb35e1ea38b8caec436a99a0029c72 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH15/EX15.8/Example15_8.sce | 92a6b352003d56cc400099010346699deadd7275 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 382 | sce | Example15_8.sce | exec('Bernauli.sci', -1)
//Given that
density_Ethanol = 791 //in kg/m^3
A1 = 1.20*10^-3 //in m^2
A2 = A1/2
//Pressure in narrower section is lesser
deltaP = -4120 //in N/m^2
//Sample Problem 15-8
printf("**Sample Problem 15-8**\n")
A = [A1, A2]
density = density_Ethanol
h = 0
V = fsolve([0, 1], Bernauli)
printf("The volume flow rate is %e m^3/s", abs(A1*V(1))) |
4f175bc1c8c97274672189a7fe7a2fb87e833753 | 449d555969bfd7befe906877abab098c6e63a0e8 | /887/CH1/EX1.7/1_7.sce | 0375343eb1f43f48daaf0e95853289fccb752d96 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 365 | sce | 1_7.sce | clc
//ex1.7
R_1=10;
R_2=5;
V_R_2=15; //voltage across R_2
a=0.5;
i_y=V_R_2/R_2; //current across R_2
i_x=i_y*2/3; //current across R_1, by applying KCL at the top end of the controlled source
V_x=i_x*R_1; //ohm's law
V_s=V_x+V_R_2; //KVL around the periphery of the circuit
disp(V_s,'Source voltage for given circuit in volts')
|
207bf7691aae15393fe17e5dca2c635ef592c0d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /746/DEPENDENCIES/10_12.sce | 6dfe1e93319fda334ddfcb5e5b2d8e1a9250cb25 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,364 | sce | 10_12.sce | //Power required//
pathname=get_absolute_file_path('10.12.sce')
filename=pathname+filesep()+'10.12-data.sci'
exec(filename)
//From given graph, for maximum delivery condition, Q=48.5gpm.
//Volume of oil per revolution delivered by the pump(in in^3/rev):
vc=Qe/N*231
//Volumetric Effciency of pump at max flow:
Effv=vc/va
//Operating point of the pump is found to be at 1500 psig,Q=46.5gpm
//Power delivered by the fluid(in hp):
Pf=Qo*po1/7.48/60*144/550
//Input power(in hp):
Pi=Pf/Effp
//The power delivered to the load(in hp):
Pl=Q*(po1)/7.48/60*144/550
//Power dissipated by throttling(in hp):
Pd=Pf-Pl
//The dissipation with the variable displacement pump(in hp):
Pvd=Q*(po2-po1)/7.48/60*144/550
//Power required for te load sensing pump if pump pressure is 100psi above that required by the load(in hp):
Pls=Q*100/7.48/60*144/550
printf("\n\nRESULTS\n\n")
printf("\n\nVolume of oil per revolution delivered by the pump: %.3f in^3/rev\n\n",vc)
printf("\n\nRequired pump power input: %.3f hp\n\n",Pi)
printf("\n\nPower deliverd to the load: %.3f hp\n\n",Pl)
printf("\n\nPower dissipated by throttling: %.3f hp\n\n",Pd)
printf("\n\nThe dissipation with the variable displacement pump: %.3f hp\n\n",Pvd)
printf("\n\nPower required for te load sensing pump if pump pressure is 100psi above that required by the load: %.3f hp\n\n",Pls)
|
ee3b2341daba032e159eccf29b564b61bd25c980 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/qscatter/qscatter.sce | 33ea39cbe0adf306245b5765064cb6f754fae658 | [] | 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 | 351 | sce | qscatter.sce | //qscatter
exec('v.sce');
exec('f.sce');
exec('u.sce');
exec('tdl.sce');
exec('sigma.sce');
exec('numerov.sce');
//partial wave analysis of scattering
deltah=0.01;
nsteps=200;
global m
global hb
m=938*10^9;
hb=6.59*10^(-13);
//2m/hb^2=6.12meV^-1(sigma)^-2
sig=zeros(nsteps);
for i=1:nsteps
e=i*0.05;
k=sqrt(2*m*e)/hb;
sig(i)=sigma(k,e);
end
|
7a4b7e8e2d70f46f94df8a47e8d51e46fd21ec54 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH2/EX2.84/EX2_84.sce | c9382272d55810aa7a6df4d41854dd197ad5cae9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 816 | sce | EX2_84.sce | //EXAMPLE 2-84 PG NO 121-122
L=0.01; //Inductance
C=0.04*10^-6; //Capacitor
Fo=1/[2*%pi*(sqrt(L*C))];
disp('i) Resonant Frequency (Fo) is = '+string (Fo) +' Hz ');
Z=50;
R=Z;
V=100;
Io=V/R;
disp('ii) Current (Io) is = '+string (Io) +' A ');
Fc=(1/(2*%pi))*[(1/(L*C))-(R^2/(2*L^2))]^0.5;
disp('iii) Cutt Frequency (Fc) is = '+string (Fc) +' Hz ');
Z1=50-%i*2.5;
Xc=1/[2*%pi*Fc*C];
disp('iv) Xc (Xc) is = '+string (Xc) +' ');
Vc=[100/Z1]*Xc;
disp('v) VOLTAGE (Vc) is = '+string (Vc) +' V ');
FL=1/[(2*%pi)*[(L*C)-[(R^2*C^2)/2]]^0.5];
disp('vi) Frequency (FL) is = '+string (FL) +' Hz ');
Z2=50+%i*2.5;
VL=[100/Z2]*(2*%pi*FL*0.1);
disp('i) VOLTAGE (VL) is = '+string (VL) +' V ');
|
d39ab4c1ef62d48ccf35a5ae76f45da132a49a7b | 13c3ed7bef4d80dabd836219bbf4396f07cb934a | /demo.sci | 361d57a6344beb6e0ad1c583500b7b31a4f26d80 | [] | no_license | Mushirahmed/scilab_workspace | 99f489a110a5e295ce9fca9991122d14840018d3 | f58b91b87bb0357fff82dcb97b05541e7e976eca | refs/heads/master | 2021-01-10T15:48:40.576771 | 2016-02-10T10:32:46 | 2016-02-10T10:32:46 | 43,348,489 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 216 | sci | demo.sci | function ydot = f(t,y)
ydot=[a-y(2)*y(2)-1;1 0]*y
endfunction
a=1;y0=[1;0];t0=0;instants = 0:0.02:20;
y=ode(y0,t0,instants,f);
plot2d(y(1,:),y(2,:),style=-1,rect=[-3,-3,3,3],nax=[10,2,10,2])
xtitle('Van der pol') |
c30bdf154730f23582c5ce0fe379a18f73b8f97e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1850/CH5/EX5.2/exa_5_2.sce | 348bbb48c8c290ccce7ea9e6faa51dc733f973de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 275 | sce | exa_5_2.sce | // Exa 5.2
clc;
clear;
close;
// Given data
Rf= 12;// in k ohm
Rs1= 12;// in k ohm
Rs2= 2;// in k ohm
Rs3= 3;// in k ohm
Vi1= 9;// in volt
Vi2= -3;// in volt
Vi3= -1;// in volt
Vout= -Rf*[Vi1/Rs1+Vi2/Rs2+Vi3/Rs3];// in volt
disp(Vout,"Output voltage in volt");
|
7cc7973b90b04e6df553718ee1af80d890cd83c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3689/CH18/EX18.3/18_3.sce | 3e5794cffc6db08d63b7bf047e12297e99e67dfe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 18_3.sce | ////
//Variable Declaration
t1by2 = 2.05e4 //Half life for first order decomposition of N2O5, s
x = 60. //percentage decay of N2O5
//Calculations
k = log(2)/t1by2
t = -log(x/100)/k
//REsults
printf("\n Rate constant of the reaction: %4.3e 1/s",k)
printf("\n Timerequire for 60 percent decay of N2O5: %4.3e s",t)
|
505906f45d9758d51843a8a69c1ef049e4fdd3f7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3871/CH3/EX3.17/Ex3_17.sce | 2623a1f4b55308c693b0e0be5487ed22b23b573b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 824 | sce | Ex3_17.sce | //===========================================================================
//chapter 3 example 17
clc;
clear all;
//variable declaration
R1 = 500; //resistance in Ω
R2 = 615; //resistance in Ω
R3 = 100; //resistance in Ω
dR1 = 1; //limiting error(dR1/R1) in %
dR2 = 1; //limiting error(dR1/R1) in %
dR3 = 0.5; //limiting error(dR1/R1) in %
//calculations
R4 = (R1*R2)/(R3); //unknown resistance in Ω
dR4 =dR1+dR2+dR3; //relative error of unknown resistance in % ranging - to +
e = R4*(dR4/(100)); //limitng error in Ω
//result
mprintf("unknown resistance = %.2f Ω",R4);
mprintf("\nrelative error of unknown resistance ranging - to + = %3.2f percentage ",dR4);
mprintf("\nlimitng error = %3.2f Ω",e);
|
b1e3b87e4fd55bcb972f52c7f2d8749152d4caef | 449d555969bfd7befe906877abab098c6e63a0e8 | /2993/CH2/EX2.2/Ex2_2.sce | 18849a30fd88aaa93374152cbc5c1ba22c38fba3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 121 | sce | Ex2_2.sce |
clc;
clear;
//The size of retinal image x :
x = ((17 * 10)/50);
disp(x,'The size of the retinal image (in mm) is ');
|
c8e70f38237c8a6af4b1b04a50e13cef5d1f90d4 | 7d5f639d96c00f6068c51c15df7b40cf8e959f09 | /code/q3a5.sci | 0a6f00892e0997c7d6a4f196f40ec11987a69ddb | [] | no_license | XAMEUS/MN | daf13aac1f92cf5137e55189e8d23bb42fe1a747 | 36e3f0e34c07641cdee4b401a98478822e0dee46 | refs/heads/master | 2021-03-24T11:50:44.826039 | 2017-05-02T19:54:26 | 2017-05-02T19:54:26 | 86,677,617 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,743 | sci | q3a5.sci | // Question 3
function [l, m]=factorisation_cholesky(D, SD)
// arg: la diagonale et la sous-diagonale d’une matrice M symétrique définie
// positive et tridiagonale.
// return: deux vecteurs l (diagonale) et m (sous-diagonale) issus de
// la matrice résultante de la factorisation de cholesky.
l=zeros(1, length(D))
m=zeros(1, length(SD))
l(1) = sqrt(D(1))
for i = 1:length(D)-1
m(i) = SD(i) / l(i);
l(i+1) = sqrt(D(i+1) - m(i)^2);
end
endfunction
// Unit Tests:
M = [2, -1, 0, 0, 0;
-1, 2, -1, 0, 0;
0, -1, 2, -1, 0;
0, 0, -1, 2, -1;
0, 0, 0, -1, 2;]
disp(M)
[l, m] = factorisation_cholesky(diag(M), diag(M, -1))
disp(l, m)
L = diag(l) + diag(m, -1)
disp(L)
A = L * L'
disp(A)
assert_checkalmostequal(A, M, 1.0D-10);
// Question 4
function Z=descente(l, m, Y)
// arg: l la sous-diagonale et m la diagonale de L, issus de la factorisation de Cholesky d'une matrice n*n. Y vecteur de taille n.
// return: Vecteur Z de taille n, tel que LZ=Y.
Z = zeros(length(Y), 1)
Z(1) = Y(1) / l(1)
for i = 2:length(Z)
Z(i) = (Y(i) - m(i-1) * Z(i-1)) / l(i)
end
endfunction
Y = [1; 2; 3; 4; 5]
Z = descente(l, m, Y)
W = L * Z
assert_checkalmostequal(Y, W, 1.0D-10);
//Question 5
function X=remonte(l, m, Z)
// arg: l la sous-diagonale et m la diagonale de L, issus de la factorisation de Cholesky d'une matrice n*n. Z vecteur de taille n.
// return: Vecteur X de taille n, tel que T(L)X=Z.
X = zeros(length(Z), 1)
X(length(X)) = Z(length(X)) / l(length(X))
for i = length(X)-1:-1:1
X(i) = (Z(i) - m(i) * X(i+1)) / l(i)
end
endfunction
X = remonte(l, m, Z)
disp(X)
assert_checkalmostequal(Z, L' * X, 1.0D-10);
|
9e3cd52a9ef76fb64992f4b836eb6310c1c2e182 | 45c1200ec894e793587fc6d8f30253e69ecec19a | /neiro/laba2/bin/Debug/линейно неразделимые 3D.tst | 9136323f5a3de8127ccce3e680d9ae121fdacd03 | [] | no_license | dShadowHS/dShadow | 46c0df8f6715948d2b952de001f1f8748861eb1d | 0b4c4674d137160d09e5bb9092ff0d2253818dd0 | refs/heads/master | 2021-01-11T23:11:28.661559 | 2017-01-10T17:12:41 | 2017-01-10T17:12:41 | 78,555,391 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,032 | tst | линейно неразделимые 3D.tst | 342,088;171,973;74,718;0
354,16;168,431;84,581;0
350,448;172,931;72,805;0
347,242;169,711;79,125;0
347,767;165,262;60,921;0
348,84;169,171;78,651;0
350,192;174,312;77,642;0
340,379;162,446;68,093;0
341,089;173,656;71,622;0
354,351;178,411;71,611;0
350,193;172,047;76,929;0
341,858;161,751;85,515;0
337,029;176,883;64,16;0
349,997;156,998;72,084;0
337,106;168,01;69,083;0
337,287;175,038;63,048;0
356,297;176,062;72,395;0
352,527;162,327;75,518;0
340,827;166,279;78,276;0
338,115;178,027;74,833;0
339,881;167,042;68,238;1
330,57;160,447;67,374;1
338,521;165,998;72,005;1
330,205;165,521;72,637;1
334,853;170,013;70,525;1
335,835;168,267;73,407;1
332,226;164,481;73,321;1
332,279;167,552;68,29;1
337,651;168,919;66,099;1
337,573;168,02;64,99;1
329,396;163,078;64,527;1
335,917;170,291;67,895;1
337,543;166,541;62,703;1
334,308;164,952;68,386;1
331,063;167,406;71,418;1
328,569;162,728;71,382;1
338,488;167,478;68,631;1
328,025;163,647;68,275;1
331,178;161,628;67,024;1
333,215;158,938;64,816;1
|
4530a51ab2bd614713fd74a989a24877ab928426 | 717ddeb7e700373742c617a95e25a2376565112c | /32/CH3/EX3.17/3_17.sce | 7473d30362f304b5fd2f3c49b7c7246f923e1b45 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 1,032 | sce | 3_17.sce | //pathname=get_absolute_file_path('3.17.sce')
//filename=pathname+filesep()+'3.17-data.sci'
//exec(filename)
//Initial pressure(in MPa):
pi=0.5
//Initial volume(in m^3):
vi=0.5
//Final pressure(in MPa):
pf=1
//Atmospheric pressure(in Pa):
patm=1.013*10^5
//Adiabatic index of compression for H2:
rH2=CpH2/(CpH2-RH2)
//Adiabatic index of compression for N2:
rN2=CpN2/(CpN2-RN2)
//Final pressure of hydrogen(in Pa):
p2=p1*(v1/v2)^rH2
printf("\nRESULT\n")
printf("\nFinal pressure of hydrogen = %f MPa",p2/(10^6))
//Partition work:
Pw=0
printf("\nPartition work = %d",Pw)
//Work done upon H2(in J):
WH2=(p1*v1-p2*v2)/(rH2-1)
//Work done by nitrogen(in J):
WN2=-WH2
printf("\nWork done by hyrogen = %d J",WH2)
printf("\nWork done by nitrogen = %d J",WN2)
//Mass of N2(in kg):
mN2=p1*v1/(RN2*10^3*T1)
//Final temperature of N2(in K):
T2=p2*vN2*T1/(p1*v1)
//Cv of N2(in kJ/kg):
CvN2=CpN2-RN2
//Heat added to N2(in kJ):
QN2=mN2*CvN2*10^3*(T2-T1)+WN2
printf("\nHeat added to nitrogen = %f kJ",QN2/(10^3)) |
0b10a2e4d062e65773f637ac8ad4a19ec97ac117 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH4/EX4.9/respol5.sce | 146db429cebd67b92f98161201288f93b5041c0d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 304 | sce | respol5.sce | // Partial fraction expansion for Example 4.29
// 4.9
// z^2 + 2z
// G(z) = --------------------
// (z + 1)^2 (z - 2)
exec('respol.sci',-1);
exec('flip.sci',-1);
num = [1 2 0];
den = convol(convol([1 1],[1 1]),[1 -2]);
[res,pol] = respol(num,den)
|
065eda420e06c8efb971566bb24a6c7cf4df6b69 | fa9b149d7f99d0d638c3cd298a05ffcc611565a3 | /getABCDfunctions.sci | e2f0d1e837c9f7fe996008fe3d2978d54c2d2404 | [] | no_license | kaushikmallick/getStateSpace | d40ef05c74b6f35a0cfb98015f1acabd2012f788 | b62a21c00fb47fa3cacd05b9b16ff5ef9d858f56 | refs/heads/master | 2021-01-10T19:48:46.581957 | 2013-10-28T17:54:33 | 2013-10-28T17:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,963 | sci | getABCDfunctions.sci | // ReOrderStateEqns > findRow > filt
// MinKer > polyRank
// IpolishLeftAnn > rowcmprI
// gauss > RowManipulatePlusIs
// function that takes first input a vector v1 of indices (assumed distinct integers),
// and second input v2 of what is required from within v1.
// and gives two outputs: one is v1 with just v2, and second is v1 without v2 =: v3
// v2 is possibly two elements, but v1 will always have v2 as it is
function [filteredOut, filteredIn] = filt(v1, v2)
filteredIn = v2;
lV2 = length(v2)
filteredOut = v1
// v2 = -gsort(-v2)
for i = 1:lV2,
filteredOutIndx = find(filteredOut ~= v2(i))
filteredOut = filteredOut(filteredOutIndx)
end
endfunction
// function that takes a matrix and a col-index and returns
// a row index that has a one in exactly
// that col-index in that row (if such a row exists).
// assume there is just one row like this, or else first such row, if none
// such row exists, then rowIndx = 0!
function rowIndx = findRow(A,colIndx)
allNZrows = find(abs(A(:,colIndx)) >= 0.001)
for i = allNZrows,
if norm(A(i, filt(1:size(A,'r'), colIndx))) <= 0.001 then
rowIndx = i
else
rowIndx = 0
end
end
endfunction
// function that takes a polynomial matrix and also the number_of_states
// and re-orders the rows for as many times as the states
function PmatOut = ReOrderStateEqns(PmatIn,num_states)
for i = 1:num_states,
rowIndx = findRow(degree(PmatIn),i);
NRows = size(PmatIn,'r');
NewRows = [1:i-1, rowIndx, i:rowIndx-1, rowIndx+1:NRows];
PmatIn = PmatIn(NewRows,:);
end
PmatOut = PmatIn
endfunction
// a function that takes a polynomial matrix and
// evaluates it at several random complex numbers and returns back
// the maximum of all the ranks (of each of these complex matrices)
// as the "normal rank".
function rk = polyRank(R)
count = 40
rk = 0;
a = 3*(rand(1,count) + %i*rand(1,count) -0.5 -0.5*%i)
for i = a,
rk = max(rk, rank(horner(R,i), 0.0001));
end
endfunction
// a function that takes a polynomial matrix and goes on taking its rows : row by row.
// It skips a row when rank is not increasing
function Rmin = MinKer(R)
rows = size(R, 'r')
cols = size(R, 'c')
Rmin = R(1,:)
rk = polyRank(Rmin)
for i = 2:rows,
if polyRank([Rmin; R(i,:)]) > rk then
Rmin = [Rmin; R(i,:)]
rk = rk + 1
// else disp(i)
end
end
endfunction
// function that takes a *tall* matrix (assumed full column rank0 and gives
// two square (expected to be nonsingular) matrices that bring E to be
// not just row compressed, but I matrix, either up (first output) or down (second output)
function premultIup = rowcmprI(E)
LeftInverse = pinv(E)
LeftAnnihilator = kernel(E')'
premultIup = [LeftInverse; LeftAnnihilator]
premultIdown = eye(premultIup);
endfunction
// function that takes a left annihilator and modifies that annihilator
// to get the left-most block as [I;0] so that state-derivative-s does
// not mess up with lower equations!
// this function *assumes* the first few rows/colummns are ddt x part.
function LeftAnnihilOut = IpolishLeftAnn(LeftAnnihilIn,num_states)
if rank(LeftAnnihilIn(:, 1:num_states), 0.0001)==num_states then // f.c.r. check
premultIup = rowcmprI(LeftAnnihilIn(:, 1:num_states))
LeftAnnihilOut = premultIup*LeftAnnihilIn
else
disp("sorry, Left Annihilator not polished/modified!")
LeftAnnihilOut = eye(size(LeftAnnihilIn,'r'),size(LeftAnnihilIn,'r'))
end
endfunction
// function that gives a Gauss transform to *lower* triangularize! (for getting
// y variables out of state evolution equations)
function premultIdown = gauss(vect)
premultIdown = eye(length(vect), length(vect))
premultIdown(:,$) = -vect(:,$)/vect($,$)
premultIdown($,$) = 1/vect($,$)
endfunction
// function to get sI-A, rather than some other I (with some diagonals as -1) multiplying
// to the s. this function takes kernel representation and number of states
// and multiplies entire row by -1 if necessary. Then A,B,C,D are extracted out.
function [Rker2, A, B, C, D] = RowManipulatePlusIs(Rker, num_states)
rows = size(Rker,'r')
for i = 1:rows,
if degree(Rker(i,i)) == 1 then
Rker2(i,:) = Rker(i,:)/abs(coeff(Rker(i,i),1))
if abs(coeff(Rker(i,i),1)+1) <= 0.001 then
Rker2(i,:) = -Rker(i,:)
end
else
Rker2(i,:) = Rker(i,:)
end
end
// Rker2 = Rker
// for i = 1:num_states,
// if abs(coeff(Rker(i,i),1)+1) <= 0.001 then
// Rker2(i,:) = -Rker(i,:)
// end
// end
A = -coeff(Rker2(1:num_states, 1:num_states), 0)
B = -coeff(Rker2(1:num_states, num_states+1), 0)
C = -coeff(Rker2(num_states+1, 1:num_states), 0)
D = -coeff(Rker2(num_states+1, num_states+1), 0)
if D < 0 then
C = -C;
D = -D;
end
endfunction
|
675468221eac0b2d8f6b2cf02ced990a5fd1527a | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/CH8/EX8.3/8_3.sce | a8e224b3f370e5c849c0caa0a016780aa78aaf0c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 561 | sce | 8_3.sce | pathname=get_absolute_file_path('8_3.sce')
filename=pathname+filesep()+'8_3data.sci'
exec(filename)
A=t*(2*a +b);
Ixx=2*a*t*(b/2)^2 +(t*b^3)/12;
Iyy=(2*t*a^3)/12;
I0=Ixx+Iyy;
J=(2*a*t^3)/3 +(b*t^3)/3;
tau=(t*a^3 *b^2)/24;
Px=(%pi^2 *E*Ixx/L^2);//PCR(xx)
Py=(%pi^2 *E*Iyy/L^2);//PCR(yy)
Pth=(A/I0)*(G*J +(%pi^2 *E*tau)/L^2);//PCR(θ)
P=poly(0,'P');
y=(I0/A)*(P^2 -(Px +Pth)*P +Px*Pth);
m=roots(y);
Ptb1=m(1,:)
Ptb2=m(2,:)
Load=[Px;Py;Pth];
printf("\nbuckling Load: %f N",min(Load));
printf("\nflexural-torsional buckling Load: %f N",roots(y)); |
aa53db7129fc9699c35ac0c41f982c28be0643e6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3875/CH11/EX11.4/11_4.sce | ef8cbee83f0d90f011d768f92fe78a3222d40e17 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 3,192 | sce | 11_4.sce | clc;
clear;
lambda=0.180*10^-9 //wavelength in m
R=1.097*10^7 // in m^-1
//calculation
Z_star=sqrt(4/(3*lambda*R))
mprintf("The Z_star is = %d\n",Z_star)
Z=(Z_star+1)
mprintf("Since Z which is the atomic number is = %d,the element is Cobalt",Z)
|
5fd3fd175b1bd9ac07300c80b557c78af03cc1dd | 3cbee2296fd6b54f80587eead83813d4c878e06a | /sci2blif/sci2blif_added_blocks/Algo_ADC.sce | 047e869c7ffcedc4e9ec53d7a5eb403ca30c04e2 | [] | no_license | nikhil-soraba/rasp30 | 872afa4ad0820b8ca3ea4f232c4168193acbd854 | 936c6438de595f9ac30d5619a887419c5bae2b0f | refs/heads/master | 2021-01-12T15:19:09.899590 | 2016-10-31T03:23:48 | 2016-10-31T03:23:48 | 71,756,442 | 0 | 0 | null | 2016-10-24T05:58:57 | 2016-10-24T05:58:56 | null | UTF-8 | Scilab | false | false | 1,546 | sce | Algo_ADC.sce | //************************* Algorithmic ADC ******************************
if (blk_name.entries(bl) =='Algo_ADC') then
mputl("# Algorithmic ADC ",fd_w);
for ss=1:scs_m.objs(bl).model.ipar(1)
adc_str= ".subckt Algo_ADC in[0]=net"+string(blk(blk_objs(bl),2))+'_'+ string(ss)+" in[1]=clk_A in[2]=clk_R in[3]=clk_S in[4]=clk_L"+" out=net"+ string(blk(blk_objs(bl),2+numofip))+'_'+ string(ss)+ " #Algo_ADC_p_bias[0] =1.1e-6&Algo_ADC_n_bias[0] =1.22e-6&Algo_ADC_fgota_bias[0] =0.2e-6&Algo_ADC_p_bias[1] =2e-6&Algo_ADC_n_bias[1] =5.9e-7&Algo_ADC_fgota_bias[1] =0.3e-6&Algo_ADC_ota_bias[1] =0.1e-6&Vref_res[0] =4e-6&Vref_res[1] =1.5e-9&comp_res[0] =19e-6&comp_res[1] =1e-9&Algo_ADC_ota_bias[0] =1e-6&Algo_ADC_fg[3] =0";
mputl(adc_str,fd_w);
mputl(" ",fd_w);
x= ".subckt inv in[0]=net"+string(blk(blk_objs(bl),5))+'_'+ string(ss)+ " in[1]=net"+string(blk(blk_objs(bl),3))+'_'+ string(ss)+" out[0]=clk_L out[1]=clk_R #inv_fg[0] =0" ;
mputl(x,fd_w);
mputl(" ",fd_w);
y= ".subckt inv in[0]=net"+string(blk(blk_objs(bl),6))+'_'+ string(ss)+ " in[1]=net"+string(blk(blk_objs(bl),4))+'_'+ string(ss)+" out[0]=clk_S out[1]=clk_A #inv_fg[0] =0" ;
mputl(y,fd_w);
mputl(" ",fd_w);
plcvpr = %t;
//plcloc=[plcloc;'net'+string(blk(blk_objs(bl),2+numofip))+'_1',' 3 '+string(nfetloc)+' 0'];
plcloc=[plcloc;'net'+string(blk(blk_objs(bl),2+numofip))+'_1','10 1 0'];
plcloc=[plcloc;'clk_S', '10 2 0'];
plcloc=[plcloc;'clk_L','11 2 0'];
end
end
|
561d4334d998bf49a9e23d19e9c064856d39c1ef | 449d555969bfd7befe906877abab098c6e63a0e8 | /22/CH2/EX2.5/que2_5.sce | 684bce5017321668d58259b0e0e154dfe430d063 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 549 | sce | que2_5.sce | //time domain analysis of continuous time systems
//Convolution Integral of input x(t) = (e^-t).u(t)and g(t) =(e^-2*t)u(t)
clear;
close;
clc;
Max_Limit = 10;
t = 0:0.001:10;
for i=1:length(t)
g(i) =(exp(-2*t(i)));
end
x= exp(-(t));
y = convol(x,g)
figure
a=gca();
plot2d(t,g)
xtitle('Impulse Response','t','h(t)');
a.thickness = 2;
figure
a=gca();
plot2d(t,x)
xtitle('Input Response','t','x(t)');
a.thickness = 2;
figure
a=gca();
T=0:0.001:20;
plot2d(T,y)
xtitle('Output Response','t','y(t)');
a.thickness = 2; |
258fbcf9d25f89be05d221c79d9975e278023362 | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH6/EX6.5/ex_6_5.sce | cbad048e5b984e8730109d58e72c2b7df5312f96 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 350 | sce | ex_6_5.sce | clear;
close;
clc;
T0=4;
w0=%pi/2;
y=[1 0 0 0];
n=-8:7;
x=[];
for i=1:length(n)/T0
x=[x y];
end
plot2d3(n,x);
plot(n,x,'r.');
xtitle('x[n]','n')
for k=-9:9
c(k+10)=0;
for n=0:3
c(k+10)=c(k+10)+ (1/4)*(y(n+1))*(%e)^(%i*w0*k*n);
end
end
k=-9:9;
figure
plot2d3(k,abs(c));
plot(k,c,'r.')
xtitle('x[n]','n') |
bd85a50a7ba80218ac89a00f79bdbaf6737177b9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3544/CH6/EX6.55/Ex6_55.sce | d04aae0baf4698a249fd3bd9a43a49a2222cc909 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex6_55.sce |
//Base-64 encoding mapping table
disp("Base-64 encoding mapping table")
[u,t,n] = file()
n = strcat(n)
file_name = basename(n)+fileext(n)
file_name = strcat(file_name)
ind=strindex(n,file_name)
path = part(n,1:ind-1)
chdir(path)
//Get function to create encoding table
exec("Chapter_6.sci",-1)
enc = encoding_table()
for i=0:63
printf("%d - %c\n",i,ascii(enc(i+1)))
end
|
875bc90d8769a97f07cba74152e9f1c620fd66dc | 449d555969bfd7befe906877abab098c6e63a0e8 | /3793/CH12/EX12.3/exp_12_3.sce | 72f0e1563d9a1f2f548dae376ebc7f7b542a06aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 337 | sce | exp_12_3.sce | clear;
clc;
Pr=.24;
Vr=.55;
del=asind(Pr/Vr);
a=gca();
a.auto_scale="off";
a.data_bounds=[0,0.3;1.5,1];
xlabel("Voltage");
ylabel(" ReactivePower");
V=[0:.01:5];
Q=((V)^2)+(V*cosd(del));
plot(V,Q);
q=.38;
v=.95;
Qr=((220^2)*q)/60;
Vrr=v*220;
mprintf("Critical power = %.3f MVAR and Critical voltage = %.3f KV",Qr,Vrr);
|
c9e84960a4dabe6bd09b11bd4982b36e1abc095f | 048b7c76423fe27dee2e31a52bae93c95883614e | /macros/idct1.sci | d398e56480a178907ea6997b3bd9009b0bf5d824 | [] | no_license | vu2swz/FOSSEE-Signal-Processing-Toolbox | aa5f283d050be62418dddbf41552f197b9949c4c | d97a4b7e2f0f25fb5cd94bd90a3b822592179d1e | refs/heads/master | 2021-08-19T20:06:19.346872 | 2017-11-27T09:57:21 | 2017-11-27T09:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 233 | sci | idct1.sci | function y = idct1(x,n)
funcprot(0);
rhs=argn(2)
if (rhs<1 | rhs>2) then
error("Wrong number of input arguments.")
end
select(rhs)
case 1 then
y=callOctave("idct",x)
case 2 then
y=callOctave("idct",x,n)
end
endfunction
|
b88469c4e38c2b938f81acb45c50461cb3bd364b | 8baa4268cc19995abb706bcc05c80afb319e1669 | /test/rate-no-recipe.tst | 94152d4fb5f1b22a6e888b432ca21bff4487c3ca | [] | no_license | nicoloison/CPSC471-Project | 53c3362e0251f3c37edf0ab9769277d15670dc21 | db0db7d7be776d6d6958d920596bc708d3347e82 | refs/heads/master | 2020-04-18T13:42:30.599190 | 2014-12-26T10:58:19 | 2014-12-26T10:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 72 | tst | rate-no-recipe.tst | curl "localhost/recipes/rate.php?username=lmitchell&author_name=nloison" |
be60a412fc86eff04b92c3f4c5842210db88e09e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH3/EX3.2/3_2.sce | 8a6f5e21a4a36f3da056b0feb26c3dff4f1246b4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 797 | sce | 3_2.sce | clc,clear
printf('Example 3.2\n\n')
//no load
I_noload=2.5 //No load current
V=440
R_a=1.2,R_sh=550//resistance of armature and shunt field windings
no_load_input=V*I_noload
I_sh=V/R_sh
I_a_noload=I_noload-I_sh
no_load_armature_copper=(I_a_noload^2)*R_a
constant_losses=no_load_input-no_load_armature_copper
//full load
I_fullload=32
I_a_fullload=I_fullload-I_sh
full_load_armature_coppe=(I_a_fullload^2)*R_a
total_losses=full_load_armature_coppe+constant_losses
full_load_motor_input=V*I_fullload
full_load_motor_output=full_load_motor_input-total_losses
efficiency_at_full_load=full_load_motor_output*100/full_load_motor_input
printf('Full load motor output is %.2f W\nEfficiency of motor at full-load is %.2f percent',full_load_motor_output,efficiency_at_full_load)
|
522f221f09d8dfb299d5cddd2b2fddf61a836970 | e9d5f5cf984c905c31f197577d633705e835780a | /GED/nonlinear/scilab/nonlin_sw89/jac_flowsheet_residuals.sci | 07a9f0ada80dd0044a6536392fd12e81a00ef632 | [] | no_license | faiz-hub/dr-ged-benchmarks | 1ad57a69ed90fe7595c006efdc262d703e22d6c0 | 98b250db9e9f09d42b3413551ce7a346dd99400c | refs/heads/master | 2021-05-18T23:12:18.631904 | 2020-03-30T21:12:16 | 2020-03-30T21:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,297 | sci | jac_flowsheet_residuals.sci | function [At, varargout] = jac_flowsheet_residuals(flow_full,temp_full, flow, temp, coef )
//******************************************************************************
// Data Reconciliation Benchmark Problems From Literature Review
// Author: Edson Cordeiro do Valle
// Contact - edsoncv@{gmail.com}{vrtech.com.br}
// Skype: edson.cv
//******************************************************************************
// Builds a Jacobian matrix of a heat exchanger network problem proposed by Swartz, 1989,
// considering the measured and unmeasured flows and temperatures entered by user.
// This function is prepared to use the automatic derivatives toolbox of
// Scilab. This toolbox can be instaled using the ATOMS installer (package name: diffcode).
// The objective of this jacobian is to use it further in variable classification routines
// Do not use it for optimization purposes, since it make some costly computational operations
// Outputs:
// At: The full Jacobian of the system (as if all variables were measured).
// Ax: The Jacobian of the system of the measured part.
// Au: Jacobian of the system (as if all variables were measured).
// varargout(1): unmeasured streams (identified by -1).
// varargout(2): fixed streams (identified by -5).
// Inputs
//
// flow_full: The total flow measurements. It is a row vector with
// the values measured. In the case where a stream is unmeasured, an estimate must be given, eg:
// [ 300 200 100] (stream 3 is unmeasured, but ans estimate is given )
// temp_full: The flow temperature measurements, same as flow_full: It is a row vector with
// the temperature values measured. In the case where a stream temperature is unmeasured, an estimate must be given, eg:
// [ 353 279 387] (the temperature of stream 3 is unmeasured, but ans estimate is given )
// flow: The total flow with unmeasured information. It is a row vector with
// either the values measured, -1 if the flow is not measured or -5 if the stream is fixed
// (fixed variables arrise, for exemple, if we have a flow controler in the process)
// It is a matrix with the form:
// [ 300 -5 -1]
// means Stream1 = 3000 ; Stream2 is fixed and Stream3 unmeasured
// the fixed value information comes from flow_full input
//
// temp: same as flow:
// The values are filled with the values measured, -1 if the temperatures is unmeasured or
// -5 if the temperature is fixed. The fixed value information comes from temp_full input//
// Ex: for a simple splitter (one input and 2 output streams) (stream 2 with unmeasured temperature and
// stream's temperature 3, fixed:
// [ 353 -1 -5]
// coef: the enthalpy coeficients, it is a nflow x ncoeficients (in the paper case, 3 coeficient)
// they will be calculated according to the following formula:
// h_{i} = nu_{1,i} + nu_{2,i}*temp_{i} + nu_{3,i}*temp_{i}^{2}
// in the matrix form (simplified example for 4 streams):
// temp_exp= [ 1 1 1 1;
// t_{1} t_{2} t_{3} t_{4};
// t_{1}^{2}] t_{2i}^{2}] t_{3}^{2} t_{4}^{2} ]
//
// coef = [ nu_{1,1} nu_{1,2} nu_{1,3} nu_{1,4} ;
// nu_{2,1} nu_{2,2} nu_{2,3} nu_{2,4} ;
// nu_{3,1} nu_{3,2} nu_{3,3} nu_{3,4} ]
//
// enthalpy_internal = sum(temp_exp.*coef, 'r');
//
//******************************************************************************
xi_full = [flow_full(:); temp_full(:)];
// x for variables classification:
xi_class = [flow(:); temp(:)];
nflow = length(flow_full);
A = diffcode_jacobian(list(flowsheet_residuals,nflow,coef),xi_full)
//pause
At=A';
varargout = list(find(xi_class == -1), find(xi_class == -5));
endfunction
|
1bd0b8e84e0cefc9be4fba05694359f520cee969 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /xcos_blocks/vmm6x2.sci | 844248924e9627e14b2a6e24860affafa0f92f6c | [] | 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 | 2,503 | sci | vmm6x2.sci | function [x,y,typ]=vmm6x2(job,arg1,arg2)
x=[];y=[];typ=[];
select job
case 'plot' then standard_draw(arg1)
case 'getinputs' then [x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then [x,y,typ]=standard_outputs(arg1)
case 'getorigin' then [x,y]=standard_origin(arg1)
case 'set' then
x=arg1;graphics=arg1.graphics;model=arg1.model;exprs=graphics.exprs;
while %t do
[ok,num_of_blk,mblif_num,vmm6x2_wp12,vmm6x2_wn12,vmm6x2_fgtia,vmm6x2_fgpntia,vmm6x2_otatia,vmm6x2_offset,fix_loc,exprs]=scicos_getvalue('New Block Parameter',['num_of_blk';'mblif_num';'vmm6x2_wp12';'vmm6x2_wn12';'vmm6x2_fgtia';'vmm6x2_fgpntia';'vmm6x2_otatia';'vmm6x2_offset';'fix_loc'],list('vec',-1,'vec',-1,'mat',[-1,-1],'mat',[-1,-1],'mat',[-1,-1],'mat',[-1,-1],'mat',[-1,-1],'mat',[-1,-1],'vec',-1),exprs);
if ~ok then break,end
if ok then
num_st=1;
model.ipar=[num_of_blk,mblif_num];
model.state=[ones(num_st,1);ones(num_st,1)];
model.rpar=[vmm6x2_wp12,vmm6x2_wn12,vmm6x2_fgtia,vmm6x2_fgpntia,vmm6x2_otatia,vmm6x2_offset,fix_loc'];
graphics.exprs=exprs;
x.graphics=graphics;
x.model=model
break;
end
end
case 'define' then
num_of_blk=1;
mblif_num=0;
vmm6x2_wp12=[1e-6,2e-9,2e-9,2e-9,2e-9,1e-6,2e-9,2e-9,2e-9,2e-9,1e-6,2e-9];
vmm6x2_wn12=[1e-6,2e-9,2e-9,2e-9,2e-9,1e-6,2e-9,2e-9,2e-9,2e-9,1e-6,2e-9];
vmm6x2_fgtia=[20e-9,20e-9];
vmm6x2_fgpntia=[50e-9,50e-9,50e-9,50e-9];
vmm6x2_otatia=[10e-6,10e-6];
vmm6x2_offset=[10e-9,10e-9];
fix_loc=[0;0;0];
model=scicos_model();
model.sim=list('vmm6x2_c',5);
model.in=[6;6;1]
model.out=[1;1]
model.ipar=[num_of_blk,mblif_num];
model.rpar=[vmm6x2_wp12,vmm6x2_wn12,vmm6x2_fgtia,vmm6x2_fgpntia,vmm6x2_otatia,vmm6x2_offset,fix_loc'];
model.blocktype='d';
model.dep_ut=[%f %t]; //[block input has direct feedthrough to output w/o ODE block always active]
exprs=[sci2exp(num_of_blk);sci2exp(mblif_num);sci2exp(vmm6x2_wp12);sci2exp(vmm6x2_wn12);sci2exp(vmm6x2_fgtia);sci2exp(vmm6x2_fgpntia);sci2exp(vmm6x2_otatia);sci2exp(vmm6x2_offset);sci2exp(fix_loc)];
gr_i=['text=[''vmm6x2''];';'xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'');']
x=standard_define([5 3],model, exprs,gr_i) //Numbers define the width and height of block
end
endfunction
|
9bcc9215a2f5cedfa28b138a801ede94710c4f06 | e8dbcf469ba8a31d6926ba791ebc5dcccd50282b | /Scripts/DML/Consultas/Test/consulta_por_segundo_apellido.tst | 34a7857f67af6ab35892582c4084ca25ae76b274 | [] | no_license | bryanjimenezchacon/bryanjimenezchacon.github.io | 5f2a0f1dbfbc584a65dece48f98b1c13d755512f | 7062d1860934808265c05491007c83f69da1112a | refs/heads/master | 2021-01-23T17:20:11.542585 | 2015-10-10T05:52:52 | 2015-10-10T05:52:52 | 41,244,377 | 2 | 0 | null | 2015-08-26T15:46:04 | 2015-08-23T09:52:06 | JavaScript | UTF-8 | Scilab | false | false | 263 | tst | consulta_por_segundo_apellido.tst | PL/SQL Developer Test script 3.0
5
begin
-- Call the procedure
personas_por_segundo_apellido(psegundo_apellido => :psegundo_apellido,
p_recordset => :p_recordset);
end;
2
psegundo_apellido
1
Marx
5
p_recordset
1
<Cursor>
116
0
|
1112b3c5af250bc1763fe006b97b278d0857b527 | 72bdc6d649588b61192529e7d1420ddc18d1a67a | /tema4/4_optimizacion.sce | 1339a9f50eec61e219fe6f44acc968758e7da2ba | [] | 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 | 179 | sce | 4_optimizacion.sce | function y=banana(x)
y = 100*(x(2)-x(1)^2)^2 + (1-x(1))^2;
endfunction
opt = optimset ( "TolX" , 1.e-2 );
[x , fval , exitflag , output] = fminsearch ( banana , [-1.2 1] , opt ) |
739c7d5af2a402faf96eb83f249a78a9529ec72d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1580/CH9/EX9.1/Ch09Ex1.sce | a00ac60891835ccff90c59cfeea33b3111eec6f8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 568 | sce | Ch09Ex1.sce | // Scilab Code Ex9.1: Page-9.24 ; (2004)
clc;clear;
ni = 2.37e+19; // Carrier concentration at room temperature
mu_e = 0.38; // mobility of electron; m^2V^-1s^-1
e = 1.6e-19; // electronic charge, C
mu_h = 0.18; // mobility of holes; m^2V^-1s^-1
sigma = ni*e*(mu_e+mu_h); // conductivity, mho.m^-1
rho = 1/sigma; // Resistivity in Ge, ohm.m
printf("\nConductivity in Ge = %4.2f mho.per m", sigma);
printf("\nResistivity in Ge = %5.3f ohm.m", rho);
//Results
// Conductivity in Ge = 2.12 mho.per m
// Resistivity in Ge = 0.471 ohm.m
|
d31281aee789a5743e814e214adba03ec42effda | 449d555969bfd7befe906877abab098c6e63a0e8 | /50/CH6/EX6.3/ex_6_3.sce | ea77769e4191de0e3827e64ce4986748549de426 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 346 | sce | ex_6_3.sce | // example 6.3
// solution to the given IVP
disp('du/dt= A*u');
// u=[u1 u2]';
A=[-3 4 ;-2 3]; // given
B=[1 0;0 1]; // identity matrix;
[x,lam] = geigenvectors(A,B);
// hence;
disp('u=c1*%e^t*x(:,1)+c2*%e^-t*x(:,2)');
disp('u1=c1*%e^t+c2*%e^-t*2')
disp('u2=c1*%e^t+c2*%e^-t') |
8936a105bcebca47272387c54659d941cfd8fcd0 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/ATWM1_Working_Memory_MEG_JC99WDZ_Session1/ATWM1_Working_Memory_MEG_Salient_Cued_Run1.sce | f0ba4b0d2cc8b7ba4ced05c80622777034ca2d5a | [] | no_license | atwm1/Presentation | 65c674180f731f050aad33beefffb9ba0caa6688 | 9732a004ca091b184b670c56c55f538ff6600c08 | refs/heads/master | 2020-04-15T14:04:41.900640 | 2020-02-14T16:10:11 | 2020-02-14T16:10:11 | 56,771,016 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 49,381 | sce | ATWM1_Working_Memory_MEG_Salient_Cued_Run1.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_run1";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monitor_sounds = false;
active_buttons = 2;
response_matching = simple_matching;
button_codes = 10, 20;
default_font_size = 36;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 382; width = 382; color = 0, 0, 0;} frame1;
box { height = 369; width = 369; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 369; width = 369; color = 42, 42, 42;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# Start of experiment (MEG only) - sync with CTF software
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
} expStart;
time = 0;
duration = 1000;
code = "ExpStart";
port_code = 80;
};
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 10000;
#mri_pulse = 1;
code = "BaselinePre";
port_code = 91;
};
TEMPLATE "ATWM1_Working_Memory_MEG.tem" {
trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
41 62 292 292 399 125 1842 2992 2242 fixation_cross gabor_144 gabor_055 gabor_030 gabor_091 gabor_144 gabor_055_alt gabor_030_alt gabor_091 "1_1_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2250_gabor_patch_orientation_144_055_030_091_target_position_2_3_retrieval_position_2" gabor_circ gabor_055_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_1_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_055_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 2592 fixation_cross gabor_054 gabor_166 gabor_015 gabor_126 gabor_054 gabor_166 gabor_015_alt gabor_126_alt "1_2_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2600_gabor_patch_orientation_054_166_015_126_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_081_framed blank blank blank blank fixation_cross_target_position_3_4 "1_2_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_081_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1992 2992 1892 fixation_cross gabor_034 gabor_109 gabor_004 gabor_172 gabor_034 gabor_109_alt gabor_004_alt gabor_172 "1_3_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_034_109_004_172_target_position_2_3_retrieval_position_2" gabor_circ gabor_156_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_3_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_156_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1892 2992 2492 fixation_cross gabor_029 gabor_084 gabor_136 gabor_064 gabor_029_alt gabor_084 gabor_136_alt gabor_064 "1_4_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2500_gabor_patch_orientation_029_084_136_064_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_136_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_4_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_136_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1942 2992 2142 fixation_cross gabor_038 gabor_072 gabor_116 gabor_003 gabor_038_alt gabor_072_alt gabor_116 gabor_003 "1_5_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2150_gabor_patch_orientation_038_072_116_003_target_position_1_2_retrieval_position_1" gabor_178_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_5_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_178_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1842 2992 2192 fixation_cross gabor_031 gabor_005 gabor_121 gabor_076 gabor_031_alt gabor_005 gabor_121 gabor_076_alt "1_6_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_300_300_399_1850_3000_2200_gabor_patch_orientation_031_005_121_076_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_121_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_6_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_121_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2142 2992 2542 fixation_cross gabor_175 gabor_147 gabor_089 gabor_125 gabor_175_alt gabor_147_alt gabor_089 gabor_125 "1_7_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2550_gabor_patch_orientation_175_147_089_125_target_position_1_2_retrieval_position_1" gabor_175_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_7_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_175_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 1992 fixation_cross gabor_155 gabor_002 gabor_176 gabor_119 gabor_155 gabor_002_alt gabor_176_alt gabor_119 "1_8_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_155_002_176_119_target_position_2_3_retrieval_position_2" gabor_circ gabor_139_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_8_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_139_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 2142 2992 2242 fixation_cross gabor_054 gabor_117 gabor_089 gabor_161 gabor_054_alt gabor_117 gabor_089 gabor_161_alt "1_9_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_300_300_399_2150_3000_2250_gabor_patch_orientation_054_117_089_161_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_089_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_9_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_089_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1742 2992 2242 fixation_cross gabor_063 gabor_177 gabor_147 gabor_124 gabor_063_alt gabor_177 gabor_147_alt gabor_124 "1_10_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2250_gabor_patch_orientation_063_177_147_124_target_position_1_3_retrieval_position_1" gabor_063_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_10_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_063_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1892 2992 2492 fixation_cross gabor_091 gabor_005 gabor_128 gabor_021 gabor_091_alt gabor_005_alt gabor_128 gabor_021 "1_11_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2500_gabor_patch_orientation_091_005_128_021_target_position_1_2_retrieval_position_2" gabor_circ gabor_005_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_11_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 2492 fixation_cross gabor_131 gabor_093 gabor_024 gabor_157 gabor_131 gabor_093 gabor_024_alt gabor_157_alt "1_12_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2500_gabor_patch_orientation_131_093_024_157_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_024_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_12_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_024_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2192 2992 2042 fixation_cross gabor_036 gabor_002 gabor_144 gabor_056 gabor_036_alt gabor_002_alt gabor_144 gabor_056 "1_13_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2050_gabor_patch_orientation_036_002_144_056_target_position_1_2_retrieval_position_1" gabor_086_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_13_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_086_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 1942 fixation_cross gabor_161 gabor_037 gabor_009 gabor_126 gabor_161_alt gabor_037_alt gabor_009 gabor_126 "1_14_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_1950_gabor_patch_orientation_161_037_009_126_target_position_1_2_retrieval_position_2" gabor_circ gabor_087_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_14_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_087_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2042 2992 2442 fixation_cross gabor_132 gabor_060 gabor_177 gabor_111 gabor_132 gabor_060_alt gabor_177_alt gabor_111 "1_15_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2450_gabor_patch_orientation_132_060_177_111_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_177_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_15_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_177_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1842 2992 1992 fixation_cross gabor_058 gabor_033 gabor_090 gabor_145 gabor_058_alt gabor_033 gabor_090 gabor_145_alt "1_16_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_300_300_399_1850_3000_2000_gabor_patch_orientation_058_033_090_145_target_position_1_4_retrieval_position_2" gabor_circ gabor_170_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_16_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_170_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2042 2992 1942 fixation_cross gabor_100 gabor_130 gabor_165 gabor_076 gabor_100_alt gabor_130 gabor_165_alt gabor_076 "1_17_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_1950_gabor_patch_orientation_100_130_165_076_target_position_1_3_retrieval_position_1" gabor_100_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_17_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_100_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1942 2992 2342 fixation_cross gabor_068 gabor_174 gabor_134 gabor_110 gabor_068 gabor_174 gabor_134_alt gabor_110_alt "1_18_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2350_gabor_patch_orientation_068_174_134_110_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_156_framed blank blank blank blank fixation_cross_target_position_3_4 "1_18_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_156_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 2342 fixation_cross gabor_080 gabor_030 gabor_096 gabor_053 gabor_080 gabor_030 gabor_096_alt gabor_053_alt "1_19_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2350_gabor_patch_orientation_080_030_096_053_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_007_framed blank blank blank blank fixation_cross_target_position_3_4 "1_19_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_007_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2092 2992 1942 fixation_cross gabor_037 gabor_058 gabor_115 gabor_090 gabor_037 gabor_058_alt gabor_115 gabor_090_alt "1_20_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_1950_gabor_patch_orientation_037_058_115_090_target_position_2_4_retrieval_position_2" gabor_circ gabor_058_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_20_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_058_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2242 2992 1892 fixation_cross gabor_088 gabor_059 gabor_124 gabor_144 gabor_088_alt gabor_059 gabor_124_alt gabor_144 "1_21_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_1900_gabor_patch_orientation_088_059_124_144_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_124_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_21_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_124_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1892 2992 2442 fixation_cross gabor_076 gabor_031 gabor_157 gabor_048 gabor_076_alt gabor_031 gabor_157 gabor_048_alt "1_22_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_300_300_399_1900_3000_2450_gabor_patch_orientation_076_031_157_048_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_157_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_22_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_157_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1742 2992 2092 fixation_cross gabor_019 gabor_109 gabor_040 gabor_152 gabor_019_alt gabor_109 gabor_040_alt gabor_152 "1_23_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2100_gabor_patch_orientation_019_109_040_152_target_position_1_3_retrieval_position_1" gabor_019_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_23_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_019_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 2242 2992 2592 fixation_cross gabor_003 gabor_077 gabor_127 gabor_093 gabor_003 gabor_077_alt gabor_127_alt gabor_093 "1_24_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_300_300_399_2250_3000_2600_gabor_patch_orientation_003_077_127_093_target_position_2_3_retrieval_position_1" gabor_003_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_24_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_003_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2142 fixation_cross gabor_034 gabor_162 gabor_052 gabor_108 gabor_034 gabor_162 gabor_052_alt gabor_108_alt "1_25_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2150_gabor_patch_orientation_034_162_052_108_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_052_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_25_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_052_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1892 2992 2042 fixation_cross gabor_070 gabor_149 gabor_097 gabor_125 gabor_070 gabor_149_alt gabor_097 gabor_125_alt "1_26_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2050_gabor_patch_orientation_070_149_097_125_target_position_2_4_retrieval_position_2" gabor_circ gabor_149_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_26_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_149_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1942 2992 1992 fixation_cross gabor_152 gabor_004 gabor_062 gabor_126 gabor_152_alt gabor_004 gabor_062_alt gabor_126 "1_27_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2000_gabor_patch_orientation_152_004_062_126_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_110_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_27_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_110_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2192 2992 2092 fixation_cross gabor_169 gabor_111 gabor_051 gabor_093 gabor_169 gabor_111_alt gabor_051_alt gabor_093 "1_28_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2100_gabor_patch_orientation_169_111_051_093_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_003_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_28_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_003_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1842 2992 2242 fixation_cross gabor_040 gabor_145 gabor_078 gabor_168 gabor_040 gabor_145 gabor_078_alt gabor_168_alt "1_29_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2250_gabor_patch_orientation_040_145_078_168_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_126_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_29_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_126_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 1892 fixation_cross gabor_038 gabor_176 gabor_110 gabor_065 gabor_038_alt gabor_176_alt gabor_110 gabor_065 "1_30_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_1900_gabor_patch_orientation_038_176_110_065_target_position_1_2_retrieval_position_2" gabor_circ gabor_176_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_30_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_176_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1942 2992 2492 fixation_cross gabor_179 gabor_013 gabor_053 gabor_128 gabor_179_alt gabor_013 gabor_053_alt gabor_128 "1_31_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2500_gabor_patch_orientation_179_013_053_128_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_053_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_31_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_053_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2042 2992 2342 fixation_cross gabor_103 gabor_148 gabor_125 gabor_041 gabor_103_alt gabor_148 gabor_125 gabor_041_alt "1_32_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2350_gabor_patch_orientation_103_148_125_041_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_179_framed blank blank blank blank fixation_cross_target_position_1_4 "1_32_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_179_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 2092 2992 1992 fixation_cross gabor_008 gabor_113 gabor_037 gabor_098 gabor_008 gabor_113_alt gabor_037_alt gabor_098 "1_33_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_300_300_399_2100_3000_2000_gabor_patch_orientation_008_113_037_098_target_position_2_3_retrieval_position_1" gabor_145_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_33_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_145_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 2242 fixation_cross gabor_017 gabor_175 gabor_130 gabor_056 gabor_017_alt gabor_175 gabor_130_alt gabor_056 "1_34_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2250_gabor_patch_orientation_017_175_130_056_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_085_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_34_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_085_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1892 2992 1892 fixation_cross gabor_037 gabor_120 gabor_168 gabor_153 gabor_037_alt gabor_120 gabor_168 gabor_153_alt "1_35_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_1900_gabor_patch_orientation_037_120_168_153_target_position_1_4_retrieval_position_1" gabor_085_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_35_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_085_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 1792 2992 2342 fixation_cross gabor_032 gabor_086 gabor_137 gabor_061 gabor_032_alt gabor_086_alt gabor_137 gabor_061 "1_36_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_300_300_399_1800_3000_2350_gabor_patch_orientation_032_086_137_061_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_061_framed blank blank blank blank fixation_cross_target_position_1_2 "1_36_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_061_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1992 2992 2292 fixation_cross gabor_084 gabor_173 gabor_036 gabor_015 gabor_084 gabor_173 gabor_036_alt gabor_015_alt "1_37_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2300_gabor_patch_orientation_084_173_036_015_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_015_framed blank blank blank blank fixation_cross_target_position_3_4 "1_37_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2042 2992 2542 fixation_cross gabor_174 gabor_149 gabor_107 gabor_043 gabor_174_alt gabor_149 gabor_107 gabor_043_alt "1_38_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2550_gabor_patch_orientation_174_149_107_043_target_position_1_4_retrieval_position_1" gabor_174_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_38_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_174_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1842 2992 2442 fixation_cross gabor_034 gabor_178 gabor_069 gabor_140 gabor_034 gabor_178_alt gabor_069_alt gabor_140 "1_39_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2450_gabor_patch_orientation_034_178_069_140_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_069_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_39_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_069_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2042 2992 1892 fixation_cross gabor_010 gabor_179 gabor_072 gabor_039 gabor_010 gabor_179 gabor_072_alt gabor_039_alt "1_40_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_1900_gabor_patch_orientation_010_179_072_039_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_089_framed blank blank blank blank fixation_cross_target_position_3_4 "1_40_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_089_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2092 2992 2292 fixation_cross gabor_051 gabor_073 gabor_025 gabor_094 gabor_051_alt gabor_073_alt gabor_025 gabor_094 "1_41_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2300_gabor_patch_orientation_051_073_025_094_target_position_1_2_retrieval_position_1" gabor_051_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_41_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_051_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 2142 2992 2342 fixation_cross gabor_111 gabor_006 gabor_081 gabor_026 gabor_111 gabor_006_alt gabor_081 gabor_026_alt "1_42_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_300_300_399_2150_3000_2350_gabor_patch_orientation_111_006_081_026_target_position_2_4_retrieval_position_1" gabor_111_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_42_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_111_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 2192 fixation_cross gabor_111 gabor_023 gabor_165 gabor_086 gabor_111 gabor_023_alt gabor_165 gabor_086_alt "1_43_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_111_023_165_086_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_133_framed blank blank blank blank fixation_cross_target_position_2_4 "1_43_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_133_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1992 2992 2092 fixation_cross gabor_014 gabor_150 gabor_127 gabor_085 gabor_014 gabor_150_alt gabor_127_alt gabor_085 "1_44_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2100_gabor_patch_orientation_014_150_127_085_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_127_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_44_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_127_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2242 2992 2192 fixation_cross gabor_134 gabor_020 gabor_102 gabor_084 gabor_134 gabor_020_alt gabor_102 gabor_084_alt "1_45_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2200_gabor_patch_orientation_134_020_102_084_target_position_2_4_retrieval_position_2" gabor_circ gabor_020_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_45_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_020_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1992 2992 2042 fixation_cross gabor_061 gabor_090 gabor_007 gabor_034 gabor_061 gabor_090_alt gabor_007 gabor_034_alt "1_46_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2050_gabor_patch_orientation_061_090_007_034_target_position_2_4_retrieval_position_2" gabor_circ gabor_090_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_46_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 2142 2992 2592 fixation_cross gabor_160 gabor_128 gabor_091 gabor_053 gabor_160 gabor_128_alt gabor_091_alt gabor_053 "1_47_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_300_300_399_2150_3000_2600_gabor_patch_orientation_160_128_091_053_target_position_2_3_retrieval_position_1" gabor_112_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_47_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_112_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 2592 fixation_cross gabor_041 gabor_150 gabor_001 gabor_123 gabor_041_alt gabor_150_alt gabor_001 gabor_123 "1_48_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2600_gabor_patch_orientation_041_150_001_123_target_position_1_2_retrieval_position_1" gabor_180_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_48_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_180_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2092 2992 1942 fixation_cross gabor_027 gabor_070 gabor_042 gabor_178 gabor_027_alt gabor_070 gabor_042_alt gabor_178 "1_49_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_1950_gabor_patch_orientation_027_070_042_178_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_091_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_49_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_091_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1892 2992 2392 fixation_cross gabor_164 gabor_124 gabor_141 gabor_105 gabor_164_alt gabor_124 gabor_141 gabor_105_alt "1_50_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2400_gabor_patch_orientation_164_124_141_105_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_058_framed blank blank blank blank fixation_cross_target_position_1_4 "1_50_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_058_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 2392 fixation_cross gabor_038 gabor_167 gabor_128 gabor_103 gabor_038_alt gabor_167 gabor_128_alt gabor_103 "1_51_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2400_gabor_patch_orientation_038_167_128_103_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_079_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_51_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_079_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 64 292 292 399 125 2192 2992 2292 fixation_cross gabor_054 gabor_079 gabor_110 gabor_140 gabor_054 gabor_079_alt gabor_110 gabor_140_alt "1_52_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2300_gabor_patch_orientation_054_079_110_140_target_position_2_4_retrieval_position_1" gabor_054_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_52_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_054_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2242 2992 2542 fixation_cross gabor_038 gabor_103 gabor_075 gabor_013 gabor_038 gabor_103 gabor_075_alt gabor_013_alt "1_53_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2550_gabor_patch_orientation_038_103_075_013_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_150_framed blank blank blank blank fixation_cross_target_position_3_4 "1_53_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_150_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2042 2992 2292 fixation_cross gabor_081 gabor_049 gabor_155 gabor_100 gabor_081 gabor_049 gabor_155_alt gabor_100_alt "1_54_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2300_gabor_patch_orientation_081_049_155_100_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_155_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_54_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_155_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1842 2992 2092 fixation_cross gabor_124 gabor_011 gabor_166 gabor_077 gabor_124 gabor_011_alt gabor_166 gabor_077_alt "1_55_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2100_gabor_patch_orientation_124_011_166_077_target_position_2_4_retrieval_position_2" gabor_circ gabor_011_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_55_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1742 2992 2292 fixation_cross gabor_178 gabor_005 gabor_032 gabor_072 gabor_178 gabor_005 gabor_032_alt gabor_072_alt "1_56_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_300_300_399_1750_3000_2300_gabor_patch_orientation_178_005_032_072_target_position_3_4_retrieval_position_2" gabor_circ gabor_053_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_56_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_053_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2142 2992 2392 fixation_cross gabor_115 gabor_132 gabor_027 gabor_008 gabor_115 gabor_132 gabor_027_alt gabor_008_alt "1_57_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2400_gabor_patch_orientation_115_132_027_008_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_056_framed blank blank blank blank fixation_cross_target_position_3_4 "1_57_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_056_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 2092 2992 2142 fixation_cross gabor_096 gabor_037 gabor_022 gabor_066 gabor_096 gabor_037_alt gabor_022 gabor_066_alt "1_58_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2150_gabor_patch_orientation_096_037_022_066_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_112_framed blank blank blank blank fixation_cross_target_position_2_4 "1_58_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2092 2992 2142 fixation_cross gabor_029 gabor_080 gabor_060 gabor_105 gabor_029 gabor_080 gabor_060_alt gabor_105_alt "1_59_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2150_gabor_patch_orientation_029_080_060_105_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_105_framed blank blank blank blank fixation_cross_target_position_3_4 "1_59_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_105_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 2142 fixation_cross gabor_090 gabor_136 gabor_121 gabor_151 gabor_090 gabor_136_alt gabor_121 gabor_151_alt "1_60_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2150_gabor_patch_orientation_090_136_121_151_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_013_framed blank blank blank blank fixation_cross_target_position_2_4 "1_60_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_013_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1742 2992 2042 fixation_cross gabor_163 gabor_178 gabor_005 gabor_112 gabor_163_alt gabor_178_alt gabor_005 gabor_112 "1_61_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2050_gabor_patch_orientation_163_178_005_112_target_position_1_2_retrieval_position_1" gabor_025_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_61_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_025_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1842 2992 2392 fixation_cross gabor_080 gabor_028 gabor_043 gabor_115 gabor_080_alt gabor_028_alt gabor_043 gabor_115 "1_62_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_300_300_399_1850_3000_2400_gabor_patch_orientation_080_028_043_115_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_161_framed blank blank blank blank fixation_cross_target_position_1_2 "1_62_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_161_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1892 2992 2042 fixation_cross gabor_173 gabor_142 gabor_087 gabor_102 gabor_173 gabor_142_alt gabor_087 gabor_102_alt "1_63_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2050_gabor_patch_orientation_173_142_087_102_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_102_framed blank blank blank blank fixation_cross_target_position_2_4 "1_63_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_102_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1792 2992 2542 fixation_cross gabor_004 gabor_112 gabor_091 gabor_128 gabor_004_alt gabor_112 gabor_091_alt gabor_128 "1_64_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2550_gabor_patch_orientation_004_112_091_128_target_position_1_3_retrieval_position_1" gabor_053_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_64_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_053_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 2192 2992 1942 fixation_cross gabor_173 gabor_108 gabor_152 gabor_091 gabor_173 gabor_108_alt gabor_152 gabor_091_alt "1_65_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_1950_gabor_patch_orientation_173_108_152_091_target_position_2_4_retrieval_position_2" gabor_circ gabor_108_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_65_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_108_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1992 2992 1992 fixation_cross gabor_010 gabor_157 gabor_118 gabor_035 gabor_010_alt gabor_157 gabor_118 gabor_035_alt "1_66_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2000_gabor_patch_orientation_010_157_118_035_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_084_framed blank blank blank blank fixation_cross_target_position_1_4 "1_66_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_084_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 1792 2992 2442 fixation_cross gabor_158 gabor_098 gabor_046 gabor_132 gabor_158_alt gabor_098 gabor_046_alt gabor_132 "1_67_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_300_300_399_1800_3000_2450_gabor_patch_orientation_158_098_046_132_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_178_framed blank blank blank blank fixation_cross_target_position_1_3 "1_67_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_178_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 62 292 292 399 125 1992 2992 2192 fixation_cross gabor_158 gabor_094 gabor_029 gabor_180 gabor_158_alt gabor_094 gabor_029_alt gabor_180 "1_68_Encoding_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2200_gabor_patch_orientation_158_094_029_180_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_029_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_68_Retrieval_Working_Memory_MEG_P5_RL_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_029_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 63 292 292 399 125 2142 2992 2192 fixation_cross gabor_050 gabor_035 gabor_091 gabor_005 gabor_050_alt gabor_035 gabor_091 gabor_005_alt "1_69_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_300_300_399_2150_3000_2200_gabor_patch_orientation_050_035_091_005_target_position_1_4_retrieval_position_2" gabor_circ gabor_173_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_69_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_173_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
41 61 292 292 399 125 1942 2992 2092 fixation_cross gabor_070 gabor_107 gabor_023 gabor_087 gabor_070_alt gabor_107 gabor_023_alt gabor_087 "1_70_Encoding_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2100_gabor_patch_orientation_070_107_023_087_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_159_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_70_Retrieval_Working_Memory_MEG_P5_RL_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_159_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 5000;
code = "BaselinePost";
port_code = 92;
}; |
f25d2749a4f2a7f5cae48ac9867e831032780132 | 449d555969bfd7befe906877abab098c6e63a0e8 | /405/CH6/EX6.2/6_2.sce | 56aa3a486fc9101f8904c9e83b2ecb94d6c34472 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,196 | sce | 6_2.sce | clear;
clc;
printf("\t\t\tExample Number 6.2\n\n\n");
// heating of water in laminar tube flow
// illustration6.2
// solution
Tw = 60;// [degree celsius] temperature of water
d = 0.0254;// [m] diameter of tube
R = 287;// [] gas constant
u = 0.02;// [m/s] velocity of water
Tw = 80;// [degree celsius] temperature of wall
L = 3;// [m] length of the tube
// we first calculate the reynolds number at the inlet bulk temperature to determine the flow regime
// the properties of water at temperature of 333.15 K are
rho = 985;// [kg/cubic meter] density of gas
mu = 4.71*10^(-4);// [kg/m s] viscosity
k = 0.651;// [W/m degree celsius]
Cp = 4.18*10^3;// [J/kg K]
Pr = 3.02;// prandtl no.
Re_d = rho*u*d/mu;// reynolds number
disp(Re_d, "reynolds number is" );
disp("so that the flow is laminar");
// so the flow is laminar, calculating the additional parameter, we have
B = Re_d*Pr*d/L ;
// since the value of B is greater than 10, so equation(6-10) is applicable.
// firstly making the calculation on the basis of 60 degree celsius, determine the exit bulk temperature
// the energy balance becomes q = h*pi*d*L(Tw-(Tb1+Tb2)/2) = m_dot*Cp*(Tb2-Tb1) say equation a
// at the wall temperature of 80 degree celsius
mu_w = 3.55*10^(-4);// [kg/m s]
// from equation (6-10)
Nu_d = 1.86*(B)^(1/3)*(mu/mu_w)^(0.14);
h = k*Nu_d/d;
// the mass flow rate is
m_dot = rho*%pi*d^(2)*u/4;// [kg/s]
// inserting the values in equation a
Tb1 = 60;// [degree celsius]
deff('[y] = f(Tb2)','y = (h*%pi*d*L*(Tw-(Tb1+Tb2)/2)-m_dot*Cp*(Tb2-Tb1))')
Tb2 = fsolve(1,f);
Tb_mean = (Tb1+Tb2)/2;// [degree celsius]
// we obtain the properties at Tb_mean
rho1 = 982;// [kg/m^(3)] density of gas
mu1 = 4.36*10^(-4);// [kg/m s] viscosity
k1 = 0.656;// [W/m degree celsius]
Cp1 = 4.185*10^3;// [J/kg K]
Pr1 = 2.78;// prandtl no.
Re_d1 = Re_d*mu/mu1;
C = Re_d1*Pr1*d/L ;
Nu_d1 = 1.86*(C)^(1/3)*(mu1/mu_w)^(0.14);
h = k1*Nu_d1/d;
// we insert this value of h back into equation a to get
deff('[y] = f(Tb2)','y = (h*%pi*d*L*(Tw-(Tb1+Tb2)/2)-m_dot*Cp*(Tb2-Tb1))')
Tb2 = fsolve(1,f);
printf("\n the exit water temperature is %f degree celsius",Tb2);
|
7a929548f81778f5dcb98117d622af07b55c2bf9 | 333d6160f9a6d9e23a6bea06cd03e5e8fa8785a9 | /RobotLab2/SciLab/LoadData.sce | 0284e44c6bb61f5e2aeea71ab41183913562ad62 | [
"MIT"
] | permissive | DmitryIo/ROBOTS | 6f6bb12a8e08dd28024136ee1a8a84ea7254da60 | 777f0884a098c4f21d044985c25a8be276334116 | refs/heads/master | 2023-04-30T12:52:54.082977 | 2021-05-17T19:55:34 | 2021-05-17T19:55:34 | 294,091,170 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 182 | sce | LoadData.sce | fwData = read(get_absolute_file_path("LoadData.sce") + "..\Data\FwElectrical.txt", 10, 2);
rvData = read(get_absolute_file_path("LoadData.sce") + "..\Data\RvElectrical.txt", 10, 2);
|
d0e5c3d5bb58dfa264d2e6583d3d93d6a7b8d005 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1332/CH5/EX5.36/5_36.sce | 0b5f55921e5ba9fe199510bc54afaae56acdf0b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 642 | sce | 5_36.sce | //Example 5.36
//Secant Method
//Page no. 204
clc;clear;close;
a=8670;c=10^-8;t2=1.4*10^-4;
deff('x=f(x)','x=-t2+log((1-2*x/a)/(2-x/a))*(a*x*c)/(a+x)')
printf('n\txn\t\tf(xn)\t\tXn+1\t\tf(Xn+1)\t\tXn+2\t\tError\n')
printf('----------------------------------------------------------------------------------------------------------\n')
x0=20000;x1=25000;e=0.00001
for i=1:8
x2=x1-f(x1)*(x1-x0)/(f(x1)-f(x0))
e1=abs(x0-x2)
printf(' %i\t%f\t%.10f\t%f\t%.10f\t%f\t%.10f\n',i-1,x0,f(x0),x1,f(x1),x2,e1)
x0=x1;
x1=x2
if abs(x0)<e then
break;
end
end
printf('\n\nTherefore, Rb = %.10f ohm',x2) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.