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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3ce5ad469386fa3a09b2b6a2c08c22f34c84f2d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2381/CH3/EX3.2/ex_2.sce | 29d6bdec6cc695e5426156c33df5f5f16546a1b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex_2.sce | //Example 2 // A/Amax
clc;
clear;
close;
x1=[0.99;0.98;0.97];//
wt=50;//
wo=1;//assume
fo=1;//assume
for i=1:3
a(i)=((fo/((wo^2)*((1-x1(i)^2)^2+((1/wt^2)*x1(i)^2))^(1/2))));//
am(i)=fo/((wo^2)*(1/wt^2)^(1/2));//
z(i)=a(i)/am(i);//
disp("for p/wo "+string(x1(i))+" value of A/Amax is "+string(z(i))+"")
en... |
f55b11f761b7c00f9a875c5dfacdb8993d04b82e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1073/CH5/EX5.17/5_17.sce | fa3b4376635044a10d4d3ff996aa0c6b74dd03c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,166 | sce | 5_17.sce | clc;
clear;
//Example 5.17
mb_dot=1.25 //Benzene in [kg/s]
Cpb=1.9*10^3 //For benzene in [J/kg.K]
Cpw=4.187*10^3 //in [J/kg.K]
T1=350 //[K]
T2=300 //[K]
Q=mb_dot*Cpb*(T1-T2) //[W]
t1=290 //[K]
t2=320 //[K]
dT1=T1-t2 ... |
b347853cea754ecd6900c4f63721971c7b35cb19 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1970/CH2/EX2.16/Ch02Exa16.sce | a75a026223cebff4e8cd926ff748da2b0633fbd0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 814 | sce | Ch02Exa16.sce | // Scilab code Exa2.16 : : Page 94 (2011)
clc; clear;
A_0 = 3.7e+07; // Initial activity, disintegrations per sec
T = 12.6; // Half life of I-130, hours
t = 24*3600; // time for dose absorbed calculation,sec
E = 0.29*1.6e-06; // Average energy of beta rays, ergs
m = 2; // Mass of iodine thyroid tis... |
d1f47608ec24d8aed8e21a0f22af2dec96d3557a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2471/CH5/EX5.3/Ex5_3.sce | b1199e2d44ded9449acece855b5b3becd6891909 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 553 | sce | Ex5_3.sce | clear ;
clc;
// Example 5.3
printf('Example 5.3\n\n');
printf('Page No. 117\n\n');
// given
T1 = 25;// in degree celcius
T2 = 212;// in degree celcius
x = 0.96;// dryness fraction
m = 1.25;// Mass flow rate in kg/s
//from steam table
hL_212 = 907*10^3;// Specific enthalpy at 212 degree celcius in J/kg
h... |
f9b88e2a0019ca77238c58d749bf843e48fb3ea8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2258/CH7/EX7.5/7_5.sce | 7c5b96d01ee1768ab7821b7403f7f256bd031538 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 602 | sce | 7_5.sce | clc();
clear;
// To calculate the concentration of holes and electrons
mew_n=1300*10^-4; //in m^2/Vs
mew_p=500*10^-4; //in m^2/Vs
sigma=3*10^4; //conductivity in ohm-1 m-1
e=1.6*10^-19;
N=sigma/(e*mew_n);
ni=1.5*10^16; //per m^3
p=(ni^2)/N;
P=sigma/(e*mew_p);
n=(ni^2)/P;
printf("concentration of e... |
494abf18bd6d3a6b48006d984f6988436d80a593 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2223/CH18/EX18.46/Ex18_46.sce | b23c1e0203e091de85560d5831437d6f55bb7a22 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,085 | sce | Ex18_46.sce | // scilab Code Exa 18.46 Fourneyron Turbine 360 rpm
d2=3; // outer diameter of the impeller in m
d1=1.5; // inner diameter of the impeller in m
H=50; // net head in m
rho=1000; // density in kg/m3
g=9.81; // gravitational acceleration in m/s2
N=360; // rotor Speed in RPM
n_o=0.785; // overall efficiency
P=4; ... |
e99052c28e5e35a94a1ad4c02651bad9bdc9d687 | 127f3a4b49df924522f80739a53cc288d5521807 | /tp2/lsolve.sci | 02721e8b0993e3d2de724bdda76daacb2d4c5d8b | [] | no_license | iimen/TD-TP-CN | 94e90aae917e47b8cc4d6d8b80af803b0dc82986 | 81da5d066b4ae7f3a2947f2fd4f4e67a88b5863a | refs/heads/master | 2023-01-24T16:23:51.161089 | 2020-12-17T12:29:55 | 2020-12-17T12:29:55 | 318,002,785 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 204 | sci | lsolve.sci | function [X] =lsolve(L,b)
// L matrice diagonale inf
n=size(L,1)
x=zeros (n);
x(1)=b(1)/L(1,1)
for i= 2 : n
x(i) =(b(i)-L(i,(i-1)*x(1:(i-1))))/L(i,i)
end
endfunction
|
12daa9f5b1215ec0aa00449aca461d38c00ecede | 449d555969bfd7befe906877abab098c6e63a0e8 | /2414/CH12/EX12.15/Ex12_15.sce | bbc86d6dd414d76dabeea55cd38e660e38b1120e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 338 | sce | Ex12_15.sce | clc;
close();
clear();
//page no 418
//prob no. 12.15
//Absolute gains
G1=20;
G2=15;
G3=12;
//Temp in K
Te1=100;
Te2=200;
Te3=300;
//Noise figures
F1=1+Te1/290;
F2=1+Te2/290;
F3=1+Te3/290;
F=F1+(F2-1)/G1+(F3-1)/G1/G2;
mprintf('Noise figure ,F=%.4f\n',F);
Te=(F-1)*290;
mprintf('Noise Temperature ,T... |
7f5043421c18f3b8e7374c31bb71699b60f28868 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2708/CH19/EX19.4/ex_19_4.sce | af66e47689736e5a24be7ae639137ba9867df318 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,008 | sce | ex_19_4.sce | //Example 19.4 // Hall coefficient Hall voltage
clc;
clear;
//given data :
p=4.83D21;//constant
a=.428D-9;// unil cell side in m
E=.15;// fermi level in eV
k=1.38D-23;// Boltzmann constant
h=6.626D-34;// plank constant in J-s
T=300;// temperature in kelvin
me=9.1D-31;// mass of electron in kg
me1=.014*me;/... |
ac0e123a5f5a616e33bb910a417b18c67e533f7a | 0c1b318ef2ea5479e6a4df395006c510efb03896 | /TP_3_3.sci | dfe4147a7df5df463d80a65da492488d65d0011b | [] | no_license | Sylfid/ProjetAF | aa731877261eb4a53c0017c70b236e1b685b59cb | d80fef4e15ec611d905f3762666bee103e568625 | refs/heads/master | 2020-04-08T08:11:03.848479 | 2018-11-27T13:46:45 | 2018-11-27T13:46:45 | 159,168,672 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 86 | sci | TP_3_3.sci | function []= TP_3_3()
a = 1/20;
convolution(sin(2*%pi*a*(0:39)));
endfunction
|
98d927bf5590c3d4cd1592e4b7ee9da4c17c5940 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH24/EX24.30/24Ex30.sce | a3e7caf46aa13e67139fef66aaf9efc0cb718eae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 148 | sce | 24Ex30.sce | //Chapter 24 Ex 30
clc;
clear;
close;
area=(66/7); deg=120;
r=sqrt((area*360)/((%pi)*deg));
mprintf("The radius of the circle is %d cm.",r); |
6c75d9fadf3bbc797d38a003e1d1a06ebe3a4cef | 449d555969bfd7befe906877abab098c6e63a0e8 | /2168/CH11/EX11.6/Chapter11_example6.sce | a3ca85b2f7eec3f0560c8092b8531f6891e6a425 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 785 | sce | Chapter11_example6.sce | clc
clear
//Input data
n=6//Number of cylinders
P=62//Power in HP
N=3000//Speed in r.p.m
nv=85//Volumetric efficiency in percent
nt=25//Thermal efficiency in percent
CV=10500//Calorific value in kcal/kg
af=15//Air fuel ratio
T=273//Standard atmosphere temperature in K
p=1.03//Standard atmosphere pressure in ... |
beb16895374bf6896393b9b533bdf9fa4d63708d | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electric_Machines_-_I_M._Verma_And_V._Ahuja_695.zip/Electric_Machines_-_I_M._Verma_And_V._Ahuja_695/CH4/EX4.5/Ex4_5.sce | 421b99a2d43ef71ccd687513ac5fdfc0f00b0e10 | [] | 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 | 420 | sce | Ex4_5.sce | errcatch(-1,"stop");mode(2);//Caption:Find the Efficiency
//Exa:4.5
;
;
P=1200*1000;//in watts
R_1=2;//in ohms
R_2=0.03;//in ohms
P_iron=20000;//in watts
V_1p=6600;//in volts
V_2p=1100/sqrt(3);//in volts
a=V_1p/V_2p;
R_o2=R_2+(R_1/a^2);//in ohms
I_2p=P/(sqrt(3)*1100);//in amperes
P_cu=3*R_o2*I_2p^2;
P_t... |
388f0f5b8834496c01222f4c7f849062699fe503 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1055/CH9/EX9.5/ch9_5.sce | 6aea48e0b4e0e9b41609c3e3ebb63a0ca1216260 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 303 | sce | ch9_5.sce | //To dtermine the equivalent star connected capacity and the kVA required.
clear
clc;
V=20;//voltage (kV)
w=314;
C=2*3.04*10^-6;//capacitance per phase(micro-farad)
KVA=V*V*w*C*1000;
mprintf("3-phase kVA required =%.0f kVA",KVA); //Answer don't match due to difference in rounding off of digits
|
3961a5cd1f06eed6586341a7c0c25216e85cea70 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2204/CH5/EX5.24/ex5_24.sce | 99d25e3ecaa3627e841ca983087ceada75fda276 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 908 | sce | ex5_24.sce | // Exa 5.24
clc;
clear;
close;
// Given data
f1 = 5;// in kHz
f1 = f1 * 10^3;// in Hz
f2 = 15;// in kHz
f2 = f2 * 10^3;// in Hz
Cdesh = 0.01;// in µF
Cdesh= Cdesh * 10^-6;// in F
Rdesh = 1/(2*%pi*f2*Cdesh);// in ohm
A_F1 = 1.414;
A_F2 = A_F1;
Rdesh1 = 10;// in k ohm
Rdesh_F = (A_F1-1)*Rdesh1;// in k ohm
... |
f1eee1f72dde3db78fad593fcdbf1887367a1fc1 | 793c335f1b908533abaf8a266b47e942ee70b973 | /logs/parsed_tree.tst | f82f527b5bbed279005d285a19ee98eddad69e5d | [] | no_license | ani555/E1-246-Assignment3 | 3d287fac1199986a719843d0629da034f15cd46a | 861195a3582e65a5c05bfc1c0c1d0c36956ef727 | refs/heads/master | 2020-05-15T20:57:09.387733 | 2019-04-21T19:22:56 | 2019-04-21T19:22:56 | 182,490,251 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 109 | tst | parsed_tree.tst | (S
(NP (DT the) (NN movie))
(VP (MD will) (VP (VB be) (NP (VBN released) (JJ next) (NN week))))
(. .))
|
e09f4a7e559dd1ebd1674e49e2ef59d8b0e9cc8f | 449d555969bfd7befe906877abab098c6e63a0e8 | /215/CH11/EX11.9/ex11_9.sce | e2aad971b93f3b2128690a7bf47e2701ece7cac6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 958 | sce | ex11_9.sce | clc
//Example 11.9
printf("Given")
disp('Power of induction motor=50kW ,power factor is 0.8 lag,Source voltage is 230V')
disp('The wish of the consumer is to raise the power factor to 0.95 lag')
//Let S1 be the complex power supplied to the indiction motor
V=230;Pmag=50*10^3;pf=0.8;
Pang=(acos(pf)*180)/%pi
S1ma... |
25f991294a57751eb397eb59ad3727cd57fd7c20 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1703/CH8/EX8.2/8_2.sce | 4457de14ed72b7dfd289b5f4e58f8453eb0ad042 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 451 | sce | 8_2.sce | clear
clc
//initialisation of variables
W= 20 //tons/hr
l= 1000 //ft
w= 57 //lb/ft^3
kv= 0.0205 //ft^2/sec
d= 6 //in
g= 32.2 //ft/sec^2
//CALCULATIONS
Q= W*2240/(3600*w)
A= %pi*(d/12)^2/4
v= Q/A
R= v*(d/12)/kv
n= w*kv/g
P= 32*v*n*l/((d/12)^2*w)
HP= P*2240*W/(3600*500)
//RESULTS
printf ('Reynolds numbe... |
e290684991f7c8396bb8b336de7d88faad02135b | cb8badb7b62f46da3dd1b582c4186b5b2829d5af | /ajax-scilab/get_colormap_values.sci | ff18e8e674866e879339d15ffe9f69db82945dbf | [
"MIT"
] | permissive | FOSSEE/xcos_on_cloud | e3cf7ff202a1628a875484774c87936fbd8696cf | e981d77e0c96ab5db0e01755a2531d878864266f | refs/heads/master | 2023-05-12T12:12:08.955522 | 2023-02-16T10:25:15 | 2023-02-16T10:25:15 | 99,215,141 | 12 | 31 | MIT | 2023-05-02T00:18:57 | 2017-08-03T09:24:23 | JavaScript | UTF-8 | Scilab | false | false | 919 | sci | get_colormap_values.sci | function getvaluesfromcolormap(filename,colormapstring)
f_temp = mopen(filename, 'wt'); // Creating a text file
string_to_pass = strcat(["cmp_value_from_script = [",colormapstring,"]"]); //forming string
ok = execstr(string_to_pass,'errcatch');
if (ok~=0) then
mfprintf(f_temp, '%s', lasterror()... |
a82793b9ac06708ec67eac7880aa8cc03ba594e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /37/CH7/EX7.1/s1.sci | 5843c042492b2725f9b5e640723b71f641b7e92c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 296 | sci | s1.sci | function[]=search(a,n,ele)
i=1;
j=0;
for i=1:n
if(a(i)==ele)
printf("Found %d AT %d\n",ele,i);
j=1;
end
end
if(j==0)
disp("%d NOT FOUND",ele);
end
endfunction
//Calling Routine:
a=[2 33 22 121 23 233 222]
disp(a,"Given array");
search(a,7,23)
|
ae4d6ed63e6ede0787f65079ddb83d8154d468d0 | b5a6d0e4c3d84d1a446434b60e55627f017991d7 | /algebra_lineal.sce | db47762d15977f7fc6b201ad8b6ff11904bd159f | [] | no_license | mayra-diaz/Scilab-Funciones-Matrices | 249cdec506befa4e5e88da9aaf8f6752e401153f | dc89d7dccc7fd22851e6a31867f986cb543b4c50 | refs/heads/master | 2022-12-10T12:50:48.449166 | 2020-09-14T01:10:43 | 2020-09-14T01:10:43 | 259,477,803 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,052 | sce | algebra_lineal.sce | /*
------------------------------------------------------
FROBENIUS
------------------------------------------------------
*/
//FROBENIUS
function bool = frobenius(A,b)
[m,n] = size(A)
Au = [A b]
ranA = rank(A)
ranAu = rank(Au)
if ranA == ranAu then
if ranA == m then
... |
3d12923c37ad029ee760ddaa8f513010a6b890c3 | d145a801b8f64afaf9dd0330b93936ca3343cbdb | /test_suite/td_rest.tst | 99cf13b7cd2796384d0459c6b9dae16df6f2f871 | [] | no_license | ChemCryst/crystals | 0fff27ff8576b7c7199e1eaa671407d50132b98e | 8087c68d7f05b903473cee1cb131c06f819dc660 | refs/heads/master | 2023-08-17T16:36:03.675124 | 2023-06-26T10:54:29 | 2023-06-26T10:54:29 | 152,602,292 | 2 | 0 | null | 2023-06-26T10:54:30 | 2018-10-11T14:09:45 | Roff | UTF-8 | Scilab | false | false | 3,184 | tst | td_rest.tst | #
# This test takes cyclo and tests symmetric and asymmetric restraints
#
\set time slow
\rele print CROUTPUT:
\
\TITLE Cyclo in P 21 21 21
\LIST 1
REAL 4.925 11.035 15.322 90.000 90.000 90.000
\SPACE
SYMBOL P 21 21 21
END
\ Work get scattering factors and put them into list 3
#COMPOSIT ... |
3f655ceb00a511c988fd9e4e2056e896191956ad | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH27/EX27.3/Example27_3.sce | 4c89fad77582dd60f1b8bb5841a78d5c1f09d665 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 331 | sce | Example27_3.sce | //Given that
r = 900*10^-6 //in m
i = 17*10^-3 //in A
e = 1.6*10^-19 //in C
densityCopper = 8.96*10^3 //in kg/m^3
M = 63.54*10^-3 //in kg/mol
Na = 6.023*10^23
//Sample Problem 27-3
printf("**Sample Problem 27-3**\n")
A = %pi*r^2
J = i/A
n = densityCopper/M*Na
Vd = J/(n*e)
printf("The drift speed is ... |
33ebe862002738bbecc6a87b1e4ac7f863ab32d4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /275/CH3/EX3.3.17/Ch3_3_17.sce | f5eb703ea6b81dd8472b989be93d61beaa1380e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 484 | sce | Ch3_3_17.sce | clc
disp("Example 3.17")
printf("\n")
disp("calculate the value of beta for transistor. find new collector current when beta of new transistor is 70")
printf("Given\n")
//old transistor
Ic=3*10^-3
Ie=3.03*10^-3
//find Ib
Ib=Ie-Ic
//value of beta
beta=Ic/Ib
//for new transistor beta=70
beta1=70
//the value... |
303edfca480ba0459bd6edf36874c862c61b3963 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2411/CH5/EX5.13/Ex5_13.sce | fdfc680b6cc84606e8585000fdd525ad5c44b2a6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,498 | sce | Ex5_13.sce | // Scilab Code Ex5.13: Page-289 (2008)
clc; clear;
c = 3e+008; // Speed of light, m/s
e = 1.602e-019; // Energy equivalent of 1 eV, J
h = 6.6e-034; // Planck's constant, Js
m0 = 9.1e-031; // Rest mass of an electron, kg
alpha = [90 60 45 180]; // Different scattering angle for X-ray photon, degrees... |
9ccda50da1b9ed73fd682502510cf7929c7432cf | 449d555969bfd7befe906877abab098c6e63a0e8 | /269/CH10/EX10.18/ex18.sce | 3287158818dded6d27e46154e2f3def6d80d1d31 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 231 | sce | ex18.sce | s=%s
p=s^3+2*s^2+2*s+4
h=routh_t(p)
disp(h)
disp("constant term 4 causes the system to be unstable")
disp("so the polynomial formed is")
disp("2*s^2+4")
disp("applyin RH on this polynomial")
q=s^2+2
r=routh_t(q)
disp(r)
|
b8077af66fc21311feca64eb421ad6cf9384abc7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1994/CH8/EX8.21/Example8_21.sce | 0761122c09e2db563a9b0cb6f050dbb1c42374cf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 341 | sce | Example8_21.sce | //Chapter-8,Example8_21,pg 8_64
w=2*%pi*1000
C1=0.2*10^-6
R2=500
R3=300
C3=0.1*10^-6
Z4=(%i*w*C1*R2)/((1/R3)+(%i*w*C3))//from basic balance equaton
Zx=Z4//unknown impedance
Rx=real(Zx)
Xl=imag(Zx)
Lx=Xl/w//Xl=w*Lx
printf("unknown resistance\n")
printf("Rx=%.2f ohm\n",Rx)
printf("unknown inductance\n")
pri... |
4018bcc5e407c11a369651029da4b822de687489 | 0e1b45c07f0938ba9c8a003d6ae1cf2d8315efdb | /uva.onlinejudge.org/112, Tree Summing/test3.tst | 1bb478e34f25afc7e2b5e94bcb92a8f2f6866914 | [] | no_license | Kot-Angens/acm | c85d8582c3e84f218415321743864b9680e01f2e | 05472eaa0fff7abb6679826085da5e0c990df4cb | refs/heads/master | 2021-01-24T22:36:05.159612 | 2012-10-02T13:51:56 | 2012-10-02T13:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 564 | tst | test3.tst | 22 (5(4(11(7()())(2()()))()) (8(13()())(4()(1()()))))
20 (5(4(11(7()())(2()()))()) (8(13()())(4()(1()()))))
10 (3
(2 (4 () () )
(8 () () ) )
(1 (6 () () )
(4 () () ) ) )
5 ()
0 ()
5 (5 () ())
5 ( 5 () () )
5 (1 (3 () ()) (4 () ()))
5 (18 ( - 13 ( ) ( ))())
0 (1 ()(-2 () (1()()) ) )
2 (1 () (... |
842b0be8fef92f98371435960a21169d1799a27b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3369/CH2/EX2.5/Ex2_5.sce | e3a24bd96bba66e7493535f24f70655ec7b3c073 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 441 | sce | Ex2_5.sce | //Chapter 2, Example 5, page 65
//Calculate the maximum field at the sphere surface
clc
clear
//Calulating Field at surface E based on figure 2.31 and table 2.3
Q1 = 0.25
e0 = 8.85418*10**-12 //Epselon nought
RV1= ((1/0.25**2)+(0.067/(0.25-0.067)**2)+(0.0048/(0.25-0.067)**2))
RV2= ((0.25+0.01795+0.00128)/(0.75-0.067)**... |
09d50a5fb2c100d28b1c14500ad93f3e12149bd8 | e82d1909ffc4f200b5f6d16cffb9868f3b695f2a | /Lista 1/Quinta.sce | c904d661dde72821eaab67bf0a336778a44dde79 | [] | no_license | AugustoCam95/Computational-Linear-Algebra | eb14307dd3b45ccc79617efe74d1faca639c36c5 | 99b1a1f9499fbc4343bd5c878444e9e281952774 | refs/heads/master | 2020-03-30T22:26:23.790763 | 2018-10-05T03:34:06 | 2018-10-05T03:34:06 | 151,666,289 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 251 | sce | Quinta.sce | // José Augusto Câmara Filho - Matemática Industrial
function Quinta(k)
soma=0;
for i=1:k
soma= (1/((i)^2)+soma);
end
x=6*soma;
x=sqrt(x);
a = printf('%.6G',x);
//disp(a)
endfunction
|
9415b0f5e4f318e79115aa4846dc423a6c391101 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1802/CH7/EX7.7/Exa7_7.sce | d1d9f3b382bfdece23719f831d2ae8a008eda436 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 411 | sce | Exa7_7.sce | //Exa 7.7
clc;
clear;
close;
//Given data :
format('v',6);
R=0.2;//in ohm/km
X=0.1;//in ohm/km
ZAM=((R+%i*X)/1000)*200;//in ohm
ZMB=((R+%i*X)/1000)*100;//in ohm
I1=100*(0.707-0.707*%i);//in A
I2=200*(0.8-0.6*%i);//in A
IAM=I1+I2;//in Ampere
VAM=ZAM*IAM;//in volts
VMB=ZMB*I2;//in volts
VAB=VAM+VMB;//in v... |
4bf6186b08269bb02289b60a3a8c128e579fbb9f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3834/CH12/EX12.3.3/Ex12_3_3.sce | 5c08c844fe37941c7b098cb577031c6e943bb9b0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 708 | sce | Ex12_3_3.sce | //Fiber Optics Communication Technology, by Djafer K. Mynbaev and Lovell L.scheiner
//Windows 8
//Scilab version- 6.0.0
//Example 12.3.3
clc;
clear;
//given
x=0.96;//assumed R*Gs value
L=500E-4;//assumed length of a typical travelling-wave semiconductor amplifier in cm
n=3.6;//refractive index of SOA medium
... |
324893f12fc6261ecb44567aa2b9e5ab6f34754a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2126/CH3/EX3.11/11.sce | 1f28411fe65706b8d621fd7b73e726c91f8367bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,046 | sce | 11.sce | clc
clear
//input data
D=0.3 //inner duct diameter in m
P1=10 //Static pressure at entrance in bar
T1=400 //Static temperature at entry in Kelvin
M1=3 //Mach number at entrance
M2=1 //Mach number at exit
k=1.3 //Adiabatic constant
R=287 //Specific Gas constant in J/kg-K, wrong printing in question
f=0.002 /... |
0bdd836c29fc5adb8844233cc6ad7c912d80f663 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH27/EX27.4/Ex27_4.sce | 9a5eba1941629e91d665582f4bfa84a8ccfe6d15 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 123 | sce | Ex27_4.sce | clc;
//e.g 27.4
Vo=12.5;
Vin1=1.5;
Vin=0.25;
AV=Vo/Vin;
disp(AV);
AV1=Vo/Vin1;
beta=((AV/AV1)-1)/AV;
disp(beta);
|
4d9d182341c0a25f5b5713c41e602dca115dad05 | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH8/EX8.27/example_8_27.sce | d1a4ff4966d36e01dbc1969f38e34244b251fe57 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 596 | sce | example_8_27.sce | s=%s
//P=s^4+2*s^3+3*s^2+s+1
s'=%s
P=(s'-1)^4+2*(s'-1)^3+3*(s'-1)^2+(s'-1)+1 //putting s=s'-1
routh=routh_t(P)
disp(routh)
r=coeff(P)
n=length(r)
c=0;
for i=1:n
if (routh(i,1)<0)
c=c+1;
end
end
if(c>=1)
printf("there are 2*%d roots to the right of s=-1",c) //2 terms with negetive s... |
75d2130793ed1745cc58b462cc8337590df9aad4 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/macros/percent/%pdr.sci | 6b6f4e93667c5e852e7a34d507f0708a6d9e8eec | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 202 | sci | %pdr.sci | //<r>=%pdr(p,r)
// %pdr(p,r) calcule le quotient element par element d'une matrice de
//polynomes p par une matrice de fractions rationnelles r (operation ./)
//!
[n,d]=r(2:3)
r(2)=d.*p;r(3)=n;
//end
|
66608892454232940382886676eb7b0ec0789786 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2231/CH1/EX1.23/Ex_1_23.sce | 12f900afae2698797d53fcab895a0c8ae3abfa96 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 310 | sce | Ex_1_23.sce | //Example 1_23
clc;
clear;close;
//Given data:
P=30;//W
T1=125;//degreeC
T2=50;//degreeC
theta=1;//degree C/W
theta_mica=0.3;//degree C/W
Rth_total=(T1-T2)/P;//degree C/W
Rth_heat_sink=Rth_total-theta-theta_mica;//degree C/W
disp(Rth_heat_sink,"Thermal resistance of heat sink in degree C/W ");
|
8c04727b921e2dc9c34b0067614768cc049e48b6 | 25033eda4e7cd13f945f94c5dc35f15825066b42 | /Inria/2 cohorts/Tinfini/selection gradient.sce | 0136bd7047302249cf57fdb57c7cf7d1c47fdc78 | [] | no_license | julienguegan/Internships | a26cb9efa2f1715832511a7aa94d25bfc675388b | ad51d5845ed8fd41e29259c95e8beff80bac65cf | refs/heads/master | 2020-12-20T21:54:29.099157 | 2020-01-25T19:20:10 | 2020-01-25T19:20:10 | 236,217,889 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,045 | sce | selection gradient.sce |
exec('C:\Users\Julien Guégan\Documents\Cours\MAM4\STAGE\2 cohorts\Tinfini\PIP - Tinfini.sce',-1)
f=scf()
f.color_map = rainbowcolormap(32);
surf(s)
xlabel("$M1σ$")
ylabel("$M2σ$")
zlabel("$s$")
title("$s(r,m) = \lim_{n_2(0) \to 0} \frac{n_2(1)}{n_2(0)}$",'fontsize',3)
scf() //affichage de s(x,x*) avec ds/dy=0
X = 1:... |
24ddba0b9a5a2c0127f1b12d1d69f0b6ecfb12fd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3871/CH3/EX3.24/Ex3_24.sce | e1e96f4243d80f031977e897c60a4da8a7577d6d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,594 | sce | Ex3_24.sce | //===========================================================================
//chapter 3 example 24
clc;clear all;
//variable declaration
x1 = 1.570; //voltage in V
x2 = 1.597; //voltage in V
x3 = 1.591; //voltage in V
x4 =1.562; //voltage in V
x5 =1.577; //voltage in V
x6... |
55c714079008af34b35e7d1106b18f9580e50025 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH10/EX10.1/Example10_1.sce | ba9658406f5157b3b7255cc241e0f3de29167679 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 759 | sce | Example10_1.sce | exec("degree_rad.sci",-1)
//Given that
m = 140 * 10^-3 //in kg
Vi = -39 //in m/s
Vf = 39 //in m/s
//Sample Problem 10-1a
printf("**Sample Problem 10-1a**\n")
//J = Pf - Pi
J = m *(Vf - Vi)
printf("The magnitude of impulse acted on the ball from bat is equal to %fN-s\n", J)
//Sample Problem 10-1b
pri... |
28390105d9cc750007f970eeeb51dbb19f4f91cb | 7eaf54a78c9e2117247cb2ab6d3a0c20719ba700 | /SOFTWARE/A64-TERES/linux-a64/scripts/rt-tester/t5-l4-pi-boost-deboost-setsched.tst | 04f4034ff895a11b3c544bcca4553fe792e708f7 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later"
] | permissive | OLIMEX/DIY-LAPTOP | ae82f4ee79c641d9aee444db9a75f3f6709afa92 | a3fafd1309135650bab27f5eafc0c32bc3ca74ee | refs/heads/rel3 | 2023-08-04T01:54:19.483792 | 2023-04-03T07:18:12 | 2023-04-03T07:18:12 | 80,094,055 | 507 | 92 | Apache-2.0 | 2023-04-03T07:05:59 | 2017-01-26T07:25:50 | C | UTF-8 | Scilab | false | false | 2,931 | tst | t5-l4-pi-boost-deboost-setsched.tst | #
# rt-mutex test
#
# Op: C(ommand)/T(est)/W(ait)
# | opcode
# | | threadid: 0-7
# | | | opcode argument
# | | | |
# C: lock: 0: 0
#
# Commands
#
# opcode opcode argument
# schedother nice value
# schedfifo priority
# lock lock nr (0-7)
# locknowait lock nr (0-7)
# lockint lock nr (0-7)
# lockintnowa... |
bf9fc811df3f81761a04a57f1e80f02298bf616f | fbe5bdb3b3ea6f71d29eff0df47cf845a1dbe2f9 | /CatEngine/Game files/AssetData/Levels/Test4/Scenario/scenario1 - Copy.sce | 38bccc7382b39b8b6f7d3f768c2ff3f93c657a9c | [] | no_license | CatoNator/CatEngine | 175c1c9a10842d0a4276bcdd096199d031d3a69f | bc8b4a29c7665152a38deb16abf1adf13d854c3a | refs/heads/master | 2021-07-14T09:58:24.509668 | 2020-05-27T17:02:05 | 2020-05-27T17:02:05 | 148,532,596 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 417 | sce | scenario1 - Copy.sce | <scenario name="Test Scenario">
<objective type="Survive">
<timer time="240"/>
<enemyspawn type="CAamu" amount="69" x="0" y="0"/>
</objective>
<objective type="Reach">
<checkpoint x="40" y="40"/>
<enemyspawn type="CAamu" amount="69" x="0" y="0"/>
</objective>
<objective type="Kill">
<target type="CAamuCi... |
d763288a1f1f9ea64e358fa0563f83842a6eb0a2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH5/EX5.10/5_10.sce | c1799536df630a945d8c3dda65436c76772971a2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 375 | sce | 5_10.sce | //Value of force P
//refer fig. 5.14
mu=0.25
//Let fi be the angle of limiting friction
fi=atand(0.25) //degree
//Consider equilibrium of block C
//apply Lami's theorem
R1=160*sind(180-16-fi)/sind(2*(fi+16)) //kN
//Consider equilibrium of Wedge A
//apply Lami's theorem
P=R1*sind(180-fi-fi-16)/sind(90+fi) ... |
ad665fb61039fb384862737b7fbb1ab46766ce79 | 449d555969bfd7befe906877abab098c6e63a0e8 | /779/CH16/EX16.12/16_12.sce | 8f4c8fd5b6849c2a8eaa7517b57fab1848caafbf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,276 | sce | 16_12.sce | T0 = 298.15; P0 = 1; R = 8.3143;
xn2 = 0.7567; xo2 = 0.2035; xh2o = 0.0312; xco2 = 0.0003;
// Part (a)
g_o2 = 0; g_c = 0; g_co2 = -394380;
A = -g_co2 + R*T0*log(xo2/xco2);
disp("kJ/k mol",A,"The chemical energy of carbon is")
// Part (b)
g_h2 = 0; g_h2o_g = -228590;
B = g_h2 + g_o2/2 - g_h2o_g + R*T0*log(xo2^0... |
49293aafd5a06f5ea051bec17b41af4b3dcbc111 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3701/CH4/EX4.3/Ex4_3.sce | 57b415d7777f4180c6526682aec69b47d395f2ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 352 | sce | Ex4_3.sce | ////Given
m=1.675*10**-27 //mass of neutron in kg
v=1.4*10**-10 //de broglie wavelength in m
h=6.63*10**-34 //Js
//Calculation
K=(h**2/(2*m*(v**2)))/(1.6*10**-19)
//Result
printf("\n Kinetic energy of neutron ... |
c7dcd6544a6e0d2e8b13babda3304310db308453 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3176/CH9/EX9.9/Ex9_9.sce | 7630d366429f8a3d3e41bdabeea2e8881fce5dc4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 3,222 | sce | Ex9_9.sce | //Ex9_9
// Illustration of Gray Scale Erosion and Dilation
// Version : Scilab 5.4.1
// Operating System : Window-xp, Window-7
//Toolbox: Image Processing Design 8.3.1-1
//Toolbox: SIVP 0.5.3.1-2
//Reference book name : Digital Image Processing
//book author: Rafael C. Gonzalez and Richard E. Woods
clc;
close;
clear;
... |
d13a8e042f54d5e676b549d801640fc8ec3601b6 | f8551f1c22ee634be672d893e6755b100f0d1994 | /ICP/tf_RT.sci | c460796be9ccadf19587159b61fde3fb65922f98 | [] | no_license | yanisdxw/computer-vision | ed605061a632ae0c7536007de6f83e2ff5ee1d51 | e9bd0961194f2e4290211296dbe6268ecad8f1c1 | refs/heads/master | 2021-08-23T05:30:24.864657 | 2017-12-03T17:05:35 | 2017-12-03T17:05:35 | 111,726,798 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 92 | sci | tf_RT.sci | function p = tf_RT(pt,R,T)
p = rotation(pt,R);
p = translation(p,T)
endfunction
|
786421891fef1346621e17c5d3af113d2f100114 | 430e7adb489914d378a5b0a27d8d41352fa45f3a | /scilab/example/ボード線図1.sce | 652b75b5f5458077f4961f32e7de9f97e944c36f | [] | no_license | ziaddorbuk/Lesson | 04906ff94bf8c1f6bbc6971d5692ae011a9b8869 | 20fe20a6c9c145ef48a35574d885d3952f9ab6ff | refs/heads/master | 2021-09-23T11:48:05.958608 | 2018-04-30T01:54:13 | 2018-04-30T01:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 135 | sce | ボード線図1.sce | s=%s;
G=1/(1+2*s);
omg=0:0.01:100;
Gj=horner(G,omg*%i);
x=real(Gj); y=imag(Gj);
plot2d(x,y,axesflag=5,rect=[-0.1,-0.6,1.2,0.1]);
|
7f63e8c3eb950b7fbef16af6f5fb46e0138c2841 | 449d555969bfd7befe906877abab098c6e63a0e8 | /710/CH6/EX6.9/6_9.sci | fa7ac3a22385c2706b7f2cb50c7e1a906c7cece2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 566 | sci | 6_9.sci | clc();
clear;
//To determine the phase difference between between O &E rays
mew0=1.544; //refractive index of ordinary waves
mewE=1.553; //refractive index of extraordinary waves
lambda=550; ... |
5a5c4ff62977f56d2d7f087404a11e488ee6a494 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2282/CH7/EX7.15/ex7_15.sce | 520b9f4ff5add70850004eca60d17b89438a16c8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,067 | sce | ex7_15.sce | //Example 7.15, Page no.286
clear
clc
f=6*10^9 //uplink frequency
eirp= 80 //Earth station EIRP in dBW
r=35780 //Earth station satellite distance
l=2 //attenuation due to atomospheric factors in dB
e=0.8 // satellite antenna's aperture efficiency
a=0.5 // satellite antenna... |
24c92e5b1c40067017fab45024f5b52eb772dd8e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH10/EX10.8/Ex10_8.sce | 671a4c59049d7c2989df104a545975b20206f841 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 402 | sce | Ex10_8.sce | //Ex10_8
clc;
// Given:
flux=10^12;
s=15.9*10^-24;
m1=0.5;// weight of ruby in mg
//Soluton:
a1=35000;// measured activity in c/s
a2=350000;// corrected activity in )d/s
N=a2/(flux*s*(1-0.5^(1/27.7)));
m=50*N/(6.02*10^23);
Cr=(100*m)/4.35;// total Cr in in the Ruby
crp=(Cr*100)/0.5;// % ... |
6169adafa97ff9791d02cec69c1b75f591f4b701 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1106/CH6/EX6.7/ex6_7.sce | 0bb3f9ae690491bfb3e0ea1c0b22ade71cd44ea9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 236 | sce | ex6_7.sce | // Example 6.7, Page No-279
clear
clc
A=2
fL=2*10^3
C=0.01*10^-6
R=1/(2*%pi*fL*C)
Rkohm=R/1000
printf('R= %.1f kohm', Rkohm)
RfbyRi=A-1
printf('\nRf/Ri= %.3f', RfbyRi)
printf('\nHence, take Rf=10 kohm and Ri=10 kohm')
|
8d81305761667bb67d8b13e16712880b253b373d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH16/EX16.14/Ex16_14.sce | 5bb08778d6232b5415ebbb8ce3c1980fa9da3c1a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 232 | sce | Ex16_14.sce | //Example 16_14 page no:771
clc;
//given
Z11=6;
Z22=6;
Z12=4;
Z21=4;
Za=Z11-Z12;
Zb=Z11+Z12;
disp(Za,"the parameter Za of the lattice network is (in ohm)");
disp(Zb,"the parameter Zb of the lattice network is (in ohm)");
|
201df7d1c7573dc404351327f0706b7ed50aac66 | 91bba043768342a4e23ee3a4ff1aa52fe67f7826 | /cs/142/4/tests/test31.tst | 63982f2007cb1d2cfa2164c778368b445b25ebda | [] | no_license | MaxNanasy/old-homework | 6beecc3881c953c93b847f1d0d93a64ec991d6de | 48b7997a49a8f111344f30787c178e1661db04bd | refs/heads/master | 2016-09-08T04:37:44.932977 | 2010-03-02T00:48:59 | 2010-03-02T00:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 141 | tst | test31.tst | type t1 = array 10 of short;
type t2 = array 10 of t1;
type t3 = array 10 of t2;
main()
{
var a : t3;
const c = 11;
a[1][1][1] = c;
}
|
291a096eeb98983f945987c6c50d228b99d13f5d | 0f30a3220883198dd3ff2f25722cf15b1c5ed040 | /otimização.sce | 5eeb8d3be588c4301122bcba4b1086114f3858e8 | [] | no_license | saulocost4/Otimizacao | eccbdef5e7e9022db55724dce811e174a4b381b0 | 17ac706e6b39cf180fef3455f990cae75e96d917 | refs/heads/master | 2020-04-29T05:10:58.378105 | 2019-03-22T23:22:06 | 2019-03-22T23:22:06 | 175,873,079 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,521 | sce | otimização.sce | clc
mc=[ //matriz dos coeficientes
1 -4 -2 -2 0 0 0;
0 1 1 2 1 0 4;
0 4 -5 3 0 1 30;
]
x=zeros(1,(size(mc)(2)-2))
disp(mc)
/* INICIALIZAÇÃO DA MATRIZ E DO VETOR DE VARIAVEIS*/
var_maximi=2
var_parada=0
mc_original=mc
passos=0
//RECURSIVIDADE
while var_parada==0
valor_menor=mc(1,2)
var_maximi=2
var_parad... |
d7a18a93e7f52a8fa82e0a74652d5074a925a95d | 44f225adc0be4f9ecb45fb9fde03e74f23d7acb2 | /macros/modified_if.sci | f4f9c700be09404c9cbefed95e7eed1f88b74892 | [] | no_license | harpreetrathore/scilab-IPT | 10c4996614f1c59972e59decd1b7171e7d5816e0 | db79f1370f3cb0a7716a8afcf1cf5fde9fe70aba | refs/heads/master | 2021-01-01T04:06:52.573735 | 2016-05-26T20:34:33 | 2016-05-26T20:34:33 | 59,781,201 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 313 | sci | modified_if.sci | //made to work for mlists (hypermatrices)
//Author: Anirudh Katoch
//katoch.anirudh(at)gmail.com
function res = modified_if(condi)
if(type(condi) == 17)
res = condi(1);
for i=2:size(condi, 3) do
res = res & condi(:, :, i);
end
else
if(condi)
res = %t;
else
res = %f;
end
end
endfunction
|
e04bf328e0ddbbe950a059a8b280563ee80e7e78 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set12/s_High_Voltage_Engineering_C._L._Wadhwa_3487.zip/High_Voltage_Engineering_C._L._Wadhwa_3487/CH7/EX7.5/Ex7_5.sce | c0ecff4798a0747dbf3d51cba3df8cfbcfecde19 | [] | 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 | 196 | sce | Ex7_5.sce | errcatch(-1,"stop");mode(2);//Chapter 7,Example 7.5 Page 226
E = 500
Z = 350
L = 800
E1 = E*(1-exp(-(2*Z/L)*2))
printf (" E'' = %f kV \n",E1)
//Answers may vary due to round off error
exit();
|
f07985de1dc3a4cf4efc6afc22441db7b1fdaa6c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1862/CH1/EX1.5/C1P5.sce | 0d366b9e0cad09a57496474e7191d2b82e8e03f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 396 | sce | C1P5.sce |
clear
clc
//to find value of plank time
// GIVEN::
//speed of light
c = 3.00e8 //m/s
//Newton's gravitational constant
G = 6.67e-11 // m^3/s^2.Kg
//plank's constant
h = 6.63e-34// Kg.m^2/s
// SOLUTION:
//plank time
tp = sqrt((G*h)/c^5)// seconds
//answer in the book is slightly different which i... |
1fc3c19507da1450ce2fe2043d02e4394178dd44 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2252/CH8/EX8.13/Ex8_13.sce | cb2856476bc0c5105c428d4776fd384bd18ffa2a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 989 | sce | Ex8_13.sce |
function[r,theta]=rect2pol(A)
x=real(A)
y=imag(A)
r=sqrt(x^2+y^2)
theta=atand(y/x)
endfunction
function[r]=mag(A)
x=real(A)
y=imag(A)
r=sqrt(x^2+y^2)
endfunction
j=%i
//calculating branch currents
Z1=15+12*j//impedance of branch 1
I1=200/Z1
phi1=atand(12/15)
Z2=25-17*j//imp... |
97209ff48a58b69099216a4aa047f2168168aaa5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3311/CH2/EX2.3/Ex2_3.sce | 81f240984b38573868be51f63b40ef0db43bf768 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 828 | sce | Ex2_3.sce | // chapter 2
// example 2.3
// fig. E2.3
// Compute average power loss
// page-22-23
clear;
clc;
// given
Beta1=180, Beta2=360; // in degrees (conduction angles)
Iav=100; // in A (average current)
// calculate
// since Iav=Im*Beta/360, therefore
Im1=Iav*360/Beta1; // calculation of current during 180 conduction
V_T1= 1... |
2402b5821ffe72734b9ec4fd9ba3f7968298e65e | 3c47dba28e5d43bda9b77dca3b741855c25d4802 | /microdaq/demos/real_time/microdaq.dem.gateway.sce | 362df242e466487a5c54a70ad4484bdc91868771 | [
"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 | 775 | sce | microdaq.dem.gateway.sce | // Copyright (c) 2015, Embedded Solutions
// All rights reserved.
// This file is released under the 3-clause BSD license. See COPYING-BSD.
function subdemolist = demo_gateway()
demopath = get_absolute_file_path("microdaq.dem.gateway.sce");
subdemolist = [ "FFT (script + XCOS - external mode)", "fft_demo.de... |
e609264c8f79fa240a159b8ee88ffc4b54ad5891 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1092/CH8/EX8.18/Example8_18.sce | f191dd590230d1b906ca7bb54d762a9a3d21f86f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 3,471 | sce | Example8_18.sce | // Electric Machinery and Transformers
// Irving L kosow
// Prentice Hall of India
// 2nd editiom
// Chapter 8: AC DYNAMO TORQUE RELATIONS - SYNCHRONOUS MOTORS
// Example 8-18
clear; clc; close; // Clear the work space and console.
// Given data
kW = 40000 ; // Load on a factory in kW
PF = 0.8 ; // powe... |
eb8a5b4536d493ad4ba40b3eff81a0584345a88f | dda5d36a2d6828d53ca6b78d012a26c0eff50d76 | /Meta-heuristics/AG-func-minimizacao.sci | edcb9a64de9f0a3c4bc9acaf0f61996f07d1be19 | [] | no_license | jeanmmlima/Artificial-Intelligence | 38a2845dfcf21377d650fb34974c4b24b19a7516 | 5ef9399fb0cd952798075dce7fdeefbc924c8353 | refs/heads/master | 2021-07-02T07:57:49.424281 | 2021-05-21T10:53:25 | 2021-05-21T10:53:25 | 66,594,869 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,789 | sci | AG-func-minimizacao.sci | //UFRN-DCA
//Aluno: Jean Mario Moreira de Lima
//---ALGORITMO GENETICO---
//1. Funcao de custo que se deseja minimizar w9
function w9 = funcao(x,y)
z=-x.*sin(sqrt(abs(x)))-y.*sin(sqrt(abs(y)));
x=x/250;
y=y/250;
// r: Rosenbrock's function
r=100*(y-x.^2).^2+(1-x).^2;
r1=(y-x.^2).^2+(1-x).^2;
rd=1+r1;
//
x1=25*x;
x2=... |
7c68b23d64337bb6471e8610d61b732de66634c0 | 1489f5f3f467ff75c3223c5c1defb60ccb55df3d | /tests/test_bundle_1_e.tst | 7474a3e9b1abba1481ceb5745b3c4f50ba32d8bc | [
"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 | 36 | tst | test_bundle_1_e.tst | adding "test.jpg"
append "test.png"
|
34702363ffc3c9d36e4579910a03f92f6344abed | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH14/EX14.5/example14_5.sce | ede12f09e123bc3cb3f347d8e93297518dd6b27f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,413 | sce | example14_5.sce | //Chapter 14
//Example 14_5
//Page 363
clear;clc;
i1=5;
i2=14.08;
pf1=0.8;
pf2=0.85;
l1=600;
l2=400;
hp=10;
n=0.90;
vb=400;
r=1;
x=0.5;
z=r+%i*x;
Zac=z*l1/1000;
Zcb=z*l2/1000;
printf("Impedance of distributor/km = %.2f+j(%.2f) ohm \n\n", real(z), imag(z));
printf("Impedance of section AC = Zac = %.2f+j(%.2f) ohm \... |
ba29c1d03f7171b72337480771ecc32c92b2b5b9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2072/CH27/EX27.9/EX27_9.sce | fb9a1a60e6e1e3a5d10e3d4728f3043a42f3b44b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 169 | sce | EX27_9.sce | //Chapter 27
clc
//Example 9
//given
h=6.63*10^-34 //in J.s
m=0.145 // in Kg
v=40 //in m/s
lambda=h/(m*v)
disp(lambda,"de Broglie wavelength of the ball in meters is")
|
78e1461869daa6045463509481f045e1adc1296f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1439/CH15/EX15.1/15_1.sce | 34f3016903c90604dfff122a3de48808b3decdb6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 195 | sce | 15_1.sce | clc
//initialisation of variables
c= 8*10^-5 //molar
n= 2
//CALCULATIONS
Ksp= c^3*n^2
x= Ksp*10^6
//RESULTS
printf ('solubility product = %.1e ',Ksp)
printf ('\n solubility = %.1e ',x)
|
57d838a7268f476b18b2845c5a2891d3ba3ba1eb | 449d555969bfd7befe906877abab098c6e63a0e8 | /72/CH11/EX11.2.1/11_2-1.sce | 481cad6d9f11da5c09fcdac651291b08939276b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 954 | sce | 11_2-1.sce | //CAPTION: Characteristics_of_a_Parallel_Strip_Line
//chapter_no.-11, page_no.-505
//Example_no.11-2-1
clc;
//(a) Calculate the required width of the conducting strip
erd=6;//relative_dielectric_constant
d=4*(10^-3);//thickness
Z0=50;//characteristic_impedance
w=(377*(d))/((sqrt(erd))*Z0);
disp(w,'the_r... |
12575c432ecdbd06eb29b1e6ea1559c87ab32787 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH17/EX17.4/example17_4.sce | 4bfd4137350265f9c0ef5d718920a461690257bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 560 | sce | example17_4.sce | clc
// Given that
E = 0.7 // band gap for semiconductor in eV
t = 300 // room temperature in K
k = 1.38e-23 // Boltzmann's constant in J/K
h = 6.62e-34 // Planck constant in J sec
e = 1.6e-19 // charge on an electron in C
m = 9.1e-31 // mass of electron in kg
// Sample Problem 4 on page no. 17.20
printf("\n # PROBLEM... |
5a88af99c78b8a699c2df84225f5819efafeebfd | b4bbf9b2a475b5cf299b30bf5e0c621e32f6c832 | /test/speed8.tst | 42710f2f86be4265b6d001277034ddd3b687cc6a | [] | no_license | apetresc/castro | 1ec1ac1307542487aa1be14c335170f7a1347bf2 | 843165af7c946188a2dd772384cd2d579723c99d | refs/heads/master | 2022-02-20T14:28:41.962893 | 2019-10-07T08:41:59 | 2019-10-07T08:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 111 | tst | speed8.tst | time -g 0 -m 0 -i 30000
boardsize 8
genmove w
undo
genmove w
undo
genmove w
undo
genmove w
undo
genmove w
quit
|
08f1720c4c5072d64d4f60883b0b656600bb4b91 | 002b6230874dea6e4d76defafc1ae293b5744918 | /solvers/ShallowWaterSolver/Tests/NonlinearSWE_RossbyModon_CG_P9.tst | 0f7b7f27ede83aa0fa4c7ffc09f32ef2ed0d0a8d | [
"MIT"
] | permissive | SCOREC/nektar | f3cf3c44106ac7a2dd678366bb53861e2db67a11 | add6f04b55fad6ab29d08b5b27eefd9bfec60be3 | refs/heads/master | 2021-01-22T23:16:16.440068 | 2015-02-27T17:26:09 | 2015-02-27T17:26:09 | 30,382,914 | 6 | 7 | null | null | null | null | UTF-8 | Scilab | false | false | 872 | tst | NonlinearSWE_RossbyModon_CG_P9.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>Rossby modon, CG, P=9</description>
<executable>ShallowWaterSolver</executable>
<parameters>NonlinearSWE_RossbyModon_CG_P9.xml</parameters>
<files>
<file description="Session File">NonlinearSWE_RossbyModon_CG_P9.xml</file>
</files>
... |
25adc310f9399bbb64dfbb59d55d6f07a14fc642 | d01bf962afff16bc1ce292c49da5923ebbe59775 | /Maths/lorenz.sce | b959f7a4e5fe694b55a5880403acfeb5737f07e4 | [] | no_license | fredkerdraon/Reference-research | 71d0af22f84605ed0c53907acd6b248400c47388 | 1f48fdfebbe766bbd268b4f1853ab98162f57425 | refs/heads/master | 2023-05-05T12:18:18.655367 | 2020-02-08T22:08:15 | 2020-02-08T22:08:15 | 71,020,179 | 0 | 0 | null | 2023-04-19T18:37:49 | 2016-10-15T23:49:14 | POV-Ray SDL | UTF-8 | Scilab | false | false | 331 | sce | lorenz.sce | //// Plot trajectory of Lorenz system
clear; clf;
function udot=lorenz_ode(t,u)
// odefile for lorenz system
udot(1)=a*(u(2)-u(1));
udot(2)=u(1)*(b-u(3))-u(2);
udot(3)=u(1)*u(2)-c*u(3);
udot=udot';
endfunction
a=10; b=28; c=8/3;
u0 = zeros(3,1)+0.5; t=(0:0.02:100)';
u=ode(u0,0,t,lorenz_ode);
plot(u(1,:... |
c144372e33c4a6741586f32ed42eb1e67ac5f9c0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3492/CH4/EX4.9/Ex4_9.sce | 76dafe5357421c138785099629b3ce36474d5b14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 458 | sce | Ex4_9.sce | clc
//Chapter4
//Ex_9
//Given
e=1.6*10^-19 // in coulombs
h=6.626*10^-34 //in Js
me=9.1*10^-31 //in Kg
d=8.96 // in g/cm
Mat=63.5 // g/ mol
NA=6.023*10^23 // mol^-1
n=d*NA/Mat //in cm^-3
n=n*10^6 //in m^-3
E_FO=(h^2/(8*me))*(3*n/%pi)^(2/3) //in J
E_FO=E_FO/e //in eV
disp(E_FO,"Fermi energy at 0 Kelvin in... |
d0e7fbdc2cb6ab9e3334f8c133684c976ed642e1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH1/EX1.5/Ch01Ex5.sce | 995a92968a3e3dad5f4c4998f568d5d9595ad1bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 410 | sce | Ch01Ex5.sce | // Scilab code Ex1.5: Pg:20 (2008)
clc;clear;
m = 9.1e-031; // Mass of the electron, kg-m
h = 6.62e-034; // Planck's constant, joule-sec
Lambda = 3e-002; // de-Broglie wavelength of the electron, m
E = h^2/(2*m*Lambda^2); // Energy of the electron wave, joule
printf("\nThe energy of the electron wave ... |
ec783dbdd2c5701fb3ca17f28cd141efebc0f962 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2330/CH3/EX3.8/ex3_8.sce | 0563dbcb242512033a8169f036139ab72a1bc652 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 491 | sce | ex3_8.sce | // Exa 3.8
format('v',5)
clc;
clear;
close;
// given data
Vz= 12;// in V
Vout= Vz;// in V
Vin= 25;// in V
R_S= 180;// in Ω
R_L= 200;// in Ω
// The value of I_S
I_S= (Vin-Vout)/R_S;// in A
// The value of I_L
I_L= Vout/R_L;// in A
// The value of I_Z
I_Z= I_S-I_L;// in A
I_S= I_S*10^3;// in mA
I_L= ... |
5ea7f80dd91761a2c3823c593e67bd353b9a4fa3 | d465fcea94a1198464d7f8a912244e8a6dcf41f9 | /system/kiks_kiksnet.sci | 0454d6722aacdc78fd1d465348de72a264323d1f | [] | no_license | manasdas17/kiks-scilab | 4f4064ed7619cad9e2117a6c0040a51056c938ee | 37dc68914547c9d0f423008d44e973ba296de67b | refs/heads/master | 2021-01-15T14:18:21.918789 | 2009-05-11T05:43:11 | 2009-05-11T05:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,884 | sci | kiks_kiksnet.sci | function [] = kiks_kiksnet(password)
// Number of arguments in function call
[%nargout,%nargin] = argn(0)
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
// -----------------------------------------------------
// (c) 2000-2003 Theodor Storm (Theodor.Storm@home.se)
// http://www... |
e70f1fa256507760aeac1795c19197a2dd336032 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3648/CH7/EX7.3/Ex7_3.sce | f4e804e63c57b77f0dbb3a11bea3e7e22979a0eb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 288 | sce | Ex7_3.sce | //Example 7_3
clc();
clear;
//To find average angular acceleration
wf=240 //units in rev/sec
w0=0 //units in rev/sec
t=2 //units in minutes
t=t*60 //units in sec
alpha=(wf-w0)/t //units in rev/sec^2
printf("Average angular acceleration is alpha=%d rev/sec^2",alpha)
|
5344f64fb5f72b9c794b65f5d43690158b2f7939 | 449d555969bfd7befe906877abab098c6e63a0e8 | /22/CH9/EX9.2/ch9ex2.sce | fbb10d839dcf6066b23836f073008b05827b9e71 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 359 | sce | ch9ex2.sce | N_0=32; n=(0:N_0-1);
x_n= [ones(1,5) zeros(1,23) ones(1,4)];
for r=0:31
X_r(r+1)=sum(x_n.*exp(-sqrt(-1)*r*2*3.14/N_0*n))/32;
end
subplot(2,1,1); r=n; plot2d3(r,real(X_r));
xlabel('r'); ylabel('X_r');
X_r=fft(x_n)/N_0;
subplot(2,1,2);
plot2d3(r,phasemag(X_r));
xlabel('r'); ylabel('phase of X_r');
disp(N_0... |
4d626a0d129b8e8f5bc7fa13510e11241dd795d7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /680/CH8/EX8.05/8_05.sce | 9a7b2eef9309c0d38eecd17f0cab56c3993c3818 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 549 | sce | 8_05.sce | //Problem 8.05:
//initializing the variables:
T1 = 250; // in deg C
T2 = 260; // in deg C
T3 = 270; // in deg C
T4 = 280; // in deg C
T5 = 290; // in deg C
P1 = 22.01; // in atm
P2 = 24.66; // in atm
P3 = 27.13; // in atm
P4 = 29.79; // in atm
P5 = 32.42; // in atm
vl3 = 0.0408; // in ft3/lb
vg3 = 0.192;... |
4d07fc15b680a32b06fbcddb153d1811fb299b93 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.3/macros/util/sysconv.sci | 02f7fcd392a95c4fe818c359f412d40e2e870c08 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 2,649 | sci | sysconv.sci | function [s1,s2]=sysconv(s1,s2)
//Syntax : [s1,s2]=sysconv(s1,s2)
//
// Converts s1 and s2 into common representation in order that
// system interconnexion operations can be applied.
// The conversion rules in given in the following table.
// 'c' -> continuous time system
// 'd' -> discrete time system
// n ... |
0392a92d6a51344a877b04b7ea07e6311abfaaf4 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set5/s_Digital_Signal_Processing_R._Babu_52.zip/Digital_Signal_Processing_R._Babu_52/CH3/EX3.23.c/Example3_23_c.sce | 391700fe12494586c155691a6fb16f751a1ea743 | [] | 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 | 215 | sce | Example3_23_c.sce | errcatch(-1,"stop");mode(2);//Example 3.23 (c)
//MAXIMA SCILAB TOOLBOX REQUIRED FOR THIS PROGRAM
//N point DFT of a^n
;
syms a n k N;
x=a^n;
X=symsum(x*exp(-%i*2*%pi*n*k/N),n,0,N-1);
disp(X,'X(k)=');
exit();
|
22aa3572a0e08b9d46c8900c50d8745fef1b1174 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2609/CH9/EX9.18/Ex9_18.sce | 891a73cf7b9d92f47ec3b32671856efccac11546 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,051 | sce | Ex9_18.sce | //Ex 9.18
clc;
clear;
close;
format('v',5);
Ap=-10;//Pass band gain
Q=22;//Quality factor
fc=50;//Hz
R=60;//dB/decade(Roll off rate)
disp("Roll off rate of single op-amp=20 dB/decade. No. of stages will be 3. Desired design can be obtained by cascading three stages.");
n=3;//no. of op-amps(as single op-amp ha... |
a416464207103a1fee1ad5c040599825689a7fe8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1187/CH6/EX6.2/2.sce | 82cee4e5525ab07a3eccc11011837aa6fcd2efee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 182 | sce | 2.sce | clc
c=0.001; // m
p1=15*10^3; // Pa
u=0.6; // kg/m/s
R=6; // ratio of R2/R1
Q=%pi*c^3*p1/(6*u*log(R));
disp("(b)Rate at which oil must be supplied =")
disp(Q)
disp("m^3/s") |
6e421bfc48f5b3d1df7c323ad922f5045a0b7297 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1898/CH10/EX10.13/Ex10_13.sce | 2d4119a06bab4f6adb7538989306129225b79af5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 482 | sce | Ex10_13.sce | clear all; clc;
disp("Scilab Code Ex 10.13 : ")
//Given:
T = 400; //Nm
sigma_ult = 150*10^6; //N/m^2
//Calculations:
x = T/(%pi/2);
r_3 = [x/sigma_ult];
r = nthroot(r_3, 3);
r= r*1000; //in mm
//Display:
printf('\n\nThe smallest radius of the solid cast iron shaft = %1.2fmm ',r);
//-------... |
729cba8f44f9f1190efb96388c87595904971e5a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2282/CH2/EX2.5/ex2_5.sce | c02a91defb910d0f373a6c673eb584779798b1e9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 195 | sce | ex2_5.sce | // Example 2.5, page no-38
clear
clc
AP_diff=30000 //difference between apogee and perigee in km
AP_sum=62800 //Apogee+perigee
E=AP_diff/AP_sum
printf("Orbit Eccentricity= %.3f",E)
|
c5faf974b90516d38241e5174de0303d5dd006db | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH6/EX6.8/Ex6_8.sce | 7118053eb1080c6d8cd7d96ace8e6a648e592b9d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 319 | sce | Ex6_8.sce | // Example 6_8
clc;funcprot(0);
// Given data
T_in=20.0;// °C
p_in=1.40;// MPa
k=1.40;// The specific heat ratio
// Calculation
T_finalfilling=k*(T_in+273.15);// K
T_finalfilling=T_finalfilling-273.15;// °C
printf("\nThe final temperature of the air in the tank,T_final filling=%3.0f°C",T_finalfilling);
|
901cf578a76299676308f2fb8764f4ef6ba8ac53 | 449d555969bfd7befe906877abab098c6e63a0e8 | /626/CH2/EX2.9/2_9.sce | e84bb02f4f8b238a7d30b5bbe2f0184386affd7a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 707 | sce | 2_9.sce | clear;
clc;
close;
disp("Example2.9")
d=0.2 //diameter in meters.
l=0.2 //length in meters.
Cf=0.005 //average wall friction coefficient.
M1=0.24 //inlet mach no.
gm=1.4 //gamma.
//From FANNO tbale
L1cr=(9.3866*d/2)/(4*Cf);
L2cr=L1cr-l;
//from FANNO table
M2=0.3;
x=2.4956;
y=2.0351;
a=4.5383;
b=3.6191;... |
b115756cd471c373e7602b1b233a5b9ebf78ffdc | ab89c2161afc0845367b8e25f534e4f99bd36759 | /LAB1/partice3.sce | a6df7052c73141dd4f5fc8ebb7d36829effd8ac9 | [] | no_license | PhiTruongCE/Digital_Signal_Processing | 22446ebfa65765d1dfcd2c420e05c83dc861ec15 | bacaf762f31a333a641ac48f6b5cc18f120c65be | refs/heads/main | 2023-06-04T03:38:36.140107 | 2021-06-17T04:04:49 | 2021-06-17T04:04:49 | 377,699,926 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 162 | sce | partice3.sce | clc;
clf;
clear all;
l=5;
n=-l:l;
x=[zeros(1,l),0:l];
a=gca();
a.y_location='middle';
plot2d3(n,x);
xtitle('Unit ramp');
xlabel('n');
ylabel('x(n)');
|
be9170da0e18b5a2a3ff0bc10546c9c50806bec5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3401/CH3/EX3.3/Ex3_3.sce | dcb5e60fed01d83574f37b02c99ee61bb12d9136 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex3_3.sce | clc
m=9.11*10^-31 //kg
E=1.6*10^-19 //C
h=6.625*10^-34 //J sec
N=(4*%pi*(2*m)^(3/2)*2*E^(3/2))/(h^3*3)
disp(N,'E2= %f per meter^3\n')
|
dee2ad080d61d9df8e12e6d3c627de74f00563f8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2863/CH2/EX2.9/ex2_9.sce | 2a27c7906144a002e018fd1be0fba45b95ced4c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 303 | sce | ex2_9.sce | //chapter 2
//Etheta=60Im/r*(cos(pi/2cos(theta))/sin(theta));
//theta=90
//Pavg=Rrad*Irms^2;
//Irms=Im/sqrt(2)
printf("\n");
Im=100*10^-3;
r=100
Etheta=(60*10^-3);
H=(60*10^-3)/(120*(%pi));
Pavg=73*(10^-1/sqrt(2))^2;//Rrad=73ohm for half wave dipole
printf("the average power is %gW",Pavg);
|
0be9046a606ede7660c3836d838efcf5690d8ccc | b9c6de66a61d6f9a57edaa44baf92266ccbab3db | /macros/distfun_hygecdf.sci | f0212b2a3e58dc81d0109d27c9b50eb250178a84 | [] | no_license | papriwalprateek/distfun-scilab | 81b3edef0af1d1908e05472dfb15b0a55f61571d | 82fd34521d1e6ebb6513773264b54a0d48f5f3f9 | refs/heads/master | 2016-09-03T07:08:47.605240 | 2013-10-13T05:53:43 | 2013-10-13T05:53:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,995 | sci | distfun_hygecdf.sci | // Copyright (C) 2012 - Prateek Papriwal
// Copyright (C) 2012 - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.... |
d0aa8b367faf9f77d6e82603c864628cbc46892e | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH3/EX3.10/c3_10.sce | 020e64aec2339562bce47fa74a672b085e6d1318 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | c3_10.sce | //(3.10) One kmol of carbon dioxide gas (CO2) in a piston–cylinder assembly undergoes a constant-pressure process at 1 bar from T1 = 300 K to T2. Plot the heat transfer to the gas, in kJ, versus T2 ranging from 300 to 1500 K. Assume the ideal gas model, and determine the specific internal energy change of the gas usi... |
533fd2807ca924f6d7ccdf70410898e4f155328a | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/util/halt.sci | 356bd46af5416232be18058c7635717dd45fc9e9 | [
"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 | 163 | sci | halt.sci | function []=halt()
//halt() stops execution until something is entered in the keyboard.
//!
// Copyright INRIA
write(%io(2),'halt'),read(%io(1),1,1,'(a1)');
|
8d4e4f42ac339725947a1a6aebe5108a42fbf78f | 449d555969bfd7befe906877abab098c6e63a0e8 | /147/CH11/EX11.9/Example11_9.sce | c447e2d2851b8ea9185c6e3109ce4f058024221e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 325 | sce | Example11_9.sce | close();
clear;
clc;
Vcc = 5; //V
Vb = 3.5; //V
Rc = 640; //ohm
Rb1 = 450; //ohm
Rb2 = Rb1;
Vcesat = 0.2; //V
B = 50;
Ibsat = (Vcc-Vcesat)/(B*Rc);
//number of gates that can be attached to v
n = (Vcc-Vb)/(Rc*Ibsat);
mprintf("number of gates that can be attached to v without risk of error in logic, n < %d... |
9a96059794de1aaf44a24c4337a3b8d93819d345 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH6/EX6.9/Ex6_9.sce | afc5669828d32aa6db43417fa7a0f557be29fd72 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 187 | sce | Ex6_9.sce | clear
//Given
a=10
b=7.0
c=5
d=4
e=8.0
//Calculation
I1=(a+a)/(b+1)
I3=(c+(4*I1))/e
I2=(-a+(6*I3)+I1)/2.0
//Result
printf("\n Current I1= %0.3f A \nI2= %0.3f A \nI3= %0.3f A",I1,I2,I3)
|
888e28485b336e9b9d00dfea110320c52d386cd3 | d3ba33088e5d34eaccff205f30b4515b9f598dcf | /sci2blif/io_info/io_info_rasp30.sce | 2acd6f8901286e1fbd7058d51ce62998df217c8d | [] | no_license | woodjamesdee/rasp30 | d707e480bf116ce278cf4b37b73de9d076e5ede1 | 7f9251e3ec8d8a6ef827b09009b08d575254bd2e | refs/heads/master | 2020-04-21T14:35:45.199183 | 2019-05-20T18:58:42 | 2019-05-20T18:58:42 | 169,640,192 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 10,274 | sce | io_info_rasp30.sce | //********** 3.0 **********
dac_loc{1,1}(1)= '9 0 1 #int[1]'; dac_loc{1,1}(2)= '2'; //DAC2
dac_loc{1,2}(1)= '9 0 2 #int[2]'; dac_loc{1,2}(2)= '3'; //DAC3
dac_loc{1,3}(1)= '8 0 5 #int[5]'; dac_loc{1,3}(2)= '0'; //DAC0
dac_loc{1,4}(1)= '9 0 3 #int[3]'; dac_loc{1,4}(2)= '4'; //DAC4
dac_loc{1,5}(1)= '9 0 4 #int[4]'; dac_l... |
ccd1ce660ebde6cbf4b269bd729086147d5ba7ff | a24c640895f1cfb1e3242099f641df51ee10297e | /example_programs/factorial.tst | 5723ccba8d3e396985f5642aee8bd498a2e4fee8 | [
"CC-BY-3.0"
] | permissive | supermaximo93/Toast-Prototype-Interpreter | 1c3d981a550f6498bb5fcc8952fdd6a5ae4c71b3 | 13547e96813add755791b33a19a4831f5e338094 | refs/heads/master | 2021-01-19T10:58:00.401688 | 2012-03-14T09:18:27 | 2012-03-14T09:18:27 | 3,140,649 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 548 | tst | factorial.tst | ///////////////////////////////////////////////////////////////////////
/////////////// FACTORIAL ///////////////
///////////////////////////////////////////////////////////////////////
let iterative_factorial(x) =
if x <= 1, exit(1)
let result = x
while x > 1,
let x = x - 1
... |
50dd9e29429bd2a161f3f50605a1735db758298c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2507/CH10/EX10.4/Ex10_4.sce | 2a847be2c134d336c0e5159bbe28587833e41a7b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 766 | sce | Ex10_4.sce | clc
clear
printf("Example 10.4 | Page number 350 \n\n");
//Find temperature and all other specific properties
//Given data
p1 = 500 //kPa //initial pressure
s1 = 1.3625 //initial entropy
//Solution
//Using Method 2:
Ts = 424.28 //K //temperature at 500kPa
sf = 1.8606 //kJ/kgK //entropy at 500kPa
Cwat = 4.1... |
455376a89e0844987fa29702f655ec7d812ded55 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2471/CH5/EX5.14/Ex5_14.sce | ab4a15249e3f2fe5bcf413372b1c15446af9d328 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,331 | sce | Ex5_14.sce | clear ;
clc;
// Example 5.14
printf('Example 5.14\n\n');
printf('Page No. 137\n\n');
// given
T1 = 25;// Wet-bulb temperature in degree celcius
T2 = 40;//Dry-bulb temperature in degree celcius
//By using the humidity chart and steam tables for air-water mixtures at the given temperatures, the all following ... |
974f9ad79322cb1d4df91f0d2e7efc3a83ed392f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2024/CH8/EX8.13/8_13.sce | 8fe9ed49fd4e8b9412097da1551ee3293b754305 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 220 | sce | 8_13.sce | clc
//Initialization of variables
Pr=10
n=1.3
T1=900 //R
W=50 //Btu/lbm
//calculations
T2=T1/Pr^((n-1)/n)
h1=120.86
h2=30.69
dh=h2-h1
ke=-dh-W
//results
printf("Change in kinetic energy = %.2f Btu/lbm",ke)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.