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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa723b4c450fd98eeccb78a58c1968c01c38b84f | 717ddeb7e700373742c617a95e25a2376565112c | /339/CH10/EX10.2/ex10_2.sce | 97543916eea0f0f5ba75aca5031f58beb68c90ad | [] | 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 | 657 | sce | ex10_2.sce | stacksize("max");
//define crystal parameters
Lq=0.1;
Rq=25;
Cq=0.3*10^-12;
C0=1*10^-12;
//find series resonance frequency
ws0=1/sqrt(Lq*Cq);
disp(ws0);
ws=ws0*(1+Rq^2/2*C0/Lq);
fs=ws/2/%pi
//find parallel resonance frequency
wp0=sqrt((Cq+C0)/(Lq*Cq*C0));
wp=wp0*(1-Rq^2/2*C0/Lq);
fp=wp/2/%pi
//define frequency range for this plot
f=(0.9:0.00001:1.1)*1e6;
w=2*%pi*f;
//find abmittance of the resonator
Y=%i.*w*C0+1./(Rq+%i*(w*Lq-1./(w*Cq)));
plot(f/1e6,abs(imag(Y)));
mtlb_axis([0.9 1.1 1e-10 1e-1]);
title('Admittance of the quartz crystal resonator');
xlabel('Frequency {\itf}, MHz');
ylabel('Susceptance |B|, \Omega'); |
cdfcf37a4bcf49f8554a4f1c83e455210554e8b6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH8/EX8.22/8_22.sce | 8b1b44d260357ab3bd87f8f6f03f88b8731f652f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,201 | sce | 8_22.sce | //pathname=get_absolute_file_path('8.22.sce')
//filename=pathname+filesep()+'8.22-data.sci'
//exec(filename)
//Total power required(in kW):
P=4500
//Heat load(in kW):
Q=15000
//Efficiency of turbines:
n=0.80
//Steam consumption rate(in kg/s):
m=10
//From steam tables:
h1=3137 //kJ/kg
s1=6.9563 //kJ/kg.K
T2=179.18 //C
h2=2813.41 //kJ/kg
hf=640.23 //kJ/kg
//For case 1:
T2a=213.34 //C
s2a=7.125 //kJ/kg.K
s3=s2a
x3=0.853
h3=2221.11 //kJ/kg
//For case 2:
h2a=2878.13 //kJ/kg
h3aa=h2a
T3aa=210.04 //C
s3aa=7.138 //kJ/kg.K
s4=s3aa
x4=0.855
h4=2225.92 //kJ/kg
//Enthalpy at state 2'(in kJ/kg):
h2a=h1-(h1-h2)*n
//Heat available for process heating(in kJ/kg):
q=h2a-hf
//Mass flow rate(in kg/s):
msh=Q/q
//Enthalpy at state 3'(in kJ/kg):
h3a=h2-(h2a-h3)*n
//Mass of steam produced:
mshp=(P+msh*(h2a-h3a))/((h1-h2a)+(h2a-h3a))
//For case 2:
mshpn=10
mshn=6.7
//Power produced by HP turbine(in kW):
Pn=mshpn*(h1-h2a)
M3aa=mshpn-mshn
//Enthalpy at state 4'(in kJ/kg):
h4a=h3aa-(h3aa-h4)*n
//Power produced by LP turbine(in kW):
Pn1=M3aa*(h3aa-h4a)
//Total power produced(in kW):
Pt=Pn+Pn1
printf("\n RESULT \n")
printf("\nTotal power produced = %f kW",Pt) |
ce1bdbae0cebad18094d9f0b404c2e8a49ce36dc | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH4/EX4.8.1/Ex4_8.sce | 9bdb825ae832c1fb367003e7979da6b47342c4a2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 481 | sce | Ex4_8.sce | clc
clear
//Conditions at 8 bar
P=8; //in bars
x=0.8; //Dryness Fraction
Hf=721.1; //in kJ/kg
Hfg=2048.0; //in kJ/kg
H1=Hf+(x*Hfg);
H2=H1+410; //After adding 410 kJ of heat
Hg=2769.1; //in kJ/kg
printf('The Enthalpy of steam: %3.1f kJ/kg',H2);
printf('\n');
printf('The steam is superheated')
printf('\n');
V2=0.240; //in m^3/kg
Vg=V2;
Den=1/Vg;
printf('The Density of steam: %3.3f kg/m^3',Den);
printf('\n');
|
8efdf8e41e09a8e79216d8a620d042a99807e4fc | 449d555969bfd7befe906877abab098c6e63a0e8 | /2330/CH2/EX2.4/ex2_4.sce | 12d07873b7ee897b79c9cd5626a4d2312ce6ac8c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 414 | sce | ex2_4.sce | // Example 2.4
format('v',6)
clc;
clear;
close;
// given data
Vin= 15;// in V
V_P= Vin;// in V
R_L= 10;// in kΩ
R_L= R_L*10^3;// in Ω
Vout=0;
// The peak current through the diode
I_P= V_P/R_L;// in A
// The maximum reverse voltage
V_R= Vin-Vout;// in V
I_P= I_P*10^3;// in mA
disp(I_P,"The peak current through the diode in mA is : ");
disp(V_R,"The maximum reverse voltage in volts is : ")
|
e007e0dedbb978d843a10c96715680154d422870 | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH5/EX5.38/example5_38_TACC.sce | e3d26e8433f6ac5f0c2a6c91a7d6432a0bd18de6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 371 | sce | example5_38_TACC.sce | //example 5.38
clear;
clc;
disp("N2(g)+3H2(g)<=>2NH3(g)");
//Given:
T=298;//Temperature[K]
Gf1=-16450;//Gibb's free energy of formation for NH3(g)[J/mol]
R=8.314;//Universal gas constant[J/K/mol]
//To find the Kp value of the above reaction
Gf=2*Gf1//Gibb's free energy for the reaction[KJ]
x=Gf/R/T
Kp=exp(-x);
disp(Kp,'The Kp for above reaction is '); |
aa9549d0ca73379b8d6fe34296bc194d7b10ad1e | 9b046504c3b7683d3bfa294fe100408058e75aa3 | /Metodos/Clase2/EjemplosClase/ejemploMaclaurin.sce | 21fbf57435c7e6f010e2dda27735f901d484d0c2 | [] | no_license | DavidAlex99/Cursos | f15cb4f4fbb35a6eb62cbae0a9b51ea671f3ea8f | aee547ab09db7e535bea5a6d41ed6e455f8a9a89 | refs/heads/master | 2023-01-08T02:46:07.502656 | 2020-11-14T00:45:57 | 2020-11-14T00:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,125 | sce | ejemploMaclaurin.sce | clf()
x = 5
i = 0:1:100
[e] = (length(i))
exacltyValue = exp(5)
e(1)=1 // n = 0
[issue] = (length(i))
issue(1) = 100*(exacltyValue-e(1))/exacltyValue
for n = 1:1:100
e(n+1) = e(n) + 5^n/factorial(n)
issue(n+1) = 100*(exacltyValue-e(n+1))/exacltyValue
end
//subplot(numeroFilas, numeroColumnas, numeroGrafica)
subplot(1,2,1)
plot(i,e,'marker','.','color','red')
subplot(1,2,2)
plot(i,issue,'marker','.','color','blue')
//Asumiendo 8 cifras significativas Er = (0.5*10^-6)%
//Calculo del error conociendo el valor verdadero
Er = 0.5*10^(-6)
[bug] = (length(i))
bug(1) = 100*(exacltyValue-e(1))/exacltyValue
for n = 1:1:100
e(n+1) = e(n) + 5^n/factorial(n)
bug(n+1) = 100*(exacltyValue-e(n+1))/exacltyValue
if bug(n+1) < Er
break
end
end
//Aca nos dio 23 iteraciones (Conociendo el valor exacto)
//Supongamos que NO conocemos el valor exacto
[bugAprox] = (length(i))
bugAprox(1) = 100000 //Inicialmente supongo un error muy grande
for n = 1:1:100
e(n+1) = e(n) + 5^n/factorial(n)
bugAprox(n+1)= 100*(e(n+1)-e(n))/e(n+1)
if bugAprox(n+1) < Er
break
end
end
|
610f720cdf6ee665aa95e4b8a1e44563ee7f1879 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1241/CH2/EX2.14/exa2_14.sce | 0fe88110ff8f5d6ca62e26af67034107e07cdecc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 223 | sce | exa2_14.sce | //Example 2-14//
//binary to hexadecimal conversion//
x=bin2dec('1010111010')
//decimal equivalent of the binary number//
a=dec2hex(x)
//Hex equivalent of the decimal number//
disp(a)
//answer in hexadecimal form//
|
6a72835432b1a7d463bd823637dda23a7d924e19 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1523/CH3/EX3.31/3_31.sce | dc5a762dbc757bc74b1155ce097dca750cf878bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 551 | sce | 3_31.sce | //Network Theorem 1
//page no-3.39
//example3.31
//calculation of Vth (Thevenin's voltage)
a=0.25;
v=(10*a)+(8*a);
disp("Writing Vth equation,");
printf("\nVth = %.f V",v);
//calculation of Isc (short-circuit current)
disp("Applying KVL to mesh 1:");
disp("4*I1-2*I2 = 1");....//equation 1
disp("Applying KVL to mesh 2:");
disp("-18*I1-11*I2=0");....//equation 2
A=[4 -2;18 -11];
B=[1 0]'
X=inv(A)*B;
disp(X);
disp("I2 = 2.25 A");
a=2.25;
printf("\nIsc = I2 = %.2f A",a);
//Calculation of Rth
x=v/a;
printf("\nRth = %.f Ohm",x); |
5b0d2424b94cfef64fc9d2fe65a2cb0a7786496c | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set14/s_Materials_Science_R._S._Khurmi_And_R._S._Sedha_2153.zip/Materials_Science_R._S._Khurmi_And_R._S._Sedha_2153/CH3/EX3.33/ex_3_33.sce | 4ce0132b1d685a8ed5e77512a883a8a7f09d704b | [] | no_license | hohiroki/Scilab_TBC | cb11e171e47a6cf15dad6594726c14443b23d512 | 98e421ab71b2e8be0c70d67cca3ecb53eeef1df6 | refs/heads/master | 2021-01-18T02:07:29.200029 | 2016-04-29T07:01:39 | 2016-04-29T07:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sce | ex_3_33.sce | errcatch(-1,"stop");mode(2);//Example 3.33 : number of per order
;
;
//given data :
format('v',5)
theta=90;//in degree
lamda=1.54;// in angstrum
a=sind(theta)
d=1.181;
n=(2*d*a)/lamda;
disp(n,"number of order,n = ")
exit();
|
8fb57bdde3786e1640e5e825e431feac5953f3a1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1670/CH5/EX5.28/5_28.sce | b8fd337ad3f7590aa51cdb0b4223112ebea351e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 835 | sce | 5_28.sce | //Example 5.28
//Divided Difference Interpolation
//Page no. 167
clc;close;clear;
x=[-1,0,3,6,7]
y=[3,-6,39,822,1611];
y1=y;
deff('yi=P(a,b,d,e)','yi=(b(d+1)-b(d))/(a(d+e)-a(d))') //function for finding polynomials
for i=1:4
for j=1:5-i
z(j,i)=P(x,y,j,i)
y(j)=z(j,i)
end
end
z(6,1)=0;
printf('x\ty f(x0,x1) f(x0,x1,x3) f(x0,x1,x2,x3) f(x0,x1,x2,x3,x4)\n')
printf('---------------------------------------------------------------------------------\n')
for j=1:5
printf(' %i\t%i \t%i\t\t%i\t\t%i\t\t %i\n',x(1,j),y1(1,j),z(j,1),z(j,2),z(j,3),z(j,4))
end
x1=poly(0,'x')
fx=y1(1)+(x1-x(1))*z(1,1)+(x1-x(1))*(x1-x(2))*z(1,2)+(x1-x(1))*(x1-x(2))*(x1-x(3))*z(1,3)+(x1-x(1))*(x1-x(2))*(x1-x(3))*(x1-x(4))*z(1,4)
disp(fx,"The Required Equation = ") |
f9abfbd0bf6c1836fadda09a20718043c050f2b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2153/CH16/EX16.4/ex_16_4.sce | 56a67b842522b5ac6f54a8f4e688928a3ef3e5fb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sce | ex_16_4.sce | //Example 16.4 : number of electron carriers
clc;
clear;
close;
format('v',9)
//given data :
e=1.6*10^-19;
p=20*10^-2;// in ohm-m
mu_n=100*10^-4;// in m^2/V-sec
n=1/(e*mu_n*p);
disp(n,"number of electrons carrier,n(/m^3) = ")
|
6c71883817370602f0e62395c9c293fbb6320a7b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2471/CH8/EX8.5/Ex8_5.sce | 3e4f70609e16c1073ebd49196837ff73a9e2d581 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 409 | sce | Ex8_5.sce | clear ;
clc;
// Example 8.5
printf('Example 8.5\n\n');
printf('Page No. 232\n\n');
//given
P = 600*10^3;// Power demand of pump in W
T = 8;// Operating time in hour per day
red = 1.00/10^3;// off-peak reduction in Pound per 10^3 W month
M_save = P*red;// Monthly saving Pound per month
A_save = M_save*12;// Annual saving in Pound per year
printf('Annual saving is %.0f Pound per year',A_save)
|
32d7b08703d4d0fa312475070bfd554cc81d1a61 | 62e6605ab494919b6833bf1a1b158bcb6f9b79df | /etfeetest.sce | 3e0ce7b290754cf0ec257327c2b08e505a825021 | [] | no_license | mani1250/system-identification | c597c26d10bb5dd62b1b4db650b3945afc336e37 | 5db0536c792dfaa4a8f01561315263503ff34d3d | refs/heads/master | 2021-01-12T06:56:00.703593 | 2017-03-07T12:18:15 | 2017-03-07T12:18:15 | 76,865,655 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 174 | sce | etfeetest.sce | clear,clc
loadmatfile('frfdata.mat');
exec('etfee.sci',-1);
exec('idframe.sci',-1);
exec('idfrd.sci',-1);
data = idframe(frfdata(:,1),frfdata(:,2),1);
X = etfee(data)
|
d8ff503f02a93903a86f1def61801275822cf375 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1574/CH3/EX3.27/M_Ex_3_27.sce | d3215743928a24883994d3f929caa8e1a8279342 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 447 | sce | M_Ex_3_27.sce | clc
//Chapter3: Modulation
//Example3.27, page no 176
//Given
Q=100 //Q factor
fc=1000e3// Carrier freq
fsb1=999e3//lower Side band freq
fsb2=1001e3//Upper side Band freq
ma=0.5//Modulation depth of signal current
Ma=ma/1.019// Expression for Ma after simplification
mprintf('The Depth of modulation across the \n circuit is : Ma= %f%c',Ma*100,'%')
// Note : There are some calculation errors in the solution presented in the book
|
f2153be617e676228a07e22fb047482a4607e6b3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2345/CH2/EX2.7/Ex2_7.sce | e71b45ed59b46cfcdfc93bb304ddfb1fe23bb1e5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 287 | sce | Ex2_7.sce | //Finding resistance
//Example 2.7(pg. 24)
clc
clear
l=1000// length in meters
d=0.09/100// diameter in meters
p=1.724*(10^-8)// specific resistance in ohm meter
a=%pi*(d^2)/4// area in meter square
R=p*l/a//resistance in ohms
printf('The value of Resistance is %3.2f ohms',R)
|
ec06a4491e475262c808c90a084e560b61551581 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3776/CH3/EX3.4/Ex3_4.sce | f0d1c0d9679fe63c41a0896eee785fa27a49487e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 762 | sce | Ex3_4.sce | clear
//Given
R = 1000 //mm - radius of the cylinder
th = 10 //mm - thickness of the cylinder
E = 200 //Mpa- youngs modulus
v = 0.25 // Poisson ratio
p_in = 0.80 //Mpa- Internal pressure
t = 10 //mm - thickness of the cylinder
//calculations
Stress_1 = p_in*R/(2*t) //MPa -Hoop stress //From derived expressions
Stress_2 = p_in*R/(2*t) //Mpa- Longitudinal stress
// Hoop stress and Longitudinal stress are same in this case
e = Stress_1*(10**-3)/E-v*Stress_2*(10**-3)/E
dia_change = e*R //mm- The change in daimeter of the cylinder
printf("\n The maximum stress is %d MPa",Stress_2)
printf("\n The change in daimeter of the cylinder is %0.2f mm",dia_change)
|
27da7369607401168ca4d03d748c594d2ea98dfc | 449d555969bfd7befe906877abab098c6e63a0e8 | /2594/CH1/EX1.6/Ex1_6.sce | adc44fd28136df1fdf72c89a29bbbfeabe8c169e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 462 | sce | Ex1_6.sce | clc
a=1
disp("a= "+string(a)) //initializing value of lattice constant(a)=1.
r=(a/(2*sqrt(2)))
disp("Radius of the atom,r=(a/(2*sqrt(2)))= "+string(r)) //initializing value of radius of atom for FCC.
v=(((4*%pi*(r^3))/3)*4)
disp("Volume of the four atom,v=(((4*%pi*(r^3))/3)*4) = "+string(v)) //calcuation.
V=a^3
disp("Total volume of the cube,V=a^3 = "+string(V)) //calcuation.
Fp=(v*100/V)
disp("Fp(F.C.C)=(v*100/V) = "+string(Fp)+"%")//calculation
|
96deb2db8ff58b1b80065e894637ed7cf63cb0d2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2414/CH5/EX5.2/Ex5_2.sce | daa26df83a7a645f0a132a2803c283b9f8765e83 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 308 | sce | Ex5_2.sce | clc;
//page no 148
//prob no. 5.2
function [f]=frequency(f0,k,T,T0)
f=f0+k*f0*(T-T0);
endfunction;
k=40*10^-6;
f=148;
fmax=frequency(f,k,32,20);
fmin=frequency(f,k,-8,20);
disp('Mhz',fmax,'The maximum possible frequency , fmax= ');
disp('Mhz',fmin,'The maximum possible frequency , fmin= ');
|
8ad7ca4ae2dd3e7d14457cc584554825a9a65896 | fe42802d7bd704d330c1618c1ed2b14b4678fb1e | /BallisticDeposition/largura_x_tempo_suavizada.sci | bd9cdf7b8abfbdd21cb92305ac82d4a73b1f8c4a | [
"MIT"
] | permissive | douglasCardinot/iniciacao | c0e7f4952b3532f67cbf185dc40b363e112e47a1 | a711a845d8790ad7099224a5e414f3190a56bb88 | refs/heads/master | 2020-07-02T05:07:37.534416 | 2014-10-17T19:30:55 | 2014-10-17T19:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,715 | sci | largura_x_tempo_suavizada.sci | clear;
clearglobal;
stacksize('max');
scf();
numberOfSteps = 10000;
previsaoTx = 100;
amplitude = 800;
size_ = 200;
blocksForTime = size_;
y = zeros(1,size_);
width = zeros(1, int(numberOfSteps));
pos = 1:1:int(numberOfSteps);
posSize = 1:1:int(size_);
randonNumbers = rand(numberOfSteps, blocksForTime);
qtdMedias = int((numberOfSteps-previsaoTx)/amplitude);
medias = zeros(1,numberOfSteps);
for j=1:numberOfSteps
for i=1:blocksForTime
d = ceil(randonNumbers(j, i)*size_);
ant = d-1;
dep = d+1;
if d == 1 then
ant = size_;
elseif d == size_ then
dep = 1;
end
if y(ant) > y(d) | y(dep) > y(d) then
if(y(ant) > y(dep))
y(int(d)) = y(int(ant));
else
y(int(d)) = y(int(dep));
end
else
y(int(d)) = y(int(d)) + 1;
end
end
width(j) = stdev(y);
if modulo(j, amplitude) == 0 then
plot(posSize, y, 'color', rand(1,3));
end
end
//scf();
//plot(pos, width);
somaMedias = 0;
for i=0:qtdMedias
soma = 0;
if previsaoTx+(amplitude*i) + amplitude < numberOfSteps then
for j=(previsaoTx+(amplitude*i)):(previsaoTx+(amplitude*i) + amplitude)
soma = soma + width(j);
end
medias(previsaoTx+(amplitude*i) + amplitude/2) = soma/amplitude;
somaMedias = somaMedias + soma/amplitude;
end
end
//plot(pos, medias, '*');
scf();
plot(pos, width, 'color', rand(1,3));
alturaMedia = somaMedias/qtdMedias;
plot([1 numberOfSteps], [alturaMedia alturaMedia]);
a = gca();
a.log_flags = 'lln';
plot(pos, medias, '*');
a = gca();
a.log_flags = 'lln';
|
e53d3ed1885df75a2d6b7f19cb44ccc0d557df7d | 449d555969bfd7befe906877abab098c6e63a0e8 | /293/CH15/EX15.3/eg15_3.sce | db0e1884b0f09b35a3cd65c7cdd91eb568a5441d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,090 | sce | eg15_3.sce | mu0 = 4*%pi*10^-7;
A = 0.0025; //cross sectional area of the coil
//dimensions of the coil (in meters)
Lg = 0.002; //air gap length (in meters)
Lbd = 0.025;
Lde = 0.1;
Lef = 0.025;
Lfk = 0.2;
Lbc = 0.175;
Lcab = 0.5;
Lbghc = 2*(Lbd + Lde + Lef + (Lfk/2)) - Lg;//length of the ferromagnetic material involved here
phig = 4*10^-4; //air gap flux (in Wb)
Bg = phig/A ; //air gap flux density (in tesla)
Hg = Bg/mu0 ; //feild intensity of the air gap
mmfg = Hg*Lg ; //mmf produced in the air gap (in At)
Bbc = 1.38 ; //flux density corresponding to cast steel
Hbghc = 125; //field intensity corresponding to flux density of 0.16T in the steel
mmfbghc = Hbghc*Lbghc ; // mmf corresponding to bghc
mmfbc = mmfg + mmfbghc ; //mmf across path bc
Hbc = mmfbc/Lbc;
phibc = Bbc*A ; //flux produced in bc
phicab = phig + phibc; //total fiux existing in leg cab
Bcab = phicab/0.00375; //flux density
Hcab = 690;
mmfcab = Hcab*Lcab; //mmf in leg cab
mmf = mmfbc + mmfcab ; //mmf produced by the coil
disp(mmf,"mmf produced by the coil(in At) = ")
|
b7118c708b56d264609bb0396711d3ebfaa3264c | 449d555969bfd7befe906877abab098c6e63a0e8 | /409/CH11/EX11.2/Example11_2.sce | 9a7ea8821bda8fab929bc475f5ac2e7d92655a6f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,139 | sce | Example11_2.sce | clear;
clc;
// Example 11.2
printf('Example 11.2\n\n');
// Page no.315
// Solution
//Basis:1 hr
G = 1400 ;//[kg]
//Unit 1
// Degree of freedom analysis
n_un = 16 ;// Number of unknowns in the given problem(excluding extent of reactions)
n_ie = 16 ;// Number of independent equations
d_o_f = n_un-n_ie ;// Number of degree of freedom
printf('For unit 1 number of degree of freedom for the given system is %i .\n',d_o_f);
//Given
o1_air = 0.995 ;// Mass fraction of air at out of unit 1 in A
i1_air = 0.95 ;// Mass fraction air at in of unit 1 in G
i1_wtr = 0.02;// Mass fraction water at in of unit 1 in G
F1_wtr = 0.81 ;// Mass fraction of water at out of unit 1 in F
o1_wtr = 0.005 ;// Mass fraction of water at out of unit 1 in A
o2_wtr = 0.96 ;// Mass fraction of water at out of unit 2 in B
o3_wtr = 0.01;// Mass fraction of water at out of unit 3 in D
i1_act = 0.03 ;// Mass fraction of acetone at in of unit 1 in G
F1_act = 0.19 ;// Mass fraction of acetone at out of unit 1 in F
o3_act = 0.99 ;// Mass fraction of acetone at out of unit 3 in D
o2_act = 0.04 ;// Mass fraction of acetone at out of unit 2 in B
//Mass balance to get A ,W & F
A = G*i1_air/o1_air ;//air-[kg]
F = G*i1_act/F1_act ;//[kg]
W = (F*F1_wtr+A*o1_wtr-G*i1_wtr)/1 ;//Pure water in -[kg]
// unit 2 and 3
// Degree of freedom analysis
n_un = 9 ;// Number of unknowns in the given problem(excluding extent of reactions)
n_ie = 9 ;// Number of independent equations
d_o_f = n_un-n_ie ;// Number of degree of freedom
printf(' For unit 2 and 3 number of degree of freedom for the given system is %i .\n',d_o_f);
// Mass balance
// solving eqn (d)& (e) simultaneously for D and B
a = [o3_act o2_act;o3_wtr o2_wtr];// Matrix formed by coefficients of unknown
b = [F*F1_act;F*F1_wtr];// Matrix formed by constant
x = a\b ;// Solution matrix-x(1) = D and x(2) = B
printf('\n W-Pure water in to unit 1 - %.2f kg/hr\n',W);
printf(' A-Air out of unit 1 - %.2f kg/hr\n',A);
printf(' F-out of unit 1 - %.2f kg/hr\n',F);
printf(' B-out of unit 2 - %.2f kg/hr\n',x(2));
printf(' D-out of unit 3 - %.2f kg/hr\n',x(1)); |
a36f3107387caf87029d7c88bd3d5e4300181859 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electronic_Circuits_M._H._Tooley_995.zip/Electronic_Circuits_M._H._Tooley_995/CH1/EX1.19/Ex1_19.sce | afb71c7a1077ba7e6f6cc70852146ff80bca6100 | [] | no_license | hohiroki/Scilab_TBC | cb11e171e47a6cf15dad6594726c14443b23d512 | 98e421ab71b2e8be0c70d67cca3ecb53eeef1df6 | refs/heads/master | 2021-01-18T02:07:29.200029 | 2016-04-29T07:01:39 | 2016-04-29T07:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 138 | sce | Ex1_19.sce | errcatch(-1,"stop");mode(2);//Ex:1.19
;
;
v=3;//in volts
i=1.5;//in amperes
p=v*i;
printf("Power supplied = %f watts",p);
exit();
|
8c49dce5e9c33301e6f997020d40c61307de0ad2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /884/CH12/EX12.6/Example12_6.sce | a5463eb4760fc9ee72f19356ef15d69b9cf43c23 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 384 | sce | Example12_6.sce | //computation of solubility of gases in liquid
clear;
clc;
printf("\t Example 12.6\n");
c=6.8*10^-4;//solubility of N2 in water, M
P=1;//pressure, atm
k=c/P;//henry's constant
//for partial pressure of N2=0.78atm
P=0.78;//partial pressure of N2, atm
c=k*P;//solubility of N2, M
printf("\t the solubility of N2 gas in water is : %4.1f*10^-4 M\n",c*10^4);
//End
|
bae67685738858094ca118452841f3aca4c7d35f | b2efed85f1632d9ed4b7d9f4eebc7126d3074940 | /ted_mini/artandsci_positive/225.ted.sci | 8a7455713f4a15a78852a1188874643ec9f0e63e | [] | no_license | joytafty-work/unsupervised_nlp | 837d8ed75eb084b630d75a1deba7bdd53bbcf261 | 7812c7d24bb677c90cf6397ed0e274caba1b884c | refs/heads/master | 2021-01-10T09:24:33.254190 | 2015-11-11T20:40:32 | 2015-11-11T20:40:32 | 45,651,958 | 2 | 7 | null | 2018-01-28T18:54:18 | 2015-11-06T01:42:42 | Scilab | UTF-8 | Scilab | false | false | 3,614 | sci | 225.ted.sci | by day i m a venture capitalist on weekends i love rockets i love photography i love rockets and i m going to talk to you about a hobby that can scale and show you some photos that i ve taken over the years with kids like these kids that hopefully will grow up to love rocketry and eventually become maybe another richard branson or diamandis my son designed a rocket that became stable a golf ball rocket i thought it was quite an interesting experiment in the principles of rocket science and it flies straight as an arrow baking soda and vinegar night shots are beautiful piercing the big dipper and the milky way two stage rockets rockets with video cameras on them on board computers logging their flights rocket gliders that fly back to earth i use rocksim to simulate flights before they go to see if they ll break supersonic or not and then fly them with on board computers to verify their performance but to launch the really big stuff you go to the middle of nowhere black rock desert where dangerous things happen and the boys get bigger and the rockets get bigger and they use motors that literally are used on cruise missile boosters they rumble the belly and leave even photographers in awe watching the spectacle these rockets use experimental motors like nitrous oxide they use solid propellant most frequently it s a strange kind of love we have a rocketmavericks com website with my photos if you want to learn more about this participate be a spectator mavericks we had to call it rocket mavericks this one was great it went to 100 000 feet but did n t quite actually it went 11 feet into the solid clay and it became a bunker buster drilling down into the clay it had to be dug out rockets often spiral out of control if you put too much propellant in them here was a drag race at night you can see what happened in a second in daytime we call them land sharks sometimes they just explode before your eyes or come down supersonic to take this shot i do what i often do which is go way beyond the pads where none of the other spectators are and if we can run the video i ll show you what it took to get this dreamworks shot voices woohoo yeah nice steve jurvetson this is rare here s where they realized the computer s failed they re yelling deploy voices oh shit sj this is when they realize everything on board s gone haywire voices it s going ballistic oh shit sj and i ll just be quiet voices no up up up sj and that s me over there taking photos the whole way things often go wrong some people watch this event because of a nascar like fascination with things bumping and grinding burning the parachute as it fell that was last weekend this guy went up went supersonic ripped the fin can off yard sale in the sky and a burning metal hunk coming back these things would drop down from above all through the weekend of rocket launch after rocket launch after rocket launch it s a cadence you ca n t quite imagine and in many ways i try to capture the mishaps it s the challenge in photography when these things all take place in a fraction of a second why do they do it it s for things like this gene from alabama drives out there with this rocket that he s built with x ray sensors video cameras festooned with electronics and he succeeds getting to 100 000 feet leaving the atmosphere seeing a thin blue line of space it is this breathtaking image success of course that motivates us and motivates kids to follow and understand rocket science to understand the importance of physics and math and in many ways to sort of have that awe at exploration of the frontiers of the unknown thank you |
b4342e624025a9822afd0dfd60257468ac05ee65 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2234/CH5/EX5.7/ex5_7.sce | 82751fcdb01c1ca65858ccfc6ac7dd7aeab70f64 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 142 | sce | ex5_7.sce | clc;
R1=5; //resisitance in Ohm
R2=9*5; //calculating using R2/A1=(l2/A2)*(A1/l1)
disp(R2,"Resisitance in Ohm = "); //displaying result |
a316b6c6b2b46fc154186cfeed381ff143a21891 | 449d555969bfd7befe906877abab098c6e63a0e8 | /896/CH4/EX4.5/5.sce | ef46274748e98b369b944398afdf166cb7464e34 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 360 | sce | 5.sce | clc
//Example 4.5
//calculate the work done
//work done=change in pot. energy + change in kinetic energy considering steady flow and adiabatic conditions
v_in=3;//m/s
v_out=10;//m/s
dke=(v_in^2-v_out^2)/2;//m^2/s^2
g=9.81;//m/s^2
dh=15;//m change in height in inlet and outlet
dpe=g*dh;//m^2/s^2
W=dpe+dke//J/kg
printf("The work done is %f J/Kg",W); |
34ed2c65e389cc9862f8113d263d2454360baaaf | 3655c97e8146a7ca97eaf60c4eb20ced2238eacb | /scilab/Eight Queens/randomSelection.sci | 7a1cc8e079db65d6e7836c33fde522cc298f0b00 | [] | no_license | edielsonpf/genetic-algorithm | 99ae112982b6fee77ecfc55cbd10172b381e1dde | 94c599a23fa3b2f477c7a5062f65248a93cc395a | refs/heads/master | 2020-04-05T22:02:45.016605 | 2018-12-24T14:36:40 | 2018-12-24T14:36:40 | 32,630,334 | 0 | 1 | null | 2019-03-25T12:23:16 | 2015-03-21T11:45:11 | Python | UTF-8 | Scilab | false | false | 607 | sci | randomSelection.sci | function selected=randomSelection(populacao)
best_fit = fitnessFunction(populacao);
prob_fit = best_fit./sum(best_fit);
// Get the cumulative sum of the probabilities.
cumSumP = cumsum(prob_fit);
//Get our random numbers - one for each column.
randomNumber = rand(1);
//Get the values from A.
//If the random number is less than the cumulative probability then
//that's the number to use from A.
y = find(randomNumber < cumSumP, 1);
selected = populacao(:,:,y);
//Display it.
disp("Individual selected")
disp(y);
disp(selected);
endfunction
|
832c818e024526e91438472b39b4d40b7c7d65d6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH18/EX18.8/18ex8.sce | 07d2b9c45173ec37374ed915a1b42bb7a3a27a46 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 172 | sce | 18ex8.sce | //chapter 18 Ex 8
clc;
clear;
close;
lTrain=100; t=6;
sMan=5;
sRelative=lTrain/(t*5/18);
sTrain=sRelative-sMan;
printf("The speed of train is %d km/hr",sTrain);
|
2656ec6b3e273a428c7d74ea0e9fb51a2e8b781d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1962/CH3/EX3.8/example3_8.sce | da82813b62cf5bec1d20ac475c428f62a787ee99 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 166 | sce | example3_8.sce |
//example 3.8
//page 143
clc; funcprot(0);
// Initialization of Variable
k1=-9//dv/dx;
k2=16//du/dy
R=k1-k2;
if R~=0 then
disp("flow is rotational");
end
|
4d757c1577e1c03e23995f24cc9312f57bcfeb3d | 449d555969bfd7befe906877abab098c6e63a0e8 | /275/CH3/EX3.3.58/Ch3_3_58.sce | a60716fc75d5dcc71c7107ac81ddbd50325baa10 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 446 | sce | Ch3_3_58.sce | clc
disp("Example 3.58")
printf("\n")
disp("Draw the DC load line & determine Rc for base bias circuit")
printf("Given\n")
//given
Vcc=18
Vbe=0.7
Vceq=9
Icq=2*10^-3
//to find Rc
Rc=(Vcc-Vceq)/Icq //from circuit
//to draw DC load line
Ic1=Vcc/Rc
Vce=[Vcc Vceq 0]
Ic=[0 Icq Ic1]
printf("Q(%f volt,%f ampere)\n",Vceq,Icq)
plot2d(Vce, Ic)
xlabel("Vce in volt")
ylabel("Ic in ampere")
xtitle("DC load line for base bias circuit")
|
51f102cc3d5c5746da0033309d2d4891937288a0 | 44dccf35d0d05580e3fc20af3b7697b3c638d82d | /testcases/detectMinEigenFeatures/10.sce | 8b70db4622e5ed1f4714dca170bbf061ff59f58a | [] | no_license | surirohit/Scilab-Image-Processing-Toolbox-Unclean | 213caacd69badd81ec0f99a800f44a2cf8f79b5d | 3a8057f8a8d05e7efd83704a0e732bdda23fa3a0 | refs/heads/master | 2020-04-09T07:31:20.042501 | 2016-06-28T09:33:57 | 2016-06-28T09:33:57 | 60,406,367 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 109 | sce | 10.sce | i = imread('test2.jpg');
corners = detectHarrisFeatures(i,'MinQuality',0.6,'MinQuality',0.7);
disp(corners);
|
9322db8d278d545673434342b06e77a237fff741 | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH12/EX12.2/12_2.sce | c63cdbc10ad1de9603d3c8266af9b5731849c592 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 193 | sce | 12_2.sce | f=50
f2=120/60
s=f2/f
ns=1500
n=(1-s)*ns
w=2*%pi*n/60
T=100
Pshaft=T*w
disp(Pshaft)
Pm=(T+7)*w
Pcur=Pm*s/(1-s)
disp(Pcur)
Pin=Pm+Pcur+700
disp(Pin)
effi=Pshaft/Pin
disp(effi)
|
2d530230db396c05a9c13312c2b3fe6adade008e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH14/EX14.7/Ex14_7.sce | e076d2bf822ac19ffe44c3e9150a2b0c6ae06ad9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,015 | sce | Ex14_7.sce | // Example 14_7
clc;funcprot(0);
// Given data
// Loop A
// Station 1A
// Compressor A inlet
p_1A=500;// kPa
h_1A=265.60;// kJ/kg
s_1A=0.9486;// kJ/kg.K
// Station 2sA
// Compressor A outlet
p_2sA=1600;// kPa
s_2A=s_1A;// kJ/kg.K
h_2A=256.60;// kJ/kg
// Station 3A
// Condenser A outlet
x_3A=0.00;// The quality of steam
p_3A=1600;// kPa
h_3A=134.02;// kJ/kg
// Station 4hA
// Expansion valve A outlet
h_4hA=h_3A;// kJ/kg
// Loop B
// Station 1B
// Compressor B inlet
x_1B=1.00;// The quality of steam
p_1B=100;// kPa
h_1B=231.35;// kJ/kg
s_1B=0.9395;// kJ/kg.K
// Station 2sB
// Compressor B outlet
p_2B=500;// kPa
s_2sB=s_1B;// kJ/kg.K
h_2sB=264.25;// kJ/kg
T_2sB=15.0;// °C
// Station 3B
// Condenser B outlet
x_3B=0.00;// The quality of steam
p_3B=500;// kPa
h_3B=71.33;// kJ/kg
// Station 4hB
// Expansion B outlet
h_4hB=h_3B;// kJ/kg
Q_L=10.0;// tons
n_s_c_A=80/100;// The isentropic efficiency of compressor A
n_s_c_B=80/100;// The isentropic efficiency of compressor B
// Calculation
// (a)
h_2B=((h_2sB-h_1B)/n_s_c_B)+h_1B;// kJ/kg
h_f_500kPa=71.33;// kJ/kg
h_f_1600kPa=134.02;// kJ/kg
h_fg_500kPa=184.74;// kJ/kg
x_flash=((h_f_1600kPa-h_f_500kPa)/h_fg_500kPa)*100;// The quality of the vapor exiting the flash chamber
h_gflash=252.07;// kJ/kg
h_1A=((x_flash/100)*h_gflash)+((1-(x_flash/100))*h_2B);// kJ/kg
m_B=(Q_L*210*1/60)/(h_1B-h_4hB);// kg/s
m_A=m_B/(1-(x_flash/100));// kg/s
// (b)
h_2sA=292.33;// kJ/kg
COP_ds=[(1-(x_flash/100))*(h_1B-h_4hB)]/[((h_2sA-h_1A)/n_s_c_A)+((1-(x_flash/100))*((h_2B-h_1B)/n_s_c_B))];// The system’s coefficient of performance.
// (c)
W_comp=m_A*[((h_2sA-h_1A)/n_s_c_A)+((1-(x_flash/100))*((h_2B-h_1B)/n_s_c_B))];// The total compressor power in kW
printf("\n(a)The mass flow rate of the two refrigerants,m_A=%0.3f kg/s & m_B=%0.3f kg/s \n(b)The system’s coefficient of performance,COP_dual stage=%1.2f \n(c)The total power required by the compressors,W_compressors=%2.1f kW",m_A,m_B,COP_ds,W_comp);
|
719bb7b5431bd5a49f05fd4714db72278c184cb0 | a5f0fbcba032f945a9ee629716f6487647cafd5f | /Machine_Learning/macros/Spectral.sci | 8c684224d3f6ba991d406d3c15d4a6df4d73a37e | [
"BSD-2-Clause"
] | permissive | SoumitraAgarwal/Scilab-gsoc | 692c00e3fb7a5faf65082e6c23765620f4ecdf35 | 678e8f80c8a03ef0b9f4c1173bdda7f3e16d716f | refs/heads/master | 2021-04-15T17:55:48.334164 | 2018-08-07T13:43:26 | 2018-08-07T13:43:26 | 126,500,126 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,427 | sci | Spectral.sci | // Macro for spectral -- Scilab
// Subroutine to get distance between two points
function dist = getDistance(point1, point2)
n1 = length(point1)
dist = 0
for i = 1:n1
dist = dist + (point1(i)-point2(i))^2;
end
dist = sqrt(dist);
endfunction
// Function for heirarchial clustering for the given eigenvector
function flags = clusterHeirarchial(A, eigenvector, centres)
entries = length(A(:, 1))
modul = norm(eigenvector)
flags = []
components = []
for i = 1:entries
components = [components, A(i,:)*eigenvector/modul];
end
sortedComponents = gsort(components);
medianValue = []
for i = 1:(centres - 1)
medianValue = [medianValue, sortedComponents(int(i*entries/centres))]
end
for i = 1:entries
flag2 = 0;
for j = 1:(centres - 1)
if(components(i) > medianValue(j))
flags = [flags, j - 1];
flag2 = 1;
break
end
end
if(flag2 == 0)
flags = [flags, centres - 1];
end
end
endfunction
// Function to return flags for category of each data point
function flags = spectralCluster(x, centres)
points = length(x(:, 1))
affinity = [];
for i = 1:points
rowAffinity = [];
for j = 1:points
rowAffinity = [rowAffinity, getDistance(x(j, :), x(i, :))];
end
affinity = [affinity; rowAffinity];
end
D = diag(sum(affinity, 2))
A = D - affinity;
[eigenvectors, eigenvalues] = spec(A);
flags = clusterHeirarchial(A, eigenvectors(:, points - 1));
endfunction |
dea66dc5825327c147ad262ee746af4b24cd99f3 | e41b69b268c20a65548c08829feabfdd3a404a12 | /3DCosmos/Data/SlideShows/Full size wolkenbeelden.SCI | f93523673254ce086f9ef77ebe359fb3c8b8f4aa | [
"LicenseRef-scancode-khronos",
"MIT"
] | permissive | pvaut/Z-Flux | 870e254bf340047ed2a52d888bc6f5e09357a8a0 | 096d53d45237fb22f58304b82b1a90659ae7f6af | refs/heads/master | 2023-06-28T08:24:56.526409 | 2023-03-01T12:44:08 | 2023-03-01T12:44:08 | 7,296,248 | 1 | 1 | null | 2023-06-13T13:04:58 | 2012-12-23T15:40:26 | C | UTF-8 | Scilab | false | false | 620 | sci | Full size wolkenbeelden.SCI |
Picturefolder(datadir+"\StereoPictures\Full size wolken beelden");
mydelay=3;
Transition("Pan",2);
SoundFolder(datadir+"\sounds");
PlaySound("sound3.mp3",1000);
Delay(1);
ShowStereoPic("0001");
Delay(2);
ShowText("Dit is de eerste foto",point(-0.25,-0.2,0.1),"Size":0.05,"Color":color(1,0.7,0));
Delay(mydelay);
ShowStereoPic("0002");
Delay(2);
ShowText("En dit de tweede foto",point(-0.25,-0.2,0.1),"Size":0.05,"Color":color(1,0.7,0));
Delay(mydelay);
ShowStereoPic("0003");
Delay(mydelay);
ShowStereoPic("0004");
Delay(mydelay);
ShowStereoPic("0005");
FadeSound("sound3.mp3",0,mydelay);
Delay(mydelay);
end;
|
962a0a088cea02aa1a92f8f6eead1470d9ad3388 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2441/CH2/EX2.12/Ex2_12.sce | 16d120608ea45077064b764ce61ff6a54ca964e3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,582 | sce | Ex2_12.sce | //exa 2.12
clc;clear;close;
format('v',7);
//C1=7700+52.8*P1+5.5*10^-3*P1^2;//Rs./hour
//C2=2500+15*P2+0.05*P2^2;//Rs./hour
a1=7700;a2=2500;
b1=52.8;b2=15;
c1=5.5*10^-3;c2=0.05;
P1=poly(0,'P1');
P2=poly(0,'P2');
dC1bydP1=52.8+2*5.5*10^-3*P1;
dC2bydP2=15+2*0.05*P2;
disp("For 1200 MW Load :");
P=1200;//MW
//Let loads of unit are P1 & 1200-P1
//Economical Loading dC1/dP1=dC2/dP2
eqn=52.8+2*5.5*10^-3*P1-15-2*0.05*(1200-P1);
P1=roots(eqn);//MW
P2=1200-P1;//MW
disp(P1,"P1(MW) : ");
disp(P2,"P2(MW) : ");
disp("For 900 MW Load :");
P=900;//MW
clear('P1','P2');
P1=poly(0,'P1');
P2=poly(0,'P2');
//Let loads of unit are P1 & 900-P1
//Economical Loading dC1/dP1=dC2/dP2
eqn=52.8+2*5.5*10^-3*P1-15-2*0.05*(900-P1);
P1=roots(eqn);//MW
P2=900-P1;//MW
disp(P1,"P1(MW) : ");
disp(P2,"P2(MW) : ");
disp("For 500 MW Load :");
P=500;//MW
clear('P1','P2');
P1=poly(0,'P1');
P2=poly(0,'P2');
//Let loads of unit are P1 & 500-P1
//Economical Loading dC1/dP1=dC2/dP2
eqn=52.8+2*5.5*10^-3*P1-15-2*0.05*(500-P1);
P1=roots(eqn);//MW
P2=500-P1;//MW
//Minimum load is 200MW
if P1<200 then
P2=P1+P2
P1=0;
end
disp(P1,"P1(MW) : ");
disp(P2,"P2(MW) : ");
format('v',10);
C=(2500+15*P2+0.05*P2^2)*10;//Rs.//Operating cost for 10 hour
disp(C,"Operating cost for 10 hour(Rs.)");
disp("Other option : ");
P1=200;//MW
P2=300;//MW
disp(P1,"P1(MW) : ");
disp(P2,"P2(MW) : ");
C1=7700+52.8*P1+5.5*10^-3*P1^2;//Rs./hour
C2=2500+15*P2+0.05*P2^2;//Rs./hour
C=10*(C1+C2);//Rs.//Operating cost for 10 hour
disp(C,"Operating cost for 10 hour(Rs.)");
|
d82ac173c64f07024e8ed10bf28ffb7d92f7d883 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3683/CH7/EX7.3/Ex7_3.sce | 40114f8ddf2225d4de0d552da9673aa42224e295 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,892 | sce | Ex7_3.sce | sigma_cbc=7//in MPa
sigma_st=230//in MPa
MF=1.22//modification factor
//let a be span to depth ratio
l=5//span, in m
a=MF*26
D=l*1000/a//in mm
D=160//assume, in mm
//to calculate loading
self_weight=25*(D/10^3)//in kN/m
finish=0.75//in kN/m
partitions=1//in kN/m
live_load=3//in kN/m
Wd=self_weight//dead load, in kN/m
Wl=finish+partitions+live_load//live load, in kN/m
lef=5.15//effective span, in m
M1=Wd*lef^2/12+Wl*lef^2/10//bending moment at mid-span, in kN-m
M2=Wd*lef^2/10+Wl*lef^2/9//bending moment at support next to end support, in kN-m
//check for depth
d=(M2*10^6/(0.89*1000))^0.5//in mm
dia=12//assume 12 mm dia bars
D=d+12/2+15//>160, hence depth not suitable
D=1.1*D//in mm
D=210//assume, in mm
self_weight=25*(D/10^3)//in kN/m
Wd=self_weight//in kN/m
M1=Wd*lef^2/12+Wl*lef^2/10//bending moment at mid-span, in kN-m
M2=Wd*lef^2/10+Wl*lef^2/9//bending moment at support next to end support, in kN-m
//check for depth
d=round((M2*10^6/(0.9*sigma_cbc/2*0.29*1000))^0.5)//in mm
D=d+12/2+15//<210, hence OK
D=200//assume, in mm
d=D-dia/2-15//in mm
//main steel at mid-span
Ast1=round(M1*10^6/(sigma_st*0.91*d))//in sq mm
s1=1000*0.785*12^2/Ast1//in mm
s1=175//approximately, in mm
//main steel at support
Ast2=round(M2*10^6/(sigma_st*0.91*d))//in sq mm
//alternate bars from mid-span are available at the central support as bent up bars; assuming same amount of steel is available from another adjoining mid-span steel
Ast2=Ast2-Ast1//which is nominal, hence no separate steel is required
Ads=0.12/100*1000*D//distribution steel, in sq mm
//assume 8 mm dia bars
s2=1000*0.785*8^2/Ads//in mm
s2=200//approximately, in mm
mprintf("Summary of design\nSlab thickness=%d mm\nMain steel = 12 mm dia @ %d mm c/c\nAlternate bars are bent up at support\nDistribution steel=8 mm dia @ %d mm c/c",D,s1,s2)
//answer given in textbook is incorrect
|
d48bf18f602e9dcd14db5c6b4bebea2d51b19542 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3850/CH24/EX24.7/Ex24_7.sce | 927f826c9ed4a77ae55d79d29ed87bc69c62ab27 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 316 | sce | Ex24_7.sce |
//To calculate the relative humidity
//Example 24.7
clear;
clc;
Pvap=8.94;//vapour pressure at the dew point in (mm of Hg)
SVP=55.1;//saturation vapour pressure at the air temperature in (mm of Hg)
RH=(Pvap/SVP)*100;//finding the relative humidity
printf("Relative Humidity=%.1f percent",RH);
|
7f59e2e2ca6aecdf3173fe94104c45677116b4f2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3812/CH1/EX1.2.c/1_2_c.sce | a0febffac85bf4da9dbb0de0314fbfef98d149b4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 265 | sce | 1_2_c.sce | //example 1_2<c>
//sketch the following signal x(-2t-1)
clc;
clear all;
t=-1:0.0001:0;
for i=1:length(t)
if t(i)>=-1/2 then
x(i)=-2*t(i);
else
x(i)=(2*t(i))+2;
end
end
plot(t,x)
plot(t,x, 'red' );
xtitle('required figure','t','x(-2*t-1)');
xgrid();
|
6f0692c72f261116afd5ed805d4be2009997cba0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /812/CH12/EX12.01/12_01.sce | ede9ac1517de1b9d1060d12b09f499fc9485d8aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 998 | sce | 12_01.sce | //pressure and area//
pathname=get_absolute_file_path('12.01.sce')
filename=pathname+filesep()+'12.01-data.sci'
exec(filename)
//Here the stagnation quantities are constant.
// Stagnation temperature(in K):
T0=T1*(1+(k-1)/2*M1^2)
//Stagnation pressure(in kPa):
p0=p1*((1+(k-1)/2*M1^2)^(k/(k-1)))
//Finding T2/T1:
T=t2/t1
//Temperature at exit(in K):
T2=T*T1
//Finding p2/p1:
P=P2/P1
//Pressure at exit(in kPa):
p2=P2*p1
//Density of air at exit(in kg/m^3):
d2=p2*10^3/R/T2
//Velocity of air at exit(in m/sec):
V2=M2*sqrt(k*R*T2)
//Finding A2/A1:
a=a2/a1
//Area at exit(in m^2):
A2=a*A1
printf("\n\nRESULTS\n\n")
printf("\n\nStagnation temperature: %.3f K\n\n",T0)
printf("\n\nStagantion pressure: %.3f kPa\n\n",p0)
printf("\n\nTemperature a exit %.3f K\n\n",T2)
printf("\n\nPressure at exit: %.3f kPa\n\n",p2)
printf("\n\nDensity of air at exit: %.3f kg/m^3\n\n",d2)
printf("\n\nVelocity of air at exit: %.3f m/sec\n\n",V2)
printf("\n\nArea at exit: %.3f \n\n",A2)
|
2c1ba90fb54cbe4a8c12bb695ff4347059cee8ca | 449d555969bfd7befe906877abab098c6e63a0e8 | /1670/CH2/EX2.4/2_4.sce | f54d07389a7fbc81cdf2d4494d89f028fa0aa30c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 643 | sce | 2_4.sce | //Example 2.4
//Regula Falsi Method
//Page no. 18
clc;clear;close;
deff('y=f(x)','y=x*log10(x)-1.2')
x1=2;x2=3;e=0.000001
printf('n\tx1\t\tf(x1)\t\tx2\t\tf(x2)\t\tx3\t\tf(x3)')
printf('\n-------------------------------------------------------------------------------------------------\n')
for i=0:19
x3=x2*f(x1)/(f(x1)-f(x2))+x1*f(x2)/(f(x2)-f(x1))
printf(' %i\t%f\t%f\t%f\t%f\t%f\t%f\n',i,x1,f(x1),x2,f(x2),x3,f(x3))
if f(x1)*f(x3)>0 then
x1=x3
else
x2=x3
end
if abs(f(x3))<e then
break
end
end
printf('\n\nThus the root is %.3f correct upto three places of decimal',x3) |
99fd2d210e92e49254cb5e959eabaaf89ba99611 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2561/CH8/EX8.11/Ex8_11.sce | 2830114540b5ca328c08781d2a9f7457da402cb3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,049 | sce | Ex8_11.sce | //Ex8_11
clc
R=10*10^(3)
disp("R= "+string(R)+ " ohm") // resistance
R1=10*10^(3)
disp("R1= "+string(R1)+ " ohm") // resistance
C=0.01*10^(-6) // value of capacitor
disp("C="+string(C)+" farad")
R1_ratio_K=2.5*10^(3)
disp("R1_ratio_K= "+string(R1_ratio_K)+ " ohm") // resistance
R2=5*10^(3)
disp("R= "+string(R)+ " ohm") // resistance
alpha_R2=250
disp("alpha_R2= "+string(alpha_R2)+ " ohm") // resistance
alpha=alpha_R2/R2
disp("alpha=alpha_R2/R2= "+string(alpha)) // Damping factor
Q=1/alpha
disp("Q= 1/alpha="+string(Q))// Quality factor
omega_o=1/(R*C)
disp("omega_o=1/(R*C)= "+string(omega_o)+" radian")// centre angular frequency
BW=omega_o/Q
disp("Bandwidth=omega_o/Q= "+string(BW)+" radian")// Upper cut-off frequency or 3-dB bandwidth
K=R1/(R1_ratio_K)// Pass band gain for lPF and HPF of state variable filter
disp("K=R1/(R1_ratio_K)= "+string(K))
Gm=K/alpha// Pass band gain of state variable filter
disp("center frequency gain for BPF, K/alpha=K*Q= "+string(Gm)) // Centre frequency gain for BP filter
|
cffe47c390ba04f38f3324195da232e5fc2c6f47 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2219/CH3/EX3.11/Ex3_11.sce | 5039865e73ccc69bed23225f166e2a62a2756f1c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 704 | sce | Ex3_11.sce | // Chapter 3 example 11
//------------------------------------------------------------------------------
clc;
clear;
// Given data
a = 1.5*10^-2; // width of waveguide
b = 1*10^-2 // narrow dimension of waveguide
er = 4; // dielectric constant
f = 8*10^9; // frequency in Hz
c = 3*10^8 // velocity in m/s
// calculations
lamda_c = 2*a; // cut-off wavelength for TE10 mode
lamda = c/f // wavelength corresponding to given freq.
lamda_d = lamda/sqrt(er); // wavelength when waveguide filled with dielectric
if lamda_d < lamda_c then
mprintf('8 Ghz frequency will pass through the guide');
end
|
186e74e281d98785f0d06c5943282abb5db7921b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2234/CH3/EX3.26/ex3_26.sce | a019d353fd42f095c0385ebb308a61a660ab717f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 468 | sce | ex3_26.sce | clc;
v=10^-5; //ac voltage
di=10*10^-3; //discharge rate of current
t=10*10^-3; //time in sec
ch=(14.14-0.6); //charge of capacitor
q=ch*v; //charge
disp(q,"Charge in Coloumb = "); //displaying result
qt=di*t; //charge for 10 ms
rc=q-qt; //remaining charge
disp(qt,"Charge for 10 ms = "); //displaying result
disp(rc,"Remaining charge in Coloumb = "); //displaying result
a=(rc/q)*10; //voltage
disp(a,"Voltage in volt = "); //displaying result |
0d46226a166ebeb32b1407845b129180e6eee811 | a3440380a660ebad497cc028ad7921d09f73e74b | /presentation/DPX_Caro_Scenario.sce | a86bb7924970278f358ffacb97e0e21460fde573 | [] | no_license | CarolinSchieferstein/Master-DPX-EEG | ca8d4588f932cafe5af78aa0ca6d712a69ded589 | 5ad2aee5a7ee17dc08a4042e4f643c585ff8b7ed | refs/heads/master | 2021-07-11T18:21:25.592473 | 2020-08-04T15:04:35 | 2020-08-04T15:04:35 | 167,362,848 | 1 | 0 | null | 2019-12-11T11:48:13 | 2019-01-24T12:18:27 | Python | UTF-8 | Scilab | false | false | 17,051 | sce | DPX_Caro_Scenario.sce | # ------------------------------ beginn header ------------------------------- #
/*
authors: cecilia musci & jose c. g. alanis, 2015
updated: carolin schieferstein & jose. c. g. alan, 2018
updated: jose. c. g. alanis. 2019
encoding: utf-8
title: scenario file for dot-pattern expectancy task
see: Barch, D. M., et al., (2008).
CNTRICS final task selection: working memory.
Schizophrenia bulletin, 35(1), 136-152.
Henderson, D., et al., (2012). Optimization of
a goal maintenance task for use in clinical applications.
Schizophrenia Bulletin, 38(1), 104-113.
*/
# program control file
pcl_file = "DPX_Caro_Main.pcl";
# global variables
response_matching = simple_matching;
response_logging = log_active;
active_buttons = 13;
default_background_color = 214,213,213;
# codes for any button press
button_codes = 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113;
# codes for correct button press during the task
target_button_codes = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13;
# ports
default_output_port = 5; # response box is default
write_codes = true; # send to output device
pulse_width = 3;
# ------------------------------- end header --------------------------------- #
# begin scenario
begin;
# --- start stop signal codes for eeg sub-routine ---
trial{
nothing{};
code = "DR_Start";
}DR_START;
trial{
nothing{};
code = "DR_Stopp";
}DR_STOPP;
# --- blank screens and interstimulus & -trial intervals ---
# blank screen
trial {
trial_type = fixed;
trial_duration = 500;
stimulus_event {
nothing {};
code = "Blank";
}blank_event;
}blank_screen;
# --- intro trials and pauses ---
# itro trial for resting state eeg
trial{
trial_type = fixed;
trial_duration = 300000;
stimulus_event{
picture {
text{
font = "Calibri";
font_size = 20;
text_align = align_center;
caption = "Zunächst folgt eine kurze Entspannungsphase (etwa 5 Minuten). \n
Lehnen Sie sich etwas zuruck und fixieren Sie am besten irgedneinen Punkt vor Ihnen. \n
Ihre Augen sollten sich währed der Entspannungsphase nicht so stark bewegen. \n
Also einfach mal zurucklehnen, entspannen und gar nichts tun";
};
x = 0; y = 0;};
code = "RESTING";
}resting_event;
}intro_resting_state;
# intro text for practice
trial{
trial_type = first_response;
trial_duration = forever;
stimulus_event{
picture{
text{
font = "Helvetica";
font_size = 30;
font_color = 0,0,0;
background_color = 214,213,213;
caption = "<font size='40'><b>Übungsphase.</b></font> \n \n \n
Im Folgenden werden Sie die Möglichkeit haben, die Aufgabe einzuüben. \n \n
Bitte achten Sie darauf, dass Sie bei jedem weißen Punktmuster möglichst schnell eine Antwort abgeben. \n \n \n
Bei jeder Antwort erhalten Sie eine Rückmeldung, \n
ob Sie <font color='0,255,0'><b>Richtig</b></font>, <font color='255,0,0'><b>Falsch</b></font>, <font color='0,0,0'><b>zu früh</b></font>, oder <font color='255,185,15'><b>zu langsam</b></font> \n
geantwortet haben. \n \n \n
Es geht weiter mit einer beliebigen Taste.";
}practice_intro_text;
x = 0;y = 0;};
code="PRACTICE_INTRO";
};
}practice_intro;
# continue text for practice
trial{
trial_type = first_response;
trial_duration = forever;
stimulus_event{
picture{
text{
font = "Helvetica";
font_size = 30;
font_color = 0,0,0;
background_color =214,213,213;
caption = "<font size='40'><b>Übungsphase.</b></font>\n \n \n
Soweit so gut. Im Folgenden werden Sie die Möglichkeit haben, die Aufgabe weiter einzuüben.\n \n
Ab jetzt bekommen Sie dennoch keine Rückmeldung Über die Richtigkeit Ihrer Reaktionen.\n
Lediglig wenn Sie etwas <font color='255,185,15'><b>zu langsam</b></font> reagiert haben.\n
Verlassen Sie sich einfach auf Ihren Gefühl \n
und versuchen Sie möglichst schell aber möglichst richtig zu reagiren.\n \n \n
Wenn Sie so weit sind, können Sie mit einer beliebigen Taste weiter machen.";
}practice_continue_text;
x = 0;y = 0;};
code="PRACTICE_CONTINUE";
};
}practice_continue;
# intro text for test phase
trial{
trial_type = first_response;
trial_duration = forever;
stimulus_event{
picture{
text{
font = "Helvetica";
font_size = 30;
font_color = 0,0,0;
background_color =214,213,213;
caption = "<font size='40'><b>Testphase.</b></font>\n \n \n
In der nächsten Phase, werden Sie dieselbe Aufgabe bearbeiten, die Sie gerade geübt haben.\n \n
Die Aufgabe ist in mehrere Blöcke aufgeteilt.\n
Nach jedem Block gibt es eine kleine Pause, deren Dauer Sie sich selbst einteilen können.\n \n \n
Weiter mit einer beliebigen Taste.";
}test_intro_text;
x = 0;y = 0;};
code="TEST_INTRO";
};
}test_intro;
# intro text for test phase
trial{
trial_type = first_response;
trial_duration = forever;
stimulus_event{
picture{
text{
font = "Helvetica";
font_size = 30;
font_color = 0,0,0;
background_color =214,213,213;
caption = "<font size='40'><b>Testphase.</b></font>\n \n \n
Wie zu Anfang angemerkt, können Sie bei einer guten Leistung in der Aufgabe \n
zusätzliche Gewinne erzielen (z.B. Schokolade, Getränke, usw.) \n \n
Zu Beginn eines jeden Blocks, verfärbt sich der Bildschirm entweder <font color='0,120,0'><b>GRÜN</b></font> oder <font color='84,84,84'><b>GRAU</b></font>. \n
Ist der Bildschirm GRÜN, bedeutet das, dass Sie in dem folgenden Block \n
für jede richtige Antwort Punkte bekommen. \n
Dies wird Ihnen jedes Mal kurz rückgemeldet (<font color='0,120,0'><b>+1</b></font>). \n \n
Weiter mit einer beliebigen Taste.";
}manipulation_1_text;
x = 0;y = 0;};
code="MANIPULATION_1_INTRO";
};
}manipulation_1_intro;
# intro text for test phase
trial{
trial_type = first_response;
trial_duration = forever;
stimulus_event{
picture{
text{
font = "Helvetica";
font_size = 30;
font_color =0,0,0;
background_color =214,213,213;
caption = "<font size='40'><b>Testphase.</b></font>\n \n \n
Wie zu Anfang angemerkt, können Sie bei einer guten Leistung in der Aufgabe \n
zusätzliche Gewinne erzielen (z.B. Schokolade, Getränke, usw.) \n \n
Zu Beginn eines jeden Blocks, verfärbt sich der Bildschirm entweder <font color='0,120,0'><b>GRÜN</b></font> oder <font color='84,84,84'><b>GRAU</b></font>. \n
Ist der Bildschirm GRÜN, bedeutet das, dass Sie in der folgenden Block gewertet wird. \n
Sie bekommen am Ende der Sizung rückgemeldet, wie viele Punkte Sie gesammelt haben. \n \n
Weiter mit einer beliebigen Taste.";
}manipulation_0_text;
x = 0;y = 0;};
code="MANIPULATION_0_INTRO";
};
}manipulation_0_intro;
# task instructions
array {
LOOP $i 8;
$k = '$i + 1';
trial{
trial_type = first_response;
trial_duration = forever;
picture{
bitmap{
system_memory = true;
filename= "instruction_$k.PNG";
width = 1920; # resize to 300x400
height = 1080;};
x = 0;y = 0;};
code = "INSTRUCTION_$k";
response_active = true;
};
ENDLOOP;
}instruction_trial;
# pause text
trial{
trial_type = fixed;
trial_duration = 30000;
stimulus_event{
picture{
text{
font = "Helvetica";
font_size = 30;
font_color = 0,0,0;
background_color = 214,213,213;
caption = "Es folgt eine kleine Pause. \n \n
Du kannst dich etwas entspannen bevor es weiter geht.";
}pause_text;
x = 0; y = 0;};
code="PAUSE";
}pause_event;
}pause;
trial {
trial_type = fixed;
trial_duration = 10000;
stimulus_event{
picture{
}manipulation_screen;
code="MANUPULATION_SCREEN";
port_code=99;
port = 1;
}manipulation_event;
}manipulation;
# countdown
array{
LOOP $i 3;
$k = '$i + 1';
trial{
trial_duration = 1000;
picture {
text{
font = "Helvetica";
font_size = 50;
font_color = 0,0,0;
background_color =214,213,213;
caption = "$k";
};
x = 0; y = 0;};
code = "COUNTDOWN_$k";
};
ENDLOOP;
}countdown;
# end of task
trial{
trial_type = first_response;
trial_duration = forever;
stimulus_event{
picture{
text{
font = "Helvetica";
font_size = 30;
font_color = 255,255,255;
background_color = 0,0,0;
caption = "<font size='40'><b>Ende.</b></font>. \n \n \n \n
Du hast es geschafft! Wir sind fertig für heute. \n \n
Vielen Dank für Ihre Teilnahme. \n \n \n \n
Bitte warte auf den Versuchsleiter";
}the_end_text;
x = 0;
y = 0;
};
code="FINISHED";
};
}the_end;
# mood ratings
array {
LOOP $i 13;
$k = '$i + 1';
trial {
trial_type = first_response;
trial_duration = forever;
picture {
bitmap { system_memory = true; filename= "BFolie$k.PNG"; };
x = 0; y = 0;};
code = "MOOD_Rating_$k";
response_active = true;
};
ENDLOOP;
} mood_rating;
############################################
## DPX-Task Trial-Elemente ##
############################################
#################
### PICTURES ####
#################
### fix point
# picture { bitmap { system_memory = true; filename = "fix_point.PNG"; }; x = 0; y = 0;} fix_point;
picture { bitmap { system_memory = true; filename = "fix_point.PNG"; alpha = -1; }; x = 0; y = 0;} fix_point;
### CUES ###
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Cue0.PNG"; alpha = -1; };x = 0; y = 0;} Cue_A;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Cue1.PNG"; alpha = -1; };x = 0; y = 0;} Cue_B_1;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Cue2.PNG"; alpha = -1; };x = 0; y = 0;} Cue_B_2;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Cue3.PNG"; alpha = -1; };x = 0; y = 0;} Cue_B_3;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Cue4.PNG"; alpha = -1; };x = 0; y = 0;} Cue_B_4;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Cue5.PNG"; alpha = -1; };x = 0; y = 0;} Cue_B_5;
### PROBES ####
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Probe0.PNG"; alpha = -1; };x = 0; y = 0;} Probe_X;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Probe1.PNG"; alpha = -1; };x = 0; y = 0;} Probe_Y_1;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Probe2.PNG"; alpha = -1; };x = 0; y = 0;} Probe_Y_2;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Probe3.PNG"; alpha = -1; };x = 0; y = 0;} Probe_Y_3;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Probe4.PNG"; alpha = -1; };x = 0; y = 0;} Probe_Y_4;
picture { background_color = 214, 213, 213; bitmap { system_memory = true; filename = "Probe5.PNG"; alpha = -1; };x = 0; y = 0;} Probe_Y_5;
#######################################################
############ CUE-Trials #########################
############ #########################
############ #########################
# inter-stimulus interval (ISI)
trial{
trial_type = fixed;
trial_duration = 500;
stimulus_event {
picture fix_point;
time = 0;
code = "ISI";
}isi_event;
}isi_screen;
# inter-trial interval (ITI)
trial{
trial_type = fixed;
trial_duration = 1000;
stimulus_event {
picture fix_point;
time = 0;
code = "ITI";
}iti_event;
}iti_screen;
trial {
trial_duration = 400;
trial_type = fixed;
all_responses = false;
stimulus_event {picture Cue_A;
time = 0;
duration = 400;
code = "Cue_A";
port_code = 70;
port = 1;
response_active = true;
} Cue_event1;
} A_trial;
trial {
trial_duration = 400;
trial_type = fixed;
all_responses = false;
stimulus_event {picture Cue_B_1;
time = 0;
duration = 400;
code = "Cue_B_1";
port_code = 71;
port = 1;
response_active = true;
} Cue_event2;
} B_trial_1;
trial {
trial_duration = 400;
trial_type = fixed;
all_responses = false;
stimulus_event {picture Cue_B_2;
time = 0;
duration = 400;
code = "Cue_B_2";
port_code = 72;
port = 1;
response_active = true;
} Cue_event3;
} B_trial_2;
trial {
trial_duration = 400;
trial_type = fixed;
all_responses = false;
stimulus_event {picture Cue_B_3;
time = 0;
duration = 400;
code = "Cue_B_3";
port_code = 73;
port = 1;
response_active = true;
} Cue_event4;
} B_trial_3;
trial {
trial_duration = 400;
trial_type = fixed;
all_responses = false;
stimulus_event {picture Cue_B_4;
time = 0;
duration = 400;
code = "Cue_B_4";
port_code = 74;
port = 1;
response_active = true;
} Cue_event5;
} B_trial_4;
trial {
trial_duration = 400;
trial_type = fixed;
all_responses = false;
stimulus_event {picture Cue_B_5;
time = 0;
duration = 400;
code = "Cue_B_5";
port_code = 75;
port = 1;
response_active = true;
} Cue_event6;
} B_trial_5;
#######################################################
############ PROBE-trials #########################
############ #########################
############ #########################
trial {
trial_duration = 750;
trial_type = first_response;
stimulus_event {picture Probe_X;
time = 0;
duration = 500;
code = "Probe_X";
port_code = 76;
port = 1;
response_active = true;
target_button = 1;
} Probe_event1;
} X_trial;
trial {
trial_duration = 750;
trial_type = first_response;
stimulus_event {picture Probe_Y_1;
time = 0;
duration = 500;
code = "Probe_Y_1";
port_code = 77;
port = 1;
response_active = true;
target_button = 1;
} Probe_event2;
} Y_trial_1;
trial {
trial_duration = 750;
trial_type = first_response;
stimulus_event {picture Probe_Y_2;
time = 0;
duration = 500;
code = "Probe_Y_2";
port_code = 78;
port = 1;
response_active = true;
target_button = 1;
} Probe_event3;
} Y_trial_2;
trial {
trial_duration = 750;
trial_type = first_response;
stimulus_event {picture Probe_Y_3;
time = 0;
duration = 500;
code = "Probe_Y_3";
port_code = 79;
port = 1;
response_active = true;
target_button = 1;
} Probe_event4;
} Y_trial_3;
trial {
trial_duration = 750;
trial_type = first_response;
stimulus_event {picture Probe_Y_4;
time = 0;
duration = 500;
code = "Probe_Y_4";
port_code = 80;
port = 1;
response_active = true;
target_button = 1;
} Probe_event5;
} Y_trial_4;
trial {
trial_duration = 750;
trial_type = first_response;
stimulus_event {picture Probe_Y_5;
time = 0;
duration = 500;
code = "Probe_Y_5";
port_code = 81;
port = 1;
response_active = true;
target_button = 13;
} Probe_event6;
} Y_trial_5;
########
######## FEEDBACK #######
########
trial {
trial_type = fixed;
all_responses = false;
trial_duration = 500;
stimulus_event{
picture {
text {
font="Calibri";
font_size = 36;
font_color = 0,255,0;
background_color= 214,213,213;
caption = "Richtig!";
} Correct;
x = 0; y = 0;
} FB_picture_1;
time = 0;
code = "HIT_FB";
port_code = 85;
port = 1;
} Feedback_event_1;
}FB_Correct;
trial {
trial_type = fixed;
all_responses = false;
trial_duration = 500;
stimulus_event{
picture {
text {
font="Calibri";
font_size = 36;
font_color =255,0,0;
background_color=214,213,213;
caption = "Falsch!";
}False;
x = 0; y = 0;
} FB_picture_2;
time=0;
code = "ERROR_FB";
port_code = 86;
port = 1;
} Feedback_event_2;
}FB_Falsch;
trial {
trial_type = fixed;
all_responses = false;
trial_duration = 500;
stimulus_event{
picture {
text {
font="Calibri";
font_size = 36;
font_color = 255,185,15;
background_color= 214,213,213;
caption = "Zu langsam!";
}Slow;
x = 0; y = 0;
}FB_picture_3;
time = 0;
code = "SLOW_FB";
} Feedback_event_3;
}FB_Slow;
trial{
trial_type = fixed;
all_responses = false;
trial_duration = 2000;
stimulus_event{
picture {
text {
font="Calibri";
font_size = 36;
font_color =255,255,0;
background_color= 214,213,213;
caption = "Zu früh! \n Warten Sie auf die weiße Punkte";
}Feedback_text;
x = 0; y = 0;
}FB_picture_4;
time = 0;
code = "EARLY_FB";
}Feedback_event_4;
}Feedback_trial; |
3e9b22e2ac27b0ae840cd3ee966b69d29a161862 | bb3c300381ad1a419b5fb40891e830e534656595 | /test/testcases/bad_post_args2.tst | fb42b21cb6ce1a26586c53dd92e81db53747d4d8 | [] | no_license | DHorrible/visited_count | 60a082514dbce832fbd621223a44b0260300b34b | 5a7709b59c9feb2135844687d6303abb16991098 | refs/heads/master | 2021-04-17T00:41:52.110770 | 2020-03-24T22:53:14 | 2020-03-24T22:53:14 | 249,397,482 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 106 | tst | bad_post_args2.tst | METHOD='POST'
ARGS='my_json'
OUT='Status code is 206:
{"status": "error (206): The json is not correct"}'
|
82a8448f1c485c6459630e8de94a591fe460b02c | 47c032497e2d1d166b7f6688009c798a82003bbb | /4 fundamental subspaces.sce | 05854fb9005ac85159af3928a26f11ebd00574b8 | [] | no_license | mitravinda462/Linear-Algebra | a4bd070b9ca6aba6e92744ac7b7b1d34e4703f3f | 97174a1ad29a6d11f3077d2adb330877312fada9 | refs/heads/master | 2021-08-16T11:14:40.296151 | 2021-01-10T11:36:58 | 2021-01-10T11:36:58 | 240,181,145 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 825 | sce | 4 fundamental subspaces.sce | // The four fundamental subspaces of a matrix A
disp('Enter the coefficient matrix');
a11=input("Enter value for a11: ");
a12=input("Enter value for a12: ");
a13=input("Enter value for a13: ");
a21=input("Enter value for a21: ");
a22=input("Enter value for a22: ");
a23=input("Enter value for a23: ");
a31=input("Enter value for a31: ");
a32=input("Enter value for a32: ");
a33=input("Enter value for a33: ");
A=[a11,a12,a13;a21,a22,a23;a31,a32,a33];
disp(A,"A=");
[m,n]=size(A);
disp(m,"m=");
disp(n,"n=");
[v,pivot]=rref(A);
disp(rref(A));
disp(v);
r=length(pivot);
disp(r,"rank=");
cs=A(:,pivot);
disp(cs,"column space of A, C(A)=");
ns=kernel(A);
disp(ns,"null space of A, N(A)=");
rs=A(1:r,:);
disp(rs,"row space of A, C(At)=");
lns=kernel(A');
disp(lns,"left null space of A, N(At)=");
|
f115598e1a3ae22562597ed2837d86e52a128ed7 | ac66d3377862c825111275d71485e42fdec9c1bd | /Resources/res/map/map1101.sce | 39ecb700933a3bfbbbb788e994f7d1d7f2666c65 | [] | no_license | AIRIA/CreazyBomber | 2338d2ad46218180f822682d680ece3a8e0b46c3 | 68668fb95a9865ef1306e5b0d24fd959531eb7ad | refs/heads/master | 2021-01-10T19:58:49.272075 | 2014-07-15T09:55:00 | 2014-07-15T09:55:00 | 19,776,025 | 0 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 3,113 | sce | map1101.sce | <?xml version="1.0" encoding="UTF-8"?>
<Project Name="map1101" Width="13" Height="9" CellSize="40" BackgroundSize="1" Background="7plus.png">
<Cell Name="池塘-中" X="1" Y="1" />
<Cell Name="池塘-中" X="2" Y="1" />
<Cell Name="池塘-中" X="3" Y="1" />
<Cell Name="池塘-中" X="4" Y="1" />
<Cell Name="池塘-中" X="5" Y="1" />
<Cell Name="池塘-中" X="6" Y="1" />
<Cell Name="池塘-中" X="7" Y="1" />
<Cell Name="池塘-中" X="8" Y="1" />
<Cell Name="池塘-中" X="9" Y="1" />
<Cell Name="池塘-中" X="10" Y="1" />
<Cell Name="池塘-中" X="11" Y="1" />
<Cell Name="池塘-中" X="1" Y="2" />
<Cell Name="池塘-内角右下" X="2" Y="2" />
<Cell Name="池塘-下" X="3" Y="2" />
<Cell Name="池塘-下" X="4" Y="2" />
<Cell Name="池塘-下" X="5" Y="2" />
<Cell Name="池塘-下" X="6" Y="2" />
<Cell Name="池塘-下" X="7" Y="2" />
<Cell Name="池塘-下" X="8" Y="2" />
<Cell Name="池塘-下" X="9" Y="2" />
<Cell Name="池塘-内角左下" X="10" Y="2" />
<Cell Name="池塘-中" X="11" Y="2" />
<Cell Name="池塘-内角右下" X="1" Y="3" />
<Cell Name="池塘-右下" X="2" Y="3" />
<Cell Name="木桩2" X="4" Y="3" />
<Cell Name="石块2" X="5" Y="3" />
<Cell Name="Jobs(大型建筑)" X="6" Y="3" arg0="3" arg1="1" arg2="1,1" />
<Cell Name="石块2" X="7" Y="3" />
<Cell Name="木桩2" X="8" Y="3" />
<Cell Name="木桩2" X="9" Y="3" />
<Cell Name="池塘-左" X="10" Y="3" />
<Cell Name="池塘-中" X="11" Y="3" />
<Cell Name="池塘-右" X="1" Y="4" />
<Cell Name="出生点" X="2" Y="4" />
<Cell Name="蘑菇怪-0" X="9" Y="5" arg0="21" />
<Cell Name="池塘-左" X="10" Y="4" />
<Cell Name="池塘-中" X="11" Y="4" />
<Cell Name="池塘-内角右上" X="1" Y="5" />
<Cell Name="池塘-右上" X="2" Y="5" />
<Cell Name="木桩2" X="3" Y="5" />
<Cell Name="木桩2" X="4" Y="5" />
<Cell Name="木桩2" X="5" Y="5" />
<Cell Name="木桩2" X="6" Y="5" />
<Cell Name="木桩2" X="7" Y="5" />
<Cell Name="木桩2" X="8" Y="5" />
<Cell Name="通关点-1" X="9" Y="5" />
<Cell Name="池塘-左" X="10" Y="5" />
<Cell Name="池塘-中" X="11" Y="5" />
<Cell Name="池塘-中" X="1" Y="6" />
<Cell Name="池塘-内角右上" X="2" Y="6" />
<Cell Name="池塘-上" X="3" Y="6" />
<Cell Name="池塘-上" X="4" Y="6" />
<Cell Name="池塘-上" X="5" Y="6" />
<Cell Name="池塘-上" X="6" Y="6" />
<Cell Name="池塘-上" X="7" Y="6" />
<Cell Name="池塘-上" X="8" Y="6" />
<Cell Name="池塘-上" X="9" Y="6" />
<Cell Name="池塘-内角左上" X="10" Y="6" />
<Cell Name="池塘-中" X="11" Y="6" />
<Cell Name="池塘-中" X="1" Y="7" />
<Cell Name="池塘-中" X="2" Y="7" />
<Cell Name="池塘-中" X="3" Y="7" />
<Cell Name="池塘-中" X="4" Y="7" />
<Cell Name="池塘-中" X="5" Y="7" />
<Cell Name="池塘-中" X="6" Y="7" />
<Cell Name="池塘-中" X="7" Y="7" />
<Cell Name="池塘-中" X="8" Y="7" />
<Cell Name="池塘-中" X="9" Y="7" />
<Cell Name="池塘-中" X="10" Y="7" />
<Cell Name="池塘-中" X="11" Y="7" />
</Project> |
0517335f5f47937fef2f78ce03c2a485250a5bf0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2375/CH11/EX11.4/ex11_4.sce | 81de57383bce1ae9849857bc5b653363da20d1cd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,229 | sce | ex11_4.sce | // Exa 11.4
clc;
clear;
close;
format('v',5)
// Given data
f= 100*10^3;// in Hz
h_fe = 100;
h_ie = 1* 10^3;// in ohm
V_CE = 5;// in V
V_BE= 0.7;// in V
I_C = 1* 10^-3;// in A
I_B= 0.01*10^-3;// in A
V_CC = 20;// in V
R_E = 1* 10^3;// in ohm
I_E = I_C;// in A
R_C = (V_CC-V_CE-(I_E*R_E))/I_C;// in ohm
R = 10*10^3;// in k ohm
k = R_C/R;
h_fe=(23+29/k+4*k);
// Formula f= 1/(2*%pi*R*C*sqrt(6+4*k))
C= 1/(2*%pi*R*f*sqrt(6+4*k));// in F
// R= R3+R1 || R2+h_ie = R3+h_ie (approx)
R3= R-h_ie;// in ohm
V_B= V_BE+I_E*R_E;// in V
R2= 10*10^3;// in ohm (assumed value)
I_R2= V_B/R2;// current in R2 in A
V_R1= V_CC-V_B;// drop across R1 in V
I_R1= I_R2+I_B;// in A
R1= V_R1/I_R1;// in ohm
R_E= R_E*10^-3;// in k ohm
R_C= R_C*10^-3;// in k ohm
R= R*10^-3;// in k ohm
R1= R1*10^-3;// in k ohm
R2= R2*10^-3;// in k ohm
R3= R3*10^-3;// in k ohm
C=C*10^12;// in pF
disp(R_E,"The value of R_E in k ohm is");
disp(R_C,"The value of R_C in k ohm is");
disp(R,"The value of R in k ohm is");
disp("The value of h_fe >= "+string(h_fe));
disp(C,"The value of C in pF is : ")
disp(R3,"The value of R3 in k ohm is : ")
disp(R2,"The value of R2 in k ohm is : ")
disp(R1,"The value of R1 in k ohm is : ")
|
2a10d4336efbfbbae3d4ff8fe779013285e8bbd6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1985/CH7/EX7.1/Chapter7_Example1.sce | 7eed6ce27de390e0d877e9baf7c5ca0b37ca8b49 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 205 | sce | Chapter7_Example1.sce | clc
clear
//Input data
I=0.1//Intensity of sound produced by thunder in W/m^2
//Calculations
b=10*log10(I/10^-12)//Relative intensity in dB
//Output
printf('The intensity level is %3.0f dB',b)
|
942d4908f489227cfceae18f3c11e79dd614aa28 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2705/CH4/EX4.12/Ex4_12.sce | 2ef1bbed353f305dd82867ec933c7c493b767341 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 700 | sce | Ex4_12.sce | clear;
clc;
disp('Example 4.12');
// aim : To determine
// the dryness fraction of steam after throttling
// given values
P1 = 1.4;// pressure before throttling, [MN/m^2]
x1 = .7;// dryness fraction before throttling
P2 = .11;// pressure after throttling, [MN/m^2]
// solution
// from steam table
hf1 = 830.1;// [kJ/kg]
hfg1 = 1957.7;// [kJ/kg]
h1 = hf1 + x1*hfg1; // [kJ/kg]
hf2 = 428.8;// [kJ/kg]
hfg2 = 2250.8;// [kJ/kg]
// now for throttling,
// hf1+x1*hfg1=hf2+x2*hfg2; where x2 is dryness fraction after throttling
x2=(h1-hf2)/hfg2; // final dryness fraction
mprintf('\n Dryness fraction of steam after throttling is = %f \n',x2);
// End
|
6ed7f8cae6c6a5e9b6d88946c55e20054607e209 | 1b3c63cb7f854378c5f1991637692ae2bf8265ac | /nmodels/testnmodels.sce | f8c8a2b03ec18eee89f0df29ea0eb84ab2a0296e | [] | no_license | FOSSEE-Internship/FOSSEE-Control-Systems-Toolbox | 9900107267e5f508f77858d128e01293966e9e10 | 2878a38e4e55806b1777f9da2e0395f321e1c952 | refs/heads/master | 2020-12-02T18:20:34.659219 | 2017-10-26T12:26:57 | 2017-10-26T12:26:57 | 96,516,803 | 0 | 1 | null | 2017-10-26T13:44:56 | 2017-07-07T08:24:44 | Scilab | UTF-8 | Scilab | false | false | 156 | sce | testnmodels.sce | //example1:
sys1=ssrand(2,4,5);
k1=nmodels(sys)
//example2:
sys2=rss(2,4,5,10,3);
k2=nmodels(sys2)
disp("k1:")
disp(k1);
disp("k2:")
disp(k2)
|
f76bd63cfcf281c19f502f1591508d0065a91b4e | bd9ba5abb6de1e9d9485b5e98b2b68868aab21db | /Lab/signal functions/radar/radarcorrelation.sce | ff4a83a7bacf247791366bbc44094f904aafc0ab | [] | no_license | ShubhamRattra/Scilab_programs | c61b6538a064afe82c99507c1064cd55bbd870fa | de2bf6ab0de0b1a19c4903bb13819edc39f93d0e | refs/heads/master | 2023-03-04T17:53:58.414180 | 2021-02-11T08:08:11 | 2021-02-11T08:08:11 | 296,920,175 | 2 | 2 | null | 2021-01-11T15:53:39 | 2020-09-19T17:37:42 | Scilab | UTF-8 | Scilab | false | false | 2,276 | sce | radarcorrelation.sce | clc ;
clear ;
x =[0 1 2 3 2 1 0]; // Triangle pulse transmitted by radar
n =[ -3 -2 -1 0 1 2 3]; // Index of Triangular Pulse
D =10; // Delay amount
nd = n+ D ; // Index of Delayed Signal
y = x ; // Delayed Signal
scf () ;
subplot (2 ,1 ,1) ;
plot2d3(n,x,0.1);
title ( 'Original Transmitted Signal','color','red','fontsize',4) ;
xlabel ("Index","fontsize",2,"color","blue") ;
ylabel ("Amplitude","fontsize",2,"color","blue") ;
subplot (2 ,1 ,2) ;
plot2d3(nd,y,0.1);
title ( 'DelayedSignal','color','red','fontsize',4) ;
xlabel ("Index","fontsize",2,"color","blue") ;
ylabel ("Amplitude","fontsize",2,"color","blue") ;
w = rand (1 , length (x ) ) ; // Noise Generation
nw = nd ;
scf () ;
plot2d3(nw,w,0.1);
title ( 'Noisy Signal','color','red','fontsize',4) ;
xlabel ("Index","fontsize",2,"color","blue") ;
ylabel ("Amplitude","fontsize",2,"color","blue") ;
R = y + w; // Original Signal + Noise
nr = nw ; // Index of received signal at RADAR
nr_fold = flipdim ( nr,2 ) ;
R_fold = flipdim (R,2 ) ;
nmin =min( n ) + min ( nr_fold ) ; // Lowest index of y(n)
nmax =max( n ) + max ( nr_fold ) ; // Highest index of y(n)
n_received = nmin : nmax ;
Received_Presence = xcorr (x , R_fold ) ; // Convolution of Original signal and Received Signal in the Presence of Object(Equivalent to Correlation) //
scf () ;
subplot (2 ,1 ,1) ;
plot2d3(n_received , Received_Presence ,0.1);
title ( 'Correlation in the Presence of Object','color','red','fontsize',4) ;
xlabel ("Index","fontsize",2,"color","blue") ;
ylabel ("Correlation Value","fontsize",2,"color","blue") ;
R = w ; // only Noise Signal
nr = nw ;
nr_fold = flipdim ( nr,2 ) ;
R_fold = flipdim (R,2 ) ;
nmin =min( n ) + min ( nr_fold ) ; // Lowest index of y(n)
nmax =max( n ) + max ( nr_fold ) ; // Highest index of y(n)
n_received = nmin : nmax ;
Received_Absence = xcorr (x , R_fold ) ; // Convolution of Original transmitted signal and Received Signal in the Absence of Object(Equivalent to Correlation) //
subplot (2 ,1 ,2) ;
plot2d3(n_received , Received_Absence ,0.1);
title ( 'Correlation in the Absence of Object','color','red','fontsize',4) ;
xlabel ("Index","fontsize",2,"color","blue") ;
ylabel ("Correlation Value","fontsize",2,"color","blue") ;
|
5092da10af7e3a117a82b014ec3a6fe14b0f2507 | 1489f5f3f467ff75c3223c5c1defb60ccb55df3d | /tests/test_cache_3_e.tst | 8037642f6eb88ec34e3106e374b01366f5d651db | [
"MIT"
] | permissive | ciyam/ciyam | 8e078673340b43f04e7b0d6ac81740b6cf3d78d0 | 935df95387fb140487d2e0053fabf612b0d3f9e2 | refs/heads/master | 2023-08-31T11:03:25.835641 | 2023-08-31T04:31:22 | 2023-08-31T04:31:22 | 3,124,021 | 18 | 16 | null | 2017-01-28T16:22:57 | 2012-01-07T10:55:14 | C++ | UTF-8 | Scilab | false | false | 509 | tst | test_cache_3_e.tst | total_physical_store_count = 0
total_physical_fetch_count = 65536
<cache info>
items cached: 0/1000
regions in use: 1/1
items per region: 10000
counter: 32768
temp_read_num: 65535
temp_write_num: -1
item_req_count = 65536
item_hit_count = 0
item hit ratio = 0%
<cache region: 0-9999>
item_cost: 0
flush_cost: 0
counter_total: 0
most_recently_used: -1
least_recently_used: -1
most_recently_changed: -1
least_recently_changed: -1
most_recently_unchanged: -1
least_recently_unchanged: -1
|
e8f05727de769eec2462938e6c86c8d6b18a8548 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3638/CH13/EX13.2/Ex13_2.sce | 39df7da91ad41000628d465bce7e8fb7912c663c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 519 | sce | Ex13_2.sce | //Introduction to Fiber Optics by A. Ghatak and K. Thyagarajan, Cambridge, New Delhi, 1999
//Example 13.2
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;
//given
B=2.5e9;//pulse rate of signal in bits/sec
mprintf("\n In the RZ format, we would require a bandwidth = %.2f GHz",B/1e9);//In RZ format, Deltaf=B and Division by 10^9 to convert into GHz
mprintf("\n In the NRZ format, we would require a bandwidth = %.2f GHz",(B/2)/1e9);//In RZ format, Deltaf=B/2 and Division by 10^9 to convert into GHz
|
ce5f3208e8e9029f85da25b7472b77046a2dcfda | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH5/EX5.27/Ch05Ex27.sce | cf5b6f5425548fcff9dd0a297e8c1ef6bdcb636d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 943 | sce | Ch05Ex27.sce | // Scilab code Ex5.27: Pg:233 (2008)
clc;clear;
Lambda = 6000e-08; //Mean wavelength of light, cm
a = 200; // Diameter of the objective of a telescope, cm
a_prime = 0.2; // Aperture of the eye lens, cm
f = 2.54; // Focal length of eye-piece, cm
theta = 1.22*Lambda/a; // The smallest angular separation resolvable by a telescope objective of diameter a, radian
theta_prime = 1.22*Lambda/a_prime; // The smallest angle that can be resolved by the eye where a^' is the aperture of the eye, radian
MP = theta_prime/theta; // Magnifying power of the telescope
// As MP = F/f, solving for F
F = MP*f; // The minimum focal length of the objective, cm
printf("\nThe minimum focal length of the objective if the full resolving power of the telescope is to be utilized = %4d cm", F);
// Result
// The minimum focal length of the objective if the full resolving power of the telescope is to be utilized = 2540 cm |
e7d8f2f58908ade8826149b5268f337fe1f7e1f1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3863/CH4/EX4.1/Ex4_1.sce | cc43c5926530fa0a67973e47747281e9c9953fdd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 741 | sce | Ex4_1.sce | clear
//
//Given
//Variable declaration
P=60*10**3 //Load in N
d=4*10 //diameter in mm
L=5*10**3 //Length of rod in mm
E=2e5 //Youngs Modulus in N/sq.mm
//Calculation
A=(%pi/4)*d**2 //Area in sq.mm
V=int(A*L) //Volume of rod in cubic.mm
//case (ii):stress in the rod
sigma=(P/A) //stress in N/sq.mm
//case (i):stretch in the rod
x=((sigma/E)*L) //stretch or extension in mm
//case (iii):strain energy absorbed by the rod
U=((sigma**2/(2*E)*V))*1e-3 //strain energy absorbed by the rod in Nm
//Result
printf("\n stress in the rod = %0.3f N/mm^2",sigma)
printf("\n stretch in the rod = %0.3f mm",x)
printf("\n strain energy absorbed by the rod = %0.3f N-m",U)
|
f55fc245090a4c090fd1c611093a36a88fbe1ef7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2054/CH1/EX1.32/ex1_32.sce | 714fe095373ba6aad505853cde70610fd5a34666 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 746 | sce | ex1_32.sce | //Exa:1.32
clc;
clear;
close;
f=50;//in hertz
V=440;//in volts
P_o=110*1000;//in watts
P=24;//No.Of Poles
N_s=120*f/P;//Synchronous Speed (in rpm)
N=245;//in rpm
s_f=(N_s-N)/N_s;//Full load Speed
T_f=P_o/(2*%pi*N/60);//Full load Torque (in N-m)
R=0.04;//in ohms
R2=R/2;//Rotor resistance per phase (in ohms)
K=1.25;// ratio of stator turns to rotor turns
R_2=R2*K^2;//Rotor resistance reffered to stator (in ohms)
X_2=sqrt(((V^2*R_2*1.2/(T_f*500*%pi))-R_2^2)*(1/R2)^2);//in ohms
s=(N_s-175)/N_s;//slip at 175 rpm
T=T_f*175^2/N^2;//Torque at 175 rpm (in N-m)
b=-(V^2*s*60/(T*2*%pi*N_s));
a=1;
c=(s*X_2)^2;
R_n=(-b+sqrt(b^2-4*a*c))/(2*a)
R_ext=(R_n-R_2)/K^2;
disp(R_ext,'Resistance to be added to each slip ring (in ohms)=') |
1ddae98d156072f36effb3398faf35d377677189 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3754/CH3/EX3.3/3_3.sce | d390f43ad0a24a431b0dfe17886ea66cf2f7038f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | 3_3.sce | clear//
//Variables
Q = 7.5 //Charge (in Coulomb)
t = 0.5 //Time (in minute)
//Calculation
t = 0.5 * 60 //Time (in seconds)
I= Q/t //Current (in Ampere)
//Result
printf("\n The current in the element is %0.3f A.",I)
|
b07b36b0ae81f4e6aa069e57a44b645acf6c5407 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3843/CH7/EX7.5/Ex7_5.sce | bb7cc1cf13fc0fc3982c5ca693deb3ccc2b9e290 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 301 | sce | Ex7_5.sce | // Example 7_5
clc;funcprot(0);
// Given data
T=500;// °F
P=300;// psia
T_0=76;// °F
// Calculation
// From the superheated steam tables,
h=1257.5;// Btu/lbm
S=1.5701;// Btu/lbm.°R
E=h-((T_0+460)*S);// The exergy of steam in Btu/lbm
printf("\nThe exergy of steam,E=%3.1f Btu/lbm",E);
|
8eec10aec737ca20df5a17171651e79258c38b9b | dd1ecbd8dc9f2817544517bd6d33ef7c0fffccde | /projects/pp3/LongNameTest.tst | 9737de0b6ce8cee876a96441addca7377007ec6d | [] | no_license | cujun/Nand2Tetris | b32254a2756e548832edfe6af535d24ac683226e | f745b58858328dc407e6770704a6ee9601079f0a | refs/heads/master | 2021-01-22T00:09:30.350789 | 2017-12-20T07:27:53 | 2017-12-20T07:27:53 | 102,185,045 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,831 | tst | LongNameTest.tst | load LongNameTest.hdl,
output-file LongNameTest.out,
compare-to LongNameTest.cmp,
output-list longInputA%B3.1.3 xy%B3.1.3 xyz%B3.1.3 xyzu%B3.1.3 xyzuvwabc%B3.1.3 out%B3.1.3 ;
set longInputA 0,
set xy 0,
set xyz 0,
set xyzu 0,
set xyzuvwabc 0,
eval,
output;
set longInputA 1,
set xy 0,
set xyz 0,
set xyzu 0,
set xyzuvwabc 0,
eval,
output;
set longInputA 0,
set xy 1,
set xyz 0,
set xyzu 0,
set xyzuvwabc 0,
eval,
output;
set longInputA 1,
set xy 1,
set xyz 0,
set xyzu 0,
set xyzuvwabc 0,
eval,
output;
set longInputA 0,
set xy 0,
set xyz 1,
set xyzu 0,
set xyzuvwabc 0,
eval,
output;
set longInputA 1,
set xy 0,
set xyz 1,
set xyzu 0,
set xyzuvwabc 0,
eval,
output;
set longInputA 0,
set xy 1,
set xyz 1,
set xyzu 0,
set xyzuvwabc 0,
eval,
output;
set longInputA 1,
set xy 1,
set xyz 1,
set xyzu 0,
set xyzuvwabc 0,
eval,
output;
set longInputA 0,
set xy 0,
set xyz 0,
set xyzu 1,
set xyzuvwabc 0,
eval,
output;
set longInputA 1,
set xy 0,
set xyz 0,
set xyzu 1,
set xyzuvwabc 0,
eval,
output;
set longInputA 0,
set xy 1,
set xyz 0,
set xyzu 1,
set xyzuvwabc 0,
eval,
output;
set longInputA 1,
set xy 1,
set xyz 0,
set xyzu 1,
set xyzuvwabc 0,
eval,
output;
set longInputA 0,
set xy 0,
set xyz 1,
set xyzu 1,
set xyzuvwabc 0,
eval,
output;
set longInputA 1,
set xy 0,
set xyz 1,
set xyzu 1,
set xyzuvwabc 0,
eval,
output;
set longInputA 0,
set xy 1,
set xyz 1,
set xyzu 1,
set xyzuvwabc 0,
eval,
output;
set longInputA 1,
set xy 1,
set xyz 1,
set xyzu 1,
set xyzuvwabc 0,
eval,
output;
set longInputA 0,
set xy 0,
set xyz 0,
set xyzu 0,
set xyzuvwabc 1,
eval,
output;
set longInputA 1,
set xy 0,
set xyz 0,
set xyzu 0,
set xyzuvwabc 1,
eval,
output;
set longInputA 0,
set xy 1,
set xyz 0,
set xyzu 0,
set xyzuvwabc 1,
eval,
output;
set longInputA 1,
set xy 1,
set xyz 0,
set xyzu 0,
set xyzuvwabc 1,
eval,
output;
set longInputA 0,
set xy 0,
set xyz 1,
set xyzu 0,
set xyzuvwabc 1,
eval,
output;
set longInputA 1,
set xy 0,
set xyz 1,
set xyzu 0,
set xyzuvwabc 1,
eval,
output;
set longInputA 0,
set xy 1,
set xyz 1,
set xyzu 0,
set xyzuvwabc 1,
eval,
output;
set longInputA 1,
set xy 1,
set xyz 1,
set xyzu 0,
set xyzuvwabc 1,
eval,
output;
set longInputA 0,
set xy 0,
set xyz 0,
set xyzu 1,
set xyzuvwabc 1,
eval,
output;
set longInputA 1,
set xy 0,
set xyz 0,
set xyzu 1,
set xyzuvwabc 1,
eval,
output;
set longInputA 0,
set xy 1,
set xyz 0,
set xyzu 1,
set xyzuvwabc 1,
eval,
output;
set longInputA 1,
set xy 1,
set xyz 0,
set xyzu 1,
set xyzuvwabc 1,
eval,
output;
set longInputA 0,
set xy 0,
set xyz 1,
set xyzu 1,
set xyzuvwabc 1,
eval,
output;
set longInputA 1,
set xy 0,
set xyz 1,
set xyzu 1,
set xyzuvwabc 1,
eval,
output;
set longInputA 0,
set xy 1,
set xyz 1,
set xyzu 1,
set xyzuvwabc 1,
eval,
output;
set longInputA 1,
set xy 1,
set xyz 1,
set xyzu 1,
set xyzuvwabc 1,
eval,
output;
|
311559a2ede57ae7e6417a162864f28d6626a617 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3511/CH6/EX6.13/Ex6_13.sce | 6924b887cbd60626b2d2bee3e4933ef52ed3b5e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 988 | sce | Ex6_13.sce | clc;
rp=4; // Pressure ratio
eff_c=0.86; // Compressor efficiency
eff_Thp=0.84;// High pressure turbine efficiency
eff_Tlp=0.8;// Low pressure turbine efficiency
eff_M=0.92; // Mechanical efficiency
T03=660+273; // in kelvin
T05=625+273; // In kelvin
T01=15+273; // Inlet temperature in kelvin
p01=1; // Inlet pressure in bar
Cp=1.005;// Specific heat of air at constant pressure in kJ/kg K
r=1.4; // Specific heat ratio of air
eff= 0.75; // Heat exchanger effectiveness
T_02=T01*(rp)^((r-1)/r);
T02=((T_02-T01)/eff_c)+T01;
T04=T03-((T02-T01)/eff_M);
// In HP turbine
T_04=T03-((T03-T04)/eff_Thp);
p_04=rp/(T03/T_04)^(r/(r-1));
// In LP turbine
p05=p_04;p_06=p01;
T_06=T05/(p05/p_06)^((r-1)/r);
T06=T05-(eff_Tlp*(T05-T_06));
T07=T02+eff*(T06-T02);
Q=Cp*(T03-T07+T05-T04);
Wc=Cp*(T02-T01);
WT=Cp*(T03-T04+T05-T06);
eff_th=(WT-Wc)/Q;
disp ("bar",p_04,"(i).Pressure of gas entering low pressure turbine = ");
disp ("%",eff_th*100,"Overall efficiency = ");
|
c31763129febb57d2f0784d3425830c50edf2cd1 | cf99f338f2e97fd7e8ae1ad9b640101832f787ba | /case-studies/week-6/week-6-q1.sce | 8ca2b7195f7368cf12a98c9e10c565ed276d13ec | [] | no_license | vsujeesh/BN5205 | b8e88324c1c97971ba3d95c3125d05676b6e4996 | 7386a440ed3e954c4aeb490eebd948d35186635d | refs/heads/master | 2022-03-13T01:00:24.783429 | 2019-10-22T03:23:55 | 2019-10-22T03:23:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,387 | sce | week-6-q1.sce | clear;
clf;
// model parameters
v_eff = 1e-5; // cm / s, effective velocity
D = 1e-4; // cm^2 / s, diffusion coefficient
C_max = 10e6; // mM, max leukocyte concentration
x_max = 0.2; // cm, length of channel
// solver parameters
dx = 0.01; // cm, space step
dt = 0.05; // s, time step
// check stability condition
delta = D * dt / dx / dx;
if delta > 0.5 then
disp("Failed stability condition");
else
// RHS to simplify equation
f = v_eff * dt / 2 / dx;
// coefficients for discretized form of diffusion-convection equation after
// rearranging
a = [delta + f, 1 - 2 * delta, delta - f];
time = 0:dt:35;
len = 0:dx:x_max;
num_nodes = length(len);
num_t_steps = length(time);
C = zeros(num_nodes, num_t_steps);
// initial conditions
C(1, :) = C_max;
for t = 1:num_t_steps - 1
for x = 2:num_nodes - 1
C(x, t + 1) = a(1) * C(x - 1, t) + a(2) * C(x, t) + a(3) * C(x + 1, t);
end // x
end // t
// normalized to C_max
plot(len', C(:, 5 / dt + 1) / C_max);
plot(len', C(:, 15 / dt + 1) / C_max, 'r-');
plot(len', C(:, 25 / dt + 1) / C_max, 'g-');
plot(len', C(:, 35 / dt + 1) / C_max, 'm-');
xlabel("$Distance\ along\ channel\ x$", "fontsize", 3);
ylabel("$Concentration\ normalized\ to\ C_{max}$", "fontsize", 3);
title("Leukocyte concentration profile");
legend(["t = 5s", "t = 15s", "t = 25s", "t = 35s"], -1);
end
|
5bb6427cc118f9cc2d98460b22f91e9be90e19a5 | c9fb7b224ecd2667e852df2fa71650e0d151ff40 | /OrangeProtocol/graph_results.sci | c117d7172d90c36b64b82d69c72c5f78146323f7 | [] | no_license | janeriongcol/ndsg-chupacabra | 13a2d3983fa57ae411fa9b665d255e5e7ed00d58 | bafd668a8247b965aee9d2482f0ead4ea6d158a3 | refs/heads/master | 2021-01-18T14:05:38.927008 | 2014-01-08T14:31:45 | 2014-01-08T14:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,053 | sci | graph_results.sci | // [!!!] Please change di accordingly
di = pwd() + "/Documents/workspace/tsis/"
//di = input("Please give directory address: ");
//while(%t)
//clf()
fn_arr = ["data_gcp2p_Utilization.txt", "data_gcp2p_ConnectionSetUpTime.txt", "data_gcp2p_PlaybackDelayTime.txt"]
index = ["1","2","3"]
disp([index' fn_arr'], "Please choose among the following:")
choice = input("Please input index number corresponding to the file: ")
choice = evstr(choice)
if (choice <> 1 & choice <> 2 & choice <> 3) then
disp("Stopping execution.");
//break;
end
// Read and open the data file
fd = mopen(di+fn_arr(choice),'r')
res = mgetl(fd, 3)
// Get graph legends
graph_title = res(1)
x_title = res(2)
y_title = res(3)
// Get x and y values
data = fscanfMat(di+fn_arr(choice))
x_arr = data(1:$,1)
y_arr = data(1:$,2)
//plot(x_arr, y_arr, 'xr')
plot(x_arr, y_arr, '--')
xtitle(graph_title, x_title, y_title)
mclose('all')
//end
|
8e00ba66070d3f147bc4e4f47d9e61d793e2b1b5 | b3285989ffe1c1bb555a67a92c4bbe7e1e39dcc5 | /Agrégation Mathieu/LP25 - Oscillateurs ; portraits de phase et non-linéarités/pend_simple.sce | daf81caeee6eb8d4731d9c0f1a5b512c553768f4 | [] | no_license | mubero/AgregationPhysique2020 | 82b840924dd800e8d614ecf3e24ab511b2326243 | 9a038fb0302059e9e5b8442ba765f918176916b0 | refs/heads/master | 2022-11-10T13:03:22.976863 | 2020-06-21T15:22:24 | 2020-06-21T15:22:24 | 270,004,658 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,389 | sce | pend_simple.sce | //********************************************************************************
clear all
// Définition des paramètres
l = 1. // m
g = 9.81 // m.s-2
m = 1. // kg
Omega2 = g/l; // pulsation du pendule
// Système différentiel
function du = Pendule(t,u)
du(1) = u(2);
du(2) = - Omega2*sin(u(1));
// du(2) = - Omega2*u(1);
endfunction
// Conditions initiales
theta0 = input("Angle initial (en rd): ");
vtheta0 = input("Vitesse angulaire initiale (en rd/s): ");
//theta0 = [-1.1*%pi ;1.1*%pi ;%pi/20;%pi/10;%pi/4;%pi/3;1.90;2.5 ; 3 ; 0 ;0 ; -1.1*%pi ; 1.1*%pi; -1.1*%pi ; 1.1*%pi];
//vtheta0 = [sqrt(2*g/l);-sqrt(2*g/l);0 ;0 ;0 ;0 ;0 ;0 ; 0 ; 3*sqrt(2*g/l) ; -3*sqrt(2*g/l);2.5 ; -2.5 ; 7.8; -7.8];
theta = linspace(-2*%pi,2*%pi,2000);
EP = m*g*l*(1 - cos(theta));
for k = 1:length(theta0)
E0 = (1/2)*m*(l^2)*(vtheta0(k))^2 + m*g*l*(1 - cos(theta0(k))); // Energie mécanique totale du pendule = Energei initiale
u0 = [theta0(k);vtheta0(k)];
t0 = 0;
ck = sin(theta0(k)/2);
[r]=delip(1,ck) // Période exacte
period = [r];
//period = 2*%pi/sqrt(Omega2);
// Paramètres de calcul
T = 100*period ; dt=200;
pas = period/dt;
t = t0:pas:T;
// Intégration
[u] = ode(u0,t0,t,Pendule); // u(1): angle(t) u(2): vitesse angulaire(t)
// Section de Poincaré
//for i=201:dt:length(t)
// n = (i-1)/dt;
// th1(n) = u(1,i);
// th2(n) = u(2,i);
//end
// // Espace des phases
// figure(1)
// h0 = gca();
// plot2d(u(1,:)',u(2,:)'/sqrt(Omega2));
// h0.data_bounds = [-1.1*%pi, -1.1*%pi ; 1.1*%pi, 1.1*%pi];
// h0.x_label.text = "Angle (rad)";
// h0.y_label.text = "Vitesse angulaire / Omega0 (rad)";
// h0.tight_limits=["on","on"];
// xgrid(2);
end
Ene = EP; Ene(:) = E0;
figure(2)
// Potentiel
subplot(2,2,1);
h1=gca();
plot2d(theta,EP,style = 2, leg = " Aspect énergétique ");
plot2d(theta,Ene,style = 2);
h1.data_bounds = [-1.1*%pi, 0 ; 1.1*%pi, 10];
h1.x_label.text = "Angle (rad)";
h1.y_label.text = "Ep(theta)";
h1.tight_limits=["on","on"];
xgrid(2);
// Solution theta(t)
subplot(2,2,2);
h3=gca();
plot2d(t',u(1,:)', style = 2, leg = " Position ");
h3.x_label.text = "Temps";
h3.y_label.text = "Angle";
xgrid(2);
// Espace des phases
subplot(2,2,3);
h2=gca();
plot2d(u(1,:)',u(2,:)/sqrt(Omega2)', style = 2, leg = "Espace des phases");
h2.data_bounds = [-1.1*%pi, -1.1*%pi ; 1.1*%pi, 1.1*%pi];
h2.x_label.text = "Angle (rad)";
h2.y_label.text = "Vitesse angulaire / Omega0 (rad)";
h2.tight_limits=["on","on"];
xgrid(2);
////// Section de Poincaré
//////subplot(2,2,4);
//////h4=gca();
//////h4.data_bounds = [-1.1*%pi, -1.1*%pi ; 1.1*%pi, 1.1*%pi];
//////h4.x_label.text = "Angle";
//////h4.y_label.text = "Vitesse angulaire";
//////h4.tight_limits=["on","on"];
//////plot2d(th1',th2', style = -1, leg = "Section de Poincaré (x,dx/dt)");
//////xgrid(2);
////// figure(2)
//////
////// h2 = gca();
////// h2.data_bounds = [-2*pi, 0 ; 2*pi, 2];
////// h2.tight_limits=["on","on"];
////// h2.x_label.text = "Angle (rad)";
////// h2.y_label.text = "Energie potentielle ((m+M/2)gl))";
////// plot2d(theta,EP,style = 2);
|
f00b12fa5e1d25cdcc42a3c3bb667887ec2869f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1457/CH6/EX6.7/6_7.sce | 177de98e07ad960d331bd0538be0f194471aba83 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 391 | sce | 6_7.sce | clc
//Initialization of variables
V1=8.02 //fps
V2=16.04 //fps
Q=481 //cfs
rho=1.94
A=10*6
d=3
//calculations
Fx=62.4*d*A - 62.4*d/2 *A/2 - rho*Q*(V2-V1)
V1m=2.56 //m/s
V2m=5.12 //m/s
Qm=15.4 //m^2/s
dm=1
Am=2*3
rhom=1
Fxm=9.81*dm*Am - 9.81*dm/2 *Am/2 - rhom*Qm*(V2m-V1m)
//results
printf("Force in x- direction = %d lb",Fx)
printf("Force in x- direction = %.1f kN",Fxm)
|
718e0d45378e3af8829d6a1d2de0df57b434e775 | 449d555969bfd7befe906877abab098c6e63a0e8 | /55/CH11/EX11.6/11ex6.sci | 34789cbc507efa80adb725ce241b86b8846ea0c9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 683 | sci | 11ex6.sci | disp('Euclidean Algorithm')
a=[540,168,36,24];
b=[168,36,24,12];
for i=1:4
V=int32([a(i),b(i)]);
thegcd=[];
thegcd(i)=gcd(V);
disp(thegcd(i))
end
function []=myf(dividend,divisor)
quotient=floor(dividend/divisor);
rem=modulo(dividend,divisor);
k=quotient*divisor+rem;
disp(k)
if(rem~=0) then
myf(divisor,rem)
end
endfunction
myf(540,168)
disp('for the equation 540*x+168*y=12,we are given')
a=540;
b=168;
c=24;
d=36;
d=a-3*b; //Eqn (1)
c=b-4*d; //Eqn (2)
k=d-1*c; //Eqn (3)
5*d-1*b; //Eqn (4)
k=d-b+4*d; //substituting value of c in Eqn (3) from Eqn (2)
r=5*a-16*b;
if(r==k) then
disp('x=5 and y=16');
end |
c86d87ad887d2e92828ab5d9b39817ea5ceac565 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2201/CH8/EX8.3/ex8_3.sce | 1d668e1845533a5caa526841b585f8f39c21e8cb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,104 | sce | ex8_3.sce | // Exa 8.3
clc;
clear;
close;
// Given data
// For maximum transconductance curve
disp("For Maximum Transconductance curve")
V_GS_off = -2;// in V
I_DSS = 8;// in mA
V_GS = 0;// in V
// For
V_GS= -2;
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
disp(I_D,"When V_GS = -2 V, the drain current in mA is");
// For
V_GS= -1.5;
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
disp(I_D,"When V_GS = -1.5 V, the drain current in mA is");
// For
V_GS= -1;
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
disp(I_D,"When V_GS = -1 V, the drain current in mA is");
// For
V_GS= -0.5;
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
disp(I_D,"When V_GS = -0.5 V, the drain current in mA is");
// For
V_GS= 0;
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
disp(I_D,"When V_GS = 0 V, the drain current in mA is");
// For maximum transconductance curve
disp("For Maximum Transconductance curve")
V_GS_off = -6;// in V
I_DSS = 20;// in mA
V_GS = 0;// in V
// For
V_GS= -6;
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
disp(I_D,"When V_GS = -6 V, the drain current in mA is");
// For
V_GS= -4;
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
disp(I_D,"When V_GS = -4 V, the drain current in mA is");
// For
V_GS= -2;
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
disp(I_D,"When V_GS = -2 V, the drain current in mA is");
// For
V_GS= 0;
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
disp(I_D,"When V_GS = 0 V, the drain current in mA is");
// For maximum transconductance curve
V_GS_off=-6;// in V
I_DSS= 20;// in mA
V_GS= 0:-0.1:-6;// in volt
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
// For minimum transconductance curve
plot(V_GS,I_D);
V_GS_off=-2;// in V
I_DSS= 8;// in mA
V_GS= 0:-0.1:-2;// in volt
I_D = I_DSS*((1-(V_GS/V_GS_off))^2);// in mA
plot(V_GS,I_D);
xlabel("Gate to source voltage in V")
ylabel("Drain current in mA")
title("The minimum and maximum transconductance curve")
disp("The minimum and maximum transconductance curve shown in figure")
// Note: For maximum transconductance curve the value of drain current at V_GS =-2 is wrong.
|
cfb780b5751c183d24a9475610e4c61fa7c696de | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/diffuse_rel/mrdifrun1_14.sce | 9880abb3241bd9fab2e4e8e207433cbdc2f948d9 | [] | 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 | 970 | sce | mrdifrun1_14.sce | jobname='mrdifrun1_14';
exec("diffuse/diffuse_utils.sce");
exec("diffuse/mymultireactdiffuse.sce");
exec("diffuse/newtempmultireactconc.sce");
exec("diffuse/mconcupdate.sce");
exec("diffuse/getconcsub.sce");
exec("diffuse/lap3d.sce");
exec("diffuse/cmdott.sce");
exec("diffuse/compfunc.sce");
dt=0.000100;
h=0.050000;
dif(1)=0.100000;
dif(2)=0.200000;
dif(3)=0.300000;
ic1(1)=0.000000;
ic1(2)=0.125000;
ic1(3)=-0.125000;
ic2(1)=-0.500000;
ic2(2)=0.000000;
ic2(3)=0.000000;
ic3(1)=0.000000;
ic3(2)=0.250000;
ic3(3)=0.000000;
rootdirectory='/scratch/cs1mkg/results/diffuse_rel';
inconsts=[ic1,ic2,ic3]; nspec=3; nsteps=15;nsubsteps=1;n1=20;n2=20;n3=1;
in(1)=n1; in(2)=n2; in(3)=n3;in(4)=h; in(5)=nspec;
concsin=rand(n1,n2,n3,nspec); sources=zeros(n1,n2,n3,nspec);sinks=zeros(n1,n2,n3,nspec);
sirout=mymultireactdiffuse(rootdirectory,jobname,nsteps, nsubsteps, dt, dif, in, concsin, sources, sinks,inconsts);
mgendxgen(rootdirectory,jobname,nsteps,n1,n2,n3,nspec);
exit;
|
321a35c84fcf7b2a67e6a906b38634576d5b4008 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1466/CH1/EX1.2/1_2.sce | 96162893cb83fe5784c28ebb4e5557fce25e0865 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 344 | sce | 1_2.sce | clc
//initialisation of variables
d1= 0.5 //in
d2= 5 //in
x= 10 //in
t= 12 //min
h=3 //ft
W= 2240 //lb
//CALCULATIONS
F= W*(d1/d2)^2
n= (W*h)/((W/100)*(x/t))
hp= (n*(x/t)*(W/100))/(t*33000)
//RESULTS
printf (' Force on plunger= %.1f lb',F)
printf (' \n strokes required= %.f ',n)
printf (' \n horse-power required= %.3f hp',hp)
|
38a19ff275004545bddf23e3ed2d3c877a2afc43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /37/CH1/EX1.2.6/Us5.sci | 6ac5c6e53d1bb965bd70f1fbe5c3c4cdca8bff18 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | Us5.sci | //Exercise1.2 Example 1.2.6
//Finding the adress in a row major array
function[]=add(m,n)
printf("Adress is %d\n",m+n*20);
endfunction
//(a)
add(10,0);
//(b)
add(100,0);
//(c)
add(0,0);
//(d)
add(2,1);
//(e)
add(5,1);
//(f)
add(1,10);
//(g)
add(2,10);
//(h)
add(5,3);
//(i)
add(9,19); |
71288197fe775ea4dc5b92de84cb52ba575e8d90 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3751/CH11/EX11.5/Ex11_5.sce | f927b863d889183e6ab88c77ab50bdeea66a6571 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 941 | sce | Ex11_5.sce | //Fluid Systems - By - Shiv Kumar
//Chapter 11- Centrifugal Pumps
//Example 11.5
//To Find the Discharge of Pump.
clc
clear
//Given Data:-
Hm=14.5; //Manometric Head, m
N=1000; //Speed, rpm
beta_o=30; //Vane Angle at outlet, degrees
Do=300; //Outer Diameter of the Impeller, mm
bo=50; //Width at Outlet, mm
eta_man=95/100; //Manometric Efficiency
//Data Used:-
g=9.81; //Acceleration due to gravity, m/s^2
//Computations:-
Do=Do/1000; //m
bo=bo/1000; //m
uo=%pi*Do*N/60; //m/s
Vwo=g*Hm/(uo*eta_man); //m/s
Vfo=tand(beta_o)*(uo-Vwo); //m/s
Q=%pi*Do*bo*Vfo*1000; //Discharge, litres/s
//Results:-
printf("The Discharge of the Pump=%.2f litres/s\n",Q) //The answer vary due to round off error
|
fc580dc2b07890ea2e27c84ddaff81b5ee428972 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3507/CH12/EX12.5/Ex12_5.sce | 8d8b2f445794fc3952a7c691c63f6f7c5e9007af | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 431 | sce | Ex12_5.sce | //chapter12
//example12.5
//page242
Vcc=12 // V
gain_beta=100
Vbe=0.3 // V
Ic=1 // mA
// since gain_beta=Ic/Ib
Ib=Ic/gain_beta
// since Vcc=Ib*Rb+Vbe we get
Rb=(Vcc-Vbe)/Ib
gain_beta2=50
// since Vcc=Ib*Rb+Vbe we get
Ib2=(Vcc-Vbe)/Rb
Ic2=Ib2*gain_beta2
printf("for beta = 100, base resistor = %.3f kilo ohm \n",Rb)
printf("for beta = 50, zero signal collector current for same Rb is = %.3f mA \n",Ic2)
|
1e65ddba2dc00f3f7f4cd689cceb259501fddd70 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3411/CH15/EX7.1.u2/Ex7_1_u2.sce | 016f1977b610328c0a002840c7159dc9c3eea6e5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 463 | sce | Ex7_1_u2.sce | //Example 7_1_u2
clc();
clear;
//To calculate the mean free path and mean free time
mn=0.26*0.91*10^-30 //units in Kgs
un=1000*10^-4 //units in cm^2 V^-1 s^-1
e=1.6*10^-19 //units in coulombs
tc=(mn*un)/e //units in s
tc1=tc*10^12 //units in ps
printf("The mean free time is %.3fps",tc1)
vth=10^7
meanfreepath=vth*tc*10^7 //units in nm
printf("\nThe mean free path is given by L=%.1f nm",meanfreepath)
|
bb7d93f3d3af97dc701f65fdf55378f8c5854601 | fe33c0b16926678447c084c04df084926a9ca29a | /cone2.sce | f378df6cb472cc8577c8de69953d5429cb72d82f | [] | no_license | askmrsinh/SEM2_AM | bbcf34ce205abe763cb5c85df5f01544cdcdfca5 | da613da5c22f20ab1a814f28315e34b0c2c59a13 | refs/heads/master | 2021-09-28T03:09:19.415553 | 2016-08-18T15:14:23 | 2016-08-18T15:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 162 | sce | cone2.sce | //y^2+z^2=x^2,x>0 (CONE)
x=0:0.1:5;
y=-7:0.1:7;
deff('z=f1(x,y)','z=sqrt(x^2-y^2)');
fplot3d(x,y,f1)
deff('z=f2(x,y)','z=-sqrt(x^2-y^2)');
fplot3d(x,y,f2)
|
8f14290898e4bb6e8e7c27388d863173c59bb80f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2561/CH4/EX4.9/Ex4_9.sce | 1388dafa9dc19a889a5b845b02113a48eafd1e9b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,748 | sce | Ex4_9.sce | //Ex4_9
clc
RL=12*10^(3)
disp("RL= "+string(RL)+ " ohm") //Load resistance
RF=6*10^(3)
disp("RF= "+string(RF)+ " ohm") // feedback resistance
R1=12*10^(6)
disp("R1= "+string(R1)+ " ohm") // first resistance R1 at input side
R2=8.57*10^(6)
disp("R2= "+string(R2)+ " ohm") // second resistance R2 at input side
VDD=(24)
disp("VDD= "+string(VDD)+" volts") // Drain voltage supply
VT=(3)
disp("VT= "+string(VT)+" volts") // Threshold voltage for n-channel EMOSFET
KF=0.25*10^(-3)
disp("KF= "+string(KF)+" A/V^2") // Constant for n-channel EMOSFET
VGG=(VDD*R2)/(R1+R2)
disp("VGG= VDD*R2/(R1+R2)="+string(VGG)+" volts") // Gate voltage for n-channel EMOSFET
disp("Quadratic equation =9*ID^(2)-25*ID+16=0")// IDS=KF*(VGS-VT)^2 and VGS=VGG-ID*RD ,so Quadratic equation formed is :IDS=KF*(VGG-ID*RD-VT)^2 where ID in mA
p = [9 -25 16]
ID=roots(p)*10^(-3)//values of ID converted into Ampere by multiplying by 10^(-3)
disp("ID = "+string(ID)+" A") // drain current n-channel EMOSFET in Ampere
VGS=VGG-ID*RF// For ID=1.78 mA and ID=1mA
disp("VGS = VGG-ID*RF = "+string(VGS)+" volts") // Gate operating point voltage
disp("Since VGS < VT for ID=1.78 mA, hence ID = 1.78 mA cannot be chosen, so we chose ID= 1 mA as operating drain current IDQ")
IDQ=1*10^(-3)
disp("IDQ ="+string(IDQ)+"A")//Since VGS < VT for ID=1.78 mA, hence ID = 1.78 mA cannot be chosen, so we chose ID= 1 mA as operating drain current IDQ
VGSQ=VGG-IDQ*RF
disp("VGSQ = VGG-IDQ*RF = "+string(VGSQ)+" volts") // Gate operating point voltage
VDSQ=VDD-IDQ*(RL+RF)
disp("VDSQ= VDD-IDQ*(RL+RF)= "+string(VDSQ)+" volts") // Drain voltage for n-channel EMOSFET
// NOTE:Value of VGS= -0.6676390 volts for ID=1.78 mA but in book given as -0.68 V
|
6955aeaf76ff2d8852a6959145133ff73c126a97 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1892/CH1/EX1.24/Example1_24.sce | 53c95af6561b43a5ebaba5cbf3a8aaddba515186 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,379 | sce | Example1_24.sce | // Example 1.24
clear; clc; close;
format('v',7);
// Given data
VL=400;//in volt
f=50;//in Hz
P=6;//no. of poles
Z1=0.3+%i*0.4;//in ohm
Z2dash=0.2+%i*0.4;//in ohm
X0=20;//Magnetic reactance in ohm
R0=100;//resistance for core loss in ohm
S=4;//in %
StatorLoss=2;//in KW
MechLoss=2;//in KW
//Calculations
R1=real(Z1);//in ohm
R2dash=real(Z2dash);//in ohm
X1=imag(Z1);//in ohm
X2dash=imag(Z2dash);//in ohm
S=S/100;//slip
V1=VL/sqrt(3);//in volt
Ns=120*f/P;//in rpm
Ri=R2dash*(1-S)/S;//in ohm
R1e=R1+R2dash;//in ohm
X1e=X1+X2dash;//in ohm
I2rdash=V1/(R1e+Ri+%i*X1e);//in Ampere
Ic=V1/R0;//in Ampere
Im=V1/(%i*X0);//in Ampere
I0=(Ic+Im);//in Ampere
CoreLoss=Ic^2*R0;//Core loss per phase in Watts
I1=I0+I2rdash;//in Ampere
Istator=abs(I1);//in Ampere
cosfi=cosd(atand(imag(I1)/real(I1)));//lagging power factor
Pc=3*abs(I2rdash)^2*R2dash;//in Watts
//Here P2:P0:Pm=1:S:1-S
Pm=Pc*(1-S)/S;//in watts
Pout=Pm-MechLoss*1000;//in watts
StatorCuLoss=3*abs(I1)^2*R1;//in watts
TotLoss=CoreLoss*3+StatorCuLoss+Pc+MechLoss*1000;//in watts
Eff=Pout/(Pout+TotLoss)*100;//in %
N=Ns*(1-S);//in rpm
disp(N,"(a) Motor Speed in rpm : ");
disp(Istator,"(b) Stator current in Ampere : ");
disp(cosfi,"(c) Power factor lagging : ");
disp(Pout,"(d) Motor Output in Watts : ");
disp(Eff,"(d) Efficiency in % : ");
//Answer of Pout is wrong in the book.
|
1fa8089f3f977d6d4d1208e49b19ad88f2546489 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3557/CH15/EX15.8/Ex15_8.sce | c5dc1628c744241c81694f1b1179c92505f0657f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sce | Ex15_8.sce | //Example 15.8//
//from the figure
//p20,Cu-0.1Si ~23.610^*9 ohm m
prt=23.6*10^-9//ohm m //room temperature value of restivity
a=0.00393;//C^-1//temperature coefficient of restivity
t=100;//C //temperature
tn=20;//C//room temperature
p=prt*(1+a*(t-tn))
mprintf("p = %e ohm m",p)
|
f9df1a94d9b86f20e9a5a349124f188c615d8626 | 449d555969bfd7befe906877abab098c6e63a0e8 | /51/CH5/EX5.9/5_9.sce | 4194ddded257d31d1633981d17fa62007c77a968 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 212 | sce | 5_9.sce | clc;
clear;
Q=9;//gal/min
l=5;//ft
b=2;//ft
H=1.5;//ft
//deforming control volume
//hrate=Q/(l*b-A)
//A<<l*b
hrate=Q*12/(l*b*7.48);
disp("in./min",hrate,"Time rate of change of depth of water in tub =") |
3cb76601b153cffd119ff7d4153b816954da5096 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH13/EX13.21/13_21.sce | f6d2cc149065b3b7fc0eba94536505ef40aeb714 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 591 | sce | 13_21.sce | //Problem 13.21: A d.c. source has an open-circuit voltage of 30 V and an internal resistance of 1.5 ohm. State the value of load resistance that gives maximum power dissipation and determine the value of this power.
//initializing the variables:
V = 30; // in volts
r = 1.5; // in ohms
//calculation:
//current I = E/(r + RL)
//For maximum power, RL = r
RL = r
I = V/(r + RL)
//Power, P, dissipated in load RL, P
P = RL*I^2
printf("\n\n Result \n\n")
printf("\n (a) the value of the load resistor RL is %.1f ohm",RL)
printf("\n (b) maximum power dissipation = %.0f W",P) |
eda1c3e932216d8a0ab56a775b1aafd073d6085b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1247/CH5/EX5.19/example5_19.sce | 6c44386198da55e768eccfcbf1ac98dfe2e3067e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 860 | sce | example5_19.sce | clear;
clc;
// Stoichiometry
// Chapter 5
// Energy Balances
// Example 5.19
// Page 245
printf("Example 5.19, Page 245 \n \n");
// solution
H1 = 482.9 // kJ/kg
H2 = 273.4
fi1 = 100*(H1-H2) // kJ/h
T1 = 313.15
T2 = 403.15
fi11 = 21.3655*(T2-T1)+64.2841*10^-3*(T2^2-T1^2)/2-41.0506*10^-6*(T2^3-T1^3)/3+9.7999*10^-9*(T2^4-T1^4)/4 // kJ/h
// at 20 MPa
h1 = 211.1
Ts = 277.6
H11 = 427.8
x = poly(0, 'x')
p = x*h1+(100-x)*H11-100*H2
a = roots(p)
fi2 = (100-a)*(H11-h1) // kJ/h
h2 = -148.39
H3 = 422.61
y = poly(0, 'y')
p1 = 100*176.18-(100-y)*H3+h2*y
b = roots(p1)
fi3 = 100*(h1-176.8)
H = fi3+24021
H4 = H/(100-43.16)
// from ref 23
T = 262.15
printf(" (a) \n \n Yield of dry ice = "+string(b)+" kg. \n \n \n (b) \n \n Percent liquifaction = "+string(a)+". \n \n \n (c) \n \n Temp of vented gas = "+string(T)+" K.")
|
6bee5eadafa3f179fbdbe5db5d168d58bb6ee27a | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/if.man.tst | c4072ef0c7e4c72edf316ecb3a5d280015487117 | [
"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 | 178 | tst | if.man.tst | clear;lines(0);
i=2
for j = 1:3,
if i == j then
a(i,j) = 2;
elseif abs(i-j) == 1 then
a(i,j) = -1;
else a(i,j) = 0;
end,
end
|
e19447e5c2e3de5264c4a9dd7724d992709bba42 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1628/CH4/EX4.9/Ex4_9.sce | a82126c38cede538eadf035db933ff1ecedcbce4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 517 | sce | Ex4_9.sce |
// Examle 4.9
n=8; // No.Of dry cells
E=1.5; // Emf of cell
Voc=n*E; // open-circuit Voltage of battery
r=0.75; // Internal resistance
Ro=r*n; // O/p resistance
// ==> { P=Vht^2/4Rth } , but here Vth= Voc & Rth= Ro
Pavl=Voc^2/(4*Ro); // Available power
disp(' Available power is = '+string(Pavl)+ ' Watt');
// p 115 4.9
|
ac8f7fdb488bb262d16a3752eb91a6221156a453 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2360/CH6/EX6.3/ex6_3.sce | 0d54720b08ad9fd83442de033e2ce3ce3508f654 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 467 | sce | ex6_3.sce | // Exa 6.3
format('v',7);clc;clear;close;
// Given data
C3 = 10;// in µF
C3 = C3*10^-6;// in F
R1 = 1.2;// in k ohm
R1 = R1 * 10^3;// in ohm
R2 = 100;// in k ohm
R2 = R2 * 10^3;// in ohm
R3 = 120;// in k ohm
R3 = R3 * 10^3;// in ohm
Rx = (R2*R3)/R1;//unknown resistance in ohm
Rx = Rx * 10^-6;// in M ohm
disp(Rx,"The value of Rx in MΩ is");
Cx = (R1*C3)/R2;// in F
Cx = Cx * 10^6;//unknown capacitance in µF
disp(Cx,"The value of Cx in µF is");
|
e3e63b07bec625eab2d3dba4a81838d8b0ead876 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1358/CH2/EX2.19/Example219.sce | eaf27d099ae8067a5ed4efee2d7f44ae686d3499 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 671 | sce | Example219.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 2, Example 19")
N = 1445//rpm
Q = 0.0352//m3/s
Ns = 14//rpm
g=9.81;
disp("Head developed in each stage is H in m: ")
H = (N * (Q^(1/2))/Ns)^(4/3)
disp("Total head required = 845m")
disp("Number of stages needed = 845/52 = 16")
disp("Number of stages in each pump = 8")
disp("Impeller speed at tip is U2 in m/s")
U2 = 0.96*(2*g*H)^0.5
disp("Impeller Diameter at tip D2")
//D2 = %pi*60*30.6*1445
disp("But U2 = pi*D2*N/60 Therefore D2 real in m")
D2real = U2 *60/(%pi*1445)
|
e99fded86b03fd9ad8605df7178a7a2062dc205f | 4bbc2bd7e905b75d38d36d8eefdf3e34ba805727 | /ee/contrib/dspic/builder.sce | a36359dec03e07827ea39d2a330286374f2cb15f | [] | no_license | mannychang/erika2_Scicos-FLEX | 397be88001bdef59c0515652a365dbd645d60240 | 12bb5aa162fa6b6fd6601e0dacc972d7b5f508ba | refs/heads/master | 2021-02-08T17:01:20.857172 | 2012-07-10T12:18:28 | 2012-07-10T12:18:28 | 244,174,890 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,834 | sce | builder.sce | mode(-1);
// specific part
libname='dspic' // name of scilab function library [CUSTOM]
libname_fb='dspic_fb' // name of scilab function library [CUSTOM]
libname_cg='dspic_cg' // name of scilab function library [CUSTOM]
libname_fb_FLEX='fb_FLEX'
libname_fb_communication='fb_communication'
libname_fb_DMB='fb_DMB'
libname_fb_MTB='fb_MTB'
libname_fb_pc='fb_pc'
libname_amazing='amazing'
libname_misc='misc'
//** It is a better function to recover the absolute path information
DIR = get_absolute_file_path('builder.sce')
if ~MSDOS then // Unix Linux
if part(DIR,1)<>'/' then DIR=getcwd()+'/'+DIR,end
MACROS=DIR+'macros/' // Path of the macros directory
CG_MACROS=MACROS+'codegen/'
FB_MACROS=MACROS+'flex_blocks/'
FB_FLEX=FB_MACROS+'FLEX/'
FB_COMMUNICATION=FB_MACROS+'FLEX-Communication/'
FB_DMB=FB_MACROS+'FLEX-DMB/'
FB_MTB=FB_MACROS+'FLEX-MTB/'
FB_PC=FB_MACROS+'FLEX-PC/'
FB_PC=FB_MACROS+'FLEX-PC/'
FB_AMAZING=FB_MACROS+'AMAZING/'
MISC=MACROS+'misc/'
ROUTINES = DIR+'routines/'
else // windows- Visual C++
if part(DIR,2)<>':' then DIR=getcwd()+'\'+DIR,end
MACROS=DIR+'macros\' // Path of the macros directory
CG_MACROS=MACROS+'codegen\'
FB_MACROS=MACROS+'flex_blocks\'
FB_FLEX=FB_MACROS+'FLEX\'
FB_COMMUNICATION=FB_MACROS+'FLEX-Communication\'
FB_DMB=FB_MACROS+'FLEX-DMB\'
FB_MTB=FB_MACROS+'FLEX-MTB\'
FB_PC=FB_MACROS+'FLEX-PC\'
FB_AMAZING=FB_MACROS+'AMAZING\'
MISC=MACROS+'\misc\'
end
//compile sci files if necessary and build lib file
//genlib(libname,MACROS)
genlib(libname_cg,CG_MACROS)
genlib(libname_fb_FLEX,FB_FLEX)
genlib(libname_fb_communication,FB_COMMUNICATION)
genlib(libname_fb_DMB,FB_DMB)
genlib(libname_fb_MTB,FB_MTB)
genlib(libname_fb_pc,FB_PC)
genlib(libname_amazing,FB_AMAZING)
genlib(libname_misc,MISC)
|
50d8923930a3073d2a7ffd77a92c26de97df51fd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH2/EX2.5/Ex2_5.sce | 1c9b268f7115d4a2793c98fc53fbebfa906795b5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 508 | sce | Ex2_5.sce | //Exa 2.5
//To find traffic intensity in Erlangs and CCS.
//Refer-Table 2.1(page No 28): Traffic data used to estimate traffic intensity
clc;
clear all;
time=90; //in minutes
calls=10; //no of calls in 90mins
//solution
CR=calls/(time/60); //call arrival rate in calls/hour
tavg=(60+74+80+90+92+70+96+48+64+126)/10; //average call holding time in sec per call
I= CR*(tavg/3600); //traffic intensity in Erlangs
printf('Traffic Intensity is %.3f Erlangs = %.2f CCS \n ',I,I*36);
|
6ed99e689788fbe8bed4dbe3b18a794a584d5641 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH34/EX34.3/34_3.sce | 05d4b2904d868403078e3f12ac27d73dc67a56da | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 34_3.sce | //ques-34.3
//Calculating energy and frequency and wave number
clc
w=200;//wavelength (in nm)
E=(6.023*10^23*6.625*10^-34*3*10^8)/(w*10^-9);
f=(3*10^8)/(w*10^-9);
wn=1/(w*10^-9);
printf("The energy required is %.1f kJ/mol, frequency is %.1f*10^15 Hz and wave number is %d /cm.",E/1000,f*10^-15,wn/100);
|
1cee21cacffb366982bfd2063456d636edb64f9c | 717ddeb7e700373742c617a95e25a2376565112c | /72/CH6/EX6.2.2/6_2_2.sce | c8bf848fd0f3c3b8e47ae971a0504d2ac51a3d24 | [] | 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 | 6_2_2.sce | //CAPTION: Current-Voltage_Characteristics_Of_a_GaAs_MESFET
//chapter_no.-6, page_no.-244
//Example_no.6-2-2
clc;
//(a) Calculate_the_pinch-off_voltage
a=.1*(10^-6);//channel_height
Nd=8*(10^23);//Electron_Concetration
er=13.1;//relative_dielectrin_constant
e=8.854*(10^-12)*er;//medium_dielecric_constant
q=1.6*(10^-19);//electronic_charge
Vp=(q*Nd*(a^2))/(2*e);//pinch-off_voltage
disp(Vp,'pinch-off volatge in(Volts)is');
//(b)Calculate_the_velocity_ratio
un=.08;//electron_mobility
vs=2*(10^5);
L=14*(10^-6);
n=(Vp*un)/(vs*L)
disp(n,'the velocity ratio');
//(c) Calculate_the_saturation_drain_current_at Vg=0
L=14*(10^-6);
Z=36*(10^-6);
Ipsat=(q*Nd*un*a*Z*Vp)/(3*L);
Ipsat=Ipsat*1000;
disp(Ipsat,'the_saturation_drain_current_(mA)is');
//(d) Calculate_the_drain_current
Vd=5;
Vg=2;
u=((Vd+Vg)/Vp)^(1/2);
p=((Vg)/Vp)^(1/2);
Id=(3*((u^2)-(p^2))-2*((u^3)-(p^3)))/(1+(n*((u^2)-(p^2))));
Id=Id*Ipsat;
disp(Id,'the_drain_current_(mA)is');
|
3cf1fbfa54ae7437daa1a03964dedd3791b7e7dd | 9075eb7fae04907e48cd0a730255fdc9b69071f9 | /sci/LanceAutoGolf.sci | e85b865467aeb447a3b3e34c632cfa4fa9a5d72c | [] | no_license | philippematthieu/GolfBall | 2173288fd434cc2abf5ee277fa584757fc172ebf | fe75825b89187dc68e78fe8d60c1a9f5596db075 | refs/heads/master | 2021-07-25T22:54:22.866727 | 2020-12-16T10:06:40 | 2020-12-16T10:06:40 | 66,164,790 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,032 | sci | LanceAutoGolf.sci | // Copyright (C) 2016 - Corporation - Author
//
// About your license if you have any
//
// Date of creation: 19 mai 2016
//
// dans l'environnement Cgwin dans /home/matthieu il y a un fichier expect (fichier expect test.exp).
// Celui-ci lance sur le Android une commande de copie du "result.json" dans le répertoire courant cygwin du de lancement
// sur le PC (fichier expect test.exp)
// Scilab analyse alors la date de modification. Si elle differe, alors il lance l'affichage de golf.
//
unix('C:\Users\matthieu\AppData\Local\Android\sdk\platform-tools\adb forward tcp:22 tcp:2222');
chdir('C:\cygwin64\home\matthieu\');
a = 'C:\cygwin64\home\matthieu\result.json ';
[t,x9,Res,Valeurs] = lanceGolfBall(1,0,a);
[x, ierr] = fileinfo(a);
for ii = 1:5
sleep(2000);
unix('C:\cygwin64\bin\expect test.exp');
[x1, ierr] = fileinfo(a);
if and(getdate(x(6)) == getdate(x1(6)));
//break;
else
[t,x9,Res,Valeurs] = lanceGolfBall(1,0,a);
x = x1;
end;
end;
|
9b5074eba62bbcffd59c0a870168a153e9e55753 | 3c47dba28e5d43bda9b77dca3b741855c25d4802 | /microdaq/examples/ao_scan_periodic_demo.sce | 2dc36fa6e7adcd973b7b8d1e36ef625888dc60ce | [
"BSD-3-Clause"
] | permissive | microdaq/Scilab | 78dd3b4a891e39ec20ebc4e9b77572fd12c90947 | ce0baa6e6a1b56347c2fda5583fb1ccdb120afaf | refs/heads/master | 2021-09-29T11:55:21.963637 | 2019-10-18T09:47:29 | 2019-10-18T09:47:29 | 35,049,912 | 6 | 3 | BSD-3-Clause | 2019-10-18T09:47:30 | 2015-05-04T17:48:48 | Scilab | UTF-8 | Scilab | false | false | 171 | sce | ao_scan_periodic_demo.sce | sineData = sin(linspace(0, 2*%pi, 1000)) + 1.0;
sawtoothData = linspace(0, 5, 1000);
mdaqAOScanInit(1:2, [sineData' sawtoothData'], [0,5], %F, 1000, 5);
mdaqAOScanStart(); |
10e4ace2dfb47ba0f2111d800d8a7101b986fc6a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2444/CH2/EX2.5/ex2_5.sce | 00116145a1e15526e0e8b74df3556983325fd80c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex2_5.sce | // Exa 2.5
clc;
clear;
close;
format('v',6)
// Given data
n = 2;// second order
d = 0.4;// in nm
d = d * 10^-9;// in m
theta = 16.8/2;// in degree
// n*lembda = 2*d*sind(theta) (using Bragg's equation)
lembda = (2*d*sind(theta))/n;// in m
lembda = lembda * 10^10;// in angstrum
disp(lembda,"The wavelength of x-rays in angstrum is");
|
43a48f02c25c1b059d8ca1d399ee00c174dfe0ab | 449d555969bfd7befe906877abab098c6e63a0e8 | /275/CH4/EX4.4.51/Ch4_4_51.sce | 3e1cc6d7f67b8a210f174488cd6128638c8c86c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 586 | sce | Ch4_4_51.sce | clc
disp("Example 4.51")
printf("\n")
disp("Calculate minimum & maximum values of Re for the relaxation oscillator & also find maximum oscillating frequency")
printf("Given\n")
Vbb=15
//the parameters of UJT
Ip=10^-6
Iv=2.5*10^-3
Vv=2.5
n=0.7
PRe=20*10^3
C=10^-6
Vp=12
Vd=0.7
Vp1=(n*Vbb)+Vd
//minimum Re
Remin=(Vbb-Vv)/Iv
//maximum Re
Remax=(Vbb-Vp1)/Ip
//to find maximum oscillating frequency
T=PRe*C*log((Vbb-Vv)/(Vbb-Vp))
f=1/T
printf("maximum Re \n%f ohm\n",Remax)
printf("minimum Re \n%f ohm\n",Remin)
printf("maximum oscillating frequency \n%f hz \n",f)
|
a7c932874ee4b5cc3271760ae7fa32dc4d49f2f6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3665/CH6/EX6.5/Ex6_5.sce | 7e141dcc86c97026cd0f13a028653cbd033f4d5e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sce | Ex6_5.sce | clc//
//
//
//Variable declaration
deltax=0.2*10^-10; //distance(m)
h=6.626*10^-34; //planck's constant
//Calculation
deltap=h/(2*%pi*deltax); //uncertainity in momentum(kg m/s)
//Result
printf("\n uncertainity in momentum is %0.2f *10^-24 kg m/s",deltap*10^24)
|
d2cc23e83f61e805fe1c518e87ad6a92f4281f3c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3871/CH12/EX12.20/Ex12_20.sce | d4fc9c28e2bc8018fdfaf846a0ebf08cfc735b84 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 688 | sce | Ex12_20.sce | //=====================================================================================
//Chapter 12 example 20
clc;clear all;
//variable declaration
R3 = 130; //resistance of arm in Ω
R4 = 318; //resistance of arm in Ω
C2 = 106*10**-12; //capacitance in F
C4 = 0.35*10**-6; //capacitance in F
f = 50; //frequency in Hz
//calculations
Cx = (R4*C2)/(R3); //capacitance in F
Rx = (R3*C4)/(C2); //resistance in Ω
x = 2*(%pi)*f*Cx*Rx; //power factor
//result
mprintf("capacitance = %3.2e uF",(Cx));
mprintf("\nresistace = %3.2f KΩ",(Rx*10^-3));
mprintf("\npower factor = %3.3f ",x);
|
d93a2cd3345ae8401d28ec41d1db32a9a2173c84 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1466/CH9/EX9.1/9_1.sce | 847c3237c78ba3d6c7a4dd00f0ffbff4e89d0f10 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 322 | sce | 9_1.sce | clc
//initialisation of variables
hp=10000
p=0.95//percent
head=150//ft
f=0.004
l=20//ft
g=32.2//ft/sec^2
r= -3.6
//CALCULATIONS
Q=hp*550/(p*2*g*head)
d=4*l*5280*622000*f/((1-p)*head*2*g)
dia=d^0.2
f= 4.7^r
//RESULTS
printf ('diameter of pipe to transmit= %.2f ft',dia)
printf ('\n value of f= %.4f ',f)
|
1f9611a187e70d76d78b87d2581a1fb8b668035d | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/TM32.prev.tst | b42144c6f0234cb983841262aeda8e1976eedc61 | [
"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 | 28,368 | tst | TM32.prev.tst | TranspositionSet={[0,2,1],[1,0,2],[1,2,0],[2,1,0],[2,0,1]}
Expanding for base=3, level=3, reasons+features=base,transpose,same,similiar igtriv,invall,norm
Refined variables=x,y,z
[0+1x,0+1y,0+1z]: unknown -> [1] [0,0,0] x²+y²-3x*y*z+z²
---------------- level 0
expanding queue[0]^-1,meter=[3,3,3]: x²+y²-3x*y*z+z²
[0+3x,0+3y,0+3z]: unknown -> [1] [0,0,0] x²+y²-9x*y*z+z²
[1+3x,1+3y,1+3z]: unknown -> [2] [1,1,1] x-3x²+y+9x*y-3y²+z+9x*z+9y*z+27x*y*z-3z²
[2+3x,1+3y,1+3z]: unknown -> [3] [2,1,1] x+3x²-4y-9x*y+3y²-4z-9x*z-18y*z-27x*y*z+3z²
[1+3x,2+3y,1+3z]: transposed [3] by [2,0,1]
[2+3x,2+3y,1+3z]: unknown -> [4] [2,2,1] 2x-3x²+2y+9x*y-3y²+10z+18x*z+18y*z+27x*y*z-3z²+1
-> solution [5,2,1],NONTRIVIAL [2,5,1],NONTRIVIAL
[1+3x,1+3y,2+3z]: transposed [3] by [2,1,0]
[2+3x,1+3y,2+3z]: transposed [4] by [1,2,0]
[1+3x,2+3y,2+3z]: transposed [4] by [2,0,1]
[2+3x,2+3y,2+3z]: unknown -> [5] [2,2,2] 8x-3x²+8y+18x*y-3y²+8z+18x*z+18y*z+27x*y*z-3z²+4
endexp[0]
---------------- level 1
expanding queue[1]^0,meter=[3,3,3]: x²+y²-9x*y*z+z²
[0+9x,0+9y,0+9z]: unknown -> [6] [0,0,0] x²+y²-27x*y*z+z²
[3+9x,3+9y,3+9z]: unknown -> [7] [1,1,1] 7x-3x²+7y+27x*y-3y²+7z+27x*z+27y*z+81x*y*z-3z²+2
[6+9x,3+9y,3+9z]: unknown -> [8] [2,1,1] 5x-3x²+16y+27x*y-3y²+16z+27x*z+54y*z+81x*y*z-3z²+4
[3+9x,6+9y,3+9z]: transposed [8] by [2,0,1]
[6+9x,6+9y,3+9z]: unknown -> [9] [2,2,1] 14x-3x²+14y+27x*y-3y²+34z+54x*z+54y*z+81x*y*z-3z²+9
[3+9x,3+9y,6+9z]: transposed [8] by [2,1,0]
[6+9x,3+9y,6+9z]: transposed [9] by [1,2,0]
[3+9x,6+9y,6+9z]: transposed [9] by [2,0,1]
[6+9x,6+9y,6+9z]: unknown -> [10] [2,2,2] 32x-3x²+32y+54x*y-3y²+32z+54x*z+54y*z+81x*y*z-3z²+20
endexp[1]
expanding queue[2]^0,meter=[3,3,3]: x-3x²+y+9x*y-3y²+z+9x*z+9y*z+27x*y*z-3z²
[1+9x,1+9y,1+9z]: unknown -> [11] [0,0,0] x-9x²+y+27x*y-9y²+z+27x*z+27y*z+243x*y*z-9z²
[7+9x,4+9y,1+9z]: unknown -> [12] [2,1,0] 2x+9x²-13y-27x*y+9y²-82z-108x*z-189y*z-243x*y*z+9z²-2
[4+9x,7+9y,1+9z]: transposed [12] by [1,0,2]
[7+9x,1+9y,4+9z]: transposed [12] by [0,2,1]
[4+9x,4+9y,4+9z]: unknown -> [13] [1,1,1] 40x-9x²+40y+108x*y-9y²+40z+108x*z+108y*z+243x*y*z-9z²+16
[1+9x,7+9y,4+9z]: transposed [12] by [2,0,1]
[4+9x,1+9y,7+9z]: transposed [12] by [1,2,0]
[1+9x,4+9y,7+9z]: transposed [12] by [2,1,0]
[7+9x,7+9y,7+9z]: unknown -> [14] [2,2,2] 133x-9x²+133y+189x*y-9y²+133z+189x*z+189y*z+243x*y*z-9z²+98
endexp[2]
expanding queue[3]^0,meter=[3,3,3]: x+3x²-4y-9x*y+3y²-4z-9x*z-18y*z-27x*y*z+3z²
[2+9x,1+9y,1+9z]: unknown -> [15] [0,0,0] x+9x²-4y-27x*y+9y²-4z-27x*z-54y*z-243x*y*z+9z²
[5+9x,4+9y,1+9z]: unknown -> [16] [1,1,0] 2x-9x²+7y+27x*y-9y²+58z+108x*z+135y*z+243x*y*z-9z²+2
-> solution [5,13,1],NONTRIVIAL
[8+9x,7+9y,1+9z]: unknown -> [17] [2,2,0] 5x-9x²+10y+27x*y-9y²+166z+189x*z+216y*z+243x*y*z-9z²+6
[5+9x,1+9y,4+9z]: transposed [16] by [0,2,1]
[8+9x,4+9y,4+9z]: unknown -> [18] [2,1,1] 32x-9x²+88y+108x*y-9y²+88z+108x*z+216y*z+243x*y*z-9z²+32
[2+9x,7+9y,4+9z]: unknown -> [19] [0,2,1] 80x-9x²+10y+108x*y-9y²+34z+189x*z+54y*z+243x*y*z-9z²+11
[8+9x,1+9y,7+9z]: transposed [17] by [0,2,1]
[2+9x,4+9y,7+9z]: transposed [19] by [0,2,1]
[5+9x,7+9y,7+9z]: unknown -> [20] [1,2,2] 137x-9x²+91y+189x*y-9y²+91z+189x*z+135y*z+243x*y*z-9z²+68
endexp[3]
expanding queue[4]^0,meter=[3,3,3]: 2x-3x²+2y+9x*y-3y²+10z+18x*z+18y*z+27x*y*z-3z²+1
[5+9x,2+9y,1+9z]: unknown -> [21] [1,0,0] 4x+9x²-11y-27x*y+9y²-28z-54x*z-135y*z-243x*y*z+9z²
-> solution [5,2,1],NONTRIVIAL
[2+9x,5+9y,1+9z]: transposed [21] by [1,0,2]
[8+9x,8+9y,1+9z]: unknown -> [22] [2,2,0] 8x-9x²+8y+27x*y-9y²+190z+216x*z+216y*z+243x*y*z-9z²+7
[8+9x,2+9y,4+9z]: unknown -> [23] [2,0,1] 8x-9x²+92y+108x*y-9y²+40z+54x*z+216y*z+243x*y*z-9z²+12
[5+9x,5+9y,4+9z]: unknown -> [24] [1,1,1] 50x-9x²+50y+108x*y-9y²+67z+135x*z+135y*z+243x*y*z-9z²+26
[2+9x,8+9y,4+9z]: transposed [23] by [1,0,2]
[2+9x,2+9y,7+9z]: unknown -> [25] [0,0,2] 38x-9x²+38y+189x*y-9y²-2z+54x*z+54y*z+243x*y*z-9z²+3
[8+9x,5+9y,7+9z]: unknown -> [26] [2,1,2] 89x-9x²+158y+189x*y-9y²+106z+135x*z+216y*z+243x*y*z-9z²+78
[5+9x,8+9y,7+9z]: transposed [26] by [1,0,2]
endexp[4]
expanding queue[5]^0,meter=[3,3,3]: 8x-3x²+8y+18x*y-3y²+8z+18x*z+18y*z+27x*y*z-3z²+4
[5+9x,2+9y,2+9z]: unknown -> [27] [1,0,0] 2x-9x²+26y+54x*y-9y²+26z+54x*z+135y*z+243x*y*z-9z²+3
[2+9x,5+9y,2+9z]: transposed [27] by [2,0,1]
[8+9x,8+9y,2+9z]: unknown -> [28] [2,2,0] 32x-9x²+32y+54x*y-9y²+188z+216x*z+216y*z+243x*y*z-9z²+28
[2+9x,2+9y,5+9z]: transposed [27] by [2,1,0]
[8+9x,5+9y,5+9z]: unknown -> [29] [2,1,1] 59x-9x²+110y+135x*y-9y²+110z+135x*z+216y*z+243x*y*z-9z²+54
[5+9x,8+9y,5+9z]: transposed [29] by [2,0,1]
[8+9x,2+9y,8+9z]: transposed [28] by [1,2,0]
[5+9x,5+9y,8+9z]: transposed [29] by [2,1,0]
[2+9x,8+9y,8+9z]: transposed [28] by [2,0,1]
endexp[5]
---------------- level 2
expanding queue[6]^1,meter=[3,3,3]: x²+y²-27x*y*z+z²
[0+27x,0+27y,0+27z]: unknown -> [30] [0,0,0] x²+y²-81x*y*z+z²
[9+27x,9+27y,9+27z]: unknown -> [31] [1,1,1] 25x-3x²+25y+81x*y-3y²+25z+81x*z+81y*z+243x*y*z-3z²+8
[18+27x,9+27y,9+27z]: unknown -> [32] [2,1,1] 23x-3x²+52y+81x*y-3y²+52z+81x*z+162y*z+243x*y*z-3z²+16
[9+27x,18+27y,9+27z]: transposed [32] by [2,0,1]
[18+27x,18+27y,9+27z]: unknown -> [33] [2,2,1] 50x-3x²+50y+81x*y-3y²+106z+162x*z+162y*z+243x*y*z-3z²+33
[9+27x,9+27y,18+27z]: transposed [32] by [2,1,0]
[18+27x,9+27y,18+27z]: transposed [33] by [1,2,0]
[9+27x,18+27y,18+27z]: transposed [33] by [2,0,1]
[18+27x,18+27y,18+27z]: unknown -> [34] [2,2,2] 104x-3x²+104y+162x*y-3y²+104z+162x*z+162y*z+243x*y*z-3z²+68
endexp[6]
expanding queue[7]^1,meter=[3,3,3]: 7x-3x²+7y+27x*y-3y²+7z+27x*z+27y*z+81x*y*z-3z²+2
[12+27x,3+27y,3+27z]: unknown -> [35] [1,0,0] x-9x²+34y+81x*y-9y²+34z+81x*z+324y*z+729x*y*z-9z²+2
[3+27x,12+27y,3+27z]: transposed [35] by [2,0,1]
[21+27x,21+27y,3+27z]: unknown -> [36] [2,2,0] 49x-9x²+49y+81x*y-9y²+439z+567x*z+567y*z+729x*y*z-9z²+38
[3+27x,3+27y,12+27z]: transposed [35] by [2,1,0]
[21+27x,12+27y,12+27z]: unknown -> [37] [2,1,1] 130x-9x²+244y+324x*y-9y²+244z+324x*z+567y*z+729x*y*z-9z²+103
[12+27x,21+27y,12+27z]: transposed [37] by [2,0,1]
[21+27x,3+27y,21+27z]: transposed [36] by [1,2,0]
[12+27x,12+27y,21+27z]: transposed [37] by [2,1,0]
[3+27x,21+27y,21+27z]: transposed [36] by [2,0,1]
endexp[7]
expanding queue[8]^1,meter=[3,3,3]: 5x-3x²+16y+27x*y-3y²+16z+27x*z+54y*z+81x*y*z-3z²+4
[15+27x,3+27y,3+27z]: unknown -> [38] [1,0,0] x+9x²-43y-81x*y+9y²-43z-81x*z-405y*z-729x*y*z+9z²-2
[24+27x,12+27y,3+27z]: unknown -> [39] [2,1,0] 20x-9x²+64y+81x*y-9y²+286z+324x*z+648y*z+729x*y*z-9z²+23
[6+27x,21+27y,3+27z]: unknown -> [40] [0,2,0] 59x-9x²+4y+81x*y-9y²+124z+567x*z+162y*z+729x*y*z-9z²+8
[24+27x,3+27y,12+27z]: transposed [39] by [0,2,1]
[6+27x,12+27y,12+27z]: unknown -> [41] [0,1,1] 140x-9x²+64y+324x*y-9y²+64z+324x*z+162y*z+729x*y*z-9z²+28
[15+27x,21+27y,12+27z]: unknown -> [42] [1,2,1] 242x-9x²+166y+324x*y-9y²+307z+567x*z+405y*z+729x*y*z-9z²+130
[6+27x,3+27y,21+27z]: transposed [40] by [0,2,1]
[15+27x,12+27y,21+27z]: transposed [42] by [0,2,1]
[24+27x,21+27y,21+27z]: unknown -> [43] [2,2,2] 425x-9x²+490y+567x*y-9y²+490z+567x*z+648y*z+729x*y*z-9z²+374
endexp[8]
expanding queue[9]^1,meter=[3,3,3]: 14x-3x²+14y+27x*y-3y²+34z+54x*z+54y*z+81x*y*z-3z²+9
[6+27x,6+27y,3+27z]: unknown -> [44] [0,0,0] 14x-9x²+14y+81x*y-9y²+34z+162x*z+162y*z+729x*y*z-9z²+3
[24+27x,15+27y,3+27z]: unknown -> [45] [2,1,0] 29x-9x²+62y+81x*y-9y²+358z+405x*z+648y*z+729x*y*z-9z²+30
[15+27x,24+27y,3+27z]: transposed [45] by [1,0,2]
[15+27x,6+27y,12+27z]: unknown -> [46] [1,0,1] 62x-9x²+176y+324x*y-9y²+82z+162x*z+405y*z+729x*y*z-9z²+35
[6+27x,15+27y,12+27z]: transposed [46] by [1,0,2]
[24+27x,24+27y,12+27z]: unknown -> [47] [2,2,1] 272x-9x²+272y+324x*y-9y²+568z+648x*z+648y*z+729x*y*z-9z²+240
[24+27x,6+27y,21+27z]: unknown -> [48] [2,0,2] 110x-9x²+500y+567x*y-9y²+130z+162x*z+648y*z+729x*y*z-9z²+99
[15+27x,15+27y,21+27z]: unknown -> [49] [1,1,2] 305x-9x²+305y+567x*y-9y²+211z+405x*z+405y*z+729x*y*z-9z²+164
[6+27x,24+27y,21+27z]: transposed [48] by [1,0,2]
endexp[9]
expanding queue[10]^1,meter=[3,3,3]: 32x-3x²+32y+54x*y-3y²+32z+54x*z+54y*z+81x*y*z-3z²+20
[24+27x,6+27y,6+27z]: unknown -> [50] [2,0,0] 20x-9x²+140y+162x*y-9y²+140z+162x*z+648y*z+729x*y*z-9z²+24
[15+27x,15+27y,6+27z]: unknown -> [51] [1,1,0] 80x-9x²+80y+162x*y-9y²+221z+405x*z+405y*z+729x*y*z-9z²+44
[6+27x,24+27y,6+27z]: transposed [50] by [2,0,1]
[15+27x,6+27y,15+27z]: transposed [51] by [1,2,0]
[6+27x,15+27y,15+27z]: transposed [51] by [2,0,1]
[24+27x,24+27y,15+27z]: unknown -> [52] [2,2,1] 344x-9x²+344y+405x*y-9y²+566z+648x*z+648y*z+729x*y*z-9z²+303
[6+27x,6+27y,24+27z]: transposed [50] by [2,1,0]
[24+27x,15+27y,24+27z]: transposed [52] by [1,2,0]
[15+27x,24+27y,24+27z]: transposed [52] by [2,0,1]
endexp[10]
expanding queue[11]^2,meter=[3,3,3]: x-9x²+y+27x*y-9y²+z+27x*z+27y*z+243x*y*z-9z²
[1+27x,1+27y,1+27z]: unknown -> [53] [0,0,0] x-27x²+y+81x*y-27y²+z+81x*z+81y*z+2187x*y*z-27z²
[19+27x,10+27y,1+27z]: unknown -> [54] [2,1,0] 8x+27x²-37y-81x*y+27y²-568z-810x*z-1539y*z-2187x*y*z+27z²-4
[10+27x,19+27y,1+27z]: transposed [54] by [1,0,2]
[19+27x,1+27y,10+27z]: transposed [54] by [0,2,1]
[10+27x,10+27y,10+27z]: unknown -> [55] [1,1,1] 280x-27x²+280y+810x*y-27y²+280z+810x*z+810y*z+2187x*y*z-27z²+100
[1+27x,19+27y,10+27z]: transposed [54] by [2,0,1]
[10+27x,1+27y,19+27z]: transposed [54] by [1,2,0]
[1+27x,10+27y,19+27z]: transposed [54] by [2,1,0]
[19+27x,19+27y,19+27z]: unknown -> [56] [2,2,2] 1045x-27x²+1045y+1539x*y-27y²+1045z+1539x*z+1539y*z+2187x*y*z-27z²+722
endexp[11]
expanding queue[12]^2,meter=[3,3,3]: 2x+9x²-13y-27x*y+9y²-82z-108x*z-189y*z-243x*y*z+9z²-2
[16+27x,4+27y,1+27z]: unknown -> [57] [1,0,0] 20x+27x²-40y-81x*y+27y²-190z-324x*z-1296y*z-2187x*y*z+27z²+3
[7+27x,13+27y,1+27z]: unknown -> [58] [0,1,0] 25x-27x²-5y+81x*y-27y²+271z+1053x*z+567y*z+2187x*y*z-27z²+2
-> solution [34,13,1],NONTRIVIAL
[25+27x,22+27y,1+27z]: unknown -> [59] [2,2,0] 16x-27x²+31y+81x*y-27y²+1648z+1782x*z+2025y*z+2187x*y*z-27z²+20
[7+27x,4+27y,10+27z]: unknown -> [60] [0,0,1] 106x-27x²+202y+810x*y-27y²+64z+324x*z+567y*z+2187x*y*z-27z²+25
[25+27x,13+27y,10+27z]: unknown -> [61] [2,1,1] 340x-27x²+724y+810x*y-27y²+955z+1053x*z+2025y*z+2187x*y*z-27z²+328
[16+27x,22+27y,10+27z]: unknown -> [62] [1,2,1] 628x-27x²+436y+810x*y-27y²+1036z+1782x*z+1296y*z+2187x*y*z-27z²+360
[25+27x,4+27y,19+27z]: unknown -> [63] [2,0,2] 178x-27x²+1417y+1539x*y-27y²+262z+324x*z+2025y*z+2187x*y*z-27z²+174
[16+27x,13+27y,19+27z]: unknown -> [64] [1,1,2] 709x-27x²+886y+1539x*y-27y²+586z+1053x*z+1296y*z+2187x*y*z-27z²+410
[7+27x,22+27y,19+27z]: unknown -> [65] [0,2,2] 1240x-27x²+355y+1539x*y-27y²+424z+1782x*z+567y*z+2187x*y*z-27z²+292
endexp[12]
expanding queue[13]^2,meter=[3,3,3]: 40x-9x²+40y+108x*y-9y²+40z+108x*z+108y*z+243x*y*z-9z²+16
[22+27x,4+27y,4+27z]: unknown -> [66] [2,0,0] 4x-27x²+256y+324x*y-27y²+256z+324x*z+1782y*z+2187x*y*z-27z²+20
[13+27x,13+27y,4+27z]: unknown -> [67] [1,1,0] 130x-27x²+130y+324x*y-27y²+499z+1053x*z+1053y*z+2187x*y*z-27z²+62
[4+27x,22+27y,4+27z]: transposed [66] by [2,0,1]
[13+27x,4+27y,13+27z]: transposed [67] by [1,2,0]
[4+27x,13+27y,13+27z]: transposed [67] by [2,0,1]
[22+27x,22+27y,13+27z]: unknown -> [68] [2,2,1] 814x-27x²+814y+1053x*y-27y²+1426z+1782x*z+1782y*z+2187x*y*z-27z²+657
[4+27x,4+27y,22+27z]: transposed [66] by [2,1,0]
[22+27x,13+27y,22+27z]: transposed [68] by [1,2,0]
[13+27x,22+27y,22+27z]: transposed [68] by [2,0,1]
endexp[13]
expanding queue[14]^2,meter=[3,3,3]: 133x-9x²+133y+189x*y-9y²+133z+189x*z+189y*z+243x*y*z-9z²+98
[16+27x,7+27y,7+27z]: unknown -> [69] [1,0,0] 115x-27x²+322y+567x*y-27y²+322z+567x*z+1296y*z+2187x*y*z-27z²+74
[7+27x,16+27y,7+27z]: transposed [69] by [2,0,1]
[25+27x,25+27y,7+27z]: unknown -> [70] [2,2,0] 475x-27x²+475y+567x*y-27y²+1861z+2025x*z+2025y*z+2187x*y*z-27z²+438
[7+27x,7+27y,16+27z]: transposed [69] by [2,1,0]
[25+27x,16+27y,16+27z]: unknown -> [71] [2,1,1] 718x-27x²+1168y+1296x*y-27y²+1168z+1296x*z+2025y*z+2187x*y*z-27z²+669
[16+27x,25+27y,16+27z]: transposed [71] by [2,0,1]
[25+27x,7+27y,25+27z]: transposed [70] by [1,2,0]
[16+27x,16+27y,25+27z]: transposed [71] by [2,1,0]
[7+27x,25+27y,25+27z]: transposed [70] by [2,0,1]
endexp[14]
expanding queue[15]^3,meter=[3,3,3]: x+9x²-4y-27x*y+9y²-4z-27x*z-54y*z-243x*y*z+9z²
[2+27x,1+27y,1+27z]: unknown -> [72] [0,0,0] x+27x²-4y-81x*y+27y²-4z-81x*z-162y*z-2187x*y*z+27z²
[11+27x,10+27y,1+27z]: unknown -> [73] [1,1,0] 8x-27x²+13y+81x*y-27y²+328z+810x*z+891y*z+2187x*y*z-27z²+4
[20+27x,19+27y,1+27z]: unknown -> [74] [2,2,0] 17x-27x²+22y+81x*y-27y²+1138z+1539x*z+1620y*z+2187x*y*z-27z²+14
[11+27x,1+27y,10+27z]: transposed [73] by [0,2,1]
[20+27x,10+27y,10+27z]: unknown -> [75] [2,1,1] 260x-27x²+580y+810x*y-27y²+580z+810x*z+1620y*z+2187x*y*z-27z²+200
[2+27x,19+27y,10+27z]: unknown -> [76] [0,2,1] 566x-27x²+22y+810x*y-27y²+94z+1539x*z+162y*z+2187x*y*z-27z²+25
[20+27x,1+27y,19+27z]: transposed [74] by [0,2,1]
[2+27x,10+27y,19+27z]: transposed [76] by [0,2,1]
[11+27x,19+27y,19+27z]: unknown -> [77] [1,2,2] 1061x-27x²+589y+1539x*y-27y²+589z+1539x*z+891y*z+2187x*y*z-27z²+410
endexp[15]
expanding queue[16]^3,meter=[3,3,3]: 2x-9x²+7y+27x*y-9y²+58z+108x*z+135y*z+243x*y*z-9z²+2
[23+27x,4+27y,1+27z]: unknown -> [78] [2,0,0] 34x+27x²-61y-81x*y+27y²-274z-324x*z-1863y*z-2187x*y*z+27z²+10
[5+27x,13+27y,1+27z]: unknown -> [79] [0,1,0] 29x-27x²-11y+81x*y-27y²+193z+1053x*z+405y*z+2187x*y*z-27z²
-> solution [5,13,1],NONTRIVIAL
[14+27x,22+27y,1+27z]: unknown -> [80] [1,2,0] 38x-27x²-2y+81x*y-27y²+922z+1782x*z+1134y*z+2187x*y*z-27z²+9
[5+27x,4+27y,10+27z]: unknown -> [81] [0,0,1] 110x-27x²+142y+810x*y-27y²+40z+324x*z+405y*z+2187x*y*z-27z²+17
[14+27x,13+27y,10+27z]: unknown -> [82] [1,1,1] 362x-27x²+394y+810x*y-27y²+526z+1053x*z+1134y*z+2187x*y*z-27z²+185
[23+27x,22+27y,10+27z]: unknown -> [83] [2,2,1] 614x-27x²+646y+810x*y-27y²+1498z+1782x*z+1863y*z+2187x*y*z-27z²+521
[14+27x,4+27y,19+27z]: unknown -> [84] [1,0,2] 200x-27x²+790y+1539x*y-27y²+130z+324x*z+1134y*z+2187x*y*z-27z²+97
[23+27x,13+27y,19+27z]: unknown -> [85] [2,1,2] 695x-27x²+1285y+1539x*y-27y²+859z+1053x*z+1863y*z+2187x*y*z-27z²+592
[5+27x,22+27y,19+27z]: unknown -> [86] [0,2,2] 1244x-27x²+241y+1539x*y-27y²+292z+1782x*z+405y*z+2187x*y*z-27z²+200
endexp[16]
expanding queue[17]^3,meter=[3,3,3]: 5x-9x²+10y+27x*y-9y²+166z+189x*z+216y*z+243x*y*z-9z²+6
[8+27x,7+27y,1+27z]: unknown -> [87] [0,0,0] 5x-27x²+10y+81x*y-27y²+166z+567x*z+648y*z+2187x*y*z-27z²+2
[17+27x,16+27y,1+27z]: unknown -> [88] [1,1,0] 14x-27x²+19y+81x*y-27y²+814z+1296x*z+1377y*z+2187x*y*z-27z²+10
[26+27x,25+27y,1+27z]: unknown -> [89] [2,2,0] 23x-27x²+28y+81x*y-27y²+1948z+2025x*z+2106y*z+2187x*y*z-27z²+24
[17+27x,7+27y,10+27z]: unknown -> [90] [1,0,1] 176x-27x²+496y+810x*y-27y²+337z+567x*z+1377y*z+2187x*y*z-27z²+116
[26+27x,16+27y,10+27z]: unknown -> [91] [2,1,1] 428x-27x²+748y+810x*y-27y²+1228z+1296x*z+2106y*z+2187x*y*z-27z²+424
[8+27x,25+27y,10+27z]: unknown -> [92] [0,2,1] 734x-27x²+190y+810x*y-27y²+580z+2025x*z+648y*z+2187x*y*z-27z²+193
[26+27x,7+27y,19+27z]: unknown -> [93] [2,0,2] 347x-27x²+1468y+1539x*y-27y²+508z+567x*z+2106y*z+2187x*y*z-27z²+344
[8+27x,16+27y,19+27z]: unknown -> [94] [0,1,2] 896x-27x²+424y+1539x*y-27y²+346z+1296x*z+648y*z+2187x*y*z-27z²+245
[17+27x,25+27y,19+27z]: unknown -> [95] [1,2,2] 1391x-27x²+919y+1539x*y-27y²+1237z+2025x*z+1377y*z+2187x*y*z-27z²+850
endexp[17]
expanding queue[18]^3,meter=[3,3,3]: 32x-9x²+88y+108x*y-9y²+88z+108x*z+216y*z+243x*y*z-9z²+32
[26+27x,4+27y,4+27z]: unknown -> [96] [2,0,0] 4x+27x²-304y-324x*y+27y²-304z-324x*z-2106y*z-2187x*y*z+27z²-20
[8+27x,13+27y,4+27z]: unknown -> [97] [0,1,0] 140x-27x²+70y+324x*y-27y²+304z+1053x*z+648y*z+2187x*y*z-27z²+37
[17+27x,22+27y,4+27z]: unknown -> [98] [1,2,0] 230x-27x²+160y+324x*y-27y²+1114z+1782x*z+1377y*z+2187x*y*z-27z²+137
[8+27x,4+27y,13+27z]: transposed [97] by [0,2,1]
[17+27x,13+27y,13+27z]: unknown -> [99] [1,1,1] 473x-27x²+637y+1053x*y-27y²+637z+1053x*z+1377y*z+2187x*y*z-27z²+296
[26+27x,22+27y,13+27z]: unknown -> [100] [2,2,1] 806x-27x²+970y+1053x*y-27y²+1690z+1782x*z+2106y*z+2187x*y*z-27z²+777
[17+27x,4+27y,22+27z]: transposed [98] by [0,2,1]
[26+27x,13+27y,22+27z]: transposed [100] by [0,2,1]
[8+27x,22+27y,22+27z]: unknown -> [101] [0,2,2] 1436x-27x²+484y+1782x*y-27y²+484z+1782x*z+648y*z+2187x*y*z-27z²+392
endexp[18]
expanding queue[19]^3,meter=[3,3,3]: 80x-9x²+10y+108x*y-9y²+34z+189x*z+54y*z+243x*y*z-9z²+11
[20+27x,7+27y,4+27z]: unknown -> [102] [2,0,0] 44x-27x²+226y+324x*y-27y²+412z+567x*z+1620y*z+2187x*y*z-27z²+45
[2+27x,16+27y,4+27z]: unknown -> [103] [0,1,0] 188x-27x²-8y+324x*y-27y²+88z+1296x*z+162y*z+2187x*y*z-27z²+4
[11+27x,25+27y,4+27z]: unknown -> [104] [1,2,0] 278x-27x²+82y+324x*y-27y²+817z+2025x*z+891y*z+2187x*y*z-27z²+94
[2+27x,7+27y,13+27z]: unknown -> [105] [0,0,1] 269x-27x²+64y+1053x*y-27y²+16z+567x*z+162y*z+2187x*y*z-27z²+12
[11+27x,16+27y,13+27z]: unknown -> [106] [1,1,1] 602x-27x²+397y+1053x*y-27y²+502z+1296x*z+891y*z+2187x*y*z-27z²+234
[20+27x,25+27y,13+27z]: unknown -> [107] [2,2,1] 935x-27x²+730y+1053x*y-27y²+1474z+2025x*z+1620y*z+2187x*y*z-27z²+678
[11+27x,7+27y,22+27z]: unknown -> [108] [1,0,2] 440x-27x²+712y+1782x*y-27y²+187z+567x*z+891y*z+2187x*y*z-27z²+164
[20+27x,16+27y,22+27z]: unknown -> [109] [2,1,2] 1016x-27x²+1288y+1782x*y-27y²+916z+1296x*z+1620y*z+2187x*y*z-27z²+740
[2+27x,25+27y,22+27z]: unknown -> [110] [0,2,2] 1646x-27x²+82y+1782x*y-27y²+106z+2025x*z+162y*z+2187x*y*z-27z²+81
endexp[19]
expanding queue[20]^3,meter=[3,3,3]: 137x-9x²+91y+189x*y-9y²+91z+189x*z+135y*z+243x*y*z-9z²+68
[23+27x,7+27y,7+27z]: unknown -> [111] [2,0,0] 101x-27x²+469y+567x*y-27y²+469z+567x*z+1863y*z+2187x*y*z-27z²+102
[5+27x,16+27y,7+27z]: unknown -> [112] [0,1,0] 326x-27x²+73y+567x*y-27y²+226z+1296x*z+405y*z+2187x*y*z-27z²+50
[14+27x,25+27y,7+27z]: unknown -> [113] [1,2,0] 497x-27x²+244y+567x*y-27y²+1036z+2025x*z+1134y*z+2187x*y*z-27z²+240
[5+27x,7+27y,16+27z]: transposed [112] by [0,2,1]
[14+27x,16+27y,16+27z]: unknown -> [114] [1,1,1] 740x-27x²+640y+1296x*y-27y²+640z+1296x*z+1134y*z+2187x*y*z-27z²+372
[23+27x,25+27y,16+27z]: unknown -> [115] [2,2,1] 1154x-27x²+1054y+1296x*y-27y²+1693z+2025x*z+1863y*z+2187x*y*z-27z²+970
[14+27x,7+27y,25+27z]: transposed [113] by [0,2,1]
[23+27x,16+27y,25+27z]: transposed [115] by [0,2,1]
[5+27x,25+27y,25+27z]: unknown -> [116] [0,2,2] 1865x-27x²+325y+2025x*y-27y²+325z+2025x*z+405y*z+2187x*y*z-27z²+300
endexp[20]
expanding queue[21]^4,meter=[3,3,3]: 4x+9x²-11y-27x*y+9y²-28z-54x*z-135y*z-243x*y*z+9z²
[5+27x,2+27y,1+27z]: unknown -> [117] [0,0,0] 4x+27x²-11y-81x*y+27y²-28z-162x*z-405y*z-2187x*y*z+27z²
-> solution [5,2,1],NONTRIVIAL
[23+27x,11+27y,1+27z]: unknown -> [118] [2,1,0] 13x+27x²-47y-81x*y+27y²-757z-891x*z-1863y*z-2187x*y*z+27z²-4
[14+27x,20+27y,1+27z]: unknown -> [119] [1,2,0] 32x-27x²+2y+81x*y-27y²+838z+1620x*z+1134y*z+2187x*y*z-27z²+9
[14+27x,2+27y,10+27z]: unknown -> [120] [1,0,1] 32x-27x²+416y+810x*y-27y²+64z+162x*z+1134y*z+2187x*y*z-27z²+20
[5+27x,11+27y,10+27z]: unknown -> [121] [0,1,1] 320x-27x²+128y+810x*y-27y²+145z+891x*z+405y*z+2187x*y*z-27z²+52
[23+27x,20+27y,10+27z]: unknown -> [122] [2,2,1] 554x-27x²+650y+810x*y-27y²+1360z+1620x*z+1863y*z+2187x*y*z-27z²+473
[23+27x,2+27y,19+27z]: unknown -> [123] [2,0,2] 68x-27x²+1307y+1539x*y-27y²+100z+162x*z+1863y*z+2187x*y*z-27z²+64
[14+27x,11+27y,19+27z]: unknown -> [124] [1,1,2] 599x-27x²+776y+1539x*y-27y²+424z+891x*z+1134y*z+2187x*y*z-27z²+300
[5+27x,20+27y,19+27z]: unknown -> [125] [0,2,2] 1130x-27x²+245y+1539x*y-27y²+262z+1620x*z+405y*z+2187x*y*z-27z²+182
endexp[21]
expanding queue[22]^4,meter=[3,3,3]: 8x-9x²+8y+27x*y-9y²+190z+216x*z+216y*z+243x*y*z-9z²+7
[17+27x,8+27y,1+27z]: unknown -> [126] [1,0,0] 10x+27x²-35y-81x*y+27y²-406z-648x*z-1377y*z-2187x*y*z+27z²-2
[8+27x,17+27y,1+27z]: transposed [126] by [1,0,2]
[26+27x,26+27y,1+27z]: unknown -> [127] [2,2,0] 26x-27x²+26y+81x*y-27y²+2026z+2106x*z+2106y*z+2187x*y*z-27z²+25
[26+27x,8+27y,10+27z]: unknown -> [128] [2,0,1] 188x-27x²+764y+810x*y-27y²+604z+648x*z+2106y*z+2187x*y*z-27z²+200
[17+27x,17+27y,10+27z]: unknown -> [129] [1,1,1] 476x-27x²+476y+810x*y-27y²+847z+1377x*z+1377y*z+2187x*y*z-27z²+296
[8+27x,26+27y,10+27z]: transposed [128] by [1,0,2]
[8+27x,8+27y,19+27z]: unknown -> [130] [0,0,2] 440x-27x²+440y+1539x*y-27y²+154z+648x*z+648y*z+2187x*y*z-27z²+117
[26+27x,17+27y,19+27z]: unknown -> [131] [2,1,2] 917x-27x²+1448y+1539x*y-27y²+1288z+1377x*z+2106y*z+2187x*y*z-27z²+884
[17+27x,26+27y,19+27z]: transposed [131] by [1,0,2]
endexp[22]
expanding queue[23]^4,meter=[3,3,3]: 8x-9x²+92y+108x*y-9y²+40z+54x*z+216y*z+243x*y*z-9z²+12
[8+27x,2+27y,4+27z]: unknown -> [132] [0,0,0] 8x-27x²+92y+324x*y-27y²+40z+162x*z+648y*z+2187x*y*z-27z²+4
[26+27x,11+27y,4+27z]: unknown -> [133] [2,1,0] 80x-27x²+290y+324x*y-27y²+850z+891x*z+2106y*z+2187x*y*z-27z²+97
[17+27x,20+27y,4+27z]: unknown -> [134] [1,2,0] 206x-27x²+164y+324x*y-27y²+1012z+1620x*z+1377y*z+2187x*y*z-27z²+125
[17+27x,2+27y,13+27z]: unknown -> [135] [1,0,1] 44x-27x²+659y+1053x*y-27y²+76z+162x*z+1377y*z+2187x*y*z-27z²+32
[8+27x,11+27y,13+27z]: unknown -> [136] [0,1,1] 413x-27x²+290y+1053x*y-27y²+238z+891x*z+648y*z+2187x*y*z-27z²+114
[26+27x,20+27y,13+27z]: unknown -> [137] [2,2,1] 728x-27x²+974y+1053x*y-27y²+1534z+1620x*z+2106y*z+2187x*y*z-27z²+705
[26+27x,2+27y,22+27z]: unknown -> [138] [2,0,2] 80x-27x²+1712y+1782x*y-27y²+112z+162x*z+2106y*z+2187x*y*z-27z²+84
[17+27x,11+27y,22+27z]: unknown -> [139] [1,1,2] 692x-27x²+1100y+1782x*y-27y²+517z+891x*z+1377y*z+2187x*y*z-27z²+424
[8+27x,20+27y,22+27z]: unknown -> [140] [0,2,2] 1304x-27x²+488y+1782x*y-27y²+436z+1620x*z+648y*z+2187x*y*z-27z²+356
endexp[23]
expanding queue[24]^4,meter=[3,3,3]: 50x-9x²+50y+108x*y-9y²+67z+135x*z+135y*z+243x*y*z-9z²+26
[23+27x,5+27y,4+27z]: unknown -> [141] [2,0,0] 14x-27x²+266y+324x*y-27y²+337z+405x*z+1863y*z+2187x*y*z-27z²+30
[14+27x,14+27y,4+27z]: unknown -> [142] [1,1,0] 140x-27x²+140y+324x*y-27y²+580z+1134x*z+1134y*z+2187x*y*z-27z²+72
[5+27x,23+27y,4+27z]: transposed [141] by [1,0,2]
[5+27x,5+27y,13+27z]: unknown -> [143] [0,0,1] 185x-27x²+185y+1053x*y-27y²+49z+405x*z+405y*z+2187x*y*z-27z²+28
[23+27x,14+27y,13+27z]: unknown -> [144] [2,1,1] 500x-27x²+869y+1053x*y-27y²+940z+1134x*z+1863y*z+2187x*y*z-27z²+432
[14+27x,23+27y,13+27z]: transposed [144] by [1,0,2]
[14+27x,5+27y,22+27z]: unknown -> [145] [1,0,2] 302x-27x²+914y+1782x*y-27y²+166z+405x*z+1134y*z+2187x*y*z-27z²+145
[5+27x,14+27y,22+27z]: transposed [145] by [1,0,2]
[23+27x,23+27y,22+27z]: unknown -> [146] [2,2,2] 1472x-27x²+1472y+1782x*y-27y²+1543z+1863x*z+1863y*z+2187x*y*z-27z²+1236
endexp[24]
expanding queue[25]^4,meter=[3,3,3]: 38x-9x²+38y+189x*y-9y²-2z+54x*z+54y*z+243x*y*z-9z²+3
[2+27x,2+27y,7+27z]: unknown -> [147] [0,0,0] 38x-27x²+38y+567x*y-27y²-2z+162x*z+162y*z+2187x*y*z-27z²+1
[20+27x,11+27y,7+27z]: unknown -> [148] [2,1,0] 191x-27x²+398y+567x*y-27y²+646z+891x*z+1620y*z+2187x*y*z-27z²+150
[11+27x,20+27y,7+27z]: transposed [148] by [1,0,2]
[11+27x,2+27y,16+27z]: unknown -> [149] [1,0,1] 74x-27x²+524y+1296x*y-27y²+34z+162x*z+891y*z+2187x*y*z-27z²+25
[2+27x,11+27y,16+27z]: transposed [149] by [1,0,2]
[20+27x,20+27y,16+27z]: unknown -> [150] [2,2,1] 920x-27x²+920y+1296x*y-27y²+1168z+1620x*z+1620y*z+2187x*y*z-27z²+672
[20+27x,2+27y,25+27z]: unknown -> [151] [2,0,2] 110x-27x²+1496y+2025x*y-27y²+70z+162x*z+1620y*z+2187x*y*z-27z²+73
[11+27x,11+27y,25+27z]: unknown -> [152] [1,1,2] 803x-27x²+803y+2025x*y-27y²+313z+891x*z+891y*z+2187x*y*z-27z²+304
[2+27x,20+27y,25+27z]: transposed [151] by [1,0,2]
endexp[25]
expanding queue[26]^4,meter=[3,3,3]: 89x-9x²+158y+189x*y-9y²+106z+135x*z+216y*z+243x*y*z-9z²+78
[8+27x,5+27y,7+27z]: unknown -> [153] [0,0,0] 89x-27x²+158y+567x*y-27y²+106z+405x*z+648y*z+2187x*y*z-27z²+26
[26+27x,14+27y,7+27z]: unknown -> [154] [2,1,0] 242x-27x²+518y+567x*y-27y²+1078z+1134x*z+2106y*z+2187x*y*z-27z²+249
[17+27x,23+27y,7+27z]: unknown -> [155] [1,2,0] 449x-27x²+311y+567x*y-27y²+1159z+1863x*z+1377y*z+2187x*y*z-27z²+272
[17+27x,5+27y,16+27z]: unknown -> [156] [1,0,1] 206x-27x²+806y+1296x*y-27y²+223z+405x*z+1377y*z+2187x*y*z-27z²+130
[8+27x,14+27y,16+27z]: unknown -> [157] [0,1,1] 656x-27x²+356y+1296x*y-27y²+304z+1134x*z+648y*z+2187x*y*z-27z²+180
[26+27x,23+27y,16+27z]: unknown -> [158] [2,2,1] 1052x-27x²+1202y+1296x*y-27y²+1762z+1863x*z+2106y*z+2187x*y*z-27z²+1009
[26+27x,5+27y,25+27z]: unknown -> [159] [2,0,2] 323x-27x²+1940y+2025x*y-27y²+340z+405x*z+2106y*z+2187x*y*z-27z²+312
[17+27x,14+27y,25+27z]: unknown -> [160] [1,1,2] 1016x-27x²+1247y+2025x*y-27y²+664z+1134x*z+1377y*z+2187x*y*z-27z²+620
[8+27x,23+27y,25+27z]: unknown -> [161] [0,2,2] 1709x-27x²+554y+2025x*y-27y²+502z+1863x*z+648y*z+2187x*y*z-27z²+466
endexp[26]
expanding queue[27]^5,meter=[3,3,3]: 2x-9x²+26y+54x*y-9y²+26z+54x*z+135y*z+243x*y*z-9z²+3
[5+27x,2+27y,2+27z]: unknown -> [162] [0,0,0] 2x-27x²+26y+162x*y-27y²+26z+162x*z+405y*z+2187x*y*z-27z²+1
-> solution [5,29,2],NONTRIVIAL [5,2,29],NONTRIVIAL
[23+27x,11+27y,2+27z]: unknown -> [163] [2,1,0] 20x-27x²+116y+162x*y-27y²+755z+891x*z+1863y*z+2187x*y*z-27z²+32
[14+27x,20+27y,2+27z]: unknown -> [164] [1,2,0] 92x-27x²+44y+162x*y-27y²+836z+1620x*z+1134y*z+2187x*y*z-27z²+40
[23+27x,2+27y,11+27z]: transposed [163] by [0,2,1]
[14+27x,11+27y,11+27z]: unknown -> [165] [1,1,1] 335x-27x²+440y+891x*y-27y²+440z+891x*z+1134y*z+2187x*y*z-27z²+172
[5+27x,20+27y,11+27z]: unknown -> [166] [0,2,1] 650x-27x²+125y+891x*y-27y²+278z+1620x*z+405y*z+2187x*y*z-27z²+102
[14+27x,2+27y,20+27z]: transposed [164] by [0,2,1]
[5+27x,11+27y,20+27z]: transposed [166] by [0,2,1]
[23+27x,20+27y,20+27z]: unknown -> [167] [2,2,2] 1154x-27x²+1340y+1620x*y-27y²+1340z+1620x*z+1863y*z+2187x*y*z-27z²+973
endexp[27]
expanding queue[28]^5,meter=[3,3,3]: 32x-9x²+32y+54x*y-9y²+188z+216x*z+216y*z+243x*y*z-9z²+28
[17+27x,8+27y,2+27z]: unknown -> [168] [1,0,0] 14x-27x²+86y+162x*y-27y²+404z+648x*z+1377y*z+2187x*y*z-27z²+17
[8+27x,17+27y,2+27z]: transposed [168] by [1,0,2]
[26+27x,26+27y,2+27z]: unknown -> [169] [2,2,0] 104x-27x²+104y+162x*y-27y²+2024z+2106x*z+2106y*z+2187x*y*z-27z²+100
[8+27x,8+27y,11+27z]: unknown -> [170] [0,0,1] 248x-27x²+248y+891x*y-27y²+170z+648x*z+648y*z+2187x*y*z-27z²+69
[26+27x,17+27y,11+27z]: unknown -> [171] [2,1,1] 509x-27x²+824y+891x*y-27y²+1304z+1377x*z+2106y*z+2187x*y*z-27z²+500
[17+27x,26+27y,11+27z]: transposed [171] by [1,0,2]
[26+27x,8+27y,20+27z]: unknown -> [172] [2,0,2] 428x-27x²+1544y+1620x*y-27y²+584z+648x*z+2106y*z+2187x*y*z-27z²+420
[17+27x,17+27y,20+27z]: unknown -> [173] [1,1,2] 986x-27x²+986y+1620x*y-27y²+827z+1377x*z+1377y*z+2187x*y*z-27z²+606
[8+27x,26+27y,20+27z]: transposed [172] by [1,0,2]
endexp[28]
expanding queue[29]^5,meter=[3,3,3]: 59x-9x²+110y+135x*y-9y²+110z+135x*z+216y*z+243x*y*z-9z²+54
[8+27x,5+27y,5+27z]: unknown -> [174] [0,0,0] 59x-27x²+110y+405x*y-27y²+110z+405x*z+648y*z+2187x*y*z-27z²+18
[26+27x,14+27y,5+27z]: unknown -> [175] [2,1,0] 158x-27x²+362y+405x*y-27y²+1082z+1134x*z+2106y*z+2187x*y*z-27z²+169
[17+27x,23+27y,5+27z]: unknown -> [176] [1,2,0] 311x-27x²+209y+405x*y-27y²+1163z+1863x*z+1377y*z+2187x*y*z-27z²+186
[26+27x,5+27y,14+27z]: transposed [175] by [0,2,1]
[17+27x,14+27y,14+27z]: unknown -> [177] [1,1,1] 554x-27x²+686y+1134x*y-27y²+686z+1134x*z+1377y*z+2187x*y*z-27z²+345
[8+27x,23+27y,14+27z]: unknown -> [178] [0,2,1] 950x-27x²+290y+1134x*y-27y²+524z+1863x*z+648y*z+2187x*y*z-27z²+257
[17+27x,5+27y,23+27z]: transposed [176] by [0,2,1]
[8+27x,14+27y,23+27z]: transposed [178] by [0,2,1]
[26+27x,23+27y,23+27z]: unknown -> [179] [2,2,2] 1535x-27x²+1748y+1863x*y-27y²+1748z+1863x*z+2106y*z+2187x*y*z-27z²+1464
endexp[29]
---------------- level 3
Maximum level 3 [180] mod 3: x²+y²-3x*y*z+z²
|
4259706cc7f715401eec509c3776791baadb7e6b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1736/CH3/EX3.15/Ch03Ex15.sce | dabf43ca99fdcba884a530f5898aa6e2ad367ac9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 731 | sce | Ch03Ex15.sce | // Scilab Code Ex3.15: Page-94 (2006)
clc; clear;
T_M = 1356; // Melting temperature of Cu, K
V = 7.114; // Atomic volume of Cu, cm cube per g-atom
M = 63.5; // atomic weight of Cu, g/mole
K = 138.5; // Lindemann constant
theta_M = K*(T_M/M)^(1/2)*(1/V)^(1/3); // Debye temperature by Lindemann method, K
printf("\nThe Debye temperature by Lindemann method = %3d K", ceil(theta_M));
printf("\nThe values obtained from other methods are:");
printf("\ntheta_s = 342 K; theta_R = 336 K; theta_E = 345 K");
// Result
// The Debye temperature by Lindemann method = 333 K
// The values obtained from other methods are:
// theta_s = 342 K; theta_R = 336 K; theta_E = 345 K
|
22f6c85a353ba9ab7e59df58d536adae58f45fe5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH4/EX4.28/4Ex28.sce | 95a8905484e65a82cb9a536bb8188e23271f1397 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 254 | sce | 4Ex28.sce | //chapter 4 Ex 28
clc;
clear;
close;
sumsquares=117; product=54;
Sum=sqrt(sumsquares+2*product); //from the formula (a+b)^2=a^2+b^2+2*a*b
subtract=sqrt(sumsquares-2*product);
value=Sum/subtract;
mprintf("The value of (a+b)/(a-b)=%.0f",value);
|
a81b5c06bcc4387ac7ea5990ac7d5e957a80bc33 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3/Unix-Windows/scilab-2.3/macros/percent/%rnlss.sci | c99961b63a6fc61bb406163bc0508e2a0f5c0b08 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 66 | sci | %rnlss.sci | function r=%rnlss(s1,s2)
//%rnlss(s1,s2) <=> s1<>s2
//!
r=%t
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.